freebsd-src/sys/tools
Kyle Evans 0d9048c3c2 makesyscalls.lua: improve config processing
The current version will strip out #include directives appearing inside strings, which is clearly wrong. Improve the processing entirely in the following ways:

- Strip only whole-line comments on every single iteration
- Abort if we see a malformed line that doesn't match the key=value format
- For quoted (backtick or double quote) strings, we'll advance to the end of
  the key=value pair and make sure there's not extra stuff left over
- For unquoted key=value pairs, we'll strip any trailing comments and verify
  there's no internal whitespace

This has revealed the caveat that key/value pairs can't even include escaped quotes (and haven't been able to). I don't know if this is actually problematic, as we're usually looking at cases like "#include <foo>" or raw identifiers.The current version will strip out #include directives appearing inside strings, which is clearly wrong. Improve the processing entirely in the following ways:

Reviewed and noticed by:	brooks
Differential Revision:	https://reviews.freebsd.org/D22698
2019-12-06 22:45:36 +00:00
..
fdt make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATH 2018-12-14 23:53:28 +00:00
sound
acpi_quirks2h.awk
bus_macro.sh
embed_mfs.sh embed_mfs.sh: replace some compound statements with conventional ifs 2018-11-02 21:07:06 +00:00
fw_stub.awk fw_stub.awk: use @generated tag in generated files 2019-09-11 13:35:22 +00:00
makeobjops.awk Avoid literal @generated tag in file-generating scripts 2019-05-08 13:35:51 +00:00
makesyscalls.lua makesyscalls.lua: improve config processing 2019-12-06 22:45:36 +00:00
miidevs2h.awk
pccarddevs2h.awk
sdiodevs2h.awk Add SDIO support. 2019-06-08 16:26:56 +00:00
usbdevs2h.awk
vnode_if.awk Avoid literal @generated tag in file-generating scripts 2019-05-08 13:35:51 +00:00