cvs: pecl /newt newt.c

From: Date: Thu, 12 Aug 2004 21:47:38 +0000
Subject: cvs: pecl /newt newt.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1639@lists.php.net to get a copy of this message
michael Thu Aug 12 17:47:38 2004 EDT Modified files: /pecl/newt newt.c Log: Added function http://cvs.php.net/diff.php/pecl/newt/newt.c?r1=1.1.1.1&r2=1.2&ty=u Index: pecl/newt/newt.c diff -u pecl/newt/newt.c:1.1.1.1 pecl/newt/newt.c:1.2 --- pecl/newt/newt.c:1.1.1.1 Thu Aug 12 17:30:16 2004 +++ pecl/newt/newt.c Thu Aug 12 17:47:37 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: newt.c,v 1.1.1.1 2004/08/12 21:30:16 michael Exp $ */ +/* $Id: newt.c,v 1.2 2004/08/12 21:47:37 michael Exp $ */ #include <newt.h> @@ -2715,9 +2715,32 @@ /* }}} */ /* {{{ + * proto newt_grid_set_field (resource grid, int col, int row, int type, resource val, int pad_left, int pad_top, int pad_right, int pad_bottom, int anchor [, int flags]) */ PHP_FUNCTION(newt_grid_set_field) { + zval * z_grid; + newtGrid grid; + int col, row, type; + zval * z_val; + newtComponent val; + int pad_left, pad_top, pad_right, pad_bottom, anchor, flags = 0; + + int argc = ZEND_NUM_ARGS(); + if (argc == 10) { + if (zend_parse_parameters (argc, "zlllzlllll", &z_grid, &col, &row, &z_val, &pad_left, + &pad_top, &pad_right, &pad_bottom, &anchor) == FAILURE) { + return; + } + } else if (argc == 11) { + if (zend_parse_parameters (argc, "zlllzllllll", &z_grid, &col, &row, &z_val, &pad_left, + &pad_top, &pad_right, &pad_bottom, &anchor, &flags) == FAILURE) { + return; + } + } + + ZEND_FETCH_RESOURCE(grid, newtGrid, &z_grid, -1, le_newt_grid_name, le_newt_grid); + newtGridSetField (grid, col, row, type, val, pad_left, pad_top, pad_right, pad_bottom, anchor, flags); } /* }}} */

« previous php.pecl.cvs (#1639) next »