lm.c
changeset 17 ab4470465a0c
parent 16 09b375e9ce32
child 19 d775d7289fe4
--- a/lm.c	Fri Mar 27 09:43:41 2009 +0200
+++ b/lm.c	Sun Apr 05 14:55:51 2009 +0300
@@ -21,33 +21,33 @@
 
 int luaopen_loudmouth (lua_State *L)
 {
-	lua_pushconststring (L, LLM_OBJREGISTRY); // 1 registry key
+	lua_pushliteral (L, LLM_OBJREGISTRY); // 1 registry key
 	lua_newtable (L);                    // 2 registry value (table)
 	lua_createtable (L, 0, 1);           // 3 metatable
-	lua_pushconststring (L, "__mode");        // 4 metatable key
-	lua_pushconststring (L, "v");             // 5 metatable value
+	lua_pushliteral (L, "__mode");        // 4 metatable key
+	lua_pushliteral (L, "v");             // 5 metatable value
 	lua_settable (L, -3);                // 3 metatable
 	lua_setmetatable (L, -2);            // 2 registry value
 	lua_rawset (L, LUA_REGISTRYINDEX);   // 0
 	
 	lua_createtable (L, 6, 0);
 
-	lua_pushconststring (L, "message_node");
+	lua_pushliteral (L, "message_node");
 	luaopen_lm_message_node (L);
 	lua_settable (L, -3);
-	lua_pushconststring (L, "message");
+	lua_pushliteral (L, "message");
 	luaopen_lm_message (L);
 	lua_settable (L, -3);
-	lua_pushconststring (L, "message_handler");
+	lua_pushliteral (L, "message_handler");
 	luaopen_lm_message_handler (L);
 	lua_settable (L, -3);
-	lua_pushconststring (L, "proxy");
+	lua_pushliteral (L, "proxy");
 	luaopen_lm_proxy (L);
 	lua_settable (L, -3);
-	lua_pushconststring (L, "ssl");
+	lua_pushliteral (L, "ssl");
 	luaopen_lm_ssl (L);
 	lua_settable (L, -3);
-	lua_pushconststring (L, "connection");
+	lua_pushliteral (L, "connection");
 	luaopen_lm_connection (L);
 	lua_settable (L, -3);