bindings/lua: minor fixes to accommodate cffi-lua
authorDaniel Kolesa <d.kolesa@samsung.com>
Sat, 30 May 2020 23:53:52 +0000 (01:53 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 31 May 2020 21:37:04 +0000 (06:37 +0900)
src/bindings/lua/eolian.lua
src/scripts/elua/core/util.lua

index e9001db..b847a69 100644 (file)
@@ -274,7 +274,8 @@ ffi.cdef [[
 
     typedef struct _Eolian_Doc_Token {
         Eolian_Doc_Token_Type type;
-        const char *text, *text_end;
+        const char *text;
+        const char *text_end;
     } Eolian_Doc_Token;
 
     int eolian_init(void);
index 2e176cb..019a424 100644 (file)
@@ -184,11 +184,12 @@ end
 ffi.cdef [[
     typedef struct _Str_Buf {
         char  *buf;
-        size_t len, cap;
+        size_t len;
+        size_t cap;
     } Str_Buf;
 
     void *malloc(size_t);
-    void    free(void*);
+    void    free(void *);
     size_t  strlen(const char *str);
 
     int isalnum(int c);