Merge jv
authorMerge Script
Wed, 08 Apr 2015 12:23:25 +0200
branchjv
changeset 18192 32a7c53ef4d0
parent 18120 e3a375d5f6a8 (current diff)
parent 18191 3f0bbbfd91f7 (diff)
child 18200 3ddc4e7d42c0
child 18202 df2a178e4123
Merge
AbstractOperatingSystem.st
Behavior.st
CharacterArray.st
CharacterEncoder.st
Collection.st
Context.st
EncodedStream.st
Float.st
LimitedPrecisionReal.st
LongFloat.st
Object.st
OrderedCollection.st
Process.st
ProjectDefinition.st
ReadStream.st
SequenceableCollection.st
ShortFloat.st
StandaloneStartup.st
UnixOperatingSystem.st
WriteStream.st
--- a/.hgtags	Wed Apr 01 10:20:10 2015 +0100
+++ b/.hgtags	Wed Apr 08 12:23:25 2015 +0200
@@ -1,68 +1,71 @@
-01cf232f73e77af47fee3d98f794c68c984d3941 rel5_1_3
-01cf232f73e77af47fee3d98f794c68c984d3941 stx_513
-03969c4b3ea2db785c7d82d8f792c6edbdc6cbd4 expeccoNET_1_8_0_0
-03f1bd57c0016b7761c5a4828408b27157788075 rel4_1_7
-03f1bd57c0016b7761c5a4828408b27157788075 release
-135cee5b1fe83574ef2e1336d17930bea5d8fb63 expecco_2_4_1
-187baeafc381324b2be71399be1263af19f79b1a rel5_2_8
-1b91431394a56cd6b6499cafbe6fb872f18cb9eb expecco_2_5_1
-27fb4984e97ba85d254d442042a0a57688f8f586 expecco_1_7_0rc8
-288a01786ed5f59915047167fba6c00b36226c4a expeccoNET_1_5_1rc1
-28ef0472cf2f08acd9c2056a517e1fae4bc8033d expecco_2_2_5
-2f39b0b6f4e6ecc84a698e16accec417b27b0da4 expecco_1_3_4
-335888decf07eff0768f4446b74ea2de3db8d201 expecco_2_6_1
+00ff0c8bc13a58739504e851934254e98df6215a stable
+1d9d6c39b0502beb341e3890a46d6f310fbd8475 ecpecco_1_6_0
+23b97fa0be768ce65ad2fc755e02f7f625a235e8 expecco_2_0_0_0
+280139d863b54e99a7e84af6ec5f38a7b5eeb266 expecco_2_7_0
+280139d863b54e99a7e84af6ec5f38a7b5eeb266 expecco_2_7_0_49
+2a14d6e5479c98cd9e1d82719908e486297376d9 expecco_1_7_0rc8
+2c07a05644f14ed0851f9b676504d8246800dfa8 expeccoNET_1_6_8_0
+2c1c439ddab3d63d3ce82d0a0b8b29aee2a7df3e expecco_1_3_4
+347e20055f41086ab0c823717a5113cd4172eaed expecco_2_6_0
+347e20055f41086ab0c823717a5113cd4172eaed expecco_2_6_0_45_windows_final
+347e20055f41086ab0c823717a5113cd4172eaed expecco_2_6_0_49_windows_final
 373af30a15cafccd184b57b8492979e1969af65f rel3_4_1_1
 3816e831f5f3ed00876f38adbfaf1a25ad010ed7 rel2_10_8_6_last_before_vmData_change
-43a8ca39cc90b39ea2b236198c4c117bee6f8858 expecco_2_7_1
-471ed2bb3bf16111afbf2e0d6dfb422d78294aca expecco_1_0_3
-520c27f8cae267240021277e257e013b60b9cdb8 rel5_2_2
-54dd825d531c7adec355b2ffbdd6b66d00d4678a expecco_1_6_0rc5
-57ed55badeffc263d8843f129f6b9e540d983ba0 expecco_2_6_0
-5fcd709c7fd282e9c55d8642d1a6b1d5d77baf5e expecco_2_5_0
+3a98fb1116bfbe6d245769532b7a38bb08e6d9ef expeccoNET_1_5_1rc1
+410089913ca17c243ef545c6cba10cade87e055f expecco_2_4_0
+4306fb61b9f8004278974861ad3d1fb0cc9a9529 expecco_1_6_0rc5
+43bb5d8495e0048a1ba8f299b56d6411394dc6d1 expecco_1_7_0rc1
+450ef1ef300439525051565b03de0ea419fb2b39 expecco_2_7_1
+59d0cc49b9442979ff138bc2424f588e8a533c2f expecco_1_7_0rc3
+602e61cb64a3aaa674fbaf01705064701f2f5c14 expecco_2_2_5
 615c4fe0f449a6be077b11450d39fb6560b1695a rel4_1_3_1
-62ff001533901d30b624539b2f404d73f01db468 expecco_1_6_0
-664991bb352e0a9f98bd7d36ec1c0b6a75e649eb rel5_4_6
+62a6f6bf970f29376a2ee4c4e6905190a3a835aa rel5_2_1
 66c9ab533baa6c668c01fda982432655a764ca67 rel3_4_1_2
-6dcd44bc2ff92d95c87750dece318217585ea275 expecco_1_7_0b1
-6dcd44bc2ff92d95c87750dece318217585ea275 expecco_1_7_0b2
-700a73103ea1d350d9367d1318cf2250c587c80a ecpecco_1_6_0
-73bff9f3bc154d094eed413285d782f1029ce3c0 stable
-7637b5e86692e36907a176161940d8453e854c8a test
-7b32ff0e0c72e6d96f5db1470e04f1f7919678e4 expeccoNET_1_6_0_0
+66d73da92ab077ee48aca4d17544f04d5b1aeb4a expecco_1_0_3
+6ad068b28f7d69d4619dfad07d4bda07dd672fc4 expecco_2_6_1
+6f6b3188b2850eb453e2624b64f01e853c84c709 rel5_4_6
+7094a6561516ade3a3a1f9695d557403f9905546 expecco_1_7_2rc1
+7200ceadd215bf267a9fa8f7a4aeba1409306b3d expecco_1_6_0
+73e759072361354955646ef5b26164789d6c2485 test
+7952d944b767ec88f45269dcfb8921917c0eeec8 expecco_2_6_0rc1
+7ab842b7c71c61ba2724a19bfee0a3f71ee5d789 expecco_2_0_0
+8032211f7b83bcf17b025033a2fda14bc8787972 expecco_2_5_0
+813dd84a590114f633db20e1ae93e01305464635 expecco_1_8_0rc1
+8240c22db37ba4a710eb37f603b9ca5f8653fd15 stable_expecco_sel
+82d4d8746aaf075713438b7075cda63b623533cf stx_6_2_2
+846a85c9fcbfd922cc30626c4734fa548766f31a expecco_1_7_1rc1
+846a85c9fcbfd922cc30626c4734fa548766f31a expecco_1_7_1rc2
+846a85c9fcbfd922cc30626c4734fa548766f31a expecco_1_7_1rc3
+846a85c9fcbfd922cc30626c4734fa548766f31a expecco_1_7_1rc4
+8494a4155037a0dbf963827c28113010b260c091 rel5_1_3
+8494a4155037a0dbf963827c28113010b260c091 stx_513
 86239edb7b7de95492d82032c4e8adb1f0ec6222 rel2_10_8_6_last2
-88cefb6e5d94dfa777b7ffe3cc699541447c85b8 exepcco_2_5_1
-8b83b6cb00ac9b0195bab75970ccec06701b9dbc stable_expecco_sel
-8be2937c7fb70da4f6b0d561f38136641822a2b1 expecco_2_7_0
-8be2937c7fb70da4f6b0d561f38136641822a2b1 expecco_2_7_0_49
-8c59f73d3ab64139429870d798bd55d5420fee1f expeccoNET_1_4_0rc1
+8a9a892c83a30b07440beec6c4143c8b6a18656b expecco_2_1_0
 8d10113a89a936d0e702cabc9df87f694ffd4595 rel3_6_1
-9770f4ad54ff34fef3e47c556ec916053b1fc5e1 rel5_2_1
 983d045c17f5f23c4d5b7e3644ec8921f68c11d8 rel2_10_8_5
-993cce8ede772a9824374617416761d5e77b7ef0 expecco_1_7_2rc1
-9cdd427527503c68f07643a213c28421188bb185 expecco_2_0_0
+9b9827530bf482de3a201ee587692db32f7c4877 expecco_2_6_2
+a1ac75bd5b522bdedd4014197dd172c9a1005ca4 expecco_2_5_1
+a5aa551f9b6ba0f59b7050cdf26a247f473b5e3c expeccoNET_1_7_0_0
 a7ae2d96849615e5d3a46f24faf788506428db65 dtm2_1
-a91a569695ec39ec5e7f0fe0aa215b134430202b expecco_2_1_0
-b0b377ad4df192b9fdda9f2c1038c5e05c48290c expecco_2_2_0
-b2c70b0a0acfd9c4f6a2c1304b1a6eab18521f81 expecco_1_7_0rc3
-b64647b51eca20f04c15fa476abbc2c815cca8d7 expecco_1_5_0
-bf65bdad3827b0eb8d7763ffbaf5eb7bee41219d expecco_1_7_0rc5
-bfd3073ef9d2b658a9747ac0076153d0131f1951 expecco_1_7_0b3
+aa750bde773e436f3e2957d1d1f3ae746bd0c2d9 exepcco_2_5_1
+aa93e348e5d3c964977d1571451e24069a17f88a expeccoNET_1_5_0rc1
+aa93e348e5d3c964977d1571451e24069a17f88a expecco_1_8_2rc1
+aebca3972774d3331f0bcedbaef81aec29ff2026 expecco_1_7_0rc5
+b2c6e6d23adc8a68c359806eefdda97535773e31 expeccoNET_1_4_0rc1
+ba5f4421848f248753a0e2454ffee0c055040a45 rel5_2_2
+bf65bdad3827b0eb8d7763ffbaf5eb7bee41219d expecco_1_7_0b3
+c12795ed7ddc998f7f9ad0fa8ae47fc06a9f1aec rel4_1_7
+c12795ed7ddc998f7f9ad0fa8ae47fc06a9f1aec release
 c2d24038c1fef0d0e8f09e3332169bc6e5177f61 rel3_4_3_1
-c7cabeb9c3bce304ab0864cde1b6de1456531276 expecco_2_4_0
-ca08328dd255e9d62f7daba136010fa7fd0b4546 expecco_1_9_1_iX
-cbc08817ae5dd258c1d2d4456c389f6f34bfe853 expecco_1_7_1rc1
-cbc08817ae5dd258c1d2d4456c389f6f34bfe853 expecco_1_7_1rc2
-cbc08817ae5dd258c1d2d4456c389f6f34bfe853 expecco_1_7_1rc3
-cbc08817ae5dd258c1d2d4456c389f6f34bfe853 expecco_1_7_1rc4
-cfc48336f2493581c8f183deeb3715bbd32bb403 expecco_2_0_0_0
-d09af69f046633ce668c90d046c6cd3465bd9193 rel5_1_4
-d372cd62ccc0fde4001b903e1d9352ee7dffe528 expecco_2_6_2
-da05376dea2daaa5ba82ab647436ec3fc52df2d8 stx_6_2_2
-e0cc829d4b4ded0bb078233ea50f75f48b3e15f5 expeccoNET_1_5_0rc1
-e0cc829d4b4ded0bb078233ea50f75f48b3e15f5 expecco_1_8_2rc1
+c93f1263c53d91e350fb98fbb85409f97ec59b8e expecco_1_7_0b1
+c93f1263c53d91e350fb98fbb85409f97ec59b8e expecco_1_7_0b2
+cfc48336f2493581c8f183deeb3715bbd32bb403 expecco_1_9_1_iX
+d15a30648de6fcdeeac6e2969829a52eeaaf39b6 expeccoNET_1_6_0_0
+d54099096ccfea31f5255c4264ceb3f35fcab07a rel5_1_4
+d7c3e67647f1adbf856aa94254d80c38e4e0d3be expeccoNET_1_8_0_0
+eda1041261e570dbac517ed2e75360b499878f45 expecco_2_4_1
+f085cd1af3e416945f8b84e3a0f16a4811f54c1b rel5_2_8
+f3aaae5ab1000c638e5b258dfae580d17019fde9 expecco_1_5_0
 f654a1cbc5b015722d56b6da4a871237b7f2da1b rel3_6_4
 f6e7094cd3e478fbfdd889241b3d1da35cf1d5e9 rel3-1-2
-f9e3c45c53c85ee9c824dcbe946103fc905350fb expecco_1_7_0rc1
-fb2ae640ab022319341dcc6a401f9dd9dc63ba06 expeccoNET_1_7_0_0
-fd20ec4fb909fe3ee3580af7a957e759e791a31a expecco_1_8_0rc1
-fffe5dbb451bf8f7d1b355109e5e1d997edafd66 expeccoNET_1_6_8_0
+fa834a81a55cbd6f9bdef9ae92ea3bb38879d4bf expecco_2_2_0
--- a/AbstractOperatingSystem.st	Wed Apr 01 10:20:10 2015 +0100
+++ b/AbstractOperatingSystem.st	Wed Apr 08 12:23:25 2015 +0200
@@ -2778,9 +2778,9 @@
 
      The info object returned is OS-specific, however it responds to at
      least
-        #isFor32BitArchitecture
-        #isFor64BitArchitecture ... returns true, if the given object is for
-                                     32bit, 64bit architecture respectively
+	#isFor32BitArchitecture
+	#isFor64BitArchitecture ... returns true, if the given object is for
+				     32bit, 64bit architecture respectively
     "
     ^ self subclassResponsibility
 
@@ -3592,11 +3592,15 @@
 #    endif
 #   endif
 #  endif
-# else
-#  ifdef __GNUC__
-#   define CC_DEFINE     "__GNUC__"
+# else /* not WIN32 */
+#  ifdef __clang__
+#   define CC_DEFINE     "__clang__"
 #  else
-#   define CC_DEFINE     "__CC__"
+#   ifdef __GNUC__
+#    define CC_DEFINE     "__GNUC__"
+#   else
+#    define CC_DEFINE     "__CC__"
+#   endif
 #  endif
 # endif
 #endif
@@ -7720,11 +7724,11 @@
 !AbstractOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.295 2015-03-26 11:24:48 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.296 2015-04-07 10:21:55 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.295 2015-03-26 11:24:48 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.296 2015-04-07 10:21:55 cg Exp $'
 ! !
 
 
--- a/Context.st	Wed Apr 01 10:20:10 2015 +0100
+++ b/Context.st	Wed Apr 08 12:23:25 2015 +0200
@@ -252,6 +252,7 @@
     |c|
 
 %{
+#ifndef __JAVA__
     OBJ __c__;
 
     __c__ = __ContextInstPtr(__thisContext)->c_sender;
@@ -262,6 +263,7 @@
 	__PATCHUPCONTEXT(__c__);
     }
     c = __c__;
+#endif
 %}.
     ^ c findSpecialHandle:searchForHandle raise:searchForRaise
 ! !
@@ -343,8 +345,11 @@
     "ANSI alias for numArgs: return the number of arguments to the Block/Method"
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    return context.RETURN( self.numArgs() );
+#else
     RETURN ( __mkSmallInteger( (__intVal(__INST(flags)) >> __NARG_SHIFT) & __NARG_MASK) );
+#endif
 %}
 !
 
@@ -355,7 +360,10 @@
     "/ some machines have the arguments/receiver etc. kept in register vars ...
     "/ the unfix updates the machine-stack version of the receiver.
 %{
+#ifdef __JAVA__
+#else
     __UNFIXCONTEXT(self, 0);
+#endif
 %}.
     ^ value
 !
@@ -382,9 +390,21 @@
      Notice, that one of the next ST/X versions might get some syntactic
      extension to get this automatically)."
 
-    (index == %{ __MKSMALLINT(__SLOT_CONTEXT_SENDER) %} ) ifTrue:[^ self sender]."/ sender - must be accessed specially
-    (index == %{ __MKSMALLINT(__SLOT_CONTEXT_RETVAL) %} ) ifTrue:[^ nil].        "/ retvalTemp - invisible
-    (index == %{ __MKSMALLINT(__SLOT_CONTEXT_HANDLE) %} ) ifTrue:[^ nil].        "/ handle to machine stack - invisible
+    |what|
+
+%{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
+    if (index == __MKSMALLINT(__SLOT_CONTEXT_SENDER)) {                 // sender - must be accessed specially
+	 what = @symbol(sender);
+    } else if (index == __MKSMALLINT(__SLOT_CONTEXT_RETVAL)) {          // retvalTemp - invisible
+	 RETURN (nil);
+    } else if (index == __MKSMALLINT(__SLOT_CONTEXT_HANDLE)) {          // handle to machine stack - invisible
+	 RETURN (nil);
+    }
+#endif
+%}.
     ^ super instVarAt:index
 !
 
@@ -393,16 +413,28 @@
      Notice, that one of the next ST/X versions might get some syntactic
      extension to get this automatically)."
 
-    (index == %{ __MKSMALLINT(__SLOT_CONTEXT_SENDER) %} ) ifTrue:[^ nil].        "/ sender - not allowed to change
-    (index == %{ __MKSMALLINT(__SLOT_CONTEXT_RETVAL) %} ) ifTrue:[^ nil].        "/ retvalTemp - not allowed to change
-    (index == %{ __MKSMALLINT(__SLOT_CONTEXT_HANDLE) %} ) ifTrue:[^ nil].        "/ handle to machine stack - not allowed to change
+%{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
+    if (index == __MKSMALLINT(__SLOT_CONTEXT_SENDER)) {                 // sender - not allowed to change
+	 RETURN (nil);
+    } else if (index == __MKSMALLINT(__SLOT_CONTEXT_RETVAL)) {          // retvalTemp - not allowed to change
+	 RETURN (nil);
+    } else if (index == __MKSMALLINT(__SLOT_CONTEXT_HANDLE)) {          // handle to machine stack - not allowed to change
+	 RETURN (nil);
+    }
+#endif
+%}.
     super instVarAt:index put:value.
 
     "/ need some aid for optimized code -
     "/ some machines have the arguments kept in register vars ...
     "/ the unfix updates the machine-stack version of the receiver.
 %{
+#ifdef __JAVA__
     __UNFIXCONTEXT(self, 0);
+#endif
 %}.
     ^ value
 !
@@ -624,8 +656,11 @@
     "return the number of arguments to the Block/Method"
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     RETURN ( __mkSmallInteger( (__intVal(__INST(flags)) >> __NARG_SHIFT) & __NARG_MASK) );
+#endif
 %}
 !
 
@@ -643,8 +678,11 @@
     "return the number of local variables of the Block/Method"
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     RETURN ( __mkSmallInteger( (__intVal(__INST(flags)) >> __NVAR_SHIFT) & __NVAR_MASK) );
+#endif
 %}
 !
 
@@ -682,7 +720,11 @@
     "/ some machines have the arguments kept in register vars ...
     "/ the unfix updates the machine-stack version of the receiver.
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     __UNFIXCONTEXT(self, 0);
+#endif
 %}.
 
 !
@@ -707,6 +749,9 @@
     "return the sender of the context"
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ theContext;
 
     theContext = __INST(sender_);
@@ -734,6 +779,7 @@
 	}
     }
     RETURN (theContext);
+#endif
 %}
 !
 
@@ -746,10 +792,14 @@
      invalid until needed."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     if ( __INST(sender_) == nil ) {
 	RETURN (true);
     }
     RETURN (false);
+#endif
 %}.
 !
 
@@ -763,6 +813,9 @@
     "set the number of arguments and variables"
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     INT flg;
 
     flg = __intVal(__INST(flags));
@@ -771,6 +824,7 @@
     flg = flg | __intVal(nA) << __NARG_SHIFT;
     flg = flg | __intVal(nV) << __NVAR_SHIFT;
     __INST(flags) = __mkSmallInteger(flg);
+#endif
 %}
 !
 
@@ -927,8 +981,12 @@
 
 fixAllLineNumbers
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     __PATCHUPCONTEXTS(__thisContext);
     __CONTEXTLINENOS(self);
+#endif
 %}
 ! !
 
@@ -940,7 +998,7 @@
 
     self receiverPrintString print. ' ' errorPrint. selector errorPrint.
     self size ~~ 0 ifTrue: [
-        ' ' errorPrint. self argsDisplayString errorPrint
+	' ' errorPrint. self argsDisplayString errorPrint
     ].
     ' [' errorPrint. self lineNumber errorPrint. ']' errorPrintCR
 
@@ -1006,14 +1064,14 @@
     context := self.
     '--------------------------' errorPrintCR.
     [context notNil] whileTrue: [
-        context errorPrintCR.
-        context := context sender.
-        nOrNil notNil ifTrue:[
-            (count := count+1) > nOrNil ifTrue:[
-                '--------------------------' errorPrintCR.
-                ^ self
-            ].
-        ]
+	context errorPrintCR.
+	context := context sender.
+	nOrNil notNil ifTrue:[
+	    (count := count+1) > nOrNil ifTrue:[
+		'--------------------------' errorPrintCR.
+		^ self
+	    ].
+	]
     ].
     '--------------------------' errorPrintCR.
 
@@ -1084,11 +1142,15 @@
 	 If such a context is restarted, a runtime error is raised."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     if (__INST(sender_) == nil) {
 	RETURN(nil);
     } else {
 	__RESUMECONTEXT__(self, RESTART_VALUE, 0);
     }
+#endif
 %}.
 
     "
@@ -1140,6 +1202,9 @@
     "
 
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ sndr;
 
     theContext = __thisContext;
@@ -1153,6 +1218,7 @@
 	    __PATCHUPCONTEXT(theContext);
 	}
     }
+#endif
 %}.
 
     theContext isNil ifTrue:[
@@ -1187,6 +1253,9 @@
     "
 
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ theContext, sndr;
 
     theContext = __thisContext;
@@ -1202,6 +1271,7 @@
 	    }
 	}
     }
+#endif
 %}.
 
     "/ no error reporting
@@ -1229,6 +1299,9 @@
     "
 
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ theContext, sndr;
 
     theContext = __thisContext;
@@ -1242,6 +1315,7 @@
 	    __RESUMECONTEXT__(theContext, value, 0);
 	}
     }
+#endif
 %}.
 
     "/ no error reporting
@@ -1279,11 +1353,15 @@
 	 If such a context is restarted, a runtime error is raised."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     if (__INST(sender_) == nil) {
 	RETURN(nil);
     } else {
 	__RESUMECONTEXT__(self, value, 0);
     }
+#endif
 %}.
 
     "
@@ -1310,11 +1388,15 @@
 	 If such a context is restarted, a runtime error is raised."
 
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     if (__INST(sender_) == nil) {
 	RETURN(nil);
     } else {
 	__RESUMECONTEXT__(self, aBlock, 2);
     }
+#endif
 %}.
 
     "
@@ -1569,6 +1651,9 @@
 argStringFor:someObject
     |s|
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     /*
      * special handling for (invalid) free objects.
      * these only appear if some primitiveCode does not correctly use SEND macros,
@@ -1578,6 +1663,7 @@
     if (__isNonNilObject(someObject) && (__qClass(someObject)==nil)) {
 	s = __MKSTRING("FreeObject");
     }
+#endif
 %}.
     s isNil ifTrue:[
 	s := someObject displayString.
@@ -1608,15 +1694,15 @@
 
     n := self numArgs.
     1 to:n do:[:index |
-        Error handle:[:ex |
-            s := '*Error in argString*'.
-        ] do:[
-            s := self argStringFor:(self at:index).
-            s := s contractTo:100.
-        ].
-
-        aStream nextPutAll:s asString string.
-        index ~~ n ifTrue:[ aStream space ].
+	Error handle:[:ex |
+	    s := '*Error in argString*'.
+	] do:[
+	    s := self argStringFor:(self at:index).
+	    s := s contractTo:100.
+	].
+
+	aStream nextPutAll:s asString string.
+	index ~~ n ifTrue:[ aStream space ].
     ].
 
     "Modified: / 07-03-2012 / 13:09:17 / cg"
@@ -1759,7 +1845,7 @@
     (nonMeta := aClass theNonMetaclass) isJavaClass ifTrue:[
        nonMeta javaName printOn: aStream
     ] ifFalse:[
-        (aClass name ? '????') printOn:aStream.
+	(aClass name ? '????') printOn:aStream.
     ].
 
     "Modified: / 08-08-2014 / 09:39:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
@@ -1776,28 +1862,28 @@
 
     aStream bold.
     m := self method.
-    m isJavaMethod ifTrue:[ 
-        aStream nextPutAll: (m printStringForBrowserWithSelector: self selector).
+    m isJavaMethod ifTrue:[
+	aStream nextPutAll: (m printStringForBrowserWithSelector: self selector).
     ] ifFalse:[
-        self selector printOn:aStream.    "show as string (as symbol looks too ugly in browser ...)"
-        "/ self selector storeOn:aStream.    "show as symbol"
+	self selector printOn:aStream.    "show as string (as symbol looks too ugly in browser ...)"
+	"/ self selector storeOn:aStream.    "show as symbol"
     ].
     aStream normal.
 
     (method notNil and:[method isWrapped]) ifTrue:[
-        aStream nextPutAll:' (wrapped) '
+	aStream nextPutAll:' (wrapped) '
     ].
     aStream nextPutAll:' ['.
-    m isJavaMethod ifTrue:[ 
-        aStream nextPutAll: self method mclass sourceFile ? '???' .
-        m isNative ifTrue:[
-            aStream nextPutAll: ':in native code'
-        ] ifFalse:[ 
-            aStream nextPut: $:.
-            (m lineNumberForPC0: lineNr) ? '???' printOn: aStream.
-        ].
+    m isJavaMethod ifTrue:[
+	aStream nextPutAll: self method mclass sourceFile ? '???' .
+	m isNative ifTrue:[
+	    aStream nextPutAll: ':in native code'
+	] ifFalse:[
+	    aStream nextPut: $:.
+	    (m lineNumberForPC0: lineNr) ? '???' printOn: aStream.
+	].
     ] ifFalse:[
-        self lineNumber printOn: aStream
+	self lineNumber printOn: aStream
     ].
     aStream nextPut:$].
 
@@ -1812,79 +1898,79 @@
 
     receiverClassName := self safeReceiverClassName.
     receiverClassName notNil ifTrue:[
-        "if we come here, this is a context with an illegal class"
-        receiverClassName printOn:aStream.
-        ^ self.
+	"if we come here, this is a context with an illegal class"
+	receiverClassName printOn:aStream.
+	^ self.
     ].
 
     receiverClass := receiver class.
 
     (receiverClass == SmallInteger or:[receiverClass == Float]) ifTrue:[
-        aStream nextPut:$(. receiver printOn:aStream. aStream nextPutAll:') '.
+	aStream nextPut:$(. receiver printOn:aStream. aStream nextPutAll:') '.
     ].
     self printClassNameOf:receiverClass on:aStream.
 
     (selector notNil or:[method notNil]) ifTrue:[
-        "/ implementorClass := self searchClass whichClassIncludesSelector:selector.
-
-        "
-         kludge to avoid slow search for containing class
-        "
-        (method notNil
-         or:[selector ~~ #doIt and:[selector ~~ #doIt:]]) ifTrue:[
-            implementorClass := self methodClass.
-            implementorClass isNil ifTrue:[
-                "
-                 kludge for the frame called by a wrappedmethod;
-                 the wrappedmethod is in the class, so its mclass is correct.
-                 however, the originalmethod is invoked via performMethod, and its mclass
-                 is nil. Care for this here. Think about keeping the mclass in the original method.
-                "
-                (method notNil and:[method isWrapped not]) ifTrue:[
-                    WrappedMethod notNil ifTrue:[
-                        WrappedMethod allWrappedMethodsDo:[:wrapped |
-                            wrapped originalMethodIfWrapped == method ifTrue:[
-                                implementorClass := wrapped mclass.
-                            ].
-                        ].
-                    ].
-                ]
-            ].
-        ].
-
-        implementorClass notNil ifTrue: [
-            (implementorClass ~~ receiverClass) ifTrue: [
-                aStream nextPut:$(.
-                self printClassNameOf:implementorClass on:aStream.
-                aStream nextPut:$).
-            ]
-        ] ifFalse:[
-            | srchClass where |
-
-            srchClass := self searchClass.
-            srchClass ~~ receiverClass ifTrue:[
-                aStream nextPut:$(. 
-                self printClassNameOf:srchClass on:aStream.
-                aStream nextPut:$).
-            ].
-            "
-             kludge for doIt - these unbound methods are not
-             found in the classes methodDictionary
-            "
-            true "(selector ~~ #doIt and:[selector ~~ #doIt:])" ifTrue:[
-                "
-                 kludge for methods invoked explicitly via valueWithReceiver...
-                "
-                (self sender notNil 
-                and:[ self sender receiver isMethod
-                and:[ self sender selector startsWith:'valueWithReceiver:' ]]) ifTrue:[
-                    where := '(**DIRECTED**)'.
-                ] ifFalse:[
-                    where := '(**NONE**)'.
-                ].
-                aStream nextPutAll:where
-            ]
-        ]
+	"/ implementorClass := self searchClass whichClassIncludesSelector:selector.
+
+	"
+	 kludge to avoid slow search for containing class
+	"
+	(method notNil
+	 or:[selector ~~ #doIt and:[selector ~~ #doIt:]]) ifTrue:[
+	    implementorClass := self methodClass.
+	    implementorClass isNil ifTrue:[
+		"
+		 kludge for the frame called by a wrappedmethod;
+		 the wrappedmethod is in the class, so its mclass is correct.
+		 however, the originalmethod is invoked via performMethod, and its mclass
+		 is nil. Care for this here. Think about keeping the mclass in the original method.
+		"
+		(method notNil and:[method isWrapped not]) ifTrue:[
+		    WrappedMethod notNil ifTrue:[
+			WrappedMethod allWrappedMethodsDo:[:wrapped |
+			    wrapped originalMethodIfWrapped == method ifTrue:[
+				implementorClass := wrapped mclass.
+			    ].
+			].
+		    ].
+		]
+	    ].
+	].
+
+	implementorClass notNil ifTrue: [
+	    (implementorClass ~~ receiverClass) ifTrue: [
+		aStream nextPut:$(.
+		self printClassNameOf:implementorClass on:aStream.
+		aStream nextPut:$).
+	    ]
+	] ifFalse:[
+	    | srchClass where |
+
+	    srchClass := self searchClass.
+	    srchClass ~~ receiverClass ifTrue:[
+		aStream nextPut:$(.
+		self printClassNameOf:srchClass on:aStream.
+		aStream nextPut:$).
+	    ].
+	    "
+	     kludge for doIt - these unbound methods are not
+	     found in the classes methodDictionary
+	    "
+	    true "(selector ~~ #doIt and:[selector ~~ #doIt:])" ifTrue:[
+		"
+		 kludge for methods invoked explicitly via valueWithReceiver...
+		"
+		(self sender notNil
+		and:[ self sender receiver isMethod
+		and:[ self sender selector startsWith:'valueWithReceiver:' ]]) ifTrue:[
+		    where := '(**DIRECTED**)'.
+		] ifFalse:[
+		    where := '(**NONE**)'.
+		].
+		aStream nextPutAll:where
+	    ]
+	]
     ].
 
     "Created: / 23-10-2013 / 11:13:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
@@ -1913,6 +1999,9 @@
     |receiverClassName|
 
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     /*
      * special handling for (invalid) free objects.
      * these only appear if some primitiveCode does not correctly use SEND macros,
@@ -1921,6 +2010,7 @@
     if (__isNonNilObject(__INST(receiver)) && (__qClass(__INST(receiver))==nil)) {
 	receiverClassName = __MKSTRING("FreeObject");
     }
+#endif
 %}.
     ^ receiverClassName
 
@@ -1935,7 +2025,11 @@
      this context - a highly internal mechanism and not for public use."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      RETURN ( ((INT)__INST(flags) & __MASKSMALLINT(__UNWIND_MARK)) ? true : false );
+#endif
 %}
     "
      thisContext isMarkedForUnwind
@@ -1948,7 +2042,11 @@
      this context - a highly internal mechanism and not for public use."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      __INST(flags) = (OBJ)((INT)__INST(flags) | __MASKSMALLINT(__HANDLE_MARK));
+#endif
 %}
 
     "Modified: 13.12.1995 / 19:05:22 / cg"
@@ -1960,7 +2058,11 @@
      this context upon return - a highly internal mechanism and not for public use."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      __markInterrupted(__ContextInstPtr(self));
+#endif
 %}
 !
 
@@ -1971,7 +2073,11 @@
      - a highly internal mechanism and not for public use."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      __INST(flags) = (OBJ)((INT)__INST(flags) | __MASKSMALLINT(__IRQ_ON_UNWIND));
+#endif
 %}
 !
 
@@ -1981,7 +2087,11 @@
      this context - a highly internal mechanism and not for public use."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      __INST(flags) = (OBJ)((INT)__INST(flags) | __MASKSMALLINT(__RAISE_MARK));
+#endif
 %}
 
     "Modified: 13.12.1995 / 19:05:22 / cg"
@@ -1993,7 +2103,11 @@
      this context - a highly internal mechanism and not for public use."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      __INST(flags) = (OBJ)((INT)__INST(flags) | __MASKSMALLINT(__UNWIND_MARK));
+#endif
 %}
 
     "Modified: 13.12.1995 / 19:05:22 / cg"
@@ -2011,7 +2125,11 @@
      DANGER: this is for experimental, internal use only (byteCode interpreters)"
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     __INST(sender_) = aContext;
+#endif
 %}
 !
 
@@ -2021,7 +2139,11 @@
      this context - a highly internal mechanism and not for public use."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     __INST(flags) = (OBJ)((INT)__INST(flags) & ~__MASKSMALLINT(__UNWIND_MARK));
+#endif
 %}
 ! !
 
@@ -2050,7 +2172,9 @@
     "/  although they aren't really - this is expert knowledge, no need to understand that ...)
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ theContext;
 
     theContext = self;
@@ -2068,14 +2192,15 @@
 		 * We'll see, if this is really required.
 		 */
 		theContext->o_space |= CATCHMARK;
-#if 0
+# if 0
 		__markNonLIFO(theContext);
-#endif
+# endif
 	    }
 	    RETURN (theContext);
 	}
 	theContext = __ContextInstPtr(theContext)->c_sender;
     }
+#endif
 %}.
     ^ nil
 !
@@ -2102,7 +2227,9 @@
     "/  although they aren't really - this is expert knowledge, no need to understand that ...)
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ theContext;
     OBJ sel;
     OBJ __FETCHSELECTOR();
@@ -2110,13 +2237,13 @@
     theContext = __INST(sender_);
     while (__isNonNilObject(theContext)) {
 	if (__isLazy(theContext)) {
-#ifdef TRADITIONAL_STACK_FRAME
+# ifdef TRADITIONAL_STACK_FRAME
 	    sel = __FETCHSELECTOR(theContext);
-#else
+# else
 	    /* mhmh - not really needed */
 	    __PATCHUPCONTEXT(theContext);
 	    sel = __ContextInstPtr(theContext)->c_selector;
-#endif
+# endif
 	} else {
 	    sel = __ContextInstPtr(theContext)->c_selector;
 	}
@@ -2143,6 +2270,7 @@
 	theContext = __ContextInstPtr(theContext)->c_sender;
     }
     RETURN (nil);
+#endif
 %}.
     "
      |con sel|
@@ -2179,7 +2307,9 @@
     "/  although they aren't really - this is expert knowledge, no need to understand that ...)
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ theContext;
 
     if (self == aContext) {
@@ -2201,14 +2331,15 @@
 		 * We'll see, if this is really required.
 		 */
 		theContext->o_space |= CATCHMARK;
-#if 0
+# if 0
 		__markNonLIFO(theContext);
-#endif
+# endif
 	    }
 	    RETURN (theContext);
 	}
 	theContext = __ContextInstPtr(theContext)->c_sender;
     }
+#endif
 %}.
     ^ nil
 !
@@ -2236,7 +2367,9 @@
     "/  although they aren't really - this is expert knowledge, no need to understand that ...)
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ theContext;
     int flagMask = 0;
     INT mask;
@@ -2262,14 +2395,15 @@
 		 * We'll see, if this is really required.
 		 */
 		theContext->o_space |= CATCHMARK;
-#if 0
+# if 0
 		__markNonLIFO(theContext);
-#endif
+# endif
 	    }
 	    RETURN (theContext);
 	}
 	theContext = __ContextInstPtr(theContext)->c_sender;
     }
+#endif
 %}.
     ^ nil
 ! !
@@ -2288,105 +2422,105 @@
 
     homeContext := self methodHome.
     homeContext notNil ifTrue:[
-        sel := homeContext selector.
-        homeMethod := homeContext method.
+	sel := homeContext selector.
+	homeMethod := homeContext method.
     ].
 
     extractFromBlock :=
-        [
-            |blockNode argNames varNames vars args blocksHome|
-
-            blockNode := Compiler
-                            blockAtLine:blocksLineNr
-                            in:m
-                            orSource:src
-                            numArgs:numArgs
-                            numVars:numVars.
-
-            blockNode notNil ifTrue:[
-                "/ a kludge
-                blockNode lineNumber == blocksLineNr ifTrue:[
-                    blocksHome := blockNode home.
-                    (blocksHome notNil and:[blocksHome isBlock]) ifTrue:[
-                        (blocksHome numArgs == numArgs
-                        and:[ blocksHome numVars == numVars ]) ifTrue:[
-                            blockNode := blocksHome
-                        ].
-                    ].
-                ].
-
-                argNames := #().
-                varNames := #().
-
-                numArgs > 0 ifTrue:[
-                    vars := blockNode arguments.
-                    vars notEmptyOrNil ifTrue:[
-                        argNames := vars collect:[:var | var name]
-                    ]
-                ].
-                numVars > 0 ifTrue:[
-                    vars := blockNode variablesIncludingInlined: (homeMethod code notNil and:[homeMethod byteCode isNil]).
-                    vars notEmptyOrNil ifTrue:[
-                        varNames := vars collect:[:var | var name].
-                    ]
-                ].
-                ^ argNames , varNames
-            ].
-        ].
+	[
+	    |blockNode argNames varNames vars args blocksHome|
+
+	    blockNode := Compiler
+			    blockAtLine:blocksLineNr
+			    in:m
+			    orSource:src
+			    numArgs:numArgs
+			    numVars:numVars.
+
+	    blockNode notNil ifTrue:[
+		"/ a kludge
+		blockNode lineNumber == blocksLineNr ifTrue:[
+		    blocksHome := blockNode home.
+		    (blocksHome notNil and:[blocksHome isBlock]) ifTrue:[
+			(blocksHome numArgs == numArgs
+			and:[ blocksHome numVars == numVars ]) ifTrue:[
+			    blockNode := blocksHome
+			].
+		    ].
+		].
+
+		argNames := #().
+		varNames := #().
+
+		numArgs > 0 ifTrue:[
+		    vars := blockNode arguments.
+		    vars notEmptyOrNil ifTrue:[
+			argNames := vars collect:[:var | var name]
+		    ]
+		].
+		numVars > 0 ifTrue:[
+		    vars := blockNode variablesIncludingInlined: (homeMethod code notNil and:[homeMethod byteCode isNil]).
+		    vars notEmptyOrNil ifTrue:[
+			varNames := vars collect:[:var | var name].
+		    ]
+		].
+		^ argNames , varNames
+	    ].
+	].
 
     "/ #doIt needs special handling below
     isDoIt := (sel == #'doIt') or:[sel == #'doIt:'].
     self isBlockContext ifFalse:[
-        isDoIt ifTrue:[
-            homeMethod notNil ifTrue:[
-                "/ special for #doIt
-                m := nil.
-                src := ('[' , homeMethod source , '\]') withCRs.
-                "/ blocksLineNr := self lineNumber.
-                blocksLineNr := (self home ? self) lineNumber.
-                extractFromBlock value.
-            ]
-        ].
-
-        homeMethod notNil ifTrue:[
-            ^ homeMethod methodArgAndVarNamesInContext: self.
-        ].
-        ^ #()
+	isDoIt ifTrue:[
+	    homeMethod notNil ifTrue:[
+		"/ special for #doIt
+		m := nil.
+		src := ('[' , homeMethod source , '\]') withCRs.
+		"/ blocksLineNr := self lineNumber.
+		blocksLineNr := (self home ? self) lineNumber.
+		extractFromBlock value.
+	    ]
+	].
+
+	homeMethod notNil ifTrue:[
+	    ^ homeMethod methodArgAndVarNamesInContext: self.
+	].
+	^ #()
     ].
 
     homeMethod notNil ifTrue:[
-        isDoIt ifTrue:[
-            "/ special for #doIt
-            "/ my source is found in the method.
-            m := nil.
-            src := ('[' , homeMethod source , '\]') withCRs.
-        ] ifFalse:[
-            m := homeMethod.
-            src := nil.
-        ].
-        blocksLineNr := self lineNumber.
-        extractFromBlock value.
-        blocksLineNr := self home lineNumber.
-        extractFromBlock value.
+	isDoIt ifTrue:[
+	    "/ special for #doIt
+	    "/ my source is found in the method.
+	    m := nil.
+	    src := ('[' , homeMethod source , '\]') withCRs.
+	] ifFalse:[
+	    m := homeMethod.
+	    src := nil.
+	].
+	blocksLineNr := self lineNumber.
+	extractFromBlock value.
+	blocksLineNr := self home lineNumber.
+	extractFromBlock value.
     ].
 
     blocksLineNr isNil ifTrue:[
-        self isBlockContext ifTrue:[
-            sender := self sender.
-            (sender notNil
-            and:[sender receiver isBlock
-            and:[sender selector startsWith:'value']])
-            ifTrue:[
-                block := sender receiver.
-                src := block source.
-                src isNil ifTrue:[
-                    self error:'no source'.
-                ].
-                blocksLineNr := 1.
-                extractFromBlock value.
-            ].
-            sender := nil.
-        ].
+	self isBlockContext ifTrue:[
+	    sender := self sender.
+	    (sender notNil
+	    and:[sender receiver isBlock
+	    and:[sender selector startsWith:'value']])
+	    ifTrue:[
+		block := sender receiver.
+		src := block source.
+		src isNil ifTrue:[
+		    self error:'no source'.
+		].
+		blocksLineNr := 1.
+		extractFromBlock value.
+	    ].
+	    sender := nil.
+	].
     ].
 
     ^ #()
@@ -2406,6 +2540,9 @@
      (i.e. the one that I have called) and return from it.
     "
 %{
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     OBJ sndr;
 
     theContext = __thisContext;
@@ -2419,6 +2556,7 @@
 	    __PATCHUPCONTEXT(theContext);
 	}
     }
+#endif
 %}.
     theContext isNil ifTrue:[
 	^ false
@@ -2439,8 +2577,11 @@
      are all compiled with this flag turned on."
 
 %{  /* NOCONTEXT */
-
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
     RETURN ( ((INT)(__INST(flags)) & __MASKSMALLINT(__CANNOT_RETURN)) ? false : true );
+#endif
 %}.
     ^ true
 !
@@ -2460,7 +2601,11 @@
     "return true, if this is a context with exception-handle flag set"
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      RETURN ( ((INT)__INST(flags) & __MASKSMALLINT(__HANDLE_MARK)) ? true : false );
+#endif
 %}
 !
 
@@ -2473,7 +2618,11 @@
      debug query, which may be removed without notice."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      RETURN ( ((INT)__INST(flags) & __MASKSMALLINT(__NONLIFO)) ? true : false );
+#endif
 %}
 !
 
@@ -2484,7 +2633,11 @@
      debug query, which may be removed without notice."
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      RETURN ( (__qSpace(self) >= STACKSPACE) ? true : false );
+#endif
 %}
 !
 
@@ -2492,7 +2645,11 @@
     "return true, if this is a context with exception-raise flag set"
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      RETURN ( ((INT)__INST(flags) & __MASKSMALLINT(__RAISE_MARK)) ? true : false );
+#endif
 %}
 !
 
@@ -2500,7 +2657,11 @@
     "return true, if this is either a nonLifo or interrupted context"
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      RETURN ( ((INT)__INST(flags) & __MASKSMALLINT(__SPECIAL)) ? true : false );
+#endif
 %}
 !
 
@@ -2508,7 +2669,11 @@
     "return true, if this is an unwindContext"
 
 %{  /* NOCONTEXT */
+#ifdef __JAVA__
+    ERROR("unimplemented");
+#else
      RETURN ( ((INT)__INST(flags) & __MASKSMALLINT(__UNWIND_MARK)) ? true : false );
+#endif
 %}
 !
 
@@ -2558,29 +2723,29 @@
 
     c := self findNextContextWithSelector:selector or:nil or:nil.
     [c notNil] whileTrue:[
-        (c receiver == receiver) ifTrue:[
-            c method == self method ifTrue:[
-                sameArgs := true.
-                1 to:self numArgs do:[:i |
-                    (c argAt:1) ~~ (self argAt:i)ifTrue:[
-                        sameArgs := false
-                    ]
-                ].
-                sameArgs ifTrue:[^ true].
-            ]
-        ].
-        c := c findNextContextWithSelector:selector or:nil or:nil.
-
-        "
-         this special test was added to get out after a while
-         if the sender chain is corrupt - this gives us at least
-         a chance to find those errors.
-        "
-        count := count + 1.
-        count >= 100000 ifTrue:[
-            'Context [warning]: bad context chain' errorPrintCR.
-            ^ true
-        ]
+	(c receiver == receiver) ifTrue:[
+	    c method == self method ifTrue:[
+		sameArgs := true.
+		1 to:self numArgs do:[:i |
+		    (c argAt:1) ~~ (self argAt:i)ifTrue:[
+			sameArgs := false
+		    ]
+		].
+		sameArgs ifTrue:[^ true].
+	    ]
+	].
+	c := c findNextContextWithSelector:selector or:nil or:nil.
+
+	"
+	 this special test was added to get out after a while
+	 if the sender chain is corrupt - this gives us at least
+	 a chance to find those errors.
+	"
+	count := count + 1.
+	count >= 100000 ifTrue:[
+	    'Context [warning]: bad context chain' errorPrintCR.
+	    ^ true
+	]
     ].
     ^ false
 !
@@ -2598,7 +2763,7 @@
 
     c := self findNextContextWithSelector:selector or:nil or:nil.
     [c notNil] whileTrue:[
-        (c receiver == receiver) ifTrue:[
+	(c receiver == receiver) ifTrue:[
 "/            "
 "/             stupid: the current ST/X context does not include
 "/             the method, but the class, in which the search started ...
@@ -2609,21 +2774,21 @@
 "/            c methodClass == myMethodsClass ifTrue:[
 "/                ^ true
 "/            ].
-            "/ now it does!!
-            c method == self method ifTrue:[^ true].
-        ].
-        c := c findNextContextWithSelector:selector or:nil or:nil.
-
-        "
-         this special test was added to get out after a while
-         if the sender chain is corrupt - this gives us at least
-         a chance to find those errors.
-        "
-        count := count + 1.
-        count >= 100000 ifTrue:[
-            'Context [warning]: bad context chain' errorPrintCR.
-            ^ true
-        ]
+	    "/ now it does!!
+	    c method == self method ifTrue:[^ true].
+	].
+	c := c findNextContextWithSelector:selector or:nil or:nil.
+
+	"
+	 this special test was added to get out after a while
+	 if the sender chain is corrupt - this gives us at least
+	 a chance to find those errors.
+	"
+	count := count + 1.
+	count >= 100000 ifTrue:[
+	    'Context [warning]: bad context chain' errorPrintCR.
+	    ^ true
+	]
     ].
     ^ false
 
@@ -2633,11 +2798,11 @@
 !Context class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.210 2015-01-20 14:09:15 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.211 2015-04-07 20:17:36 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.210 2015-01-20 14:09:15 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Context.st,v 1.211 2015-04-07 20:17:36 cg Exp $'
 !
 
 version_HG
--- a/Object.st	Wed Apr 01 10:20:10 2015 +0100
+++ b/Object.st	Wed Apr 08 12:23:25 2015 +0200
@@ -5898,7 +5898,7 @@
     static struct inlineCache ilc_1 = __ILCPERF3(@line);
     static OBJ last_0 = nil;
     static OBJ last_1 = nil;
-    static flip = 0;
+    static int flip = 0;
 
     if (InterruptPending == nil) {
 	if (aSelector != last_0) {
@@ -5942,7 +5942,7 @@
     static struct inlineCache ilc_1 = __ILCPERF4(@line);
     static OBJ last_0 = nil;
     static OBJ last_1 = nil;
-    static flip = 0;
+    static int flip = 0;
 
     if (InterruptPending == nil) {
 	if (aSelector != last_0) {
@@ -5988,7 +5988,7 @@
     static struct inlineCache ilc_1 = __ILCPERF5(@line);
     static OBJ last_0 = nil;
     static OBJ last_1 = nil;
-    static flip = 0;
+    static int flip = 0;
 
     if (InterruptPending == nil) {
 	if (aSelector != last_0) {
@@ -6035,7 +6035,7 @@
     static struct inlineCache ilc_1 = __ILCPERF6(@line);
     static OBJ last_0 = nil;
     static OBJ last_1 = nil;
-    static flip = 0;
+    static int flip = 0;
 
     if (InterruptPending == nil) {
 	if (aSelector != last_0) {
@@ -6862,7 +6862,7 @@
 #undef SEL_AND_ILC_INIT_128
 #undef SEL_AND_ILC_INIT_256
 
-	static flip = 0;
+	static int flip = 0;
 	int i;
 	for (i = 0; i < nilcs; i++) {
 	   if (sel == sel_and_ilc[i].sel) {
@@ -10200,11 +10200,11 @@
 !Object class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Object.st,v 1.794 2015-03-26 11:16:56 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Object.st,v 1.795 2015-04-07 10:21:30 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Object.st,v 1.794 2015-03-26 11:16:56 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Object.st,v 1.795 2015-04-07 10:21:30 cg Exp $'
 !
 
 version_SVN
--- a/OrderedCollection.st	Wed Apr 01 10:20:10 2015 +0100
+++ b/OrderedCollection.st	Wed Apr 08 12:23:25 2015 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -38,12 +40,12 @@
 
 documentation
 "
-    OrderedCollections (OCs) have their elements ordered as they were
-    added. In addition, they provide all indexing access protocol
+    OrderedCollections (OCs) have their elements ordered as they were added. 
+    In addition, they provide all indexing access protocol
     and bulk copying (much like Arrays).
 
-    Insertion and removal at both ends is possible and reasonably 
-    fast - therefore they can be used for queues and stacks.
+    Insertion and removal at both ends is possible and also fast 
+    - therefore they can be used for queues and stacks.
 
     [Instance variables:]
         contentsArray   <Array>         the actual contents
@@ -1029,7 +1031,11 @@
      Returns a collection of removed elements.
 
      Performance: 
-        this is an O(N) algorithm."
+        this is an O(N) algorithm (N being the size of the receiver).
+
+     This could be done much better, especially if the removed indices are
+     at either end of the receiver. However, as it is currently not heavily used,
+     I leave that as an exercise to the brave reader..."
 
     |removed element dstIndex indexIndex nextIndex numIndices|
 
@@ -1576,8 +1582,9 @@
 makeRoomAtFront
     "grow/shift the contents for more room at the beginning.
      Does not change the logical size.
-     i.e.
-     #(1 2 3 4 5 6) -> #(nil 1 2 3 4 5 6)"
+     i.e. the contents array is changed from:
+        #(1 2 3 4 5 6) -> #(nil 1 2 3 4 5 6)
+     and the start/stopIndices are adjusted as required"
 
     |newContents
      oldSize    "{ Class:SmallInteger }"
@@ -2144,10 +2151,10 @@
 !OrderedCollection class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/OrderedCollection.st,v 1.116 2015-03-28 11:51:43 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/OrderedCollection.st,v 1.119 2015-04-02 23:54:19 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/OrderedCollection.st,v 1.116 2015-03-28 11:51:43 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/OrderedCollection.st,v 1.119 2015-04-02 23:54:19 cg Exp $'
 ! !
 
--- a/Process.st	Wed Apr 01 10:20:10 2015 +0100
+++ b/Process.st	Wed Apr 08 12:23:25 2015 +0200
@@ -14,11 +14,11 @@
 "{ NameSpace: Smalltalk }"
 
 Link subclass:#Process
-	instanceVariableNames:'id prio state startBlock name restartable
+	instanceVariableNames:'id lookupActivations lookupDisabled prio state startBlock name restartable
 		interruptActions exitActions suspendSemaphore singleStepping
 		emergencySignalHandler suspendActions creatorId processGroupId
 		interruptsDisabled priorityRange exceptionHandlerSet processType
-		environment lookupActivations lookupDisabled'
+		environment'
 	classVariableNames:'TerminateSignal RestartSignal CaughtSignals'
 	poolDictionaries:''
 	category:'Kernel-Processes'
@@ -42,6 +42,10 @@
 
 documentation
 "
+    WARNING: 
+	the offsets of the instance variables lookupActivations and lookupDisabled are known in the VM
+	do not remove them, and do not insert/remove instance variables before them
+
     Instances of Process represent lightweight smalltalk processes
     (i.e. threads). These all run in a shared smalltalk/X address space,
     and can thus access and communicate via any objects.
@@ -2144,7 +2148,7 @@
 
 version_CVS
 
-    ^ '$Header: /cvs/stx/stx/libbasic/Process.st,v 1.190 2015-02-23 23:41:27 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Process.st,v 1.191 2015-04-07 10:52:50 cg Exp $'
 !
 
 version_SVN
--- a/ReadStream.st	Wed Apr 01 10:20:10 2015 +0100
+++ b/ReadStream.st	Wed Apr 08 12:23:25 2015 +0200
@@ -30,10 +30,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <memory.h>
-#ifdef __osx__
-// missing definition ?
-extern void *memchr( void *, int, size_t);
-#endif
 
 %}
 ! !
@@ -913,10 +909,10 @@
 !ReadStream class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.81 2015-03-12 19:25:11 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.82 2015-04-07 10:22:50 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.81 2015-03-12 19:25:11 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.82 2015-04-07 10:22:50 cg Exp $'
 ! !
 
--- a/UnixOperatingSystem.st	Wed Apr 01 10:20:10 2015 +0100
+++ b/UnixOperatingSystem.st	Wed Apr 08 12:23:25 2015 +0200
@@ -287,6 +287,8 @@
 #  include <time.h>
 #  define HAS_TIMEGM
 
+#  ifdef NO_LONGER_NEEDED
+// struct tm seems to be defined now (new XCODE/CLANG compiler)
 struct tm {
 	int     tm_sec;         /* seconds after the minute [0-60] */
 	int     tm_min;         /* minutes after the hour [0-59] */
@@ -300,6 +302,7 @@
 	long    tm_gmtoff;      /* offset from CUT in seconds */
 	char    *tm_zone;       /* timezone abbreviation */
 };
+#  endif /* NO_LONGER */
 
 #  include <crt_externs.h>
 #  include <net/if_dl.h>
@@ -14177,11 +14180,11 @@
 !UnixOperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.430 2015-03-27 08:47:10 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.431 2015-04-07 10:24:16 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.430 2015-03-27 08:47:10 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/UnixOperatingSystem.st,v 1.431 2015-04-07 10:24:16 cg Exp $'
 ! !