annotate src/s/irix6-5.h @ 26879:b4de7fa9866e

(x_append_glyph): Setup members of struct glyph properly for composition. (x_append_composite_glyph): New function. (VCENTER_BASELINE_OFFSET): New macro. (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members of struct it for the composition. Cache pixel offsets in the struct composition. Delete codes for a composite character. Handle Vignore_relative_composition in composition code. (struct glyph_string): Delete member cmpcharp, add new member cmp. (x_set_cursor_gc): Check s->cmp, not s->cmpcharp. (x_compute_glyph_string_overhangs): Likewise. (x_get_glyph_overhangs): Delete codes for a composite character. (x_right_overwritten): Check s->cmp, not s->cmpcharp. (x_draw_glyph_string_background): Likewise. Delete codes for checking s->gidx for a composition. (x_draw_glyph_string_foreground): Delete code for a composite character. (x_draw_composite_glyph_string_foreground): New function. (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp. (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH. (struct work): Deleted. (x_fill_composite_glyph_string): Argument changed. Mostly rewritten for that. (x_fill_glyph_string): Don't check CHARSET_COMPOSITION. (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here. (BUILD_COMPOSITE_GLYPH_STRING): New macro. (BUILD_GLYPH_STRINGS): For composition, call BUILD_COMPOSITE_GLYPH_STRING. (x_new_font): Initialize f->output_data.x->baseline_offset, not f->output_data.x->font_baseline.
author Kenichi Handa <handa@m17n.org>
date Wed, 15 Dec 1999 00:27:21 +0000
parents 8a6fbe59406d
children 7994f21f53e5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23913
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1 #define IRIX6
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2 #define IRIX6_5
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
3 #include "irix5-0.h"
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
4
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
5 /* Irix 6 tries to do 64 bits, but doesn't do it fully,
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
6 so inhibit that. */
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7 #define IRIX_FORCE_32_BITS
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
9 #ifndef __GNUC__
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
10 #ifndef IRIX6_5
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
11 #define LD_SWITCH_SYSTEM -32
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
12 #else
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13 #define LD_SWITCH_SYSTEM -n32
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
14 #endif
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
15 #endif
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
16
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
17 /* This macro definition, which we inherited from irix5-0.h,
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
18 is needed in configure on Irix 5, but gets in the way there
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
19 on Irix 6. So get rid of it except in Makefile.in where we need it. */
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
20 #ifndef THIS_IS_MAKEFILE
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
21 #undef C_SWITCH_SYSTEM
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
22 #endif
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
23
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
24 /* The only supported configuration of GCC under IRIX6.x produces
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
25 n32 MIPS ABI binaries and also supports -g. */
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
26 #ifdef __GNUC__
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
27 #undef C_DEBUG_SWITCH
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
28 #define C_DEBUG_SWITCH -g
25338
8a6fbe59406d (C_DEBUG_SWITCH): Set for debug and optimize.
Dave Love <fx@gnu.org>
parents: 23913
diff changeset
29 #else
8a6fbe59406d (C_DEBUG_SWITCH): Set for debug and optimize.
Dave Love <fx@gnu.org>
parents: 23913
diff changeset
30 /* Optimize, inaccurate debugging. This should also be applicable
8a6fbe59406d (C_DEBUG_SWITCH): Set for debug and optimize.
Dave Love <fx@gnu.org>
parents: 23913
diff changeset
31 other than on Irix 6.5, but I don't know for which compiler
8a6fbe59406d (C_DEBUG_SWITCH): Set for debug and optimize.
Dave Love <fx@gnu.org>
parents: 23913
diff changeset
32 versions. -- fx */
8a6fbe59406d (C_DEBUG_SWITCH): Set for debug and optimize.
Dave Love <fx@gnu.org>
parents: 23913
diff changeset
33 #define C_DEBUG_SWITCH -g3 -O
23913
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
34 #endif
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
35
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
36 #undef SA_RESTART
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
37
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
38 /* It turns out that the #define in irix5-0.h is needed in Irix 6 as well. */
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
39 #if 0
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
40 /* Canced the #define that is in irix5-0.h. */
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
41 #undef ospeed
d755c5c3e9a2 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
42 #endif