[Scummvm-cvs-logs] SF.net SVN: scummvm: [32041] scummvm/trunk/engines/parallaction

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Mon May 12 00:08:32 CEST 2008


Revision: 32041
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32041&view=rev
Author:   fingolfin
Date:     2008-05-11 15:08:32 -0700 (Sun, 11 May 2008)

Log Message:
-----------
Renamed some parallaction member vars to have a leading underscore (besides being part of our code formatting conventions, this fixes various name clash warnings)

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/parser.h
    scummvm/trunk/engines/parallaction/parser_br.cpp
    scummvm/trunk/engines/parallaction/parser_ns.cpp

Modified: scummvm/trunk/engines/parallaction/parser.h
===================================================================
--- scummvm/trunk/engines/parallaction/parser.h	2008-05-11 22:08:18 UTC (rev 32040)
+++ scummvm/trunk/engines/parallaction/parser.h	2008-05-11 22:08:32 UTC (rev 32041)
@@ -123,8 +123,8 @@
 
 protected:
 	Parallaction_ns*	_vm;
-	Script	*script;
-	Parser	*parser;
+	Script	*_script;
+	Parser	*_parser;
 
 	Table		*_zoneTypeNames;
 	Table		*_zoneFlagNames;
@@ -315,11 +315,11 @@
 class ProgramParser_ns {
 
 protected:
-	Parser	*parser;
+	Parser	*_parser;
 	Parallaction_ns *_vm;
 
-	Script	*script;
-	ProgramPtr	program;
+	Script	*_script;
+	ProgramPtr	_program;
 
 	// program parser
 	OpcodeSet	_instructionParsers;

Modified: scummvm/trunk/engines/parallaction/parser_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parser_br.cpp	2008-05-11 22:08:18 UTC (rev 32040)
+++ scummvm/trunk/engines/parallaction/parser_br.cpp	2008-05-11 22:08:32 UTC (rev 32041)
@@ -435,7 +435,7 @@
 DECLARE_LOCATION_PARSER(ifchar)  {
 	debugC(7, kDebugParser, "LOCATION_PARSER(ifchar) ");
 
-	script->skip("ENDIF");
+	_script->skip("ENDIF");
 }
 
 
@@ -487,7 +487,7 @@
 	debugC(7, kDebugParser, "COMMAND_PARSER(ifchar) ");
 
 	if (!scumm_stricmp(_vm->_char.getName(), _tokens[1]))
-		script->skip("endif");
+		_script->skip("endif");
 }
 
 
@@ -501,7 +501,7 @@
 DECLARE_COMMAND_PARSER(location)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(location) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._string = strdup(_tokens[1]);
 	ctxt.nextToken++;
@@ -530,7 +530,7 @@
 DECLARE_COMMAND_PARSER(string)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(string) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._string = strdup(_tokens[1]);
 	ctxt.nextToken++;
@@ -542,7 +542,7 @@
 DECLARE_COMMAND_PARSER(math)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(math) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._lvalue = _vm->_countersNames->lookup(_tokens[1]);
 	ctxt.nextToken++;
@@ -557,7 +557,7 @@
 DECLARE_COMMAND_PARSER(test)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(test) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	uint counter = _vm->_countersNames->lookup(_tokens[1]);
 	ctxt.nextToken++;
@@ -590,7 +590,7 @@
 DECLARE_COMMAND_PARSER(music)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(music) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._musicCommand = _audioCommandsNames->lookup(_tokens[1]);
 	ctxt.nextToken++;
@@ -608,7 +608,7 @@
 DECLARE_COMMAND_PARSER(zeta)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(zeta) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._zeta0 = atoi(_tokens[1]);
 	ctxt.nextToken++;
@@ -630,7 +630,7 @@
 DECLARE_COMMAND_PARSER(give)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(give) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._object = 4 + atoi(_tokens[1]);
 	ctxt.nextToken++;
@@ -656,7 +656,7 @@
 DECLARE_COMMAND_PARSER(text)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(text) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	if (isdigit(_tokens[1][1])) {
 		ctxt.cmd->u._zeta0 = atoi(_tokens[1]);
@@ -682,7 +682,7 @@
 DECLARE_COMMAND_PARSER(unary)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(unary) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._rvalue = atoi(_tokens[1]);
 	ctxt.nextToken++;
@@ -733,7 +733,7 @@
 //		}
 	}
 
-	parser->popTables();
+	_parser->popTables();
 }
 
 
@@ -777,7 +777,7 @@
 
 	ctxt.a->_flags |= 0x1000000;
 
-	parser->popTables();
+	_parser->popTables();
 }
 
 
@@ -793,7 +793,7 @@
 	debugC(7, kDebugParser, "INSTRUCTION_PARSER(zone) ");
 
 	ctxt.inst->_z = _vm->findZone(_tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -807,7 +807,7 @@
 	ctxt.inst->_colors[0] = atoi(_tokens[2]);
 	ctxt.inst->_colors[1] = atoi(_tokens[3]);
 	ctxt.inst->_colors[2] = atoi(_tokens[4]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 
 }
 
@@ -819,7 +819,7 @@
 	parseRValue(ctxt.inst->_opA, _tokens[1]);
 	parseRValue(ctxt.inst->_opB, _tokens[2]);
 	parseRValue(ctxt.inst->_opC, _tokens[3]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 
 }
 
@@ -828,7 +828,7 @@
 	debugC(7, kDebugParser, "INSTRUCTION_PARSER(print) ");
 
 	parseRValue(ctxt.inst->_opB, _tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -851,7 +851,7 @@
 	if (_tokens[_si][0] != '\0' && scumm_stricmp("flags", _tokens[_si])) {
 		ctxt.inst->_text2 = strdup(_tokens[_si]);
 	}
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 
 }
 
@@ -890,7 +890,7 @@
 
 //	ctxt.openIf->_endif = ctxt.inst;
 	ctxt.openIf = nullInstructionPtr;
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -901,7 +901,7 @@
 		return;
 	}
 
-	int index = program->findLocal(str);
+	int index = _program->findLocal(str);
 	if (index != -1) {
 		v.setLocal(&ctxt.locals[index]);
 		return;
@@ -953,7 +953,7 @@
 
 void LocationParser_br::init() {
 
-	parser = new Parser;
+	_parser = new Parser;
 
 	_zoneFlagNames = new Table(ARRAYSIZE(_zoneFlagNamesRes_br), _zoneFlagNamesRes_br);
 	_zoneTypeNames = new Table(ARRAYSIZE(_zoneTypeNamesRes_br), _zoneTypeNamesRes_br);
@@ -1079,7 +1079,7 @@
 
 void ProgramParser_br::init() {
 
-	parser = new Parser;
+	_parser = new Parser;
 
 	_instructionNames = new Table(ARRAYSIZE(_instructionNamesRes_br), _instructionNamesRes_br);
 

Modified: scummvm/trunk/engines/parallaction/parser_ns.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parser_ns.cpp	2008-05-11 22:08:18 UTC (rev 32040)
+++ scummvm/trunk/engines/parallaction/parser_ns.cpp	2008-05-11 22:08:32 UTC (rev 32041)
@@ -189,7 +189,7 @@
 
 
 void LocationParser_ns::warning_unexpected() {
-	debugC(1, kDebugParser, "unexpected keyword '%s' in line %i", _tokens[0], script->getLine());
+	debugC(1, kDebugParser, "unexpected keyword '%s' in line %i", _tokens[0], _script->getLine());
 }
 
 
@@ -226,7 +226,7 @@
 
 	ctxt.a->_flags |= 0x1000000;
 
-	parser->popTables();
+	_parser->popTables();
 }
 
 
@@ -290,7 +290,7 @@
 
 	ctxt.a->_flags |= 0x1000000;
 
-	parser->popTables();
+	_parser->popTables();
 }
 
 void LocationParser_ns::parseAnimation(AnimationList &list, char *name) {
@@ -303,14 +303,14 @@
 	list.push_front(AnimationPtr(a));
 
 	ctxt.a = a;
-	parser->pushTables(&_locationAnimParsers, _locationAnimStmt);
+	_parser->pushTables(&_locationAnimParsers, _locationAnimStmt);
 }
 
 void ProgramParser_ns::parseInstruction() {
 
 	InstructionPtr inst(new Instruction);
 
-	script->readLineToken(true);
+	_script->readLineToken(true);
 
 	if (_tokens[0][1] == '.') {
 		_tokens[0][1] = '\0';
@@ -320,32 +320,32 @@
 		_tokens[1][1] = '\0';
 		ctxt.a = _vm->findAnimation(&_tokens[1][2]);
 	} else
-		ctxt.a = program->_anim;
+		ctxt.a = _program->_anim;
 
 	ctxt.inst = inst;
 
-	parser->parseStatement();
+	_parser->parseStatement();
 
-	program->_instructions.push_back(inst);
+	_program->_instructions.push_back(inst);
 
 	return;
 }
 
 void ProgramParser_ns::parse(Script *script, ProgramPtr program) {
 
-	this->script = script;
-	this->program = program;
+	_script = script;
+	_program = program;
 
 	ctxt.openIf = nullInstructionPtr;
 	ctxt.end = false;
 	ctxt.locals = program->_locals;
 
-	parser->reset();
-	parser->pushTables(&_instructionParsers, _instructionNames);
+	_parser->reset();
+	_parser->pushTables(&_instructionParsers, _instructionNames);
 	do {
 		parseInstruction();
 	} while (!ctxt.end);
-	parser->popTables();
+	_parser->popTables();
 
 	program->_ip = program->_instructions.begin();
 }
@@ -377,7 +377,7 @@
 		ctxt.inst->_a = _vm->findAnimation(_tokens[1]);
 	}
 
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -385,7 +385,7 @@
 	debugC(7, kDebugParser, "INSTRUCTION_PARSER(loop) ");
 
 	parseRValue(ctxt.inst->_opB, _tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -394,7 +394,7 @@
 
 	parseLValue(ctxt.inst->_opA, "X");
 	parseRValue(ctxt.inst->_opB, _tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -403,7 +403,7 @@
 
 	parseLValue(ctxt.inst->_opA, "Y");
 	parseRValue(ctxt.inst->_opB, _tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -412,7 +412,7 @@
 
 	parseLValue(ctxt.inst->_opA, "Z");
 	parseRValue(ctxt.inst->_opB, _tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -421,7 +421,7 @@
 
 	parseLValue(ctxt.inst->_opA, "F");
 	parseRValue(ctxt.inst->_opB, _tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -434,7 +434,7 @@
 	if (!scumm_stricmp(_tokens[3], "mod")) {
 		ctxt.inst->_flags |= kInstMod;
 	}
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -446,13 +446,13 @@
 	// script was commented out on Dos version. This workaround enables the engine
 	// to dynamically add a local variable when it is encountered the first time in
 	// the script, so should fix any other occurrence as well.
-	if (program->findLocal(_tokens[1]) == -1) {
-		program->addLocal(_tokens[1]);
+	if (_program->findLocal(_tokens[1]) == -1) {
+		_program->addLocal(_tokens[1]);
 	}
 
 	parseLValue(ctxt.inst->_opA, _tokens[1]);
 	parseRValue(ctxt.inst->_opB, _tokens[2]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -461,7 +461,7 @@
 
 	parseRValue(ctxt.inst->_opA, _tokens[1]);
 	parseRValue(ctxt.inst->_opB, _tokens[2]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -479,7 +479,7 @@
 	if (!scumm_stricmp(_tokens[4], "masked")) {
 		ctxt.inst->_flags |= kInstMaskedPut;
 	}
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -490,7 +490,7 @@
 	if (index == Table::notFound)
 		error("unknown callable '%s'", _tokens[1]);
 	ctxt.inst->_immediate = index - 1;
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -498,13 +498,13 @@
 	debugC(7, kDebugParser, "INSTRUCTION_PARSER(sound) ");
 
 	ctxt.inst->_z = _vm->findZone(_tokens[1]);
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
 DECLARE_INSTRUCTION_PARSER(null)  {
 	debugC(7, kDebugParser, "INSTRUCTION_PARSER(null) ");
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -515,9 +515,9 @@
 	int16 index;
 
 	if (_tokens[3][0] != '\0') {
-		index = program->addLocal(_tokens[0], val, atoi(_tokens[3]), atoi(_tokens[4]));
+		index = _program->addLocal(_tokens[0], val, atoi(_tokens[3]), atoi(_tokens[4]));
 	} else {
-		index = program->addLocal(_tokens[0], val);
+		index = _program->addLocal(_tokens[0], val);
 	}
 
 	ctxt.inst->_opA.setLocal(&ctxt.locals[index]);
@@ -530,7 +530,7 @@
 	debugC(7, kDebugParser, "INSTRUCTION_PARSER(endscript) ");
 
 	ctxt.end = true;
-	ctxt.inst->_index = parser->_lookup;
+	ctxt.inst->_index = _parser->_lookup;
 }
 
 
@@ -542,7 +542,7 @@
 		return;
 	}
 
-	int index = program->findLocal(str);
+	int index = _program->findLocal(str);
 	if (index != -1) {
 		v.setLocal(&ctxt.locals[index]);
 		return;
@@ -572,7 +572,7 @@
 
 void ProgramParser_ns::parseLValue(ScriptVar &v, const char *str) {
 
-	int index = program->findLocal(str);
+	int index = _program->findLocal(str);
 	if (index != -1) {
 		v.setLocal(&ctxt.locals[index]);
 		return;
@@ -604,7 +604,7 @@
 DECLARE_COMMAND_PARSER(flags)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(flags) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	if (_vm->_globalTable->lookup(_tokens[1]) == Table::notFound) {
 		do {
@@ -631,7 +631,7 @@
 DECLARE_COMMAND_PARSER(zone)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(zone) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._zone = _vm->findZone(_tokens[ctxt.nextToken]);
 	if (!ctxt.cmd->u._zone) {
@@ -647,7 +647,7 @@
 DECLARE_COMMAND_PARSER(location)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(location) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._string = strdup(_tokens[ctxt.nextToken]);
 	ctxt.nextToken++;
@@ -660,7 +660,7 @@
 DECLARE_COMMAND_PARSER(drop)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(drop) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._object = 4 + _vm->_objectsNames->lookup(_tokens[ctxt.nextToken]);
 	ctxt.nextToken++;
@@ -673,7 +673,7 @@
 DECLARE_COMMAND_PARSER(call)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(call) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._callable = _vm->_callableNames->lookup(_tokens[ctxt.nextToken]) - 1;
 	ctxt.nextToken++;
@@ -686,7 +686,7 @@
 DECLARE_COMMAND_PARSER(simple)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(simple) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 	addCommand();
 }
 
@@ -694,7 +694,7 @@
 DECLARE_COMMAND_PARSER(move)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(move) ");
 
-	createCommand(parser->_lookup);
+	createCommand(_parser->_lookup);
 
 	ctxt.cmd->u._move.x = atoi(_tokens[ctxt.nextToken]);
 	ctxt.nextToken++;
@@ -708,7 +708,7 @@
 DECLARE_COMMAND_PARSER(endcommands)  {
 	debugC(7, kDebugParser, "COMMAND_PARSER(endcommands) ");
 
-	parser->popTables();
+	_parser->popTables();
 
 	// temporary trick to handle dialogue commands
 	ctxt.endcommands = true;
@@ -813,7 +813,7 @@
 	ctxt.list = &list;
 	ctxt.endcommands = false;
 
-	parser->pushTables(&_commandParsers, _commandsNames);
+	_parser->pushTables(&_commandParsers, _commandsNames);
 }
 
 Dialogue *LocationParser_ns::parseDialogue() {
@@ -826,7 +826,7 @@
 
 	Table forwards(20);
 
-	script->readLineToken(true);
+	_script->readLineToken(true);
 
 	while (scumm_stricmp(_tokens[0], "enddialogue")) {
 		if (scumm_stricmp(_tokens[0], "Question")) continue;
@@ -835,7 +835,7 @@
 
 		dialogue->_questions[numQuestions++] = parseQuestion();
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	}
 
 	resolveDialogueForwards(dialogue, numQuestions, forwards);
@@ -852,12 +852,12 @@
 
 	question->_text = parseDialogueString();
 
-	script->readLineToken(true);
+	_script->readLineToken(true);
 	question->_mood = atoi(_tokens[0]);
 
 	uint16 numAnswers = 0;
 
-	script->readLineToken(true);
+	_script->readLineToken(true);
 	while (scumm_stricmp(_tokens[0], "endquestion")) {	// parse answers
 		question->_answers[numAnswers] = parseAnswer();
 		numAnswers++;
@@ -903,21 +903,21 @@
 
 	answer->_text = parseDialogueString();
 
-	script->readLineToken(true);
+	_script->readLineToken(true);
 	answer->_mood = atoi(_tokens[0]);
 	answer->_following._name = parseDialogueString();
 
-	script->readLineToken(true);
+	_script->readLineToken(true);
 	if (!scumm_stricmp(_tokens[0], "commands")) {
 
 		parseCommands(answer->_commands);
 		ctxt.endcommands = false;
 		do {
-			script->readLineToken(true);
-			parser->parseStatement();
+			_script->readLineToken(true);
+			_parser->parseStatement();
 		} while (!ctxt.endcommands);
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	}
 
 	return answer;
@@ -952,7 +952,7 @@
 	char *vD0 = NULL;
 	do {
 
-		vD0 = script->readLine(vC8, 200);
+		vD0 = _script->readLine(vC8, 200);
 		if (vD0 == 0) return NULL;
 
 		vD0 = Common::ltrim(vD0);
@@ -1109,16 +1109,16 @@
 	_numForwardedCommands = 0;
 
 	ctxt.end = false;
-	this->script = script;
+	_script = script;
 	ctxt.filename = 0;//filename;
 
-	parser->reset();
-	parser->pushTables(&_locationParsers, _locationStmt);
+	_parser->reset();
+	_parser->pushTables(&_locationParsers, _locationStmt);
 	do {
-		script->readLineToken(true);
-		parser->parseStatement();
+		_script->readLineToken(true);
+		_parser->parseStatement();
 	} while (!ctxt.end);
-	parser->popTables();
+	_parser->popTables();
 
 	resolveCommandForwards();
 }
@@ -1126,7 +1126,7 @@
 void LocationParser_ns::parseWalkNodes(WalkNodeList &list) {
 	debugC(5, kDebugParser, "parseWalkNodes()");
 
-	script->readLineToken(true);
+	_script->readLineToken(true);
 	while (scumm_stricmp(_tokens[0], "ENDNODES")) {
 
 		if (!scumm_stricmp(_tokens[0], "COORD")) {
@@ -1139,7 +1139,7 @@
 			list.push_front(v4);
 		}
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	}
 
 	debugC(5, kDebugParser, "parseWalkNodes() done");
@@ -1160,7 +1160,7 @@
 
 void LocationParser_ns::init() {
 
-	parser = new Parser;
+	_parser = new Parser;
 
 	_zoneFlagNames = new Table(ARRAYSIZE(_zoneFlagNamesRes_ns), _zoneFlagNamesRes_ns);
 	_zoneTypeNames = new Table(ARRAYSIZE(_zoneTypeNamesRes_ns), _zoneTypeNamesRes_ns);
@@ -1253,7 +1253,7 @@
 
 void ProgramParser_ns::init() {
 
-	parser = new Parser;
+	_parser = new Parser;
 
 	_instructionNames = new Table(ARRAYSIZE(_instructionNamesRes_ns), _instructionNamesRes_ns);
 
@@ -1296,7 +1296,7 @@
 
 	do {
 		char v190[400];
-		v194 = script->readLine(v190, 400);
+		v194 = _script->readLine(v190, 400);
 
 		v194[strlen(v194)-1] = '\0';
 		if (!scumm_stricmp(v194, "endtext"))
@@ -1320,7 +1320,7 @@
 DECLARE_ZONE_PARSER(endzone)  {
 	debugC(7, kDebugParser, "ZONE_PARSER(endzone) ");
 
-	parser->popTables();
+	_parser->popTables();
 }
 
 DECLARE_ZONE_PARSER(limits)  {
@@ -1353,7 +1353,7 @@
 		parseZoneTypeBlock(ctxt.z);
 	}
 
-	parser->popTables();
+	_parser->popTables();
 }
 
 
@@ -1388,7 +1388,7 @@
 	debugC(5, kDebugParser, "parseZone(name: %s)", name);
 
 	if (_vm->findZone(name)) {
-		script->skip("endzone");
+		_script->skip("endzone");
 		return;
 	}
 
@@ -1400,7 +1400,7 @@
 
 	list.push_front(z);
 
-	parser->pushTables(&_locationZoneParsers, _locationZoneStmt);
+	_parser->pushTables(&_locationZoneParsers, _locationZoneStmt);
 
 	return;
 }
@@ -1431,7 +1431,7 @@
 			data->_icon = 4 + _vm->_objectsNames->lookup(_tokens[1]);
 		}
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	} while (scumm_stricmp(_tokens[0], "endzone"));
 
 	z->u.get = data;
@@ -1452,7 +1452,7 @@
 			data->_description = parseComment();
 		}
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	} while (scumm_stricmp(_tokens[0], "endzone"));
 
 	z->u.examine = data;
@@ -1496,7 +1496,7 @@
 			data->_startFrame = atoi(_tokens[3]);
 		}
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	} while (scumm_stricmp(_tokens[0], "endzone"));
 
 	z->u.door = data;
@@ -1520,7 +1520,7 @@
 			data->_obj3 = 4 + _vm->_objectsNames->lookup(_tokens[1]);
 		}
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	} while (scumm_stricmp(_tokens[0], "endzone"));
 
 	z->u.merge = data;
@@ -1541,7 +1541,7 @@
 			data->_freq = atoi(_tokens[1]);
 		}
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	} while (scumm_stricmp(_tokens[0], "endzone"));
 
 	z->u.hear = data;
@@ -1561,7 +1561,7 @@
 			data->_dialogue = parseDialogue();
 		}
 
-		script->readLineToken(true);
+		_script->readLineToken(true);
 	} while (scumm_stricmp(_tokens[0], "endzone"));
 
 	z->u.speak = data;
@@ -1599,7 +1599,7 @@
 
 	default:
 		// eats up 'ENDZONE' line for unprocessed zone types
-		script->readLineToken(true);
+		_script->readLineToken(true);
 		break;
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list