src/cx/map.h

changeset 993
b642eca4b956
parent 992
14ca894190fd
child 994
3603bdf4a78b
--- a/src/cx/map.h	Tue Nov 26 22:00:03 2024 +0100
+++ b/src/cx/map.h	Tue Nov 26 22:16:27 2024 +0100
@@ -90,7 +90,7 @@
      * Deallocates the entire memory.
      */
     cx_attr_nonnull
-    void (*destructor)(struct cx_map_s *map);
+    void (*deallocate)(struct cx_map_s *map);
 
     /**
      * Removes all elements.
@@ -204,11 +204,11 @@
 /**
  * Deallocates the memory of the specified map.
  *
- * @param map the map to be destroyed
+ * @param map the map to be freed
  */
-static inline void cxMapDestroy(CxMap *map) {
+static inline void cxMapFree(CxMap *map) {
     if (map == NULL) return;
-    map->cl->destructor(map);
+    map->cl->deallocate(map);
 }
 
 

mercurial