From fb95e5d026b74cc7b14d600370e6ee4bda5618a3 Mon Sep 17 00:00:00 2001 From: Ellen Arvidsson Date: Fri, 11 Apr 2025 23:43:51 +0200 Subject: [PATCH] first run of context --- include/spho/spho.h | 5 +---- src/run/devcheck.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/include/spho/spho.h b/include/spho/spho.h index 780e5d7..b33b975 100644 --- a/include/spho/spho.h +++ b/include/spho/spho.h @@ -1,10 +1,7 @@ #ifndef _SPHO_SPHO_H #define _SPHO_SPHO_H -#include - #include "spho/err.h" - -#include "spho/data.h" +#include "spho/ctx.h" #endif diff --git a/src/run/devcheck.c b/src/run/devcheck.c index 9a59086..c975cc0 100644 --- a/src/run/devcheck.c +++ b/src/run/devcheck.c @@ -1,6 +1,18 @@ +#include + +#include "spho/spho.h" int main(void) { + struct spho_ctx *ctx; + + ctx = NULL; + + if ((ctx = spho_ctx_create()) == NULL) + return (-1); + + spho_ctx_destroy(ctx); + return (0); }