diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-29 06:38:40 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-29 06:38:40 +0000 |
commit | 81fe123040b53490b239b3d2abc8cc93d6d462ae (patch) | |
tree | c3f501afd6305ff9415e5a9ab5e371d7fc2db101 /shell/cmdedit.c | |
parent | 9cdef5d9286839a0b787c25f41633508f8623765 (diff) | |
download | busybox-w32-81fe123040b53490b239b3d2abc8cc93d6d462ae.tar.gz busybox-w32-81fe123040b53490b239b3d2abc8cc93d6d462ae.tar.bz2 busybox-w32-81fe123040b53490b239b3d2abc8cc93d6d462ae.zip |
Vladimir N. Oleynik writes:
Last patch have synced form Manuel Nova III xxreadtoken() function,
corrected (C) form dash debian/copyright, removed my small mistake
with IFS_BROKEN (thanks by Herbert), and synced cmdedit.c from
current CVS (removed libc5 support, your email correction, my (C) year
corertion).
Diffstat (limited to 'shell/cmdedit.c')
-rw-r--r-- | shell/cmdedit.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 717067267..0ab195803 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -2,14 +2,14 @@ | |||
2 | /* | 2 | /* |
3 | * Termios command line History and Editting. | 3 | * Termios command line History and Editting. |
4 | * | 4 | * |
5 | * Copyright (c) 1986-2001 may safely be consumed by a BSD or GPL license. | 5 | * Copyright (c) 1986-2003 may safely be consumed by a BSD or GPL license. |
6 | * Written by: Vladimir Oleynik <dzo@simtreas.ru> | 6 | * Written by: Vladimir Oleynik <dzo@simtreas.ru> |
7 | * | 7 | * |
8 | * Used ideas: | 8 | * Used ideas: |
9 | * Adam Rogoyski <rogoyski@cs.utexas.edu> | 9 | * Adam Rogoyski <rogoyski@cs.utexas.edu> |
10 | * Dave Cinege <dcinege@psychosis.com> | 10 | * Dave Cinege <dcinege@psychosis.com> |
11 | * Jakub Jelinek (c) 1995 | 11 | * Jakub Jelinek (c) 1995 |
12 | * Erik Andersen <andersee@debian.org> (Majorly adjusted for busybox) | 12 | * Erik Andersen <andersen@codepoet.org> (Majorly adjusted for busybox) |
13 | * | 13 | * |
14 | * This code is 'as is' with no warranty. | 14 | * This code is 'as is' with no warranty. |
15 | * | 15 | * |
@@ -163,11 +163,6 @@ static int my_gid; | |||
163 | 163 | ||
164 | #endif /* CONFIG_FEATURE_COMMAND_TAB_COMPLETION */ | 164 | #endif /* CONFIG_FEATURE_COMMAND_TAB_COMPLETION */ |
165 | 165 | ||
166 | /* It seems that libc5 doesn't know what a sighandler_t is... */ | ||
167 | #if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) | ||
168 | typedef void (*sighandler_t) (int); | ||
169 | #endif | ||
170 | |||
171 | static void cmdedit_setwidth(int w, int redraw_flg); | 166 | static void cmdedit_setwidth(int w, int redraw_flg); |
172 | 167 | ||
173 | static void win_changed(int nsig) | 168 | static void win_changed(int nsig) |
@@ -264,6 +259,7 @@ static inline void out1str(const char *s) | |||
264 | if ( s ) | 259 | if ( s ) |
265 | fputs(s, stdout); | 260 | fputs(s, stdout); |
266 | } | 261 | } |
262 | |||
267 | static inline void beep(void) | 263 | static inline void beep(void) |
268 | { | 264 | { |
269 | putchar('\007'); | 265 | putchar('\007'); |