mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-23 10:04:36 +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)) {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user