/*
- * Copyright (c) 2006 The Regents of The University of Michigan
+ * Copyright (c) 2006-2007 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
lastEndPos = endPos;
constStrings.push_back(prefix);
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)
{
//If we found a plain register printer
numPrinters++;
//Get the register name
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
- //Set up the register printer
- RegPrinter * regPrinter = new RegPrinter(child);
if(!regPrinter->configure(subConfig))
{
delete regPrinter;
case PRINTER_NESTING:
numPrinters++;
//Punt on reading in all the parameters of the nesting printer
- NestingPrinter * nestingPrinter = new NestingPrinter(child);
subConfig = config.substr(startPos + 2, endPos - startPos - 2);
lastCommaPos = string::npos;
commaPos = subConfig.find(",");