apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r201736 - /apr/apr/trunk/tables/apr_tables.c
Date Sun, 26 Jun 2005 09:56:29 GMT
Author: brianp
Date: Sat Jun 25 01:14:53 2005
New Revision: 201736

URL: http://svn.apache.org/viewcvs?rev=201736&view=rev
Log:
Fix incorrect comments describing how the index within a table works

Modified:
    apr/apr/trunk/tables/apr_tables.c

Modified: apr/apr/trunk/tables/apr_tables.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/tables/apr_tables.c?rev=201736&r1=201735&r2=201736&view=diff
==============================================================================
--- apr/apr/trunk/tables/apr_tables.c (original)
+++ apr/apr/trunk/tables/apr_tables.c Sat Jun 25 01:14:53 2005
@@ -337,14 +337,13 @@
     void *creator;
 #endif
     /* An index to speed up table lookups.  The way this works is:
-     *   - Take the requested key and compute its checksum
-     *   - Hash the checksum into the index:
-     *     - index_first[TABLE_HASH(checksum)] is the offset within
-     *       the table of the first entry with that key checksum
-     *     - index_last[TABLE_HASH(checksum)] is the offset within
-     *       the table of the first entry with that key checksum
+     *   - Hash the key into the index:
+     *     - index_first[TABLE_HASH(key)] is the offset within
+     *       the table of the first entry with that key
+     *     - index_last[TABLE_HASH(key)] is the offset within
+     *       the table of the last entry with that key
      *   - If (and only if) there is no entry in the table whose
-     *     checksum hashes to index element i, then the i'th bit
+     *     key hashes to index element i, then the i'th bit
      *     of index_initialized will be zero.  (Check this before
      *     trying to use index_first[i] or index_last[i]!)
      */



Mime
View raw message