Subversion
Defines | Functions
APR Hash Table Helpers

index into an apr_array_header_t More...

Defines

#define SVN__APR_STATUS_IS_ENOTDIR(s)   APR_STATUS_IS_ENOTDIR(s)
 On Windows, APR_STATUS_IS_ENOTDIR includes several kinds of invalid-pathname error but not ERROR_INVALID_NAME, so we include it.
#define SVN__APR_STATUS_IS_EPIPE(s)   APR_STATUS_IS_EPIPE(s)
 On Windows, APR_STATUS_IS_EPIPE does not include ERROR_NO_DATA error.

Functions

const void * svn__apr_hash_index_key (const apr_hash_index_t *hi)
 Return the key of the hash table entry indexed by hi.
apr_ssize_t svn__apr_hash_index_klen (const apr_hash_index_t *hi)
 Return the key length of the hash table entry indexed by hi.
void * svn__apr_hash_index_val (const apr_hash_index_t *hi)
 Return the value of the hash table entry indexed by hi.

Detailed Description

index into an apr_array_header_t

easier array-pushing syntax These functions enable the caller to dereference an APR hash table index without type casts or temporary variables.

### These are private, and may go away when APR implements them natively.


Define Documentation

#define SVN__APR_STATUS_IS_ENOTDIR (   s)    APR_STATUS_IS_ENOTDIR(s)

On Windows, APR_STATUS_IS_ENOTDIR includes several kinds of invalid-pathname error but not ERROR_INVALID_NAME, so we include it.

We also include ERROR_DIRECTORY as that was not included in apr versions before 1.4.0 and this fix is not backported

Definition at line 182 of file svn_types.h.

#define SVN__APR_STATUS_IS_EPIPE (   s)    APR_STATUS_IS_EPIPE(s)

On Windows, APR_STATUS_IS_EPIPE does not include ERROR_NO_DATA error.

So we include it.

Definition at line 193 of file svn_types.h.


Function Documentation

const void* svn__apr_hash_index_key ( const apr_hash_index_t *  hi)

Return the key of the hash table entry indexed by hi.

apr_ssize_t svn__apr_hash_index_klen ( const apr_hash_index_t *  hi)

Return the key length of the hash table entry indexed by hi.

void* svn__apr_hash_index_val ( const apr_hash_index_t *  hi)

Return the value of the hash table entry indexed by hi.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines