diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/dte/config.h | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz | |
Remove testing data
Diffstat (limited to 'examples/dte/config.h')
| -rw-r--r-- | examples/dte/config.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/examples/dte/config.h b/examples/dte/config.h deleted file mode 100644 index 43d4c97..0000000 --- a/examples/dte/config.h +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | #ifndef CONFIG_H | ||
| 2 | #define CONFIG_H | ||
| 3 | |||
| 4 | #include <stddef.h> | ||
| 5 | #include "command/run.h" | ||
| 6 | #include "util/macros.h" | ||
| 7 | #include "util/ptr-array.h" | ||
| 8 | #include "util/string-view.h" | ||
| 9 | #include "util/string.h" | ||
| 10 | |||
| 11 | typedef enum { | ||
| 12 | CFG_NOFLAGS = 0, | ||
| 13 | CFG_MUST_EXIST = 1 << 0, | ||
| 14 | CFG_BUILTIN = 1 << 1 | ||
| 15 | } ConfigFlags; | ||
| 16 | |||
| 17 | typedef struct { | ||
| 18 | const char *const name; | ||
| 19 | const StringView text; | ||
| 20 | } BuiltinConfig; | ||
| 21 | |||
| 22 | typedef struct { | ||
| 23 | const char *file; | ||
| 24 | unsigned int line; | ||
| 25 | } ConfigState; | ||
| 26 | |||
| 27 | extern ConfigState current_config; | ||
| 28 | |||
| 29 | struct EditorState; | ||
| 30 | |||
| 31 | String dump_builtin_configs(void); | ||
| 32 | const BuiltinConfig *get_builtin_config(const char *name) PURE; | ||
| 33 | const BuiltinConfig *get_builtin_configs_array(size_t *nconfigs); | ||
| 34 | void exec_config(CommandRunner *runner, StringView config); | ||
| 35 | int do_read_config(CommandRunner *runner, const char *filename, ConfigFlags flags) WARN_UNUSED_RESULT; | ||
| 36 | int read_config(CommandRunner *runner, const char *filename, ConfigFlags f); | ||
| 37 | void exec_builtin_color_reset(struct EditorState *e); | ||
| 38 | void exec_builtin_rc(struct EditorState *e); | ||
| 39 | void collect_builtin_configs(PointerArray *a, const char *prefix) NONNULL_ARGS; | ||
| 40 | void collect_builtin_includes(PointerArray *a, const char *prefix) NONNULL_ARGS; | ||
| 41 | |||
| 42 | #endif | ||
