diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 13:27:33 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-11-20 13:27:33 (GMT) |
commit | 8d902aba1c6a3c9364c792813995881daf2ffc3d (patch) | |
tree | da294abd8efc6ce3b782606a9ba19c291fd3e169 /Mac | |
parent | eddc1449bae39414aaf7a4f63ccd3b69c4fb069e (diff) | |
download | cpython-8d902aba1c6a3c9364c792813995881daf2ffc3d.zip cpython-8d902aba1c6a3c9364c792813995881daf2ffc3d.tar.gz cpython-8d902aba1c6a3c9364c792813995881daf2ffc3d.tar.bz2 |
No longer used.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Include/pythonresources.h | 183 |
1 files changed, 0 insertions, 183 deletions
diff --git a/Mac/Include/pythonresources.h b/Mac/Include/pythonresources.h deleted file mode 100644 index 534d9ea..0000000 --- a/Mac/Include/pythonresources.h +++ /dev/null @@ -1,183 +0,0 @@ -/*********************************************************** -Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam, -The Netherlands. - - All Rights Reserved - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the names of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior permission. - -STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO -THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE -FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT -OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -******************************************************************/ - -/* -** Resource-IDs in use by Python. -** -** All resources used by the python interpreter itself fall -** in the range 228-256. The range 128-228 is not used, because -** there is too much chance of conflicts with other packages. -** -** Standard python modules use resources in the range -** 256-512. -** -** Python programs that use their own resources are advised to -** choose resource numbers higher than 512. -*/ - -/* -** Resources that reside in the python executable (or, for -** shared ppc python, in the core dynamic library) -*/ -#ifndef Py_PYTHONRESOURCES_H -#define Py_PYTHONRESOURCES_H - -#ifdef __cplusplus - extern "C" { -#endif - -#define BASE_ID 228 - -/* The alert for "this is an applet template" */ -#define NOPYC_ALERT BASE_ID+1 - - -/* The dialog for interactive options */ -#define OPT_DIALOG BASE_ID+3 /* Resource ID for dialog */ -#define OPT_OK 1 -#define OPT_CANCEL 2 -#define OPT_INSPECT 3 -#define OPT_VERBOSE 4 -#define OPT_OPTIMIZE 5 -#define OPT_UNBUFFERED 6 -#define OPT_DEBUGGING 7 -#define OPT_KEEPALWAYS 8 -#define OPT_KEEPOUTPUT 9 -#define OPT_KEEPERROR 10 -#define OPT_KEEPNEVER 11 -#define OPT_CMDLINE 12 -#define OPT_TABWARN 13 -#define OPT_NOSITE 14 -#define OPT_HELP 15 -#define OPT_NONAVSERV 16 -#define OPT_VERBOSEVERBOSE 19 -#define OPT_DIVISIONWARN 20 -#define OPT_UNIXNEWLINES 21 - -/* Dialog for 'No preferences directory' */ -#define NOPREFDIR_ID BASE_ID+5 - -/* Dialog for 'Bad or outdated preferences' */ -#define BADPREFERENCES_ID BASE_ID+6 -#define BADPREF_DELETE 1 -#define BADPREF_CONTINUE 2 -#define BADPREF_QUIT 3 -/* Dialog for 'Bad preference file' */ -#define BADPREFFILE_ID BASE_ID+7 - -/* About box */ -#define ABOUT_ID BASE_ID+8 - -/* No preferences file name resource */ -#define NOPREFNAME_ID BASE_ID+9 - -/* Not a script */ -#define NOTASCRIPT_ID BASE_ID+10 - -/* EditPythonPrefs range. Needed here to forestall conflicts with applets */ -#define EDITPYTHONPREFS_MIN 508 -#define EDITPYTHONPREFS_MAX 511 -/* twit range. Again needed to forestall conflicts with scripts using their own resources */ -#define TWIT_MIN 500 -#define TWIT_MAX 507 -/* Bruce range. The same */ -#define BRUCE_MIN 468 -#define BRUCE_MAX 499 - -/* -** The following are valid both in the binary (or shared library) -** and in the Preferences file. -** For all these the override is tried first, in the application resource fork -** only, this allows an applet to override standard settings. -** If there is no override resource the preferences file is added to the head -** of the resource file chain and the non-override version of the resource is -** searched in any resource file. -** -** The effect of this is that, for example, a 'Popt' of 228 in the application or -** shared library provides default options for use when no preferences are set, -** while a 'Popt' of 229 (in the application *only*) overrides any options in the -** preferences file. -*/ - -/* The STR resource that holds the preference file name */ -#define PREFFILENAME_ID 228 /* For Rez only */ -#define PREFFILENAME_PASCAL_NAME "PythonPreferenceFileName" -#define PREFFILENAME_NAME "\pPythonPreferenceFileName" - -/* The STR# resource for sys.path initialization */ -#define PYTHONPATH_ID 228 -#define PYTHONPATHOVERRIDE_ID 229 - -/* The alis resource for locating the python home directory */ -#define PYTHONHOME_ID 228 -#define PYTHONHOMEOVERRIDE_ID 229 - -/* The Python options resource and offset of its members */ -#define PYTHONOPTIONS_ID 228 -#define PYTHONOPTIONSOVERRIDE_ID 229 - -#define POPT_VERSION_CURRENT 8 /* Current version number */ -#define POPT_KEEPCONSOLE_NEVER 0 -#define POPT_KEEPCONSOLE_OUTPUT 1 -#define POPT_KEEPCONSOLE_ERROR 2 -#define POPT_KEEPCONSOLE_ALWAYS 3 - -#ifndef rez -typedef struct PyMac_PrefRecord { - unsigned char version; - unsigned char inspect; - unsigned char verbose; - unsigned char optimize; - unsigned char unbuffered; - unsigned char debugging; - unsigned char unused; - unsigned char keep_console; - unsigned char nointopt; - unsigned char noargs; - unsigned char tabwarn; - unsigned char nosite; - unsigned char nonavservice; - unsigned char delayconsole; - unsigned char divisionwarn; - unsigned char unixnewlines; -} PyMac_PrefRecord; -#endif - -/* The GUSI options resources */ -#define GUSIOPTIONS_ID 10240 -#define GUSIOPTIONSOVERRIDE_ID 10241 - -#ifndef rez -/* From macgetpath.c: */ -void PyMac_PreferenceOptions(PyMac_PrefRecord *); -char * PyMac_GetPythonDir(void); -/* from macmain.c: */ -extern PyMac_PrefRecord PyMac_options; -#endif - -#ifdef __cplusplus -} -#endif - -#endif |