cvs: php4 /ext/readline readline.c

From: Date: Wed, 09 Oct 2002 18:59:15 +0000
Subject: cvs: php4 /ext/readline readline.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14752@lists.php.net to get a copy of this message
jan Wed Oct 9 14:59:15 2002 EDT Modified files: /php4/ext/readline readline.c Log: - fix build on FreeBSD, verified by thies. Index: php4/ext/readline/readline.c diff -u php4/ext/readline/readline.c:1.29 php4/ext/readline/readline.c:1.30 --- php4/ext/readline/readline.c:1.29 Thu Mar 21 20:10:30 2002 +++ php4/ext/readline/readline.c Wed Oct 9 14:59:15 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: readline.c,v 1.29 2002/03/22 01:10:30 hholzgra Exp $ */ +/* $Id: readline.c,v 1.30 2002/10/09 18:59:15 jan Exp $ */ /* {{{ includes & prototypes */ @@ -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;

« previous php.cvs (#14752) next »