[LinuxBIOS] r2515 - trunk/LinuxBIOSv2/util/romcc

svn at openbios.org svn at openbios.org
Sat Dec 2 17:48:49 CET 2006


Author: stepan
Date: 2006-12-02 17:48:48 +0100 (Sat, 02 Dec 2006)
New Revision: 2515

Modified:
   trunk/LinuxBIOSv2/util/romcc/romcc.c
Log:
fix romcc preprocessor bug
Signed-off-by: Eric Biederman <ebiederman at lnxi.com>
Acked-by: Stefan Reinauer <stepan at coresystems.de>


Modified: trunk/LinuxBIOSv2/util/romcc/romcc.c
===================================================================
--- trunk/LinuxBIOSv2/util/romcc/romcc.c	2006-12-01 15:25:21 UTC (rev 2514)
+++ trunk/LinuxBIOSv2/util/romcc/romcc.c	2006-12-02 16:48:48 UTC (rev 2515)
@@ -3,8 +3,8 @@
 #undef RELEASE_DATE
 #undef VERSION
 #define VERSION_MAJOR "0"
-#define VERSION_MINOR "68"
-#define RELEASE_DATE "15 November 2004"
+#define VERSION_MINOR "69"
+#define RELEASE_DATE "02 December 2006"
 #define VERSION VERSION_MAJOR "." VERSION_MINOR
 
 #include <stdarg.h>
@@ -4028,10 +4028,15 @@
 		tok = TOK_SPACE;
 		tokp = next_char(file, tokp, 1);
 		while((c = get_char(file, tokp)) != -1) {
-			tokp = next_char(file, tokp, 1);
+			/* Advance to the next character only after we verify
+			 * the current character is not a newline.  
+			 * EOL is special to the preprocessor so we don't
+			 * want to loose any.
+			 */
 			if (c == '\n') {
 				break;
 			}
+			tokp = next_char(file, tokp, 1);
 		}
 	}
 	/* Comments */





More information about the coreboot mailing list