| 403 | { |
| 404 | } |
| 405 | int getc() |
| 406 | { |
| 407 | if (consumed_) { |
| 408 | if (*cur_ == '\n') { |
| 409 | ++line_; |
| 410 | } |
| 411 | ++cur_; |
| 412 | } |
| 413 | if (cur_ == end_) { |
| 414 | consumed_ = false; |
| 415 | return -1; |
| 416 | } |
| 417 | consumed_ = true; |
| 418 | return *cur_ & 0xff; |
| 419 | } |
| 420 | void ungetc() |
| 421 | { |
| 422 | consumed_ = false; |
no outgoing calls
no test coverage detected