aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-07-17 21:04:49 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-07-17 21:04:49 +0300
commit901a3c0c393e3002451857d73d619ab98ab37dff (patch)
tree2dd3df34469711de6f78c63d383065a3c70856f1 /awkgram.y
parent32e0339ca70c201298571394909558c18b4b2a37 (diff)
parent104b3c3f13fcb4b53bfc330db0d103cf50d5b523 (diff)
downloadegawk-901a3c0c393e3002451857d73d619ab98ab37dff.tar.gz
egawk-901a3c0c393e3002451857d73d619ab98ab37dff.tar.bz2
egawk-901a3c0c393e3002451857d73d619ab98ab37dff.zip
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y16
1 files changed, 5 insertions, 11 deletions
diff --git a/awkgram.y b/awkgram.y
index 7bc44d24..c4099919 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -1744,13 +1744,7 @@ non_post_simp_exp
else
$$ = $2;
}
- | LEX_BUILTIN '(' opt_fcall_expression_list r_paren
- {
- $$ = snode($3, $1);
- if ($$ == NULL)
- YYABORT;
- }
- | LEX_LENGTH '(' opt_fcall_expression_list r_paren
+ | lex_builtin '(' opt_fcall_expression_list r_paren
{
$$ = snode($3, $1);
if ($$ == NULL)
@@ -6224,15 +6218,15 @@ lookup_builtin(const char *name)
return NULL;
}
+ /* And another special case... */
+ if (tokentab[mid].value == Op_sub_builtin)
+ return (builtin_func_t) do_sub;
+
#ifdef HAVE_MPFR
if (do_mpfr)
return tokentab[mid].ptr2;
#endif
- /* And another special case... */
- if (tokentab[mid].value == Op_sub_builtin)
- return (builtin_func_t) do_sub;
-
return tokentab[mid].ptr;
}