Log Message: |
Redefine the svn_hash_gets and svn_hash_sets macros in a way that allows for
parameter type checking, at least in debug builds.
* subversion/include/svn_hash.h
(svn_hash__gets): New function.
(svn_hash_gets): In debug mode, call svn_hash__gets; in release mode, call
apr_hash_get directly. (The prototype of apr_hash_get checks the type of
the 'ht' parameter but not of the 'key'.)
(svn_hash_sets): Rewrite so as to assign the 'key' parameter to a 'const
char *' variable and so get type checking.
* subversion/libsvn_subr/hash.c
(svn_hash__gets): New function.
|