Changeset 5058


Ignore:
Timestamp:
Aug 28, 2006, 3:48:57 PM (18 years ago)
Author:
Gary Byers
Message:

Use new string ops. Bump current fasl version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/nfcomp.lisp

    r4999 r5058  
    892892;These should be constants, but it's too much trouble when need to change 'em.
    893893(defparameter FASL-FILE-ID #xFF00)  ;Overall file format, shouldn't change much
    894 (defparameter FASL-VERSION #xFF48)  ;Fasl block format.
     894(defparameter FASL-VERSION #xFF49)  ;Fasl block format.
    895895
    896896(defvar *fasdump-hash*)
     
    12251225    (single-float (fasl-dump-sfloat exp))
    12261226    (simple-string (let* ((n (length exp)))
    1227                      (fasl-out-opcode $fasl-vstr exp)
     1227                     (fasl-out-opcode $fasl-nvstr exp)
    12281228                     (fasl-out-count n)
    1229                      (fasl-out-ivect exp 0 n)))
     1229                     (fasl-out-simple-string exp 0 n)))
    12301230    (simple-bit-vector (fasl-dump-bit-vector exp))
    12311231    ((simple-array (unsigned-byte 8) (*))
     
    14891489(defun fasl-dump-package (pkg)
    14901490  (let ((name (package-name pkg)))
    1491     (fasl-out-opcode $fasl-vpkg pkg)
    1492     (fasl-out-vstring name)))
     1491    (fasl-out-opcode $fasl-nvpkg pkg)
     1492    (fasl-out-nvstring name)))
    14931493
    14941494
     
    15381538    (cond ((null pkg)
    15391539           (progn
    1540              (fasl-out-opcode (if idx $fasl-vmksym-special $fasl-vmksym) sym)
    1541              (fasl-out-vstring name)))
     1540             (fasl-out-opcode (if idx $fasl-nvmksym-special $fasl-nvmksym) sym)
     1541             (fasl-out-nvstring name)))
    15421542          (*fasdump-epush*
    15431543           (progn
    15441544             (fasl-out-byte (fasl-epush-op (if idx
    1545                                              $fasl-vpkg-intern-special
    1546                                              $fasl-vpkg-intern)))
     1545                                             $fasl-nvpkg-intern-special
     1546                                             $fasl-nvpkg-intern)))
    15471547             (fasl-dump-form pkg)
    15481548             (fasl-dump-epush sym)
    1549              (fasl-out-vstring name)))
     1549             (fasl-out-nvstring name)))
    15501550          (t
    15511551           (progn
    15521552             (fasl-out-byte (if idx
    1553                               $fasl-vpkg-intern-special
    1554                               $fasl-vpkg-intern))
     1553                              $fasl-nvpkg-intern-special
     1554                              $fasl-nvpkg-intern))
    15551555             (fasl-dump-form pkg)
    1556              (fasl-out-vstring name))))))
     1556             (fasl-out-nvstring name))))))
    15571557
    15581558
    15591559(defun fasl-unknown (exp)
    1560   (error "Can't dump ~S - unknown type" exp))
    1561 
    1562 (defun fasl-out-vstring (str)
     1560  (error "Can't dump ~S - unknown type" exp))
     1561
     1562(defun fasl-out-simple-string (str start end)
     1563  (declare (simple-string str) (fixnum start end))
     1564  (do* ((k start (1+ k)))
     1565       ((= k end))
     1566    (declare (fixnum k))
     1567    (fasl-out-count (char-code (schar str k)))))
     1568
     1569(defun fasl-out-nvstring (str)
    15631570  (fasl-out-count (length str))
    1564   (fasl-out-ivect str))
     1571  (fasl-out-simple-string str 0 (length str)))
    15651572
    15661573(defun fasl-out-ivect (iv &optional
Note: See TracChangeset for help on using the changeset viewer.