--- a/ByteArray.st Thu Sep 15 14:15:54 2011 +0200
+++ b/ByteArray.st Thu Sep 15 14:20:36 2011 +0200
@@ -1895,7 +1895,7 @@
mask = 0xFF;
break;
default:
- printf("invalid depth in compressPixels\n");
+ console_printf("invalid depth in compressPixels\n");
goto fail;
}
if (map) {
@@ -1904,7 +1904,7 @@
* all possible byte-values (i.e. its size must be >= 256)
*/
if ((__qSize(aMapByteArray) - OHDR_SIZE) < 256) {
- printf("invalid map in compressPixels\n");
+ console_printf("invalid map in compressPixels\n");
goto fail;
}
}
@@ -2061,7 +2061,7 @@
mask = 0xFF;
break;
default:
- printf("invalid depth in expandPixels\n");
+ console_printf("expandPixels: invalid depth\n");
goto fail;
}
ncells = mask + 1;
@@ -2071,7 +2071,7 @@
* (i.e. 2 raisedTo:nBitsPerPixel)
*/
if ((__qSize(aMapByteArray) - OHDR_SIZE) < ncells) {
- printf("invalid map in expandPixels\n");
+ console_printf("expandPixels: invalid map\n");
goto fail;
}
}
@@ -2121,12 +2121,12 @@
}
RETURN ( self );
}
- printf("buffer size: self:%d expect at least:%d\n",
+ console_printf("expandPixels: buffer size: self:%d expect at least:%d\n",
__byteArraySize(self), srcBytes);
- printf("buffer size: arg:%d expect at least:%d\n",
+ console_printf("expandPixels: buffer size: arg:%d expect at least:%d\n",
__byteArraySize(aByteArray), dstBytes);
}
- printf("invalid args\n");
+ console_printf("expandPixels: invalid args\n");
fail: ;
%}.
@@ -2543,8 +2543,8 @@
"return a printed representation of the receiver for displaying"
(self class == ByteArray and:[aGCOrStream isStream or:[aGCOrStream == Transcript]]) ifTrue:[
- self storeOn:aGCOrStream.
- ^ self
+ self storeOn:aGCOrStream.
+ ^ self
].
^ super displayOn:aGCOrStream
@@ -2593,11 +2593,11 @@
s := '' writeStream.
self do:[:byteOrCharacter |
- |byte|
- byte := byteOrCharacter isCharacter
- ifTrue:[byteOrCharacter codePoint]
- ifFalse:[byteOrCharacter].
- byte printOn:s base:16 size:2 fill:$0.
+ |byte|
+ byte := byteOrCharacter isCharacter
+ ifTrue:[byteOrCharacter codePoint]
+ ifFalse:[byteOrCharacter].
+ byte printOn:s base:16 size:2 fill:$0.
].
^ s contents.
@@ -2989,9 +2989,9 @@
!ByteArray class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.204 2011-01-18 17:09:02 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.205 2011-09-15 12:20:36 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.204 2011-01-18 17:09:02 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/ByteArray.st,v 1.205 2011-09-15 12:20:36 cg Exp $'
! !