diff options
Diffstat (limited to 'src/tparam.c')
| -rw-r--r-- | src/tparam.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/tparam.c b/src/tparam.c index fcbb63881e6..6aae0b97db9 100644 --- a/src/tparam.c +++ b/src/tparam.c | |||
| @@ -21,6 +21,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <setjmp.h> | 22 | #include <setjmp.h> |
| 23 | #include "lisp.h" /* for xmalloc */ | 23 | #include "lisp.h" /* for xmalloc */ |
| 24 | #include "tparam.h" | ||
| 24 | 25 | ||
| 25 | #ifndef NULL | 26 | #ifndef NULL |
| 26 | #define NULL (char *) 0 | 27 | #define NULL (char *) 0 |
| @@ -38,11 +39,12 @@ Boston, MA 02110-1301, USA. */ | |||
| 38 | 39 | ||
| 39 | The fourth and following args to tparam serve as the parameter values. */ | 40 | The fourth and following args to tparam serve as the parameter values. */ |
| 40 | 41 | ||
| 41 | static char *tparam1 (char *string, char *outstring, int len, char *up, char *left, register int *argp); | 42 | static char *tparam1 (char const *string, char *outstring, int len, |
| 43 | char *up, char *left, int *argp); | ||
| 42 | 44 | ||
| 43 | /* VARARGS 2 */ | ||
| 44 | char * | 45 | char * |
| 45 | tparam (char *string, char *outstring, int len, int arg0, int arg1, int arg2, int arg3) | 46 | tparam (const char *string, char *outstring, int len, |
| 47 | int arg0, int arg1, int arg2, int arg3) | ||
| 46 | { | 48 | { |
| 47 | int arg[4]; | 49 | int arg[4]; |
| 48 | 50 | ||
| @@ -59,7 +61,7 @@ char *UP; | |||
| 59 | static char tgoto_buf[50]; | 61 | static char tgoto_buf[50]; |
| 60 | 62 | ||
| 61 | char * | 63 | char * |
| 62 | tgoto (char *cm, int hpos, int vpos) | 64 | tgoto (const char *cm, int hpos, int vpos) |
| 63 | { | 65 | { |
| 64 | int args[2]; | 66 | int args[2]; |
| 65 | if (!cm) | 67 | if (!cm) |
| @@ -70,10 +72,11 @@ tgoto (char *cm, int hpos, int vpos) | |||
| 70 | } | 72 | } |
| 71 | 73 | ||
| 72 | static char * | 74 | static char * |
| 73 | tparam1 (char *string, char *outstring, int len, char *up, char *left, register int *argp) | 75 | tparam1 (const char *string, char *outstring, int len, |
| 76 | char *up, char *left, register int *argp) | ||
| 74 | { | 77 | { |
| 75 | register int c; | 78 | register int c; |
| 76 | register char *p = string; | 79 | register const char *p = string; |
| 77 | register char *op = outstring; | 80 | register char *op = outstring; |
| 78 | char *outend; | 81 | char *outend; |
| 79 | int outlen = 0; | 82 | int outlen = 0; |
| @@ -277,4 +280,3 @@ main (argc, argv) | |||
| 277 | } | 280 | } |
| 278 | 281 | ||
| 279 | #endif /* DEBUG */ | 282 | #endif /* DEBUG */ |
| 280 | |||