Miscellaneous library routines


マクロ定義

#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)

型定義

typedef int apr_signum_t

関数

void * memchr (const void *s, int c, size_t n)

説明

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 APR_ALIGN ( size,
boundary   )     (((size) + ((boundary) - 1)) & ~((boundary) - 1))

Alignment macros

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

Default alignment

#define APR_ASCII_BLANK   '\040'

a space

#define APR_ASCII_CR   '\015'

a carrige return

#define APR_ASCII_LF   '\012'

a line feed

#define APR_ASCII_TAB   '\011'

a tab

#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...

引数:
p_type pointer type name
field data field within the structure pointed to
戻り値:
offset

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

Finding offsets of elements within structures.

引数:
s_type structure type name
field data field within the structure
戻り値:
offset

#define APR_STRINGIFY (  )     APR_STRINGIFY_HELPER(n)

Properly quote a value as a string in the C preprocessor

#define APR_STRINGIFY_HELPER (  )     #n

Helper macro for APR_STRINGIFY

#define FALSE   0

FALSE

#define TRUE   (!FALSE)

TRUE


型定義

typedef int apr_signum_t

signal numbers typedef


Apache Portable Runtimeに対してSun Jul 19 22:04:01 2009に生成されました。  doxygen 1.4.7