]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/ctags/etags/etags.factor
use radix literals
[factor.git] / extra / ctags / etags / etags.factor
index 40c0b791cfd43ca4a72b200e2bac21c530b46115..b8177653aefd83192cd1602f3853f749cb9e8bae 100644 (file)
@@ -29,7 +29,7 @@ IN: ctags.etags
   H{ } clone swap [ swap [ etag-add ] keep ] each ;
 
 : lines>bytes ( seq n -- bytes )
-  head 0 [ length 1+ + ] reduce ;
+  head 0 [ length 1 + + ] reduce ;
 
 : file>lines ( path -- lines )
   ascii file-lines ;
@@ -37,10 +37,10 @@ IN: ctags.etags
 : etag ( lines seq -- str )
   [
     dup first present %
-    1 HEX: 7f <string> %
+    1 0x7f <string> %
     second dup number>string %
     1 CHAR: , <string> %
-    1- lines>bytes number>string %
+    1 - lines>bytes number>string %
   ] "" make ;
 
 : etag-length ( vector -- n )
@@ -55,7 +55,7 @@ IN: ctags.etags
 
 : etag-header ( vec1 n resource -- vec2 )
   normalize-path (etag-header) prefix
-  1 HEX: 0c <string> prefix ;
+  1 0x0c <string> prefix ;
 
 : etag-strings ( alist -- seq )
   { } swap [
@@ -72,4 +72,4 @@ IN: ctags.etags
   [ etag-strings ] dip ascii set-file-lines ; 
 
 : etags ( path -- )
-  [ (ctags) sort-values etag-hash >alist ] dip etags-write ;
\ No newline at end of file
+  [ (ctags) sort-values etag-hash >alist ] dip etags-write ;