Commit 3dff5ea0 authored by Ingmar Wirths's avatar Ingmar Wirths
Browse files

Allow the first line to be a comment.

A comments starts with '#'.
parent 468858fa
...@@ -2379,6 +2379,10 @@ int ir_import_file(FILE *input, const char *inputname) ...@@ -2379,6 +2379,10 @@ int ir_import_file(FILE *input, const char *inputname)
/* read first character */ /* read first character */
read_c(env); read_c(env);
/* if the first line starts with '#', it contains a comment. */
if (env->c == '#')
skip_to(env, '\n');
set_optimize(0); set_optimize(0);
while (true) { while (true) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment