aboutsummaryrefslogtreecommitdiffstats
path: root/src/termcap.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-10-10 08:49:31 -0700
committerDan Nicolaescu2010-10-10 08:49:31 -0700
commitedfd76ce9129a09cc5c338254127514fd0aea4be (patch)
tree6d0f26a0f5e8b81f7f35565ed06b6483ce0663e7 /src/termcap.c
parenta4daeecfef2bf5822f2b514b2878391b90edf741 (diff)
downloademacs-edfd76ce9129a09cc5c338254127514fd0aea4be.tar.gz
emacs-edfd76ce9129a09cc5c338254127514fd0aea4be.zip
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)
262 262
263/* Outputting a string with padding. */ 263/* Outputting a string with padding. */
264 264
265#ifndef emacs
266short ospeed;
267/* If OSPEED is 0, we use this as the actual baud rate. */
268int tputs_baud_rate;
269#endif
270
271char PC; 265char PC;
272 266
273#ifndef emacs
274/* Actual baud rate if positive;
275 - baud rate / 100 if negative. */
276
277static const int speeds[] =
278 {
279 0, 50, 75, 110, 135, 150, -2, -3, -6, -12,
280 -18, -24, -48, -96, -192, -288, -384, -576, -1152
281 };
282
283#endif /* not emacs */
284
285void 267void
286tputs (register char *str, int nlines, register int (*outfun) (/* ??? */)) 268tputs (register char *str, int nlines, register int (*outfun) (/* ??? */))
287{ 269{
288 register int padcount = 0; 270 register int padcount = 0;
289 register int speed; 271 register int speed;
290 272
291#ifdef emacs
292 extern EMACS_INT baud_rate; 273 extern EMACS_INT baud_rate;
293 speed = baud_rate; 274 speed = baud_rate;
294 /* For quite high speeds, convert to the smaller 275 /* For quite high speeds, convert to the smaller
295 units to avoid overflow. */ 276 units to avoid overflow. */
296 if (speed > 10000) 277 if (speed > 10000)
297 speed = - speed / 100; 278 speed = - speed / 100;
298#else
299 if (ospeed == 0)
300 speed = tputs_baud_rate;
301 else
302 speed = speeds[ospeed];
303#endif
304 279
305 if (!str) 280 if (!str)
306 return; 281 return;