summaryrefslogtreecommitdiff
path: root/ext/readline/readline.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>1999-10-14 16:53:51 +0000
committerThies C. Arntzen <thies@php.net>1999-10-14 16:53:51 +0000
commit185d90fe22ccaec0cf5f35b686cd13633b23c0d6 (patch)
tree903ef00b1f8b7ea643310b3f846712479d06d091 /ext/readline/readline.c
parentead9008644c966fcd0a4d9a02033db2b163cf9f7 (diff)
downloadphp-git-185d90fe22ccaec0cf5f35b686cd13633b23c0d6.tar.gz
configure works for me (RH 6.1)
@- Added readline support. Works *only* in standalone mode! (Thies)
Diffstat (limited to 'ext/readline/readline.c')
-rw-r--r--ext/readline/readline.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 5f504a64e6..0fae8d1b31 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -18,14 +18,16 @@
/* $Id$ */
+/* {{{ includes & prototypes */
+
#include "php.h"
+#include "php_readline.h"
#if HAVE_LIBREADLINE
#include <readline/readline.h>
#include <readline/history.h>
-
PHP_FUNCTION(readline);
PHP_FUNCTION(readline_version);
@@ -36,6 +38,9 @@ PHP_FUNCTION(readline_write_history);
PHP_MINIT_FUNCTION(readline);
+/* }}} */
+/* {{{ module stuff */
+
static zend_function_entry php_readline_functions[] = {
PHP_FE(readline, NULL)
PHP_FE(readline_version, NULL)
@@ -46,7 +51,7 @@ static zend_function_entry php_readline_functions[] = {
{NULL, NULL, NULL}
};
-zend_module_entry readline_module_entry = {
+zend_module_entry readline_module_entry = {
"PHP-Readline",
php_readline_functions,
PHP_MINIT(readline),
@@ -62,6 +67,7 @@ PHP_MINIT_FUNCTION(readline)
return SUCCESS;
}
+/* }}} */
/* {{{ proto string readline([string prompt]) */
PHP_FUNCTION(readline)