make makefile generic
[nedit-bw.git] / last-op.patch
blobbec55e8cef64b1cbae0a2fec0f413a821336cef7
1 ---
3 source/interpret.c | 3 ++-
4 source/interpret.h | 1 +
5 2 files changed, 3 insertions(+), 1 deletion(-)
7 diff --quilt old/source/interpret.c new/source/interpret.c
8 --- old/source/interpret.c
9 +++ new/source/interpret.c
10 @@ -685,6 +685,7 @@ int ContinueMacro(RestartData *continuat
12 /* Execute an instruction */
13 inst = PC++;
14 + continuation->last = inst;
15 if (inst->type != OP_INST) {
16 status = execError(continuation,
17 "Unexpected instruction of type <%s>",
18 @@ -4421,7 +4422,7 @@ static char *stackDumpStr(RestartData *c
19 #ifdef DEBUG_STACK
20 const char *dump;
21 static const char stackdumpMsg[] = "\n\nStack:\n";
22 - disasmInternal(context->pc - 1, 1);
23 + disasmInternal(context->last, 1);
24 stackdumpInternal(context, 0, 50);
25 dump = printd(NULL);
26 #endif
27 diff --quilt old/source/interpret.h new/source/interpret.h
28 --- old/source/interpret.h
29 +++ new/source/interpret.h
30 @@ -141,6 +141,7 @@ typedef struct {
31 DataValue *stackP;
32 DataValue *frameP;
33 Inst *pc;
34 + Inst *last;
35 Inst *loopStack[LOOP_STACK_SIZE];
36 Inst **loopStackPtr;
37 WindowInfo *runWindow;