projects
/
chise
/
xemacs-chise.git.1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XEmacs 21.2.27 "Hera".
[chise/xemacs-chise.git.1]
/
src
/
termcap.c
diff --git
a/src/termcap.c
b/src/termcap.c
index
6beecc5
..
1c5529e
100644
(file)
--- a/
src/termcap.c
+++ b/
src/termcap.c
@@
-26,18
+26,9
@@
Boston, MA 02111-1307, USA. */
#include "lisp.h" /* For encapsulated open, close, read */
#include "device.h" /* For DEVICE_BAUD_RATE */
#else /* not emacs */
#include "lisp.h" /* For encapsulated open, close, read */
#include "device.h" /* For DEVICE_BAUD_RATE */
#else /* not emacs */
-#if defined(USG) || defined(STDC_HEADERS)
-#define memcpy(d, s, n) memcpy ((d), (s), (n))
-#endif
-#ifdef STDC_HEADERS
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#else
-char *getenv ();
-char *malloc ();
-char *realloc ();
-#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@
-337,8
+328,6
@@
static int name_match ();
If BP is zero, space is dynamically allocated. */
If BP is zero, space is dynamically allocated. */
-extern char *getenv ();
-
int
tgetent (bp, name)
char *bp;
int
tgetent (bp, name)
char *bp;
@@
-365,7
+354,7
@@
tgetent (bp, name)
it is the entry itself, but only if
the name the caller requested matches the TERM variable. */
it is the entry itself, but only if
the name the caller requested matches the TERM variable. */
- if (tem && !IS_DIRECTORY_SEP (*tem) && !strcmp (name, (char *) getenv ("TERM")))
+ if (tem && !IS_DIRECTORY_SEP (*tem) && !strcmp (name, getenv ("TERM")))
{
indirect = tgetst1 (find_capability (tem, "tc"), 0);
if (!indirect)
{
indirect = tgetst1 (find_capability (tem, "tc"), 0);
if (!indirect)