From b39bcc6513f4aa6257c79cbba53c102e01f10ad2 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Wed, 17 Dec 2025 15:37:33 +0100 Subject: [PATCH] update --- app.c | 5 ++--- http1-1.example.c => examples/http1-1.c | 2 +- server-chat.example.c => examples/server-chat.c | 3 +-- scratchpad.c | 6 ------ 4 files changed, 4 insertions(+), 12 deletions(-) rename http1-1.example.c => examples/http1-1.c (98%) rename server-chat.example.c => examples/server-chat.c (99%) delete mode 100644 scratchpad.c diff --git a/app.c b/app.c index a2bdfd4..6dda862 100644 --- a/app.c +++ b/app.c @@ -1,3 +1,2 @@ -//#include "./scratchpad.c" -//#include "./server-chat.example.c" -#include "./http1-1.example.c" +//#include "./examples/server-chat.c" +#include "./examples/http1-1.c" diff --git a/http1-1.example.c b/examples/http1-1.c similarity index 98% rename from http1-1.example.c rename to examples/http1-1.c index f86a6d0..b8f76bb 100644 --- a/http1-1.example.c +++ b/examples/http1-1.c @@ -1,5 +1,5 @@ #define DJSTD_BASIC_ENTRY -#include "core.c" +#include "../core.c" int djstd_entry(Arena *arena, StringList args) { Socket sock = socketConnect(arena, (SocketConnectInfo){ diff --git a/server-chat.example.c b/examples/server-chat.c similarity index 99% rename from server-chat.example.c rename to examples/server-chat.c index c1ab71c..f5ed4d6 100644 --- a/server-chat.example.c +++ b/examples/server-chat.c @@ -1,7 +1,6 @@ -#include "core.h" #define DJSTD_BASIC_ENTRY -#include "core.c" +#include "../core.c" #include "signal.h" Server *openServer = NULL; diff --git a/scratchpad.c b/scratchpad.c deleted file mode 100644 index fc9955d..0000000 --- a/scratchpad.c +++ /dev/null @@ -1,6 +0,0 @@ -#define DJSTD_BASIC_ENTRY -#include "core.c" - -int djstd_entry(Arena *arena, StringList args) { - return 0; -}