]> git.eshelyaron.com Git - emacs.git/commitdiff
* term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 05:46:35 +0000 (21:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 05:46:35 +0000 (21:46 -0800)
src/ChangeLog
src/term.c
src/tparam.h

index 8bbc818ec7dd579bd4ce07594209276928a700d7..89f4bbb3db9ee59729bba8c8ee1df16d5f21cffa 100644 (file)
        (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.
 
index 9531cce5f9ff0feda89177b2cd128cfc086a34f9..e9e880a0c7f1167bf48d8f9df3d35f1ee2fe4352 100644 (file)
@@ -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.  */
index 11c9ae68aad7998ac90f32d9b6979f82fddcc8f3..3cd3e6053cce55f3da540ee7f77cc735ad83a4c9 100644 (file)
@@ -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);