1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 14:39:53 +02:00

gencat/tree.c (read_desc): ignore lines with a # as the very first character

This commit is contained in:
Werner Almesberger 2012-07-12 18:55:01 -03:00
parent ae3b8128b0
commit 274a84fdd8

View File

@ -148,6 +148,8 @@ void read_desc(FILE *file)
while (fgets(buf, sizeof(buf), file)) { while (fgets(buf, sizeof(buf), file)) {
lineno++; lineno++;
if (buf[0] == '#')
continue;
p = strchr(buf, '\n'); p = strchr(buf, '\n');
if (p) if (p)
*p = 0; *p = 0;