diff options
author | John Gilmore <gnu@cygnus> | 1991-11-09 11:24:36 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-11-09 11:24:36 +0000 |
commit | 5f4a039a2195bbfcf3ae1f9af8069c640d6c8a88 (patch) | |
tree | e6aec791c16e0653d2081fa33369872d4f5fdd7d /readline/readline.c | |
parent | 51493cdb63a83fdd3f019f5c6f098e41d8fe5f24 (diff) | |
download | gdb-5f4a039a2195bbfcf3ae1f9af8069c640d6c8a88.zip gdb-5f4a039a2195bbfcf3ae1f9af8069c640d6c8a88.tar.gz gdb-5f4a039a2195bbfcf3ae1f9af8069c640d6c8a88.tar.bz2 |
* configure.in: Make a link for sysdep.h. Specify commontargets.
* sysdep-norm.h: The usual alloca declarations.
* sysdep-aix.h: What AIX 3.1 on RS/6000 needs for alloca.
* history.c, readline.c: Use sysdep.h.
Diffstat (limited to 'readline/readline.c')
-rw-r--r-- | readline/readline.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/readline/readline.c b/readline/readline.c index b05a7c9..5238bcf 100644 --- a/readline/readline.c +++ b/readline/readline.c @@ -36,13 +36,7 @@ static char *xmalloc (), *xrealloc (); #include <sys/file.h> #include <signal.h> -#ifdef __GNUC__ -#define alloca __builtin_alloca -#else -#if defined (sparc) && defined (sun) -#include <alloca.h> -#endif -#endif +#include "sysdep.h" #define NEW_TTY_DRIVER #if defined (SYSV) || defined (hpux) || defined (Xenix) @@ -1503,7 +1497,7 @@ update_line (old, new, current_line) wsatend = 1; /* flag for trailing whitespace */ ols = oe - 1; /* find last same */ nls = ne - 1; - while ((*ols == *nls) && (ols > ofd) && (nls > nfd)) + while ((ols > ofd) && (nls > nfd) && (*ols == *nls)) { if (*ols != ' ') wsatend = 0; @@ -1839,8 +1833,7 @@ init_terminal_io (terminal_name) return; } - BC = tgetstr ("pc", &buffer); - PC = buffer ? *buffer : 0; + PC = tgetstr ("pc", &buffer)? *buffer : 0; term_backspace = tgetstr ("le", &buffer); |