annotate oldXMenu/XDestAssoc.c @ 90745:1b883722b73c

src/Makefile.in: Remove redundant HAVE_XFT clause Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-168
author Miles Bader <miles@gnu.org>
date Wed, 31 Jan 2007 00:26:59 +0000
parents 95d0cdf160ea
children dd7c098af727
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25858
Dave Love <fx@gnu.org>
parents:
diff changeset
1 /* Copyright Massachusetts Institute of Technology 1985 */
74548
ce127a46b1ca Update copyright years.
Glenn Morris <rgm@gnu.org>
parents: 68640
diff changeset
2 /* Copyright (C) 2001, 2002, 2003, 2004, 2005,
75348
3d45362f1d38 Add 2007 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 74548
diff changeset
3 2006, 2007 Free Software Foundation, Inc. */
25858
Dave Love <fx@gnu.org>
parents:
diff changeset
4
Dave Love <fx@gnu.org>
parents:
diff changeset
5 /*
Dave Love <fx@gnu.org>
parents:
diff changeset
6 Permission to use, copy, modify, distribute, and sell this software and its
Dave Love <fx@gnu.org>
parents:
diff changeset
7 documentation for any purpose is hereby granted without fee, provided that
Dave Love <fx@gnu.org>
parents:
diff changeset
8 the above copyright notice appear in all copies and that both that
Dave Love <fx@gnu.org>
parents:
diff changeset
9 copyright notice and this permission notice appear in supporting
Dave Love <fx@gnu.org>
parents:
diff changeset
10 documentation, and that the name of M.I.T. not be used in advertising or
Dave Love <fx@gnu.org>
parents:
diff changeset
11 publicity pertaining to distribution of the software without specific,
Dave Love <fx@gnu.org>
parents:
diff changeset
12 written prior permission. M.I.T. makes no representations about the
Dave Love <fx@gnu.org>
parents:
diff changeset
13 suitability of this software for any purpose. It is provided "as is"
Dave Love <fx@gnu.org>
parents:
diff changeset
14 without express or implied warranty.
Dave Love <fx@gnu.org>
parents:
diff changeset
15 */
Dave Love <fx@gnu.org>
parents:
diff changeset
16
Dave Love <fx@gnu.org>
parents:
diff changeset
17 #include <X11/Xlib.h>
Dave Love <fx@gnu.org>
parents:
diff changeset
18 #include "X10.h"
Dave Love <fx@gnu.org>
parents:
diff changeset
19
Dave Love <fx@gnu.org>
parents:
diff changeset
20 /*
Dave Love <fx@gnu.org>
parents:
diff changeset
21 * XDestroyAssocTable - Destroy (free the memory associated with)
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 25858
diff changeset
22 * an XAssocTable.
25858
Dave Love <fx@gnu.org>
parents:
diff changeset
23 */
Dave Love <fx@gnu.org>
parents:
diff changeset
24 XDestroyAssocTable(table)
Dave Love <fx@gnu.org>
parents:
diff changeset
25 register XAssocTable *table;
Dave Love <fx@gnu.org>
parents:
diff changeset
26 {
Dave Love <fx@gnu.org>
parents:
diff changeset
27 register int i;
Dave Love <fx@gnu.org>
parents:
diff changeset
28 register XAssoc *bucket;
Dave Love <fx@gnu.org>
parents:
diff changeset
29 register XAssoc *Entry, *entry_next;
Dave Love <fx@gnu.org>
parents:
diff changeset
30
Dave Love <fx@gnu.org>
parents:
diff changeset
31 /* Free the buckets. */
Dave Love <fx@gnu.org>
parents:
diff changeset
32 for (i = 0; i < table->size; i++) {
Dave Love <fx@gnu.org>
parents:
diff changeset
33 bucket = &table->buckets[i];
Dave Love <fx@gnu.org>
parents:
diff changeset
34 for (
Dave Love <fx@gnu.org>
parents:
diff changeset
35 Entry = bucket->next;
Dave Love <fx@gnu.org>
parents:
diff changeset
36 Entry != bucket;
Dave Love <fx@gnu.org>
parents:
diff changeset
37 Entry = entry_next
Dave Love <fx@gnu.org>
parents:
diff changeset
38 ) {
Dave Love <fx@gnu.org>
parents:
diff changeset
39 entry_next = Entry->next;
Dave Love <fx@gnu.org>
parents:
diff changeset
40 free((char *)Entry);
Dave Love <fx@gnu.org>
parents:
diff changeset
41 }
Dave Love <fx@gnu.org>
parents:
diff changeset
42 }
Dave Love <fx@gnu.org>
parents:
diff changeset
43
Dave Love <fx@gnu.org>
parents:
diff changeset
44 /* Free the bucket array. */
Dave Love <fx@gnu.org>
parents:
diff changeset
45 free((char *)table->buckets);
Dave Love <fx@gnu.org>
parents:
diff changeset
46
Dave Love <fx@gnu.org>
parents:
diff changeset
47 /* Free the table. */
Dave Love <fx@gnu.org>
parents:
diff changeset
48 free((char *)table);
Dave Love <fx@gnu.org>
parents:
diff changeset
49 }
Dave Love <fx@gnu.org>
parents:
diff changeset
50
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
51 /* arch-tag: a536bf02-8d63-45f2-8c1a-c7f9fd4da2cf
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
52 (do not change this comment) */