aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-argparse.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-04-07 12:31:38 +0000
committerWerner Koch <[email protected]>2025-04-07 12:31:38 +0000
commitd0b7d33536736ef6f3d41575b6f58b2d3a7c139b (patch)
tree66256d2befac883a87ca9afe746aa8c972264dfc /tests/t-argparse.c
parentAllow name-value lookup w/o a trailing colon for the name. (diff)
downloadlibgpg-error-d0b7d33536736ef6f3d41575b6f58b2d3a7c139b.tar.gz
libgpg-error-d0b7d33536736ef6f3d41575b6f58b2d3a7c139b.zip
Add a section mode to the name-value functions.
* src/gpg-error.h.in (GPGRT_NVC_SECTION): New. * src/name-value.c (_gpgrt_name_value_container): Add section_mode. (_gpgrt_nvc_new): Set it. (_gpgrt_nvc_get_flag): Return it. (valid_name): Add arg sectionmode and change callers. (do_nvc_parse): Parse section names in section mode. (_gpgrt_nvc_write): Return an error in section mode.
Diffstat (limited to 'tests/t-argparse.c')
0 files changed, 0 insertions, 0 deletions