home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / src / !runtime / misc.h next >
Encoding:
C/C++ Source or Header  |  1995-10-21  |  925 b   |  60 lines  |  [TEXT/R*ch]

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