cvs: php4 /ext/ncurses ncurses.c ncurses_fe.c php_ncurses.h php_ncurses_fe.h
| From: | Hartmut Holzgraefe | Date: | Sat, 15 Dec 2001 14:20:41 +0000 |
| Subject: | cvs: php4 /ext/ncurses ncurses.c ncurses_fe.c php_ncurses.h php_ncurses_fe.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8653@lists.php.net to get a copy of this message | ||
hholzgra Sat Dec 15 09:20:41 2001 EDT
Modified files:
/php4/ext/ncurses ncurses.c ncurses_fe.c php_ncurses.h
php_ncurses_fe.h
Log:
cleanup
Index: php4/ext/ncurses/ncurses.c
diff -u php4/ext/ncurses/ncurses.c:1.11 php4/ext/ncurses/ncurses.c:1.12
--- php4/ext/ncurses/ncurses.c:1.11 Tue Dec 11 10:29:57 2001
+++ php4/ext/ncurses/ncurses.c Sat Dec 15 09:20:41 2001
@@ -146,30 +146,6 @@
so that your module can be compiled into PHP, it exists only for testing
purposes. */
-/* Every user-visible function in PHP should document itself in the source */
-/* {{{ proto string confirm_ncurses_compiled(string arg)
- Return a string to confirm that the module is compiled in */
-PHP_FUNCTION(confirm_ncurses_compiled)
-{
- zval **arg;
- int len;
- char string[256];
-
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
- WRONG_PARAM_COUNT;
- }
-
- convert_to_string_ex(arg);
-
- len = sprintf(string, "Congratulations! You have successfully modified
ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "ncurses",
Z_STRVAL_PP(arg));
- RETURN_STRINGL(string, len, 1);
-}
-/* }}} */
-/* The previous line is meant for vim and emacs, so it can correctly fold and
- unfold functions in source code. See the corresponding marks just before
- function definition, where the functions purpose is also documented. Please
- follow this convention for the convenience of others editing your code.
-*/
/*
Index: php4/ext/ncurses/ncurses_fe.c
diff -u php4/ext/ncurses/ncurses_fe.c:1.8 php4/ext/ncurses/ncurses_fe.c:1.9
--- php4/ext/ncurses/ncurses_fe.c:1.8 Thu Dec 13 22:05:54 2001
+++ php4/ext/ncurses/ncurses_fe.c Sat Dec 15 09:20:41 2001
@@ -30,7 +30,6 @@
* Every user visible function must have an entry in ncurses_functions[].
*/
function_entry ncurses_functions[] = {
- PHP_FE(confirm_ncurses_compiled, NULL) /* For testing, remove later. */
PHP_FE(ncurses_addch, NULL)
PHP_FE(ncurses_color_set, NULL)
PHP_FE(ncurses_delwin, NULL)
Index: php4/ext/ncurses/php_ncurses.h
diff -u php4/ext/ncurses/php_ncurses.h:1.3 php4/ext/ncurses/php_ncurses.h:1.4
--- php4/ext/ncurses/php_ncurses.h:1.3 Tue Dec 11 10:29:57 2001
+++ php4/ext/ncurses/php_ncurses.h Sat Dec 15 09:20:41 2001
@@ -22,10 +22,6 @@
#include <curses.h>
-#define _STRING(x) ((*x)->value.str.val)
-#define _INT(x) ((*x)->value.lval)
-#define _HASH(x) ((*x)->value.ht)
-
extern int le_ncurses;
extern zend_module_entry ncurses_module_entry;
Index: php4/ext/ncurses/php_ncurses_fe.h
diff -u php4/ext/ncurses/php_ncurses_fe.h:1.8 php4/ext/ncurses/php_ncurses_fe.h:1.9
--- php4/ext/ncurses/php_ncurses_fe.h:1.8 Thu Dec 13 22:05:54 2001
+++ php4/ext/ncurses/php_ncurses_fe.h Sat Dec 15 09:20:41 2001
@@ -20,7 +20,6 @@
#ifndef PHP_NCURSES_FE_H
#define PHP_NCURSES_FE_H
-PHP_FUNCTION(confirm_ncurses_compiled); /* For testing, remove later. */
PHP_FUNCTION(ncurses_addch);
PHP_FUNCTION(ncurses_color_set);
PHP_FUNCTION(ncurses_delwin);