Debian Codegraph @

libs/luajit/TLpatches/patch-lauxlib

raw
1 diff -bu a/source/libs/luajit/LuaJIT-src/src/lauxlib.h b/source/libs/luajit/LuaJIT-src/src/lauxlib.h
2 --- a/source/libs/luajit/LuaJIT-src/src/lauxlib.h
3 +++ b/source/libs/luajit/LuaJIT-src/src/lauxlib.h
4 @@ -93,6 +93,31 @@
5
6
7 /*
8 +** {======================================================
9 +** File handles for IO library
10 +** =======================================================
11 +*/
12 +
13 +/*
14 +** A file handle is a userdata with metatable 'LUA_FILEHANDLE' and
15 +** initial structure 'luaL_Stream' (it may contain other fields
16 +** after that initial structure).
17 +*/
18 +
19 +#define LUA_FILEHANDLE "FILE*"
20 +
21 +
22 +typedef struct luaL_Stream {
23 + FILE *f; /* stream (NULL for incompletely created streams) */
24 + lua_CFunction closef; /* to close stream (NULL for closed streams) */
25 +} luaL_Stream;
26 +
27 +/* }====================================================== */
28 +
29 +
30 +
31 +
32 +/*
33 ** ===============================================================
34 ** some useful macros
35 ** ===============================================================
36 @@ -155,6 +180,12 @@
37 LUALIB_API void (luaL_addvalue) (luaL_Buffer *B);
38 LUALIB_API void (luaL_pushresult) (luaL_Buffer *B);
39
40 +/* -- Luajittex needs this one because it's faster than make it with Lua -- */
41 +LUA_API int (RESERVED_lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
42 +/* Luajittex needs this one because it overloads loadfile */
43 +LUALIB_API int (RESERVED_load_aux_JIT) (lua_State *L, int status, int envarg);
44 +
45 +
46
47 /* }====================================================== */
48