annotate oldXMenu/insque.c @ 90413:4ee003f8531c

If USE_FONT_BACKEND is defined, include "font.h". Through out the file, use FONT_INFO_FROM_FACE instead of FONT_INFO_FROM_ID, use get_per_char_metric instead of rif->per_char_metric. (handle_composition_prop) [USE_FONT_BACKEND]: If the composition method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '. (get_glyph_face_and_encoding, fill_composite_glyph_string) (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING) (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use font-backend mechanism. (get_per_char_metric): New function.
author Kenichi Handa <handa@m17n.org>
date Tue, 06 Jun 2006 03:52:26 +0000
parents c5406394f567
children 6588c6259dfb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68640
e8a3fb527b77 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 65000
diff changeset
1 /* Copyright (C) 2002, 2003, 2004, 2005,
e8a3fb527b77 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 65000
diff changeset
2 2006 Free Software Foundation, Inc. */
65000
3861ff8f4bf1 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 52401
diff changeset
3
25858
Dave Love <fx@gnu.org>
parents:
diff changeset
4 /* This file implements the emacs_insque and emacs_remque functions,
Dave Love <fx@gnu.org>
parents:
diff changeset
5 copies of the insque and remque functions of BSD. They and all
Dave Love <fx@gnu.org>
parents:
diff changeset
6 their callers have been renamed to emacs_mumble to allow us to
Dave Love <fx@gnu.org>
parents:
diff changeset
7 include this file in the menu library on all systems. */
Dave Love <fx@gnu.org>
parents:
diff changeset
8
Dave Love <fx@gnu.org>
parents:
diff changeset
9
Dave Love <fx@gnu.org>
parents:
diff changeset
10 struct qelem {
Dave Love <fx@gnu.org>
parents:
diff changeset
11 struct qelem *q_forw;
Dave Love <fx@gnu.org>
parents:
diff changeset
12 struct qelem *q_back;
Dave Love <fx@gnu.org>
parents:
diff changeset
13 char q_data[1];
Dave Love <fx@gnu.org>
parents:
diff changeset
14 };
Dave Love <fx@gnu.org>
parents:
diff changeset
15
Dave Love <fx@gnu.org>
parents:
diff changeset
16 /* Insert ELEM into a doubly-linked list, after PREV. */
Dave Love <fx@gnu.org>
parents:
diff changeset
17
Dave Love <fx@gnu.org>
parents:
diff changeset
18 void
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 25858
diff changeset
19 emacs_insque (elem, prev)
25858
Dave Love <fx@gnu.org>
parents:
diff changeset
20 struct qelem *elem, *prev;
Dave Love <fx@gnu.org>
parents:
diff changeset
21 {
Dave Love <fx@gnu.org>
parents:
diff changeset
22 struct qelem *next = prev->q_forw;
Dave Love <fx@gnu.org>
parents:
diff changeset
23 prev->q_forw = elem;
Dave Love <fx@gnu.org>
parents:
diff changeset
24 if (next)
Dave Love <fx@gnu.org>
parents:
diff changeset
25 next->q_back = elem;
Dave Love <fx@gnu.org>
parents:
diff changeset
26 elem->q_forw = next;
Dave Love <fx@gnu.org>
parents:
diff changeset
27 elem->q_back = prev;
Dave Love <fx@gnu.org>
parents:
diff changeset
28 }
Dave Love <fx@gnu.org>
parents:
diff changeset
29
Dave Love <fx@gnu.org>
parents:
diff changeset
30 /* Unlink ELEM from the doubly-linked list that it is in. */
Dave Love <fx@gnu.org>
parents:
diff changeset
31
Dave Love <fx@gnu.org>
parents:
diff changeset
32 emacs_remque (elem)
Dave Love <fx@gnu.org>
parents:
diff changeset
33 struct qelem *elem;
Dave Love <fx@gnu.org>
parents:
diff changeset
34 {
Dave Love <fx@gnu.org>
parents:
diff changeset
35 struct qelem *next = elem->q_forw;
Dave Love <fx@gnu.org>
parents:
diff changeset
36 struct qelem *prev = elem->q_back;
Dave Love <fx@gnu.org>
parents:
diff changeset
37 if (next)
Dave Love <fx@gnu.org>
parents:
diff changeset
38 next->q_back = prev;
Dave Love <fx@gnu.org>
parents:
diff changeset
39 if (prev)
Dave Love <fx@gnu.org>
parents:
diff changeset
40 prev->q_forw = next;
Dave Love <fx@gnu.org>
parents:
diff changeset
41 }
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
42
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
43 /* arch-tag: a8719d1a-5c3f-4bce-b36b-173106d36165
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
44 (do not change this comment) */