diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-12-31 20:51:11 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-12-31 20:51:11 +0200 |
commit | a89bd16ff78c74513461af3f676d87d4eb9cfd3c (patch) | |
tree | 25977f27d837e3713b52e056f533bcbaba8a4597 /awkgram.c | |
parent | a32faf6354086864b55755c968f72a90e7e8f0d1 (diff) | |
download | egawk-a89bd16ff78c74513461af3f676d87d4eb9cfd3c.tar.gz egawk-a89bd16ff78c74513461af3f676d87d4eb9cfd3c.tar.bz2 egawk-a89bd16ff78c74513461af3f676d87d4eb9cfd3c.zip |
Remove ancient STREQ, STREQN macros.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6675,7 +6675,7 @@ lookup(const char *name) len = strlen(name); for (bucket = variables[hash(name, len, (unsigned long) HASHSIZE, NULL)]; bucket != NULL; bucket = bucket->hnext) - if (bucket->hlength == len && STREQN(bucket->hname, name, len)) + if (bucket->hlength == len && strncmp(bucket->hname, name, len) == 0) return bucket->hvalue; return NULL; } @@ -6961,7 +6961,7 @@ remove_symbol(char *name) len = strlen(name); save = &(variables[hash(name, len, (unsigned long) HASHSIZE, NULL)]); for (bucket = *save; bucket != NULL; bucket = bucket->hnext) { - if (len == bucket->hlength && STREQN(bucket->hname, name, len)) { + if (len == bucket->hlength && strncmp(bucket->hname, name, len) == 0) { var_count--; *save = bucket->hnext; return bucket; @@ -7233,7 +7233,7 @@ variable(char *name, NODETYPE type) r = mk_symbol(type, (NODE *) NULL); return install_symbol(name, r); } - if (STREQ(name, dv->name)) { + if (strcmp(name, dv->name) == 0) { r = (*dv->load_func)(); break; } |