/[pengfork]/pengfork/include/options.h
ViewVC logotype

Diff of /pengfork/include/options.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by chupa, Fri Sep 13 14:30:38 2002 UTC revision 1.8 by chupa, Sat Sep 14 15:50:39 2002 UTC
# Line 50  typedef struct Line 50  typedef struct
50    int section;    int section;
51    union    union
52    {    {
53      int (*check_boolean) (bool_t);      int (*check_boolean) (char *, bool_t);
54      int (*check_string) (char *);      int (*check_string) (char *, char *);
55      int (*check_integer) (int);      int (*check_integer) (char *, int);
56    }    }
57    checkfn;    checkfn;
58  }  }
# Line 60  param_t; Line 60  param_t;
60    
61  #define PARAM_MAX __last_param  #define PARAM_MAX __last_param
62  #define PARAM_DEFINED(x)              param[x].defined  #define PARAM_DEFINED(x)              param[x].defined
63    #define PARAM_ALLOCATED(x)            param[x].allocated
64  #define PARAM_STRING(x)               param[x].value.string  #define PARAM_STRING(x)               param[x].value.string
65  #define PARAM_BOOLEAN(x)              param[x].value.boolean  #define PARAM_BOOLEAN(x)              param[x].value.boolean
66  #define PARAM_INTEGER(x)              param[x].value.integer  #define PARAM_INTEGER(x)              param[x].value.integer
# Line 188  enum Line 189  enum
189  extern param_t param[PARAM_MAX];  extern param_t param[PARAM_MAX];
190    
191  int parse_command_line (int argc, char **argv);  int parse_command_line (int argc, char **argv);
192    int check_config ();
193  int parse_config (void);  int parse_config (void);
194  int parse_config_file (char *filename);  int parse_config_file (char *filename);
195  void try_param (param_t * param, char *filename, int lineno, char *name,  int try_param (param_t * param, char *filename, int lineno, char *name,
196                  char *value);                  char *value);
197  int get_boolean (bool_t * bool, char *value);  int get_boolean (bool_t * bool, char *value);
198  int get_string (char **string, char *value);  int get_string (char **string, char *value);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26