summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-08-27 14:59:44 +0000
committerjsing <jsing@openbsd.org>2014-08-27 14:59:44 +0000
commit6b8b43647e0229ef1aac3e55c8e60fb606eeff2c (patch)
tree2e358707820bdc9d1855fc0a9c98ea7f71bf8672 /usr.bin/diff/diffreg.c
parentOne less option. (diff)
downloadwireguard-openbsd-6b8b43647e0229ef1aac3e55c8e60fb606eeff2c.tar.xz
wireguard-openbsd-6b8b43647e0229ef1aac3e55c8e60fb606eeff2c.zip
Implement table-driven option parsing that allows an application to
specify what its valid options are and where it wants them to be stored. This also allows for usage to be generated, almost for free, ensuring that the options and usage are automatically kept in sync. This will allow for a single option parsing implementation, rather than the current one-hand-rolled-option-parsing-and-random-usage-implementation per application. As a starting point, port the openssl(1) rand application to the new option parsing and usage (along with associated code clean up). With input from doug@. ok bcook@ doug@
Diffstat (limited to 'usr.bin/diff/diffreg.c')
0 files changed, 0 insertions, 0 deletions