Fix #25042. Moving PR_Init_Log proto from prlog.h to pprio.h as it is an internal function that normally doesn't belong in the NSPR public interfaces but the Mac needs it. Changes actually from wtc, sdagley just reviewed them and is checking them in.
authorsdagley%netscape.com
Fri, 28 Jan 2000 04:00:28 +0000
changeset 1114 ae2bde9b3c286644a88893f8090864e04a646e04
parent 1111 4b2f26e8e9d5a6daa3bd71cdd96a1cac02947a70
child 1117 bb58dea01c82284903dba2d07a1370a811d26d86
push idunknown
push userunknown
push dateunknown
bugs25042
Fix #25042. Moving PR_Init_Log proto from prlog.h to pprio.h as it is an internal function that normally doesn't belong in the NSPR public interfaces but the Mac needs it. Changes actually from wtc, sdagley just reviewed them and is checking them in.
pr/include/private/pprio.h
pr/include/prlog.h
--- a/pr/include/private/pprio.h
+++ b/pr/include/private/pprio.h
@@ -224,11 +224,20 @@ NSPR_API(void) PR_NT_UseNonblock();
 ** DESCRIPTION:
 **    Cancel IO operations on fd.
 */
 NSPR_API(PRStatus) PR_NT_CancelIo(PRFileDesc *fd);
 
 
 #endif /* WIN32 */
 
+/*
+** Need external access to this on Mac so we can first set up our faux
+** environment vars
+*/
+#ifdef XP_MAC
+NSPR_API(void) PR_Init_Log(void);
+#endif
+
+
 PR_END_EXTERN_C
 
 #endif /* pprio_h___ */
--- a/pr/include/prlog.h
+++ b/pr/include/prlog.h
@@ -165,22 +165,16 @@ NSPR_API(void) PR_SetLogBuffering(PRIntn
 */
 NSPR_API(void) PR_LogPrint(const char *fmt, ...);
 
 /*
 ** Flush the log to its file.
 */
 NSPR_API(void) PR_LogFlush(void);
 
-/* Need external access to this on Mac so we can first set up our faux environment vars */
-#ifdef XP_MAC
-NSPR_API(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.
 */
 #if (defined(DEBUG) || defined(FORCE_PR_LOG)) && !defined(WIN16)
 #define PR_LOGGING 1
 
 #define PR_LOG_TEST(_module,_level) \