home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntinc25.zoo / minimal.h < prev    next >
C/C++ Source or Header  |  1992-05-16  |  1KB  |  73 lines

  1. #ifndef _COMPILER_H
  2. #include <compiler.h>
  3. #endif
  4.  
  5. #ifndef _OSBIND_H
  6. #include <osbind.h>
  7. #endif
  8.  
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. int errno;
  14. #ifndef __MINT__
  15. int _console_dev = 2;
  16. #endif
  17.  
  18. #ifndef __MINT__
  19.  
  20. __EXTERN __EXITING __exit __PROTO((long)); /* def in crt0.c */
  21. int       raise    __PROTO((int sig));
  22. void     _exit  __PROTO((int status));
  23.  
  24. void _exit(status)
  25.     int status;
  26. {
  27.     __exit((long)status);
  28. }
  29.  
  30. int
  31. raise(sig)
  32. int sig;
  33. {
  34.     return 0;
  35. }
  36.  
  37. #else
  38.  
  39. __EXTERN __EXITING _exit __PROTO((int));
  40. #define __exit _exit
  41.  
  42. #endif /* __MINT__ */
  43.  
  44. void     _init_signal __PROTO((void));
  45. void      exit  __PROTO((int status));
  46. void     _main  __PROTO((long argc, char **argv, char **environ));
  47.  
  48.  
  49. void
  50. _init_signal()
  51. {
  52. }
  53.  
  54. __EXITING
  55. exit(status)
  56.     int status;
  57. {
  58.     __exit(status);
  59. }
  60.  
  61. void _main(argc, argv, environ)
  62.     long argc;
  63.     char **argv;
  64.     char **environ;
  65. {
  66.     __EXTERN int main __PROTO((int, char **, char **));
  67.     exit(main((int)argc, argv, environ));
  68. }
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73.