From a366b6d8c2e6debf247c82af3d41aa2483711c52 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 17 Aug 2000 10:18:36 +0000 Subject: 2000-08-17 Ross Johnson * All applicable: Change _pthread_ prefix to ptw32_ prefix to remove leading underscores from private library identifiers (single and double leading underscores are reserved in the ANSI C standard for compiler implementations). --- cleanup.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'cleanup.c') diff --git a/cleanup.c b/cleanup.c index 04a14ec..971828f 100644 --- a/cleanup.c +++ b/cleanup.c @@ -40,7 +40,7 @@ * SEH or C++ destructor support. */ -_pthread_cleanup_t * +ptw32_cleanup_t * pthread_pop_cleanup (int execute) /* * ------------------------------------------------------ @@ -67,9 +67,9 @@ pthread_pop_cleanup (int execute) * ------------------------------------------------------ */ { - _pthread_cleanup_t *cleanup = NULL; + ptw32_cleanup_t *cleanup = NULL; - cleanup = (_pthread_cleanup_t *) pthread_getspecific (_pthread_cleanupKey); + cleanup = (ptw32_leanup_t *) pthread_getspecific (ptw32_leanupKey); if (cleanup != NULL) { @@ -129,7 +129,7 @@ pthread_pop_cleanup (int execute) #if !defined(_MSC_VER) && !defined(__cplusplus) - pthread_setspecific (_pthread_cleanupKey, (void *) cleanup->prev); + pthread_setspecific (ptw32_cleanupKey, (void *) cleanup->prev); #endif /* !_MSC_VER && !__cplusplus */ @@ -137,11 +137,11 @@ pthread_pop_cleanup (int execute) return (cleanup); -} /* _pthread_pop_cleanup */ +} /* ptw32_pop_cleanup */ void -pthread_push_cleanup (_pthread_cleanup_t * cleanup, +pthread_push_cleanup (ptw32_cleanup_t * cleanup, void (*routine) (void *), void *arg) /* @@ -189,12 +189,12 @@ pthread_push_cleanup (_pthread_cleanup_t * cleanup, #if !defined(_MSC_VER) && !defined(__cplusplus) - cleanup->prev = (_pthread_cleanup_t *) pthread_getspecific (_pthread_cleanupKey); + cleanup->prev = (ptw32_cleanup_t *) pthread_getspecific (ptw32_cleanupKey); #endif /* !_MSC_VER && !__cplusplus */ - pthread_setspecific (_pthread_cleanupKey, (void *) cleanup); + pthread_setspecific (ptw32_cleanupKey, (void *) cleanup); -} /* _pthread_push_cleanup */ +} /* ptw32_push_cleanup */ -- cgit v1.2.3