mirror of https://github.com/rusefi/lua.git
details
This commit is contained in:
parent
b3fe203c36
commit
544eeb1f9c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lbuiltin.c,v 1.81 1999/12/03 18:02:54 roberto Exp $
|
** $Id: lbuiltin.c,v 1.82 1999/12/06 11:42:18 roberto Exp roberto $
|
||||||
** Built-in functions
|
** Built-in functions
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -624,7 +624,7 @@ static void hash_query (lua_State *L) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const Hash *t = avalue(luaL_tablearg(L, 2));
|
const Hash *t = avalue(luaL_tablearg(L, 2));
|
||||||
lua_pushnumber(L, luaH_mainposition(L, t, o) - t->node);
|
lua_pushnumber(L, luaH_mainposition(t, o) - t->node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
4
ltable.h
4
ltable.h
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: ltable.h,v 1.16 1999/11/22 13:12:07 roberto Exp roberto $
|
** $Id: ltable.h,v 1.17 1999/11/23 13:58:02 roberto Exp roberto $
|
||||||
** Lua tables (hash)
|
** Lua tables (hash)
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -26,7 +26,7 @@ const TObject *luaH_getint (lua_State *L, const Hash *t, int key);
|
||||||
unsigned long luaH_hash (lua_State *L, const TObject *key);
|
unsigned long luaH_hash (lua_State *L, const TObject *key);
|
||||||
|
|
||||||
/* exported only for debugging */
|
/* exported only for debugging */
|
||||||
Node *luaH_mainposition (lua_State *L, const Hash *t, const TObject *key);
|
Node *luaH_mainposition (const Hash *t, const TObject *key);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue