Mercurial > emacs
comparison src/xdisp.c @ 3726:33e82e88a210
* xdisp.c (display_text_line): Use temporary variable.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Mon, 14 Jun 1993 15:06:46 +0000 |
parents | 82856e3ea14d |
children | 3b640cb97e74 |
comparison
equal
deleted
inserted
replaced
3725:bd468d77adce | 3726:33e82e88a210 |
---|---|
2060 && ! overlay_arrow_seen) | 2060 && ! overlay_arrow_seen) |
2061 { | 2061 { |
2062 unsigned char *p = XSTRING (Voverlay_arrow_string)->data; | 2062 unsigned char *p = XSTRING (Voverlay_arrow_string)->data; |
2063 int i; | 2063 int i; |
2064 int len = XSTRING (Voverlay_arrow_string)->size; | 2064 int len = XSTRING (Voverlay_arrow_string)->size; |
2065 int arrow_end; | |
2065 | 2066 |
2066 if (len > width) | 2067 if (len > width) |
2067 len = width; | 2068 len = width; |
2068 for (i = 0; i < len; i++) | 2069 for (i = 0; i < len; i++) |
2069 startp[i] = p[i]; | 2070 startp[i] = p[i]; |
2070 if (desired_glyphs->used[vpos] < | 2071 |
2071 (len + startp - desired_glyphs->glyphs[vpos])) | 2072 /* Bug in SunOS 4.1.1 compiler requires this intermediate variable. */ |
2072 desired_glyphs->used[vpos] = len + startp - desired_glyphs->glyphs[vpos]; | 2073 arrow_end = (startp - desired_glyphs->glyphs[vpos]) + len; |
2074 if (desired_glyphs->used[vpos] < arrow_end) | |
2075 desired_glyphs->used[vpos] = arrow_end; | |
2073 | 2076 |
2074 overlay_arrow_seen = 1; | 2077 overlay_arrow_seen = 1; |
2075 } | 2078 } |
2076 | 2079 |
2077 val.bufpos = pos; | 2080 val.bufpos = pos; |