Let the use of PR_Log() be controlled by a toplevel build option. All places that set FORCE_PR_LOG to force logging on need to wrap that #define FORCE_PR_LOG in a MOZ_LOGGING ifdef.

It's on by default. Set
--disable-logging (unix)
NO_LOGGING=1 (win32)
moz_logging = 0  (mac)
to turn it off globally.

Bug #53226 r=sspitzer,leaf,sfraser
This commit is contained in:
cls%seawood.org 2001-05-05 10:18:53 +00:00
Родитель 3c5fe6c20e
Коммит 8fe86ff395
17 изменённых файлов: 90 добавлений и 54 удалений

Просмотреть файл

@ -61,6 +61,7 @@ accessible 1
bidi 0
p3p 0
jsdebugger 0
moz_logging 1
filepath_flags
idepath ":CodeWarrior IDE Path.txt"

Просмотреть файл

@ -151,7 +151,11 @@ CFLAGS = $(CFLAGS) -DDEVELOPER_DEBUG
CFLAGS = $(CFLAGS) -FR
!endif
!ifdef NO_LOGGING
CFLAGS=$(CFLAGS) -DNS_DISABLE_LOGGING
!else
CFLAGS=$(CFLAGS) -DMOZ_LOGGING
!endif
#//-----------------------------------------------------------------------
#//

93
configure поставляемый
Просмотреть файл

@ -97,7 +97,7 @@ ac_help="$ac_help
ac_help="$ac_help
--disable-async-dns Disable separate dns thread"
ac_help="$ac_help
--disable-logging Disable nsLogging facilities"
--disable-logging Disable logging facilities"
ac_help="$ac_help
--disable-build-xpfe Disable building of mozilla/xpfe (BROKEN)"
ac_help="$ac_help
@ -10960,12 +10960,16 @@ if test "${enable_logging+set}" = set; then
fi
if test "$NS_DISABLE_LOGGING"; then
cat >> confdefs.h <<\EOF
cat >> confdefs.h <<\EOF
#define NS_DISABLE_LOGGING 1
EOF
fi
else
cat >> confdefs.h <<\EOF
#define MOZ_LOGGING 1
EOF
fi
MOZ_BUILD_XPFE=1
# Check whether --enable-build-xpfe or --disable-build-xpfe was given.
@ -11524,12 +11528,12 @@ cross_compiling=$ac_cv_prog_cxx_cross
_SAVE_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS ${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-pedantic"
echo $ac_n "checking whether C++ compiler has -pedantic long long bug""... $ac_c" 1>&6
echo "configure:11528: checking whether C++ compiler has -pedantic long long bug" >&5
echo "configure:11532: checking whether C++ compiler has -pedantic long long bug" >&5
if test "$cross_compiling" = yes; then
result="maybe"
else
cat > conftest.$ac_ext <<EOF
#line 11533 "configure"
#line 11537 "configure"
#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit(int);
@ -11538,7 +11542,7 @@ extern "C" void exit(int);
if (sizeof(long long) != 8) { return 1; }
return 0; }
EOF
if { (eval echo configure:11542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
result="no"
else
@ -11586,12 +11590,12 @@ _SAVE_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS ${_WARNINGS_CXXFLAGS}"
echo $ac_n "checking for correct overload resolution with const and templates""... $ac_c" 1>&6
echo "configure:11590: checking for correct overload resolution with const and templates" >&5
echo "configure:11594: checking for correct overload resolution with const and templates" >&5
if eval "test \"`echo '$''{'ac_nscap_nonconst_opeq_bug'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 11595 "configure"
#line 11599 "configure"
#include "confdefs.h"
template <class T>
@ -11621,7 +11625,7 @@ int main() {
; return 0; }
EOF
if { (eval echo configure:11625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:11629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_nscap_nonconst_opeq_bug="no"
else
@ -11667,16 +11671,16 @@ if test "$_IGNORE_LONG_LONG_WARNINGS"; then
_SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS ${_COMPILER_PREFIX}-Wno-long-long"
echo $ac_n "checking whether compiler supports -Wno-long-long""... $ac_c" 1>&6
echo "configure:11671: checking whether compiler supports -Wno-long-long" >&5
echo "configure:11675: checking whether compiler supports -Wno-long-long" >&5
cat > conftest.$ac_ext <<EOF
#line 11673 "configure"
#line 11677 "configure"
#include "confdefs.h"
int main() {
return(0);
; return 0; }
EOF
if { (eval echo configure:11680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:11684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} ${_COMPILER_PREFIX}-Wno-long-long"
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-Wno-long-long"
@ -11924,7 +11928,7 @@ fi
echo $ac_n "checking webshell leaks option""... $ac_c" 1>&6
echo "configure:11928: checking webshell leaks option" >&5
echo "configure:11932: checking webshell leaks option" >&5
# Check whether --enable-detect-webshell-leaks or --disable-detect-webshell-leaks was given.
if test "${enable_detect_webshell_leaks+set}" = set; then
enableval="$enable_detect_webshell_leaks"
@ -11998,7 +12002,7 @@ if test "${enable_efence+set}" = set; then
enableval="$enable_efence"
if test "$enableval" = "yes"; then
echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6
echo "configure:12002: checking for malloc in -lefence" >&5
echo "configure:12006: checking for malloc in -lefence" >&5
ac_lib_var=`echo efence'_'malloc | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12006,7 +12010,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lefence $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12010 "configure"
#line 12014 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12017,7 +12021,7 @@ int main() {
malloc()
; return 0; }
EOF
if { (eval echo configure:12021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12053,7 +12057,7 @@ fi
echo $ac_n "checking for cplus_demangle in -liberty""... $ac_c" 1>&6
echo "configure:12057: checking for cplus_demangle in -liberty" >&5
echo "configure:12061: checking for cplus_demangle in -liberty" >&5
ac_lib_var=`echo iberty'_'cplus_demangle | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12061,7 +12065,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-liberty "-liberty" $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12065 "configure"
#line 12069 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12072,7 +12076,7 @@ int main() {
cplus_demangle()
; return 0; }
EOF
if { (eval echo configure:12076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12418,7 +12422,7 @@ case "$target" in
# Extract the first word of "makeC++SharedLib_r", so it can be a program name with args.
set dummy makeC++SharedLib_r; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:12422: checking for $ac_word" >&5
echo "configure:12426: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_AIX_SHLIB_BIN'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -12563,7 +12567,7 @@ if test "$JPEG_DIR" = no; then
SYSTEM_JPEG=
else
echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
echo "configure:12567: checking for jpeg_destroy_compress in -ljpeg" >&5
echo "configure:12571: checking for jpeg_destroy_compress in -ljpeg" >&5
ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12571,7 +12575,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ljpeg $JPEG_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12575 "configure"
#line 12579 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12582,7 +12586,7 @@ int main() {
jpeg_destroy_compress()
; return 0; }
EOF
if { (eval echo configure:12586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12611,7 +12615,7 @@ if test "$SYSTEM_JPEG" = 1; then
SYSTEM_JPEG=
else
cat > conftest.$ac_ext <<EOF
#line 12615 "configure"
#line 12619 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
@ -12625,7 +12629,7 @@ else
}
EOF
if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:12633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
SYSTEM_JPEG=1
else
@ -12663,16 +12667,16 @@ if test "$ZLIB_DIR" = no; then
SYSTEM_ZLIB=
else
echo $ac_n "checking "for zlib.h"""... $ac_c" 1>&6
echo "configure:12667: checking "for zlib.h"" >&5
echo "configure:12671: checking "for zlib.h"" >&5
cat > conftest.$ac_ext <<EOF
#line 12669 "configure"
#line 12673 "configure"
#include "confdefs.h"
#include "zlib.h"
int main() {
; return 0; }
EOF
if { (eval echo configure:12676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:12680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
result="yes" SYSTEM_ZLIB=1
else
@ -12686,7 +12690,7 @@ rm -f conftest*
fi
if test "$SYSTEM_ZLIB" = 1; then
echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
echo "configure:12690: checking for gzread in -lz" >&5
echo "configure:12694: checking for gzread in -lz" >&5
ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12694,7 +12698,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lz $ZLIB_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12698 "configure"
#line 12702 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12705,7 +12709,7 @@ int main() {
gzread()
; return 0; }
EOF
if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12751,7 +12755,7 @@ if test "$PNG_DIR" = no; then
SYSTEM_PNG=
else
echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
echo "configure:12755: checking for png_get_valid in -lpng" >&5
echo "configure:12759: checking for png_get_valid in -lpng" >&5
ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12759,7 +12763,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lpng $PNG_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12763 "configure"
#line 12767 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12770,7 +12774,7 @@ int main() {
png_get_valid()
; return 0; }
EOF
if { (eval echo configure:12774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12798,7 +12802,7 @@ if test "$SYSTEM_PNG" = 1; then
SYSTEM_PNG=
else
cat > conftest.$ac_ext <<EOF
#line 12802 "configure"
#line 12806 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
@ -12812,7 +12816,7 @@ else
}
EOF
if { (eval echo configure:12816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:12820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
SYSTEM_PNG=1
else
@ -12851,7 +12855,7 @@ if test "$MNG_DIR" = no; then
SYSTEM_MNG=
else
echo $ac_n "checking for mng_initialize in -lmng""... $ac_c" 1>&6
echo "configure:12855: checking for mng_initialize in -lmng" >&5
echo "configure:12859: checking for mng_initialize in -lmng" >&5
ac_lib_var=`echo mng'_'mng_initialize | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12859,7 +12863,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmng $MNG_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12863 "configure"
#line 12867 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12870,7 +12874,7 @@ int main() {
mng_initialize()
; return 0; }
EOF
if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12898,7 +12902,7 @@ if test "$SYSTEM_MNG" = 1; then
SYSTEM_MNG=
else
cat > conftest.$ac_ext <<EOF
#line 12902 "configure"
#line 12906 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
@ -12912,7 +12916,7 @@ else
}
EOF
if { (eval echo configure:12916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
SYSTEM_MNG=1
else
@ -12978,9 +12982,9 @@ CFLAGS="$CFLAGS -I${FULLCIRCLE_DIR}"
LDFLAGS="$LDFLAGS -L${FULLCIRCLE_DIR}"
LIBS="-lfullsoft $LIBS"
echo $ac_n "checking "for FCInitialize in -lfullsoft"""... $ac_c" 1>&6
echo "configure:12982: checking "for FCInitialize in -lfullsoft"" >&5;
echo "configure:12986: checking "for FCInitialize in -lfullsoft"" >&5;
cat > conftest.$ac_ext <<EOF
#line 12984 "configure"
#line 12988 "configure"
#include "confdefs.h"
#include <stdio.h>
#include "fullsoft.h"
@ -12988,7 +12992,7 @@ int main() {
FCInitialize(); exit(0);
; return 0; }
EOF
if { (eval echo configure:12992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
FULLCIRCLE_LIBS="-I${FULLCIRCLE_DIR} -L${FULLCIRCLE_DIR} -lfullsoft" result="yes"
else
@ -13532,7 +13536,6 @@ s%@GLIB_LIBS@%$GLIB_LIBS%g
s%@LIBIDL_CFLAGS@%$LIBIDL_CFLAGS%g
s%@LIBIDL_LIBS@%$LIBIDL_LIBS%g
s%@LIBOBJS@%$LIBOBJS%g
s%@NS_DISABLE_LOGGING@%$NS_DISABLE_LOGGING%g
s%@MOZ_MAIL_NEWS@%$MOZ_MAIL_NEWS%g
s%@MOZ_EDITOR_API_LOG@%$MOZ_EDITOR_API_LOG%g
s%@MOZ_ENDER_LITE@%$MOZ_ENDER_LITE%g

Просмотреть файл

@ -2977,12 +2977,13 @@ MOZ_ARG_DISABLE_BOOL(async-dns,
NO_UNIX_ASYNC_DNS=1)
MOZ_ARG_DISABLE_BOOL(logging,
[ --disable-logging Disable nsLogging facilities],
[ --disable-logging Disable logging facilities],
NS_DISABLE_LOGGING=1)
if test "$NS_DISABLE_LOGGING"; then
AC_DEFINE(NS_DISABLE_LOGGING)
AC_DEFINE(NS_DISABLE_LOGGING)
else
AC_DEFINE(MOZ_LOGGING)
fi
AC_SUBST(NS_DISABLE_LOGGING)
dnl build mozilla/xpfe by default
MOZ_BUILD_XPFE=1

Просмотреть файл

@ -55,8 +55,10 @@
#include "nsIPrompt.h"
#include "nsIObserverService.h"
#ifdef MOZ_LOGGING
// Force PR_LOGGING so we can get JS strict warnings even in release builds
#define FORCE_PR_LOG 1
#endif
#include "prlog.h"
#include "prthread.h"

Просмотреть файл

@ -20,8 +20,10 @@
* Contributor(s):
*/
#ifdef MOZ_LOGGING
// sorry, this has to be before the pre-compiled header
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "msgCore.h"
#include "nsSmtpProtocol.h"

Просмотреть файл

@ -22,8 +22,11 @@
*/
#define DOING_PSEUDO_MAILBOXES
#ifdef MOZ_LOGGING
// sorry, this has to be before the pre-compiled header
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
// as does this
#define NS_IMPL_IDS
#include "msgCore.h" // for pre-compiled headers

Просмотреть файл

@ -21,8 +21,10 @@
* Pierre Phaneuf <pp@ludusdesign.com>
*/
#ifdef MOZ_LOGGING
// sorry, this has to be before the pre-compiled header
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "msgCore.h" // for pre-compiled headers
#include "nsMimeTypes.h"

Просмотреть файл

@ -21,8 +21,10 @@
* Pierre Phaneuf <pp@ludusdesign.com>
*/
#ifdef MOZ_LOGGING
// sorry, this has to be before the pre-compiled header
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "msgCore.h"

Просмотреть файл

@ -29,7 +29,7 @@
* 06/07/2000 Jason Eager Added check for out of disk space
*/
#ifndef FORCE_PR_LOG
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG
#endif

Просмотреть файл

@ -26,7 +26,10 @@
* Pierre Phaneuf <pp@ludusdesign.com>
*/
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build (sorry this breaks the PCH) */
#endif
#include "msgCore.h" // precompiled header...
#include "MailNewsTypes.h"
#include "nntpCore.h"

Просмотреть файл

@ -20,6 +20,10 @@
* Contributor(s):
*/
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "nsRegistry.h"
#include "nsIEnumerator.h"
#include "nsDirectoryService.h"
@ -53,7 +57,6 @@
#endif
// Logging of debug output
#define FORCE_PR_LOG /* Allow logging in the release build */
extern PRLogModuleInfo *nsComponentManagerLog;
PRUnichar widestrFormat[] = { PRUnichar('%'),PRUnichar('s'),PRUnichar(0)};

Просмотреть файл

@ -26,8 +26,10 @@ LIBRARY_NAME=nkftp_s
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
!ifndef MOZ_DEBUG
!ifndef NO_LOGGING
LCFLAGS = $(LCFLAGS) -DFORCE_PR_LOG
!endif
!endif
CPP_OBJS = \
.\$(OBJDIR)\nsFtpProtocolHandler.obj \

Просмотреть файл

@ -82,7 +82,9 @@
#include "nsRegistry.h"
// Logging of debug output
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"
PRLogModuleInfo* nsComponentManagerLog = NULL;

Просмотреть файл

@ -55,7 +55,9 @@
#define XPCOM_USE_NSGETFACTORY 1
// Logging of debug output
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"
extern PRLogModuleInfo *nsComponentManagerLog;

Просмотреть файл

@ -20,6 +20,10 @@
* Contributor(s):
*/
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "nsRegistry.h"
#include "nsIEnumerator.h"
#include "nsDirectoryService.h"
@ -53,7 +57,6 @@
#endif
// Logging of debug output
#define FORCE_PR_LOG /* Allow logging in the release build */
extern PRLogModuleInfo *nsComponentManagerLog;
PRUnichar widestrFormat[] = { PRUnichar('%'),PRUnichar('s'),PRUnichar(0)};

Просмотреть файл

@ -749,11 +749,12 @@ nsThreadPool::AddThread()
{
nsresult rv;
#ifdef DEBUG
#if defined(DEBUG) || defined(FORCE_PR_LOG)
PRUint32 cnt;
rv = mThreads->Count(&cnt);
if (NS_FAILED(rv)) return rv;
#endif
#ifdef DEBUG
if (cnt >= mMaxThreads)
return NS_ERROR_FAILURE;
#endif