Mercurial > cpython-lru_cache-weakref
annotate Mac/Python/gusiconfig.cpp @ 15280:a5ca54969a3f legacy-trunk
Added PyMac_OutputSeen(), which acknowledges all current output in the stdio window, i.e. it acts like input has been read insofar as the keep-console-open option is interested.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 19 Oct 2000 22:02:16 +0000 |
| parents | 219ce9622352 |
| children | 67c8abd21025 |
| rev | line source |
|---|---|
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 /* |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 * Generated with the GUSIConfig application and then hand-modified by jack. |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 */ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
4 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
5 #define GUSI_SOURCE |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
6 #include <GUSIConfig.h> |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
7 #include <sys/cdefs.h> |
|
12446
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
8 #include <Resources.h> |
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
9 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
10 #include "Python.h" |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 #include "macglue.h" |
|
12446
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
12 #include "pythonresources.h" |
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
13 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
14 static void |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
15 PyMac_GUSISpin(bool wait) |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
16 { |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
17 static Boolean inForeground = true; |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
18 int maxsleep = 6; /* 6 ticks is "normal" sleeptime */ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
19 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
20 if (PyMac_ConsoleIsDead) return; |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
21 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
22 if ( !wait ) |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
23 maxsleep = 0; |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
24 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
25 PyMac_DoYield(maxsleep, 0); /* XXXX or is it safe to call python here? */ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
26 } |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
27 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
28 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
29 /* Declarations of Socket Factories */ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
30 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
31 __BEGIN_DECLS |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
32 void GUSIwithInetSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
33 void GUSIwithLocalSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
34 void GUSIwithMTInetSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
35 void GUSIwithMTTcpSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
36 void GUSIwithMTUdpSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
37 void GUSIwithOTInetSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
38 void GUSIwithOTTcpSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
39 void GUSIwithOTUdpSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
40 void GUSIwithPPCSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
41 void GUSISetupFactories(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
42 __END_DECLS |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
43 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
44 /* Configure Socket Factories */ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
45 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
46 void GUSISetupFactories() |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
47 { |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
48 #ifdef GUSISetupFactories_BeginHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
49 GUSISetupFactories_BeginHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
50 #endif |
|
14026
219ce9622352
Removed temporary code to disable OT networking (this was a workaround for getpeername() not working in a previous release of GUSI, but it has been fixed).
Jack Jansen <jack.jansen@cwi.nl>
parents:
14025
diff
changeset
|
51 #if 1 || TARGET_API_MAC_CARBON |
|
14025
ae228a64293e
Removed temporary code that always set creator to SimpleText.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12922
diff
changeset
|
52 GUSIwithInetSockets(); |
|
ae228a64293e
Removed temporary code that always set creator to SimpleText.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12922
diff
changeset
|
53 #else |
|
12654
6b143ca4fd7f
GUSI 2.0.5 has a non-functional getsockname() if you use Open Transport. For now the workaround is to only enable MacTCP sockets.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12446
diff
changeset
|
54 GUSIwithMTInetSockets(); |
|
14025
ae228a64293e
Removed temporary code that always set creator to SimpleText.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12922
diff
changeset
|
55 #endif |
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
56 #ifdef GUSISetupFactories_EndHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
57 GUSISetupFactories_EndHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
58 #endif |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
59 } |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
60 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
61 /* Declarations of File Devices */ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
62 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
63 __BEGIN_DECLS |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
64 void GUSIwithDConSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
65 void GUSIwithNullSockets(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
66 void GUSISetupDevices(); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
67 __END_DECLS |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
68 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
69 /* Configure File Devices */ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
70 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
71 void GUSISetupDevices() |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
72 { |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
73 #ifdef GUSISetupDevices_BeginHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
74 GUSISetupDevices_BeginHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
75 #endif |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
76 #ifdef GUSISetupDevices_EndHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
77 GUSISetupDevices_EndHook |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
78 #endif |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
79 } |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
80 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
81 #ifndef __cplusplus |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
82 #error GUSISetupConfig() needs to be written in C++ |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
83 #endif |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
84 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
85 GUSIConfiguration::FileSuffix sSuffices[] = { |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
86 "", '????', '????' |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
87 }; |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
88 extern "C" void GUSISetupConfig() |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
89 { |
|
12446
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
90 Handle h; |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
91 short oldrh, prefrh = -1; |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
92 short resource_id = GUSIConfiguration::kNoResource; |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
93 |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
94 oldrh = CurResFile(); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
95 |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
96 /* Try override from the application resource fork */ |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
97 UseResFile(PyMac_AppRefNum); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
98 h = Get1Resource('GU\267I', GUSIOPTIONSOVERRIDE_ID); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
99 if ( h ) { |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
100 resource_id = GUSIOPTIONSOVERRIDE_ID; |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
101 } else { |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
102 /* Next try normal resource from preference file */ |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
103 prefrh = PyMac_OpenPrefFile(); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
104 h = Get1Resource('GU\267I', GUSIOPTIONS_ID); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
105 if ( h ) { |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
106 resource_id = GUSIOPTIONS_ID; |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
107 } else { |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
108 /* Finally try normal resource from application */ |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
109 if ( prefrh != -1 ) { |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
110 CloseResFile(prefrh); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
111 prefrh = -1; |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
112 } |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
113 resource_id = GUSIOPTIONS_ID; |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
114 } |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
115 } |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
116 |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
117 /* Now we have the right resource file topmost and the id. Init GUSI. */ |
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
118 GUSIConfiguration * config = |
|
12446
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
119 GUSIConfiguration::CreateInstance(resource_id); |
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
120 |
|
12446
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
121 /* Finally restore the old resource file */ |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
122 if ( prefrh != -1) CloseResFile(prefrh); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
123 UseResFile(oldrh); |
|
e367ad3ea59a
Made the GUSI options work again with GUSI 2.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12281
diff
changeset
|
124 |
|
14025
ae228a64293e
Removed temporary code that always set creator to SimpleText.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12922
diff
changeset
|
125 config->ConfigureDefaultTypeCreator('TEXT', 'R*ch'); |
|
ae228a64293e
Removed temporary code that always set creator to SimpleText.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12922
diff
changeset
|
126 #if 0 |
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
127 config->ConfigureSuffices( |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
128 sizeof(sSuffices)/sizeof(GUSIConfiguration::FileSuffix)-1, sSuffices); |
|
14025
ae228a64293e
Removed temporary code that always set creator to SimpleText.
Jack Jansen <jack.jansen@cwi.nl>
parents:
12922
diff
changeset
|
129 #endif |
|
12281
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
130 config->ConfigureAutoInitGraf(false); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
131 config->ConfigureAutoSpin(false); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
132 config->ConfigureHandleAppleEvents(false); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
133 config->ConfigureSigInt(false); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
134 config->ConfigureSigPipe(true); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
135 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
136 GUSISetHook(GUSI_SpinHook, (GUSIHook)PyMac_GUSISpin); |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
137 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
138 } |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
139 |
|
51c0c3b6d919
Started on GUSI2 and threading support.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
140 /**************** END GUSI CONFIGURATION *************************/ |
