Mercurial > cpython-lru_cache-weakref
comparison Mac/Include/pythonresources.h @ 10038:ba03e68df0fd legacy-trunk
Added pascal-style string name of preference file resource, and bracketed
C struct declarations with #ifndef rez
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Sat, 30 Jan 1999 13:21:24 +0000 |
| parents | fa85a7fd740b |
| children | f83b74273da2 |
comparison
equal
deleted
inserted
replaced
| 10037:f132ecfdb285 | 10038:ba03e68df0fd |
|---|---|
| 114 ** while a 'Popt' of 229 (in the application *only*) overrides any options in the | 114 ** while a 'Popt' of 229 (in the application *only*) overrides any options in the |
| 115 ** preferences file. | 115 ** preferences file. |
| 116 */ | 116 */ |
| 117 | 117 |
| 118 /* The STR resource that holds the preference file name */ | 118 /* The STR resource that holds the preference file name */ |
| 119 /* #define PREFFILENAME_ID 228 */ | 119 #define PREFFILENAME_ID 228 /* For Rez only */ |
| 120 #define PREFFILENAME_PASCAL_NAME "PythonPreferenceFileName" | |
| 120 #define PREFFILENAME_NAME "\pPythonPreferenceFileName" | 121 #define PREFFILENAME_NAME "\pPythonPreferenceFileName" |
| 121 | 122 |
| 122 /* The STR# resource for sys.path initialization */ | 123 /* The STR# resource for sys.path initialization */ |
| 123 #define PYTHONPATH_ID 228 | 124 #define PYTHONPATH_ID 228 |
| 124 #define PYTHONPATHOVERRIDE_ID 229 | 125 #define PYTHONPATHOVERRIDE_ID 229 |
| 140 #define POPT_KEEPERR 6 | 141 #define POPT_KEEPERR 6 |
| 141 #endif | 142 #endif |
| 142 | 143 |
| 143 #define POPT_VERSION_CURRENT 4 /* Current version number */ | 144 #define POPT_VERSION_CURRENT 4 /* Current version number */ |
| 144 | 145 |
| 146 #ifndef rez | |
| 145 typedef struct PyMac_PrefRecord { | 147 typedef struct PyMac_PrefRecord { |
| 146 unsigned char version; | 148 unsigned char version; |
| 147 unsigned char inspect; | 149 unsigned char inspect; |
| 148 unsigned char verbose; | 150 unsigned char verbose; |
| 149 unsigned char optimize; | 151 unsigned char optimize; |
| 154 unsigned char nointopt; | 156 unsigned char nointopt; |
| 155 unsigned char noargs; | 157 unsigned char noargs; |
| 156 unsigned char oldexc; | 158 unsigned char oldexc; |
| 157 unsigned char nosite; | 159 unsigned char nosite; |
| 158 } PyMac_PrefRecord; | 160 } PyMac_PrefRecord; |
| 161 #endif | |
| 159 | 162 |
| 160 /* The GUSI options resources */ | 163 /* The GUSI options resources */ |
| 161 #define GUSIOPTIONS_ID 10240 | 164 #define GUSIOPTIONS_ID 10240 |
| 162 #define GUSIOPTIONSOVERRIDE_ID 10241 | 165 #define GUSIOPTIONSOVERRIDE_ID 10241 |
| 163 | 166 |
| 167 #ifndef rez | |
| 164 /* From macgetpath.c: */ | 168 /* From macgetpath.c: */ |
| 165 void PyMac_PreferenceOptions Py_PROTO((PyMac_PrefRecord *)); | 169 void PyMac_PreferenceOptions Py_PROTO((PyMac_PrefRecord *)); |
| 166 char * PyMac_GetPythonDir Py_PROTO((void)); | 170 char * PyMac_GetPythonDir Py_PROTO((void)); |
| 171 #endif |
