stream position is going to be 0-based soon
authorClaus Gittinger <cg@exept.de>
Mon, 24 Feb 2003 18:17:33 +0100
changeset 1370 ebed47a4723b
parent 1369 2304dd8c3173
child 1371 de4c37ac12fc
stream position is going to be 0-based soon
Scanner.st
--- a/Scanner.st	Mon Feb 24 17:59:52 2003 +0100
+++ b/Scanner.st	Mon Feb 24 18:17:33 2003 +0100
@@ -2230,7 +2230,7 @@
                     tokenType := #BinaryOperator.
                     self 
                         warnPossibleIncompatibility:'add a space before ''-'' for compatibility with other ST systems' 
-                        position:p-1 
+                        position:p-(PositionableStream zeroPosition) 
                         to:p.
                     ^ tokenType
                 ]
@@ -2252,7 +2252,7 @@
                             tokenType := #BinaryOperator.
                             self 
                                 warnPossibleIncompatibility:'add a space before ''-'' for compatibility with other ST systems' 
-                                position:p-1 
+                                position:p-(PositionableStream zeroPosition) 
                                 to:p.
                             ^ tokenType
                         ]
@@ -2612,7 +2612,7 @@
 !Scanner class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.161 2003-01-31 15:24:12 penk Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.162 2003-02-24 17:17:33 cg Exp $'
 ! !
 
 Scanner initialize!