Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3d425653
Commit
3d425653
authored
Sep 06, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macglue: added PyMac_AppRefNum
pythonresources: elaborated comment on preferences, added new options
parent
d9a7cd0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
Mac/Include/macglue.h
Mac/Include/macglue.h
+2
-0
Mac/Include/pythonresources.h
Mac/Include/pythonresources.h
+15
-5
No files found.
Mac/Include/macglue.h
View file @
3d425653
...
...
@@ -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 */
...
...
Mac/Include/pythonresources.h
View file @
3d425653
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment