Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
edburns%acm.org 383322dfbb bug: http://bugzilla.mozilla.org/show_bug.cgi?id=34665
This change replaces all printfs in src_moz with calls to PR_LOG.  No
printfs should appear in src_moz anymore.

You won't see any console output from native code unless you define

NSPR_LOG_MODULES=webclient:3

in your environment.  Furthermore, if you want PR_LOG statements in
webclient to go to a file instead, define

WEBCLIENT_LOG_FILE=C:\VALIDDIR\filename.txt

in your environment.  This file will get created fresh each time, since
PR_LOG uses fopen(filename, "w").

New Files:

I've created ns_globals.h, included from jni_util.h.  ns_globals.h holds
an extern * to a struct used in the PR_LOG calls.

Significant changes:

WrapperFactoryImpl.cpp

nativeAppInitialize(){

Added:

#if DEBUG_RAPTOR_CANVAS
    prLogModuleInfo = PR_NewLogModule("webclient");
    const char *webclientLogFile = PR_GetEnv("WEBCLIENT_LOG_FILE");
    if (nsnull != webclientLogFile) {
        PR_SetLogFile(webclientLogFile);
        // If this fails, it just goes to stdout/stderr
    }
#endif
}

All the other files in this checkin follow the this pattern:

Before checkin:

       printf("InitMozillaStuff(%lx): Create the Event Queue for the UI thread...\n",
               initContext);

After checkin:

    if (prLogModuleInfo) {
        PR_LOG(prLogModuleInfo, 3,
               ("InitMozillaStuff(%lx): Create the Event Queue for the UI thread...\n",
               initContext));
    }

See http://lxr.mozilla.org/mozilla/source/nsprpub/pr/include/prlog.h#190

for the definition of PR_LOG
2000-04-05 21:38:27 +00:00
apache/gzip/src
build Adding a script to print out which of a given list of files do not end with a newline. Source files that do not end with a newline break at least the HP-UX compiler. Adding newlines to all of the source files found at this point. 2000-04-02 07:17:25 +00:00
calendar
caps # 34082 2000-04-05 02:32:07 +00:00
cck updating this file to reflect Mozilla end-user text 2000-04-04 18:57:12 +00:00
chrome making string conversions explicit 2000-04-03 05:13:05 +00:00
cmd
config DOESN'T IMPACT SEAMONKEY since it's inside 2000-04-05 18:56:00 +00:00
content Bug 29507. Clean up PresShell refcounting. r=troy 2000-04-05 05:58:06 +00:00
db Fix for EXTRA_DSO_LIBS in rules.mk 2000-04-04 07:37:50 +00:00
dbm
directory
docshell Seems the conditional as a parameter was too much for speedracer's little brain. 2000-04-04 03:31:57 +00:00
dom Eliminating the last traces of NS_COMFALSE from the DOM code, fixes M15 bug #11594. 2000-04-05 02:40:08 +00:00
editor Minor cleanup, removal of some unused parameters. r=cmanske. 2000-04-05 00:06:53 +00:00
ef
embedding add .cvsignore file 2000-04-03 02:06:14 +00:00
expat
extensions xmlterm changes only; 2000-04-05 05:15:14 +00:00
gc/boehm Make gc/boehm compile under linux. Compiles but doesn't necessarily run programs. Bug #31287 2000-04-04 04:48:44 +00:00
gconfig
gfx bug 30382; mostly written by tor@cs.brown.edu, partly by me; re-use the 2000-04-05 03:56:15 +00:00
grendel
htmlparser Fix for 2000-04-04 23:58:40 +00:00
include
intl making the StringBundleService use threadsafe ISupports so I can proxy it 2000-04-05 06:44:17 +00:00
java bug: http://bugzilla.mozilla.org/show_bug.cgi?id=34665 2000-04-05 21:38:27 +00:00
jpeg
js Added default case to avoid warning 2000-04-05 21:26:01 +00:00
js2 Added default case to avoid warning 2000-04-05 21:26:01 +00:00
l10n
layout Last solaris build bustage fix. 2000-04-05 08:20:24 +00:00
lib 27857 nsIFile - MAC not completely implemented 2000-04-03 01:50:19 +00:00
mailnews Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
modules Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
msgsdk
mstone DNS problem didnt actually exist 2000-04-01 00:30:18 +00:00
netwerk Bug #34561 --> we were reporting false timeouts with connection based protocols 2000-04-05 21:15:44 +00:00
network/protocol/http
nsprpub Bugzilla bug #29427: restore the realclean/clobber_all targets to their 2000-04-05 20:18:13 +00:00
nunet
parser Fix for 2000-04-04 23:58:40 +00:00
plugin/oji/MRJ
privacy
profile Fix bug # 33657: add "UTF-8" encoding meta-tag into default bookmark file. 2000-04-05 01:49:57 +00:00
rdf Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
README/mozilla
security Change definition of $FILES. Don't include contents of CVS subdirectory. 2000-04-05 01:11:53 +00:00
silentdl
string Ok, the |typename| stuff wasn't really necessary, and caused problems on VC++. r=scc 2000-04-04 09:21:57 +00:00
suite
sun-java
timer
tools
tripledb
uriloader 31054 'TEXT' file which contains non ASCII does not open correctly 2000-04-05 03:03:50 +00:00
view Ugh, forgot another EXTRA_DSO_LIBS. 2000-04-04 11:06:30 +00:00
wallet
webshell Moved static MOZ_COMPONENT_NSPR_LIBS, MOZ_COMPONENT_XPCOM_LIBS, MOZ_COMPONENT_LIBS definitions from configure.in to config.mk. Replaced -lxpcom in Makefiles to $(XPCOM_LIBS) so that we can optionally link against -lboehm when needed. Bug #31287 2000-04-04 04:46:38 +00:00
webtools Extra special disgusting hack: if we are ordering by target_milestone, 2000-04-05 00:09:22 +00:00
widget Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
xpcom update nsStringX classes; not part of build 2000-04-05 06:11:03 +00:00
xpfc
xpfe Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
xpinstall Forgot MOZ_REGISTRY_LIBS needed for os/2. 2000-04-05 06:58:57 +00:00
.cvsignore
aclocal.m4
allmakefiles.sh Changes to get the BeOS build running. Patch provided by Yannick Koehler <koehler@mythrium.com> . 2000-04-05 02:12:26 +00:00
client.mak
client.mk
configure Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
configure.in Minor changes to incoporate OS/2 into our build system. Bug #34106 2000-04-05 06:08:04 +00:00
LEGAL
LICENSE
Makefile.in
makefile.win
nglayout.mac
nglayout.mk
trex.mak
trex.mk