From 077f43dbe53c80e3edb974454e25c3f0c93d0fd5 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 26 Jun 2015 11:58:14 +0300 Subject: Remove support for old-style extensions. --- awkgram.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'awkgram.c') diff --git a/awkgram.c b/awkgram.c index a1a055b6..88e02afa 100644 --- a/awkgram.c +++ b/awkgram.c @@ -3953,7 +3953,7 @@ regular_print: if (! at_seen) { n = lookup((yyvsp[-3])->func_name); if (n != NULL && n->type != Node_func - && n->type != Node_ext_func && n->type != Node_old_ext_func) { + && n->type != Node_ext_func) { error_ln((yyvsp[-3])->source_line, _("attempt to use non-function `%s' in function call"), (yyvsp[-3])->func_name); @@ -4475,9 +4475,6 @@ static const struct token tokentab[] = { {"eval", Op_symbol, LEX_EVAL, 0, 0, 0}, {"exit", Op_K_exit, LEX_EXIT, 0, 0, 0}, {"exp", Op_builtin, LEX_BUILTIN, A(1), do_exp, MPF(exp)}, -#ifdef DYNAMIC -{"extension", Op_builtin, LEX_BUILTIN, GAWKX|A(1)|A(2)|A(3), do_ext, 0}, -#endif {"fflush", Op_builtin, LEX_BUILTIN, A(0)|A(1), do_fflush, 0}, {"for", Op_K_for, LEX_FOR, BREAK|CONTINUE, 0, 0}, {"func", Op_func, LEX_FUNCTION, NOT_POSIX|NOT_OLD, 0, 0}, -- cgit v1.2.3 From 687e6594ca3a6195ef834a5466b5fc7de2de2d7b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 28 Jun 2015 22:08:12 +0300 Subject: Improve memory tracking on typed regex. --- awkgram.c | 1 + 1 file changed, 1 insertion(+) (limited to 'awkgram.c') diff --git a/awkgram.c b/awkgram.c index 88e02afa..0ee3e66a 100644 --- a/awkgram.c +++ b/awkgram.c @@ -7286,6 +7286,7 @@ make_regnode(int type, NODE *exp) } n->re_exp = exp; n->re_flags = CONSTANT; + n->valref = 1; } return n; } -- cgit v1.2.3