Miscellaneous library routines

Overview

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. More…

// typedefs

typedef int apr_signum_t;

// macros

#define APR_ALIGN( \
    size, \
    boundary \
)

#define APR_ALIGN_DEFAULT(size)
#define APR_ASCII_BLANK
#define APR_ASCII_CR
#define APR_ASCII_LF
#define APR_ASCII_TAB

#define APR_OFFSET( \
    p_type, \
    field \
)

#define APR_OFFSETOF( \
    s_type, \
    field \
)

Detailed Documentation

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.

Typedefs

typedef int apr_signum_t

signal numbers typedef

Macros

#define APR_ALIGN( \
    size, \
    boundary \
)

Alignment macros

#define APR_ALIGN_DEFAULT(size)

Default alignment

#define APR_ASCII_BLANK

FALSE TRUE a space

#define APR_ASCII_CR

a carrige return

#define APR_ASCII_LF

a line feed

#define APR_ASCII_TAB

a tab

#define APR_OFFSET( \
    p_type, \
    field \
)

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_type

pointer type name

field

data field within the structure pointed to

Returns:

offset

#define APR_OFFSETOF( \
    s_type, \
    field \
)

Finding offsets of elements within structures.

Parameters:

s_type

structure type name

field

data field within the structure

Returns:

offset