Allow the first line to be a comment.
authorIngmar Wirths <ingmar@ipd.info.uni-karlsruhe.de>
Tue, 24 Jul 2012 13:10:17 +0000 (15:10 +0200)
committerIngmar Wirths <ingmar@ipd.info.uni-karlsruhe.de>
Tue, 27 Nov 2012 14:41:20 +0000 (15:41 +0100)
A comments starts with '#'.

ir/ir/irio.c

index 8860ca1..5a8a984 100644 (file)
@@ -2379,6 +2379,10 @@ int ir_import_file(FILE *input, const char *inputname)
        /* read first character */
        read_c(env);
 
+       /* if the first line starts with '#', it contains a comment. */
+       if (env->c == '#')
+               skip_to(env, '\n');
+
        set_optimize(0);
 
        while (true) {