diff options
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -8044,3 +8044,19 @@ one_line_close(int fd) } +/* lookup_builtin --- find a builtin function or return NULL */ + +builtin_func_t +lookup_builtin(const char *name) +{ + int mid = check_special(name); + + if (mid == -1 || tokentab[mid].class != LEX_BUILTIN) + return NULL; +#ifdef HAVE_MPFR + if (do_mpfr) + return tokentab[mid].ptr2; +#endif + + return tokentab[mid].ptr; +} |