Comparison

util-src/hashes.c @ 432:fb19a5c14d44

Fix for hashes.c and encodings.c to rename luaopen for util_*
author Matthew Wild <mwild1@gmail.com>
date Wed, 26 Nov 2008 22:45:33 +0000
parent 417:d60e63379284
child 441:4089b62b510c
comparison
equal deleted inserted replaced
431:3c89a073db53 432:fb19a5c14d44
46 { "sha256", Lsha256 }, 46 { "sha256", Lsha256 },
47 { "md5", Lmd5 }, 47 { "md5", Lmd5 },
48 { NULL, NULL } 48 { NULL, NULL }
49 }; 49 };
50 50
51 LUALIB_API int luaopen_hashes(lua_State *L) 51 LUALIB_API int luaopen_util_hashes(lua_State *L)
52 { 52 {
53 luaL_register(L, "hashes", Reg); 53 luaL_register(L, "hashes", Reg);
54 lua_pushliteral(L, "version"); /** version */ 54 lua_pushliteral(L, "version"); /** version */
55 lua_pushliteral(L, "-3.14"); 55 lua_pushliteral(L, "-3.14");
56 lua_settable(L,-3); 56 lua_settable(L,-3);