Statetrace: Fix compilation problem.
--HG-- extra : convert_revision : 7f501de99e5389dc3a4172654d7cbe32ed811259
This commit is contained in:
parent
e996ff7497
commit
77f712cdb6
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006 The Regents of The University of Michigan
|
* Copyright (c) 2006-2007 The Regents of The University of Michigan
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -181,7 +181,10 @@ bool NestingPrinter::configure(string config)
|
||||||
lastEndPos = endPos;
|
lastEndPos = endPos;
|
||||||
constStrings.push_back(prefix);
|
constStrings.push_back(prefix);
|
||||||
string subConfig, subString;
|
string subConfig, subString;
|
||||||
int commaPos, lastCommaPos, childSwitchVar;
|
long int commaPos, lastCommaPos, childSwitchVar;
|
||||||
|
//Set up the register printer
|
||||||
|
RegPrinter * regPrinter = new RegPrinter(child);
|
||||||
|
NestingPrinter * nestingPrinter = new NestingPrinter(child);
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
//If we found a plain register printer
|
//If we found a plain register printer
|
||||||
|
@ -189,8 +192,6 @@ bool NestingPrinter::configure(string config)
|
||||||
numPrinters++;
|
numPrinters++;
|
||||||
//Get the register name
|
//Get the register name
|
||||||
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
|
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
|
||||||
//Set up the register printer
|
|
||||||
RegPrinter * regPrinter = new RegPrinter(child);
|
|
||||||
if(!regPrinter->configure(subConfig))
|
if(!regPrinter->configure(subConfig))
|
||||||
{
|
{
|
||||||
delete regPrinter;
|
delete regPrinter;
|
||||||
|
@ -203,7 +204,6 @@ bool NestingPrinter::configure(string config)
|
||||||
case PRINTER_NESTING:
|
case PRINTER_NESTING:
|
||||||
numPrinters++;
|
numPrinters++;
|
||||||
//Punt on reading in all the parameters of the nesting printer
|
//Punt on reading in all the parameters of the nesting printer
|
||||||
NestingPrinter * nestingPrinter = new NestingPrinter(child);
|
|
||||||
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
|
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
|
||||||
lastCommaPos = string::npos;
|
lastCommaPos = string::npos;
|
||||||
commaPos = subConfig.find(",");
|
commaPos = subConfig.find(",");
|
||||||
|
|
Loading…
Reference in a new issue