aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-12-20 11:04:20 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-12-26 21:29:15 +0100
commit13a95942b6e33033e4bbbe27cc8cafc98c6924a2 (patch)
tree04acfeef0b83b4d6e08212948313242b57779f73 /view.h
parent39e2b6f1b7a750af55ceeadab977354919d0ccf5 (diff)
downloadvis-13a95942b6e33033e4bbbe27cc8cafc98c6924a2.tar.gz
vis-13a95942b6e33033e4bbbe27cc8cafc98c6924a2.tar.xz
vis: refactor Lua integration
Lua support can now be disabled at compile time using: $ make CONFIG_LUA=0 This commit also adds an initial Lua API and provides a few default hooks. We now also require Lua >= 5.2 due to the uservalue constructs. In principle the same functionality could be implemented using function environments from Lua 5.1.
Diffstat (limited to 'view.h')
-rw-r--r--view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/view.h b/view.h
index 25b186f..ea8bca6 100644
--- a/view.h
+++ b/view.h
@@ -3,7 +3,6 @@
#include <stddef.h>
#include <stdbool.h>
-#include <lua.h>
#include "register.h"
#include "text.h"
#include "ui.h"
@@ -11,6 +10,7 @@
typedef struct View View;
typedef struct Cursor Cursor;
typedef struct Selection Selection;
+typedef struct lua_State lua_State;
typedef struct {
int width; /* display width i.e. number of columns ocupied by this character */