comparison src/sysdep.c @ 110902:8aed62727bef

Small sysdep.c cleanups. * src/sysdep.c (LPASS8): Remove, unused. (emacs_ospeed): Change from being a global to a local in the only user: init_baud_rate.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 10 Oct 2010 06:44:22 -0700
parents 72f46bad930c
children a702e5199b83
comparison
equal deleted inserted replaced
110901:00157498ec82 110902:8aed62727bef
121 long modtime; 121 long modtime;
122 }; 122 };
123 #endif 123 #endif
124 #endif 124 #endif
125 125
126 /* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits. */
127 #ifndef LPASS8
128 #define LPASS8 0
129 #endif
130
131 static const int baud_convert[] = 126 static const int baud_convert[] =
132 { 127 {
133 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200, 128 0, 50, 75, 110, 135, 150, 200, 300, 600, 1200,
134 1800, 2400, 4800, 9600, 19200, 38400 129 1800, 2400, 4800, 9600, 19200, 38400
135 }; 130 };
136
137 int emacs_ospeed;
138 131
139 void croak (char *) NO_RETURN; 132 void croak (char *) NO_RETURN;
140 133
141 /* Temporary used by `sigblock' when defined in terms of signprocmask. */ 134 /* Temporary used by `sigblock' when defined in terms of signprocmask. */
142 135
273 #endif /* SIGTSTP */ 266 #endif /* SIGTSTP */
274 267
275 void 268 void
276 init_baud_rate (int fd) 269 init_baud_rate (int fd)
277 { 270 {
271 int emacs_ospeed;
272
278 if (noninteractive) 273 if (noninteractive)
279 emacs_ospeed = 0; 274 emacs_ospeed = 0;
280 else 275 else
281 { 276 {
282 #ifdef DOS_NT 277 #ifdef DOS_NT