/* before we run a statement, check if there's anything we have to do with the debugger here */ void DebugCheckStatement(struct ParseState *Parser) { int DoBreak = FALSE; int AddAt; Picoc *pc = Parser->pc; /* has the user manually pressed break? */ if (pc->DebugManualBreak) { PlatformPrintf(pc->CStdOut, "break\n"); DoBreak = TRUE; pc->DebugManualBreak = FALSE; } /* is this a breakpoint location? */ if (Parser->pc->BreakpointCount != 0 && DebugTableSearchBreakpoint(Parser, &AddAt) != NULL) DoBreak = TRUE; /* handle a break */ if (DoBreak) { PlatformPrintf(pc->CStdOut, "Handling a break\n"); PicocParseInteractiveNoStartPrompt(pc, FALSE); } }
/* parse interactively, showing a startup message */ void PicocParseInteractive(Picoc *pc) { PlatformPrintf(pc->CStdOut, INTERACTIVE_PROMPT_START); PicocParseInteractiveNoStartPrompt(pc, TRUE); }
/* parse interactively, showing a startup message */ void PicocParseInteractive() { PlatformPrintf(INTERACTIVE_PROMPT_START); PicocParseInteractiveNoStartPrompt(TRUE); }