summaryrefslogtreecommitdiff
path: root/src/tparam.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-19 15:46:50 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-19 15:46:50 -0700
commitaf8a867c625d0ba45177795dea995a842b22e5f6 (patch)
tree618a22c5d2bc5e18fafccb5328f08b328fea0f21 /src/tparam.h
parent001a7ab41b79b45c0c6a1b5b90fe4ed9bbfe4e14 (diff)
downloademacs-af8a867c625d0ba45177795dea995a842b22e5f6.tar.gz
emacs-af8a867c625d0ba45177795dea995a842b22e5f6.tar.bz2
emacs-af8a867c625d0ba45177795dea995a842b22e5f6.zip
Make tparam.h and terminfo.c consistent.
* cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include tparam.h instead, since it declares them. * cm.h (PC): Remove extern decl; tparam.h now does this. * deps.mk (cm.o, terminfo.o): Depend on tparam.h. * terminfo.c: Include tparam.h, to check interfaces. (tparm): Make 1st arg a const pointer in decl. Put it at top level. (tparam): Adjust signature to match interface in tparam.h; this removes some undefined behavior. Check that outstring and len are zero, which they always are with Emacs. * tparam.h (PC, BC, UP): New extern decls.
Diffstat (limited to 'src/tparam.h')
-rw-r--r--src/tparam.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tparam.h b/src/tparam.h
index 3cd3e6053cc..dc4cdfaa28c 100644
--- a/src/tparam.h
+++ b/src/tparam.h
@@ -29,3 +29,7 @@ char *tgetstr (const char *, char **);
char *tgoto (const char *, int, int);
char *tparam (const char *, char *, int, int, int, int, int);
+
+extern char PC;
+extern char *BC;
+extern char *UP;