Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

xstrtol.h File Reference

#include <inttypes.h>

Include dependency graph for xstrtol.h:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Defines

#define XSTRTOL_H_   1
#define PARAMS(Args)   ()
#define _DECLARE_XSTRTOL(name, type)
#define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err)
#define STRTOL_FATAL_ERROR(Str, Argument_type_string, Err)   _STRTOL_ERROR (2, Str, Argument_type_string, Err)
#define STRTOL_FAIL_WARN(Str, Argument_type_string, Err)   _STRTOL_ERROR (0, Str, Argument_type_string, Err)

Typedefs

typedef enum strtol_error strtol_error

Enumerations

enum  strtol_error { LONGINT_OK, LONGINT_INVALID, LONGINT_INVALID_SUFFIX_CHAR, LONGINT_OVERFLOW }


Define Documentation

#define XSTRTOL_H_   1
 

#define PARAMS Args       ()
 

#define _DECLARE_XSTRTOL name,
type   
 

Value:

strtol_error \
    name PARAMS ((const char *s, char **ptr, int base, \
        type *val, const char *valid_suffixes));

#define _STRTOL_ERROR Exit_code,
Str,
Argument_type_string,
Err   
 

Value:

do                         \
    {                         \
      switch ((Err))                   \
   {                       \
   case LONGINT_OK:                 \
     abort ();                   \
                           \
   case LONGINT_INVALID:                  \
     error ((Exit_code), 0, "invalid %s `%s'",        \
       (Argument_type_string), (Str));       \
     break;                   \
                           \
   case LONGINT_INVALID_SUFFIX_CHAR:            \
     error ((Exit_code), 0, "invalid character following %s `%s'",   \
       (Argument_type_string), (Str));       \
     break;                   \
                           \
   case LONGINT_OVERFLOW:                 \
     error ((Exit_code), 0, "%s `%s' too large",         \
       (Argument_type_string), (Str));       \
     break;                   \
   }                       \
    }                         \
  while (0)

#define STRTOL_FATAL_ERROR Str,
Argument_type_string,
Err       _STRTOL_ERROR (2, Str, Argument_type_string, Err)
 

#define STRTOL_FAIL_WARN Str,
Argument_type_string,
Err       _STRTOL_ERROR (0, Str, Argument_type_string, Err)
 


Typedef Documentation

typedef enum strtol_error strtol_error
 


Enumeration Type Documentation

enum strtol_error
 

Enumeration values:
LONGINT_OK 
LONGINT_INVALID 
LONGINT_INVALID_SUFFIX_CHAR 
LONGINT_OVERFLOW 


Generated on Mon Apr 7 19:43:00 2003 for DuTree by doxygen1.2.18