OLD | NEW |
1 /* | 1 /* |
2 * hash.c: chained hash tables | 2 * hash.c: chained hash tables |
3 * | 3 * |
4 * Reference: Your favorite introductory book on algorithms | 4 * Reference: Your favorite introductory book on algorithms |
5 * | 5 * |
6 * Copyright (C) 2000 Bjorn Reese and Daniel Veillard. | 6 * Copyright (C) 2000 Bjorn Reese and Daniel Veillard. |
7 * | 7 * |
8 * Permission to use, copy, modify, and distribute this software for any | 8 * Permission to use, copy, modify, and distribute this software for any |
9 * purpose with or without fee is hereby granted, provided that the above | 9 * purpose with or without fee is hereby granted, provided that the above |
10 * copyright notice and this permission notice appear in all copies. | 10 * copyright notice and this permission notice appear in all copies. |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 if (iter->name3) | 313 if (iter->name3) |
314 xmlFree(iter->name3); | 314 xmlFree(iter->name3); |
315 } | 315 } |
316 iter->payload = NULL; | 316 iter->payload = NULL; |
317 if (!inside_table) | 317 if (!inside_table) |
318 xmlFree(iter); | 318 xmlFree(iter); |
319 nbElems--; | 319 nbElems--; |
320 inside_table = 0; | 320 inside_table = 0; |
321 iter = next; | 321 iter = next; |
322 } | 322 } |
323 inside_table = 0; | |
324 } | 323 } |
325 xmlFree(table->table); | 324 xmlFree(table->table); |
326 } | 325 } |
327 if (table->dict) | 326 if (table->dict) |
328 xmlDictFree(table->dict); | 327 xmlDictFree(table->dict); |
329 xmlFree(table); | 328 xmlFree(table); |
330 } | 329 } |
331 | 330 |
332 /** | 331 /** |
333 * xmlHashAddEntry: | 332 * xmlHashAddEntry: |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 return(0); | 1080 return(0); |
1082 } | 1081 } |
1083 prev = entry; | 1082 prev = entry; |
1084 } | 1083 } |
1085 return(-1); | 1084 return(-1); |
1086 } | 1085 } |
1087 } | 1086 } |
1088 | 1087 |
1089 #define bottom_hash | 1088 #define bottom_hash |
1090 #include "elfgcchack.h" | 1089 #include "elfgcchack.h" |
OLD | NEW |