Mercurial > emacs
annotate oldXMenu/XDestAssoc.c @ 32653:f05cc7224309
Even/odd pages fix. Fix little bug on XEmacs. Avoid
compilation gripes. Doc fix.
(ps-print-version): New version number (6.2).
(ps-x-color-instance-p, ps-x-color-instance-rgb-components)
(ps-x-color-name, ps-x-color-specifier-p, ps-x-copy-coding-system)
(ps-x-device-class, ps-x-extent-end-position, ps-x-extent-face)
(ps-x-extent-priority, ps-x-extent-start-position)
(ps-x-face-font-instance, ps-x-find-coding-system)
(ps-x-font-instance-properties, ps-x-make-color-instance)
(ps-x-map-extents): Alias for functions without the prefix `ps-x-', to
avoid compilation gripes without defining functions.
(ps-e-find-composition): Alias for function find-composition, to have a
suitable function depending on Emacs version.
(ps-color-device, ps-color-values, ps-face-foreground-name)
(ps-face-background-name, ps-face-bold-p, ps-face-italic-p, ps-mapper)
(ps-extent-sorter, ps-xemacs-face-kind-p, ps-xemacs-color-name)
(ps-print-ensure-fontified): Function definitions surrounded by
`eval-and-compile' to avoid compilation gripes.
(ps-font-lock-face-attributes): `font-lock-face-attributes' evaluated
by symbol-value to avoid compilation gripes.
(ps-end-file, ps-header-sheet, ps-plot-region): Even/odd pages fix.
(ps-generate-postscript-with-faces): Fix little bug on XEmacs.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 19 Oct 2000 10:45:21 +0000 |
parents | bbce331da1be |
children | 23a1cea22d13 |
rev | line source |
---|---|
25858 | 1 /* $XConsortium: XDestAssoc.c,v 10.17 91/02/08 13:11:50 rws Exp $ */ |
2 /* Copyright Massachusetts Institute of Technology 1985 */ | |
3 | |
4 /* | |
5 Permission to use, copy, modify, distribute, and sell this software and its | |
6 documentation for any purpose is hereby granted without fee, provided that | |
7 the above copyright notice appear in all copies and that both that | |
8 copyright notice and this permission notice appear in supporting | |
9 documentation, and that the name of M.I.T. not be used in advertising or | |
10 publicity pertaining to distribution of the software without specific, | |
11 written prior permission. M.I.T. makes no representations about the | |
12 suitability of this software for any purpose. It is provided "as is" | |
13 without express or implied warranty. | |
14 */ | |
15 | |
16 #include <X11/Xlib.h> | |
17 #include "X10.h" | |
18 | |
19 /* | |
20 * XDestroyAssocTable - Destroy (free the memory associated with) | |
21 * an XAssocTable. | |
22 */ | |
23 XDestroyAssocTable(table) | |
24 register XAssocTable *table; | |
25 { | |
26 register int i; | |
27 register XAssoc *bucket; | |
28 register XAssoc *Entry, *entry_next; | |
29 | |
30 /* Free the buckets. */ | |
31 for (i = 0; i < table->size; i++) { | |
32 bucket = &table->buckets[i]; | |
33 for ( | |
34 Entry = bucket->next; | |
35 Entry != bucket; | |
36 Entry = entry_next | |
37 ) { | |
38 entry_next = Entry->next; | |
39 free((char *)Entry); | |
40 } | |
41 } | |
42 | |
43 /* Free the bucket array. */ | |
44 free((char *)table->buckets); | |
45 | |
46 /* Free the table. */ | |
47 free((char *)table); | |
48 } | |
49 |