summaryrefslogtreecommitdiffstats
path: root/Mac/Resources
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-11-19 14:34:18 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-11-19 14:34:18 (GMT)
commit28ecf70db57828db2ca279643bf9aeca7662f35c (patch)
tree09b7767bbc411f85313b58d6fe7e5e67d9392973 /Mac/Resources
parent6045b9c93511c767f6cfa2d2fa299c76181acd9b (diff)
downloadcpython-28ecf70db57828db2ca279643bf9aeca7662f35c.zip
cpython-28ecf70db57828db2ca279643bf9aeca7662f35c.tar.gz
cpython-28ecf70db57828db2ca279643bf9aeca7662f35c.tar.bz2
Getting rid of support for MacOS9 and earlier. This is the first step,
and the biggest in size, but probably the easiest. Hunting through the source code comes next.
Diffstat (limited to 'Mac/Resources')
-rw-r--r--Mac/Resources/Carbon.r33
-rw-r--r--Mac/Resources/balloons.bh36
-rw-r--r--Mac/Resources/bundle.rsrcbin27611 -> 0 bytes
-rw-r--r--Mac/Resources/dialogs.rsrcbin14456 -> 0 bytes
-rw-r--r--Mac/Resources/gusiprefs.rsrcbin815 -> 0 bytes
-rw-r--r--Mac/Resources/pythonpath.r108
-rw-r--r--Mac/Resources/tkpython.rsrcbin310805 -> 0 bytes
-rw-r--r--Mac/Resources/version.r30
8 files changed, 0 insertions, 207 deletions
diff --git a/Mac/Resources/Carbon.r b/Mac/Resources/Carbon.r
deleted file mode 100644
index 99bec4f..0000000
--- a/Mac/Resources/Carbon.r
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Permit this Carbon application to launch on OS X
- *
- * by Josef W. Wankerl
- * 04/11/00
- */
-#define USE_CARB_RESOURCE
-#ifdef USE_CARB_RESOURCE
-/*----------------------------carb € Carbon on OS X launch information --------------------------*/
-type 'carb' {
-};
-
-
-resource 'carb'(0) {
-};
-#else
-
-#include "macbuildno.h"
-
-#include "patchlevel.h"
-
-type 'plst'
-{
- string;
-};
-
-resource 'plst' (0)
-{
- "CFBundleName = \"MacPython\";\n" /* short name for Mac OS X */
- "CFBundleShortVersionString = \""PY_VERSION"\";\n"
- "CFBundleGetInfoString = \"MacPython "PY_VERSION".\";\n"
-};
-#endif
diff --git a/Mac/Resources/balloons.bh b/Mac/Resources/balloons.bh
deleted file mode 100644
index 71df629..0000000
--- a/Mac/Resources/balloons.bh
+++ /dev/null
@@ -1,36 +0,0 @@
-DIALOG 231 Options
-1.1 Start the interpreter.
-2.1 Return to the finder.
-3.1 Turn this item on to get the standard >>> prompt after a script terminates.
-3.3 Turn this item off to have the interpreter terminate when a script terminates.
-4.1 Turn this option on to get feedback on where modules are found and what their type is.
-4.3 Turn this option off to stop import feedback.
-5.1 Turn this option on to strip LINO instructions from Python bytecode. Gives a slight speedup.
-5.3 Turn this option off to include LINO instructions in the bytecode. This enables line numbers in traceback printouts.
-6.1 Turn this on to show output byte-by-byte as it is produced. Slows things down.
-6.3 Turn this off to show output on a line-by-line basis, or when input is requested.
-7.1 Print gibberish only Guido understands.
-7.3 Stop printing gibberish.
-8.1 Select this to always keep the console window open after script termination.
-8.3 The console window is always kept open after script termination.
-9.1 Select this to keep the console window open if there is output that you may not have had a chance to look at.
-9.3 The console window stays open if there is output that you may not have had a chance to look at.
-10.1 Select this to keep the console window open when a script aborts.
-10.3 The console window stays open when a script aborts.
-11.1 Select this to always close the console window on script termination.
-11.3 The console window is always closed on script termination.
-12.1 This shows another dialog where you can type unix-style command line arguments. WARNING: do not redirect stdin and stdout, it does not work.
-13.1 Select to warn about mixing tabs and spaces in your source.
-13.3 Deselect to treat tabs as 4 spaces without warning.
-14.1 Selecting this disables the site-python feature.
-14.3 Deselecting this enables the site-python feature.
-15.1 Turn off balloon help.
-16.1 Select this to keep the old behaviour for macfs Standard File calls
-16.3 Deselect this to auto-import macfsn which replaces macfs Standard File calls with Navigation Services wrappers
-END-DIALOG
-DIALOG 234
-1.1 Deleting the incorrect preference will not always work, but Python will run with standard options.
-2.1 Python will continue to run, but with standard options.
-3.1 Don't run, return to the finder.
-END-DIALOG
-END
diff --git a/Mac/Resources/bundle.rsrc b/Mac/Resources/bundle.rsrc
deleted file mode 100644
index 6ee26a4..0000000
--- a/Mac/Resources/bundle.rsrc
+++ /dev/null
Binary files differ
diff --git a/Mac/Resources/dialogs.rsrc b/Mac/Resources/dialogs.rsrc
deleted file mode 100644
index d07e413..0000000
--- a/Mac/Resources/dialogs.rsrc
+++ /dev/null
Binary files differ
diff --git a/Mac/Resources/gusiprefs.rsrc b/Mac/Resources/gusiprefs.rsrc
deleted file mode 100644
index cc3be18..0000000
--- a/Mac/Resources/gusiprefs.rsrc
+++ /dev/null
Binary files differ
diff --git a/Mac/Resources/pythonpath.r b/Mac/Resources/pythonpath.r
deleted file mode 100644
index 1d7479c..0000000
--- a/Mac/Resources/pythonpath.r
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
-** Resources for the sys.path initialization, the Python options
-** and the preference filename
-*/
-#include "Types.r"
-#include "patchlevel.h"
-#include "pythonresources.h"
-
-/* A few resource type declarations */
-
-type 'Popt' {
- literal byte version = POPT_VERSION_CURRENT;
- byte noInspect = 0, inspect = 1;
- byte noVerbose = 0, verbose = 1;
- byte noOptimize = 0, optimize = 1;
- byte noUnbuffered = 0, unbuffered = 1;
- byte noDebugParser = 0, debugParser = 1;
- byte unused_0 = 0, unused_1 = 1;
- byte closeAlways = POPT_KEEPCONSOLE_NEVER,
- noCloseOutput = POPT_KEEPCONSOLE_OUTPUT,
- noCloseError = POPT_KEEPCONSOLE_ERROR,
- closeNever = POPT_KEEPCONSOLE_ALWAYS;
- byte interactiveOptions = 0, noInteractiveOptions = 1;
- byte argcArgv = 0, noArgcArgv = 1;
- byte newStandardExceptions = 0, oldStandardExceptions = 1;
- byte sitePython = 0, noSitePython = 1;
- byte navService = 0, noNavService = 1;
- byte noDelayConsole = 0, delayConsole = 1;
- byte noDivisionWarning = 0, divisionWarning = 1;
- byte noUnixNewlines = 0, unixNewlines = 1;
-};
-
-type 'TMPL' {
- wide array {
- pstring;
- literal longint;
- };
-};
-
-/* The resources themselves */
-
-/* Popt template, for editing them in ResEdit */
-
-resource 'TMPL' (PYTHONOPTIONS_ID, "Popt") {
- {
- "preference version", 'DBYT',
- "Interactive after script", 'DBYT',
- "Verbose import", 'DBYT',
- "Optimize", 'DBYT',
- "Unbuffered stdio", 'DBYT',
- "Debug parser", 'DBYT',
- "Keep window on normal exit", 'DBYT',
- "Keep window on error exit", 'DBYT',
- "No interactive option dialog", 'DBYT',
- "No argc/argv emulation", 'DBYT',
- "Old standard exceptions", 'DBYT',
- "No site-python support", 'DBYT',
- "No NavServices in macfs", 'DBYT',
- "Delay console window", 'DBYT',
- "Warnings for old-style division", 'DBYT',
- "Allow unix newlines on textfile input",'DBYT',
- }
-};
-
-/* The default-default Python options */
-
-resource 'Popt' (PYTHONOPTIONS_ID, "Options") {
- POPT_VERSION_CURRENT,
- noInspect,
- noVerbose,
- noOptimize,
- noUnbuffered,
- noDebugParser,
- unused_0,
- noCloseOutput,
- interactiveOptions,
- argcArgv,
- newStandardExceptions,
- sitePython,
- navService,
- noDelayConsole,
- noDivisionWarning,
- unixNewlines,
-};
-
-/* The sys.path initializer */
-
-resource 'STR#' (PYTHONPATH_ID, "sys.path initialization") {
- {
- "$(PYTHON)",
- "$(PYTHON):Lib",
- "$(PYTHON):Lib:lib-dynload",
- "$(PYTHON):Lib:plat-mac",
- "$(PYTHON):Lib:plat-mac:lib-scriptpackages",
- "$(PYTHON):Mac:Lib",
- "$(PYTHON):Extensions:img:Mac",
- "$(PYTHON):Extensions:img:Lib",
- "$(PYTHON):Extensions:Imaging",
- "$(PYTHON):Lib:lib-tk",
- "$(PYTHON):Lib:site-packages",
- }
-};
-
-/* The preferences filename */
-
-resource 'STR ' (PREFFILENAME_ID, PREFFILENAME_PASCAL_NAME) {
- $$Format("Python %s Preferences", PY_VERSION)
-};
diff --git a/Mac/Resources/tkpython.rsrc b/Mac/Resources/tkpython.rsrc
deleted file mode 100644
index a1a3306..0000000
--- a/Mac/Resources/tkpython.rsrc
+++ /dev/null
Binary files differ
diff --git a/Mac/Resources/version.r b/Mac/Resources/version.r
deleted file mode 100644
index 85d7466..0000000
--- a/Mac/Resources/version.r
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-** Create the 'vers' version resource from information in the
-** Python include files.
-*/
-
-#include "Types.r"
-
-#include "patchlevel.h"
-
-/* Invent the Mac version from the Python version */
-#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_ALPHA
-#define V_RELEASE alpha
-#endif
-#if PY_RELEASE_LEVEL == PY_RELEASE_LEVEL_BETA
-#define V_RELEASE beta
-#endif
-#ifndef V_RELEASE
-#define V_RELEASE final
-#endif
-
-resource 'vers' (1) {
- PY_MAJOR_VERSION,
- (PY_MINOR_VERSION<<4) | (PY_MICRO_VERSION),
- V_RELEASE,
- PY_RELEASE_SERIAL,
- 0,
- PY_VERSION,
- $$Format("%s, © Python Software Foundation %s",
- PY_VERSION, $$Date)
-};