Changeset 7e0204a in tol
- Timestamp:
- Aug 18, 2009, 10:14:13 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 380534f1
- Parents:
- 57617ab
- File:
-
- 1 edited
-
tol/bbasic/txtalgeb.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/bbasic/txtalgeb.cpp
r57617ab r7e0204a 1558 1558 } 1559 1559 length_ = 0; 1560 BChar ch = 1;1560 BChar ch = 0; 1561 1561 bool untilIsLF = until=='\n'; 1562 for(;(length_<=maxChars)&& ch&&(ch!=until)&&(!is.eof()); length_++)1562 for(;(length_<=maxChars)&&(ch!=until)&&(!is.eof()); length_++) 1563 1563 { 1564 1564 is.get(ch); 1565 if(!ch) { break; } 1565 1566 # ifdef READ_CRLF_AS_LF 1566 1567 if(untilIsLF && (ch == '\r')&&(!is.eof())) … … 1597 1598 } 1598 1599 length_ = 0; 1599 BChar ch = 1, c;1600 BChar ch = 0, c; 1600 1601 bool untilIsLF = until=='\n'; 1601 for(;(length_<=maxChars)&& ch&&(ch!=until)&&(!feof(file)); length_++)1602 for(;(length_<=maxChars)&&(ch!=until)&&(!feof(file)); length_++) 1602 1603 { 1603 1604 ch = fgetc(file); 1605 if(!ch) { break; } 1604 1606 # ifdef READ_CRLF_AS_LF 1605 1607 if(untilIsLF && (ch == '\r')&&(!feof(file)))
Note: See TracChangeset
for help on using the changeset viewer.
