Commit Graph

16 Commits

Author SHA1 Message Date
a88cc05eae fixed various bugs in a map and enhanced it.
- added ase_strbytes returning the number of bytes of a '\0'-terminated string
 - changed the prototype of ase_map_walker_t to return ase_map_walk_t 
 - added ASE_MAP_KCLEN and ASE_MAP_VCLEN
 - fixed the bug of not initializing the bucket in ase_map_init
 - fixed the bug of returning 0 when a match is found in ase_map_search
 - fixed the bug of wrongly calculating the value pointer in alloc_pair
2008-09-25 01:18:50 +00:00
21c331febf added to ase_map_t a keeper function that is called when a value is replace by itself. deprecated the generic ase_sizer_t and defined context-specific sizer types such as ase_str_sizer_t and ase_map_sizer_t 2008-09-24 08:47:23 +00:00
ac92d8581a changed ase_map_open() to adjust invalid parameters and fixed reorganize() to adjust a wrong capacity returned by a user-defined sizer 2008-09-24 05:37:38 +00:00
2fbbff8139 added the sizer function to ase_map_t 2008-09-24 05:27:24 +00:00
4520a77a59 fixed unnecessary freeing of memory in ase_map_init() 2008-09-01 05:16:52 +00:00
5958ddccef 2008-09-01 04:56:47 +00:00
91159085ed 2008-08-30 09:02:26 +00:00
dd00a6f49d added ase_str_init(), ase_str_fini(), ase_map_init() and ase_map_fini() to support static creation. 2008-08-30 08:51:04 +00:00
2390cda730 2008-08-29 08:21:25 +00:00
616ddad7d7 2008-08-29 04:29:53 +00:00
7f353d7c8a 2008-08-27 05:04:16 +00:00
b361aee101 2008-08-27 04:31:24 +00:00
0590924941 2008-08-27 02:50:12 +00:00
b6d38c892a 2008-08-23 09:23:09 +00:00
3cbefaa12c 2008-08-19 05:21:48 +00:00
5786cae59c 2008-06-04 02:17:42 +00:00