bindings/lua: minor fixes to accommodate cffi-lua

This commit is contained in:
Daniel Kolesa 2020-05-31 01:53:52 +02:00
parent ada29070a3
commit aa3f1b67e7
2 changed files with 5 additions and 3 deletions

View 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);

View 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);