]> git.draconx.ca Git - dxcommon.git/commit
gen-options.awk: Add a more compact data representation.
authorNick Bowler <nbowler@draconx.ca>
Sun, 8 Jan 2023 02:14:10 +0000 (21:14 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 8 Jan 2023 05:01:02 +0000 (00:01 -0500)
commit62bc7469bf3ef88c4f81ddf615aa7dabe9ddbf74
treeff820299d3b044e766f49a981bf548aa1b5d2329
parent203a69fab1ff61e958dfb88599fd5d7f24648abf
gen-options.awk: Add a more compact data representation.

Add a new set of macros that can be used to encode the long options
array as integers, which is possible provided that the "action"
feature is not used.  In addition to reducing the size of the
static array, it should be helpful to avoid relocations in
position-independent executables and improve data sharing.
scripts/gen-options.awk
tests/scripts.at