(latexenc-find-file-coding-system): Don't inherit the EOL part of the
[emacs.git] / oldXMenu / XDestAssoc.c
blob137c49f613d39aec7fbac933fceeed4192bab627
1 /* Copyright Massachusetts Institute of Technology 1985 */
3 /*
4 Permission to use, copy, modify, distribute, and sell this software and its
5 documentation for any purpose is hereby granted without fee, provided that
6 the above copyright notice appear in all copies and that both that
7 copyright notice and this permission notice appear in supporting
8 documentation, and that the name of M.I.T. not be used in advertising or
9 publicity pertaining to distribution of the software without specific,
10 written prior permission. M.I.T. makes no representations about the
11 suitability of this software for any purpose. It is provided "as is"
12 without express or implied warranty.
15 #include <X11/Xlib.h>
16 #include "X10.h"
19 * XDestroyAssocTable - Destroy (free the memory associated with)
20 * an XAssocTable.
22 XDestroyAssocTable(table)
23 register XAssocTable *table;
25 register int i;
26 register XAssoc *bucket;
27 register XAssoc *Entry, *entry_next;
29 /* Free the buckets. */
30 for (i = 0; i < table->size; i++) {
31 bucket = &table->buckets[i];
32 for (
33 Entry = bucket->next;
34 Entry != bucket;
35 Entry = entry_next
36 ) {
37 entry_next = Entry->next;
38 free((char *)Entry);
42 /* Free the bucket array. */
43 free((char *)table->buckets);
45 /* Free the table. */
46 free((char *)table);
49 /* arch-tag: a536bf02-8d63-45f2-8c1a-c7f9fd4da2cf
50 (do not change this comment) */