diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-07-17 21:04:12 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-07-17 21:04:12 +0300 |
commit | 104b3c3f13fcb4b53bfc330db0d103cf50d5b523 (patch) | |
tree | e53baf48c61ea032ef2f65041ed0cf3b883fae09 /awkgram.y | |
parent | 44cce0245a8113885ecedc34ac955aca6a021ca9 (diff) | |
download | egawk-104b3c3f13fcb4b53bfc330db0d103cf50d5b523.tar.gz egawk-104b3c3f13fcb4b53bfc330db0d103cf50d5b523.tar.bz2 egawk-104b3c3f13fcb4b53bfc330db0d103cf50d5b523.zip |
Small cleanups in the grammar.
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -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) @@ -6220,15 +6214,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; } |