cvs: pear /PECL/xmgrace php_xmgrace.h xmgrace.c

From: Date: Fri, 17 May 2002 03:51:56 +0000
Subject: cvs: pear /PECL/xmgrace php_xmgrace.h xmgrace.c
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3884@lists.php.net to get a copy of this message
jmcastagnetto Thu May 16 23:51:56 2002 EDT Modified files: /pear/PECL/xmgrace php_xmgrace.h xmgrace.c Log: Commented out wrapper functions that are just bad in the API, in view of the info from Grace's developer Index: pear/PECL/xmgrace/php_xmgrace.h diff -u pear/PECL/xmgrace/php_xmgrace.h:1.1 pear/PECL/xmgrace/php_xmgrace.h:1.2 --- pear/PECL/xmgrace/php_xmgrace.h:1.1 Mon May 13 20:42:58 2002 +++ pear/PECL/xmgrace/php_xmgrace.h Thu May 16 23:51:55 2002 @@ -15,7 +15,7 @@ | Author: Jesus M. Castagnetto <jmcastagnetto@php.net> | +----------------------------------------------------------------------+ - $Id: php_xmgrace.h,v 1.1 2002/05/14 00:42:58 jmcastagnetto Exp $ + $Id: php_xmgrace.h,v 1.2 2002/05/17 03:51:55 jmcastagnetto Exp $ */ #ifndef PHP_XMGRACE_H @@ -37,7 +37,7 @@ #include <grace_np.h> #define PHP_XMGRACE_VERSION "0.1" -#define PHP_XMGRACE_EXE "/usr/local/bin/xmgrace" +#define PHP_XMGRACE_EXE "/usr/local/grace/bin/grace" #define PHP_XMGRACE_BUFSIZE 2048 #define PHP_XMGRACE_HARDCOPY "-hardcopy" @@ -48,12 +48,12 @@ PHP_MINFO_FUNCTION(xmgrace); PHP_FUNCTION(xmgrace_open); -PHP_FUNCTION(xmgrace_open_visual); +/* comment out wrappers for functions that are just bad in the API */ +/* PHP_FUNCTION(xmgrace_open_visual); */ +/* PHP_FUNCTION(xmgrace_close_pipe); */ PHP_FUNCTION(xmgrace_is_open); PHP_FUNCTION(xmgrace_close); -PHP_FUNCTION(xmgrace_close_pipe); PHP_FUNCTION(xmgrace_flush); -/* PHP_FUNCTION(xmgrace_printf); */ PHP_FUNCTION(xmgrace_command); /* Index: pear/PECL/xmgrace/xmgrace.c diff -u pear/PECL/xmgrace/xmgrace.c:1.1 pear/PECL/xmgrace/xmgrace.c:1.2 --- pear/PECL/xmgrace/xmgrace.c:1.1 Mon May 13 20:42:58 2002 +++ pear/PECL/xmgrace/xmgrace.c Thu May 16 23:51:55 2002 @@ -15,9 +15,13 @@ | Author: Jesus M. Castagnetto <jmcastagnetto@php.net> | +----------------------------------------------------------------------+ - $Id: xmgrace.c,v 1.1 2002/05/14 00:42:58 jmcastagnetto Exp $ + $Id: xmgrace.c,v 1.2 2002/05/17 03:51:55 jmcastagnetto Exp $ */ +/* + * No more development for now, Grace's API is not what it seemed + */ + /* TODO: * - figure out the reason for coredumps at closing * Not sure about the usefulness of the following: @@ -47,13 +51,11 @@ */ function_entry xmgrace_functions[] = { PHP_FE(xmgrace_open, NULL) - PHP_FE(xmgrace_open_visual, NULL) - /* PHP_FE(xmgrace_open, NULL) # not sure if needed? */ + /* PHP_FE(xmgrace_open_visual, NULL) */ PHP_FE(xmgrace_is_open, NULL) PHP_FE(xmgrace_close, NULL) - PHP_FE(xmgrace_close_pipe, NULL) + /* PHP_FE(xmgrace_close_pipe, NULL) */ PHP_FE(xmgrace_flush, NULL) - /* PHP_FE(xmgrace_printf, NULL) # not sure if needed */ PHP_FE(xmgrace_command, NULL) {NULL, NULL, NULL} /* Must be the last line in xmgrace_functions[] */ }; @@ -186,6 +188,7 @@ * bytes for data buffering. If no paramater is passed a buffer * of 2048 bytes will be used. */ +/* PHP_FUNCTION(xmgrace_open_visual) { int argc = ZEND_NUM_ARGS(); @@ -212,6 +215,7 @@ RETURN_TRUE; } } +*/ /* }}} */ /* {{{ proto bool xmgrace_is_open(void) @@ -253,6 +257,7 @@ * Closes a connection to xmgrace, leaving the xmgrace process running * Returns true on success, false otherwise */ +/* PHP_FUNCTION(xmgrace_close_pipe) { if (ZEND_NUM_ARGS() != 0) { @@ -265,6 +270,7 @@ RETURN_TRUE; } } +*/ /* }}} */ /* {{{ proto bool xmgrace_flush(void)

« previous php.pear.cvs (#3884) next »