aboutsummaryrefslogtreecommitdiff
path: root/readline/chardefs.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1994-02-15 22:31:19 +0000
committerPer Bothner <per@bothner.com>1994-02-15 22:31:19 +0000
commitf550cec5b1461950b9f3bea04cb89263143171c5 (patch)
tree62fc7aee62d2c4edb136845f1ad79d07973fcef4 /readline/chardefs.h
parent848743c1b688d0764c4293e635318b9d052040b5 (diff)
downloadgdb-f550cec5b1461950b9f3bea04cb89263143171c5.zip
gdb-f550cec5b1461950b9f3bea04cb89263143171c5.tar.gz
gdb-f550cec5b1461950b9f3bea04cb89263143171c5.tar.bz2
* readline.c (_rl_output_character_function), display.c:
Return int, not void, to conform with the expected arg of tputs. * readline.c (init_terminal_io): tgetflag only takes 1 arg. * readline.c (_rl_savestring): New function. * chardefs.h: To avoid conflicts and/or warnings, define savestring as a macro wrapper for _rl_savestring. * display.c (extern term_xn): It's an int flag, not a string. * charsdefs.h, rldefs.h: Remove HAVE_STRING_H-related junk.
Diffstat (limited to 'readline/chardefs.h')
-rw-r--r--readline/chardefs.h32
1 files changed, 2 insertions, 30 deletions
diff --git a/readline/chardefs.h b/readline/chardefs.h
index f7df250..06dbd9f 100644
--- a/readline/chardefs.h
+++ b/readline/chardefs.h
@@ -4,37 +4,9 @@
#include <ctype.h>
-#if 0
-/* Getting the correct definition of HAVE_STRING_H is harder than just
- declaring them ourselves. CYGNUS LOCAL. */
-#if defined (HAVE_STRING_H)
-# include <string.h>
-#else
-# include <strings.h>
-#endif /* HAVE_STRING_H */
-#else /* not 0 */
-/* We don't worry about declaring functions where we don't use the return
- value (e.g. strcpy) or which return int. */
-extern char *strrchr ();
-#endif /* not 0 */
-
#ifndef savestring
-#if 0
-
-/* CYGNUS LOCAL--this declaration loses if xmalloc has already been
- declared as void *xmalloc (), as in GDB. The whole concept of
- readline using xmalloc rather than just returning NULL when it runs
- out of memory is questionable, but if we do want xmalloc we need a
- better way to declare it (e.g. the client declares it, or the client
- calls a rl_register_xmalloc function analagous to the way signal()
- works. */
-
-extern char *xmalloc ();
-#endif
-# ifndef strcpy
-extern char *strcpy ();
-# endif
-#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
+#define savestring(X) _rl_savestring(X)
+extern char * _rl_savestring ();
#endif
#ifndef whitespace