* v850-dis.c (disassemble): Handle insertion of ',', '[' and
[deliverable/binutils-gdb.git] / readline / rldefs.h
index cdda2b82220a640ed1e7b424934bffea9673aff1..3b7a623090ecb74009300ff16d7db7e0875a72eb 100644 (file)
 #  endif
 #endif
 
+
 #define NEW_TTY_DRIVER
 #define HAVE_BSD_SIGNALS
 /* #define USE_XON_XOFF */
 
-#ifdef __MSDOS__
+#if defined(__MSDOS__) || defined(_WIN32)
+#define NO_SYS_FILE
+#define SIGALRM 1234
 #undef NEW_TTY_DRIVER
 #undef HAVE_BSD_SIGNALS
+#define MINIMAL
 #endif
 
 #if defined (__linux__)
 #  undef HAVE_BSD_SIGNALS
 #endif
 
+#define ScreenCols() 80
+#define ScreenRows() 24
+#define ScreenSetCursor() abort();
+#define ScreenGetCursor() abort();
+
 /* System V machines use termio. */
 #if !defined (_POSIX_VERSION)
-/* CYGNUS LOCAL accept __hpux as well as hpux for HP compiler in ANSI mode.  */
-#  if defined (USG) || defined (hpux) || defined (__hpux) || defined (Xenix) || defined (sgi) || defined (DGUX)
+/* CYGNUS LOCAL accept __hpux as well as hpux for HP compiler in ANSI mode.
+   Add __osf__ to list of machines to force use of termio.h */
+#  if defined (USG) || defined (hpux) || defined (__hpux) || defined (Xenix) || defined (sgi) || defined (DGUX) || defined (__osf__)
 #    undef NEW_TTY_DRIVER
 #    define TERMIO_TTY_DRIVER
 #    include <termio.h>
 #    if !defined (TCOON)
 #      define TCOON 1
 #    endif
-#  endif /* USG || hpux || Xenix || sgi || DUGX */
+#  endif /* USG || hpux || Xenix || sgi || DUGX || __osf__ */
 #endif /* !_POSIX_VERSION */
 
 /* Posix systems use termios and the Posix signal functions. */
 #endif /* !1 */
 
 #if defined (USG) && defined (TIOCGWINSZ) && !defined (Linux)
+#  if defined (_AIX)
+       /* AIX 4.x seems to reference struct uio within a prototype
+          in stream.h, but doesn't cause the uio include file to
+          be included.  */
+#    include <sys/uio.h>
+#  endif
 #  include <sys/stream.h>
 #  if defined (HAVE_SYS_PTEM_H)
 #    include <sys/ptem.h>
 #if defined (S_IFDIR) && !defined (S_ISDIR)
 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
 #endif
+/* Posix macro to check file in statbuf for file-ness.
+   This requires that <sys/stat.h> be included before this test. */
+#if defined (S_IFREG) && !defined (S_ISREG)
+#define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
+#endif
 
 #if !defined (strchr) && !defined (__STDC__)
 extern char *strchr (), *strrchr ();
@@ -164,6 +185,11 @@ extern char *strchr (), *strrchr ();
 /* If on, then readline handles signals in a way that doesn't screw. */
 #define HANDLE_SIGNALS
 
+#if defined(_WIN32) || defined(__MSDOS__)
+#undef HANDLE_SIGNALS
+#endif
+
+
 #if !defined (emacs_mode)
 #  define no_mode -1
 #  define vi_mode 0
@@ -233,5 +259,16 @@ extern char *strchr (), *strrchr ();
 #endif /* HAVE_BSD_SIGNALS */
 #endif /* HAVE_POSIX_SIGNALS */
 
+#if !defined (strchr)
+extern char *strchr ();
+#endif
+#if !defined (strrchr)
+extern char *strrchr ();
+#endif
+#ifdef __STDC__
+#include <stddef.h>
+extern size_t strlen (const char *s);
+#endif  /* __STDC__ */
+
 /*  End of signal handling definitions.  */
 #endif /* !_RLDEFS_H */
This page took 0.02444 seconds and 4 git commands to generate.