From 4195be2c84cd185bf553aa408c53f46d705ecb25 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 27 Aug 2014 17:39:03 +0000 Subject: [PATCH] fixed wrong parsing of length() --- qse/lib/awk/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qse/lib/awk/parse.c b/qse/lib/awk/parse.c index a8cc3dfe..ccd4a5fe 100644 --- a/qse/lib/awk/parse.c +++ b/qse/lib/awk/parse.c @@ -4887,7 +4887,7 @@ static qse_awk_nde_t* parse_primary_ident_noseg ( /* fnc->dfl0 means that the function can be called without (). * i.e. length */ - nde = parse_fncall (awk, name, fnc, xloc, (fnc->dfl0? 1: 0)); + nde = parse_fncall (awk, name, fnc, xloc, ((!MATCH(awk,TOK_LPAREN) && fnc->dfl0)? 1: 0)); } else {