| 1 | /*----------------------------------------------------------------------*\ |
| 2 | |
| 3 | args.h |
| 4 | |
| 5 | Argument handling |
| 6 | |
| 7 | \*----------------------------------------------------------------------*/ |
| 8 | |
| 9 | #ifdef __amiga__ |
| 10 | |
| 11 | #include <libraries/dosextens.h> |
| 12 | |
| 13 | #ifdef AZTEC_C |
| 14 | extern struct FileHandle *con; |
| 15 | #else |
| 16 | |
| 17 | #include <intuition/intuition.h> |
| 18 | #include <workbench/startup.h> |
| 19 | |
| 20 | extern struct WBStartup *_WBenchMsg; /* From libnix */ |
| 21 | |
| 22 | extern BPTR window; |
| 23 | extern BPTR cd; |
| 24 | |
| 25 | #endif |
| 26 | #endif |
| 27 | |
| 28 | #ifndef PROGNAME |
| 29 | #define PROGNAME "alan2" |
| 30 | #endif |
| 31 | |
| 32 | // _PROTOTYPES_ (which is a reserved identifier, but oh well) is defined in |
| 33 | // sysdep.h, so theoretically that file should be included here; but that |
| 34 | // causes, eventually, a conflicting definition of printf, as Alan defines |
| 35 | // printf as a macro to a function that's _not_ compatible with the actual |
| 36 | // printf(). Instead of fixing that, just define _PROTOTYPES_ here. |
| 37 | #define _PROTOTYPES_ |
| 38 | |
| 39 | #ifdef _PROTOTYPES_ |
| 40 | extern void args(int argc, char *argv[]); |
| 41 | #else |
| 42 | extern void args(); |
| 43 | #endif |
| 44 |