mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
simplify the workdir process and minor optimizations
This commit is contained in:
parent
25c988e6a9
commit
bf8abcce89
@ -109,6 +109,8 @@ void c11_debugger_set_step_mode(C11_STEP_MODE mode) {
|
||||
debugger.keep_suspend = false;
|
||||
}
|
||||
|
||||
=======
|
||||
>>>>>>> 429f2e78 (simplify the workdir process)
|
||||
int c11_debugger_setbreakpoint(const char* filename, int lineno) {
|
||||
c11_debugger_breakpoint breakpoint = {.sourcename = c11_strdup(filename), .lineno = lineno};
|
||||
c11_vector__push(c11_debugger_breakpoint, &debugger.breakpoints, breakpoint);
|
||||
@ -166,6 +168,8 @@ int c11_debugger_should_pause() {
|
||||
|
||||
int c11_debugger_should_keep_pause(void) { return debugger.keep_suspend; }
|
||||
|
||||
=======
|
||||
>>>>>>> 429f2e78 (simplify the workdir process)
|
||||
inline static c11_sv sv_from_cstr(const char* str) {
|
||||
c11_sv sv = {.data = str, .size = strlen(str)};
|
||||
return sv;
|
||||
|
@ -285,6 +285,7 @@ void c11_dap_send_fatal_event(const char* message) {
|
||||
c11_dap_send_event("pkpy/fatalError", body);
|
||||
}
|
||||
|
||||
>>>>>>> 429f2e78 (simplify the workdir process)
|
||||
void c11_dap_send_initialized_event() { c11_dap_send_event("initialized", "{}"); }
|
||||
|
||||
int c11_dap_read_content_length(const char* buffer, int* header_length) {
|
||||
|
@ -89,9 +89,13 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
<<<<<<< HEAD
|
||||
if(profile) py_profiler_begin();
|
||||
if(debug) py_debugger_waitforattach("127.0.0.1", 6110);
|
||||
|
||||
=======
|
||||
wait_for_debugger("127.0.0.1", 3939);
|
||||
>>>>>>> 429f2e78 (simplify the workdir process)
|
||||
char* source = read_file(filename);
|
||||
if(source) {
|
||||
if(!py_exec(source, filename, EXEC_MODE, NULL))
|
||||
|
Loading…
x
Reference in New Issue
Block a user