From de461387153e7adbe1c32dfee4ea3fd0813b0df7 Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Wed, 30 Dec 1998 16:03:43 +0000 Subject: [PATCH] add prototype and PRIVATE to several functions to reduce compiler warnings on Macintosh git-svn-id: svn://10.0.0.236/trunk@16994 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsStubContext.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mozilla/network/module/nsStubContext.cpp b/mozilla/network/module/nsStubContext.cpp index ca0577c60dc..49c53bebe9e 100644 --- a/mozilla/network/module/nsStubContext.cpp +++ b/mozilla/network/module/nsStubContext.cpp @@ -29,6 +29,10 @@ #include "nsINetSupport.h" #include "nsNetStream.h" + +void free_stub_context(MWContext *window_id); + + /****************************************************************************/ /* Beginning of MWContext Evil!!! */ /* ------------------------------- */ @@ -92,6 +96,7 @@ static nsINetSupport *getNetSupport(URL_Struct *URL_s) return netSupport; } +PRIVATE void stub_Alert(MWContext *context, const char *msg) { @@ -128,6 +133,7 @@ extern "C" char * fe_GetProgramDirectory(char *buffer, int length) { } #endif +PRIVATE XP_Bool stub_Confirm(MWContext *context, const char *msg) { @@ -157,6 +163,7 @@ XP_Bool stub_Confirm(MWContext *context, return bResult; } +PRIVATE char *stub_Prompt(MWContext *context, const char *msg, const char *def) @@ -243,6 +250,7 @@ stub_PromptUsernameAndPassword(MWContext *context, return bResult; } +PRIVATE char *stub_PromptPassword(MWContext *context, const char *msg) { @@ -542,6 +550,7 @@ extern "C" MWContext * XP_FindContextOfType (MWContext * context, /* End of MWContext Evil!!! */ /****************************************************************************/ +PRIVATE nsConnectionInfo *GetConnectionInfoFromStream(NET_StreamClass *stream) { URL_Struct *URL_s = (URL_Struct *)stream->data_object; @@ -555,6 +564,7 @@ nsConnectionInfo *GetConnectionInfoFromStream(NET_StreamClass *stream) * and fires off notifications through the nsIStreamListener interface */ +PRIVATE void stub_complete(NET_StreamClass *stream) { URL_Struct *URL_s = (URL_Struct *)stream->data_object; @@ -579,6 +589,7 @@ void stub_complete(NET_StreamClass *stream) NET_DropURLStruct(URL_s); } +PRIVATE void stub_abort(NET_StreamClass *stream, int status) { URL_Struct *URL_s = (URL_Struct *)stream->data_object; @@ -607,6 +618,7 @@ void stub_abort(NET_StreamClass *stream, int status) NET_DropURLStruct(URL_s); } +PRIVATE int stub_put_block(NET_StreamClass *stream, const char *buffer, int32 length) { PRUint32 bytesWritten; @@ -641,6 +653,7 @@ int stub_put_block(NET_StreamClass *stream, const char *buffer, int32 length) return 1; } +PRIVATE unsigned int stub_is_write_ready(NET_StreamClass *stream) { nsresult errorCode;