From 0bba31912665a82f848642e6b4247071a3ee177a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 17 Mar 2025 19:29:28 -0400 Subject: Big overhaul: - Clean up environment code using type strings instead of manually defining types - Add Commands module - Move Shell lang into an example module that uses Commands module - Fix some bugs with chained library dependencies --- stdlib/shell.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 stdlib/shell.h (limited to 'stdlib/shell.h') diff --git a/stdlib/shell.h b/stdlib/shell.h deleted file mode 100644 index 517a3609..00000000 --- a/stdlib/shell.h +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -// A lang for Shell Command Language - -#include -#include - -#include "arrays.h" -#include "datatypes.h" -#include "optionals.h" -#include "text.h" -#include "types.h" - -#define Shell_t Text_t -#define OptionalShell_t Text_t -#define Shell(text) ((Shell_t)Text(text)) -#define Shells(...) ((Shell_t)Texts(__VA_ARGS__)) - -OptionalClosure_t Shell$by_line(Shell_t command); -Shell_t Shell$escape_text(Text_t text); -Shell_t Shell$escape_path(Path_t path); -Shell_t Shell$escape_text_array(Array_t texts); -Shell_t Shell$escape_path_array(Array_t paths); -OptionalArray_t Shell$run_bytes(Shell_t command); -OptionalText_t Shell$run(Shell_t command); -OptionalInt32_t Shell$execute(Shell_t command); - -#define Shell$hash Text$hash -#define Shell$compare Text$compare -#define Shell$equal Text$equal - -extern const TypeInfo_t Shell$info; - -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 - -- cgit v1.2.3