[coreboot] [commit] r5116 - trunk/util/romcc
repository service
svn at coreboot.org
Thu Feb 11 12:13:32 CET 2010
Author: oxygene
Date: Thu Feb 11 12:13:32 2010
New Revision: 5116
URL: http://tracker.coreboot.org/trac/coreboot/changeset/5116
Log:
romcc: Ignore empty string tokens. So far, romcc emitted a single double-quote for them.
Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi at coresystems.de>
Modified:
trunk/util/romcc/romcc.c
Modified: trunk/util/romcc/romcc.c
==============================================================================
--- trunk/util/romcc/romcc.c Thu Feb 11 09:44:20 2010 (r5115)
+++ trunk/util/romcc/romcc.c Thu Feb 11 12:13:32 2010 (r5116)
@@ -10782,6 +10782,9 @@
if (str_len < 0) {
error(state, 0, "negative string constant length");
}
+ /* ignore empty string tokens */
+ if (strcmp("\"", str) == 0)
+ continue;
end = str + str_len;
ptr = buf;
buf = xmalloc(type->elements + str_len + 1, "string_constant");
More information about the coreboot
mailing list