* Writing strings to fasl files now uses 4-byte words for each

character.
This commit is contained in:
Abdulaziz Ghuloum
2007-05-19 13:54:13 -04:00
parent 1c4d3c4b40
commit 267da9e77c
6 changed files with 30 additions and 5 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -18,7 +18,8 @@
;;; "P" + object1 + object2 : a pair
;;; "V" + 4-bytes(n) + object ... : a vector of length n followed by n objects
;;; "v" + 4-byte(n) + octet ... : a bytevector of length n followed by n octets
;;; "S" + 4-bytes(n) + char ... : a string
;;; "s" + 4-bytes(n) + octet ... : an ascii string
;;; "S" + 4-bytes(n) + int ... : a unicode string
;;; "M" + symbol-name : a symbol
;;; "G" + pretty-name + unique-name : a gensym
;;; "R" + rtd-name + rtd-symbol + field-count + field-names
+1 -1
View File
@@ -63,7 +63,7 @@
(cond
[(fx= i n) m]
[else
(write-char (string-ref x i) p)
(write-int (char->integer (string-ref x i)) p)
(f x (fxadd1 i) n)]))]
[(gensym? x)
(write-char #\G p)