MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ReadLine

Method ReadLine

cfile/inffile.cpp:122–134  ·  view source on GitHub ↗

read a command line. returns false on eof.

Source from the content-addressed store, hash-verified

120
121// read a command line. returns false on eof.
122bool 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).

Callers 5

OpenThemeFileMethod · 0.80
LoadThemeMethod · 0.80
parse_ctl_fileMethod · 0.80
parse_ctl_fileMethod · 0.80
LoadServerConfigFileFunction · 0.80

Calls 2

cfeofFunction · 0.85
cf_ReadStringFunction · 0.85

Tested by

no test coverage detected