aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2019-01-06 09:16:07 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2019-01-06 09:16:07 -0500
commit0678c088360752f332752c3eaec551280151c29c (patch)
tree1a6e1302139557439ef58bc10066d42af200a55a /symbol.c
parent6a41af4e0169f81386922d6a6065a8b408b77296 (diff)
downloadegawk-0678c088360752f332752c3eaec551280151c29c.tar.gz
egawk-0678c088360752f332752c3eaec551280151c29c.tar.bz2
egawk-0678c088360752f332752c3eaec551280151c29c.zip
Remove alength array method in favor of accessing table_size directly.
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/symbol.c b/symbol.c
index 797b5ec4..9f8af3a0 100644
--- a/symbol.c
+++ b/symbol.c
@@ -106,7 +106,7 @@ lookup(const char *name)
n = NULL;
for (i = 0; tables[i] != NULL; i++) {
- if (tables[i]->table_size == 0)
+ if (assoc_empty(tables[i]))
continue;
if ((do_posix || do_traditional) && tables[i] == global_table)
@@ -644,7 +644,7 @@ check_param_names(void)
bool result = true;
NODE n;
- if (func_table->table_size == 0)
+ if (assoc_empty(func_table))
return result;
max = func_table->table_size * 2;