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/file-option.h | |
| parent | 349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff) | |
| download | crep-1566b6faa8534118c3566188181367cd0868468f.tar.gz | |
Added partial matching and introduced threads
Diffstat (limited to 'examples/dte/file-option.h')
| -rw-r--r-- | examples/dte/file-option.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/dte/file-option.h b/examples/dte/file-option.h new file mode 100644 index 0000000..ab1e930 --- /dev/null +++ b/examples/dte/file-option.h @@ -0,0 +1,32 @@ +#ifndef FILE_OPTION_H +#define FILE_OPTION_H + +#include <stdbool.h> +#include "buffer.h" +#include "util/macros.h" +#include "util/ptr-array.h" +#include "util/string-view.h" +#include "util/string.h" + +typedef enum { + FOPTS_FILENAME, + FOPTS_FILETYPE, +} FileOptionType; + +struct EditorState; + +void set_file_options(struct EditorState *e, Buffer *buffer) NONNULL_ARGS; +void set_editorconfig_options(Buffer *buffer) NONNULL_ARGS; +void dump_file_options(const PointerArray *file_options, String *buf); +void free_file_options(PointerArray *file_options); + +NONNULL_ARGS WARN_UNUSED_RESULT +bool add_file_options ( + PointerArray *file_options, + FileOptionType type, + StringView str, + char **strs, + size_t nstrs +); + +#endif |
