src/cx/hash_map.h

changeset 563
69a83fad8a35
parent 562
fd3368c20413
child 658
56c62780582e
     1.1 --- a/src/cx/hash_map.h	Fri May 27 17:40:27 2022 +0200
     1.2 +++ b/src/cx/hash_map.h	Wed Jun 08 21:33:31 2022 +0200
     1.3 @@ -26,8 +26,8 @@
     1.4   * POSSIBILITY OF SUCH DAMAGE.
     1.5   */
     1.6  /**
     1.7 - * \file map.h
     1.8 - * \brief Interface for map implementations.
     1.9 + * \file hash_map.h
    1.10 + * \brief Hash map implementation.
    1.11   * \author Mike Becker
    1.12   * \author Olaf Wintermann
    1.13   * \version 3.0
    1.14 @@ -43,18 +43,6 @@
    1.15  extern "C" {
    1.16  #endif
    1.17  
    1.18 -/** Internal structure for a key within a hash map. */
    1.19 -struct cx_hash_map_key_s {
    1.20 -    /** The key data. */
    1.21 -    unsigned char *data;
    1.22 -    /**
    1.23 -     * The key data length.
    1.24 -     */
    1.25 -    size_t len;
    1.26 -    /** The hash value of the key data. */
    1.27 -    unsigned hash;
    1.28 -};
    1.29 -
    1.30  /** Internal structure for an element of a hash map. */
    1.31  struct cx_hash_map_element_s {
    1.32      /** The value data. */
    1.33 @@ -64,7 +52,7 @@
    1.34      struct cx_hash_map_element_s *next;
    1.35  
    1.36      /** The corresponding key. */
    1.37 -    struct cx_hash_map_key_s key;
    1.38 +    CxHashKey key;
    1.39  };
    1.40  
    1.41  /**

mercurial