From c52c817b9dcdbe460c49bcaf022084d9962cf730 Mon Sep 17 00:00:00 2001 From: Zishan Sun Date: Mon, 30 Mar 2026 23:27:01 -0500 Subject: [PATCH] fix: rename C11_DEBUGGER_UNKNOW_ERROR to C11_DEBUGGER_UNKNOWN_ERROR Correct the spelling of the enum constant from UNKNOW to UNKNOWN in both the definition (core.h) and its usage in dap.c. --- include/pocketpy/debugger/core.h | 2 +- src/debugger/dap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pocketpy/debugger/core.h b/include/pocketpy/debugger/core.h index 74844820..726722c1 100644 --- a/include/pocketpy/debugger/core.h +++ b/include/pocketpy/debugger/core.h @@ -12,7 +12,7 @@ typedef enum { C11_DEBUGGER_NOSTOP, C11_DEBUGGER_STEP, C11_DEBUGGER_EXCEPTION, C typedef enum { C11_DEBUGGER_SUCCESS = 0, C11_DEBUGGER_EXIT = 1, - C11_DEBUGGER_UNKNOW_ERROR = 3, + C11_DEBUGGER_UNKNOWN_ERROR = 3, C11_DEBUGGER_FILEPATH_ERROR = 7 } C11_DEBUGGER_STATUS; diff --git a/src/debugger/dap.c b/src/debugger/dap.c index d17ea30f..0cca560d 100644 --- a/src/debugger/dap.c +++ b/src/debugger/dap.c @@ -508,7 +508,7 @@ void c11_dap_tracefunc(py_Frame* frame, enum py_TraceEvent event) { case C11_DEBUGGER_FILEPATH_ERROR: message = "Invalid py_file path: '..' forbidden, './' only allowed at start."; break; - case C11_DEBUGGER_UNKNOW_ERROR: + case C11_DEBUGGER_UNKNOWN_ERROR: default: message = "Unknown debugger failure."; break; } if(message) { c11_dap_send_fatal_event(message); }