[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gperf] [PATCH] add #line directive relative output file path
From: |
Jannick |
Subject: |
[bug-gperf] [PATCH] add #line directive relative output file path |
Date: |
Fri, 9 Nov 2018 23:27:21 +0100 |
Hi,
attached a patch suggesting as to how essentially add #line directives
relative the output file path to gperf.
The output file path given on the command line is used in the line
directive, otherwise '<stdout>' is used. Currently only the #line directives
relative to the .gperf file are implemented which create some weird jumps in
case of, e.g., an compiler error or error/warning messages, since the
preprocessor does not have the information to jump back to the generated
code scope. The patch is based on the current savannah git master.
Please consider this a quick implementation which most probably might not
meet the coding requirements of gperf, as this my first suggestion to gperf.
But please do feel free to amend as you may find appropriate. I am fine with
that, and I am happy if you find the idea behind the suggested code useful
and if the changes ultimately finds their way into gperf in the given or any
amended form.
Many thanks,
J.
0001-gperf-add-line-directives-relative-output-file.patch
Description: Binary data
- [bug-gperf] [PATCH] add #line directive relative output file path,
Jannick <=