From 2a02aab5a97063cb576b9e6de22df2e6bcb5fd73 Mon Sep 17 00:00:00 2001 From: tTh Date: Sat, 15 Apr 2023 17:30:50 +0200 Subject: [PATCH] print "#bla..." comments --- tools/importobj.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/importobj.c b/tools/importobj.c index c629f7f..61d7436 100644 --- a/tools/importobj.c +++ b/tools/importobj.c @@ -224,6 +224,10 @@ while(NULL!=(cptr=fgets(line, LINE_SZ, fpin))) { // fprintf(stderr, "no token ?\n"); continue; } + if ('#' == cptr[0]) { // found a comment + fprintf(stderr, " %s\n", cptr); + continue; + } token = cptr; tokenid = type_of_the_line(cptr); if (verbosity > 1)