From 1566b6faa8534118c3566188181367cd0868468f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 9 Nov 2023 23:19:53 +0100 Subject: Added partial matching and introduced threads --- examples/dte/edit.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/dte/edit.h (limited to 'examples/dte/edit.h') 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 +#include +#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 -- cgit v1.2.3