Dropping WebServer in favor of httpd.

This commit is contained in:
Brad Nelson
2022-02-03 11:34:45 -08:00
parent a76a1f9149
commit 7fb96c4dd1
7 changed files with 65 additions and 83 deletions

View File

@ -14,10 +14,6 @@
static char filename[PATH_MAX];
#ifdef ENABLE_WEBSERVER_SUPPORT
static String string_value;
#endif
{{core}}
{{interp}}
{{boot}}
@ -53,24 +49,6 @@ static cell_t ResizeFile(cell_t fd, cell_t size) {
return 0;
}
#ifdef ENABLE_WEBSERVER_SUPPORT
static void InvokeWebServerOn(WebServer *ws, const char *url, cell_t xt) {
ws->on(url, [xt]() {
cell_t code[2];
code[0] = xt;
code[1] = g_sys.YIELD_XT;
cell_t fstack[INTERRUPT_STACK_CELLS];
cell_t rstack[INTERRUPT_STACK_CELLS];
cell_t stack[INTERRUPT_STACK_CELLS];
cell_t *rp = rstack;
*++rp = (cell_t) (fstack + 1);
*++rp = (cell_t) (stack + 1);
*++rp = (cell_t) code;
forth_run(rp);
});
}
#endif
#ifdef ENABLE_INTERRUPTS_SUPPORT
struct handle_interrupt_args {
cell_t xt;