Make tparam.h and terminfo.c consistent.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 22:46:50 +0000 (15:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Mar 2011 22:46:50 +0000 (15:46 -0700)
commitaf8a867c625d0ba45177795dea995a842b22e5f6
tree618a22c5d2bc5e18fafccb5328f08b328fea0f21
parent001a7ab41b79b45c0c6a1b5b90fe4ed9bbfe4e14
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.
src/ChangeLog
src/cm.c
src/cm.h
src/deps.mk
src/terminfo.c
src/tparam.h