0
|
1 |
"
|
7
|
2 |
This file is processed at initial startup
|
|
3 |
- not when resuming an image.
|
0
|
4 |
"
|
|
5 |
|
7
|
6 |
"this allows turning off processes and running
|
|
7 |
pure event driven - for debugging only.
|
|
8 |
|
|
9 |
If the system has been created without thread
|
|
10 |
support (i.e. a quick port without asm-support)
|
|
11 |
it will do this automatically. So, normally you
|
|
12 |
should not uncomment the line below.
|
|
13 |
"
|
|
14 |
"
|
|
15 |
ProcessorScheduler pureEventDriven.
|
3
|
16 |
"
|
0
|
17 |
!
|
|
18 |
"
|
|
19 |
install uncompiled classes as autoload
|
|
20 |
classes ... (if not already present)
|
7
|
21 |
Autoloaded classes will be automatically filed-in
|
|
22 |
when first accessed. This allows a smaller executable,
|
|
23 |
but creates a short delay, when the class is loaded on
|
|
24 |
first access.
|
|
25 |
|
|
26 |
You can add more classes to these lists -
|
|
27 |
i.e. all your classes you like to have around,
|
|
28 |
but which are not needed often enough to justify
|
|
29 |
machine code for them ...
|
0
|
30 |
"
|
|
31 |
|
7
|
32 |
|optionalClasses optionalGames optionalDemos optionalApps optionalBench
|
8
|
33 |
optionalTools optionalViews optionalImage compat|
|
0
|
34 |
|
|
35 |
Transcript showCr:'installing autoloaded classes ...'.
|
|
36 |
|
|
37 |
optionalGames := #(
|
7
|
38 |
Tetris TetrisBlock TicTacToe
|
|
39 |
).
|
|
40 |
|
|
41 |
optionalDemos := #(
|
|
42 |
Animation GlobeDemo RoundGlobe
|
8
|
43 |
PenDemo CommanderDemo Calendar
|
7
|
44 |
GLTeapotDemo GLTeapotView
|
|
45 |
GLPlaneDemoView1 GLPlaneDemoView2
|
|
46 |
GLSphereDemoView1 GLSphereDemoView2
|
|
47 |
GLObjectDemoView GLCubeDemoView GLTetraDemoView
|
|
48 |
GLWireCubeDemoView GLWireSphereDemoView
|
|
49 |
GLCubeDemoView2 Logo3DView1 GLPlanetDemoView
|
|
50 |
).
|
|
51 |
|
|
52 |
optionalApps := #(
|
|
53 |
AddressBook AddressBook2 InitialLabelView AddressView
|
|
54 |
|
|
55 |
DrawTool DrawObject DrawLine DrawText
|
|
56 |
DrawRectangle DrawRoundRectangle DrawEllipse
|
|
57 |
DrawPolygon DrawCurve DrawGroup DrawView DrawImage
|
|
58 |
PatternMenu
|
|
59 |
|
|
60 |
LogicTool LogicView LogicObject Connection Input Output
|
|
61 |
Low High Inverter AndGate OrGate AndGate2 NandGate2 OrGate2 NorGate2 ExorGate2
|
|
62 |
AndGate3
|
|
63 |
|
|
64 |
MailView MailHandler MailLetter MailReplyTextView
|
|
65 |
|
|
66 |
NewsView NewsHandler NNTPHandler NumberSet
|
|
67 |
|
|
68 |
ArchiveView DirectoryView DirectoryViewObject
|
|
69 |
DirectoryObject FileObject
|
|
70 |
|
8
|
71 |
DocumentView DocumentReader RTFReader
|
7
|
72 |
DisplayText DisplayPicture DisplayIcon DisplaySound
|
|
73 |
|
|
74 |
Clock ClockView RoundClock RoundClock2
|
|
75 |
|
|
76 |
VocPanel VocBrowser VocView SoundStream
|
|
77 |
|
|
78 |
Keyword KeywordSet ManualBrowser ManualMaker ManualView
|
|
79 |
).
|
|
80 |
|
|
81 |
optionalTools := #(
|
|
82 |
Builder BuilderView BuilderTreeView
|
|
83 |
BuilderClassBox BuilderVariablesBox
|
|
84 |
|
|
85 |
SystemBrowser DebugView FileBrowser DirectoryBrowser
|
|
86 |
ProjectView Launcher Workspace ChangesBrowser
|
|
87 |
InspectorView OrderedCollectionInspectorView ContextInspectorView
|
|
88 |
DictionaryInspectorView
|
|
89 |
ImageInspectorView ColorInspectorView
|
8
|
90 |
|
|
91 |
EventMonitor ProcessMonitor MemoryMonitor MemoryUsageView
|
7
|
92 |
).
|
|
93 |
|
|
94 |
optionalViews := #(
|
|
95 |
Scale HorizontalScale GLXView Point3D SliderBox
|
|
96 |
DialogBox OptionBox TextBox
|
8
|
97 |
InputView Ruler VerticalRuler TextRuler
|
7
|
98 |
Slider HorizontalSlider
|
|
99 |
SteppingSlider HorizontalSteppingSlider
|
|
100 |
VariableHorizontalPanel
|
|
101 |
FontPanel FramedBox FileSelectionBox FileSaveBox
|
8
|
102 |
RadioButton RadioButtonGroup "MotionButton MenuButton"
|
|
103 |
PullDownMenu
|
7
|
104 |
|
|
105 |
TwoColumnTextView DiffTextView
|
|
106 |
FilenameEditField FilenameEnterBox
|
|
107 |
|
|
108 |
HelpView
|
|
109 |
|
|
110 |
ScreenSaver LightInTheDark LightInTheDark2
|
|
111 |
|
|
112 |
ImageView ImageEditView
|
|
113 |
Depth1Image Depth2Image Depth4Image Depth8Image Depth24Image
|
|
114 |
TreeView TreeGraphView ClassTreeView ClassTreeGraphView WindowTreeView
|
|
115 |
|
|
116 |
ColorPanel HLSPanel RGBPanel ColorWheel ThreeSliderPanel
|
|
117 |
ColorSlider HueSlider RGBSlider SteppingColorSlider SteppingHueSlider
|
|
118 |
|
|
119 |
TabulatorSpecification MultiColListEntry
|
8
|
120 |
ViewScroller TabSpecRuler
|
7
|
121 |
).
|
|
122 |
|
|
123 |
"notice, that it does not really make sense to
|
|
124 |
run Benchmarks in interpreted mode ..."
|
|
125 |
|
|
126 |
optionalBench := #(
|
|
127 |
SlopstoneBenchmark SmopstoneBenchmark
|
|
128 |
|
|
129 |
"DeltaBlue benchmark"
|
|
130 |
AbstractConstraint BinaryConstraint Constraint
|
|
131 |
DBMethod DBVariable EditConstraint
|
|
132 |
EqualityConstraint Plan Planner ScaleConstraint
|
|
133 |
StayConstraint Strength UnaryConstraint XMouseConstraint
|
|
134 |
YMouseConstraint
|
|
135 |
|
|
136 |
"RichardsBenchmarks"
|
|
137 |
DeviceTaskDataRecord HandlerTaskDataRecord
|
|
138 |
IdleTaskDataRecord Packet RBObject RichardsBenchmarks
|
|
139 |
TaskControlBlock TaskState WorkerTaskDataRecord
|
|
140 |
|
|
141 |
"self benchmarks"
|
|
142 |
AbstractBenchmark AtAllPutBenchmark BenchmarkRunner
|
|
143 |
BubbleSort2Array BubbleSort2Benchmark BubbleSortBenchmark
|
|
144 |
Cons FastSumToBenchmark HanoiBenchmark HanoiDisk
|
|
145 |
IncrementAllBenchmark IntMM2Array IntMM2Benchmark
|
|
146 |
IntMM2Matrix IntMMBenchmark MM2Benchmark MMBenchmark
|
|
147 |
NestedLoopBenchmark Perm2Benchmark PermArray PermBenchmark
|
|
148 |
PuzzleArray PuzzleBenchmark Queens2Benchmark QueensBenchmark
|
|
149 |
Quicksort2Array Quicksort2Benchmark QuicksortBenchmark
|
|
150 |
RecurseBenchmark SieveBenchmark SumAllBenchmark
|
|
151 |
SumFromToBenchmark SumToBenchmark TakBenchmark TaklBenchmark
|
|
152 |
Towers2Benchmark Towers2Disk TowersBenchmark
|
|
153 |
TowersBenchmarkElement TreeSort2Benchmark TreeSort2Node
|
|
154 |
TreeSortBenchmark TreeSortNodeBenchmark
|
|
155 |
).
|
|
156 |
|
8
|
157 |
optionalImage := #(
|
|
158 |
GIFReader TIFFReader FaceReader WindowsIconReader SunRasterReader
|
|
159 |
XBMReader JPEGReader PBMReader ST80FormReader XPMReader
|
|
160 |
PCXReader
|
|
161 |
).
|
|
162 |
|
7
|
163 |
optionalClasses := #(
|
|
164 |
GIFReader TIFFReader FaceReader WindowsIconReader SunRasterReader
|
|
165 |
XBMReader JPEGReader PBMReader ST80FormReader XPMReader
|
|
166 |
PCXReader
|
|
167 |
|
|
168 |
EpsonFX1PrinterStream HPLjetIIPrinterStream
|
|
169 |
PostscriptPrinterStream
|
|
170 |
Decompiler Polygon
|
|
171 |
ChangeSetBrowser
|
|
172 |
MessageTracer
|
|
173 |
|
|
174 |
PersistencyManager BinaryIOManager BinaryInputManager
|
|
175 |
BinaryOutputManager DBFile BinaryObjectStorage
|
|
176 |
|
|
177 |
RDoItServer
|
|
178 |
|
|
179 |
HandlerCollection
|
|
180 |
).
|
|
181 |
|
|
182 |
optionalViews do:[:s |
|
|
183 |
"install if not already compiled-in"
|
|
184 |
(Smalltalk at:s) isNil ifTrue:[
|
|
185 |
Autoload subclass:s
|
|
186 |
instanceVariableNames:''
|
|
187 |
classVariableNames:''
|
|
188 |
poolDictionaries:''
|
|
189 |
category:'autoloaded-Views'
|
|
190 |
]
|
|
191 |
].
|
|
192 |
|
|
193 |
optionalTools do:[:s |
|
|
194 |
"install if not already compiled-in"
|
|
195 |
(Smalltalk at:s) isNil ifTrue:[
|
|
196 |
Autoload subclass:s
|
|
197 |
instanceVariableNames:''
|
|
198 |
classVariableNames:''
|
|
199 |
poolDictionaries:''
|
|
200 |
category:'autoloaded-Tools'
|
|
201 |
]
|
|
202 |
].
|
0
|
203 |
|
|
204 |
optionalGames do:[:s |
|
|
205 |
"install if not already compiled-in"
|
|
206 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
207 |
Autoload subclass:s
|
|
208 |
instanceVariableNames:''
|
|
209 |
classVariableNames:''
|
|
210 |
poolDictionaries:''
|
|
211 |
category:'autoloaded-Games & Demos'
|
0
|
212 |
]
|
|
213 |
].
|
|
214 |
|
3
|
215 |
optionalDemos do:[:s |
|
|
216 |
"install if not already compiled-in"
|
|
217 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
218 |
Autoload subclass:s
|
|
219 |
instanceVariableNames:''
|
|
220 |
classVariableNames:''
|
|
221 |
poolDictionaries:''
|
|
222 |
category:'autoloaded-Games & Demos'
|
3
|
223 |
]
|
|
224 |
].
|
|
225 |
|
0
|
226 |
optionalApps do:[:s |
|
|
227 |
"install if not already compiled-in"
|
|
228 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
229 |
Autoload subclass:s
|
|
230 |
instanceVariableNames:''
|
|
231 |
classVariableNames:''
|
|
232 |
poolDictionaries:''
|
|
233 |
category:'autoloaded-Applications'
|
0
|
234 |
]
|
|
235 |
].
|
|
236 |
|
|
237 |
optionalBench do:[:s |
|
|
238 |
"install if not already compiled-in"
|
|
239 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
240 |
Autoload subclass:s
|
|
241 |
instanceVariableNames:''
|
|
242 |
classVariableNames:''
|
|
243 |
poolDictionaries:''
|
|
244 |
category:'autoloaded-Benchmarks'
|
|
245 |
]
|
|
246 |
].
|
|
247 |
|
8
|
248 |
optionalImage do:[:s |
|
|
249 |
"install if not already compiled-in"
|
|
250 |
(Smalltalk at:s) isNil ifTrue:[
|
|
251 |
Autoload subclass:s
|
|
252 |
instanceVariableNames:''
|
|
253 |
classVariableNames:''
|
|
254 |
poolDictionaries:''
|
|
255 |
category:'autoloaded-Images'
|
|
256 |
]
|
|
257 |
].
|
|
258 |
|
7
|
259 |
optionalClasses do:[:s |
|
|
260 |
"install if not already compiled-in"
|
|
261 |
(Smalltalk at:s) isNil ifTrue:[
|
|
262 |
Autoload subclass:s
|
|
263 |
instanceVariableNames:''
|
|
264 |
classVariableNames:''
|
|
265 |
poolDictionaries:''
|
|
266 |
category:'autoloaded-Classes'
|
|
267 |
]
|
|
268 |
].
|
|
269 |
|
|
270 |
"
|
|
271 |
a kludge: we have added new ImageReaders above - tell Image
|
|
272 |
"
|
|
273 |
"avoid introducing a new global ..."
|
|
274 |
(Smalltalk includesKey:#Image) ifTrue:[
|
|
275 |
(Smalltalk at:#Image) isBehavior ifTrue:[
|
|
276 |
(Smalltalk at:#Image) initializeFileFormatTable.
|
0
|
277 |
]
|
|
278 |
].
|
|
279 |
|
7
|
280 |
"
|
|
281 |
some ST80 name aliases
|
|
282 |
(actually, much more is needed - this is just a start ...)
|
|
283 |
"
|
|
284 |
(Smalltalk at:#StandardSystemView) notNil ifTrue:[Smalltalk at:#ScheduledWindow put:StandardSystemView].
|
|
285 |
(Smalltalk at:#Color) notNil ifTrue:[Smalltalk at:#ColorValue put:Color].
|
|
286 |
(Smalltalk at:#Socket) notNil ifTrue:[Smalltalk at:#UnixSocketAccessor put:Socket].
|
|
287 |
Smalltalk at:#BlockClosure put:Block.
|
0
|
288 |
|
7
|
289 |
FileDirectory notNil ifTrue:[Smalltalk at:#Disk put:(FileDirectory directoryNamed:'/')].
|
0
|
290 |
|
7
|
291 |
"
|
|
292 |
ST/X has (currently) no Double, but Float is what ST-80's Double is ...
|
|
293 |
"
|
|
294 |
Smalltalk at:#Double put:Float.
|
0
|
295 |
|
|
296 |
compat := #(BitBlt Pen Commander
|
7
|
297 |
OpaqueForm
|
|
298 |
AbstractPath Arc Circle Curve LinearFit
|
|
299 |
Arrow Line Path Spline Ellipse DrawingPen
|
|
300 |
ActionMenu FillInTheBlank
|
|
301 |
KeyedSet
|
|
302 |
DialogView FormView
|
|
303 |
NoController MouseMenuController
|
|
304 |
StandardSystemController
|
|
305 |
ValueHolder ComposedTextView
|
|
306 |
StringHolder
|
|
307 |
).
|
0
|
308 |
|
|
309 |
compat do:[:s |
|
|
310 |
"install if not already compiled-in"
|
|
311 |
(Smalltalk at:s) isNil ifTrue:[
|
7
|
312 |
Autoload subclass:s
|
|
313 |
instanceVariableNames:''
|
|
314 |
classVariableNames:''
|
|
315 |
poolDictionaries:''
|
|
316 |
category:'autoloaded-ST80-Classes'
|
0
|
317 |
]
|
|
318 |
]
|
|
319 |
|
|
320 |
!
|
|
321 |
Transcript showCr:'installing patches ...' !
|
3
|
322 |
!OperatingSystem class methodsFor:'queries'!
|
|
323 |
supportsIOInterrupts
|
|
324 |
"return true, if the OS supports IO availability interrupts
|
|
325 |
(i.e. SIGPOLL/SIGIO)."
|
|
326 |
|
7
|
327 |
"IO signals do not work currently
|
|
328 |
(I dont know why - streams work, but sockets fail to produce
|
|
329 |
an IO signal ..... help help help"
|
|
330 |
|
3
|
331 |
^ false
|
7
|
332 |
!
|
|
333 |
!
|