diff options
author | Werner Koch <[email protected]> | 2025-04-07 09:20:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-04-07 09:20:53 +0000 |
commit | afb277e5bdd92c16a4fdbd33b89dab4c03a5ae62 (patch) | |
tree | 6a8e48b7fe17fbd2175aae54329e18e22d32ddde /src/argparse.c | |
parent | New public API gpgrt_nvc_* and gpgrt_nve_* (diff) | |
download | libgpg-error-afb277e5bdd92c16a4fdbd33b89dab4c03a5ae62.tar.gz libgpg-error-afb277e5bdd92c16a4fdbd33b89dab4c03a5ae62.zip |
Allow name-value lookup w/o a trailing colon for the name.
* src/name-value.c (_gpgrt_name_value_entry): Add field namelen.
(ascii_memcasecmp): New.
(same_name_p): New.
(valid_name): Strip the colon and return the length.
(do_nvc_add): Set namelen.
(_gpgrt_nvc_lookup): Simplify.
* tests/t-name-value.c (test_getting_values): Add some extra tests.
--
The requirement for a colon after the name is too cumbersome.
Diffstat (limited to 'src/argparse.c')
0 files changed, 0 insertions, 0 deletions