diff options
author | larryh%netscape.com <devnull@localhost> | 2001-03-21 19:36:31 +0000 |
---|---|---|
committer | larryh%netscape.com <devnull@localhost> | 2001-03-21 19:36:31 +0000 |
commit | 5f25de682b766f3d6bd08741747875a424e8ffb4 (patch) | |
tree | b7de8deb558bcc23670d6c5feb56d883c976f961 | |
parent | fa725eb887753da06ff38e14e6a1cbd4ffae6e63 (diff) | |
download | nspr-hg-5f25de682b766f3d6bd08741747875a424e8ffb4.tar.gz |
bugzilla: 72261. fix linking problems
-rw-r--r-- | pr/src/md/os2/os2cv.c | 12 | ||||
-rw-r--r-- | pr/src/md/os2/os2inrval.c | 6 | ||||
-rw-r--r-- | pr/src/md/os2/os2misc.c | 2 | ||||
-rw-r--r-- | pr/src/md/os2/os2sem.c | 10 | ||||
-rw-r--r-- | pr/src/md/os2/os2thred.c | 26 |
5 files changed, 28 insertions, 28 deletions
diff --git a/pr/src/md/os2/os2cv.c b/pr/src/md/os2/os2cv.c index 06f0da16..67c711fa 100644 --- a/pr/src/md/os2/os2cv.c +++ b/pr/src/md/os2/os2cv.c @@ -235,7 +235,7 @@ static void md_PostNotifyToCvar(_MDCVar *cvar, _MDLock *lock, * 0 when it succeeds. * */ -PR_IMPLEMENT(PRInt32) +PRInt32 _PR_MD_NEW_CV(_MDCVar *cv) { cv->magic = _MD_MAGIC_CV; @@ -246,7 +246,7 @@ _PR_MD_NEW_CV(_MDCVar *cv) return 0; } -PR_IMPLEMENT(void) _PR_MD_FREE_CV(_MDCVar *cv) +void _PR_MD_FREE_CV(_MDCVar *cv) { cv->magic = (PRUint32)-1; return; @@ -255,7 +255,7 @@ PR_IMPLEMENT(void) _PR_MD_FREE_CV(_MDCVar *cv) /* * _PR_MD_WAIT_CV() -- Wait on condition variable */ -PR_IMPLEMENT(void) +void _PR_MD_WAIT_CV(_MDCVar *cv, _MDLock *lock, PRIntervalTime timeout ) { PRThread *thred = _PR_MD_CURRENT_THREAD(); @@ -322,21 +322,21 @@ _PR_MD_WAIT_CV(_MDCVar *cv, _MDLock *lock, PRIntervalTime timeout ) return; } /* --- end _PR_MD_WAIT_CV() --- */ -PR_IMPLEMENT(void) +void _PR_MD_NOTIFY_CV(_MDCVar *cv, _MDLock *lock) { md_PostNotifyToCvar(cv, lock, PR_FALSE); return; } -PR_IMPLEMENT(void) +void _PR_MD_NOTIFYALL_CV(_MDCVar *cv, _MDLock *lock) { md_PostNotifyToCvar(cv, lock, PR_TRUE); return; } -PR_IMPLEMENT(void) +void _PR_MD_UNLOCK(_MDLock *lock) { if (0 != lock->notified.length) { diff --git a/pr/src/md/os2/os2inrval.c b/pr/src/md/os2/os2inrval.c index 2b0517ac..469da314 100644 --- a/pr/src/md/os2/os2inrval.c +++ b/pr/src/md/os2/os2inrval.c @@ -45,7 +45,7 @@ PRInt32 _os2_highMask = 0; -PR_IMPLEMENT(void) +void _PR_MD_INTERVAL_INIT() { if (DosTmrQueryFreq(&_os2_ticksPerSec) == NO_ERROR) @@ -62,7 +62,7 @@ _PR_MD_INTERVAL_INIT() PR_ASSERT(_os2_ticksPerSec > PR_INTERVAL_MIN && _os2_ticksPerSec < PR_INTERVAL_MAX); } -PR_IMPLEMENT(PRIntervalTime) +PRIntervalTime _PR_MD_GET_INTERVAL() { QWORD count; @@ -85,7 +85,7 @@ _PR_MD_GET_INTERVAL() } } -PR_IMPLEMENT(PRIntervalTime) +PRIntervalTime _PR_MD_INTERVAL_PER_SEC() { if(_os2_ticksPerSec != -1) diff --git a/pr/src/md/os2/os2misc.c b/pr/src/md/os2/os2misc.c index d98e8af6..560fbe57 100644 --- a/pr/src/md/os2/os2misc.c +++ b/pr/src/md/os2/os2misc.c @@ -489,7 +489,7 @@ PRStatus _MD_OS2GetHostName(char *name, PRUint32 namelen) return PR_FAILURE; } -PR_IMPLEMENT(void) +void _PR_MD_WAKEUP_CPUS( void ) { return; diff --git a/pr/src/md/os2/os2sem.c b/pr/src/md/os2/os2sem.c index ddf6a318..15fdea13 100644 --- a/pr/src/md/os2/os2sem.c +++ b/pr/src/md/os2/os2sem.c @@ -40,7 +40,7 @@ #include "primpl.h" -PR_IMPLEMENT(void) +void _PR_MD_NEW_SEM(_MDSemaphore *md, PRUintn value) { int rv; @@ -52,7 +52,7 @@ _PR_MD_NEW_SEM(_MDSemaphore *md, PRUintn value) PR_ASSERT(rv == NO_ERROR); } -PR_IMPLEMENT(void) +void _PR_MD_DESTROY_SEM(_MDSemaphore *md) { int rv; @@ -61,7 +61,7 @@ _PR_MD_DESTROY_SEM(_MDSemaphore *md) } -PR_IMPLEMENT(PRStatus) +PRStatus _PR_MD_TIMED_WAIT_SEM(_MDSemaphore *md, PRIntervalTime ticks) { int rv; @@ -73,13 +73,13 @@ _PR_MD_TIMED_WAIT_SEM(_MDSemaphore *md, PRIntervalTime ticks) return PR_FAILURE; } -PR_IMPLEMENT(PRStatus) +PRStatus _PR_MD_WAIT_SEM(_MDSemaphore *md) { return _PR_MD_TIMED_WAIT_SEM(md, PR_INTERVAL_NO_TIMEOUT); } -PR_IMPLEMENT(void) +void _PR_MD_POST_SEM(_MDSemaphore *md) { int rv; diff --git a/pr/src/md/os2/os2thred.c b/pr/src/md/os2/os2thred.c index c4588786..55d07da5 100644 --- a/pr/src/md/os2/os2thred.c +++ b/pr/src/md/os2/os2thred.c @@ -52,7 +52,7 @@ _NSPR_TLS* pThreadLocalStorage = 0; _PRInterruptTable _pr_interruptTable[] = { { 0 } }; APIRET (* APIENTRY QueryThreadContext)(TID, ULONG, PCONTEXTRECORD); -PR_IMPLEMENT(void) +void _PR_MD_ENSURE_TLS(void) { if(!pThreadLocalStorage) @@ -66,7 +66,7 @@ _PR_MD_ENSURE_TLS(void) } } -PR_IMPLEMENT(void) +void _PR_MD_EARLY_INIT() { HMODULE hmod; @@ -93,7 +93,7 @@ _pr_SetThreadMDHandle(PRThread *thread) } -PR_IMPLEMENT(PRStatus) +PRStatus _PR_MD_INIT_THREAD(PRThread *thread) { #ifdef XP_OS2_EMX @@ -114,7 +114,7 @@ _PR_MD_INIT_THREAD(PRThread *thread) return (thread->md.blocked_sema.sem != 0) ? PR_SUCCESS : PR_FAILURE; } -PR_IMPLEMENT(PRStatus) +PRStatus _PR_MD_CREATE_THREAD(PRThread *thread, void (*start)(void *), PRThreadPriority priority, @@ -135,14 +135,14 @@ _PR_MD_CREATE_THREAD(PRThread *thread, return PR_SUCCESS; } -PR_IMPLEMENT(void) +void _PR_MD_YIELD(void) { /* Isn't there some problem with DosSleep(0) on OS/2? */ DosSleep(0); } -PR_IMPLEMENT(void) +void _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) { int nativePri; @@ -175,7 +175,7 @@ _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) return; } -PR_IMPLEMENT(void) +void _PR_MD_CLEAN_THREAD(PRThread *thread) { if (&thread->md.blocked_sema) { @@ -188,7 +188,7 @@ _PR_MD_CLEAN_THREAD(PRThread *thread) } } -PR_IMPLEMENT(void) +void _PR_MD_EXIT_THREAD(PRThread *thread) { _PR_MD_DESTROY_SEM(&thread->md.blocked_sema); @@ -216,7 +216,7 @@ _PR_MD_EXIT_THREAD(PRThread *thread) } -PR_IMPLEMENT(void) +void _PR_MD_EXIT(PRIntn status) { _exit(status); @@ -256,19 +256,19 @@ _PR_MD_GETTHREADAFFINITYMASK(PRThread *thread, PRUint32 *mask) } #endif /* HAVE_THREAD_AFFINITY */ -PR_IMPLEMENT(void) +void _PR_MD_SUSPEND_CPU(_PRCPU *cpu) { _PR_MD_SUSPEND_THREAD(cpu->thread); } -PR_IMPLEMENT(void) +void _PR_MD_RESUME_CPU(_PRCPU *cpu) { _PR_MD_RESUME_THREAD(cpu->thread); } -PR_IMPLEMENT(void) +void _PR_MD_SUSPEND_THREAD(PRThread *thread) { if (_PR_IS_NATIVE_THREAD(thread)) { @@ -282,7 +282,7 @@ _PR_MD_SUSPEND_THREAD(PRThread *thread) } } -PR_IMPLEMENT(void) +void _PR_MD_RESUME_THREAD(PRThread *thread) { if (_PR_IS_NATIVE_THREAD(thread)) { |