summaryrefslogtreecommitdiff
path: root/examples/dte/edit.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-09 23:19:53 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-09 23:19:53 +0100
commit1566b6faa8534118c3566188181367cd0868468f (patch)
tree1de8d4b369efb5e592685a31088f798a6b63ffa1 /examples/dte/edit.h
parent349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff)
downloadcrep-1566b6faa8534118c3566188181367cd0868468f.tar.gz
Added partial matching and introduced threads
Diffstat (limited to 'examples/dte/edit.h')
-rw-r--r--examples/dte/edit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/dte/edit.h b/examples/dte/edit.h
new file mode 100644
index 0000000..2de58b8
--- /dev/null
+++ b/examples/dte/edit.h
@@ -0,0 +1,13 @@
+#ifndef EDIT_H
+#define EDIT_H
+
+#include <stdbool.h>
+#include <stddef.h>
+#include "util/macros.h"
+#include "view.h"
+
+void do_insert(View *view, const char *buf, size_t len) NONNULL_ARG(1);
+char *do_delete(View *view, size_t len, bool sanity_check_newlines) NONNULL_ARGS;
+char *do_replace(View *view, size_t del, const char *buf, size_t ins) NONNULL_ARGS_AND_RETURN;
+
+#endif