summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/TLpatches/patch-11
blob: b4b187813fc3d29aeb69f797b04d516072dbb08a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -bur LuaJIT-2.1.0-beta3-orig/src/lua.h LuaJIT-2.1.0-beta3/src/lua.h
--- LuaJIT-2.1.0-beta3-orig/src/lua.h	2017-05-01 21:05:00.000000000 +0200
+++ LuaJIT-2.1.0-beta3/src/lua.h	2017-06-19 18:26:51.143299683 +0200
@@ -103,7 +103,8 @@
 /* type for integer functions */
 typedef LUA_INTEGER lua_Integer;
 
-
+/* communication with LuaJiTTeX */
+LUA_API int luajittex_choose_hash_function; 
 
 /*
 ** state manipulation
@@ -353,6 +354,14 @@
 LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *isnum);
 LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum);
 
+
+#define LUA_OPEQ 0
+#define LUA_OPLT 1
+#define LUA_OPLE 2
+ 
+/* see http://comments.gmane.org/gmane.comp.programming.swig/18673 */
+# define lua_rawlen lua_objlen 
+
 /* From Lua 5.3. */
 LUA_API int lua_isyieldable (lua_State *L);