Go to the documentation of this file.00001
00002
00003
00004
00005 #ifdef MAC
00006 # ifndef MACCONF_H
00007 # define MACCONF_H
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __powerc
00026 # define MAC68K
00027 #endif
00028 #ifndef TARGET_API_MAC_CARBON
00029 # define TARGET_API_MAC_CARBON 0
00030 #endif
00031
00032
00033 #ifndef __MACH__
00034 #define RANDOM
00035 #endif
00036 #define NO_SIGNAL
00037 #define FILENAME 256
00038 #define NO_TERMS
00039
00040 #define TEXTCOLOR
00041 #define CHANGE_COLOR
00042
00043
00044 #include <string.h>
00045 #include <stdlib.h>
00046
00047
00048
00049 #include <time.h>
00050
00051
00052
00053
00054
00055 #if TARGET_API_MAC_CARBON
00056
00057 # define __FP__
00058 # include <Carbon/Carbon.h>
00059 #else
00060 # include <MacTypes.h>
00061 #endif
00062
00063
00064
00065
00066
00067 #define getpid() 1
00068 #define getuid() 1
00069 #define index strchr
00070 #define rindex strrchr
00071
00072 #define Rand random
00073 extern void error(const char *,...);
00074
00075 #if !defined(O_WRONLY)
00076 # ifdef __MWERKS__
00077 # include <unix.h>
00078 # endif
00079 # include <fcntl.h>
00080 #endif
00081
00082
00083
00084
00085
00086
00087 #if !((defined(__SC__) || defined(__MRC__) || defined(__MACH__)) && (defined(SPEC_LEV) || defined(DGN_COMP)))
00088 # define creat maccreat
00089 # define open macopen
00090 # define close macclose
00091 # define read macread
00092 # define write macwrite
00093 # define lseek macseek
00094 #ifdef __MWERKS__
00095 # define unlink _unlink
00096 #endif
00097 #endif
00098
00099 #define YY_NEVER_INTERACTIVE 1
00100
00101 # define TEXT_TYPE 'TEXT'
00102 # define LEVL_TYPE 'LEVL'
00103 # define BONE_TYPE 'BONE'
00104 # define SAVE_TYPE 'SAVE'
00105 # define PREF_TYPE 'PREF'
00106 # define DATA_TYPE 'DATA'
00107 # define MAC_CREATOR 'nh31'
00108 # define TEXT_CREATOR 'ttxt'
00109
00110
00111
00112
00113
00114 #define PORT_HELP "MacHelp"
00115
00116 #define MAC_GRAPHICS_ENV
00117
00118 # endif
00119 #endif