~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_getopt.h

  • Committer: Brian Aker
  • Date: 2008-07-14 03:04:13 UTC
  • mfrom: (77.1.90 codestyle)
  • Revision ID: brian@tangent.org-20080714030413-dpv6opb0eoy1rd3f
Merging Monty's code, I did remove error on compile though (since it does
not currently work because of sql_plugin.cc)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#ifndef _my_getopt_h
17
17
#define _my_getopt_h
18
18
 
 
19
C_MODE_START
 
20
 
19
21
#define GET_NO_ARG     1
20
22
#define GET_BOOL       2
21
23
#define GET_INT        3
34
36
#define GET_ASK_ADDR     128
35
37
#define GET_TYPE_MASK    127
36
38
 
37
 
#ifdef __cplusplus
38
 
extern "C" {
39
 
#endif
40
 
 
41
 
#include <mysys/my_sys.h>
 
39
#include <my_sys.h>
42
40
 
43
41
enum get_opt_arg_type { NO_ARG, OPT_ARG, REQUIRED_ARG };
44
42
 
52
50
  char      **value;                   /* The variable value */
53
51
  char      **u_max_value;             /* The user def. max variable value */
54
52
  struct st_typelib *typelib;           /* Pointer to possible values */
55
 
  uint32_t     var_type;
 
53
  ulong     var_type;
56
54
  enum get_opt_arg_type arg_type;
57
55
  int64_t   def_value;                 /* Default value */
58
56
  int64_t   min_value;                 /* Min allowed value */
82
80
                                 bool *fix);
83
81
int64_t getopt_ll_limit_value(int64_t, const struct my_option *,
84
82
                               bool *fix);
85
 
bool getopt_compare_strings(const char *s, const char *t, uint32_t length);
 
83
bool getopt_compare_strings(const char *s, const char *t, uint length);
86
84
 
87
 
#ifdef __cplusplus
88
 
}
89
 
#endif
 
85
C_MODE_END
90
86
 
91
87
#endif /* _my_getopt_h */
92
88