* keyboard.c (parse_modifiers_uncached, parse_modifiers):
[emacs.git] / oldXMenu / XDestAssoc.c
blob135b0c2cdaff645032bdaf2708e3472b9bbb883b
1 /* Copyright Massachusetts Institute of Technology 1985 */
3 #include "copyright.h"
6 #include <X11/Xlib.h>
7 #include "X10.h"
9 /*
10 * XDestroyAssocTable - Destroy (free the memory associated with)
11 * an XAssocTable.
13 XDestroyAssocTable(register XAssocTable *table)
15 register int i;
16 register XAssoc *bucket;
17 register XAssoc *Entry, *entry_next;
19 /* Free the buckets. */
20 for (i = 0; i < table->size; i++) {
21 bucket = &table->buckets[i];
22 for (
23 Entry = bucket->next;
24 Entry != bucket;
25 Entry = entry_next
26 ) {
27 entry_next = Entry->next;
28 free((char *)Entry);
32 /* Free the bucket array. */
33 free((char *)table->buckets);
35 /* Free the table. */
36 free((char *)table);