diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-10-21 12:28:48 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-10-21 12:28:48 +0200 |
commit | bada9c9a2562ad850757988effc848fb55850c98 (patch) | |
tree | 2f5cef794f445c84763a54ddbae29709d9accf74 /symbol.c | |
parent | 0a1746da98ef24b887074bad1c390523f6c4b190 (diff) | |
download | egawk-bada9c9a2562ad850757988effc848fb55850c98.tar.gz egawk-bada9c9a2562ad850757988effc848fb55850c98.tar.bz2 egawk-bada9c9a2562ad850757988effc848fb55850c98.zip |
z/OS fixes.
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -91,16 +91,16 @@ lookup(const char *name) { NODE *n; NODE *tmp; - /* ``It's turtles, all the way down.'' */ - NODE *tables[] = { - param_table, /* parameters shadow everything */ - global_table, /* SYMTAB and FUNCTAB found first, can't be redefined */ - func_table, /* then functions */ - symbol_table, /* then globals */ - NULL, - }; + NODE *tables[5]; /* manual init below, for z/OS */ int i; + /* ``It's turtles, all the way down.'' */ + tables[0] = param_table; /* parameters shadow everything */ + tables[1] = global_table; /* SYMTAB and FUNCTAB found first, can't be redefined */ + tables[2] = func_table; /* then functions */ + tables[3] = symbol_table; /* then globals */ + tables[4] = NULL; + tmp = make_string(name, strlen(name)); n = NULL; |