summaryrefslogtreecommitdiffstats
path: root/Mac/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-09-06 22:18:40 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-09-06 22:18:40 (GMT)
commit3d228879fe88228ee51d97b9bbae99c550e09746 (patch)
treec20bfdbb52586dae9e2d0a6e1b3e7490c7607fbe /Mac/Include
parent1383939e45a3bb7f83ce06c67c596a457e343fa9 (diff)
downloadcpython-3d228879fe88228ee51d97b9bbae99c550e09746.zip
cpython-3d228879fe88228ee51d97b9bbae99c550e09746.tar.gz
cpython-3d228879fe88228ee51d97b9bbae99c550e09746.tar.bz2
macglue: added PyMac_AppRefNum
pythonresources: elaborated comment on preferences, added new options
Diffstat (limited to 'Mac/Include')
-rw-r--r--Mac/Include/macglue.h2
-rw-r--r--Mac/Include/pythonresources.h20
2 files changed, 17 insertions, 5 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index 035b51f..af1e21a 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -51,6 +51,8 @@ extern int PyMac_ConsoleIsDead; /* True when exiting */
extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */
#endif
+extern short PyMac_AppRefNum; /* RefNum of application rsrcfork (from macmain.c) */
+
extern PyObject *PyMac_OSErrException; /* Exception for OSErr */
PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */
diff --git a/Mac/Include/pythonresources.h b/Mac/Include/pythonresources.h
index dd847ff..02607bd 100644
--- a/Mac/Include/pythonresources.h
+++ b/Mac/Include/pythonresources.h
@@ -62,9 +62,16 @@
/*
** The following are valid both in the binary (or shared library)
** and in the Preferences file.
-** For all three the override is tried first, through all current
-** resource files. This allows an applet to override standard settings
-** by providing a resource of the correct type.
+** 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 128 in the application or
+** shared library provides default options for use when no preferences are set,
+** while a 'Popt' of 129 (in the application *only*) overrides any options in the
+** preferences file.
*/
/* The STR# resource for sys.path initialization */
@@ -85,9 +92,12 @@
#define POPT_DEBUGGING 4
#define POPT_KEEPNORM 5
#define POPT_KEEPERR 6
+#define POPT_NOINTOPT 7 /* Not settable interactively */
+#define POPT_NOARGS 8 /* Not settable interactively */
-/* Our menu bar */
-#define MENUBAR_ID 128
+/* The GUSI options resources */
+#define GUSIOPTIONS_ID 10240
+#define GUSIOPTIONSOVERRIDE_ID 10241
/* From macgetpath.c: */
void PyMac_PreferenceOptions Py_PROTO((int *inspect, int *verbose, int *suppress_print,