comparison src/term.c @ 111411:717c8af799d3

term.c (append_glyphless_glyph, produce_glyphless_glyph): Remove unused variables.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 05 Nov 2010 19:52:06 +0200
parents 6788b08ca420
children d53ee71e7e89
comparison
equal deleted inserted replaced
111410:15a32889e96c 111411:717c8af799d3
1870 1870
1871 static void 1871 static void
1872 append_glyphless_glyph (struct it *it, int face_id, char *str) 1872 append_glyphless_glyph (struct it *it, int face_id, char *str)
1873 { 1873 {
1874 struct glyph *glyph, *end; 1874 struct glyph *glyph, *end;
1875 bidi_type_t bidi_type;
1876 int resolved_level;
1877 int i; 1875 int i;
1878 1876
1879 xassert (it->glyph_row); 1877 xassert (it->glyph_row);
1880 glyph = it->glyph_row->glyphs[it->area] + it->glyph_row->used[it->area]; 1878 glyph = it->glyph_row->glyphs[it->area] + it->glyph_row->used[it->area];
1881 end = it->glyph_row->glyphs[1 + it->area]; 1879 end = it->glyph_row->glyphs[1 + it->area];
1949 1947
1950 static void 1948 static void
1951 produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym) 1949 produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
1952 { 1950 {
1953 int face_id; 1951 int face_id;
1954 struct face *face;
1955 int width, len; 1952 int width, len;
1956 char buf[9], *str = " "; 1953 char buf[9], *str = " ";
1957 1954
1958 /* Get a face ID for the glyph by utilizing a cache (the same way as 1955 /* Get a face ID for the glyph by utilizing a cache (the same way as
1959 doen for `escape-glyph' in get_next_display_element). */ 1956 doen for `escape-glyph' in get_next_display_element). */
1987 } 1984 }
1988 else 1985 else
1989 { 1986 {
1990 if (it->glyphless_method == GLYPHLESS_DISPLAY_ACRONYM) 1987 if (it->glyphless_method == GLYPHLESS_DISPLAY_ACRONYM)
1991 { 1988 {
1992 int i;
1993
1994 if (! STRINGP (acronym) && CHAR_TABLE_P (Vglyphless_char_display)) 1989 if (! STRINGP (acronym) && CHAR_TABLE_P (Vglyphless_char_display))
1995 acronym = CHAR_TABLE_REF (Vglyphless_char_display, it->c); 1990 acronym = CHAR_TABLE_REF (Vglyphless_char_display, it->c);
1996 buf[0] = '['; 1991 buf[0] = '[';
1997 str = STRINGP (acronym) ? (char *) SDATA (acronym) : ""; 1992 str = STRINGP (acronym) ? (char *) SDATA (acronym) : "";
1998 for (len = 0; len < 6 && str[len] && ASCII_BYTE_P (str[len]); len++) 1993 for (len = 0; len < 6 && str[len] && ASCII_BYTE_P (str[len]); len++)