| 1163 | /* acl_htable_list - list all table members */ |
| 1164 | |
| 1165 | ACL_HTABLE_INFO **acl_htable_list(const ACL_HTABLE *table) |
| 1166 | { |
| 1167 | ACL_HTABLE_INFO **list; |
| 1168 | ACL_HTABLE_INFO *member; |
| 1169 | int count = 0; |
| 1170 | int i; |
| 1171 | |
| 1172 | if (table != 0) { |
| 1173 | list = (ACL_HTABLE_INFO **) acl_mymalloc(sizeof(*list) * (table->used + 1)); |
| 1174 | for (i = 0; i < table->size; i++) { |
| 1175 | for (member = table->data[i]; member != 0; member = member->next) { |
| 1176 | list[count++] = member; |
| 1177 | } |
| 1178 | } |
| 1179 | } else { |
| 1180 | list = (ACL_HTABLE_INFO **) acl_mymalloc(sizeof(*list)); |
| 1181 | } |
| 1182 | |
| 1183 | list[count] = 0; |
| 1184 | return list; |
| 1185 | } |
| 1186 | |
| 1187 | void acl_htable_stat(const ACL_HTABLE *table) |
| 1188 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…