home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Club Elmshorn Atari PD
/
CCE_PD.iso
/
pc
/
0400
/
CCE_0423.ZIP
/
CCE_0423.PD
/
INCLUD83.ZOO
/
minimal.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-20
|
962b
|
73 lines
#ifndef _COMPILER_H
#include <compiler.h>
#endif
#ifndef _OSBIND_H
#include <osbind.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
int errno;
#ifndef __MINT__
int _console_dev = 2;
#endif
#ifndef __MINT__
__EXTERN __EXITING __exit __PROTO((long)); /* def in crt0.c */
int raise __PROTO((int sig));
void _exit __PROTO((int status));
void _exit(status)
int status;
{
__exit((long)status);
}
int
raise(sig)
int sig;
{
return 0;
}
#else
__EXTERN __EXITING _exit __PROTO((int));
#define __exit _exit
#endif /* __MINT__ */
void _init_signal __PROTO((void));
void exit __PROTO((int status));
void _main __PROTO((long argc, char **argv, char **environ));
void
_init_signal()
{
}
__EXITING
exit(status)
int status;
{
__exit(status);
}
void _main(argc, argv, environ)
long argc;
char **argv;
char **environ;
{
__EXTERN int main __PROTO((int, char **, char **));
exit(main((int)argc, argv, environ));
}
#ifdef __cplusplus
}
#endif