[Freeswitch-svn] [commit] r2354 - in freeswitch/trunk: . build libs src src/mod/languages/mod_spidermonkey src/mod/loggers/mod_syslog
Freeswitch SVN
anthm at freeswitch.org
Mon Aug 21 20:56:28 EDT 2006
Author: anthm
Date: Mon Aug 21 20:56:27 2006
New Revision: 2354
Modified:
freeswitch/trunk/Makefile.in
freeswitch/trunk/build/buildlib.sh
freeswitch/trunk/build/modmake.sh
freeswitch/trunk/libs/mozilla.build.sh
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c
freeswitch/trunk/src/switch_console.c
Log:
optimizations
Modified: freeswitch/trunk/Makefile.in
==============================================================================
--- freeswitch/trunk/Makefile.in (original)
+++ freeswitch/trunk/Makefile.in Mon Aug 21 20:56:27 2006
@@ -1108,6 +1108,7 @@
@if [ ! -f $(PWD)/modules.conf ] ; then cp $(PWD)/modules.conf.in $(PWD)/modules.conf ; fi
@echo making modules
@rm -f build/freeswitch.env
+ @if [ -f $(PWD)/modbuild.env ] ; then cp $(PWD)/modbuild.env build/freeswitch.env ; fi
@./build/addenv.sh build/freeswitch.env MAKE "$(MAKE)"
@./build/addenv.sh build/freeswitch.env DYLD_LIBRARY_PATH "$(PREFIX)/lib:$DYLD_LIBRARY_PATH"
@./build/addenv.sh build/freeswitch.env LD_LIBRARY_PATH "$(PREFIX)/lib:$LD_LIBRARY_PATH"
Modified: freeswitch/trunk/build/buildlib.sh
==============================================================================
--- freeswitch/trunk/build/buildlib.sh (original)
+++ freeswitch/trunk/build/buildlib.sh Mon Aug 21 20:56:27 2006
@@ -67,7 +67,7 @@
MAKE=$MAKE ../$uncompressed.build.sh $@
else
$MAKE clean 2>&1
- sh ./configure $@
+ sh CFLAGS=$MOD_CFLAGS ./configure $@
if [ $? = 0 ] ; then
$MAKE
Modified: freeswitch/trunk/build/modmake.sh
==============================================================================
--- freeswitch/trunk/build/modmake.sh (original)
+++ freeswitch/trunk/build/modmake.sh Mon Aug 21 20:56:27 2006
@@ -20,8 +20,8 @@
fi
if [ -f $mod/Makefile ] ; then
- MODNAME=$end $make -C $mod $@
+ CFLAGS="$MOD_CFLAGS $CFLAGS " MODNAME=$end $make -C $mod $@
else
- MODNAME=$end $make -f $pwd/generic_mod.mk -C $mod $@
+ CFLAGS="$MOD_CFLAGS $CFLAGS" MODNAME=$end $make -f $pwd/generic_mod.mk -C $mod $@
fi
Modified: freeswitch/trunk/libs/mozilla.build.sh
==============================================================================
--- freeswitch/trunk/libs/mozilla.build.sh (original)
+++ freeswitch/trunk/libs/mozilla.build.sh Mon Aug 21 20:56:27 2006
@@ -5,7 +5,7 @@
opts="--enable-64bit"
fi
-cd nsprpub && ./configure $opts && make
+cd nsprpub && ./configure $opts && $MAKE
-cd ../js/src && JS_THREADSAFE=1 OTHER_LIBS="-L../../../mozilla/nsprpub/dist/lib" INCLUDES="-I../../../mozilla/nsprpub/dist/include/nspr" make -f Makefile.ref `find . -name libjs.a`
+cd ../js/src && JS_THREADSAFE=1 JS_HAS_FILE_OBJECT=1 OTHER_LIBS="-L../../../mozilla/nsprpub/dist/lib" INCLUDES="-I../../../mozilla/nsprpub/dist/include/nspr" $MAKE -f Makefile.ref `find . -name libjs.a`
Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c Mon Aug 21 20:56:27 2006
@@ -456,7 +456,7 @@
for(d = dtmf; *d; d++) {
cb_state->ret_buffer[cb_state->ret_buffer_len++] = *d;
if ((cb_state->ret_buffer_len > cb_state->digit_count)||
- (cb_state->ret_buffer_len > sizeof(cb_state->ret_buffer))||
+ (cb_state->ret_buffer_len > (int32_t) sizeof(cb_state->ret_buffer))||
(cb_state->ret_buffer_len >= cb_state->digit_count)
) {
return SWITCH_STATUS_FALSE;
@@ -573,7 +573,7 @@
for(d = dtmf; *d; d++) {
cb_state->ret_buffer[cb_state->ret_buffer_len++] = *d;
if ((cb_state->ret_buffer_len > cb_state->digit_count)||
- (cb_state->ret_buffer_len > sizeof(cb_state->ret_buffer))||
+ (cb_state->ret_buffer_len > (int32_t) sizeof(cb_state->ret_buffer))||
(cb_state->ret_buffer_len >= cb_state->digit_count)
) {
return SWITCH_STATUS_FALSE;
@@ -642,7 +642,7 @@
for(d = dtmf; *d; d++) {
cb_state->ret_buffer[cb_state->ret_buffer_len++] = *d;
if ((cb_state->ret_buffer_len > cb_state->digit_count)||
- (cb_state->ret_buffer_len > sizeof(cb_state->ret_buffer))||
+ (cb_state->ret_buffer_len > (int32_t) sizeof(cb_state->ret_buffer))||
(cb_state->ret_buffer_len >= cb_state->digit_count)
) {
return SWITCH_STATUS_FALSE;
Modified: freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c (original)
+++ freeswitch/trunk/src/mod/loggers/mod_syslog/mod_syslog.c Mon Aug 21 20:56:27 2006
@@ -105,8 +105,8 @@
SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **interface, char *filename)
{
- *interface = &console_module_interface;
switch_status_t status;
+ *interface = &console_module_interface;
if ((status=load_config()) != SWITCH_STATUS_SUCCESS) {
return status;
Modified: freeswitch/trunk/src/switch_console.c
==============================================================================
--- freeswitch/trunk/src/switch_console.c (original)
+++ freeswitch/trunk/src/switch_console.c Mon Aug 21 20:56:27 2006
@@ -176,9 +176,9 @@
{
char hostname[256];
char cmd[2048];
- int running = 1, x = 0, activity = 1;
+ int running = 1, activity = 1;
char *retbuf = (char *)malloc(CMD_BUFLEN);
-
+ switch_size_t x = 0;
assert(retbuf != NULL);
gethostname(hostname, sizeof(hostname));
More information about the Freeswitch-svn
mailing list