diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-09 23:19:53 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-11-09 23:19:53 +0100 |
| commit | 1566b6faa8534118c3566188181367cd0868468f (patch) | |
| tree | 1de8d4b369efb5e592685a31088f798a6b63ffa1 /examples/dte/commands.h | |
| parent | 349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff) | |
| download | crep-1566b6faa8534118c3566188181367cd0868468f.tar.gz | |
Added partial matching and introduced threads
Diffstat (limited to 'examples/dte/commands.h')
| -rw-r--r-- | examples/dte/commands.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/dte/commands.h b/examples/dte/commands.h new file mode 100644 index 0000000..cfebdd2 --- /dev/null +++ b/examples/dte/commands.h @@ -0,0 +1,22 @@ +#ifndef COMMANDS_H +#define COMMANDS_H + +#include <stdbool.h> +#include "command/run.h" +#include "config.h" +#include "util/macros.h" +#include "util/ptr-array.h" +#include "util/string-view.h" + +extern const CommandSet normal_commands; + +struct EditorState; + +const Command *find_normal_command(const char *name) NONNULL_ARGS; +const char *find_normal_alias(const char *name, void *userdata) NONNULL_ARGS; +bool handle_normal_command(struct EditorState *e, const char *cmd, bool allow_recording) NONNULL_ARGS; +void exec_normal_config(struct EditorState *e, StringView config) NONNULL_ARGS; +int read_normal_config(struct EditorState *e, const char *filename, ConfigFlags flags) NONNULL_ARGS; +void collect_normal_commands(PointerArray *a, const char *prefix) NONNULL_ARGS; + +#endif |
