// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
#include <config.h>
#include <sstream>
+#include <cstring>
#include <stdexcept>
#include <iostream>
c = 0;
bufend = 0;
nextChar();
- } catch(EOFException& e) {
+ } catch(EOFException& ) {
}
}
nextChar();
if(*c == '"')
break;
+ else if (*c == '\r') // XXX this breaks with pure \r EOL
+ continue;
else if(*c == '\n')
linenumber++;
else if(*c == '\\') {
} catch(EOFException& ) {
std::stringstream msg;
msg << "Parse error in line " << startline << ": "
- << "EOF while parsing string.";
+ << "EOF while parsing string.";
throw std::runtime_error(msg.str());
}
nextChar();