diff options
| author | Paul Eggert | 2011-03-08 21:46:35 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-08 21:46:35 -0800 |
| commit | b024a9466a0e238e053d0464f4a4f9b19d04648b (patch) | |
| tree | 3483eb4a4d2b0180f5f0ec8d7c17b2ec81b039ca /src/term.c | |
| parent | e6ca6543685fded0d1b3322dd06d0fa70d3e2a44 (diff) | |
| download | emacs-b024a9466a0e238e053d0464f4a4f9b19d04648b.tar.gz emacs-b024a9466a0e238e053d0464f4a4f9b19d04648b.zip | |
* term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/term.c b/src/term.c index 9531cce5f9f..e9e880a0c7f 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -1306,18 +1306,6 @@ static char **term_get_fkeys_address; | |||
| 1306 | static KBOARD *term_get_fkeys_kboard; | 1306 | static KBOARD *term_get_fkeys_kboard; |
| 1307 | static Lisp_Object term_get_fkeys_1 (void); | 1307 | static Lisp_Object term_get_fkeys_1 (void); |
| 1308 | 1308 | ||
| 1309 | /* Rework termcap API to accept const pointer args. */ | ||
| 1310 | static inline int my_tgetflag (const char *x) { return tgetflag ((char *) x); } | ||
| 1311 | static inline int my_tgetnum (const char *x) { return tgetnum ((char *) x); } | ||
| 1312 | static 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 | |||
| 1321 | /* Find the escape codes sent by the function keys for Vinput_decode_map. | 1309 | /* Find the escape codes sent by the function keys for Vinput_decode_map. |
| 1322 | This function scans the termcap function key sequence entries, and | 1310 | This function scans the termcap function key sequence entries, and |
| 1323 | adds entries to Vinput_decode_map for each function key it finds. */ | 1311 | adds entries to Vinput_decode_map for each function key it finds. */ |