Mercurial > hg > xemacs-beta
diff src/tparam.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
line wrap: on
line diff
--- a/src/tparam.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/tparam.c Mon Aug 13 11:20:41 2007 +0200 @@ -57,16 +57,16 @@ The fourth and following args to tparam serve as the parameter values. */ -static char *tparam1 (const char *string, char *outstring, int len, - const char *up, const char *left, +static char *tparam1 (CONST char *string, char *outstring, int len, + CONST char *up, CONST char *left, int *argp); /* XEmacs: renamed this function because just tparam() conflicts with ncurses */ -char *emacs_tparam (const char *string, char *outstring, int len, int arg0, +char *emacs_tparam (CONST char *string, char *outstring, int len, int arg0, int arg1, int arg2, int arg3); char * -emacs_tparam (const char *string, char *outstring, int len, int arg0, +emacs_tparam (CONST char *string, char *outstring, int len, int arg0, int arg1, int arg2, int arg3) { int arg[4]; @@ -77,14 +77,14 @@ return tparam1 (string, outstring, len, 0, 0, arg); } -const char *BC; -const char *UP; +CONST char *BC; +CONST char *UP; static char tgoto_buf[50]; -char *tgoto (const char *cm, int hpos, int vpos); +char *tgoto (CONST char *cm, int hpos, int vpos); char * -tgoto (const char *cm, int hpos, int vpos) +tgoto (CONST char *cm, int hpos, int vpos) { int args[2]; if (!cm) @@ -95,11 +95,11 @@ } static char * -tparam1 (const char *string, char *outstring, int len, const char *up, - const char *left, int *argp) +tparam1 (CONST char *string, char *outstring, int len, CONST char *up, + CONST char *left, int *argp) { int c; - const char *p = string; + CONST char *p = string; char *op = outstring; char *outend; int outlen = 0;