summaryrefslogtreecommitdiffstats
path: root/carg_parser.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:25:10 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:25:10 +0000
commit6e28aeaf5536d0286476c71e5f7c7e20cbc17036 (patch)
tree00e0a83335bbfbf765c8660ab27a199f0c68fce5 /carg_parser.h
parentAdding debian version 1.0-1. (diff)
downloadpdlzip-6e28aeaf5536d0286476c71e5f7c7e20cbc17036.tar.xz
pdlzip-6e28aeaf5536d0286476c71e5f7c7e20cbc17036.zip
Merging upstream version 1.1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'carg_parser.h')
-rw-r--r--carg_parser.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/carg_parser.h b/carg_parser.h
index 951b787..2d5fd0f 100644
--- a/carg_parser.h
+++ b/carg_parser.h
@@ -41,8 +41,8 @@ enum ap_Has_arg { ap_no, ap_yes, ap_maybe };
struct ap_Option
{
- int code; // Short option letter or code ( code != 0 )
- const char * name; // Long option name (maybe null)
+ int code; /* Short option letter or code ( code != 0 ) */
+ const char * name; /* Long option name (maybe null) */
enum ap_Has_arg has_arg;
};
@@ -71,11 +71,11 @@ void ap_free( struct Arg_parser * const ap );
const char * ap_error( const struct Arg_parser * const ap );
- // The number of arguments parsed (may be different from argc)
+ /* The number of arguments parsed (may be different from argc) */
int ap_arguments( const struct Arg_parser * const ap );
- // If ap_code( i ) is 0, ap_argument( i ) is a non-option.
- // Else ap_argument( i ) is the option's argument (or empty).
+ /* If ap_code( i ) is 0, ap_argument( i ) is a non-option.
+ Else ap_argument( i ) is the option's argument (or empty). */
int ap_code( const struct Arg_parser * const ap, const int i );
const char * ap_argument( const struct Arg_parser * const ap, const int i );