read a command line. returns false on eof.
| 120 | |
| 121 | // read a command line. returns false on eof. |
| 122 | bool InfFile::ReadLine() { |
| 123 | if (cfeof(m_fp)) |
| 124 | return false; |
| 125 | |
| 126 | cf_ReadString(m_linetext, INFFILE_LINELEN, m_fp); |
| 127 | |
| 128 | // start line. |
| 129 | m_lineptr = &m_linetext[0]; |
| 130 | m_endptr = m_lineptr + strlen(m_lineptr) + 1; |
| 131 | m_line++; |
| 132 | |
| 133 | return true; |
| 134 | } |
| 135 | |
| 136 | // parses a line of 'code'. return value from the lexfn |
| 137 | // a 0 for EOL (end of line). |
no test coverage detected