mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-15 17:00:26 +00:00
b782e2d7f3
* oldXMenu/Activate.c: Convert function definitions to standard C. * oldXMenu/AddPane.c: * oldXMenu/AddSel.c: * oldXMenu/ChgPane.c: * oldXMenu/ChgSel.c: * oldXMenu/Create.c: * oldXMenu/DelPane.c: * oldXMenu/DelSel.c: * oldXMenu/Destroy.c: * oldXMenu/Error.c: * oldXMenu/EvHand.c: * oldXMenu/FindPane.c: * oldXMenu/FindSel.c: * oldXMenu/InsPane.c: * oldXMenu/InsSel.c: * oldXMenu/Internal.c: * oldXMenu/Locate.c: * oldXMenu/Post.c: * oldXMenu/Recomp.c: * oldXMenu/SetAEQ.c: * oldXMenu/SetFrz.c: * oldXMenu/SetPane.c: * oldXMenu/SetSel.c: * oldXMenu/X10.h: * oldXMenu/XCrAssoc.c: * oldXMenu/XDelAssoc.c: * oldXMenu/XDestAssoc.c: * oldXMenu/XLookAssoc.c: * oldXMenu/XMakeAssoc.c: * oldXMenu/XMenu.h: * oldXMenu/XMenuInt.h: * oldXMenu/insque.c: Likewise.
41 lines
799 B
C
41 lines
799 B
C
/* Copyright Massachusetts Institute of Technology 1985 */
|
|
|
|
#include "copyright.h"
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
#include "X10.h"
|
|
|
|
/*
|
|
* XDestroyAssocTable - Destroy (free the memory associated with)
|
|
* an XAssocTable.
|
|
*/
|
|
XDestroyAssocTable(register XAssocTable *table)
|
|
{
|
|
register int i;
|
|
register XAssoc *bucket;
|
|
register XAssoc *Entry, *entry_next;
|
|
|
|
/* Free the buckets. */
|
|
for (i = 0; i < table->size; i++) {
|
|
bucket = &table->buckets[i];
|
|
for (
|
|
Entry = bucket->next;
|
|
Entry != bucket;
|
|
Entry = entry_next
|
|
) {
|
|
entry_next = Entry->next;
|
|
free((char *)Entry);
|
|
}
|
|
}
|
|
|
|
/* Free the bucket array. */
|
|
free((char *)table->buckets);
|
|
|
|
/* Free the table. */
|
|
free((char *)table);
|
|
}
|
|
|
|
/* arch-tag: a536bf02-8d63-45f2-8c1a-c7f9fd4da2cf
|
|
(do not change this comment) */
|