]> git.draconx.ca Git - dxcommon.git/commitdiff
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)
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.


No differences found