From 89fffcbcd913b76fdfbf53b425dc22fc93ca1b50 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 1 Nov 2012 20:10:08 -0300 Subject: [PATCH] tools/ant-gui/ant-gui.c (generate): ignore coments (lines beginning with "#") --- tools/ant-gui/ant-gui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ant-gui/ant-gui.c b/tools/ant-gui/ant-gui.c index 0039401..c020523 100644 --- a/tools/ant-gui/ant-gui.c +++ b/tools/ant-gui/ant-gui.c @@ -177,6 +177,8 @@ static void generate(uint8_t ***imgs, int *n, const char *path) exit(1); } while (fgets(buf, sizeof(buf), file)) { + if (buf[0] == '#') + continue; nl = strchr(buf, '\n'); if (nl) *nl = 0;