diff options
author | Patrick Steinhardt <ps@pks.im> | 2016-08-16 11:01:09 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2016-10-10 09:04:42 +0200 |
commit | 5c2a8361d779477b4d3474c660157bd62e750fe2 (patch) | |
tree | 261e5d66ab68e5fdd88c63314d36e61663dd5918 /examples/common.h | |
parent | 7314da105532306dad21843c8997b746b02fa3ed (diff) | |
download | libgit2-5c2a8361d779477b4d3474c660157bd62e750fe2.tar.gz |
examples: diff: parse correct types for line-diffopts
Diffstat (limited to 'examples/common.h')
-rw-r--r-- | examples/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/common.h b/examples/common.h index b9fa37ce9..adea0d318 100644 --- a/examples/common.h +++ b/examples/common.h @@ -73,6 +73,15 @@ extern int match_uint16_arg( uint16_t *out, struct args_info *args, const char *opt); /** + * Check current `args` entry against `opt` string parsing as uint32. If + * `opt` matches exactly, take the next arg as a uint16_t value; if `opt` + * is a prefix (equal sign optional), take the remainder of the arg as a + * uint32_t value; otherwise return 0. + */ +extern int match_uint32_arg( + uint32_t *out, struct args_info *args, const char *opt); + +/** * Check current `args` entry against `opt` string parsing as int. If * `opt` matches exactly, take the next arg as an int value; if it matches * as a prefix (equal sign optional), take the remainder of the arg as a |