]> git.draconx.ca Git - dxcommon.git/commit
Add a script for generating getopt_long option tables.
authorNick Bowler <nbowler@draconx.ca>
Fri, 26 Feb 2021 04:58:15 +0000 (23:58 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 26 Feb 2021 05:19:40 +0000 (00:19 -0500)
commit7ba459d508d5e3c08580e8ec6c3dbc7c1fedd289
treed8e2e127d09e8a4f1987c9e199907269e320bbee
parenta2a4e6a70ec3ed860f4ef0b4da1c2851ae4a988e
Add a script for generating getopt_long option tables.

Maintaining tables of long options, short options, help text and whatnot
in C code is a little bit tedious, and the simpler ways tend to cause
annoying results on modern systems that build everything in PIC mode.

So let's automate the process of building these tables from a simple
description file format, using big string arrays to reduce the amount
of relocations needed in PIC code.
atlocal.in
configure.ac
scripts/gen-options.awk [new file with mode: 0755]
tests/scripts.at [new file with mode: 0644]
testsuite.at