author | Jan Vrany <jan.vrany@labware.com> |
Thu, 06 Aug 2020 09:33:44 +0100 | |
branch | jv |
changeset 1626 | 62ac134d4f7f |
parent 1513 | 4b7b0f9a8506 |
permissions | -rw-r--r-- |
609 | 1 |
"/ Encoding: iso8859-1 |
25 | 2 |
"/ |
3 |
"/ $Header$ |
|
86 | 4 |
"/ |
399 | 5 |
"/ MIMEType: application/x-smalltalk-source |
6 |
"/ |
|
209 | 7 |
"/ ST/X startup configuration & command file: |
8 |
"/ |
|
25 | 9 |
"/ startup configuration for smalltalk |
10 |
"/ |
|
11 |
"/ - everything in here are plain smalltalk expressions; |
|
12 |
"/ - statements with in a group are separated by a period. |
|
13 |
"/ - Each group of statements has to be delimited by an exclamation |
|
14 |
"/ character. |
|
15 |
"/ - avoid exclas in comments (or double them) |
|
16 |
"/ - nested comments are not allowed - take care. |
|
17 |
"/ |
|
18 |
"/ remember: this is fileOut-format |
|
19 |
"/ |
|
20 |
"/ comments can be either: |
|
21 |
"/ - standard smalltalk comments (i.e. from dquote to dquote) |
|
22 |
"/ - ST/X end of line comments (i.e. dquote followed by /) |
|
23 |
"/ |
|
24 |
"/ "this is a comment" |
|
25 |
"/ "/ another comment |
|
26 |
"/ |
|
27 |
"/*************************************************************** |
|
28 |
"/ PLEASE: only add things here, if they are of general interrest |
|
29 |
"/ and NEITHER site specific NOT display specific. |
|
30 |
"/ |
|
31 |
"/ site specific things are to be added to "h_<hostname>.rc" |
|
32 |
"/ display specifics to "d_<displayName>.rc" |
|
33 |
"/ and private user stuff in "private.rc" |
|
34 |
"/*************************************************************** |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
35 |
|cpu enableJIT| |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
36 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
37 |
"/ |
1299 | 38 |
"/ the JIT translator is (was) known to work with the following |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
39 |
"/ architectures: |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
40 |
"/ ix86 (linux, win32, unixware) |
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
41 |
"/ sgi-mips (irix) [no longer supported] |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
42 |
"/ alpha (osf) [no longer supported] |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
43 |
"/ sparc (solaris) [only tested with v7 & v8 & v9 cpus] |
1299 | 44 |
"/ rs6k (aix) [not very well tested] |
45 |
"/ mc68k [no longer supported] |
|
46 |
"/ mc88k [no longer supported] |
|
47 |
"/ pa-risk [no longer supported] |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
48 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
49 |
enableJIT := false. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
50 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
51 |
cpu := OperatingSystem getCPUType. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
52 |
(#( |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
53 |
'i386' |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
54 |
'sparc' |
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
55 |
"/ 'mips' |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
56 |
"/ 'alpha' |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
57 |
) includes:cpu) ifTrue:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
58 |
enableJIT := true. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
59 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
60 |
cpu = 'sparc' ifTrue:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
61 |
"/ for now, disable if we detect running on a sparcV10; |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
62 |
"/ Reason: |
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
63 |
"/ we do not have v10 machines here at exept , |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
64 |
"/ and therefore have no way of checking if it runs on v10. |
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
65 |
"/ I don't want ST/X to crash on your side in that case ... |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
66 |
"/ ... better run a bit slower than not running at all. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
67 |
"/ Please let us know if it runs and we will remove the code below |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
68 |
"/ (which you should do as well). |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
69 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
70 |
((OperatingSystem getSystemInfo at:#instructionSets) includesString:'sparcv10') ifTrue:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
71 |
'smalltalk.rc [warning]: disable JIT for sparcV10 - not yet validated' infoPrintCR. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
72 |
enableJIT := false |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
73 |
] |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
74 |
] |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
75 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
76 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
77 |
enableJIT ifTrue:[ |
656 | 78 |
"/ 'smalltalk.rc [info]: turn on JIT...' infoPrintCR. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
79 |
ObjectMemory justInTimeCompilation:true. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
80 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
81 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
82 |
"/ OperatingSystem disableSignal:14. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
83 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
84 |
ObjectMemory infoPrinting:false. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
85 |
"/ Smalltalk loadBinaries:true. |
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
86 |
"/ Compiler allowUnderscoreInIdentifier:true. |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
87 |
"/ Compiler warnUnderscoreInIdentifier:false. |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
88 |
"/ Compiler warnSTXSpecials:false. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
89 |
! |
0 | 90 |
|
25 | 91 |
"/ |
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
92 |
"/ allow definition of the systemPath from an environment variable |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
93 |
"/ for example, to only try files in a users home and /usr/local/lib/smalltalk, |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
94 |
"/ add the following in your shell-profile: |
86 | 95 |
"/ export STX_SYSTEMPATH=$HOME:/usr/local/lib/smalltalk |
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
96 |
"/ notice, that shell variable names are NOT expanded again in STX_SYSTEMPATH |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
97 |
"/ Make certain that all relevant files are found along your path - you may see |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
98 |
"/ funny viewStyles, colors and stupid strings if wrong. |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
99 |
"/ |
197 | 100 |
|
781 | 101 |
|path pathOfSTXExecutable pathOfCurrentDir| |
287
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
102 |
|
704 | 103 |
"/ 'systemPath before: ' infoPrint. Smalltalk systemPath infoPrintCR. |
104 |
"/ 'exec: ' infoPrint. OperatingSystem nameOfSTXExecutable infoPrintCR. |
|
105 |
"/ 'execPath: ' infoPrint. OperatingSystem pathOfSTXExecutable infoPrintCR. |
|
680 | 106 |
|
782 | 107 |
pathOfSTXExecutable := OperatingSystem pathOfSTXExecutable. |
108 |
pathOfSTXExecutable notNil ifTrue:[ |
|
109 |
pathOfSTXExecutable := pathOfSTXExecutable asFilename directory. |
|
110 |
]. |
|
781 | 111 |
pathOfCurrentDir := Filename currentDirectory asAbsoluteFilename. |
672 | 112 |
|
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
113 |
(path := OperatingSystem getEnvironment:'STX_SYSTEMPATH') notNil ifTrue:[ |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
114 |
Smalltalk systemPath:(path asCollectionOfSubstringsSeparatedBy:$:) |
287
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
115 |
] ifFalse:[ |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
116 |
"/ look for gnu-smalltalk class files along my PATH. |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
117 |
"/ if found, remove that directory from the PATH to avoid |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
118 |
"/ autoloading wrong classes. |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
119 |
(path := Smalltalk getSystemFileName:'initialize.st') notNil ifTrue:[ |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
120 |
path := path asFilename directoryName. |
308
6e6d557009c7
dont loose windows keyboard setup after image restart
Claus Gittinger <cg@exept.de>
parents:
287
diff
changeset
|
121 |
('smalltalk.rc [info]: found gnu-smalltalk sources in ' , path , '; removed from systemPath.') infoPrintCR. |
287
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
122 |
Smalltalk systemPath:(Smalltalk systemPath remove:path; yourself). |
672 | 123 |
]. |
782 | 124 |
pathOfSTXExecutable notNil ifTrue:[ |
125 |
(Smalltalk systemPath includes:pathOfSTXExecutable name) ifFalse:[ |
|
126 |
Smalltalk systemPath addFirst:pathOfSTXExecutable name. |
|
127 |
] |
|
677 | 128 |
]. |
781 | 129 |
(Smalltalk systemPath includes:pathOfCurrentDir name) ifFalse:[ |
130 |
Smalltalk systemPath addFirst:pathOfCurrentDir name. |
|
131 |
]. |
|
672 | 132 |
|
677 | 133 |
"/ the current directory should always be first... |
134 |
(Smalltalk systemPath includes:'.') ifTrue:[ |
|
135 |
Smalltalk systemPath remove:'.'. |
|
136 |
]. |
|
1384 | 137 |
(Smalltalk systemPath includes:Filename currentDirectory pathName) ifTrue:[ |
138 |
Smalltalk systemPath remove:Filename currentDirectory pathName. |
|
677 | 139 |
]. |
1384 | 140 |
Smalltalk systemPath addFirst:Filename currentDirectory pathName. |
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
141 |
]. |
409 | 142 |
|
689 | 143 |
"/ 'systemPath: ' errorPrint. Smalltalk systemPath errorPrintCR. |
672 | 144 |
|
409 | 145 |
Smalltalk flushPathCaches. |
1447
0b149293564f
Issue #98: Added -P / --package-path command line option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1446
diff
changeset
|
146 |
|
0b149293564f
Issue #98: Added -P / --package-path command line option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1446
diff
changeset
|
147 |
SmalltalkStartup main: Smalltalk commandLineArguments ? #(). |
0b149293564f
Issue #98: Added -P / --package-path command line option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1446
diff
changeset
|
148 |
|
86 | 149 |
! |
150 |
||
1276
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
151 |
"/ look fore one ore more --loadPackage arguments |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
152 |
"/ load the packages |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
153 |
|args idx| |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
154 |
|
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
155 |
args := Smalltalk commandLineArguments ? #(). |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
156 |
[ |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
157 |
idx := args indexOf:'-L'. |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
158 |
idx == 0 ifTrue:[ |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
159 |
idx := args indexOf:'--loadPackage'. |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
160 |
]. |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
161 |
idx ~~ 0 |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
162 |
] whileTrue:[ |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
163 |
Smalltalk loadPackage:(args at:idx+1). |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
164 |
args removeAtIndex:idx+1; removeAtIndex:idx. |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
165 |
]. |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
166 |
! |
80b650ffab1c
New option --loadPackage <packageName> - may oocur multiple times
Stefan Vogel <sv@exept.de>
parents:
1248
diff
changeset
|
167 |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
168 |
|args buildClasses openDisplay prevCatchSetting| |
86 | 169 |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
170 |
args := Smalltalk commandLineArguments ? #(). |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
171 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
172 |
buildClasses := false. |
126 | 173 |
((args size > 0) and:[args last = '--buildClasses']) ifTrue:[ |
86 | 174 |
'binary' asFilename isDirectory ifFalse:[ |
195 | 175 |
'smalltalk.rc [warning]: no binary directory for classes.' errorPrintCR. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
176 |
Smalltalk exit. |
86 | 177 |
]. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
178 |
buildClasses := true. |
432 | 179 |
]. |
180 |
||
8 | 181 |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
182 |
"/ check for display-classes being required and compiled into the system; |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
183 |
"/ if not, load the display classes. |
25 | 184 |
"/ |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
185 |
openDisplay := false. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
186 |
(Smalltalk isHeadless or:[args includes:'--noDisplay']) ifFalse:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
187 |
(Smalltalk at:#DeviceWorkstation) isNil ifTrue:[ |
637 | 188 |
"no view classes compiled into the system. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
189 |
Minimum smalltalk does only contain libbasic, libcomp and librun. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
190 |
FileIn view stuff" |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
191 |
|
656 | 192 |
'smalltalk.rc [info]: installing required class libraries...' infoPrintCR. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
193 |
(Smalltalk isClassLibraryLoaded:'libbasic2') ifFalse:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
194 |
Smalltalk loadPackage:'stx:libbasic2'. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
195 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
196 |
Smalltalk loadPackage:'stx:libview'. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
197 |
Smalltalk fileInClassLibrary:'XWorkstation' inPackage:'stx:libview'. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
198 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
199 |
Smalltalk fileInClassLibrary:'WinWorkstation' inPackage:'stx:libview'. |
609 | 200 |
]. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
201 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
202 |
openDisplay := true. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
203 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
204 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
205 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
206 |
"/ Install patches, once everything has been loaded. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
207 |
"/ System methods may be overwritten by patches. |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
208 |
|
1111
a139aac9c633
Print warning on error during fileIn of 'patches'
Stefan Vogel <sv@exept.de>
parents:
1090
diff
changeset
|
209 |
prevCatchSetting := Class catchMethodRedefinitions:false. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
210 |
(Smalltalk secureFileIn:(Smalltalk commandName asFilename withSuffix:'pch')) ifFalse:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
211 |
Smalltalk isStandAloneApp ifFalse:[ |
1111
a139aac9c633
Print warning on error during fileIn of 'patches'
Stefan Vogel <sv@exept.de>
parents:
1090
diff
changeset
|
212 |
(Smalltalk secureFileIn:'patches') ifFalse:[ |
1112 | 213 |
'smalltalk.rc [warning]: error while filing in ''patches'' - some patches have not been loaded!!' errorPrintCR. |
1111
a139aac9c633
Print warning on error during fileIn of 'patches'
Stefan Vogel <sv@exept.de>
parents:
1090
diff
changeset
|
214 |
]. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
215 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
216 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
217 |
Class catchMethodRedefinitions:prevCatchSetting. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
218 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
219 |
openDisplay ifTrue:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
220 |
"/ open the graphical display |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
221 |
[ |
1361 | 222 |
'smalltalk.rc [info]: opening display...' infoPrintCR. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
223 |
Screen openDefaultDisplay:nil. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
224 |
] on:Screen deviceOpenErrorSignal do:[:ex| |
1486
f2eb1c4525e3
Cleanup: start REPL after all other startup processing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1485
diff
changeset
|
225 |
('smalltalk.rc [info]: failed to open display: ', ex description) infoPrintCR. |
f2eb1c4525e3
Cleanup: start REPL after all other startup processing
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1485
diff
changeset
|
226 |
Smalltalk beHeadless: true. |
5 | 227 |
]. |
10 | 228 |
]. |
0 | 229 |
|
25 | 230 |
"/ |
231 |
"/ this makes X-errors be handled immediately (so you see, |
|
232 |
"/ where it occured) but slows down the system soooo muuuucccchhh .. |
|
233 |
"/ if commented out, errors will be reported asynchronously. |
|
234 |
"/ (I enable this, when things go bad during startup) |
|
235 |
"/ |
|
10 | 236 |
"/ Display unBuffered. |
0 | 237 |
|
924 | 238 |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
239 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
240 |
"/ lazy loading |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
241 |
"/ (faster fileIn) - this is EXPERIMENTAL. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
242 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
243 |
"/ - if turned on, an autoload operation will only create methodStubs |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
244 |
"/ (uncompiled) which trap when called the first time. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
245 |
"/ The bytecode compiler will compile them when first executen. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
246 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
247 |
"/ - if turned off, an autoload will load & compile the whole class, |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
248 |
"/ which makes autoloading slower, but avoids the initial delays |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
249 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
250 |
"/ This is much like just-in-time compilation, but on a higher level. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
251 |
"/ If there are any problems with lazy methods, disable the following |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
252 |
"/ and let me (info@exept.de) know what happened. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
253 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
254 |
Autoload compileLazy:true. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
255 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
256 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
257 |
"/ read the abbrev.stc file, extract class names |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
258 |
"/ and install all nonExisting classes as autoloaded |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
259 |
"/ |
609 | 260 |
Class withoutUpdatingChangesDo:[ |
568 | 261 |
|needToReactivate| |
262 |
||
263 |
HistoryManager notNil ifTrue:[ |
|
264 |
needToReactivate := HistoryManager isActive. |
|
265 |
HistoryManager deactivate. |
|
266 |
] ifFalse:[ |
|
267 |
needToReactivate := false |
|
268 |
]. |
|
617
f6afee16b359
Add --quick options to come up without gimmicks
Stefan Vogel <sv@exept.de>
parents:
612
diff
changeset
|
269 |
|
1467
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
270 |
"/ ((Smalltalk commandLineArguments includes:'--quick') |
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
271 |
"/ or:[ (Smalltalk isPlugin) |
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
272 |
"/ or:[ (Smalltalk commandLineArguments includes:'--faststart') |
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
273 |
"/ or:[ (Smalltalk commandLineArguments includes:'--fastStart') |
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
274 |
"/ ]]]) ifFalse: |
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
275 |
(Smalltalk commandLineArguments includes:'--autoload') |
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
276 |
ifTrue: |
befae5d031b8
--autoload option to get the old behavior;
Claus Gittinger <cg@exept.de>
parents:
1457
diff
changeset
|
277 |
[ |
656 | 278 |
'smalltalk.rc [info]: installing autoloaded classes...' infoPrintCR. |
617
f6afee16b359
Add --quick options to come up without gimmicks
Stefan Vogel <sv@exept.de>
parents:
612
diff
changeset
|
279 |
Smalltalk installAutoloadedClasses. |
f6afee16b359
Add --quick options to come up without gimmicks
Stefan Vogel <sv@exept.de>
parents:
612
diff
changeset
|
280 |
]. |
568 | 281 |
needToReactivate ifTrue:[HistoryManager activate]. |
282 |
]. |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
283 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
284 |
buildClasses ifTrue:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
285 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
286 |
"/ load all lazy classes |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
287 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
288 |
Autoload subclasses do:[:aClass | |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
289 |
Autoload autoloadFailedSignal handle:[:ex | |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
290 |
'smalltalk.rc [warning]: autoload failed' errorPrintCR. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
291 |
ex return. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
292 |
] do:[ |
656 | 293 |
'smalltalk.rc [info]: loading ' infoPrint. aClass name infoPrint. '...' infoPrintCR. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
294 |
aClass autoload. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
295 |
] |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
296 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
297 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
298 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
299 |
"/ binary save all classes |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
300 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
301 |
Autoload loadedClasses do:[:cls | |
656 | 302 |
'smalltalk.rc [info]: saving binary of ' infoPrint. cls name infoPrint. '...' infoPrintCR. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
303 |
cls binaryFileOut. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
304 |
OperatingSystem executeCommand:'mv *.cls binary'. |
1346 | 305 |
]. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
306 |
Smalltalk exit |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
307 |
]. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
308 |
! |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
309 |
|
25 | 310 |
"/ |
686 | 311 |
"/ Memory settings. NOTE that all these settings may be overwritten by |
312 |
"/ settings.stx which stores the Launcher's settings. |
|
313 |
||
314 |
"/ |
|
25 | 315 |
"/ this starts the incremental GC earlier |
316 |
"/ (default is 500000) |
|
317 |
"/ the number given is the number of bytes which have to be allocated |
|
318 |
"/ since the last GC, to start the incremental GC running. |
|
319 |
"/ (see ObjectMemory>>documentation) |
|
320 |
"/ Claus: I moved this to the private.rc file |
|
321 |
"/ |
|
609 | 322 |
"/ ObjectMemory incrementalGCLimit:100000. |
0 | 323 |
|
25 | 324 |
"/ |
325 |
"/ this starts the incremental GC when freeSpace drops below a limit |
|
326 |
"/ (default is nil - i.e. dont look at freeSpace) |
|
327 |
"/ (see ObjectMemory>>documentation) |
|
328 |
"/ Claus: I moved this to the private.rc file |
|
329 |
"/ |
|
609 | 330 |
"/ ObjectMemory freeSpaceGCLimit:300000. |
16 | 331 |
|
322 | 332 |
"/ experimental: try to always keep some bytes in the pocket |
333 |
"/ this changes the memory policy, to start the background collector whenever |
|
609 | 334 |
"/ freespace drops below 250k or 500k have been allocated since the last GC. |
322 | 335 |
"/ AND to allocate more memory, if (after the collect) less than 1Mb is free. |
336 |
"/ Doing so makes the system behave better if lots of memory is required |
|
337 |
"/ for short periods of time, since it prepares itself for that situation |
|
338 |
"/ during idle time. (I often walk around in the fileBrowser, loading big |
|
339 |
"/ files like XWorkstation.st or SystemBrowser.st ....) |
|
340 |
||
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
341 |
ObjectMemory freeSpaceGCAmount:(1024*1024). |
1362 | 342 |
ObjectMemory freeSpaceGCLimit:(4*1024*1024). |
343 |
"/ ObjectMemory incrementalGCLimit:(4*1024*1024). |
|
344 |
ObjectMemory oldSpaceIncrement:(4*1024*1024). |
|
457 | 345 |
ObjectMemory oldSpaceCompressLimit:0. "/ temporary kludge |
609 | 346 |
ObjectMemory startBackgroundCollectorAt:5. |
347 |
ObjectMemory startBackgroundFinalizationAt:5. |
|
566 | 348 |
|
349 |
"/ this limits the amount of memory which is allocated for oldSpace |
|
350 |
"/ (for example to prevent ST/X from taking memory from other processes) |
|
351 |
"/ The absolute maximum is a builtIn constant and OS specific. |
|
352 |
||
353 |
"/ ObjectMemory maxOldSpace:1024*1024*128. |
|
1297 | 354 |
"/ ObjectMemory maxOldSpace:1024*1024*512. |
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
355 |
|
1298 | 356 |
ExternalBytes sizeofPointer == 8 ifTrue:[ |
1419 | 357 |
"/ limit to 8GB to prevent a runaway program from thrashing the system |
1298 | 358 |
"/ if you really need more, change that line |
1419 | 359 |
ObjectMemory maxOldSpace:8*1024*1024*1024. |
360 |
"/ ObjectMemory maxOldSpace:40*1024*1024*1024. |
|
1298 | 361 |
]. |
1297 | 362 |
|
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
363 |
"/ experimental: configure the memory manager to quickly increase |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
364 |
"/ its oldSpace, as long as it stays below 256Mb |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
365 |
"/ (i.e. do not enter a blocking mark&sweep or compress, |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
366 |
"/ but go straight ahead increasing the oldSpace). |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
367 |
"/ Above that, behave as usual, i.e. try a GC first, |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
368 |
"/ then increase the oldSpace size if that did not help. |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
369 |
"/ If you have a machine with lots of (real) memory, you may want to |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
370 |
"/ increase the number. |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
371 |
"/ |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
372 |
ObjectMemory fastMoreOldSpaceLimit:256*1024*1024. |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
373 |
ObjectMemory fastMoreOldSpaceAllocation:true. |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
374 |
|
1419 | 375 |
"/ this changes the size of the eden generation, where objects |
376 |
"/ are initially allocated. Making it bigger may increase pause |
|
377 |
"/ times a bit, if many objects survive, but reduces the overall overhead |
|
378 |
"/ For server type applications (request-response-loops such as in webServers), |
|
379 |
"/ it is a good idea to make it big enough to handle a request-cycles temporary |
|
380 |
"/ data |
|
381 |
||
382 |
"/ ObjectMemory newSpaceSize:(2*1024*1024). |
|
383 |
"/ ObjectMemory newSpaceSize:(8*1024*1024). |
|
384 |
||
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
385 |
"/ server settings; possibly longer worst case pause times, |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
386 |
"/ but less overhead overall. |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
387 |
"/ Use this for webservers, protocol servers etc, where blocking times |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
388 |
"/ above 30ms are acceptable (also works for interactive programming) |
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
389 |
|
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
390 |
ObjectMemory newSpaceSize:(16*1024*1024). |
1362 | 391 |
ObjectMemory incrementalGCLimit:(64*1024*1024). |
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
392 |
|
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
393 |
"/ |
322 | 394 |
"/ run the background collector at a dynamic priority - it will |
395 |
"/ now always get a chance to make some progress ... |
|
1341
9a6ea7ab9585
changed settings file order (private first)
Claus Gittinger <cg@exept.de>
parents:
1316
diff
changeset
|
396 |
"/ |
322 | 397 |
Smalltalk addStartBlock:[ |
1316 | 398 |
"/ 'smalltalk.rc [info]: start timeSlicing...' infoPrintCR. |
322 | 399 |
Processor startTimeSlicing. |
400 |
Processor supportDynamicPriorities:true. |
|
401 |
ObjectMemory backgroundCollectProcess priorityRange:(4 to:9). |
|
402 |
ObjectMemory backgroundFinalizationProcess priorityRange:(4 to:9). |
|
403 |
]. |
|
404 |
! |
|
405 |
||
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
406 |
"/ another experimental (and a secret for now, since I don't want |
322 | 407 |
"/ you to play with those ;-) |
408 |
"/ For now, this is experimental. Once the best numbers |
|
409 |
"/ have been found, I'll hardwire them and document it ... |
|
410 |
||
686 | 411 |
|tenureParams| |
426
74cc4af22873
install autoloaded classes BEFORE doing display.rc/host.rc
Claus Gittinger <cg@exept.de>
parents:
424
diff
changeset
|
412 |
|
322 | 413 |
ObjectMemory newSpaceSize > (500*1024) ifTrue:[ |
686 | 414 |
tenureParams := #(nil nil nil nil -16 -4 -2 -2 0 0 16 nil) copy. |
322 | 415 |
] ifFalse:[ |
416 |
"/ min max cpy /32 /16 /8 /4 /2 /4 /8 /16 /32 " |
|
417 |
"/ |
|
418 |
"/ slow tenure - keeps objects longer in newSpace, |
|
419 |
"/ producing more scavenge overhead, but releasing IGC somewhat |
|
420 |
"/ |
|
686 | 421 |
"/ tenureParams := #(nil nil nil -100 -8 -4 -1 1 2 4 8 16 nil) copy. |
422 |
"/ tenureParams := #(nil nil nil nil -16 -4 0 0 0 4 16 nil) copy. |
|
322 | 423 |
|
424 |
"/ |
|
425 |
"/ fast tenure - moves objects earlier into oldSpace, |
|
426 |
"/ releasing newSpace collector; however, the oldSpace IGC |
|
427 |
"/ may have more work to do. |
|
428 |
"/ |
|
686 | 429 |
tenureParams := #(nil nil nil nil -20 -8 -3 -1 -1 1 16 nil) copy. |
322 | 430 |
]. |
686 | 431 |
ObjectMemory tenureParameters:tenureParams. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
432 |
! |
0 | 433 |
|
25 | 434 |
"/ |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
435 |
"/ this defines stuff relating to the host we are running on |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
436 |
"/ |
656 | 437 |
"/ 'smalltalk.rc [info]: reading ''host.rc''...' infoPrintCR. |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
438 |
Smalltalk fileIn:'host.rc'. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
439 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
440 |
"/ |
25 | 441 |
"/ this handles all variant display stuff |
442 |
"/ (i.e. things which might change, when DISPLAY is set different) |
|
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
325
diff
changeset
|
443 |
"/ Notice, that the display may be different from the host we run on; |
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
325
diff
changeset
|
444 |
"/ Host specific things are configured in host.rc. |
25 | 445 |
"/ |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
446 |
Display notNil ifTrue:[ |
656 | 447 |
"/ 'smalltalk.rc [info]: reading ''display.rc''...' infoPrintCR. |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
448 |
Smalltalk fileIn:'display.rc'. |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
449 |
]. |
0 | 450 |
|
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
451 |
! |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
452 |
|
723 | 453 |
|cls| |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
454 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
455 |
"/ some ST80 name aliases |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
456 |
"/ (actually, much more is needed - this is just a start ...) |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
457 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
458 |
(cls := Smalltalk at:#StandardSystemView) notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
459 |
Smalltalk at:#ScheduledWindow put:cls |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
460 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
461 |
(cls := Smalltalk at:#Socket) notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
462 |
Smalltalk at:#UnixSocketAccessor put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
463 |
Smalltalk at:#SocketAccessor put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
464 |
Smalltalk at:#SocketAccessorByAddress put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
465 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
466 |
Smalltalk at:#BlockClosure put:Block. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
467 |
Smalltalk at:#CompiledMethod put:Method. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
468 |
(cls := Smalltalk at:#DialogBox) notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
469 |
Smalltalk at:#Dialog put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
470 |
Smalltalk at:#DialogView put:cls. |
397 | 471 |
Smalltalk at:#FillInTheBlank put:cls. |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
472 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
473 |
Smalltalk at:#ByteString put:String. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
474 |
Smalltalk at:#ByteSymbol put:Symbol. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
475 |
Smalltalk at:#ByteEncodedString put:String. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
476 |
Smalltalk at:#Console put:Stderr. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
477 |
Smalltalk at:#HandlerList put:HandlerCollection. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
478 |
Smalltalk at:#SignalCollection put:SignalSet. |
424
4b6de7399a42
ProgrsssWidgetSpec alias (VW compat)
Claus Gittinger <cg@exept.de>
parents:
416
diff
changeset
|
479 |
(cls := Smalltalk at:#ProgressIndicatorSpec) notNil ifTrue:[ |
4b6de7399a42
ProgrsssWidgetSpec alias (VW compat)
Claus Gittinger <cg@exept.de>
parents:
416
diff
changeset
|
480 |
Smalltalk at:#ProgressWidgetSpec put:cls. |
4b6de7399a42
ProgrsssWidgetSpec alias (VW compat)
Claus Gittinger <cg@exept.de>
parents:
416
diff
changeset
|
481 |
]. |
428 | 482 |
(cls := Smalltalk at:#ProgressIndicator) notNil ifTrue:[ |
483 |
Smalltalk at:#ProgressWidgetView put:cls. |
|
484 |
]. |
|
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
485 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
486 |
"/ FileDirectory notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
487 |
"/ Smalltalk at:#Disk put:(Filename rootDirectory) |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
488 |
"/ ]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
489 |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
490 |
Screen notNil ifTrue:[ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
491 |
Smalltalk at:#Window put:Screen. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
492 |
Smalltalk at:#Sensor put:Screen default. |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
493 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
494 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
495 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
496 |
"/ ST/X has (currently) no Double, but Float is what ST-80's Double is ... |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
497 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
498 |
Smalltalk at:#Double put:Float. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
499 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
500 |
Smalltalk at:#Browser put:SystemBrowser. |
1419 | 501 |
|
502 |
"/ |
|
503 |
"/ some ANSI name aliases |
|
504 |
"/ |
|
505 |
(Smalltalk includesKey:#DateAndTime) ifFalse:[ |
|
506 |
Smalltalk at:#DateAndTime put:Timestamp. |
|
507 |
]. |
|
508 |
(Smalltalk includesKey:#Duration) ifFalse:[ |
|
509 |
Smalltalk at:#Duration put:TimeDuration. |
|
510 |
]. |
|
511 |
||
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
512 |
! |
686 | 513 |
|file| |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
514 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
515 |
"/ |
41 | 516 |
"/ read private (per user) stuff |
25 | 517 |
"/ |
632
6cb9fe000c20
-F arg to allow other than private.rc
Claus Gittinger <cg@exept.de>
parents:
617
diff
changeset
|
518 |
(Smalltalk commandLine includes:'-F') ifTrue:[ |
6cb9fe000c20
-F arg to allow other than private.rc
Claus Gittinger <cg@exept.de>
parents:
617
diff
changeset
|
519 |
|idx file| |
6cb9fe000c20
-F arg to allow other than private.rc
Claus Gittinger <cg@exept.de>
parents:
617
diff
changeset
|
520 |
|
6cb9fe000c20
-F arg to allow other than private.rc
Claus Gittinger <cg@exept.de>
parents:
617
diff
changeset
|
521 |
idx := Smalltalk commandLine indexOf:'-F'. |
6cb9fe000c20
-F arg to allow other than private.rc
Claus Gittinger <cg@exept.de>
parents:
617
diff
changeset
|
522 |
file := Smalltalk commandLine at:idx + 1. |
6cb9fe000c20
-F arg to allow other than private.rc
Claus Gittinger <cg@exept.de>
parents:
617
diff
changeset
|
523 |
] ifFalse:[ |
686 | 524 |
file := 'private.rc'. |
632
6cb9fe000c20
-F arg to allow other than private.rc
Claus Gittinger <cg@exept.de>
parents:
617
diff
changeset
|
525 |
]. |
686 | 526 |
('smalltalk.rc [info]: reading ''' , file , '''...') infoPrintCR. |
527 |
Smalltalk fileIn:file. |
|
5 | 528 |
|
1246
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
529 |
! |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
530 |
|
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
531 |
"JV@2012-05-03: Search system path for rc.d directories, collect all *.rc files |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
532 |
and then file them in a lexical order" |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
533 |
|
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
534 |
| rcDFiles | |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
535 |
|
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
536 |
rcDFiles := SortedCollection sortBlock:[:a :b|a baseName < b baseName]. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
537 |
|
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
538 |
Smalltalk realSystemPath ? #() do:[:syspath| |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
539 |
| rcD | |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
540 |
|
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
541 |
rcD := syspath asFilename / 'rc.d'. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
542 |
rcD exists ifTrue:[ |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
543 |
rcD directoryContentsAsFilenames do:[:each| |
1431
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
544 |
each suffix = 'rc' ifTrue:[ |
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
545 |
| eachAbs | |
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
546 |
|
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
547 |
eachAbs := each asAbsoluteFilename. |
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
548 |
(rcDFiles includes: eachAbs) ifFalse:[ |
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
549 |
rcDFiles add: eachAbs. |
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
550 |
] |
691727155921
Avoid reading rc.d files twice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1428
diff
changeset
|
551 |
] |
1246
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
552 |
]. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
553 |
]. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
554 |
]. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
555 |
|
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
556 |
rcDFiles do:[:each| |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
557 |
'smalltalk.rc [info]: reading ' infoPrint. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
558 |
each baseName infoPrint. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
559 |
'...' infoPrint. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
560 |
( AbortOperationRequest , TerminateProcessRequest , Parser parseErrorSignal ) handle:[:ex | |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
561 |
'FAILED: ' errorPrint. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
562 |
ex description errorPrintCR. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
563 |
ex return. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
564 |
] do:[ |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
565 |
each fileIn. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
566 |
'OK' infoPrintCR. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
567 |
]. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
568 |
]. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
569 |
|
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
570 |
! |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
571 |
|
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
475
diff
changeset
|
572 |
Screen notNil ifTrue:[ |
441 | 573 |
"/ |
574 |
"/ read saved configuration settings (if any) |
|
575 |
"/ |
|
1364
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
576 |
| idx | |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
577 |
|
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
578 |
idx := Smalltalk commandLineArguments indexOf: '--no-preferences'. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
579 |
idx ~~ 0 ifTrue:[ |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
580 |
Smalltalk commandLineArguments removeAtIndex: idx. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
581 |
] ifFalse:[ |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
582 |
( AbortOperationRequest , TerminateProcessRequest , Parser parseErrorSignal ) handle:[:ex | |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
583 |
'READ FAILED: ' errorPrint. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
584 |
ex description errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
585 |
ex return. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
586 |
1 halt. |
1513
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
587 |
] do:[ |
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
588 |
| settings continue | |
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
589 |
|
1364
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
590 |
|
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
591 |
idx := Smalltalk commandLineArguments indexOf: '--preferences'. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
592 |
idx ~~ 0 ifTrue:[ |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
593 |
| file | |
1246
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
594 |
|
1364
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
595 |
Smalltalk commandLineArguments size <= idx ifTrue:[ |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
596 |
'' errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
597 |
'smalltalk.rc [error]: --preferences requires an argument, none given' errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
598 |
Smalltalk exit: 1. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
599 |
]. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
600 |
file := (Smalltalk commandLineArguments at: idx + 1) asFilename. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
601 |
file exists ifFalse:[ |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
602 |
'' errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
603 |
('smalltalk.rc [error]: preference file ''', file pathName,''' does not exist') errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
604 |
Smalltalk exit: 1. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
605 |
]. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
606 |
file isDirectory ifTrue:[ |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
607 |
'' errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
608 |
('smalltalk.rc [error]: preference file ''', file pathName,''' is not a regular file') errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
609 |
Smalltalk exit: 1. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
610 |
]. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
611 |
file isReadable ifFalse:[ |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
612 |
'' errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
613 |
('smalltalk.rc [error]: preference file ''', file pathName,''' is not a readable (check permissions)') errorPrintCR. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
614 |
Smalltalk exit: 1. |
1513
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
615 |
]. |
1364
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
616 |
Smalltalk commandLineArguments removeAtIndex: idx + 1. |
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
617 |
Smalltalk commandLineArguments removeAtIndex: idx. |
1513
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
618 |
settings := UserPreferences loadSettingsFrom: file. |
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
619 |
] ifFalse:[ |
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
620 |
settings := UserPreferences loadSettings. |
1364
ab2a726d83e8
Added --no-preferences and --preferences options.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1362
diff
changeset
|
621 |
]. |
1513
4b7b0f9a8506
Cleanup: Use `UserPreferences class >> loadSettingsFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1486
diff
changeset
|
622 |
UserPreferences setCurrent: settings. |
1246
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
623 |
]. |
357edb85942f
- settings reading improved - searches also ~/.smalltalk/settings.stx
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1112
diff
changeset
|
624 |
]. |
933 | 625 |
]. |
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
626 |
! |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
627 |
|
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
628 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
629 |
"/ just a quick check, if this ST/X installation seems to |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
630 |
"/ be halfway complete (it happened to some people, that |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
631 |
"/ their source/resource directories were not installed) |
609 | 632 |
"/ - better to warn early ... |
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
633 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
634 |
|anyWrong missing| |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
635 |
Smalltalk isStandAloneApp ifFalse:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
636 |
anyWrong := false. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
637 |
missing := ''. |
409 | 638 |
|
639 |
"/ |
|
640 |
"/ no longer needed - if we have the package, |
|
641 |
"/ we also have the resources ... |
|
642 |
"/ |
|
643 |
"/ (Smalltalk getResourceFileName:'SystemBrowser.rs' forClass:SystemBrowser) isNil ifTrue:[ |
|
644 |
"/ '***********************************************************************' errorPrintCR. |
|
645 |
"/ '***** ATTENTION: please check installation of your >>resource<< files' errorPrintCR. |
|
646 |
"/ '***** I will not be able to give non-english messages' errorPrintCR. |
|
647 |
"/ anyWrong := true. |
|
648 |
"/ missing := '''resources'' '. |
|
649 |
"/ ]. |
|
650 |
||
651 |
"/ |
|
652 |
"/ no longer needed - if we have the package, |
|
653 |
"/ we also have the styles ... |
|
654 |
"/ |
|
655 |
"/ (Smalltalk getResourceFileName:'normal.style' forClass:View) isNil ifTrue:[ |
|
656 |
"/ '***********************************************************************' errorPrintCR. |
|
657 |
"/ '***** ATTENTION: please check installation of your >>style<< files' errorPrintCR. |
|
658 |
"/ '***** I will use a plain b&w viewStyle as a fallBack' errorPrintCR. |
|
659 |
"/ anyWrong := true. |
|
660 |
"/ missing := missing , '''resources'' '. |
|
661 |
"/ ]. |
|
662 |
||
686 | 663 |
(Smalltalk getPackageFileName:'stx/libbasic/source/Object.st') isNil and:[ |
664 |
(Smalltalk getPackageFileName:'stx/libbasic/Object.st') isNil and:[ |
|
665 |
(Smalltalk getSystemFileName:'source/Object.st') isNil and:[ |
|
666 |
(Smalltalk getSystemFileName:'source/source.zip') isNil and:[ |
|
667 |
(Smalltalk getSystemFileName:'source/libbasic.zip') isNil and:[ |
|
668 |
(Smalltalk getSourceFileName:'libbasic/Object.st') isNil and:[ |
|
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
669 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
670 |
"/ there may still be a SourceCodeManager ... |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
671 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
672 |
(Smalltalk at:#SourceCodeManager) isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
673 |
'***********************************************************************' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
674 |
'***** ATTENTION: please check installation of your >>source<< files' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
675 |
'***** ' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
676 |
'***** the browser/debugger may not be able to show sourcecode.' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
677 |
'***** Also, autoloading may fail if sourceFiles are missing.' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
678 |
anyWrong := true. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
679 |
missing := missing , '''source'' '. |
686 | 680 |
]]]]]]]. |
409 | 681 |
|
682 |
"/ |
|
683 |
"/ no longer needed - if we have the package, |
|
684 |
"/ we also have the bitmaps ... |
|
685 |
"/ |
|
686 |
"/ (Smalltalk bitmapFromFileNamed:'SmalltalkX.xbm' inPackage:'stx:libtool') isNil ifTrue:[ |
|
687 |
"/ '***********************************************************************' errorPrintCR. |
|
688 |
"/ '***** ATTENTION: please check installation of your >>bitmap<< files' errorPrintCR. |
|
689 |
"/ anyWrong := true. |
|
690 |
"/ missing := missing , '''bitmaps'' '. |
|
691 |
"/ ]. |
|
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
692 |
|
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
693 |
anyWrong ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
694 |
'*****' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
695 |
'***** directory(s) named: ' errorPrint. missing errorPrint. 'incomplete/not existing' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
696 |
'***** I could not find the missing directory along your path,' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
697 |
'***** which is:' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
698 |
Smalltalk systemPath do:[:dir | |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
699 |
('***** ' , dir storeString) errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
700 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
701 |
|
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
702 |
'*****' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
703 |
'***** Try: "make source bitmaps resources styles"' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
704 |
'***** or: "make symlinks" to fix this.' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
705 |
'***********************************************************************' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
706 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
707 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
708 |
! |
169 | 709 |
|
710 |
"/ |
|
711 |
"/ set the package to some useful default |
|
712 |
"/ |
|
713 |
Project notNil ifTrue:[ |
|
714 |
Project setDefaultProject. |
|
443 | 715 |
"/ Project current package:#'private'. |
169 | 716 |
]. |
717 |
||
718 |
"/ |
|
152 | 719 |
"/ if error occurs, and debugger has problems coming up, |
720 |
"/ uncomment the following ... |
|
25 | 721 |
"/ |
10 | 722 |
"/ Debugger := MiniDebugger. |
0 | 723 |
|
1422 | 724 |
|
725 |
"/ |
|
726 |
"/ load initial packages |
|
727 |
"/ |
|
728 |
UserPreferences current autoloadedPackages notEmpty ifTrue:[ |
|
1428 | 729 |
(Smalltalk commandLineArguments includesAny:#('--noAutoload' '--noautoload')) ifTrue:[ |
1426 | 730 |
'smalltalk.rc [info]: autoloaded packages suppressed.' infoPrintCR. |
731 |
] ifFalse:[ |
|
1422 | 732 |
'smalltalk.rc [info]: loading autoloaded packages...' infoPrintCR. |
733 |
(UserPreferences current autoloadedPackages) do:[:eachPackage | |
|
1424
602b53d13b37
splash message when autoloading packages
Claus Gittinger <cg@exept.de>
parents:
1422
diff
changeset
|
734 |
Smalltalk showSplashMessage:('Autoloading ',eachPackage,'...'). |
1425 | 735 |
Error handle:[:ex | |
1457 | 736 |
('smalltalk.rc [error]: error while autoloading package: ',eachPackage) errorPrintCR. |
1425 | 737 |
] do:[ |
738 |
Smalltalk loadPackage:eachPackage. |
|
739 |
] |
|
1422 | 740 |
]. |
1424
602b53d13b37
splash message when autoloading packages
Claus Gittinger <cg@exept.de>
parents:
1422
diff
changeset
|
741 |
Smalltalk showSplashMessage:('done.'). |
1426 | 742 |
] |
1422 | 743 |
]. |