summaryrefslogtreecommitdiff
path: root/src/termcap.c
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2010-10-10 08:49:31 -0700
committerDan Nicolaescu <dann@ics.uci.edu>2010-10-10 08:49:31 -0700
commitedfd76ce9129a09cc5c338254127514fd0aea4be (patch)
tree6d0f26a0f5e8b81f7f35565ed06b6483ce0663e7 /src/termcap.c
parenta4daeecfef2bf5822f2b514b2878391b90edf741 (diff)
downloademacs-edfd76ce9129a09cc5c338254127514fd0aea4be.tar.gz
Remove #ifdef emacs / #ifndef emacs code, unused.
* src/vm-limit.c: * src/unexhp9k800.c: * src/unexelf.c: * src/unexaix.c: * src/termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
Diffstat (limited to 'src/termcap.c')
-rw-r--r--src/termcap.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/termcap.c b/src/termcap.c
index 03476b15761..4ad0cee6264 100644
--- a/src/termcap.c
+++ b/src/termcap.c
@@ -262,45 +262,20 @@ tgetst1 (char *ptr, char **area)
/* Outputting a string with padding. */
-#ifndef emacs
-short ospeed;
-/* If OSPEED is 0, we use this as the actual baud rate. */
-int tputs_baud_rate;
-#endif
-
char PC;
-#ifndef emacs
-/* Actual baud rate if positive;
- - baud rate / 100 if negative. */
-
-static const int speeds[] =
- {
- 0, 50, 75, 110, 135, 150, -2, -3, -6, -12,
- -18, -24, -48, -96, -192, -288, -384, -576, -1152
- };
-
-#endif /* not emacs */
-
void
tputs (register char *str, int nlines, register int (*outfun) (/* ??? */))
{
register int padcount = 0;
register int speed;
-#ifdef emacs
extern EMACS_INT baud_rate;
speed = baud_rate;
/* For quite high speeds, convert to the smaller
units to avoid overflow. */
if (speed > 10000)
speed = - speed / 100;
-#else
- if (ospeed == 0)
- speed = tputs_baud_rate;
- else
- speed = speeds[ospeed];
-#endif
if (!str)
return;