From da3b460be622fa37e49fbbe0e182d28a7c6feb07 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Thu, 27 Feb 2003 16:42:56 +0000 Subject: [PATCH] Ignore \r as white space, to make the Windows people happy. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@241 81a1dc3b-b13d-400b-aceb-764788c761c2 --- bootstrap | 5 +++++ lexer.l | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 9a5ef9d4..fa38ff33 100755 --- a/bootstrap +++ b/bootstrap @@ -2,6 +2,11 @@ # autoconf-2.57 is preferred, but >= 2.53 should be ok +AUTOHEADER=autoheader +AUTOCONF=autoconf +ACLOCAL=aclocal +AUTOMAKE=automake + if [ "x${AUTOHEADER}" = "x" ]; then AUTOHEADER="autoheader-2.57" fi diff --git a/lexer.l b/lexer.l index cd67d912..a09cd234 100644 --- a/lexer.l +++ b/lexer.l @@ -184,7 +184,7 @@ yes { yylval=new_token(K_YES); return K_YES; } ";" { yylval = NULL; pyytext(); return TKN_SEMI; } "\n" { lineno++; } -[ \t]+ /* ignore whitespace */ +[ \r\t]+ /* ignore whitespace */ c: { fprintf(stderr, "error at %s:%d: possible old-style config file entry\n", infile, lineno);