felipe          Mon Jul 14 17:50:47 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/readline       readline.c 
  Log:
  - Added arginfo
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/readline/readline.c?r1=1.42.2.3.2.3.2.3&r2=1.42.2.3.2.3.2.4&diff_format=u
Index: php-src/ext/readline/readline.c
diff -u php-src/ext/readline/readline.c:1.42.2.3.2.3.2.3 
php-src/ext/readline/readline.c:1.42.2.3.2.3.2.4
--- php-src/ext/readline/readline.c:1.42.2.3.2.3.2.3    Wed Jun 25 15:06:58 2008
+++ php-src/ext/readline/readline.c     Mon Jul 14 17:50:47 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: readline.c,v 1.42.2.3.2.3.2.3 2008/06/25 15:06:58 felipe Exp $ */
+/* $Id: readline.c,v 1.42.2.3.2.3.2.4 2008/07/14 17:50:47 felipe Exp $ */
 
 /* {{{ includes & prototypes */
 
@@ -67,25 +67,92 @@
 PHP_RSHUTDOWN_FUNCTION(readline);
 
 /* }}} */
-/* {{{ module stuff */
 
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readline, 0, 0, 0)
+       ZEND_ARG_INFO(0, prompt)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readline_info, 0, 0, 0)
+       ZEND_ARG_INFO(0, varname)
+       ZEND_ARG_INFO(0, newvalue)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readline_add_history, 0, 0, 1)
+       ZEND_ARG_INFO(0, prompt)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_readline_clear_history, 0)
+ZEND_END_ARG_INFO()
+
+#ifndef HAVE_LIBEDIT
+static
+ZEND_BEGIN_ARG_INFO(arginfo_readline_list_history, 0)
+ZEND_END_ARG_INFO()
+#endif
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readline_read_history, 0, 0, 0)
+       ZEND_ARG_INFO(0, filename)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readline_write_history, 0, 0, 0)
+       ZEND_ARG_INFO(0, filename)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readline_completion_function, 0, 0, 1)
+       ZEND_ARG_INFO(0, funcname)
+ZEND_END_ARG_INFO()
+
+#if HAVE_RL_CALLBACK_READ_CHAR
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_readline_callback_handler_install, 0, 0, 2)
+       ZEND_ARG_INFO(0, prompt)
+       ZEND_ARG_INFO(0, callback)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_readline_callback_read_char, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_readline_callback_handler_remove, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_readline_redisplay, 0)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO(arginfo_readline_on_new_line, 0)
+ZEND_END_ARG_INFO()
+#endif
+/* }}} */
+
+/* {{{ module stuff */
 static const zend_function_entry php_readline_functions[] = {
-       PHP_FE(readline,                                NULL)
-       PHP_FE(readline_info,               NULL)
-       PHP_FE(readline_add_history,            NULL)
-       PHP_FE(readline_clear_history,          NULL)
+       PHP_FE(readline,                                arginfo_readline)
+       PHP_FE(readline_info,               arginfo_readline_info)
+       PHP_FE(readline_add_history,            arginfo_readline_add_history)
+       PHP_FE(readline_clear_history,          arginfo_readline_clear_history)
 #ifndef HAVE_LIBEDIT
-       PHP_FE(readline_list_history,           NULL)
+       PHP_FE(readline_list_history,           arginfo_readline_list_history)
 #endif
-       PHP_FE(readline_read_history,           NULL)
-       PHP_FE(readline_write_history,          NULL)
-       PHP_FE(readline_completion_function,NULL)
+       PHP_FE(readline_read_history,           arginfo_readline_read_history)
+       PHP_FE(readline_write_history,          arginfo_readline_write_history)
+       
PHP_FE(readline_completion_function,arginfo_readline_completion_function)
 #if HAVE_RL_CALLBACK_READ_CHAR
-       PHP_FE(readline_callback_handler_install, NULL)
-       PHP_FE(readline_callback_read_char,                     NULL)
-       PHP_FE(readline_callback_handler_remove,        NULL)
-       PHP_FE(readline_redisplay, NULL)
-       PHP_FE(readline_on_new_line, NULL)
+       PHP_FE(readline_callback_handler_install, 
arginfo_readline_callback_handler_install)
+       PHP_FE(readline_callback_read_char,                     
arginfo_readline_callback_read_char)
+       PHP_FE(readline_callback_handler_remove,        
arginfo_readline_callback_handler_remove)
+       PHP_FE(readline_redisplay, arginfo_readline_redisplay)
+       PHP_FE(readline_on_new_line, arginfo_readline_on_new_line)
 #endif
        {NULL, NULL, NULL}
 };



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to