This commit is contained in:
lyon 2022-01-28 12:10:32 +08:00
parent 461164ec81
commit 1563b94d00
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#include "PikaDebug_Debuger.h"
extern PikaObj* __pikaMain;
static enum shell_state __obj_shellLineHandler_obj_run(PikaObj* self,
static enum shell_state __obj_shellLineHandler_debuger(PikaObj* self,
char* input_line) {
/* continue */
if (strEqu("c", input_line)) {
@ -19,5 +19,5 @@ void PikaDebug_Debuger_set_trace(PikaObj* self) {
struct shell_config cfg = {
.prefix = "(pika-debug) ",
};
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_obj_run, &cfg);
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_debuger, &cfg);
}

View File

@ -1,7 +1,7 @@
#include "PikaDebug_Debuger.h"
extern PikaObj* __pikaMain;
static enum shell_state __obj_shellLineHandler_obj_run(PikaObj* self,
static enum shell_state __obj_shellLineHandler_debuger(PikaObj* self,
char* input_line) {
/* continue */
if (strEqu("c", input_line)) {
@ -19,5 +19,5 @@ void PikaDebug_Debuger_set_trace(PikaObj* self) {
struct shell_config cfg = {
.prefix = "(pika-debug) ",
};
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_obj_run, &cfg);
obj_shellLineProcess(__pikaMain, __obj_shellLineHandler_debuger, &cfg);
}

View File

@ -628,7 +628,7 @@ void obj_shellLineProcess(PikaObj* self,
}
}
static enum shell_state __obj_shellLineHandler_obj_run(PikaObj* self,
static enum shell_state __obj_shellLineHandler_debuger(PikaObj* self,
char* input_line) {
/* exit */
if (strEqu("exit()", input_line)) {
@ -644,7 +644,7 @@ void pikaScriptShell(PikaObj* self) {
struct shell_config cfg = {
.prefix = ">>> ",
};
obj_shellLineProcess(self, __obj_shellLineHandler_obj_run, &cfg);
obj_shellLineProcess(self, __obj_shellLineHandler_debuger, &cfg);
}
void obj_setErrorCode(PikaObj* self, int32_t errCode) {