Complie problems with win32
| From: | Tom Rogers | Date: | Fri, 27 Jan 2006 00:32:55 +0000 |
| Subject: | Complie problems with win32 | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-2297@lists.php.net to get a copy of this message | ||
Hi
Found a few typos and a compile error after getting latest CVS.
The compile error (from gtk.overrides):
gen_gtk.c
ext\gtk+\gen_gtk.c(33137) : error C2275: 'zval' : illegal use of this type as an
expression
..\php5\Zend\zend.h(265) : see declaration of 'zval'
Fixes below....
Index: gdk.overrides
===================================================================
RCS file: /repository/php-gtk/ext/gtk+/gdk.overrides,v
retrieving revision 1.41
diff -u -w -b -r1.41 gdk.overrides
--- gdk.overrides 15 Jan 2006 22:21:41 -0000 1.41
+++ gdk.overrides 27 Jan 2006 00:18:52 -0000
@@ -289,7 +289,7 @@
GdkWindow *window;
zval *php_window = NULL;
- NO_STATIC_METHOD();
+ NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
return;
@@ -873,7 +873,7 @@
GdkAxisUse axis_use;
gdouble value;
- NO_STATIC_METHOD();
+ NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "V", &php_axis_use))
return;
@@ -895,7 +895,7 @@
{
gdouble x_win, y_win;
- NO_STATIC_METHOD();
+ NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
return;
@@ -914,7 +914,7 @@
{
gdouble x_win, y_win;
- NO_STATIC_METHOD();
+ NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
return;
@@ -933,7 +933,7 @@
{
GdkModifierType state = 0;
- NO_STATIC_METHOD();
+ NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
return;
********************************************************
Index: gtk.overrides
===================================================================
RCS file: /repository/php-gtk/ext/gtk+/gtk.overrides,v
retrieving revision 1.147
diff -u -w -b -r1.147 gtk.overrides
--- gtk.overrides 24 Jan 2006 00:15:54 -0000 1.147
+++ gtk.overrides 27 Jan 2006 00:27:08 -0000
@@ -1173,14 +1173,13 @@
PHP_METHOD
{
zval *buttons = NULL;
+ zval **text, **response;
NOT_STATIC_METHOD();
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "a", &buttons))
return;
- zval **text, **response;
-
if (zend_hash_num_elements(Z_ARRVAL_P(buttons)) % 2) {
php_error(E_WARNING, "%s::%s(): button list has to contain pairs of items",
get_active_class_name(NULL TSRMLS_CC), get_active_function_name(TSRMLS_C));
--
Tom