Changeset 1604
- Timestamp:
- 07/04/08 11:05:31 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/list.c (modified) (1 diff)
- cherokee/trunk/cherokee/list.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1603 r1604 1 1 2008-07-04 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/list.h, cherokee/list.c (cherokee_list_get_len): New 4 method. 2 5 3 6 * cherokee/connection-protected.h (struct cherokee_connection): cherokee/trunk/cherokee/list.c
r1131 r1604 27 27 28 28 #include <stdlib.h> 29 30 ret_t 31 cherokee_list_get_len (cherokee_list_t *head, size_t *len) 32 { 33 cherokee_list_t *i; 34 cuint_t n = 0; 35 36 list_for_each (i, head) 37 n++; 38 39 *len = n; 40 return ret_ok; 41 } 29 42 30 43 cherokee/trunk/cherokee/list.h
r1131 r1604 106 106 } 107 107 108 void cherokee_list_sort (cherokee_list_t *head, int (*cmp)(cherokee_list_t *a, cherokee_list_t *b)); 108 void cherokee_list_sort (cherokee_list_t *head, int (*cmp)(cherokee_list_t *a, cherokee_list_t *b)); 109 ret_t cherokee_list_get_len (cherokee_list_t *head, size_t *len); 109 110 110 111