* acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
[deliverable/binutils-gdb.git] / readline / chardefs.h
index 241567ea3fd1307e357ed9a0ecc2e77814f02b60..06dbd9f477fd3ba3b1e61f35d50bd85ef0cbc3dc 100644 (file)
@@ -4,29 +4,9 @@
 
 #include <ctype.h>
 
-#if defined (HAVE_STRING_H)
-#  include <string.h>
-#else
-#  include <strings.h>
-#endif /* HAVE_STRING_H */
-
 #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
This page took 0.024045 seconds and 4 git commands to generate.