Commit Graph

112 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
2230fbd445 renamed ASE_STR_XXX macros and added the ase_xstr_t type 2008-09-24 03:51:24 +00:00
b6e14c7be3 added the hint parameter to the sizer function 2008-09-23 05:21:08 +00:00
f90fffc853 2008-09-05 04:58:08 +00:00
fd2eb3f012 2008-09-01 05:17:01 +00:00
4520a77a59 fixed unnecessary freeing of memory in ase_map_init() 2008-09-01 05:16:52 +00:00
cb5e20a885 added ase_sll_init() and ase_sll_fini() 2008-09-01 05:15:57 +00:00
5958ddccef 2008-09-01 04:56:47 +00:00
ae2f49f1a1 removed ase_str_forfeit() and added ase_str_yield() 2008-09-01 04:55:59 +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
7fb73210b8 2008-08-23 02:13:47 +00:00
b51b4bd524 2008-08-23 01:06:35 +00:00
713586d04a 2008-08-21 04:58:19 +00:00
6dbf01ade0 2008-08-21 04:00:22 +00:00
01dd1ad765 2008-08-21 03:58:42 +00:00
89b9bf7296 2008-08-21 03:29:59 +00:00
5e8901042a 2008-08-21 03:17:25 +00:00
a95dad6655 2008-08-21 02:24:36 +00:00
9a6365bbe8 2008-08-21 02:22:07 +00:00
6effdf92ad 2008-08-20 05:00:26 +00:00
3cbefaa12c 2008-08-19 05:21:48 +00:00
63014b5fc8 2008-08-18 08:51:40 +00:00
ac38e2b46a renamed ase_memchr/ase_memrchr to ase_membyte/ase_memrbyte 2008-08-17 08:08:53 +00:00
002a9d1913 2008-08-13 07:58:57 +00:00
4793f1efdf 2008-08-12 04:52:25 +00:00
580520d195 2008-08-11 08:22:31 +00:00
f4b28ffb6a 2008-08-11 02:27:21 +00:00
6355e8b5d4 2008-08-09 04:35:04 +00:00
6f69035772 defined ASE_MEMXXX and started adding copier and freeer 2008-08-08 05:02:08 +00:00
93a0589204 experimented ase_sll_openx 2008-08-07 07:52:14 +00:00
5cc0d3bc1f 2008-08-06 07:30:10 +00:00
961c493986 2008-08-04 08:14:52 +00:00
088751e5a9 2008-08-04 08:13:03 +00:00
cbb37554c1 2008-08-04 08:06:43 +00:00
a754d8e7c1 2008-07-28 00:16:54 +00:00
925701797f 2008-07-27 09:37:38 +00:00
3aa1251661 2008-07-26 09:01:27 +00:00
3a8e597e03 2008-07-25 08:08:37 +00:00
bcb66176b0 2008-07-24 08:11:17 +00:00
b37a295b60 2008-07-23 21:59:57 +00:00