1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 10:41:10 +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)) {
lineno++;
if (buf[0] == '#')
continue;
p = strchr(buf, '\n');
if (p)
*p = 0;