00001
00002
00003
00004
00005
00006 #ifndef JAM_H
00007 #define JAM_H
00008
00009 #include "debug.h"
00010
00011 #if defined( MSDOS ) || defined( NT ) || defined( WIN95 ) || defined( WIN98 ) || defined( WINME )
00012 # include "e_msft.h"
00013 #elif defined( OS2 )
00014 # include "e_os2.h"
00015 #elif defined( VMS )
00016 # include "e_vms.h"
00017 #else
00018 # include "e_unix.h"
00019 #endif
00020
00021
00022
00023
00024
00025
00026 # if defined( _M_PPC ) || \
00027 defined( PPC ) || \
00028 defined( ppc ) || \
00029 defined( __powerpc__ ) || \
00030 defined( __POWERPC__ ) || \
00031 defined( __ppc__ )
00032 # define OSPLAT "OSPLAT=PPC"
00033 # endif
00034
00035 # if defined( _ALPHA_ ) || \
00036 defined( __alpha__ )
00037 # define OSPLAT "OSPLAT=AXP"
00038 # endif
00039
00040 # if defined( _i386_ ) || \
00041 defined( __i386__ ) || \
00042 defined( _M_IX86 )
00043 # if !defined( OS_FREEBSD ) && \
00044 !defined( OS_OS2 ) && \
00045 !defined( OS_AS400 )
00046 # define OSPLAT "OSPLAT=X86"
00047 # endif
00048 # endif
00049
00050 # if defined( __sparc__ )
00051 # if !defined( OS_SUNOS )
00052 # define OSPLAT "OSPLAT=SPARC"
00053 # endif
00054 # endif
00055
00056 # if defined( __mips__ )
00057 # if !defined( OS_SGI )
00058 # define OSPLAT "OSPLAT=MIPS"
00059 # endif
00060 # endif
00061
00062 # if defined( __arm__ )
00063 # define OSPLAT "OSPLAT=ARM"
00064 # endif
00065
00066 # if defined( __ia64__ ) || \
00067 defined( __IA64__ ) || \
00068 defined( _M_IA64 )
00069 # define OSPLAT "OSPLAT=IA64"
00070 # endif
00071
00072 # if defined( __s390__ )
00073 # define OSPLAT "OSPLAT=390"
00074 # endif
00075
00076 # if !defined( OSPLAT )
00077 # define OSPLAT "UNKNOWN"
00078 # endif
00079
00080
00081
00082
00083
00084
00085 # if !defined( MAXLINE )
00086 # define MAXLINE 10240
00087 # endif
00088
00089 # if !defined( EXITOK ) || !defined( EXITBAD )
00090 # define EXITOK 0
00091 # define EXITBAD 1
00092 # endif
00093
00094 # if !defined( SPLITPATH )
00095 # define SPLITPATH ':'
00096 # endif
00097
00098
00099
00100 # define MAXSYM 1024
00101 # define MAXJPATH 1024
00102
00103 # define MAXJOBS 64
00104 # define MAXARGC 32
00105
00106
00107
00108
00109 struct globs {
00110 int noexec;
00111 int jobs;
00112 int quitquick;
00113 int newestfirst;
00114 int debug[DEBUG_MAX];
00115 FILE *cmdout;
00116 } ;
00117
00118 extern struct globs globs;
00119
00120 #endif
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156