Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ba5971b3
Commit
ba5971b3
authored
Jul 28, 1997
by
Richard M. Stallman
Browse files
[HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.
parent
4ee1cf9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
src/cm.h
src/cm.h
+4
-0
src/sysdep.c
src/sysdep.c
+4
-0
src/terminfo.c
src/terminfo.c
+4
-0
No files found.
src/cm.h
View file @
ba5971b3
...
...
@@ -101,6 +101,9 @@ struct cm
extern
struct
cm
Wcm
;
/* Terminal capabilities */
extern
char
PC
;
/* Pad character */
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
extern
short
ospeed
;
#else
#if defined (HAVE_TERMIOS_H) && defined (LINUX)
#include <termios.h>
/* HJL's version of libc is said to need this on the Alpha.
...
...
@@ -109,6 +112,7 @@ extern speed_t ospeed;
#else
extern
short
ospeed
;
/* Output speed (from sg_ospeed) */
#endif
#endif
/* Shorthand */
#ifndef NoCMShortHand
...
...
src/sysdep.c
View file @
ba5971b3
...
...
@@ -226,6 +226,9 @@ static int baud_convert[] =
};
#endif
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
extern
short
ospeed
;
#else
#if defined (HAVE_TERMIOS_H) && defined (LINUX)
#include <termios.h>
/* HJL's version of libc is said to need this on the Alpha.
...
...
@@ -234,6 +237,7 @@ extern speed_t ospeed;
#else
extern
short
ospeed
;
#endif
#endif
/* The file descriptor for Emacs's input terminal.
Under Unix, this is normally zero except when using X;
...
...
src/terminfo.c
View file @
ba5971b3
...
...
@@ -26,6 +26,9 @@ Boston, MA 02111-1307, USA. */
char
*
UP
,
*
BC
,
PC
;
#if defined (HAVE_LIBNCURSES) && ! defined (NCURSES_OSPEED_T)
short
ospeed
;
#else
#if defined (HAVE_TERMIOS_H) && defined (LINUX)
#include <termios.h>
/* HJL's version of libc is said to need this on the Alpha.
...
...
@@ -34,6 +37,7 @@ speed_t ospeed;
#else
short
ospeed
;
#endif
#endif
static
buffer
[
512
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment