about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/parse.c b/Src/parse.c
index fb20944c2..f0aa2d255 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -1335,6 +1335,7 @@ par_funcdef(void)
     lineno += oldlineno;
     ecnpats = onp;
     ecssub = oecssub;
+    ecnfunc++;
 
     ecbuf[p] = WCB_FUNCDEF(ecused - 1 - p);
 }
@@ -1504,6 +1505,7 @@ par_simple(int *complex, int nr)
 	    lineno += oldlineno;
 	    ecnpats = onp;
 	    ecssub = oecssub;
+	    ecnfunc++;
 
 	    ecbuf[p] = WCB_FUNCDEF(ecused - 1 - p);