Changeset 5120


Ignore:
Timestamp:
Sep 5, 2006, 4:13:47 AM (18 years ago)
Author:
Gary Byers
Message:

CALL-WITH-STRING-VECTOR: don't assume 8-bit char/strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/linux-files.lisp

    r4994 r5120  
    558558      (flet ((init (s)
    559559             (multiple-value-bind (sstr start end) (get-sstring s)
     560               (declare (fixnum start end))
    560561               (let ((len (- end start)))
    561                  (%copy-ivector-to-ptr sstr start buf bufpos len)
     562                 (declare (fixnum len))
     563                 (do* ((i 0 (1+ i))
     564                       (start start (1+ start))
     565                       (bufpos bufpos (1+ bufpos)))
     566                      ((= i len))
     567                   (setf (%get-unsigned-byte buf bufpos)
     568                         (logand #xff (%scharcode sstr start))))
    562569                 (setf (%get-byte buf (%i+ bufpos len)) 0)
    563570                 (setf (%get-ptr argv argvpos) (%inc-ptr buf bufpos))
Note: See TracChangeset for help on using the changeset viewer.