projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
468858f
)
Allow the first line to be a comment.
author
Ingmar Wirths
<ingmar@ipd.info.uni-karlsruhe.de>
Tue, 24 Jul 2012 13:10:17 +0000
(15:10 +0200)
committer
Ingmar 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
patch
|
blob
|
history
diff --git
a/ir/ir/irio.c
b/ir/ir/irio.c
index
8860ca1
..
5a8a984
100644
(file)
--- a/
ir/ir/irio.c
+++ b/
ir/ir/irio.c
@@
-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) {