/[Apache-SVN]
ViewVC logotype

Revision 1663760


Jump to revision: Previous Next
Author: julianfoad
Date: Tue Mar 3 18:09:32 2015 UTC (9 years, 9 months ago)
Changed paths: 2
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.


Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_hash.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_subr/hash.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26