From 13a95942b6e33033e4bbbe27cc8cafc98c6924a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 20 Dec 2015 11:04:20 +0100 Subject: 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. --- view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.h') diff --git a/view.h b/view.h index 25b186f..ea8bca6 100644 --- a/view.h +++ b/view.h @@ -3,7 +3,6 @@ #include #include -#include #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 */ -- cgit v1.2.3