[Freeswitch-svn] [commit] r8204 - freeswitch/trunk/src/mod/languages/mod_lua

Freeswitch SVN brian at freeswitch.org
Fri Apr 25 20:47:07 EDT 2008


Author: brian
Date: Fri Apr 25 20:47:07 2008
New Revision: 8204

Modified:
   freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c

Log:
cleanup a tiny bit

Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c	Fri Apr 25 20:47:07 2008
@@ -25,15 +25,14 @@
  * 
  * Anthony Minessale II <anthmct at yahoo.com>
  *
- * mod_lua.c -- Framework Demo Module
+ * mod_lua.c -- Lua
  *
  */
+
 #include <switch.h>
 #include "lua.h"
 #include <lauxlib.h>
 #include <lualib.h>
-//#include <tolua.h>
-//#include "mod_lua_wrap.h"
 
 SWITCH_MODULE_LOAD_FUNCTION(mod_lua_load);
 SWITCH_MODULE_DEFINITION(mod_lua, mod_lua_load, NULL, NULL);
@@ -42,7 +41,6 @@
 	switch_memory_pool_t *pool;
 } globals;
 
-
 int luaopen_freeswitch(lua_State* L);
 
 static lua_State *lua_init(void) 
@@ -95,7 +93,6 @@
 	return status;
 }
 
-
 static void lua_parse_and_execute(lua_State *L, char *input_code)
 {
 	int error = 0;
@@ -171,8 +168,8 @@
 	return 0;
 }
 
-SWITCH_STANDARD_APP(lua_function) {
-
+SWITCH_STANDARD_APP(lua_function)
+{
 	lua_State *L = lua_init();
 	char code[1024] = "";
 	snprintf(code, sizeof(code), "~session = LUASession:new(\"%s\");", switch_core_session_get_uuid(session));



More information about the Freeswitch-svn mailing list