Don't hard-code the input file name in gen_tabcomplete.pl's output.
Tom Lane <tgl@sss.pgh.pa.us>
Don't hard-code the input file name in gen_tabcomplete.pl's output. Use $ARGV[0], that is the specified input file name, in #line directives generated by gen_tabcomplete.pl. This makes code coverage reports work properly in the meson build system (where the input file name will be a relative path). Also fix up brain fade in the meson build rule for tab-complete.c: we only need to write the input file name once not twice. Jacob Champion (some cosmetic adjustments by me) Discussion: https://postgr.es/m/CAOYmi+=+oWAoi8pqnH0MJQqsSn4ddzqDhqRQJvyiN2aJSWvw2w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/gen_tabcomplete.pl | modified | +9 −8 |
| src/bin/psql/meson.build | modified | +2 −2 |
Discussion
- Converting tab-complete.c's else-if chain to a switch 15 messages · 2024-07-11 → 2024-10-10