summaryrefslogtreecommitdiff
path: root/readline/ansi_stdlib.h
diff options
context:
space:
mode:
authorunknown <vva@genie.(none)>2002-11-19 18:26:53 +0400
committerunknown <vva@genie.(none)>2002-11-19 18:26:53 +0400
commit953f6c51fed3478cc3905d2ce15728e5c3e7f00c (patch)
tree6f25883717e7c6cfc40b292a86148e469567534c /readline/ansi_stdlib.h
parent0fb3b8d9abc3eb2e3072c2f8681099e7db0a256e (diff)
downloadmariadb-git-953f6c51fed3478cc3905d2ce15728e5c3e7f00c.tar.gz
upgrade readline to version 4.3
client/completion_hash.cc: correct headers of functions for readline 4.3 (add const modifier to char*) client/completion_hash.h: correct headers of functions for readline 4.3 (add const modifier to char*) client/mysql.cc: correct functions for readline 4.3
Diffstat (limited to 'readline/ansi_stdlib.h')
-rw-r--r--readline/ansi_stdlib.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/readline/ansi_stdlib.h b/readline/ansi_stdlib.h
index 52339da5d33..db13cd234bd 100644
--- a/readline/ansi_stdlib.h
+++ b/readline/ansi_stdlib.h
@@ -18,18 +18,31 @@
You should have received a copy of the GNU General Public License along
with Bash; see the file COPYING. If not, write to the Free Software
- Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+ Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#if !defined (_STDLIB_H_)
#define _STDLIB_H_ 1
/* String conversion functions. */
extern int atoi ();
-extern long int atol ();
+
+extern double atof ();
+extern double strtod ();
/* Memory allocation functions. */
-extern char *malloc ();
-extern char *realloc ();
+/* Generic pointer type. */
+#ifndef PTR_T
+
+#if defined (__STDC__)
+# define PTR_T void *
+#else
+# define PTR_T char *
+#endif
+
+#endif /* PTR_T */
+
+extern PTR_T malloc ();
+extern PTR_T realloc ();
extern void free ();
/* Other miscellaneous functions. */