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/load-save.h | |
| parent | 349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff) | |
| download | crep-1566b6faa8534118c3566188181367cd0868468f.tar.gz | |
Added partial matching and introduced threads
Diffstat (limited to 'examples/dte/load-save.h')
| -rw-r--r-- | examples/dte/load-save.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/dte/load-save.h b/examples/dte/load-save.h new file mode 100644 index 0000000..e8c0a46 --- /dev/null +++ b/examples/dte/load-save.h @@ -0,0 +1,14 @@ +#ifndef LOAD_SAVE_H +#define LOAD_SAVE_H + +#include <stdbool.h> +#include "buffer.h" +#include "encoding.h" +#include "options.h" +#include "util/macros.h" + +bool load_buffer(Buffer *buffer, const char *filename, const GlobalOptions *gopts, bool must_exist) WARN_UNUSED_RESULT; +bool save_buffer(Buffer *buffer, const char *filename, const Encoding *encoding, bool crlf, bool write_bom, bool hardlinks) WARN_UNUSED_RESULT; +bool read_blocks(Buffer *buffer, int fd, bool utf8_bom) WARN_UNUSED_RESULT; + +#endif |
