aboutsummaryrefslogtreecommitdiff
path: root/src/api/buffer.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-07 17:59:16 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-12 19:28:30 -0300
commitb3268d071277c8967b3e3ecb60430718e1f36472 (patch)
tree37fbdeb52835cd3fff0648301292aec12f25bb12 /src/api/buffer.c
parentfc22317389fa8713f27f5a754ee142ae003f5871 (diff)
downloadrneovim-b3268d071277c8967b3e3ecb60430718e1f36472.tar.gz
rneovim-b3268d071277c8967b3e3ecb60430718e1f36472.tar.bz2
rneovim-b3268d071277c8967b3e3ecb60430718e1f36472.zip
Refactor API types and prototypes
- Split functions with multiple files in the 'api' subdirectory - Move/Add more types in the 'api/defs.h' header - Add more prototypes - Refactor scripts/msgpack-gen.lua - Move msgpack modules to 'os' subdirectory
Diffstat (limited to 'src/api/buffer.c')
-rw-r--r--src/api/buffer.c87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/api/buffer.c b/src/api/buffer.c
new file mode 100644
index 0000000000..743d8c4729
--- /dev/null
+++ b/src/api/buffer.c
@@ -0,0 +1,87 @@
+#include <stdint.h>
+#include <stdlib.h>
+
+#include "api/buffer.h"
+#include "api/defs.h"
+
+int64_t buffer_get_length(Buffer buffer, Error *err)
+{
+ abort();
+}
+
+String buffer_get_line(Buffer buffer, int64_t index, Error *err)
+{
+ abort();
+}
+
+void buffer_set_line(Buffer buffer, int64_t index, String line, Error *err)
+{
+ abort();
+}
+
+StringArray buffer_get_slice(Buffer buffer,
+ int64_t start,
+ int64_t end,
+ Error *err)
+{
+ abort();
+}
+
+void buffer_set_slice(Buffer buffer,
+ int64_t start,
+ int64_t end,
+ StringArray lines,
+ Error *err)
+{
+ abort();
+}
+
+Object buffer_get_var(Buffer buffer, String name, Error *err)
+{
+ abort();
+}
+
+void buffer_set_var(Buffer buffer, String name, Object value, Error *err)
+{
+ abort();
+}
+
+String buffer_get_option(Buffer buffer, String name, Error *err)
+{
+ abort();
+}
+
+void buffer_set_option(Buffer buffer, String name, String value, Error *err)
+{
+ abort();
+}
+
+void buffer_del_option(Buffer buffer, String name, Error *err)
+{
+ abort();
+}
+
+String buffer_get_name(Buffer buffer, Error *err)
+{
+ abort();
+}
+
+void buffer_set_name(Buffer buffer, String name, Error *err)
+{
+ abort();
+}
+
+bool buffer_is_valid(Buffer buffer)
+{
+ abort();
+}
+
+void buffer_insert(Buffer buffer, StringArray lines, int64_t lnum, Error *err)
+{
+ abort();
+}
+
+Position buffer_mark(Buffer buffer, String name, Error *err)
+{
+ abort();
+}