apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r392607 - in /apr/apr/branches/1.2.x: include/apr_hash.h tables/apr_hash.c
Date Sat, 08 Apr 2006 21:08:02 GMT
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;



Mime
View raw message