summaryrefslogtreecommitdiff
path: root/PACE/pace/win32/stdlib.inl
diff options
context:
space:
mode:
Diffstat (limited to 'PACE/pace/win32/stdlib.inl')
-rw-r--r--PACE/pace/win32/stdlib.inl141
1 files changed, 0 insertions, 141 deletions
diff --git a/PACE/pace/win32/stdlib.inl b/PACE/pace/win32/stdlib.inl
deleted file mode 100644
index f370fc475e2..00000000000
--- a/PACE/pace/win32/stdlib.inl
+++ /dev/null
@@ -1,141 +0,0 @@
-/* $Id$ -*- C -*-
-
- * =============================================================================
- *
- * = LIBRARY
- * pace
- *
- * = FILENAME
- * pace/win32/stdlib.inl
- *
- * = AUTHOR
- * Luther Baker
- *
- * ============================================================================= */
-
-#include <stdlib.h>
-
-PACE_INLINE
-void
-pace_abort (void)
-{
- abort ();
-}
-
-PACE_INLINE
-int
-pace_abs (int val)
-{
- return abs (val);
-}
-
-PACE_INLINE
-double
-pace_atof (const char * str)
-{
- return atof (str);
-}
-
-PACE_INLINE
-int
-pace_atoi (const char * str)
-{
- return atoi (str);
-}
-
-PACE_INLINE
-long
-pace_atol (const char * str)
-{
- return atol (str);
-}
-
-PACE_INLINE
-void *
-pace_bsearch (const void *key, const void *base,
- size_t nel, size_t size,
- int (*compar)(const void *,const void *))
-{
- return bsearch (key, base, nel, size, compar);
-}
-
-PACE_INLINE
-void
-pace_exit (int status)
-{
- exit (status);
- return;
-}
-
-PACE_INLINE
-char *
-pace_getenv (const char * name)
-{
- return getenv (name);
-}
-
-PACE_INLINE
-void
-pace_qsort (void * base, size_t nel, size_t width,
- int (*compar)(const void *, const void *))
-{
- qsort (base, nel, width, compar);
-}
-
-PACE_INLINE
-int
-pace_rand ()
-{
- return rand ();
-}
-
-PACE_INLINE
-void
-pace_srand (unsigned int seed)
-{
- srand (seed);
- return;
-}
-
-PACE_INLINE
-int
-pace_rand_r (unsigned int *seed)
-{
-#if defined (PACE_HAS_REENTRANT)
- return rand_r (seed);
-#else /* ! PACE_HAS_REENTRANT */
- PACE_UNUSED_ARG (seed);
- PACE_ERRNO_NO_SUPPORT_RETURN (-1);
-#endif /* ! PACE_HAS_REENTRANT */
-}
-
-/* Memory Management. */
-
-PACE_INLINE
-void *
-pace_malloc (size_t size)
-{
- return malloc (size);
-}
-
-PACE_INLINE
-void *
-pace_calloc (size_t nelem, size_t elsize)
-{
- return calloc (nelem, elsize);
-}
-
-PACE_INLINE
-void
-pace_free (void * ptr)
-{
- free (ptr);
- return;
-}
-
-PACE_INLINE
-void *
-pace_realloc (void * ptr, size_t size)
-{
- return realloc (ptr, size);
-}