From dcacc00e3750300617ba6e16eb346713f91a783a Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 21 Jan 2026 22:52:54 +0100 Subject: Remove testing data --- examples/dte/spawn.h | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 examples/dte/spawn.h (limited to 'examples/dte/spawn.h') diff --git a/examples/dte/spawn.h b/examples/dte/spawn.h deleted file mode 100644 index 659f2cd..0000000 --- a/examples/dte/spawn.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef SPAWN_H -#define SPAWN_H - -#include -#include "compiler.h" -#include "editor.h" -#include "msg.h" -#include "util/macros.h" -#include "util/string.h" -#include "util/string-view.h" - -typedef enum { - SPAWN_QUIET = 1 << 0, // Interpret SPAWN_TTY as SPAWN_NULL and don't yield terminal to child - SPAWN_PROMPT = 1 << 1, // Show "press any key to continue" prompt - SPAWN_READ_STDOUT = 1 << 2, // Read errors from stdout instead of stderr -} SpawnFlags; - -typedef enum { - SPAWN_NULL, - SPAWN_TTY, - SPAWN_PIPE, -} SpawnAction; - -typedef struct { - EditorState *editor; - const char **argv; - const char **env; - StringView input; - String outputs[2]; // For stdout/stderr - SpawnFlags flags; - SpawnAction actions[3]; -} SpawnContext; - -int spawn(SpawnContext *ctx) NONNULL_ARGS WARN_UNUSED_RESULT; -bool spawn_compiler(SpawnContext *ctx, const Compiler *c, MessageArray *msgs) NONNULL_ARGS WARN_UNUSED_RESULT; - -#endif -- cgit v1.2.3