aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
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;
}