| # | Line 47 | Line 47 | static double ebotch(EPNODE *); | |
|---|---|---|
| 47 | unsigned int esupport = /* what to support */ | |
| 48 | E_VARIABLE | E_FUNCTION ; | |
| 49 | ||
| 50 | + | int eofc = 0; /* optional end-of-file character */ |
| 51 | int nextc; /* lookahead character */ | |
| 52 | ||
| 53 | double (*eoper[])(EPNODE *) = { /* expression operations */ | |
| # | Line 413 | Line 414 | scan(void) /* scan next character, return literal nex | |
| 414 | nextc = linbuf[linepos++]; | |
| 415 | if (!lnext) | |
| 416 | lnext = nextc; | |
| 417 | + | if (nextc == eofc) { |
| 418 | + | nextc = EOF; |
| 419 | + | break; |
| 420 | + | } |
| 421 | if (nextc == '{') { | |
| 422 | scan(); | |
| 423 | while (nextc != '}') | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |