diff options
author | sdagley%netscape.com <devnull@localhost> | 1999-07-09 04:03:51 +0000 |
---|---|---|
committer | sdagley%netscape.com <devnull@localhost> | 1999-07-09 04:03:51 +0000 |
commit | cb5875d318e6e34607136c3b183c9beb8f2bdb50 (patch) | |
tree | fd249c99e4f3288d716aa838ba092ae9c728585b | |
parent | 8db6358ae61f9da5f4f82841cb5004297b3f7a6f (diff) | |
download | nspr-hg-cb5875d318e6e34607136c3b183c9beb8f2bdb50.tar.gz |
Part deux of the fix for #8491. Had to add the ability to externally re-init NSPR's log feature as we were reading the environemnt vars on the Mac after the initial init. Reviewed saari.SeaMonkey_M8_BASE
-rw-r--r-- | pr/include/prlog.h | 6 | ||||
-rw-r--r-- | pr/src/io/prlog.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pr/include/prlog.h b/pr/include/prlog.h index 50d4aba7..d8e82d51 100644 --- a/pr/include/prlog.h +++ b/pr/include/prlog.h @@ -170,6 +170,12 @@ PR_EXTERN(void) PR_LogPrint(const char *fmt, ...); */ PR_EXTERN(void) PR_LogFlush(void); +/* Need external access to this on Mac so we can first set up our faux environment vars */ +#ifdef XP_MAC +PR_EXTERN(void) PR_Init_Log(void); +#endif + + /* ** Windoze 16 can't support a large static string space for all of the ** various debugging strings so logging is not enabled for it. diff --git a/pr/src/io/prlog.c b/pr/src/io/prlog.c index 6d7e4e16..24dbfdde 100644 --- a/pr/src/io/prlog.c +++ b/pr/src/io/prlog.c @@ -481,3 +481,12 @@ PR_IMPLEMENT(void) PR_Assert(const char *s, const char *file, PRIntn ln) #endif #endif /* PR_LOGGING */ } + +#ifdef XP_MAC +PR_IMPLEMENT(void) PR_Init_Log(void) +{ +#ifdef PR_LOGGING + _PR_InitLog(); +#endif +} +#endif |