diff options
| author | Dan Nicolaescu | 2010-10-10 08:49:31 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-10-10 08:49:31 -0700 |
| commit | edfd76ce9129a09cc5c338254127514fd0aea4be (patch) | |
| tree | 6d0f26a0f5e8b81f7f35565ed06b6483ce0663e7 /src/termcap.c | |
| parent | a4daeecfef2bf5822f2b514b2878391b90edf741 (diff) | |
| download | emacs-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.c | 25 |
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 | ||
| 266 | short ospeed; | ||
| 267 | /* If OSPEED is 0, we use this as the actual baud rate. */ | ||
| 268 | int tputs_baud_rate; | ||
| 269 | #endif | ||
| 270 | |||
| 271 | char PC; | 265 | char PC; |
| 272 | 266 | ||
| 273 | #ifndef emacs | ||
| 274 | /* Actual baud rate if positive; | ||
| 275 | - baud rate / 100 if negative. */ | ||
| 276 | |||
| 277 | static 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 | |||
| 285 | void | 267 | void |
| 286 | tputs (register char *str, int nlines, register int (*outfun) (/* ??? */)) | 268 | tputs (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; |