Changeset 9be9c1c in git


Ignore:
Timestamp:
2006-05-25T06:51:45Z (14 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.0, 1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
1ac2d92
Parents:
768c007
Message:

POSIX { and delete
TODO: still not POSIX compatible due to "match()"

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@23 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mkstructinfo.awk

    r1ed70f8 r9be9c1c  
    33BEGIN {
    44    brace = 0;
    5     delete buffer;
    65    buffer_len = 0;
    76}
     
    3433        printf "define(`SIZEOF_%s', `(  %s  )')\n", instruct, elm;
    3534        print "\n";
    36         delete buffer;
     35        for (i in buffer) {
     36            delete buffer[i];
     37        }
    3738        buffer_len = 0;
    3839        instruct = 0;
     
    4142}
    4243
    43 /.{/ {
     44/.\{/ {
    4445    brace = brace + 1;
    4546}
     
    7677    next;
    7778}
    78 /^typedef struct .*{/ {
     79/^typedef struct .*\{/ {
    7980    brace = 1;
    8081    instruct = 1;
     
    8283}
    8384
    84 /^struct .*{/ {
     85/^struct .*\{/ {
    8586    instruct = $2;
    8687    brace = 1;
Note: See TracChangeset for help on using the changeset viewer.