Commit dc0df49
committed
Remove
Before this patch the filename specified in `re2c:flags:t`,
`re2c:flags:type-header` configuration was relative to the directory
of the source file. It is inconvenient for out-of-tree builds, when the
output is generated in a directory different from the source directory
(which may be read-only). Therefore this patch makes the filename in
configuration relative to the directory of the output file.
As for the `re2c:flags:o`, `re2c:flags:output` configuration, it is
removed altogether. Making it relative to the source directory has the
same problems as with the header file, and making it absolute or
relative to the build directory (where re2c is run) is also bad,
because build-related information will have to be hard-coded in the
source file. Given that this is a relatively new configuraion and it
hasn't been documented in any released version of re2c, it is better to
delete it.
The change does not affect `-t`, `--type-header` and `-o`, `--output`
command-line options.re2c:flags:output and make re2c:flags:type-header relative to the output directory.1 parent 0b0622c commit dc0df49
File tree
10 files changed
+1859
-1922
lines changed- bootstrap
- doc
- src
- options
- parse
- doc/manual/configurations
- src
- options
- parse
10 files changed
+1859
-1922
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | 927 | | |
933 | | - | |
934 | | - | |
935 | | - | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
936 | 931 | | |
937 | 932 | | |
938 | 933 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | 933 | | |
939 | | - | |
940 | | - | |
941 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
942 | 937 | | |
943 | 938 | | |
944 | 939 | | |
| |||
0 commit comments