libspf2  1.2.10
Macros | Enumerations | Functions | Variables
getopt_long_only.c File Reference
#include <stdio.h>
#include "getopt.h"
Include dependency graph for getopt_long_only.c:

Go to the source code of this file.

Macros

#define _NO_PROTO
 
#define const
 
#define GETOPT_INTERFACE_VERSION   2
 
#define _(msgid)   (msgid)
 
#define SWAP_FLAGS(ch1, ch2)
 
#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')
 

Enumerations

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }
 

Functions

char * getenv ()
 
 while (top > middle &&middle > bottom)
 
 if (optstring[0]== '-')
 
else if (posixly_correct!=NULL)
 

Variables

char * optarg = NULL
 
int optind = 1
 
int __getopt_initialized = 0
 
int opterr = 1
 
int optopt = '?'
 
int chr
 
int middle = last_nonopt
 
int top = optind
 
char * tem
 
const char * optstring
 
struct optionlongopts
 
int * longindex
 

Macro Definition Documentation

#define _ (   msgid)    (msgid)

Definition at line 94 of file getopt_long_only.c.

#define _NO_PROTO

Definition at line 27 of file getopt_long_only.c.

#define const

Definition at line 38 of file getopt_long_only.c.

#define GETOPT_INTERFACE_VERSION   2

Definition at line 52 of file getopt_long_only.c.

#define NONOPTION_P   (argv[optind][0] != '-' || argv[optind][1] == '\0')
#define SWAP_FLAGS (   ch1,
  ch2 
)

Definition at line 288 of file getopt_long_only.c.

Referenced by while().

Enumeration Type Documentation

anonymous enum
Enumerator
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Definition at line 192 of file getopt_long_only.c.

Function Documentation

char* getenv ( )
else if ( optstring  [0] = = '-')

Definition at line 407 of file getopt_long_only.c.

References optstring, and RETURN_IN_ORDER.

else if ( posixly_correct!  = NULL)

Definition at line 417 of file getopt_long_only.c.

References len, and NULL.

while ( top  ,
middle &&  middle,
bottom   
)

Definition at line 340 of file getopt_long_only.c.

References len, middle, SWAP_FLAGS, and tem.

Variable Documentation

int __getopt_initialized = 0

Definition at line 141 of file getopt_long_only.c.

int chr

Definition at line 217 of file getopt_long_only.c.

int * longindex

Definition at line 985 of file getopt_long_only.c.

struct option * longopts

Definition at line 984 of file getopt_long_only.c.

int middle = last_nonopt

Definition at line 309 of file getopt_long_only.c.

Referenced by while().

char* optarg = NULL

Definition at line 120 of file getopt_long_only.c.

Referenced by main().

int opterr = 1

Definition at line 155 of file getopt_long_only.c.

int optind = 1

Definition at line 135 of file getopt_long_only.c.

Referenced by main().

int optopt = '?'

Definition at line 161 of file getopt_long_only.c.

const char * optstring

Definition at line 393 of file getopt_long_only.c.

Referenced by if().

char* tem

Definition at line 311 of file getopt_long_only.c.

Referenced by while().

int top = optind

Definition at line 310 of file getopt_long_only.c.

Referenced by SPF_record_expand_data().