mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 10:54:37 +02:00
gencat/tree.c (read_desc): ignore lines with a # as the very first character
This commit is contained in:
parent
ae3b8128b0
commit
274a84fdd8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user