Changeset 444
- Timestamp:
- Jan 30, 2004, 8:34:38 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ccl/examples/bridge.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/examples/bridge.lisp
r429 r444 416 416 `(,record-class ,record-name ,@(fields))) 417 417 (1+ (string-input-stream-index string-stream)))) 418 (let* ((field-name-string (read string-stream))) 418 (let* ((field-name-string 419 (if (eql (peek-char nil string-stream) #\") 420 (read string-stream)))) 419 421 (if (eql (peek-char nil string-stream) #\") 420 422 (setq field-name-string (read string-stream))) 421 (unless (typep field-name-string 'string) 423 (unless (or (null field-name-string) 424 (typep field-name-string 'string)) 422 425 (error "Bad field name in ~s: expected a quoted string, got ~s" 423 426 typestring field-name-string)) … … 427 430 (string-input-stream-index string-stream) 428 431 nil) 429 (fields `(,( escape-foreign-name field-name-string)432 (fields `(,(if field-name-string (escape-foreign-name field-name-string)) 430 433 ,typespec)) 431 434 (setf (string-input-stream-index string-stream) endpos))))))))))
Note:
See TracChangeset
for help on using the changeset viewer.
