Commit 7a0a7012 authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

fexc: Ignore lines starting with ':' when compiling .fex



Such lines do not conform to any known syntax rules.

With this patch, fexc will assume that they represent a special
case (where bin2fex extracted a malformed indentifier from a .bin
file - likely a remnant from a comment typo), issue a warning and
ignore the line.
Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent 80aae926
......@@ -202,7 +202,13 @@ int script_parse_fex(FILE *in, const char *filename, struct script *script)
if (pe == s || *s == ';' || *s == '#')
continue; /* empty */
else if (*s == '[') {
if (*s == ':') {
/* see https://github.com/linux-sunxi/sunxi-boards/issues/50 */
errf("Warning: %s:%zu: invalid line, suspecting typo/malformed comment.\n",
filename, line);
continue; /* ignore this line */
}
if (*s == '[') {
/* section */
char *p = ++s;
while (isalnum(*p) || *p == '_')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment