r= alecf
OS/2 bring up continues - VisualAge PR_CALLBACKs and #ifdefs
This commit is contained in:
mkaply%us.ibm.com 2000-05-02 23:16:41 +00:00
parent 358e4b94a7
commit fbc8077a05
3 changed files with 20 additions and 7 deletions

View File

@ -19,6 +19,12 @@
*
* Contributor(s):
* Pierre Phaneuf <pp@ludusdesign.com>
* This Original Code has been modified by IBM Corporation. Modifications made by IBM
* described herein are Copyright (c) International Business Machines Corporation, 2000.
* Modifications to Mozilla code or documentation identified per MPL Section 3.3
*
* Date Modified by Description of modification
* 04/20/2000 IBM Corp. OS/2 VisualAge build.
*/
#include "nsIPref.h"
@ -2867,7 +2873,7 @@ GatherSizeReportData(nsISizeOfHandler* aHandler,
}
}
static int CompareEntries(const void* ve1, const void* ve2, void* closure)
static int PR_CALLBACK CompareEntries(const void* ve1, const void* ve2, void* closure)
{
SizeReportEntry* e1 = (SizeReportEntry*) ve1;
SizeReportEntry* e2 = (SizeReportEntry*) ve2;

View File

@ -19,6 +19,12 @@
*
* Contributor(s):
* Pierre Phaneuf <pp@ludusdesign.com>
* This Original Code has been modified by IBM Corporation. Modifications made by IBM
* described herein are Copyright (c) International Business Machines Corporation, 2000.
* Modifications to Mozilla code or documentation identified per MPL Section 3.3
*
* Date Modified by Description of modification
* 04/20/2000 IBM Corp. OS/2 VisualAge build.
*/
#include "nsCOMPtr.h"
#include "nsWebCrawler.h"
@ -92,7 +98,7 @@ AtomHashTable::AtomHashTable()
nsnull, nsnull);
}
static PR_CALLBACK PRIntn
static PRIntn PR_CALLBACK
DestroyEntry(PLHashEntry *he, PRIntn i, void *arg)
{
((nsIAtom*)he->key)->Release();
@ -971,8 +977,8 @@ struct ExitEvent : public PLEvent {
nsWebCrawler* crawler;
static PR_CALLBACK void HandleMe(ExitEvent* e);
static PR_CALLBACK void DeleteMe(ExitEvent* e);
static void PR_CALLBACK HandleMe(ExitEvent* e);
static void PR_CALLBACK DeleteMe(ExitEvent* e);
};
ExitEvent::ExitEvent(nsWebCrawler* aCrawler)
@ -1026,8 +1032,8 @@ struct LoadEvent : public PLEvent {
nsString url;
nsWebCrawler* crawler;
static PR_CALLBACK void HandleMe(LoadEvent* e);
static PR_CALLBACK void DeleteMe(LoadEvent* e);
static void PR_CALLBACK HandleMe(LoadEvent* e);
static void PR_CALLBACK DeleteMe(LoadEvent* e);
};
LoadEvent::LoadEvent(nsWebCrawler* aCrawler, const nsString& aURL)

View File

@ -18,6 +18,7 @@
* Rights Reserved.
*
* Contributor(s):
* IBM Corp.
*/
#include "nsCOMPtr.h"
#include "nsIPref.h"
@ -64,7 +65,7 @@
#include "nsXPIDLString.h"
#if defined(WIN32)
#if defined(WIN32) || defined(XP_OS2_VACPP)
#include <strstrea.h>
#else
#include <strstream.h>