forked from SeasideSt/Grease
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add implementation of #greaseAsByteArray for Squeak 6
- Loading branch information
Showing
40 changed files
with
199 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } | ||
"noMethodMetaData" : true, | ||
"useCypressPropertiesFile" : true | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Behavior.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Behavior" } | ||
"name" : "Behavior" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/BlockClosure.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "BlockClosure" } | ||
"name" : "BlockClosure" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/ByteArray.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "ByteArray" } | ||
"name" : "ByteArray" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Character.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Character" } | ||
"name" : "Character" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Collection.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Collection" } | ||
"name" : "Collection" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Duration.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Duration" } | ||
"name" : "Duration" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/GRDelegatingStream.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "GRDelegatingStream" } | ||
"name" : "GRDelegatingStream" | ||
} |
19 changes: 8 additions & 11 deletions
19
repository/Grease-Squeak6-Core.package/GRDynamicVariable.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "GRDynamicVariable", | ||
"pools" : [ | ||
], | ||
"super" : "DynamicVariable", | ||
"type" : "normal" } | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRDynamicVariable", | ||
"type" : "normal" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/GRPackage.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "GRPackage" } | ||
"name" : "GRPackage" | ||
} |
19 changes: 9 additions & 10 deletions
19
repository/Grease-Squeak6-Core.package/GRPharoConverterCodecStream.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "pmm 9/14/2013 15:53", | ||
"super" : "GRCodecStream", | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"converter" ], | ||
"converter" | ||
], | ||
"name" : "GRPharoConverterCodecStream", | ||
"pools" : [ | ||
], | ||
"super" : "GRCodecStream", | ||
"type" : "normal" } | ||
"type" : "normal" | ||
} |
19 changes: 9 additions & 10 deletions
19
repository/Grease-Squeak6-Core.package/GRPharoGenericCodec.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"super" : "GRCodec", | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"name", | ||
"urlCodec" ], | ||
"urlCodec" | ||
], | ||
"name" : "GRPharoGenericCodec", | ||
"pools" : [ | ||
], | ||
"super" : "GRCodec", | ||
"type" : "normal" } | ||
"type" : "normal" | ||
} |
19 changes: 9 additions & 10 deletions
19
repository/Grease-Squeak6-Core.package/GRPharoLatin1Codec.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "<historical>", | ||
"super" : "GRNullCodec", | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"name" ], | ||
"name" | ||
], | ||
"name" : "GRPharoLatin1Codec", | ||
"pools" : [ | ||
], | ||
"super" : "GRNullCodec", | ||
"type" : "normal" } | ||
"type" : "normal" | ||
} |
19 changes: 8 additions & 11 deletions
19
repository/Grease-Squeak6-Core.package/GRPharoLatin1CodecStream.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "<historical>", | ||
"instvars" : [ | ||
], | ||
"name" : "GRPharoLatin1CodecStream", | ||
"pools" : [ | ||
], | ||
"super" : "GRNullCodecStream", | ||
"type" : "normal" } | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRPharoLatin1CodecStream", | ||
"type" : "normal" | ||
} |
19 changes: 9 additions & 10 deletions
19
repository/Grease-Squeak6-Core.package/GRPharoPlatform.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"commentStamp" : "pmm 2/1/2014 13:28", | ||
"super" : "GRPlatform", | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ | ||
"UrlTable", | ||
"XmlTable" ], | ||
"commentStamp" : "pmm 2/1/2014 13:28", | ||
"instvars" : [ | ||
], | ||
"XmlTable" | ||
], | ||
"instvars" : [ ], | ||
"name" : "GRPharoPlatform", | ||
"pools" : [ | ||
], | ||
"super" : "GRPlatform", | ||
"type" : "normal" } | ||
"type" : "normal" | ||
} |
19 changes: 8 additions & 11 deletions
19
repository/Grease-Squeak6-Core.package/GRPharoUtf8Codec.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "pmm 2/20/2009 12:51", | ||
"instvars" : [ | ||
], | ||
"name" : "GRPharoUtf8Codec", | ||
"pools" : [ | ||
], | ||
"super" : "GRCodec", | ||
"type" : "normal" } | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRPharoUtf8Codec", | ||
"type" : "normal" | ||
} |
19 changes: 9 additions & 10 deletions
19
repository/Grease-Squeak6-Core.package/GRPharoUtf8CodecStream.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
{ | ||
"commentStamp" : "pmm 2/20/2009 12:27", | ||
"super" : "GRPharoConverterCodecStream", | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ | ||
"Latin1ToUtf8Encodings", | ||
"Latin1ToUtf8Map" ], | ||
"commentStamp" : "pmm 2/20/2009 12:27", | ||
"instvars" : [ | ||
], | ||
"Latin1ToUtf8Map" | ||
], | ||
"instvars" : [ ], | ||
"name" : "GRPharoUtf8CodecStream", | ||
"pools" : [ | ||
], | ||
"super" : "GRPharoConverterCodecStream", | ||
"type" : "normal" } | ||
"type" : "normal" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/GRSmallDictionary.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "GRSmallDictionary" } | ||
"name" : "GRSmallDictionary" | ||
} |
7 changes: 7 additions & 0 deletions
7
...sitory/Grease-Squeak6-Core.package/GRSqueakPlatform.class/instance/integerAsByteArray..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
encoding | ||
integerAsByteArray: anInteger | ||
| stream | | ||
stream := ByteArray new writeStream. | ||
anInteger greaseBytesCount to: 1 by: -1 do: [:digitIndex | | ||
stream nextPut: (anInteger greaseByteAt: digitIndex)]. | ||
^ stream contents |
19 changes: 8 additions & 11 deletions
19
repository/Grease-Squeak6-Core.package/GRSqueakPlatform.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "GRSqueakPlatform", | ||
"pools" : [ | ||
], | ||
"super" : "GRPharoPlatform", | ||
"type" : "normal" } | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRSqueakPlatform", | ||
"type" : "normal" | ||
} |
19 changes: 8 additions & 11 deletions
19
repository/Grease-Squeak6-Core.package/GRWorkingWriteStream.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
{ | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "pmm 8/25/2011 18:30", | ||
"instvars" : [ | ||
], | ||
"name" : "GRWorkingWriteStream", | ||
"pools" : [ | ||
], | ||
"super" : "WriteStream", | ||
"type" : "normal" } | ||
"category" : "Grease-Squeak6-Core", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "GRWorkingWriteStream", | ||
"type" : "normal" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Interval.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Interval" } | ||
"name" : "Interval" | ||
} |
8 changes: 8 additions & 0 deletions
8
repository/Grease-Squeak6-Core.package/LargeInteger.extension/instance/greaseByteAt..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*Grease-Squeak6-Core | ||
greaseByteAt: index | ||
"Primitive. Answer the value of an indexable field in the receiver. LargePositiveInteger uses bytes of base two number, and each is a 'digit' base 256. Fail if the argument (the index) is not an Integer or is out of bounds. Essential. See Object documentation whatIsAPrimitive." | ||
|
||
<primitive: 60> | ||
self greaseBytesCount < index | ||
ifTrue: [^0] | ||
ifFalse: [^super at: index] |
8 changes: 8 additions & 0 deletions
8
repository/Grease-Squeak6-Core.package/LargeInteger.extension/instance/greaseBytesCount.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*Grease-Squeak6-Core | ||
greaseBytesCount | ||
"Primitive. Answer the number of indexable fields in the receiver. This | ||
value is the same as the largest legal subscript. Essential. See Object | ||
documentation whatIsAPrimitive." | ||
|
||
<primitive: 62> | ||
self primitiveFailed |
3 changes: 3 additions & 0 deletions
3
repository/Grease-Squeak6-Core.package/LargeInteger.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name" : "LargeInteger" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/MessageSend.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "MessageSend" } | ||
"name" : "MessageSend" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Number.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Number" } | ||
"name" : "Number" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Object.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Object" } | ||
"name" : "Object" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/PositionableStream.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "PositionableStream" } | ||
"name" : "PositionableStream" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/Random.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "Random" } | ||
"name" : "Random" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/ScaledDecimal.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "ScaledDecimal" } | ||
"name" : "ScaledDecimal" | ||
} |
3 changes: 2 additions & 1 deletion
3
repository/Grease-Squeak6-Core.package/SequenceableCollection.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
{ | ||
"name" : "SequenceableCollection" } | ||
"name" : "SequenceableCollection" | ||
} |
Oops, something went wrong.