From 1563b94d009956a2ed1baec959a954554022fa7f Mon Sep 17 00:00:00 2001 From: lyon Date: Fri, 28 Jan 2022 12:10:32 +0800 Subject: [PATCH] format --- package/PikaDebug/PikaDebuger_Debuger.c | 4 ++-- .../pikascript/pikascript-lib/PikaDebug/PikaDebuger_Debuger.c | 4 ++-- src/PikaObj.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package/PikaDebug/PikaDebuger_Debuger.c b/package/PikaDebug/PikaDebuger_Debuger.c index d07d1ce70..195db1e62 100644 --- a/package/PikaDebug/PikaDebuger_Debuger.c +++ b/package/PikaDebug/PikaDebuger_Debuger.c @@ -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); } diff --git a/port/linux/package/pikascript/pikascript-lib/PikaDebug/PikaDebuger_Debuger.c b/port/linux/package/pikascript/pikascript-lib/PikaDebug/PikaDebuger_Debuger.c index d07d1ce70..195db1e62 100644 --- a/port/linux/package/pikascript/pikascript-lib/PikaDebug/PikaDebuger_Debuger.c +++ b/port/linux/package/pikascript/pikascript-lib/PikaDebug/PikaDebuger_Debuger.c @@ -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); } diff --git a/src/PikaObj.c b/src/PikaObj.c index 183b42f62..feb838551 100644 --- a/src/PikaObj.c +++ b/src/PikaObj.c @@ -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) {