GME  13
Defines | Typedefs | Functions
Miscellaneous library routines

Defines

#define FALSE   0
#define TRUE   (!FALSE)
#define APR_ASCII_BLANK   '\040'
#define APR_ASCII_CR   '\015'
#define APR_ASCII_LF   '\012'
#define APR_ASCII_TAB   '\011'
#define APR_OFFSET(p_type, field)   ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
#define APR_OFFSETOF(s_type, field)   APR_OFFSET(s_type*,field)
#define APR_ALIGN(size, boundary)   (((size) + ((boundary) - 1)) & ~((boundary) - 1))
#define APR_ALIGN_DEFAULT(size)   APR_ALIGN(size, 8)
#define APR_STRINGIFY(n)   APR_STRINGIFY_HELPER(n)
#define APR_STRINGIFY_HELPER(n)   #n
#define memmove(a, b, c)   bcopy(b,a,c)

Typedefs

typedef int apr_signum_t

Functions

int strcasecmp (const char *a, const char *b)
int strncasecmp (const char *a, const char *b, size_t n)
void * memchr (const void *s, int c, size_t n)

Detailed Description

This is collection of oddballs that didn't fit anywhere else, and might move to more appropriate headers with the release of APR 1.0.


Define Documentation

#define APR_ALIGN (   size,
  boundary 
)    (((size) + ((boundary) - 1)) & ~((boundary) - 1))

Alignment macros

Definition at line 136 of file apr_general.h.

#define APR_ALIGN_DEFAULT (   size)    APR_ALIGN(size, 8)

Default alignment

Definition at line 140 of file apr_general.h.

#define APR_ASCII_BLANK   '\040'

a space

Definition at line 59 of file apr_general.h.

#define APR_ASCII_CR   '\015'

a carrige return

Definition at line 61 of file apr_general.h.

#define APR_ASCII_LF   '\012'

a line feed

Definition at line 63 of file apr_general.h.

#define APR_ASCII_TAB   '\011'

a tab

Definition at line 65 of file apr_general.h.

#define APR_OFFSET (   p_type,
  field 
)    ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))

Finding offsets of elements within structures. Taken from the X code... they've sweated portability of this stuff so we don't have to. Sigh...

Parameters:
p_typepointer type name
fielddata field within the structure pointed to
Returns:
offset

Definition at line 95 of file apr_general.h.

#define APR_OFFSETOF (   s_type,
  field 
)    APR_OFFSET(s_type*,field)

Finding offsets of elements within structures.

Parameters:
s_typestructure type name
fielddata field within the structure
Returns:
offset

Definition at line 109 of file apr_general.h.

#define APR_STRINGIFY (   n)    APR_STRINGIFY_HELPER(n)

String and memory functions Properly quote a value as a string in the C preprocessor

Definition at line 150 of file apr_general.h.

#define APR_STRINGIFY_HELPER (   n)    #n

Helper macro for APR_STRINGIFY

Definition at line 152 of file apr_general.h.

#define FALSE   0

FALSE

Definition at line 51 of file apr_general.h.

#define memmove (   a,
  b,
  c 
)    bcopy(b,a,c)

Definition at line 156 of file apr_general.h.

#define TRUE   (!FALSE)

TRUE

Definition at line 55 of file apr_general.h.


Typedef Documentation

typedef int apr_signum_t

signal numbers typedef

Definition at line 68 of file apr_general.h.


Function Documentation

void* memchr ( const void *  s,
int  c,
size_t  n 
)
int strcasecmp ( const char *  a,
const char *  b 
)
int strncasecmp ( const char *  a,
const char *  b,
size_t  n 
)