Commit b024a946 authored by Paul Eggert's avatar Paul Eggert
Browse files

* term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file

parent e6ca6543
......@@ -106,7 +106,6 @@
(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.
 
* term.c (term_mouse_position): Rename local to avoid shadowing.
 
......@@ -1306,18 +1306,6 @@ static char **term_get_fkeys_address;
static KBOARD *term_get_fkeys_kboard;
static Lisp_Object term_get_fkeys_1 (void);
/* Rework termcap API to accept const pointer args. */
static inline int my_tgetflag (const char *x) { return tgetflag ((char *) x); }
static inline int my_tgetnum (const char *x) { return tgetnum ((char *) x); }
static inline char *my_tgetstr (const char *x, char **a)
{ return tgetstr ((char *) x, a); }
#undef tgetflag
#undef tgetnum
#undef tgetstr
#define tgetflag my_tgetflag
#define tgetnum my_tgetnum
#define tgetstr my_tgetstr
/* Find the escape codes sent by the function keys for Vinput_decode_map.
This function scans the termcap function key sequence entries, and
adds entries to Vinput_decode_map for each function key it finds. */
......
......@@ -23,9 +23,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
void tputs (const char *, int, int (*) (int));
int tgetent (char *, const char *);
int tgetflag (char *id);
int tgetnum (char *id);
char *tgetstr (char *, char **);
int tgetflag (const char *);
int tgetnum (const char *);
char *tgetstr (const char *, char **);
char *tgoto (const char *, int, int);
char *tparam (const char *, char *, int, int, int, int, int);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment