Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macmain.c @ 4228:84444ea3f5f6 legacy-trunk
- Rationalized override preferences support, by remembering
application resource fork RefNum and looking there only
- Added support for loading gusi prefs from Preferences file (needs
modified GUSI, but Matthias promised he'd incorporate the fixes in
the next release)
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Fri, 06 Sep 1996 22:21:07 +0000 |
| parents | 0410ed3808ee |
| children | 6c86d9136c09 |
line wrap: on
line diff
--- a/Mac/Python/macmain.c Fri Sep 06 22:18:40 1996 +0000 +++ b/Mac/Python/macmain.c Fri Sep 06 22:21:07 1996 +0000 @@ -52,6 +52,7 @@ extern int Py_DebugFlag; /* For parser.c, declared in pythonrun.c */ extern int Py_VerboseFlag; /* For import.c, declared in pythonrun.c */ extern int Py_SuppressPrintingFlag; /* For ceval.c, declared in pythonrun.c */ +short PyMac_AppRefNum; /* RefNum of application resource fork */ /* Subroutines that live in their own file */ @@ -97,7 +98,9 @@ static void init_common() { - + /* Remember resource fork refnum, for later */ + PyMac_AppRefNum = CurResFile(); + /* Initialize toolboxes */ init_mac_world(); @@ -110,6 +113,7 @@ /* Setup GUSI */ GUSIDefaultSetup(); PyMac_SetGUSISpin(); + PyMac_SetGUSIOptions(); #endif #ifdef USE_SIOUX
