Mercurial > emacs
annotate oldXMenu/XDestAssoc.c @ 71504:2b4e59cd1121
(Qeql): Add extern.
(x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
(fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
(syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
Change keys of Vmac_atsu_font_table from strings to numbers.
(fm_style_to_face_attributes) [USE_ATSUI]: New function.
(init_font_name_table) [USE_ATSUI]: Use it.
(saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
(syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
[USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
only when saved_ts_script_language_on_focus coincides with
Vmac_ts_script_language_on_focus.
[USE_MAC_TSM] (mac_tsm_suspend): Save value of
Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
(XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
[USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
| author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
|---|---|
| date | Wed, 28 Jun 2006 08:31:32 +0000 |
| parents | e8a3fb527b77 |
| children | ce127a46b1ca c5406394f567 |
| rev | line source |
|---|---|
| 25858 | 1 /* Copyright Massachusetts Institute of Technology 1985 */ |
|
68640
e8a3fb527b77
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
65000
diff
changeset
|
2 /* Copyright (C) 2002, 2003, 2004, 2005, |
|
e8a3fb527b77
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
65000
diff
changeset
|
3 2006 Free Software Foundation, Inc. */ |
| 25858 | 4 |
| 5 /* | |
| 6 Permission to use, copy, modify, distribute, and sell this software and its | |
| 7 documentation for any purpose is hereby granted without fee, provided that | |
| 8 the above copyright notice appear in all copies and that both that | |
| 9 copyright notice and this permission notice appear in supporting | |
| 10 documentation, and that the name of M.I.T. not be used in advertising or | |
| 11 publicity pertaining to distribution of the software without specific, | |
| 12 written prior permission. M.I.T. makes no representations about the | |
| 13 suitability of this software for any purpose. It is provided "as is" | |
| 14 without express or implied warranty. | |
| 15 */ | |
| 16 | |
| 17 #include <X11/Xlib.h> | |
| 18 #include "X10.h" | |
| 19 | |
| 20 /* | |
| 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 | 23 */ |
| 24 XDestroyAssocTable(table) | |
| 25 register XAssocTable *table; | |
| 26 { | |
| 27 register int i; | |
| 28 register XAssoc *bucket; | |
| 29 register XAssoc *Entry, *entry_next; | |
| 30 | |
| 31 /* Free the buckets. */ | |
| 32 for (i = 0; i < table->size; i++) { | |
| 33 bucket = &table->buckets[i]; | |
| 34 for ( | |
| 35 Entry = bucket->next; | |
| 36 Entry != bucket; | |
| 37 Entry = entry_next | |
| 38 ) { | |
| 39 entry_next = Entry->next; | |
| 40 free((char *)Entry); | |
| 41 } | |
| 42 } | |
| 43 | |
| 44 /* Free the bucket array. */ | |
| 45 free((char *)table->buckets); | |
| 46 | |
| 47 /* Free the table. */ | |
| 48 free((char *)table); | |
| 49 } | |
| 50 | |
| 52401 | 51 /* arch-tag: a536bf02-8d63-45f2-8c1a-c7f9fd4da2cf |
| 52 (do not change this comment) */ |
