Mercurial > emacs
annotate src/s/sunos4-0.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 | 6b226f263365 |
children | 8674e7d48c7a |
rev | line source |
---|---|
457 | 1 #include "bsd4-2.h" |
2 | |
8757 | 3 #ifndef SUNOS4 |
4 #define SUNOS4 | |
5 #endif | |
6 | |
457 | 7 #if 0 /* This may have been needed for an earlier version of Sun OS 4. |
8 It seems to cause warnings in 4.0.3 and 4.1. */ | |
9 #define O_NDELAY FNDELAY /* Non-blocking I/O (4.2 style) */ | |
10 #endif | |
11 | |
7140
c2e4cc470ade
(LD_SWITCH_SYSTEM): Undo previous change.
Richard M. Stallman <rms@gnu.org>
parents:
6820
diff
changeset
|
12 /* We use the Sun syntax -Bstatic unconditionally, because even when we |
c2e4cc470ade
(LD_SWITCH_SYSTEM): Undo previous change.
Richard M. Stallman <rms@gnu.org>
parents:
6820
diff
changeset
|
13 use GCC, these are passed through to the linker, not handled by GCC |
c2e4cc470ade
(LD_SWITCH_SYSTEM): Undo previous change.
Richard M. Stallman <rms@gnu.org>
parents:
6820
diff
changeset
|
14 directly. */ |
18569
b751e29103f4
(LD_SWITCH_SYSTEM_TEMACS): Defined. Move -e here.
Richard M. Stallman <rms@gnu.org>
parents:
8757
diff
changeset
|
15 #define LD_SWITCH_SYSTEM -Bstatic |
b751e29103f4
(LD_SWITCH_SYSTEM_TEMACS): Defined. Move -e here.
Richard M. Stallman <rms@gnu.org>
parents:
8757
diff
changeset
|
16 |
b751e29103f4
(LD_SWITCH_SYSTEM_TEMACS): Defined. Move -e here.
Richard M. Stallman <rms@gnu.org>
parents:
8757
diff
changeset
|
17 /* We use this for linking temacs, but not for other programs |
b751e29103f4
(LD_SWITCH_SYSTEM_TEMACS): Defined. Move -e here.
Richard M. Stallman <rms@gnu.org>
parents:
8757
diff
changeset
|
18 or for tests in configure. */ |
b751e29103f4
(LD_SWITCH_SYSTEM_TEMACS): Defined. Move -e here.
Richard M. Stallman <rms@gnu.org>
parents:
8757
diff
changeset
|
19 #define LD_SWITCH_SYSTEM_TEMACS -e __start |
457 | 20 |
21 /* In SunOS 4.1, a static function called by tzsetwall reportedly | |
22 clears the byte just past an eight byte region it mallocs, corrupting | |
23 GNU malloc's memory pool. But Sun's malloc doesn't seem to mind. */ | |
24 | |
25 #define SYSTEM_MALLOC | |
5681
4524a1b19b67
[__GNUC__] (MKDIR_PROTOTYPE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
26 |
26528
6b226f263365
(ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
Paul Eggert <eggert@twinsun.com>
parents:
18569
diff
changeset
|
27 /* SunOS 4.x cc <stdlib.h> declares abort and free to return int. */ |
6b226f263365
(ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
Paul Eggert <eggert@twinsun.com>
parents:
18569
diff
changeset
|
28 |
6b226f263365
(ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
Paul Eggert <eggert@twinsun.com>
parents:
18569
diff
changeset
|
29 #ifndef __STDC__ |
6b226f263365
(ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
Paul Eggert <eggert@twinsun.com>
parents:
18569
diff
changeset
|
30 #define ABORT_RETURN_TYPE int |
6b226f263365
(ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
Paul Eggert <eggert@twinsun.com>
parents:
18569
diff
changeset
|
31 #define FREE_RETURN_TYPE int |
6b226f263365
(ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
Paul Eggert <eggert@twinsun.com>
parents:
18569
diff
changeset
|
32 #endif |
6b226f263365
(ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
Paul Eggert <eggert@twinsun.com>
parents:
18569
diff
changeset
|
33 |
5681
4524a1b19b67
[__GNUC__] (MKDIR_PROTOTYPE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
34 #ifdef __GNUC__ |
4524a1b19b67
[__GNUC__] (MKDIR_PROTOTYPE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
35 /* We must define mkdir with this arg prototype |
4524a1b19b67
[__GNUC__] (MKDIR_PROTOTYPE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
36 to match GCC's fixed stat.h. */ |
4524a1b19b67
[__GNUC__] (MKDIR_PROTOTYPE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
37 #define MKDIR_PROTOTYPE \ |
4524a1b19b67
[__GNUC__] (MKDIR_PROTOTYPE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
38 int mkdir (const char *dpath, unsigned short dmode) |
4524a1b19b67
[__GNUC__] (MKDIR_PROTOTYPE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
39 #endif /* __GNUC__ */ |