You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2006/04/08 23:08:02 UTC

svn commit: r392607 - in /apr/apr/branches/1.2.x: include/apr_hash.h tables/apr_hash.c

Author: wrowe
Date: Sat Apr  8 14:08:01 2006
New Revision: 392607

URL: http://svn.apache.org/viewcvs?rev=392607&view=rev
Log:

  jorton claims this is an exported function, although that's not necessary
  to set the initial hash function.  _NONSTD is required to stick with the
  STDC calling convention for binary compatibility within apr and for
  external apps.

Backport: 392605

Modified:
    apr/apr/branches/1.2.x/include/apr_hash.h
    apr/apr/branches/1.2.x/tables/apr_hash.c

Modified: apr/apr/branches/1.2.x/include/apr_hash.h
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/include/apr_hash.h?rev=392607&r1=392606&r2=392607&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/include/apr_hash.h (original)
+++ apr/apr/branches/1.2.x/include/apr_hash.h Sat Apr  8 14:08:01 2006
@@ -67,7 +67,8 @@
 /**
  * The default hash function.
  */
-unsigned int apr_hashfunc_default(const char *key, apr_ssize_t *klen);
+APR_DECLARE_NONSTD(unsigned int) apr_hashfunc_default(const char *key,
+                                                      apr_ssize_t *klen);
 
 /**
  * Create a hash table.

Modified: apr/apr/branches/1.2.x/tables/apr_hash.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/tables/apr_hash.c?rev=392607&r1=392606&r2=392607&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/tables/apr_hash.c (original)
+++ apr/apr/branches/1.2.x/tables/apr_hash.c Sat Apr  8 14:08:01 2006
@@ -178,7 +178,8 @@
     ht->max = new_max;
 }
 
-unsigned int apr_hashfunc_default(const char *char_key, apr_ssize_t *klen)
+APR_DECLARE_NONSTD(unsigned int) apr_hashfunc_default(const char *char_key,
+                                                      apr_ssize_t *klen)
 {
     unsigned int hash = 0;
     const unsigned char *key = (const unsigned char *)char_key;