summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c b/Build/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c
index a3b9d1748c7..9caa8481b22 100644
--- a/Build/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c
+++ b/Build/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c
@@ -33,8 +33,8 @@
#include "lib/lib.h" /* web2c's lib, for recorder_record_input */
static const char _svn_version[] =
- "$Id: luafflib.c 4094 2011-03-28 12:24:59Z taco $ "
- "$URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.66.0/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c $";
+ "$Id: luafflib.c 4524 2012-12-20 15:38:02Z taco $ "
+ "$URL: http://foundry.supelec.fr/svn/luatex/trunk/source/texk/web2c/luatexdir/luafontloader/src/luafflib.c $";
extern char **gww_errors;
extern int gww_error_count;
@@ -165,7 +165,7 @@ int is_userdata(lua_State *L, int b, char *utype)
if (lua_type(L,b) == LUA_TUSERDATA) {
lua_getmetatable(L, b);
luaL_getmetatable(L, utype);
- if (lua_equal(L, -2, -1)) {
+ if (lua_compare(L, -2, -1, LUA_OPEQ)) {
lua_pop(L,2);
return 1;
}
@@ -840,7 +840,7 @@ void handle_generic_pst(lua_State * L, struct generic_pst *pst)
lua_setfield(L, -2, next->subtable->subtable_name);
lua_getfield(L, -1, next->subtable->subtable_name);
}
- k = lua_objlen(L, -1) + 1;
+ k = lua_rawlen(L, -1) + 1;
lua_pushnumber(L, k);
lua_createtable(L, 0, 4);
do_handle_generic_pst(L, next);
@@ -3552,7 +3552,7 @@ int ff_get_ttc_index(char *ffname, char *psname)
return -1;
}
-static struct luaL_reg fllib[] = {
+static struct luaL_Reg fllib[] = {
{"open", ff_open},
{"info", ff_info},
{"close", ff_close},
@@ -3563,7 +3563,7 @@ static struct luaL_reg fllib[] = {
{NULL, NULL}
};
-static const struct luaL_reg fflib_m[] = {
+static const struct luaL_Reg fflib_m[] = {
{"__gc", ff_close}, /* doesnt work yet! */
{"__index", ff_index},
{NULL, NULL} /* sentinel */