summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-05-31 01:53:52 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2020-05-31 01:54:34 +0200
commitaa3f1b67e79ccf0add44f627e5ae5801b635d85b (patch)
treeea3dc15585e8191b3e70150516719cd448161d69
parentada29070a3f6e8d626cd054b904d0c22354e9bdf (diff)
bindings/lua: minor fixes to accommodate cffi-lua
-rw-r--r--src/bindings/lua/eolian.lua3
-rw-r--r--src/scripts/elua/core/util.lua5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/bindings/lua/eolian.lua b/src/bindings/lua/eolian.lua
index e9001dbc66..b847a69835 100644
--- a/src/bindings/lua/eolian.lua
+++ b/src/bindings/lua/eolian.lua
@@ -274,7 +274,8 @@ ffi.cdef [[
274 274
275 typedef struct _Eolian_Doc_Token { 275 typedef struct _Eolian_Doc_Token {
276 Eolian_Doc_Token_Type type; 276 Eolian_Doc_Token_Type type;
277 const char *text, *text_end; 277 const char *text;
278 const char *text_end;
278 } Eolian_Doc_Token; 279 } Eolian_Doc_Token;
279 280
280 int eolian_init(void); 281 int eolian_init(void);
diff --git a/src/scripts/elua/core/util.lua b/src/scripts/elua/core/util.lua
index 2e176cbdd1..019a424e61 100644
--- a/src/scripts/elua/core/util.lua
+++ b/src/scripts/elua/core/util.lua
@@ -184,11 +184,12 @@ end
184ffi.cdef [[ 184ffi.cdef [[
185 typedef struct _Str_Buf { 185 typedef struct _Str_Buf {
186 char *buf; 186 char *buf;
187 size_t len, cap; 187 size_t len;
188 size_t cap;
188 } Str_Buf; 189 } Str_Buf;
189 190
190 void *malloc(size_t); 191 void *malloc(size_t);
191 void free(void*); 192 void free(void *);
192 size_t strlen(const char *str); 193 size_t strlen(const char *str);
193 194
194 int isalnum(int c); 195 int isalnum(int c);