void CScriptKeyAlloc::ParseKeyLate() { ADDTOCALLSTACK("CScriptKeyAlloc::ParseKeyLate"); ASSERT(m_pszKey); ParseKeyEnd(); GETNONWHITESPACE(m_pszKey); Str_Parse(m_pszKey, &m_pszArg); }
bool CScript::ReadTextLine( bool fRemoveBlanks ) // Read a line from the opened script file { ADDTOCALLSTACK("CScript::ReadTextLine"); // ARGS: // fRemoveBlanks = Don't report any blank lines, (just keep reading) // while ( PhysicalScriptFile::ReadString( GetKeyBufferRaw(SCRIPT_MAX_LINE_LEN), SCRIPT_MAX_LINE_LEN )) { m_iLineNum++; if ( fRemoveBlanks ) { if ( ParseKeyEnd() <= 0 ) continue; } return( true ); } m_pszKey[0] = '\0'; return( false ); }
bool CResourceLock::ReadTextLine( bool fRemoveBlanks ) // Read a line from the opened script file { ADDTOCALLSTACK("CResourceLock::ReadTextLine"); // ARGS: // fRemoveBlanks = Don't report any blank lines, (just keep reading) // ASSERT(m_pLock); ASSERT( ! IsBinaryMode()); while ( PhysicalScriptFile::ReadString( GetKeyBufferRaw(SCRIPT_MAX_LINE_LEN), SCRIPT_MAX_LINE_LEN )) { m_pLock->m_iLineNum = ++m_iLineNum; // share this with original open. if ( fRemoveBlanks ) { if ( ParseKeyEnd() <= 0 ) continue; } return( true ); } m_pszKey[0] = '\0'; return( false ); }