cp/guest: clean up guest_create's console handling
[hvf.git] / build / re2c / mbo_getopt.h
blobca72f0db72ae7571037fb66df086607d55af5418
1 /*
2 Author: Marcus Boerger <helly@users.sourceforge.net>
3 */
5 /* $Id: mbo_getopt.h 539 2006-05-25 13:37:38Z helly $ */
7 /* Define structure for one recognized option (both single char and long name).
8 * If short_open is '-' this is the last option.
9 */
11 #ifndef RE2C_MBO_GETOPT_H_INCLUDE_GUARD_
12 #define RE2C_MBO_GETOPT_H_INCLUDE_GUARD_
14 namespace re2c
17 struct mbo_opt_struct
19 mbo_opt_struct(char _opt_char, int _need_param, const char * _opt_name)
20 : opt_char(_opt_char), need_param(_need_param), opt_name(_opt_name)
24 const char opt_char;
25 const int need_param;
26 const char * opt_name;
29 int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct *opts, char **optarg, int *optind, int show_err);
31 } // end namespace re2c
33 #endif