Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

getopt.c File Reference

#include "apr_arch_misc.h"
#include "apr_strings.h"
#include "apr_lib.h"

Include dependency graph for getopt.c:

Go to the source code of this file.

Defines

#define EMSG   ""

Functions

 APR_DECLARE (apr_status_t)
static void reverse (const char **argv, int start, int len)
static void permute (apr_getopt_t *os)
static apr_status_t serr (apr_getopt_t *os, const char *err, const char *str, apr_status_t status)
static apr_status_t cerr (apr_getopt_t *os, const char *err, int ch, apr_status_t status)


Define Documentation

#define EMSG   ""
 

Definition at line 38 of file getopt.c.

Referenced by APR_DECLARE().


Function Documentation

static apr_status_t cerr apr_getopt_t os,
const char *  err,
int  ch,
apr_status_t  status
[static]
 

Definition at line 191 of file getopt.c.

References apr_getopt_t::argv, apr_getopt_t::errarg, and apr_getopt_t::errfn.

static void permute apr_getopt_t os  )  [static]
 

Definition at line 158 of file getopt.c.

References apr_getopt_t::argv, apr_getopt_t::ind, apr_getopt_t::interleave, reverse(), apr_getopt_t::skip_end, and apr_getopt_t::skip_start.

Here is the call graph for this function:

static void reverse const char **  argv,
int  start,
int  len
[static]
 

Definition at line 141 of file getopt.c.

Referenced by permute().

static apr_status_t serr apr_getopt_t os,
const char *  err,
const char *  str,
apr_status_t  status
[static]
 

Definition at line 181 of file getopt.c.

References apr_getopt_t::argv, apr_getopt_t::errarg, and apr_getopt_t::errfn.