Bugzilla bug #76896: added PR_CALLBACK for OS/2. Thanks to Michael Kaply
Tue, 08 May 2001 21:50:22 +0000
changeset 1847 b8617ef3dea5f4d1d3c3f63466a998e12e56e49d
parent 1844 c98ce78efee5176fe0f6b5fb14addbaf52c07392
child 1850 9e670037fe4d49d11bec944cbdf12ba834543867
push idunknown
push userunknown
push dateunknown
Bugzilla bug #76896: added PR_CALLBACK for OS/2. Thanks to Michael Kaply <mkaply@us.ibm.com> for the patch. Modified files: prcmon.h, prthread.h, prtime.h
--- a/pr/include/prcmon.h
+++ b/pr/include/prcmon.h
@@ -83,13 +83,13 @@ NSPR_API(PRStatus) PR_CNotify(void *addr
 ** monitor cache.
 NSPR_API(PRStatus) PR_CNotifyAll(void *address);
 ** Set a callback to be invoked each time a monitor is recycled from the cache
 ** freelist, with the monitor's cache-key passed in address.
-NSPR_API(void) PR_CSetOnMonitorRecycle(void (*callback)(void *address));
+NSPR_API(void) PR_CSetOnMonitorRecycle(void (PR_CALLBACK *callback)(void *address));
 #endif /* prcmon_h___ */
--- a/pr/include/prthread.h
+++ b/pr/include/prthread.h
@@ -127,17 +127,17 @@ typedef enum PRThreadPriority
 ** If you want to detect the completion of the created thread, the thread
 ** should be created joinable.  Then, use PR_JoinThread to synchrnoize the
 ** termination of another thread.
 ** When the start function returns the thread exits. If it is the last
 ** PR_USER_THREAD to exit then the process exits.
 NSPR_API(PRThread*) PR_CreateThread(PRThreadType type,
-                     void (*start)(void *arg),
+                     void (PR_CALLBACK *start)(void *arg),
                      void *arg,
                      PRThreadPriority priority,
                      PRThreadScope scope,
                      PRThreadState state,
                      PRUint32 stackSize);
 ** Wait for thread termination:
--- a/pr/include/prtime.h
+++ b/pr/include/prtime.h
@@ -147,17 +147,17 @@ typedef struct PRExplodedTime {
  *         in the future.
  *       - Figure out the daylight saving time correction, tp_dst_offset.
  *         This number depends on both the geographic location and the
  *         current time.  Most of the DST rules are expressed in local
  *         current time.  If so, one should apply the time zone correction
  *         to GMT before applying the DST rules.
-typedef PRTimeParameters (PR_CALLBACK_DECL *PRTimeParamFn)(const PRExplodedTime *gmt);
+typedef PRTimeParameters (PR_CALLBACK *PRTimeParamFn)(const PRExplodedTime *gmt);
 /****************************** FUNCTIONS *****************************/
  * The PR_Now routine returns the current time relative to the
  * epoch, midnight, January 1, 1970 UTC. The units of the returned