LAL  7.5.0.1-08ee4f4
LALgetopt.c File Reference

Prototypes

static int _getopt_internal (int argc, char *const *argv, const char *shortopts, const struct LALoption *longopts, int *longind, int long_only)
 
int LALgetopt (int argc, char *const *argv, const char *optstring)
 
int LALgetopt_long (int argc, char *const *argv, const char *options, const struct LALoption *long_options, int *opt_index)
 
int LALgetopt_long_only (int argc, char *const *argv, const char *options, const struct LALoption *long_options, int *opt_index)
 
static void exchange (char **)
 
static const char * _getopt_initialize (int, char *const *, const char *)
 

Go to the source code of this file.

Macros

#define _(msgid)   ("\n" msgid)
 
#define my_index   strchr
 
#define SWAP_FLAGS(ch1, ch2)
 
#define NONOPTION_P   (argv[LALoptind][0] != '-' || argv[LALoptind][1] == '\0')
 

Enumerations

enum  { REQUIRE_ORDER , PERMUTE , RETURN_IN_ORDER }
 

Variables

char * LALoptarg
 
int LALoptind = 1
 
static int __getopt_initialized
 
static char * nextchar
 
int LALopterr = 1
 
int LALoptopt = '?'
 
static enum { ... }  ordering
 
static char * posixly_correct
 
static int first_nonopt
 
static int last_nonopt
 
int __libc_argc
 
char ** __libc_argv
 

Macro Definition Documentation

◆ _

#define _ (   msgid)    ("\n" msgid)

Definition at line 39 of file LALgetopt.c.

◆ my_index

#define my_index   strchr

Definition at line 147 of file LALgetopt.c.

◆ SWAP_FLAGS

#define SWAP_FLAGS (   ch1,
  ch2 
)

Definition at line 163 of file LALgetopt.c.

◆ NONOPTION_P

#define NONOPTION_P   (argv[LALoptind][0] != '-' || argv[LALoptind][1] == '\0')

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Definition at line 138 of file LALgetopt.c.

Function Documentation

◆ _getopt_internal()

static int _getopt_internal ( int  argc,
char *const *  argv,
const char *  shortopts,
const struct LALoption longopts,
int *  longind,
int  long_only 
)
static

Definition at line 363 of file LALgetopt.c.

◆ LALgetopt()

int LALgetopt ( int  argc,
char *const *  argv,
const char *  optstring 
)

Definition at line 172 of file LALgetopt.c.

◆ LALgetopt_long()

int LALgetopt_long ( int  argc,
char *const *  argv,
const char *  options,
const struct LALoption long_options,
int *  opt_index 
)

Definition at line 178 of file LALgetopt.c.

◆ LALgetopt_long_only()

int LALgetopt_long_only ( int  argc,
char *const *  argv,
const char *  options,
const struct LALoption long_options,
int *  opt_index 
)

Definition at line 190 of file LALgetopt.c.

◆ exchange()

static void exchange ( char **  argv)
static

Definition at line 208 of file LALgetopt.c.

◆ _getopt_initialize()

static const char * _getopt_initialize ( int  argc,
char *const *  argv,
const char *  optstring 
)
static

Definition at line 269 of file LALgetopt.c.

Variable Documentation

◆ LALoptarg

char* LALoptarg

Definition at line 64 of file LALgetopt.c.

◆ LALoptind

int LALoptind = 1

Definition at line 79 of file LALgetopt.c.

◆ __getopt_initialized

int __getopt_initialized
static

Definition at line 85 of file LALgetopt.c.

◆ nextchar

char* nextchar
static

Definition at line 94 of file LALgetopt.c.

◆ LALopterr

int LALopterr = 1

Definition at line 99 of file LALgetopt.c.

◆ LALoptopt

int LALoptopt = '?'

Definition at line 105 of file LALgetopt.c.

◆ 

enum { ... } ordering

◆ posixly_correct

char* posixly_correct
static

Definition at line 144 of file LALgetopt.c.

◆ first_nonopt

int first_nonopt
static

Definition at line 155 of file LALgetopt.c.

◆ last_nonopt

int last_nonopt
static

Definition at line 156 of file LALgetopt.c.

◆ __libc_argc

int __libc_argc
extern

◆ __libc_argv

char** __libc_argv
extern