cvs: /php4/ext/readline readline.c
| From: | Egon Schmid | Date: | Thu, 24 Feb 2000 17:23:35 +0000 |
| Subject: | cvs: /php4/ext/readline readline.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10883@lists.php.net to get a copy of this message | ||
eschmid Thu Feb 24 09:23:35 2000 EDT
Modified files:
/php4/ext/readline readline.c
Log:
Thies I will give up until tomorrow.
Index: php4/ext/readline/readline.c
diff -u php4/ext/readline/readline.c:1.8 php4/ext/readline/readline.c:1.9
--- php4/ext/readline/readline.c:1.8 Sat Feb 19 15:41:19 2000
+++ php4/ext/readline/readline.c Thu Feb 24 09:23:04 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: readline.c,v 1.8 2000/02/19 23:41:19 zeev Exp $ */
+/* $Id: readline.c,v 1.9 2000/02/24 17:23:04 eschmid Exp $ */
/* {{{ includes & prototypes */
@@ -84,8 +84,8 @@
}
/* }}} */
-/* {{{ proto string readline([string prompt]) */
-
+/* {{{ proto string readline([string prompt])
+ Reads a line */
PHP_FUNCTION(readline)
{
char *result;
@@ -108,8 +108,8 @@
}
/* }}} */
-/* {{{ proto array|long|string readline_info([string varname][, string newvalue ])
- gets/sets various internal readline variables. */
+/* {{{ proto mixed readline_info([string varname] [, string newvalue])
+ Gets/sets various internal readline variables. */
#define SAFE_STRING(s) ((s)?(s):"")
@@ -199,8 +199,8 @@
}
/* }}} */
-/* {{{ proto void readline_add_history([string prompt]) */
-
+/* {{{ proto void readline_add_history([string prompt])
+ Adds a line to the history */
PHP_FUNCTION(readline_add_history)
{
pval **arg;
@@ -217,8 +217,8 @@
}
/* }}} */
-/* {{{ proto void readline_clear_history() */
-
+/* {{{ proto void readline_clear_history(void)
+ Clears the history */
PHP_FUNCTION(readline_clear_history)
{
int ac = ARG_COUNT(ht);
@@ -233,8 +233,8 @@
}
/* }}} */
-/* {{{ proto array readline_list_history() */
-
+/* {{{ proto array readline_list_history(void)
+ Lists the history */
PHP_FUNCTION(readline_list_history)
{
HIST_ENTRY **history;
@@ -257,8 +257,8 @@
}
/* }}} */
-/* {{{ proto int readline_read_history([string filename][,int from][,int to]) */
-
+/* {{{ proto int readline_read_history([string filename] [, int from] [,int to])
+ Reads the history */
PHP_FUNCTION(readline_read_history)
{
pval **arg;
@@ -284,8 +284,8 @@
}
/* }}} */
-/* {{{ proto int readline_write_history([string filename]) */
-
+/* {{{ proto int readline_write_history([string filename])
+ Writes the history */
PHP_FUNCTION(readline_write_history)
{
pval **arg;
@@ -309,9 +309,9 @@
}
/* }}} */
-/* {{{ proto void readline_completion_function(string funcname) */
-
-char *test[] = { "bleibt", "da", "helfen", "keine",
"pillen", "und" , "heissen", "umsclaege","hallo",
"pallo", "thies", "ist", "doof", "tubu",
"tata",0 };
+/* {{{ proto void readline_completion_function(string funcname)
+ Readline completion function? */
+char *test[] = { "bleibt", "da", "helfen", "keine",
"pillen", "und" , "heissen", "umschlaege","hallo",
"pallo", "egon", "thies", "ist", "doof",
"tubu", "tata", 0 };
static char *_readline_command_generator(char *text,int state)
{