aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-01-30 21:55:59 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-01-30 21:55:59 +0200
commit318b7ac345d0e78502ac0674a8ebb467997174f3 (patch)
treed21662d1435c3c768cf2d2a2cc9ee7114912d9de /eval.c
parenta7dd34e347fecd3a09be19c9c2b9fe99e1bbbcd7 (diff)
downloadegawk-318b7ac345d0e78502ac0674a8ebb467997174f3.tar.gz
egawk-318b7ac345d0e78502ac0674a8ebb467997174f3.tar.bz2
egawk-318b7ac345d0e78502ac0674a8ebb467997174f3.zip
Add isarray built-in function.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index b9c84afd..59574633 100644
--- a/eval.c
+++ b/eval.c
@@ -351,6 +351,7 @@ static struct optypetab {
{ "Op_func_call", NULL },
{ "Op_indirect_func_call", NULL },
{ "Op_push", NULL },
+ { "Op_push_arg", NULL },
{ "Op_push_i", NULL },
{ "Op_push_re", NULL },
{ "Op_push_array", NULL },
@@ -1700,6 +1701,7 @@ top:
break;
case Op_push:
+ case Op_push_arg:
{
NODE *save_symbol;
int isparam = FALSE;
@@ -1739,9 +1741,7 @@ top:
break;
case Node_var_array:
- if (! do_posix
- && pc->nexti->opcode == Op_builtin
- && pc->nexti->builtin == do_length) /* length(array) */
+ if (pc->opcode == Op_push_arg)
PUSH(m);
else
fatal(_("attempt to use array `%s' in a scalar context"),