core-typeof-syntax: push up
[nedit-bw.git] / InterpretDebug-ParseMacro-fixes.diff
bloba097cff7a61e1b52d27029eb65ac283a881de0eb
1 ---
3 source/macro.c | 4 ++--
4 1 files changed, 2 insertions(+), 2 deletions(-)
6 diff --quilt old/source/macro.c new/source/macro.c
7 --- old/source/macro.c
8 +++ new/source/macro.c
9 @@ -3816,11 +3816,11 @@ static int evalMS(WindowInfo *window, Da
10 strcpy(macrosave, macro);
11 macrosave[strlen(macro)] = '\n';
12 macrosave[strlen(macro) + 1] = '\0';
14 /* Parse the macro and report errors if it fails */
15 - prog = ParseMacro(macrosave, errMsg, &stoppedAt);
16 + prog = ParseMacro(macrosave, errMsg, &stoppedAt, "eval");
17 if (prog == NULL) {
18 ParseError(window->shell, macrosave, stoppedAt, "eval()", *errMsg);
19 XtFree(macrosave);
20 return False;
22 @@ -4047,11 +4047,11 @@ static int defineFuncMS(WindowInfo *wind
24 strcpy(bodysave, body);
25 strcat(bodysave, "\n");
27 /* Parse the macro and report errors if it fails */
28 - prog = ParseMacro(bodysave, errMsg, &stoppedAt);
29 + prog = ParseMacro(bodysave, errMsg, &stoppedAt, name);
30 if (!prog) {
31 ParseError(window->shell, bodysave, stoppedAt, name, *errMsg);
32 XtFree(bodysave);
33 return False;