Changeset 565 in svn for trunk/mkopcode_spec.awk


Ignore:
Timestamp:
2008-08-17T16:10:25+02:00 (7 years ago)
Author:
Xuefer
Message:

revert [564]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkopcode_spec.awk

    r564 r565  
    1010/OPDEF/ {
    1111    if (started) {
     12        sub(/".*"/, "")
    1213        if (!match($0, /EXT_([^ |]+).*OP[1S]_([^ |]+).*OP2_([^ |]+).*RES_([^ |)]+).*/, array)) {
    1314            print "error" $0
    1415            exit
    1516        }
    16         id = "";
    17         if (match($0, /\/\* *([0-9]+) *\*\//, m)) {
    18             id = m[1];
     17        comment = "";
     18        if (match($0, /\/\* (\d+) \*\//, comments)) {
     19            comment = comments[1];
    1920        }
    20         name = "";
    21         if (match($0, /"([^"]+)"/, m)) {
    22             name = m[1];
    23         }
    24         printf "\tOPSPEC(%10s, %10s, %10s, %10s) /* %s %s */\n", array[1], array[2], array[3], array[4], id, name;
     21        printf "\tOPSPEC(%10s, %10s, %10s, %10s)%s\n", array[1], array[2], array[3], array[4], comment;
    2522        next
    2623    }
Note: See TracChangeset for help on using the changeset viewer.