Skip to content

Commit

Permalink
added optional 'in' keyword to each loops
Browse files Browse the repository at this point in the history
  • Loading branch information
objeck committed Feb 17, 2024
1 parent 30a6b4b commit 55a5da2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
34 changes: 17 additions & 17 deletions core/compiler/lib_src/lang.obs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ bundle System {
@ignore-params
@return compressed bytes
~#
function : CompressZlib(in : Byte[]) ~ Byte[] {
function : CompressZlib(input : Byte[]) ~ Byte[] {
COMPRESS_ZLIB_BYTES;
}

Expand All @@ -220,7 +220,7 @@ bundle System {
@ignore-params
@return uncompressed bytes
~#
function : UncompressZlib(in : Byte[]) ~ Byte[] {
function : UncompressZlib(input : Byte[]) ~ Byte[] {
UNCOMPRESS_ZLIB_BYTES;
}

Expand All @@ -229,7 +229,7 @@ bundle System {
@ignore-params
@return compressed bytes
~#
function : CompressGzip(in : Byte[]) ~ Byte[] {
function : CompressGzip(input : Byte[]) ~ Byte[] {
COMPRESS_GZIP_BYTES;
}

Expand All @@ -238,7 +238,7 @@ bundle System {
@ignore-params
@return uncompressed bytes
~#
function : UncompressGzip(in : Byte[]) ~ Byte[] {
function : UncompressGzip(input : Byte[]) ~ Byte[] {
UNCOMPRESS_GZIP_BYTES;
}

Expand All @@ -247,7 +247,7 @@ bundle System {
@ignore-params
@return compressed bytes
~#
function : CompressBr(in : Byte[]) ~ Byte[] {
function : CompressBr(input : Byte[]) ~ Byte[] {
COMPRESS_BR_BYTES;
}

Expand All @@ -256,7 +256,7 @@ bundle System {
@ignore-params
@return uncompressed bytes
~#
function : UncompressBr(in : Byte[]) ~ Byte[] {
function : UncompressBr(input : Byte[]) ~ Byte[] {
UNCOMPRESS_BR_BYTES;
}

Expand All @@ -265,7 +265,7 @@ bundle System {
@ignore-params
@return signed CRC32
~#
function : CRC32(in : Byte[]) ~ Int {
function : CRC32(input :Byte[]) ~ Int {
CRC32_BYTES;
}

Expand Down Expand Up @@ -2691,7 +2691,7 @@ bundle System {
@param in array of primitives
@return an array of references
~#
function : FromArray(in : Bool[]) ~ BoolRef[] {
function : FromArray(input : Bool[]) ~ BoolRef[] {
out := BoolRef->New[input->Size()];

each(i : in) {
Expand All @@ -2706,7 +2706,7 @@ bundle System {
@param in array of references
@return an array of primitives
~#
function : ToArray(in : BoolRef[]) ~ Bool[] {
function : ToArray(input : BoolRef[]) ~ Bool[] {
out := Bool->New[input->Size()];

each(i : in) {
Expand Down Expand Up @@ -2810,7 +2810,7 @@ bundle System {
@param in array of primitives
@return an array of references
~#
function : FromArray(in : Byte[]) ~ ByteRef[] {
function : FromArray(input : Byte[]) ~ ByteRef[] {
out := ByteRef->New[input->Size()];

each(i : in) {
Expand All @@ -2825,7 +2825,7 @@ bundle System {
@param in array of references
@return an array of primitives
~#
function : ToArray(in : ByteRef[]) ~ Byte[] {
function : ToArray(input : ByteRef[]) ~ Byte[] {
out := Byte->New[input->Size()];

each(i : in) {
Expand Down Expand Up @@ -2932,7 +2932,7 @@ bundle System {
@param in array of primitives
@return an array of references
~#
function : FromArray(in : Char[]) ~ CharRef[] {
function : FromArray(input : Char[]) ~ CharRef[] {
out := CharRef->New[input->Size()];

each(i : in) {
Expand All @@ -2947,7 +2947,7 @@ bundle System {
@param in array of references
@return an array of primitives
~#
function : ToArray(in : CharRef[]) ~ Char[] {
function : ToArray(input : CharRef[]) ~ Char[] {
out := Char->New[input->Size()];

each(i : in) {
Expand Down Expand Up @@ -3054,7 +3054,7 @@ bundle System {
@param in array of primitives
@return an array of references
~#
function : FromArray(in : Int[]) ~ IntRef[] {
function : FromArray(input : Int[]) ~ IntRef[] {
out := IntRef->New[input->Size()];

each(i : in) {
Expand All @@ -3069,7 +3069,7 @@ bundle System {
@param in array of references
@return an array of primitives
~#
function : ToArray(in : IntRef[]) ~ Int[] {
function : ToArray(input : IntRef[]) ~ Int[] {
out := Int->New[input->Size()];

each(i : in) {
Expand Down Expand Up @@ -3222,7 +3222,7 @@ bundle System {
@param in array of primitives
@return an array of references
~#
function : FromArray(in : Float[]) ~ FloatRef[] {
function : FromArray(input : Float[]) ~ FloatRef[] {
out := FloatRef->New[input->Size()];

each(i : in) {
Expand All @@ -3237,7 +3237,7 @@ bundle System {
@param in array of references
@return an array of primitives
~#
function : ToArray(in : FloatRef[]) ~ Float[] {
function : ToArray(input : FloatRef[]) ~ Float[] {
out := Float->New[input->Size()];

each(i : in) {
Expand Down
6 changes: 3 additions & 3 deletions core/compiler/lib_src/xml.obs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ if(parser->Parse()) {
# serializes an element
# into a string
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
method : ToString(in : String) ~ Nil {
method : ToString(input : String) ~ Nil {
# element
if(@name <> Nil & @type = XmlElement->Type->ELEMENT) {
input->Append('<');
Expand Down Expand Up @@ -1532,7 +1532,7 @@ if(parser->Parse()) {
@param in string to encode
@return encoded string
~#
function : EncodeString(in : String) ~ String {
function : EncodeString(input : String) ~ String {
out := String->New();

each(i : in) {
Expand Down Expand Up @@ -1584,7 +1584,7 @@ if(parser->Parse()) {
@param in string to decode
@return decoded string
~#
function : DecodeString(in : String) ~ String {
function : DecodeString(input : String) ~ String {
max := input->Size();
i := 0;

Expand Down

0 comments on commit 55a5da2

Please sign in to comment.