ReactOS 0.4.16-dev-329-g9223134
getargs.h File Reference
#include <schily/mconfig.h>
#include <schily/utypes.h>
Include dependency graph for getargs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ga_flags
 
struct  ga_props
 

Macros

#define FLAGDELIM   2 /* "--" stopped flag processing */
 
#define NOTAFLAG   1 /* Not a flag type argument */
 
#define NOARGS   0 /* No more args */
 
#define BADFLAG   (-1) /* Not a valid flag argument */
 
#define BADFMT   (-2) /* Error in format string */
 
#define NOTAFILE   (-3) /* Seems to be a flag type */
 
#define FLAGPARSED   1 /* Flag was sucessfully parsed */
 
#define NO_ARGFUN   (getargpfun)0
 
#define GA_NO_PROPS   (struct ga_props *)0 /* Default behavior */
 
#define GA_POSIX_PROPS   (struct ga_props *)-1 /* POSIX behavior */
 
#define GAF_DEFAULT   0x00 /* The default behavior */
 
#define GAF_NO_PLUS   0x01 /* Options may not start with '+' */
 
#define GAF_NO_EQUAL   0x02 /* Disallow '=' between opt and val */
 
#define GAF_NEED_DASH   0x04 /* Need dash before (-name=val), */
 
#define GAF_DELIM_DASHDASH   0x08 /* "--" stops even get?allargs() */
 
#define GAF_POSIX   0x1000 /* Will be expanded as shown below */
 
#define GAF_POSIX_DEFAULT   (GAF_NO_PLUS | GAF_NO_EQUAL)
 
#define getarginit(p, f)   _getarginit(p, sizeof (struct ga_props), f)
 

Typedefs

typedef int getargfun __PR((const char *__arg, void *__valp))
 

Functions

int getallargs __PR ((int *, char *const **, const char *,...))
 
int getfiles __PR ((int *, char *const **, const char *))
 
char *getargerror __PR ((int))
 
int getlallargs __PR ((int *, char *const **, struct ga_props *, const char *,...))
 
int getlfiles __PR ((int *, char *const **, struct ga_props *, const char *))
 
int _getarginit __PR ((struct ga_props *, size_t, UInt32_t))
 
int getvallargs __PR ((int *, char *const **, struct ga_props *, struct ga_flags *))
 

Macro Definition Documentation

◆ BADFLAG

#define BADFLAG   (-1) /* Not a valid flag argument */

Definition at line 58 of file getargs.h.

◆ BADFMT

#define BADFMT   (-2) /* Error in format string */

Definition at line 59 of file getargs.h.

◆ FLAGDELIM

#define FLAGDELIM   2 /* "--" stopped flag processing */

Definition at line 55 of file getargs.h.

◆ FLAGPARSED

#define FLAGPARSED   1 /* Flag was sucessfully parsed */

Definition at line 81 of file getargs.h.

◆ GA_NO_PROPS

#define GA_NO_PROPS   (struct ga_props *)0 /* Default behavior */

Definition at line 105 of file getargs.h.

◆ GA_POSIX_PROPS

#define GA_POSIX_PROPS   (struct ga_props *)-1 /* POSIX behavior */

Definition at line 106 of file getargs.h.

◆ GAF_DEFAULT

#define GAF_DEFAULT   0x00 /* The default behavior */

Definition at line 111 of file getargs.h.

◆ GAF_DELIM_DASHDASH

#define GAF_DELIM_DASHDASH   0x08 /* "--" stops even get?allargs() */

Definition at line 116 of file getargs.h.

◆ GAF_NEED_DASH

#define GAF_NEED_DASH   0x04 /* Need dash before (-name=val), */

Definition at line 114 of file getargs.h.

◆ GAF_NO_EQUAL

#define GAF_NO_EQUAL   0x02 /* Disallow '=' between opt and val */

Definition at line 113 of file getargs.h.

◆ GAF_NO_PLUS

#define GAF_NO_PLUS   0x01 /* Options may not start with '+' */

Definition at line 112 of file getargs.h.

◆ GAF_POSIX

#define GAF_POSIX   0x1000 /* Will be expanded as shown below */

Definition at line 117 of file getargs.h.

◆ GAF_POSIX_DEFAULT

#define GAF_POSIX_DEFAULT   (GAF_NO_PLUS | GAF_NO_EQUAL)

Definition at line 132 of file getargs.h.

◆ getarginit

#define getarginit (   p,
  f 
)    _getarginit(p, sizeof (struct ga_props), f)

Definition at line 154 of file getargs.h.

◆ NO_ARGFUN

#define NO_ARGFUN   (getargpfun)0

Definition at line 88 of file getargs.h.

◆ NOARGS

#define NOARGS   0 /* No more args */

Definition at line 57 of file getargs.h.

◆ NOTAFILE

#define NOTAFILE   (-3) /* Seems to be a flag type */

Definition at line 60 of file getargs.h.

◆ NOTAFLAG

#define NOTAFLAG   1 /* Not a flag type argument */

Definition at line 56 of file getargs.h.

Typedef Documentation

◆ __PR

Definition at line 83 of file getargs.h.

Function Documentation

◆ __PR() [1/7]

int getfiles __PR ( (int *, char *const **, const char *)  )

◆ __PR() [2/7]

int getallargs __PR ( (int *, char *const **, const char *,...)  )

◆ __PR() [3/7]

int getlfiles __PR ( (int *, char *const **, struct ga_props *, const char *)  )

◆ __PR() [4/7]

int getlallargs __PR ( (int *, char *const **, struct ga_props *, const char *,...)  )

◆ __PR() [5/7]

int getvallargs __PR ( (int *, char *const **, struct ga_props *, struct ga_flags *)  )

◆ __PR() [6/7]

char *getargerror __PR ( (int )

◆ __PR() [7/7]

int _getarginit __PR ( (struct ga_props *, size_t, UInt32_t)  )