author | Claus Gittinger <cg@exept.de> |
Fri, 11 Jun 1999 11:21:28 +0200 | |
changeset 363 | 9d31dcdffe95 |
parent 362 | 87f7b4670ae8 |
child 371 | ff10a765331c |
permissions | -rw-r--r-- |
12 | 1 |
"/ |
2 |
"/ $Header$ |
|
3 |
"/ |
|
4 |
"/ This file is processed at initial startup |
|
5 |
"/ - not when resuming an image. |
|
6 |
"/ |
|
0 | 7 |
|
12 | 8 |
"/ |
9 |
"/ install uncompiled classes as autoload |
|
10 |
"/ classes ... (if not already present) |
|
11 |
"/ Autoloaded classes will be automatically filed-in |
|
12 |
"/ when first accessed. This allows a smaller executable, |
|
13 |
"/ but creates a short delay, when the class is loaded on |
|
14 |
"/ first access. |
|
15 |
"/ |
|
16 |
"/ You can add more classes to these lists - |
|
17 |
"/ i.e. all your classes you like to have around, |
|
18 |
"/ but which are not needed often enough to justify |
|
19 |
"/ machine code for them ... |
|
0 | 20 |
|
263 | 21 |
|system requiredClasses| |
24 | 22 |
|
196 | 23 |
'patches [info]: initial startup (snapshot image restart is faster) ...' infoPrintCR. |
225 | 24 |
|
263 | 25 |
system := OperatingSystem getSystemType. |
282 | 26 |
(#( |
27 |
'linux' |
|
28 |
'unixware' |
|
323
42233c66f9a0
do not enable JIT by default on sparc.
Claus Gittinger <cg@exept.de>
parents:
300
diff
changeset
|
29 |
"/ 'solaris' |
282 | 30 |
'iris' |
31 |
'osf' |
|
300 | 32 |
'win32' |
282 | 33 |
) includes:system) ifTrue:[ |
268 | 34 |
"/ 'patches [info]: turn on JIT ...' infoPrintCR. |
265 | 35 |
ObjectMemory justInTimeCompilation:true. |
36 |
]. |
|
175 | 37 |
|
81 | 38 |
"/ GLXWorkstation forceGL:true. |
79 | 39 |
"/ OperatingSystem disableSignal:14. |
81 | 40 |
|
26 | 41 |
ObjectMemory infoPrinting:false. |
174 | 42 |
"/ Smalltalk loadBinaries:true. |
160 | 43 |
Compiler allowUnderscoreInIdentifier:true. |
44 |
Compiler warnUnderscoreInIdentifier:false. |
|
45 |
Compiler warnSTXSpecials:false. |
|
26 | 46 |
|
24 | 47 |
Project notNil ifTrue:[ |
48 |
Project setDefaultProject. |
|
25 | 49 |
Project current packageName:#'autoloaded'. |
24 | 50 |
]. |
10 | 51 |
|
12 | 52 |
"/ |
77 | 53 |
"/ when filing in, keep source as reference to file |
54 |
"/ (instead of keeping a string locally in the image) |
|
55 |
"/ |
|
85 | 56 |
"/ I disable this - its dangerous if you fileIn |
57 |
"/ classes from other directories and fileOut later clobbers those files |
|
58 |
"/ |
|
59 |
"/ ClassCategoryReader sourceMode:#reference. |
|
77 | 60 |
|
61 |
"/ |
|
12 | 62 |
"/ the following are required (either compiled or interpreted) ... |
63 |
"/ |
|
10 | 64 |
requiredClasses := #( |
77 | 65 |
ObsoleteObject |
66 |
BinaryIOManager BinaryInputManager BinaryOutputManager BinaryObjectStorage |
|
67 |
StringCollection |
|
68 |
). |
|
10 | 69 |
|
70 |
requiredClasses do:[:s | |
|
71 |
(Smalltalk at:s) isNil ifTrue:[ |
|
196 | 72 |
('patches [info]: loading ' , s , ' ...') infoPrintCR. |
10 | 73 |
Smalltalk fileInClass:s initialize:true lazy:false silent:true |
74 |
] |
|
75 |
]. |
|
24 | 76 |
! |
77 |
||
169 | 78 |
|optionalViews| |
0 | 79 |
|
24 | 80 |
(Smalltalk at:#View) isNil ifTrue:[ |
196 | 81 |
'patches [info]: installing required autoloaded classes ...' infoPrintCR. |
169 | 82 |
|
24 | 83 |
optionalViews := #( |
26 | 84 |
DeviceWorkstation |
24 | 85 |
Workstation |
26 | 86 |
XWorkstation |
24 | 87 |
DisplayRootView |
88 |
SimpleView |
|
89 |
TopView |
|
90 |
StandardSystemView |
|
91 |
ModalBox |
|
92 |
View |
|
93 |
PseudoView |
|
94 |
DeviceDrawable |
|
95 |
DisplayMedium |
|
362 | 96 |
DisplaySurface |
97 |
GraphicsMedium |
|
98 |
DeviceGraphicsContext |
|
24 | 99 |
GraphicsContext |
100 |
Image |
|
101 |
ViewStyle |
|
102 |
KeyboardMap |
|
103 |
KeyboardForwarder |
|
104 |
TextCollector |
|
77 | 105 |
SynchronousWindowSensor |
24 | 106 |
WindowSensor |
107 |
WindowGroup |
|
108 |
WindowEvent |
|
109 |
WindowingTransformation |
|
110 |
FontDescription |
|
111 |
Font |
|
112 |
Form |
|
113 |
Cursor |
|
114 |
Color |
|
115 |
Depth1Image |
|
116 |
Depth8Image |
|
117 |
ResourcePack |
|
118 |
Model |
|
119 |
Controller |
|
120 |
ApplicationModel |
|
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
121 |
ApplicationWindow |
24 | 122 |
WindowBuilder |
123 |
PopUpView |
|
124 |
ShadowView |
|
125 |
Colormap |
|
25 | 126 |
DeviceHandle |
127 |
DisplayObject |
|
24 | 128 |
). |
129 |
optionalViews do:[:s | |
|
130 |
"install if not already compiled-in" |
|
131 |
(Smalltalk at:s) isNil ifTrue:[ |
|
132 |
Autoload subclass:s |
|
133 |
instanceVariableNames:'' |
|
134 |
classVariableNames:'' |
|
135 |
poolDictionaries:'' |
|
136 |
category:'autoloaded-Views' |
|
137 |
] |
|
138 |
]. |
|
179 | 139 |
(Smalltalk at:#DeviceWorkstation) autoload. |
140 |
(Smalltalk at:#XWorkstation) autoload. |
|
141 |
(Smalltalk at:#Workstation) autoload. |
|
142 |
(Smalltalk at:#DeviceHandle) autoload. |
|
24 | 143 |
]. |
131
20fc8bdf1de5
removed (old) builtIn class list; depend on abbrev.stc alone
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
144 |
! |
24 | 145 |
|
146 |
Project notNil ifTrue:[ |
|
147 |
Project setDefaultProject. |
|
148 |
Project current packageName:#'patches'. |
|
149 |
]. |
|
150 |
||
196 | 151 |
'patches [info]: installing patches ...' infoPrintCR. |
174 | 152 |
! |
125 | 153 |
|
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
154 |
"/ future systems will read patches from a patch-directory, |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
155 |
"/ called stxPatches. (we will deliver patch-sets in the future) |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
156 |
"/ This is not yet implemented, but we are prepared here for |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
157 |
"/ this ... |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
158 |
"/ patches from that directory are read in alphabetic order; |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
159 |
"/ patches will be named them p_nnnn.st, where nnnn is a sequence-nr. |
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
160 |
|
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
161 |
|patchDir| |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
162 |
|
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
163 |
patchDir := 'stxPatches' asFilename. |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
164 |
(patchDir exists and:[patchDir isDirectory and:[patchDir isReadable]]) ifTrue:[ |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
165 |
patchDir directoryContents sort do:[:f | |
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
166 |
|fn| |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
167 |
|
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
168 |
fn := (patchDir construct:f) name. |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
169 |
('patches [info]: reading patchFile ''' , fn , ''' ...') infoPrintCR. |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
170 |
Smalltalk fileIn:fn. |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
171 |
] |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
172 |
]. |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
173 |
! |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
174 |
|
16 | 175 |
"/ |
12 | 176 |
"/ the following patches where added by the changesBrowsers 'make change a patch' |
177 |
"/ function ... |
|
178 |
"/ |
|
210 | 179 |
! |