glcpp: Remove spurious newline generated by #version handling.
This was causing line numbering to be off by one. The newline comes from the NEWLINE token at the end of the line; there's no need to insert one.
This commit is contained in:
@@ -309,7 +309,7 @@ control_line:
|
||||
talloc_free (macro);
|
||||
}
|
||||
add_builtin_define (parser, "__VERSION__", $2);
|
||||
glcpp_printf(parser->output, "#version %" PRIiMAX "\n", $2);
|
||||
glcpp_printf(parser->output, "#version %" PRIiMAX, $2);
|
||||
}
|
||||
| HASH NEWLINE
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user