home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Caml Light 0.61 / Source / src / runtime / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-24  |  775 b   |  50 lines  |  [TEXT/MPS ]

  1. /* Miscellaneous macros and variables. */
  2.  
  3. #ifndef _misc_
  4. #define _misc_
  5.  
  6.  
  7. #include "config.h"
  8. #ifdef ANSI
  9. #include <stddef.h>
  10. #endif
  11.  
  12. #ifdef SIXTEEN
  13. #include <stdlib.h>
  14. #endif
  15.  
  16. #ifdef ANSI
  17. typedef size_t asize_t;
  18. #else
  19. typedef int asize_t;
  20. #endif
  21.  
  22. #ifndef NULL
  23. #define NULL 0
  24. #endif
  25.  
  26. #ifdef SIXTEEN
  27. typedef char huge * addr;
  28. #else
  29. typedef char * addr;
  30. #endif
  31.  
  32. extern int verb_gc;
  33.  
  34. #ifdef ANSI
  35. extern void gc_message (char *, unsigned long);
  36. extern void fatal_error (char *);
  37. extern void fatal_unix_error (char *, char *);
  38. extern void memmov (char *, char *, unsigned long);
  39. extern char * aligned_malloc (asize_t, int);
  40. #else
  41. void gc_message ();
  42. void fatal_error ();
  43. void fatal_unix_error ();
  44. void memmov ();
  45. char * aligned_malloc ();
  46. #endif /* ANSI */
  47.  
  48.  
  49. #endif /* _misc_ */
  50.