ext/readline
| From: | Jan Lehnardt | Date: | Tue, 08 Oct 2002 09:37:17 +0000 |
| Subject: | ext/readline | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-89210@lists.php.net to get a copy of this message | ||
Hey list, thies,
the patch below fixes ext/readline on my FreeBSD system, can you please have a
look at it and veri- or falsify it?
Thank you!
===================================================================
RCS file: /repository/php4/ext/readline/readline.c,v
retrieving revision 1.29
diff -u -r1.29 readline.c
--- ext/readline/readline.c 22 Mar 2002 01:10:30 -0000 1.29
+++ ext/readline/readline.c 8 Oct 2002 09:32:14 -0000
@@ -38,7 +38,9 @@
PHP_FUNCTION(readline_add_history);
PHP_FUNCTION(readline_info);
PHP_FUNCTION(readline_clear_history);
+#ifndef HAVE_LIBEDIT
PHP_FUNCTION(readline_list_history);
+#endif
PHP_FUNCTION(readline_read_history);
PHP_FUNCTION(readline_write_history);
PHP_FUNCTION(readline_completion_function);
@@ -57,7 +59,7 @@
PHP_FE(readline_info, NULL)
PHP_FE(readline_add_history, NULL)
PHP_FE(readline_clear_history, NULL)
-#ifdef HAVE_LIBREADLINE
+#ifndef HAVE_LIBEDIT
PHP_FE(readline_list_history, NULL)
#endif
PHP_FE(readline_read_history, NULL)
@@ -256,7 +258,7 @@
/* }}} */
/* {{{ proto array readline_list_history(void)
Lists the history */
-#ifdef HAVE_LIBREADLINE
+#ifndef HAVE_LIBEDIT
PHP_FUNCTION(readline_list_history)
{
HIST_ENTRY **history;
Jan
--
Q: Thank Jan? A: http://geschenke.an.dasmoped.net/
Got an old and spare laptop? Please send me a mail.
Key 7BCC EB86 8313 DDA9 25DF
Fingerprint 1805 ECA5 BCB7 BB96 56B0