]> git.draconx.ca Git - dxcommon.git/commit
Add a helper macro to use the new gen-options packed format.
authorNick Bowler <nbowler@draconx.ca>
Sun, 8 Jan 2023 05:32:22 +0000 (00:32 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 8 Jan 2023 19:45:51 +0000 (14:45 -0500)
commite599119f0492b01f1f21a8cce8d695c314dab3b1
tree1f48987baaa84cc237a728401ab2e4504cf0ce49
parent0a296c1808200072deea6285f3e9992fca6095dd
Add a helper macro to use the new gen-options packed format.

Abstract some of the boilerplate into a new macro.  The gen-options.awk
is augmented to also give the packed format width as a power of two
(8/16/32/64).  Other than that we can use all the existing definitions
to make this common code in a new "xtra.h" header file.
scripts/gen-options.awk
src/xtra.h [new file with mode: 0644]