File:  [Local Repository] / gnujdoc / gengetopt-2.14 / cmdline1.h.texinfo
Revision 1.1: download - view: text, annotated - select for diffs
Fri Oct 28 13:07:30 2005 UTC (15 years ago) by futoshi
Branches: MAIN
CVS tags: HEAD
Add gengetopt-2.14.

    1: @c Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
    2: @smallexample
    3: @r{@i{/*}}@r{@i{ cmdline1.h }}@r{@i{*/}}
    4: 
    5: @r{@i{/*}}@r{@i{ File autogenerated by gengetopt version 2.14rc  }}@r{@i{*/}}
    6: 
    7: @b{#ifndef} CMDLINE1_H
    8: @b{#define} CMDLINE1_H
    9: 
   10: @r{@i{/*}}@r{@i{ If we use autoconf.  }}@r{@i{*/}}
   11: @b{#ifdef} HAVE_CONFIG_H
   12: @b{#include} @t{"config.h"}
   13: @b{#endif}
   14: 
   15: @b{#ifdef} __cplusplus
   16: @b{extern} @t{"C"} @{
   17: @b{#endif} @r{@i{/*}}@r{@i{ __cplusplus }}@r{@i{*/}}
   18: 
   19: @b{#ifndef} CMDLINE_PARSER_PACKAGE
   20: @b{#define} CMDLINE_PARSER_PACKAGE @t{"sample1"}
   21: @b{#endif}
   22: 
   23: @b{#ifndef} CMDLINE_PARSER_VERSION
   24: @b{#define} CMDLINE_PARSER_VERSION @t{"2.0"}
   25: @b{#endif}
   26: 
   27: @b{struct} gengetopt_args_info
   28: @{
   29:   @b{char} * str_opt_arg;       @r{@i{/*}}@r{@i{ A string option, for a filename.  }}@r{@i{*/}}
   30:   @b{char} * str_opt_orig;       @r{@i{/*}}@r{@i{ A string option, for a filename original value given at command line.  }}@r{@i{*/}}
   31:   @b{int} my_opt_arg;       @r{@i{/*}}@r{@i{ Another integer option, this time the description of the option should be quite long to require wrapping... possibly more than one wrapping :-) especially if I\nrequire a line break.  }}@r{@i{*/}}
   32:   @b{char} * my_opt_orig;       @r{@i{/*}}@r{@i{ Another integer option, this time the description of the option should be quite long to require wrapping... possibly more than one wrapping :-) especially if I\nrequire a line break original value given at command line.  }}@r{@i{*/}}
   33:   @b{int} int_opt_arg;       @r{@i{/*}}@r{@i{ A int option.  }}@r{@i{*/}}
   34:   @b{char} * int_opt_orig;       @r{@i{/*}}@r{@i{ A int option original value given at command line.  }}@r{@i{*/}}
   35:   @b{int} flag_opt_flag;       @r{@i{/*}}@r{@i{ A flag option (default=off).  }}@r{@i{*/}}
   36:   @b{long} long_opt_arg;       @r{@i{/*}}@r{@i{ A long option.  }}@r{@i{*/}}
   37:   @b{char} * long_opt_orig;       @r{@i{/*}}@r{@i{ A long option original value given at command line.  }}@r{@i{*/}}
   38:   @b{char} * def_opt_arg;       @r{@i{/*}}@r{@i{ A string option with default (default='Hello').  }}@r{@i{*/}}
   39:   @b{char} * def_opt_orig;       @r{@i{/*}}@r{@i{ A string option with default original value given at command line.  }}@r{@i{*/}}
   40:   @b{char} * enum_opt_arg;       @r{@i{/*}}@r{@i{ A string option with list of values (default='hello').  }}@r{@i{*/}}
   41:   @b{char} * enum_opt_orig;       @r{@i{/*}}@r{@i{ A string option with list of values original value given at command line.  }}@r{@i{*/}}
   42:   
   43:   @b{int} help_given ;       @r{@i{/*}}@r{@i{ Whether help was given.  }}@r{@i{*/}}
   44:   @b{int} version_given ;       @r{@i{/*}}@r{@i{ Whether version was given.  }}@r{@i{*/}}
   45:   @b{int} str_opt_given ;       @r{@i{/*}}@r{@i{ Whether str-opt was given.  }}@r{@i{*/}}
   46:   @b{int} my_opt_given ;       @r{@i{/*}}@r{@i{ Whether my-opt was given.  }}@r{@i{*/}}
   47:   @b{int} int_opt_given ;       @r{@i{/*}}@r{@i{ Whether int-opt was given.  }}@r{@i{*/}}
   48:   @b{int} flag_opt_given ;       @r{@i{/*}}@r{@i{ Whether flag-opt was given.  }}@r{@i{*/}}
   49:   @b{int} funct_opt_given ;       @r{@i{/*}}@r{@i{ Whether funct-opt was given.  }}@r{@i{*/}}
   50:   @b{int} long_opt_given ;       @r{@i{/*}}@r{@i{ Whether long-opt was given.  }}@r{@i{*/}}
   51:   @b{int} def_opt_given ;       @r{@i{/*}}@r{@i{ Whether def-opt was given.  }}@r{@i{*/}}
   52:   @b{int} enum_opt_given ;       @r{@i{/*}}@r{@i{ Whether enum-opt was given.  }}@r{@i{*/}}
   53: 
   54:   @b{char} **inputs ; @r{@i{/*}}@r{@i{ unamed options }}@r{@i{*/}}
   55:   @b{unsigned} inputs_num ; @r{@i{/*}}@r{@i{ unamed options number }}@r{@i{*/}}
   56: @} ;
   57: 
   58: @b{int} cmdline_parser (@b{int} argc, @b{char} * @b{const} *argv, @b{struct} gengetopt_args_info *args_info);
   59: @b{int} cmdline_parser2 (@b{int} argc, @b{char} * @b{const} *argv, @b{struct} gengetopt_args_info *args_info, @b{int} override, @b{int} initialize, @b{int} check_required);
   60: @b{int} cmdline_parser_file_save(@b{const} @b{char} *filename, @b{struct} gengetopt_args_info *args_info);
   61: 
   62: @b{void} cmdline_parser_print_help(@b{void});
   63: @b{void} cmdline_parser_print_version(@b{void});
   64: 
   65: @b{void} cmdline_parser_init (@b{struct} gengetopt_args_info *args_info);
   66: @b{void} cmdline_parser_free (@b{struct} gengetopt_args_info *args_info);
   67: 
   68: @b{int} cmdline_parser_required (@b{struct} gengetopt_args_info *args_info, @b{const} @b{char} *prog_name);
   69: 
   70: @b{extern} @b{char} *cmdline_parser_enum_opt_values[] ;       @r{@i{/*}}@r{@i{ Possible values for enum-opt.  }}@r{@i{*/}}
   71: 
   72: 
   73: @b{#ifdef} __cplusplus
   74: @}
   75: @b{#endif} @r{@i{/*}}@r{@i{ __cplusplus }}@r{@i{*/}}
   76: @b{#endif} @r{@i{/*}}@r{@i{ CMDLINE1_H }}@r{@i{*/}}
   77: 
   78: @end smallexample

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>