[Freeswitch-svn] [commit] r8322 - freeswitch/trunk/src/mod/languages/mod_lua
Freeswitch SVN
anthm at freeswitch.org
Thu May 8 19:35:01 EDT 2008
Author: anthm
Date: Thu May 8 19:35:01 2008
New Revision: 8322
Added:
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.cpp
- copied, changed from r8321, /freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
Removed:
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
Modified:
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.2008.vcproj
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.vcproj
Log:
make lua work on mac
Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.2008.vcproj
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.2008.vcproj (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.2008.vcproj Thu May 8 19:35:01 2008
@@ -270,7 +270,7 @@
>
</File>
<File
- RelativePath=".\mod_lua.c"
+ RelativePath=".\mod_lua.cpp"
>
</File>
<File
Copied: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.cpp (from r8321, /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.cpp Thu May 8 19:35:01 2008
@@ -30,11 +30,11 @@
*/
#include <switch.h>
+SWITCH_BEGIN_EXTERN_C
#include "lua.h"
#include <lauxlib.h>
#include <lualib.h>
#include "mod_lua_extra.h"
-
SWITCH_MODULE_LOAD_FUNCTION(mod_lua_load);
SWITCH_MODULE_DEFINITION(mod_lua, mod_lua_load, NULL, NULL);
@@ -140,7 +140,7 @@
stream.write_function(&stream, "'%s'%s", argv[x], x == argc-1 ? "" : ", ");
}
stream.write_function(&stream, " };");
- code = stream.data;
+ code = (char *)stream.data;
} else {
code = switch_mprintf("argv = {};");
}
@@ -370,6 +370,8 @@
return SWITCH_STATUS_SUCCESS;
}
+SWITCH_END_EXTERN_C
+
/* For Emacs:
* Local Variables:
* mode:c
Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.vcproj
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.vcproj (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.vcproj Thu May 8 19:35:01 2008
@@ -270,7 +270,7 @@
>
</File>
<File
- RelativePath=".\mod_lua.c"
+ RelativePath=".\mod_lua.cpp"
>
</File>
<File
More information about the Freeswitch-svn
mailing list