Changeset 12645
- Timestamp:
- 05/01/10 20:21:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/Stream.java
r12604 r12645 658 658 _unreadChar(nextChar); 659 659 } 660 661 thread._values = null; 660 662 LispObject obj = processChar(c, rt); 661 663 if (obj == null) { … … 663 665 continue; 664 666 } 665 if (first == null) { 666 first = new Cons(obj); 667 last = first; 668 } else { 669 Cons newCons = new Cons(obj); 670 last.cdr = newCons; 671 last = newCons; 667 668 if (! (obj == NIL && thread._values != null 669 && thread._values.length == 0)) { 670 // Don't add the return value NIL to the list 671 // if the _values array indicates no values have been returned 672 if (first == null) { 673 first = new Cons(obj); 674 last = first; 675 } else { 676 Cons newCons = new Cons(obj); 677 last.cdr = newCons; 678 last = newCons; 679 } 672 680 } 673 681 } … … 1440 1448 if (c == delimiter) 1441 1449 break; 1450 1451 thread._values = null; 1442 1452 LispObject obj = processChar(c, rt); 1443 if (obj != null) 1453 if (obj != null && 1454 ! (obj == NIL && thread._values != null 1455 && thread._values.length == 0)) 1456 // Don't add 'obj' to the list, if _values indicates 1457 // no values have been returned 1444 1458 result = new Cons(obj, result); 1445 1459 }
Note: See TracChangeset
for help on using the changeset viewer.