GME  13
Defines
APR Array Compatibility Helper Macros

Defines

#define APR_ARRAY_IDX(ary, i, type)   (((type *)(ary)->elts)[i])
#define APR_ARRAY_PUSH(ary, type)   (*((type *)apr_array_push(ary)))

Detailed Description

These macros are provided by APR itself from version 1.3. Definitions are provided here for when using older versions of APR.


Define Documentation

#define APR_ARRAY_IDX (   ary,
  i,
  type 
)    (((type *)(ary)->elts)[i])

index into an apr_array_header_t

Definition at line 173 of file svn_types.h.

#define APR_ARRAY_PUSH (   ary,
  type 
)    (*((type *)apr_array_push(ary)))

easier array-pushing syntax

Definition at line 178 of file svn_types.h.