aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-03-08 18:12:00 -0800
committerPaul Eggert2011-03-08 18:12:00 -0800
commitfbceeba21b3b5aeb2a0f98d4ca937cabbe07fab0 (patch)
tree8b6d211a9e0ed7b1ac2a07bcc515d3e357a4f79d
parent50938595880fd87c7dcd39a607cba1b0a7598baf (diff)
downloademacs-fbceeba21b3b5aeb2a0f98d4ca937cabbe07fab0.tar.gz
emacs-fbceeba21b3b5aeb2a0f98d4ca937cabbe07fab0.zip
* cm.c (calccost, cmgoto): Use const pointers where appropriate.
* cm.h (struct cm): Likewise. * dispextern.h (do_line_insertion_deletion_costs): Likewise. * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise. * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table): (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph): (turn_on_face, init_tty): Likewise. * termchar.h (struct tty_display_info): Likewise. * term.c (tgetflag, tgetnum, tgetstr): Redefine to use const pointers.
-rw-r--r--src/ChangeLog10
-rw-r--r--src/cm.c6
-rw-r--r--src/cm.h33
-rw-r--r--src/dispextern.h7
-rw-r--r--src/scroll.c13
-rw-r--r--src/term.c51
-rw-r--r--src/termchar.h93
7 files changed, 120 insertions, 93 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 350f01953d4..a8594fb3fc6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -98,6 +98,16 @@
98 * tparam.c (tparam1, tparam, tgoto): 98 * tparam.c (tparam1, tparam, tgoto):
99 Use const pointers where appropriate. 99 Use const pointers where appropriate.
100 100
101 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
102 * cm.h (struct cm): Likewise.
103 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
104 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
105 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
106 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
107 (turn_on_face, init_tty): Likewise.
108 * termchar.h (struct tty_display_info): Likewise.
109 * term.c (tgetflag, tgetnum, tgetstr): Redefine to use const pointers.
110
1012011-03-06 Chong Yidong <cyd@stupidchicken.com> 1112011-03-06 Chong Yidong <cyd@stupidchicken.com>
102 112
103 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 113 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
diff --git a/src/cm.c b/src/cm.c
index af4116f3fec..108ee5720f3 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -199,7 +199,7 @@ calccost (struct tty_display_info *tty,
199 tabx, 199 tabx,
200 tab2x, 200 tab2x,
201 tabcost; 201 tabcost;
202 register char *p; 202 register const char *p;
203 203
204 /* If have just wrapped on a terminal with xn, 204 /* If have just wrapped on a terminal with xn,
205 don't believe the cursor position: give up here 205 don't believe the cursor position: give up here
@@ -331,8 +331,8 @@ cmgoto (struct tty_display_info *tty, int row, int col)
331 relcost, 331 relcost,
332 directcost; 332 directcost;
333 int use IF_LINT (= 0); 333 int use IF_LINT (= 0);
334 char *p, 334 char *p;
335 *dcm; 335 const char *dcm;
336 336
337 /* First the degenerate case */ 337 /* First the degenerate case */
338 if (row == curY (tty) && col == curX (tty)) /* already there */ 338 if (row == curY (tty) && col == curX (tty)) /* already there */
diff --git a/src/cm.h b/src/cm.h
index 7b4bedd4e88..5d430598f0c 100644
--- a/src/cm.h
+++ b/src/cm.h
@@ -35,25 +35,25 @@ struct cm
35 int cm_curX; /* Current column */ 35 int cm_curX; /* Current column */
36 36
37 /* Capabilities from termcap */ 37 /* Capabilities from termcap */
38 char *cm_up; /* up (up) */ 38 const char *cm_up; /* up (up) */
39 char *cm_down; /* down (do) */ 39 const char *cm_down; /* down (do) */
40 char *cm_left; /* left (le) */ 40 const char *cm_left; /* left (le) */
41 char *cm_right; /* right (nd) */ 41 const char *cm_right; /* right (nd) */
42 char *cm_home; /* home (ho) */ 42 const char *cm_home; /* home (ho) */
43 char *cm_cr; /* carriage return (cr) */ 43 const char *cm_cr; /* carriage return (cr) */
44 char *cm_ll; /* last line (ll) */ 44 const char *cm_ll; /* last line (ll) */
45 char *cm_tab; /* tab (ta) */ 45 const char *cm_tab; /* tab (ta) */
46 char *cm_backtab; /* backtab (bt) */ 46 const char *cm_backtab; /* backtab (bt) */
47 char *cm_abs; /* absolute (cm) */ 47 char *cm_abs; /* absolute (cm) */
48 char *cm_habs; /* horizontal absolute (ch) */ 48 const char *cm_habs; /* horizontal absolute (ch) */
49 char *cm_vabs; /* vertical absolute (cv) */ 49 const char *cm_vabs; /* vertical absolute (cv) */
50#if 0 50#if 0
51 char *cm_ds; /* "don't send" string (ds) */ 51 const char *cm_ds; /* "don't send" string (ds) */
52#endif 52#endif
53 char *cm_multiup; /* multiple up (UP) */ 53 const char *cm_multiup; /* multiple up (UP) */
54 char *cm_multidown; /* multiple down (DO) */ 54 const char *cm_multidown; /* multiple down (DO) */
55 char *cm_multileft; /* multiple left (LE) */ 55 const char *cm_multileft; /* multiple left (LE) */
56 char *cm_multiright; /* multiple right (RI) */ 56 const char *cm_multiright; /* multiple right (RI) */
57 int cm_cols; /* number of cols on screen (co) */ 57 int cm_cols; /* number of cols on screen (co) */
58 int cm_rows; /* number of rows on screen (li) */ 58 int cm_rows; /* number of rows on screen (li) */
59 int cm_tabwidth; /* tab width (it) */ 59 int cm_tabwidth; /* tab width (it) */
@@ -168,4 +168,3 @@ extern void cmcostinit (struct tty_display_info *);
168extern void cmgoto (struct tty_display_info *, int, int); 168extern void cmgoto (struct tty_display_info *, int, int);
169extern void Wcm_clear (struct tty_display_info *); 169extern void Wcm_clear (struct tty_display_info *);
170extern int Wcm_init (struct tty_display_info *); 170extern int Wcm_init (struct tty_display_info *);
171
diff --git a/src/dispextern.h b/src/dispextern.h
index 30979d487ff..9843dfd1fcd 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -3326,9 +3326,10 @@ extern struct terminal *init_tty (const char *, const char *, int);
3326 3326
3327extern int scrolling_max_lines_saved (int, int, int *, int *, int *); 3327extern int scrolling_max_lines_saved (int, int, int *, int *, int *);
3328extern int scroll_cost (struct frame *, int, int, int); 3328extern int scroll_cost (struct frame *, int, int, int);
3329extern void do_line_insertion_deletion_costs (struct frame *, char *, 3329extern void do_line_insertion_deletion_costs (struct frame *, const char *,
3330 char *, char *, char *, 3330 const char *, const char *,
3331 char *, char *, int); 3331 const char *, const char *,
3332 const char *, int);
3332void scrolling_1 (struct frame *, int, int, int, int *, int *, int *, 3333void scrolling_1 (struct frame *, int, int, int, int *, int *, int *,
3333 int *, int); 3334 int *, int);
3334 3335
diff --git a/src/scroll.c b/src/scroll.c
index 1343b89c41e..33af18d2090 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -938,8 +938,8 @@ line_ins_del (FRAME_PTR frame, int ov1, int pf1, int ovn, int pfn, register int
938 938
939static void 939static void
940ins_del_costs (FRAME_PTR frame, 940ins_del_costs (FRAME_PTR frame,
941 char *one_line_string, char *multi_string, 941 const char *one_line_string, const char *multi_string,
942 char *setup_string, char *cleanup_string, 942 const char *setup_string, const char *cleanup_string,
943 int *costvec, int *ncostvec, 943 int *costvec, int *ncostvec,
944 int coefficient) 944 int coefficient)
945{ 945{
@@ -994,9 +994,12 @@ ins_del_costs (FRAME_PTR frame,
994 994
995void 995void
996do_line_insertion_deletion_costs (FRAME_PTR frame, 996do_line_insertion_deletion_costs (FRAME_PTR frame,
997 char *ins_line_string, char *multi_ins_string, 997 const char *ins_line_string,
998 char *del_line_string, char *multi_del_string, 998 const char *multi_ins_string,
999 char *setup_string, char *cleanup_string, 999 const char *del_line_string,
1000 const char *multi_del_string,
1001 const char *setup_string,
1002 const char *cleanup_string,
1000 int coefficient) 1003 int coefficient)
1001{ 1004{
1002 if (FRAME_INSERT_COST (frame) != 0) 1005 if (FRAME_INSERT_COST (frame) != 0)
diff --git a/src/term.c b/src/term.c
index 19d7d893069..6986cfb9e03 100644
--- a/src/term.c
+++ b/src/term.c
@@ -961,9 +961,10 @@ static void
961tty_ins_del_lines (struct frame *f, int vpos, int n) 961tty_ins_del_lines (struct frame *f, int vpos, int n)
962{ 962{
963 struct tty_display_info *tty = FRAME_TTY (f); 963 struct tty_display_info *tty = FRAME_TTY (f);
964 char *multi = n > 0 ? tty->TS_ins_multi_lines : tty->TS_del_multi_lines; 964 const char *multi =
965 char *single = n > 0 ? tty->TS_ins_line : tty->TS_del_line; 965 n > 0 ? tty->TS_ins_multi_lines : tty->TS_del_multi_lines;
966 char *scroll = n > 0 ? tty->TS_rev_scroll : tty->TS_fwd_scroll; 966 const char *single = n > 0 ? tty->TS_ins_line : tty->TS_del_line;
967 const char *scroll = n > 0 ? tty->TS_rev_scroll : tty->TS_fwd_scroll;
967 968
968 register int i = n > 0 ? n : -n; 969 register int i = n > 0 ? n : -n;
969 register char *buf; 970 register char *buf;
@@ -1138,9 +1139,9 @@ calculate_costs (struct frame *frame)
1138 if (FRAME_TERMCAP_P (frame)) 1139 if (FRAME_TERMCAP_P (frame))
1139 { 1140 {
1140 struct tty_display_info *tty = FRAME_TTY (frame); 1141 struct tty_display_info *tty = FRAME_TTY (frame);
1141 register char *f = (tty->TS_set_scroll_region 1142 register const char *f = (tty->TS_set_scroll_region
1142 ? tty->TS_set_scroll_region 1143 ? tty->TS_set_scroll_region
1143 : tty->TS_set_scroll_region_1); 1144 : tty->TS_set_scroll_region_1);
1144 1145
1145 FRAME_SCROLL_REGION_COST (frame) = string_cost (f); 1146 FRAME_SCROLL_REGION_COST (frame) = string_cost (f);
1146 1147
@@ -1194,7 +1195,7 @@ calculate_costs (struct frame *frame)
1194} 1195}
1195 1196
1196struct fkey_table { 1197struct fkey_table {
1197 char *cap, *name; 1198 const char *cap, *name;
1198}; 1199};
1199 1200
1200 /* Termcap capability names that correspond directly to X keysyms. 1201 /* Termcap capability names that correspond directly to X keysyms.
@@ -1305,6 +1306,18 @@ static char **term_get_fkeys_address;
1305static KBOARD *term_get_fkeys_kboard; 1306static KBOARD *term_get_fkeys_kboard;
1306static Lisp_Object term_get_fkeys_1 (void); 1307static Lisp_Object term_get_fkeys_1 (void);
1307 1308
1309/* Rework termcap API to accept const pointer args. */
1310static inline int my_tgetflag (const char *x) { return tgetflag ((char *) x); }
1311static inline int my_tgetnum (const char *x) { return tgetnum ((char *) x); }
1312static inline char *my_tgetstr (const char *x, char **a)
1313{ return tgetstr ((char *) x, a); }
1314#undef tgetflag
1315#undef tgetnum
1316#undef tgetstr
1317#define tgetflag my_tgetflag
1318#define tgetnum my_tgetnum
1319#define tgetstr my_tgetstr
1320
1308/* Find the escape codes sent by the function keys for Vinput_decode_map. 1321/* Find the escape codes sent by the function keys for Vinput_decode_map.
1309 This function scans the termcap function key sequence entries, and 1322 This function scans the termcap function key sequence entries, and
1310 adds entries to Vinput_decode_map for each function key it finds. */ 1323 adds entries to Vinput_decode_map for each function key it finds. */
@@ -1352,9 +1365,9 @@ term_get_fkeys_1 (void)
1352 "k;", and if it is present, assuming that "k0" denotes F0, otherwise F10. 1365 "k;", and if it is present, assuming that "k0" denotes F0, otherwise F10.
1353 */ 1366 */
1354 { 1367 {
1355 char *k_semi = tgetstr ("k;", address); 1368 const char *k_semi = tgetstr ("k;", address);
1356 char *k0 = tgetstr ("k0", address); 1369 const char *k0 = tgetstr ("k0", address);
1357 char *k0_name = "f10"; 1370 const char *k0_name = "f10";
1358 1371
1359 if (k_semi) 1372 if (k_semi)
1360 { 1373 {
@@ -1447,7 +1460,7 @@ static void append_glyph (struct it *);
1447static void produce_stretch_glyph (struct it *); 1460static void produce_stretch_glyph (struct it *);
1448static void append_composite_glyph (struct it *); 1461static void append_composite_glyph (struct it *);
1449static void produce_composite_glyph (struct it *); 1462static void produce_composite_glyph (struct it *);
1450static void append_glyphless_glyph (struct it *, int, char *); 1463static void append_glyphless_glyph (struct it *, int, const char *);
1451static void produce_glyphless_glyph (struct it *, int, Lisp_Object); 1464static void produce_glyphless_glyph (struct it *, int, Lisp_Object);
1452 1465
1453/* Append glyphs to IT's glyph_row. Called from produce_glyphs for 1466/* Append glyphs to IT's glyph_row. Called from produce_glyphs for
@@ -1815,7 +1828,7 @@ produce_composite_glyph (struct it *it)
1815 comes from it->nglyphs bytes). */ 1828 comes from it->nglyphs bytes). */
1816 1829
1817static void 1830static void
1818append_glyphless_glyph (struct it *it, int face_id, char *str) 1831append_glyphless_glyph (struct it *it, int face_id, const char *str)
1819{ 1832{
1820 struct glyph *glyph, *end; 1833 struct glyph *glyph, *end;
1821 int i; 1834 int i;
@@ -1890,7 +1903,8 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
1890{ 1903{
1891 int face_id; 1904 int face_id;
1892 int len; 1905 int len;
1893 char buf[9], *str = " "; 1906 char buf[9];
1907 char const *str = " ";
1894 1908
1895 /* Get a face ID for the glyph by utilizing a cache (the same way as 1909 /* Get a face ID for the glyph by utilizing a cache (the same way as
1896 done for `escape-glyph' in get_next_display_element). */ 1910 done for `escape-glyph' in get_next_display_element). */
@@ -2109,7 +2123,8 @@ turn_on_face (struct frame *f, int face_id)
2109 2123
2110 if (tty->TN_max_colors > 0) 2124 if (tty->TN_max_colors > 0)
2111 { 2125 {
2112 char *ts, *p; 2126 const char *ts;
2127 char *p;
2113 2128
2114 ts = tty->standout_mode ? tty->TS_set_background : tty->TS_set_foreground; 2129 ts = tty->standout_mode ? tty->TS_set_background : tty->TS_set_foreground;
2115 if (fg >= 0 && ts) 2130 if (fg >= 0 && ts)
@@ -3519,10 +3534,10 @@ use the Bourne shell command `TERM=... export TERM' (C-shell:\n\
3519 If it were in the termcap entry, it would confuse other programs. */ 3534 If it were in the termcap entry, it would confuse other programs. */
3520 if (!tty->TS_set_window) 3535 if (!tty->TS_set_window)
3521 { 3536 {
3522 p = tty->TS_termcap_modes; 3537 const char *m = tty->TS_termcap_modes;
3523 while (*p && strcmp (p, "\033v ")) 3538 while (*m && strcmp (m, "\033v "))
3524 p++; 3539 m++;
3525 if (*p) 3540 if (*m)
3526 tty->TS_set_window = "\033v%C %C %C %C "; 3541 tty->TS_set_window = "\033v%C %C %C %C ";
3527 } 3542 }
3528 /* Termcap entry often fails to have :in: flag */ 3543 /* Termcap entry often fails to have :in: flag */
diff --git a/src/termchar.h b/src/termchar.h
index 277a96932b4..035974a8ce6 100644
--- a/src/termchar.h
+++ b/src/termchar.h
@@ -84,58 +84,58 @@ struct tty_display_info
84 84
85 /* Strings, numbers and flags taken from the termcap entry. */ 85 /* Strings, numbers and flags taken from the termcap entry. */
86 86
87 char *TS_ins_line; /* "al" */ 87 const char *TS_ins_line; /* "al" */
88 char *TS_ins_multi_lines; /* "AL" (one parameter, # lines to insert) */ 88 const char *TS_ins_multi_lines; /* "AL" (one parameter, # lines to insert) */
89 char *TS_bell; /* "bl" */ 89 const char *TS_bell; /* "bl" */
90 char *TS_clr_to_bottom; /* "cd" */ 90 const char *TS_clr_to_bottom; /* "cd" */
91 char *TS_clr_line; /* "ce", clear to end of line */ 91 const char *TS_clr_line; /* "ce", clear to end of line */
92 char *TS_clr_frame; /* "cl" */ 92 const char *TS_clr_frame; /* "cl" */
93 char *TS_set_scroll_region; /* "cs" (2 params, first line and last line) */ 93 const char *TS_set_scroll_region; /* "cs" (2 params, first line and last line) */
94 char *TS_set_scroll_region_1; /* "cS" (4 params: total lines, 94 const char *TS_set_scroll_region_1; /* "cS" (4 params: total lines,
95 lines above scroll region, lines below it, 95 lines above scroll region, lines below it,
96 total lines again) */ 96 total lines again) */
97 char *TS_del_char; /* "dc" */ 97 const char *TS_del_char; /* "dc" */
98 char *TS_del_multi_chars; /* "DC" (one parameter, # chars to delete) */ 98 const char *TS_del_multi_chars; /* "DC" (one parameter, # chars to delete) */
99 char *TS_del_line; /* "dl" */ 99 const char *TS_del_line; /* "dl" */
100 char *TS_del_multi_lines; /* "DL" (one parameter, # lines to delete) */ 100 const char *TS_del_multi_lines; /* "DL" (one parameter, # lines to delete) */
101 char *TS_delete_mode; /* "dm", enter character-delete mode */ 101 const char *TS_delete_mode; /* "dm", enter character-delete mode */
102 char *TS_end_delete_mode; /* "ed", leave character-delete mode */ 102 const char *TS_end_delete_mode; /* "ed", leave character-delete mode */
103 char *TS_end_insert_mode; /* "ei", leave character-insert mode */ 103 const char *TS_end_insert_mode; /* "ei", leave character-insert mode */
104 char *TS_ins_char; /* "ic" */ 104 const char *TS_ins_char; /* "ic" */
105 char *TS_ins_multi_chars; /* "IC" (one parameter, # chars to insert) */ 105 const char *TS_ins_multi_chars; /* "IC" (one parameter, # chars to insert) */
106 char *TS_insert_mode; /* "im", enter character-insert mode */ 106 const char *TS_insert_mode; /* "im", enter character-insert mode */
107 char *TS_pad_inserted_char; /* "ip". Just padding, no commands. */ 107 const char *TS_pad_inserted_char; /* "ip". Just padding, no commands. */
108 char *TS_end_keypad_mode; /* "ke" */ 108 const char *TS_end_keypad_mode; /* "ke" */
109 char *TS_keypad_mode; /* "ks" */ 109 const char *TS_keypad_mode; /* "ks" */
110 char *TS_pad_char; /* "pc", char to use as padding */ 110 const char *TS_pad_char; /* "pc", char to use as padding */
111 char *TS_repeat; /* "rp" (2 params, # times to repeat 111 const char *TS_repeat; /* "rp" (2 params, # times to repeat
112 and character to be repeated) */ 112 and character to be repeated) */
113 char *TS_end_standout_mode; /* "se" */ 113 const char *TS_end_standout_mode; /* "se" */
114 char *TS_fwd_scroll; /* "sf" */ 114 const char *TS_fwd_scroll; /* "sf" */
115 char *TS_standout_mode; /* "so" */ 115 const char *TS_standout_mode; /* "so" */
116 char *TS_rev_scroll; /* "sr" */ 116 const char *TS_rev_scroll; /* "sr" */
117 char *TS_end_termcap_modes; /* "te" */ 117 const char *TS_end_termcap_modes; /* "te" */
118 char *TS_termcap_modes; /* "ti" */ 118 const char *TS_termcap_modes; /* "ti" */
119 char *TS_visible_bell; /* "vb" */ 119 const char *TS_visible_bell; /* "vb" */
120 char *TS_cursor_normal; /* "ve" */ 120 const char *TS_cursor_normal; /* "ve" */
121 char *TS_cursor_visible; /* "vs" */ 121 const char *TS_cursor_visible; /* "vs" */
122 char *TS_cursor_invisible; /* "vi" */ 122 const char *TS_cursor_invisible; /* "vi" */
123 char *TS_set_window; /* "wi" (4 params, start and end of window, 123 const char *TS_set_window; /* "wi" (4 params, start and end of window,
124 each as vpos and hpos) */ 124 each as vpos and hpos) */
125 125
126 char *TS_enter_bold_mode; /* "md" -- turn on bold (extra bright mode). */ 126 const char *TS_enter_bold_mode; /* "md" -- turn on bold (extra bright mode). */
127 char *TS_enter_dim_mode; /* "mh" -- turn on half-bright mode. */ 127 const char *TS_enter_dim_mode; /* "mh" -- turn on half-bright mode. */
128 char *TS_enter_blink_mode; /* "mb" -- enter blinking mode. */ 128 const char *TS_enter_blink_mode; /* "mb" -- enter blinking mode. */
129 char *TS_enter_reverse_mode; /* "mr" -- enter reverse video mode. */ 129 const char *TS_enter_reverse_mode; /* "mr" -- enter reverse video mode. */
130 char *TS_exit_underline_mode; /* "us" -- start underlining. */ 130 const char *TS_exit_underline_mode; /* "us" -- start underlining. */
131 char *TS_enter_underline_mode; /* "ue" -- end underlining. */ 131 const char *TS_enter_underline_mode; /* "ue" -- end underlining. */
132 132
133 /* "as"/"ae" -- start/end alternate character set. Not really 133 /* "as"/"ae" -- start/end alternate character set. Not really
134 supported, yet. */ 134 supported, yet. */
135 char *TS_enter_alt_charset_mode; 135 const char *TS_enter_alt_charset_mode;
136 char *TS_exit_alt_charset_mode; 136 const char *TS_exit_alt_charset_mode;
137 137
138 char *TS_exit_attribute_mode; /* "me" -- switch appearances off. */ 138 const char *TS_exit_attribute_mode; /* "me" -- switch appearances off. */
139 139
140 /* Value of the "NC" (no_color_video) capability, or 0 if not present. */ 140 /* Value of the "NC" (no_color_video) capability, or 0 if not present. */
141 int TN_no_color_video; 141 int TN_no_color_video;
@@ -147,12 +147,12 @@ struct tty_display_info
147 int TN_max_pairs; 147 int TN_max_pairs;
148 148
149 /* "op" -- SVr4 set default pair to its original value. */ 149 /* "op" -- SVr4 set default pair to its original value. */
150 char *TS_orig_pair; 150 const char *TS_orig_pair;
151 151
152 /* "AF"/"AB" or "Sf"/"Sb"-- set ANSI or SVr4 foreground/background color. 152 /* "AF"/"AB" or "Sf"/"Sb"-- set ANSI or SVr4 foreground/background color.
153 1 param, the color index. */ 153 1 param, the color index. */
154 char *TS_set_foreground; 154 const char *TS_set_foreground;
155 char *TS_set_background; 155 const char *TS_set_background;
156 156
157 int TF_hazeltine; /* termcap hz flag. */ 157 int TF_hazeltine; /* termcap hz flag. */
158 int TF_insmode_motion; /* termcap mi flag: can move while in insert mode. */ 158 int TF_insmode_motion; /* termcap mi flag: can move while in insert mode. */
@@ -210,4 +210,3 @@ extern struct tty_display_info *tty_list;
210 : (abort(), (struct tty_display_info *) 0)) 210 : (abort(), (struct tty_display_info *) 0))
211 211
212#define CURTTY() FRAME_TTY (SELECTED_FRAME()) 212#define CURTTY() FRAME_TTY (SELECTED_FRAME())
213