src/commandline.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _RDD_OPTION

Defines

#define flag_set(word, bit)   (((word) & (bit)) != 0)

Typedefs

typedef struct _RDD_OPTION RDD_OPTION

Functions

int compare_paths (char *first_path, char *second_path)
RDD_OPTIONrdd_get_opt_with_arg (RDD_OPTION *tab, char **argv, int argc, unsigned *i, char **opt, char **arg)
void rdd_opt_init (const char *usage_msg)
int rdd_opt_set (RDD_OPTION *tab, char *longname)
int rdd_opt_set_arg (RDD_OPTION *tab, char *longname, char **argp)
void rdd_opt_usage (RDD_OPTION *opttab, RDD_OPTION *output_opttab, int returnCode)


Define Documentation

#define flag_set ( word,
bit   )     (((word) & (bit)) != 0)

Definition at line 42 of file commandline.h.


Typedef Documentation

typedef struct _RDD_OPTION RDD_OPTION


Function Documentation

int compare_paths ( char *  first_path,
char *  second_path 
)

Definition at line 247 of file commandline.c.

RDD_OPTION* rdd_get_opt_with_arg ( RDD_OPTION tab,
char **  argv,
int  argc,
unsigned *  i,
char **  opt,
char **  arg 
)

Definition at line 100 of file commandline.c.

References _RDD_OPTION::arg_descr, _RDD_OPTION::arg_value, _RDD_OPTION::count, error(), _RDD_OPTION::long_name, match_name(), and _RDD_OPTION::short_name.

Here is the call graph for this function:

void rdd_opt_init ( const char *  usage_msg  ) 

Verify whether argv[*i] is an option name (short or long) and whether its argument, if any, is present.

Definition at line 67 of file commandline.c.

References usage_message.

int rdd_opt_set ( RDD_OPTION tab,
char *  longname 
)

Definition at line 193 of file commandline.c.

References rdd_opt_set_arg().

Here is the call graph for this function:

int rdd_opt_set_arg ( RDD_OPTION tab,
char *  longname,
char **  argp 
)

Definition at line 166 of file commandline.c.

References _RDD_OPTION::arg_value, bug(), _RDD_OPTION::count, _RDD_OPTION::long_name, and streq.

Here is the call graph for this function:

void rdd_opt_usage ( RDD_OPTION opttab,
RDD_OPTION output_opttab,
int  returnCode 
)

Definition at line 230 of file commandline.c.

References rdd_option_table_usage(), and usage_message.

Here is the call graph for this function:


Generated on Sun Feb 6 12:36:03 2011 for rdd by  doxygen 1.5.6