Changeset 4 for trunk/mkstructinfo.awk


Ignore:
Timestamp:
2006-05-13T03:54:55+02:00 (9 years ago)
Author:
moo
Message:

compatibility fix: remove the using of gnu m4 extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkstructinfo.awk

    r1 r4  
    2222            # elms = elms " `" buffer[i] "'";
    2323            elm = elm "sizeof(((" instruct "*)NULL)->" buffer[i] ")";
    24             elms = elms " " buffer[i] "";
     24
     25            if (elms == "") {
     26                elms = buffer[i];
     27            }
     28            else {
     29                elms = elms "," buffer[i];
     30            }
    2531        }
    2632        printf "define(`ELEMENTSOF_%s', `%s')\n", instruct, elms;
Note: See TracChangeset for help on using the changeset viewer.