Changeset 5381
- Timestamp:
- Oct 19, 2006, 12:20:02 PM (18 years ago)
- Location:
- trunk/ccl/examples
- Files:
-
- 2 edited
-
cocoa-editor.lisp (modified) (1 diff)
-
cocoa-listener.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/cocoa-editor.lisp
r2133 r5381 379 379 (len (length chars))) 380 380 (unless (zerop len) 381 (%copy-ivector-to-ptr chars 0 bytes pos len)381 (%cstr-pointer chars (%inc-ptr bytes pos) nil) 382 382 (incf pos len)) 383 383 (when next 384 (setf (%get-byte bytes pos) (char-code #\return))385 384 (when cp/m-p 385 (setf (%get-byte bytes pos) (char-code #\return)) 386 386 (incf pos) 387 387 (setf (%get-byte bytes pos) (char-code #\linefeed)) -
trunk/ccl/examples/cocoa-listener.lisp
r4916 r5381 113 113 (data-length (send (the ns:ns-data data) 'length)) 114 114 (buffer (hemlock-document-buffer document)) 115 (string ( make-stringdata-length))115 (string (%str-from-ptr (send data 'bytes) data-length)) 116 116 (fh filehandle)) 117 (%copy-ptr-to-ivector (send data 'bytes) 0 string 0 data-length)118 117 (enqueue-buffer-operation 119 118 buffer … … 155 154 (bytes (send data 'mutable-bytes))) 156 155 (declare (type ns:ns-file-handle filehandle)) 157 (%c opy-ivector-to-ptr string 0 bytes 0 len)156 (%cstr-pointer string bytes nil) 158 157 (send filehandle :write-data data) 159 158 (send filehandle 'synchronize-file)))
Note:
See TracChangeset
for help on using the changeset viewer.
