summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
authorrpj <rpj>2000-08-17 10:18:36 +0000
committerrpj <rpj>2000-08-17 10:18:36 +0000
commita366b6d8c2e6debf247c82af3d41aa2483711c52 (patch)
treee2a2f6785897a8789f88403e99d4f03dce301607 /cleanup.c
parent951895c3aa196e90d4a5ecefe337d8773b8d33b7 (diff)
2000-08-17 Ross Johnson <rpj@special.ise.canberra.edu.au>
* 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).
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c18
1 files changed, 9 insertions, 9 deletions
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 */