Hello community,
here is the log from the commit of package vala for openSUSE:Factory
checked in at Mon Jan 10 10:51:48 CET 2011.
--------
--- GNOME/vala/vala.changes 2010-11-18 10:40:46.000000000 +0100
+++ /mounts/work_src_done/STABLE/vala/vala.changes 2011-01-09 11:01:02.000000000 +0100
@@ -1,0 +2,12 @@
+Sun Jan 9 09:39:55 CET 2011 - vuntz@opensuse.org
+
+- Add vala-bgo638902-shotwell-fix.patch to fix a build issue with
+ shotwell 0.8.0. Based on patch from git.
+
+-------------------------------------------------------------------
+Tue Dec 28 22:14:28 UTC 2010 - dimstar@opensuse.org
+
+- Update to version 0.10.2:
+ + Bug fixes and binding updates.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
vala-0.10.1.tar.bz2
New:
----
vala-0.10.2.tar.bz2
vala-bgo638902-shotwell-fix.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ vala.spec ++++++
--- /var/tmp/diff_new_pack.ub32Aa/_old 2011-01-10 10:50:47.000000000 +0100
+++ /var/tmp/diff_new_pack.ub32Aa/_new 2011-01-10 10:50:47.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package vala (Version 0.10.1)
+# spec file for package vala (Version 0.10.2)
#
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
Name: vala
-Version: 0.10.1
+Version: 0.10.2
Release: 1
%define vala_version 0.10
%define vala_libversion 0_10
@@ -31,6 +31,8 @@
Url: http://live.gnome.org/Vala
Group: Development/Languages/Other
Source0: http://www.paldo.org/vala/vala-%{version}.tar.bz2
+# PATCH-FIX-UPSTREAM vala-bgo638902-shotwell-fix.patch bgo#638902 vuntz@opensuse.org -- Fix to avoid a build error in shotwell 0.8.0, based on patch from git
+Patch0: vala-bgo638902-shotwell-fix.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
@@ -50,7 +52,6 @@
%package -n libvala-%{vala_libversion}-0
-
License: LGPLv2.0
Summary: Programming language for GNOME
Group: System/Libraries
@@ -63,7 +64,6 @@
%package -n libvala-%{vala_libversion}-devel
-
License: LGPLv2.0
Summary: Programming language for GNOME
Group: Development/Libraries/Other
@@ -77,6 +77,7 @@
%prep
%setup -q
+%patch0 -p1
%build
%configure --with-pic --enable-vapigen
++++++ vala-0.10.1.tar.bz2 -> vala-0.10.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/ChangeLog new/vala-0.10.2/ChangeLog
--- old/vala-0.10.1/ChangeLog 2010-10-26 20:22:10.000000000 +0200
+++ new/vala-0.10.2/ChangeLog 2010-12-28 19:53:20.000000000 +0100
@@ -1,3 +1,93 @@
+2010-12-28 Jürg Billeter
+
+ Release 0.10.2
+
+ dbus-glib-1: Fix cname of RawMessageType and RawType enums
+ Fixes bug 637971.
+
+2010-12-23 Jürg Billeter
+
+ gio-unix-2.0: Fix g_unix_mounts_get binding
+
+ gen-introspect: Fix exit code for missing header files
+ Fixes bug 633596.
+
+2010-12-23 Andreas Fenkart
+
+ gstreamer-0.10: transfer ownership of arguments in Element.message_full
+ Fixes bug 635721.
+
+2010-12-23 Luca Bruno
+
+ Fix missing source references for some generated MemberAccess
+
+2010-12-23 Evan Nemerson
+
+ mx-1.0: Remove abstract for several Draggable and Droppable methods
+ Fixes bug 633902.
+
+2010-12-23 Luca Bruno
+
+ clutter-1.0: Mark ClutterEvent.get_coords parameters as out
+
+2010-12-23 Evan Nemerson
+
+ gtk+-2.0: Mark Widget.style_get_property.value as out
+
+ glib-2.0: Add UserDirectory.N_DIRECTORIES
+
+ zlib: Remove values from enums
+
+ gtk+-2.0: Mark IconTheme.load_icon as transferring ownership
+
+ glib-2.0: Add missing GIR names for (u)char and (s)size_t
+
+2010-12-23 Alban Browaeys
+
+ Genie: Fix lists and dicts with libgee 0.7
+ The delegate type used for equal and hash functions changed in
+ libgee 0.7. However, as libgee 0.5+ takes care of setting reasonable
+ default functions, simply removing the corresponding code from the
+ Genie parser fixes this incompatibility.
+
+2010-12-23 Jürg Billeter
+
+ gdk-pixbuf-2.0: Update to 2.22.1
+
+2010-12-23 Thijs Vermeir
+
+ gstreamer-0.10: fix GCallback casting in probe functions
+
+2010-12-23 Evan Nemerson
+
+ gtk+-2.0: mark Style.get_style_property value argument as out
+
+ sqlite3: update to 3.7.2
+
+ gtk+-2.0: fix CellRenderer.get_fixed_size arguments
+
+ pango: fix ownership of AttrList.get_iterator return value
+
+ pango: fix ownership of GlyphItem.split return value
+
+ gio-2.0: make AppInfo.create_from_commandline.application_name nullable
+
+ gdk-pixbuf-2.0: fix several return types
+
+ gio-2.0: Fix ownership of several callbacks
+
+2010-10-29 Jürg Billeter
+
+ gobject-2.0: Fix GEnumValue binding
+
+2010-10-29 Evan Nemerson
+
+ gio-2.0: make Icon.new_for_string return value transfer ownership
+
+2010-10-29 Jürg Billeter
+
+ codegen: Fix crash on delegates with varargs
+
2010-10-26 Jürg Billeter
Release 0.10.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/codegen/valaccodemethodcallmodule.c new/vala-0.10.2/codegen/valaccodemethodcallmodule.c
--- old/vala-0.10.1/codegen/valaccodemethodcallmodule.c 2010-10-26 20:19:34.000000000 +0200
+++ new/vala-0.10.2/codegen/valaccodemethodcallmodule.c 2010-12-28 19:51:57.000000000 +0100
@@ -440,14 +440,14 @@
gboolean _tmp266_ = FALSE;
gboolean _tmp290_ = FALSE;
gboolean _tmp304_ = FALSE;
- ValaDataType* _tmp322_;
- gboolean _tmp323_;
+ ValaDataType* _tmp323_;
+ gboolean _tmp324_;
gboolean return_result_via_out_param;
- gboolean _tmp324_ = FALSE;
+ gboolean _tmp325_ = FALSE;
gint last_pos = 0;
gint min_pos = 0;
- gboolean _tmp342_ = FALSE;
gboolean _tmp343_ = FALSE;
+ gboolean _tmp344_ = FALSE;
self = (ValaCCodeMethodCallModule*) base;
g_return_if_fail (expr != NULL);
ccall = vala_ccode_function_call_new (VALA_CCODE_EXPRESSION (vala_code_node_get_ccodenode ((ValaCodeNode*) vala_method_call_get_call (expr))));
@@ -1899,74 +1899,79 @@
_vala_ccode_node_unref0 (_tmp309_);
}
if (ellipsis) {
- gboolean _tmp311_ = FALSE;
- gboolean _tmp312_ = FALSE;
- if (!vala_method_get_printf_format (m)) {
- _tmp312_ = !vala_method_get_scanf_format (m);
+ if (m == NULL) {
+ ValaCCodeConstant* _tmp311_;
+ vala_map_set ((ValaMap*) in_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, (double) (-1), TRUE)), (ValaCCodeExpression*) (_tmp311_ = vala_ccode_constant_new (VALA_METHOD_DEFAULT_SENTINEL)));
+ _vala_ccode_node_unref0 (_tmp311_);
} else {
- _tmp312_ = FALSE;
- }
- if (_tmp312_) {
- _tmp311_ = _vala_strcmp0 (vala_method_get_sentinel (m), "") != 0;
- } else {
- _tmp311_ = FALSE;
- }
- if (_tmp311_) {
- ValaCCodeConstant* _tmp313_;
- vala_map_set ((ValaMap*) in_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, (double) (-1), TRUE)), (ValaCCodeExpression*) (_tmp313_ = vala_ccode_constant_new (vala_method_get_sentinel (m))));
- _vala_ccode_node_unref0 (_tmp313_);
- }
- } else {
- if (VALA_IS_DELEGATE_TYPE (itype)) {
- ValaDelegateType* deleg_type;
- ValaDelegate* d;
- deleg_type = _vala_code_node_ref0 (VALA_DELEGATE_TYPE (itype));
- d = _vala_code_node_ref0 (vala_delegate_type_get_delegate_symbol (deleg_type));
- if (vala_delegate_get_has_target (d)) {
- ValaCCodeExpression* delegate_target_destroy_notify;
- ValaCCodeExpression* _tmp314_ = NULL;
- ValaCCodeExpression* _tmp315_;
- ValaCCodeExpression* _tmp316_;
- ValaCCodeExpression* _tmp317_;
- ValaCCodeExpression* _tmp318_ = NULL;
- ValaCCodeExpression* _tmp319_;
- ValaCCodeExpression* _tmp320_;
- ValaCCodeExpression* _tmp321_;
- delegate_target_destroy_notify = NULL;
- vala_map_set ((ValaMap*) in_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, vala_delegate_get_cinstance_parameter_position (d), FALSE)), _tmp317_ = (_tmp315_ = vala_ccode_base_module_get_delegate_target_cexpression ((ValaCCodeBaseModule*) self, vala_method_call_get_call (expr), &_tmp314_), delegate_target_destroy_notify = (_tmp316_ = _tmp314_, _vala_ccode_node_unref0 (delegate_target_destroy_notify), _tmp316_), _tmp315_));
- _vala_ccode_node_unref0 (_tmp317_);
- vala_map_set ((ValaMap*) out_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, vala_delegate_get_cinstance_parameter_position (d), FALSE)), _tmp321_ = (_tmp319_ = vala_ccode_base_module_get_delegate_target_cexpression ((ValaCCodeBaseModule*) self, vala_method_call_get_call (expr), &_tmp318_), delegate_target_destroy_notify = (_tmp320_ = _tmp318_, _vala_ccode_node_unref0 (delegate_target_destroy_notify), _tmp320_), _tmp319_));
- _vala_ccode_node_unref0 (_tmp321_);
- _vala_ccode_node_unref0 (delegate_target_destroy_notify);
+ gboolean _tmp312_ = FALSE;
+ gboolean _tmp313_ = FALSE;
+ if (!vala_method_get_printf_format (m)) {
+ _tmp313_ = !vala_method_get_scanf_format (m);
+ } else {
+ _tmp313_ = FALSE;
+ }
+ if (_tmp313_) {
+ _tmp312_ = _vala_strcmp0 (vala_method_get_sentinel (m), "") != 0;
+ } else {
+ _tmp312_ = FALSE;
+ }
+ if (_tmp312_) {
+ ValaCCodeConstant* _tmp314_;
+ vala_map_set ((ValaMap*) in_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, (double) (-1), TRUE)), (ValaCCodeExpression*) (_tmp314_ = vala_ccode_constant_new (vala_method_get_sentinel (m))));
+ _vala_ccode_node_unref0 (_tmp314_);
}
- _vala_code_node_unref0 (d);
- _vala_code_node_unref0 (deleg_type);
}
}
- return_result_via_out_param = (_tmp323_ = vala_data_type_is_real_non_null_struct_type (_tmp322_ = vala_data_type_get_return_type (itype)), _vala_code_node_unref0 (_tmp322_), _tmp323_);
+ if (VALA_IS_DELEGATE_TYPE (itype)) {
+ ValaDelegateType* deleg_type;
+ ValaDelegate* d;
+ deleg_type = _vala_code_node_ref0 (VALA_DELEGATE_TYPE (itype));
+ d = _vala_code_node_ref0 (vala_delegate_type_get_delegate_symbol (deleg_type));
+ if (vala_delegate_get_has_target (d)) {
+ ValaCCodeExpression* delegate_target_destroy_notify;
+ ValaCCodeExpression* _tmp315_ = NULL;
+ ValaCCodeExpression* _tmp316_;
+ ValaCCodeExpression* _tmp317_;
+ ValaCCodeExpression* _tmp318_;
+ ValaCCodeExpression* _tmp319_ = NULL;
+ ValaCCodeExpression* _tmp320_;
+ ValaCCodeExpression* _tmp321_;
+ ValaCCodeExpression* _tmp322_;
+ delegate_target_destroy_notify = NULL;
+ vala_map_set ((ValaMap*) in_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, vala_delegate_get_cinstance_parameter_position (d), FALSE)), _tmp318_ = (_tmp316_ = vala_ccode_base_module_get_delegate_target_cexpression ((ValaCCodeBaseModule*) self, vala_method_call_get_call (expr), &_tmp315_), delegate_target_destroy_notify = (_tmp317_ = _tmp315_, _vala_ccode_node_unref0 (delegate_target_destroy_notify), _tmp317_), _tmp316_));
+ _vala_ccode_node_unref0 (_tmp318_);
+ vala_map_set ((ValaMap*) out_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, vala_delegate_get_cinstance_parameter_position (d), FALSE)), _tmp322_ = (_tmp320_ = vala_ccode_base_module_get_delegate_target_cexpression ((ValaCCodeBaseModule*) self, vala_method_call_get_call (expr), &_tmp319_), delegate_target_destroy_notify = (_tmp321_ = _tmp319_, _vala_ccode_node_unref0 (delegate_target_destroy_notify), _tmp321_), _tmp320_));
+ _vala_ccode_node_unref0 (_tmp322_);
+ _vala_ccode_node_unref0 (delegate_target_destroy_notify);
+ }
+ _vala_code_node_unref0 (d);
+ _vala_code_node_unref0 (deleg_type);
+ }
+ return_result_via_out_param = (_tmp324_ = vala_data_type_is_real_non_null_struct_type (_tmp323_ = vala_data_type_get_return_type (itype)), _vala_code_node_unref0 (_tmp323_), _tmp324_);
if (VALA_IS_SIGNAL_TYPE (itype)) {
- ValaDataType* _tmp325_;
- _tmp324_ = !VALA_IS_VOID_TYPE (_tmp325_ = vala_data_type_get_return_type (itype));
- _vala_code_node_unref0 (_tmp325_);
+ ValaDataType* _tmp326_;
+ _tmp325_ = !VALA_IS_VOID_TYPE (_tmp326_ = vala_data_type_get_return_type (itype));
+ _vala_code_node_unref0 (_tmp326_);
} else {
- _tmp324_ = FALSE;
+ _tmp325_ = FALSE;
}
- if (_tmp324_) {
+ if (_tmp325_) {
ValaSignal* sig;
- gboolean _tmp326_ = FALSE;
gboolean _tmp327_ = FALSE;
+ gboolean _tmp328_ = FALSE;
sig = _vala_code_node_ref0 (vala_signal_type_get_signal_symbol (VALA_SIGNAL_TYPE (itype)));
if (ma != NULL) {
- _tmp327_ = VALA_IS_BASE_ACCESS (vala_member_access_get_inner (ma));
+ _tmp328_ = VALA_IS_BASE_ACCESS (vala_member_access_get_inner (ma));
} else {
- _tmp327_ = FALSE;
+ _tmp328_ = FALSE;
}
- if (_tmp327_) {
- _tmp326_ = vala_signal_get_is_virtual (sig);
+ if (_tmp328_) {
+ _tmp327_ = vala_signal_get_is_virtual (sig);
} else {
- _tmp326_ = FALSE;
+ _tmp327_ = FALSE;
}
- if (_tmp326_) {
+ if (_tmp327_) {
} else {
if (!vala_signal_get_has_emitter (sig)) {
return_result_via_out_param = TRUE;
@@ -1975,22 +1980,22 @@
_vala_code_node_unref0 (sig);
}
if (return_result_via_out_param) {
- ValaDataType* _tmp328_;
- ValaLocalVariable* _tmp329_;
+ ValaDataType* _tmp329_;
+ ValaLocalVariable* _tmp330_;
ValaLocalVariable* temp_var;
ValaCCodeExpression* temp_ref;
- ValaCCodeUnaryExpression* _tmp330_;
+ ValaCCodeUnaryExpression* _tmp331_;
ValaCCodeCommaExpression* ccomma;
- ValaCCodeExpression* _tmp331_;
- temp_var = (_tmp329_ = vala_ccode_base_module_get_temp_variable ((ValaCCodeBaseModule*) self, _tmp328_ = vala_data_type_get_return_type (itype), TRUE, NULL, TRUE), _vala_code_node_unref0 (_tmp328_), _tmp329_);
+ ValaCCodeExpression* _tmp332_;
+ temp_var = (_tmp330_ = vala_ccode_base_module_get_temp_variable ((ValaCCodeBaseModule*) self, _tmp329_ = vala_data_type_get_return_type (itype), TRUE, NULL, TRUE), _vala_code_node_unref0 (_tmp329_), _tmp330_);
temp_ref = vala_ccode_base_module_get_variable_cexpression ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) temp_var));
vala_collection_add ((ValaCollection*) vala_ccode_base_module_get_temp_vars ((ValaCCodeBaseModule*) self), temp_var);
- vala_map_set ((ValaMap*) out_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, (double) (-3), FALSE)), (ValaCCodeExpression*) (_tmp330_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, temp_ref)));
- _vala_ccode_node_unref0 (_tmp330_);
+ vala_map_set ((ValaMap*) out_arg_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, (double) (-3), FALSE)), (ValaCCodeExpression*) (_tmp331_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, temp_ref)));
+ _vala_ccode_node_unref0 (_tmp331_);
ccomma = vala_ccode_comma_expression_new ();
vala_ccode_comma_expression_append_expression (ccomma, VALA_CCODE_EXPRESSION (ccall_expr));
vala_ccode_comma_expression_append_expression (ccomma, VALA_CCODE_EXPRESSION (temp_ref));
- ccall_expr = (_tmp331_ = _vala_ccode_node_ref0 ((ValaCCodeExpression*) ccomma), _vala_ccode_node_unref0 (ccall_expr), _tmp331_);
+ ccall_expr = (_tmp332_ = _vala_ccode_node_ref0 ((ValaCCodeExpression*) ccomma), _vala_ccode_node_unref0 (ccall_expr), _tmp332_);
_vala_ccode_node_unref0 (ccomma);
_vala_ccode_node_unref0 (temp_ref);
_vala_code_node_unref0 (temp_var);
@@ -1998,32 +2003,32 @@
if (async_call != ccall) {
last_pos = -1;
while (TRUE) {
- ValaCCodeExpression* _tmp336_;
+ ValaCCodeExpression* _tmp337_;
min_pos = -1;
{
- ValaSet* _tmp332_;
- ValaIterator* _tmp333_;
+ ValaSet* _tmp333_;
+ ValaIterator* _tmp334_;
ValaIterator* _pos_it;
- _pos_it = (_tmp333_ = vala_iterable_iterator ((ValaIterable*) (_tmp332_ = vala_map_get_keys ((ValaMap*) out_arg_map))), _vala_collection_object_unref0 (_tmp332_), _tmp333_);
+ _pos_it = (_tmp334_ = vala_iterable_iterator ((ValaIterable*) (_tmp333_ = vala_map_get_keys ((ValaMap*) out_arg_map))), _vala_collection_object_unref0 (_tmp333_), _tmp334_);
while (TRUE) {
gint pos;
- gboolean _tmp334_ = FALSE;
+ gboolean _tmp335_ = FALSE;
if (!vala_iterator_next (_pos_it)) {
break;
}
pos = GPOINTER_TO_INT (vala_iterator_get (_pos_it));
if (pos > last_pos) {
- gboolean _tmp335_ = FALSE;
+ gboolean _tmp336_ = FALSE;
if (min_pos == (-1)) {
- _tmp335_ = TRUE;
+ _tmp336_ = TRUE;
} else {
- _tmp335_ = pos < min_pos;
+ _tmp336_ = pos < min_pos;
}
- _tmp334_ = _tmp335_;
+ _tmp335_ = _tmp336_;
} else {
- _tmp334_ = FALSE;
+ _tmp335_ = FALSE;
}
- if (_tmp334_) {
+ if (_tmp335_) {
min_pos = pos;
}
}
@@ -2032,40 +2037,40 @@
if (min_pos == (-1)) {
break;
}
- vala_ccode_function_call_add_argument (ccall, _tmp336_ = (ValaCCodeExpression*) vala_map_get ((ValaMap*) out_arg_map, GINT_TO_POINTER (min_pos)));
- _vala_ccode_node_unref0 (_tmp336_);
+ vala_ccode_function_call_add_argument (ccall, _tmp337_ = (ValaCCodeExpression*) vala_map_get ((ValaMap*) out_arg_map, GINT_TO_POINTER (min_pos)));
+ _vala_ccode_node_unref0 (_tmp337_);
last_pos = min_pos;
}
}
if (async_call != NULL) {
last_pos = -1;
while (TRUE) {
- ValaCCodeExpression* _tmp341_;
+ ValaCCodeExpression* _tmp342_;
min_pos = -1;
{
- ValaSet* _tmp337_;
- ValaIterator* _tmp338_;
+ ValaSet* _tmp338_;
+ ValaIterator* _tmp339_;
ValaIterator* _pos_it;
- _pos_it = (_tmp338_ = vala_iterable_iterator ((ValaIterable*) (_tmp337_ = vala_map_get_keys ((ValaMap*) in_arg_map))), _vala_collection_object_unref0 (_tmp337_), _tmp338_);
+ _pos_it = (_tmp339_ = vala_iterable_iterator ((ValaIterable*) (_tmp338_ = vala_map_get_keys ((ValaMap*) in_arg_map))), _vala_collection_object_unref0 (_tmp338_), _tmp339_);
while (TRUE) {
gint pos;
- gboolean _tmp339_ = FALSE;
+ gboolean _tmp340_ = FALSE;
if (!vala_iterator_next (_pos_it)) {
break;
}
pos = GPOINTER_TO_INT (vala_iterator_get (_pos_it));
if (pos > last_pos) {
- gboolean _tmp340_ = FALSE;
+ gboolean _tmp341_ = FALSE;
if (min_pos == (-1)) {
- _tmp340_ = TRUE;
+ _tmp341_ = TRUE;
} else {
- _tmp340_ = pos < min_pos;
+ _tmp341_ = pos < min_pos;
}
- _tmp339_ = _tmp340_;
+ _tmp340_ = _tmp341_;
} else {
- _tmp339_ = FALSE;
+ _tmp340_ = FALSE;
}
- if (_tmp339_) {
+ if (_tmp340_) {
min_pos = pos;
}
}
@@ -2074,107 +2079,107 @@
if (min_pos == (-1)) {
break;
}
- vala_ccode_function_call_add_argument (async_call, _tmp341_ = (ValaCCodeExpression*) vala_map_get ((ValaMap*) in_arg_map, GINT_TO_POINTER (min_pos)));
- _vala_ccode_node_unref0 (_tmp341_);
+ vala_ccode_function_call_add_argument (async_call, _tmp342_ = (ValaCCodeExpression*) vala_map_get ((ValaMap*) in_arg_map, GINT_TO_POINTER (min_pos)));
+ _vala_ccode_node_unref0 (_tmp342_);
last_pos = min_pos;
}
}
if (m != NULL) {
- _tmp343_ = vala_method_get_binding (m) == MEMBER_BINDING_INSTANCE;
+ _tmp344_ = vala_method_get_binding (m) == MEMBER_BINDING_INSTANCE;
} else {
- _tmp343_ = FALSE;
+ _tmp344_ = FALSE;
}
- if (_tmp343_) {
- _tmp342_ = vala_method_get_returns_modified_pointer (m);
+ if (_tmp344_) {
+ _tmp343_ = vala_method_get_returns_modified_pointer (m);
} else {
- _tmp342_ = FALSE;
+ _tmp343_ = FALSE;
}
- if (_tmp342_) {
- ValaCCodeAssignment* _tmp344_;
- vala_code_node_set_ccodenode ((ValaCodeNode*) expr, (ValaCCodeNode*) (_tmp344_ = vala_ccode_assignment_new (instance, ccall_expr, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)));
- _vala_ccode_node_unref0 (_tmp344_);
+ if (_tmp343_) {
+ ValaCCodeAssignment* _tmp345_;
+ vala_code_node_set_ccodenode ((ValaCodeNode*) expr, (ValaCCodeNode*) (_tmp345_ = vala_ccode_assignment_new (instance, ccall_expr, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)));
+ _vala_ccode_node_unref0 (_tmp345_);
} else {
vala_code_node_set_ccodenode ((ValaCodeNode*) expr, (ValaCCodeNode*) ccall_expr);
}
if (vala_method_call_get_is_yield_expression (expr)) {
gint state;
- char* _tmp346_;
- ValaCCodeConstant* _tmp347_;
- ValaCCodeCaseStatement* _tmp348_;
- char* _tmp349_;
- ValaCCodeGotoStatement* _tmp350_;
- ValaCCodeIdentifier* _tmp351_;
- ValaCCodeMemberAccess* _tmp352_;
- char* _tmp353_;
- ValaCCodeConstant* _tmp354_;
- ValaCCodeAssignment* _tmp355_;
- ValaCCodeExpressionStatement* _tmp356_;
+ char* _tmp347_;
+ ValaCCodeConstant* _tmp348_;
+ ValaCCodeCaseStatement* _tmp349_;
+ char* _tmp350_;
+ ValaCCodeGotoStatement* _tmp351_;
+ ValaCCodeIdentifier* _tmp352_;
+ ValaCCodeMemberAccess* _tmp353_;
+ char* _tmp354_;
+ ValaCCodeConstant* _tmp355_;
+ ValaCCodeAssignment* _tmp356_;
ValaCCodeExpressionStatement* _tmp357_;
- ValaCCodeConstant* _tmp358_;
- ValaCCodeReturnStatement* _tmp359_;
- char* _tmp360_;
- ValaCCodeLabel* _tmp361_;
+ ValaCCodeExpressionStatement* _tmp358_;
+ ValaCCodeConstant* _tmp359_;
+ ValaCCodeReturnStatement* _tmp360_;
+ char* _tmp361_;
+ ValaCCodeLabel* _tmp362_;
if (((ValaCCodeBaseModule*) self)->pre_statement_fragment == NULL) {
- ValaCCodeFragment* _tmp345_;
- ((ValaCCodeBaseModule*) self)->pre_statement_fragment = (_tmp345_ = vala_ccode_fragment_new (), _vala_ccode_node_unref0 (((ValaCCodeBaseModule*) self)->pre_statement_fragment), _tmp345_);
+ ValaCCodeFragment* _tmp346_;
+ ((ValaCCodeBaseModule*) self)->pre_statement_fragment = (_tmp346_ = vala_ccode_fragment_new (), _vala_ccode_node_unref0 (((ValaCCodeBaseModule*) self)->pre_statement_fragment), _tmp346_);
}
state = ((ValaCCodeBaseModule*) self)->next_coroutine_state++;
- vala_ccode_block_add_statement ((ValaCCodeBlock*) vala_ccode_base_module_get_state_switch_statement ((ValaCCodeBaseModule*) self), (ValaCCodeNode*) (_tmp348_ = vala_ccode_case_statement_new ((ValaCCodeExpression*) (_tmp347_ = vala_ccode_constant_new (_tmp346_ = g_strdup_printf ("%i", state))))));
+ vala_ccode_block_add_statement ((ValaCCodeBlock*) vala_ccode_base_module_get_state_switch_statement ((ValaCCodeBaseModule*) self), (ValaCCodeNode*) (_tmp349_ = vala_ccode_case_statement_new ((ValaCCodeExpression*) (_tmp348_ = vala_ccode_constant_new (_tmp347_ = g_strdup_printf ("%i", state))))));
+ _vala_ccode_node_unref0 (_tmp349_);
_vala_ccode_node_unref0 (_tmp348_);
- _vala_ccode_node_unref0 (_tmp347_);
- _g_free0 (_tmp346_);
- vala_ccode_block_add_statement ((ValaCCodeBlock*) vala_ccode_base_module_get_state_switch_statement ((ValaCCodeBaseModule*) self), (ValaCCodeNode*) (_tmp350_ = vala_ccode_goto_statement_new (_tmp349_ = g_strdup_printf ("_state_%d", state))));
- _vala_ccode_node_unref0 (_tmp350_);
- _g_free0 (_tmp349_);
- vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp356_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp355_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp352_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) (_tmp351_ = vala_ccode_identifier_new ("data")), "_state_")), (ValaCCodeExpression*) (_tmp354_ = vala_ccode_constant_new (_tmp353_ = g_strdup_printf ("%i", state))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
+ _g_free0 (_tmp347_);
+ vala_ccode_block_add_statement ((ValaCCodeBlock*) vala_ccode_base_module_get_state_switch_statement ((ValaCCodeBaseModule*) self), (ValaCCodeNode*) (_tmp351_ = vala_ccode_goto_statement_new (_tmp350_ = g_strdup_printf ("_state_%d", state))));
+ _vala_ccode_node_unref0 (_tmp351_);
+ _g_free0 (_tmp350_);
+ vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp357_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp356_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp353_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) (_tmp352_ = vala_ccode_identifier_new ("data")), "_state_")), (ValaCCodeExpression*) (_tmp355_ = vala_ccode_constant_new (_tmp354_ = g_strdup_printf ("%i", state))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
+ _vala_ccode_node_unref0 (_tmp357_);
_vala_ccode_node_unref0 (_tmp356_);
_vala_ccode_node_unref0 (_tmp355_);
- _vala_ccode_node_unref0 (_tmp354_);
- _g_free0 (_tmp353_);
+ _g_free0 (_tmp354_);
+ _vala_ccode_node_unref0 (_tmp353_);
_vala_ccode_node_unref0 (_tmp352_);
- _vala_ccode_node_unref0 (_tmp351_);
- vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp357_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) async_call)));
- _vala_ccode_node_unref0 (_tmp357_);
- vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp359_ = vala_ccode_return_statement_new ((ValaCCodeExpression*) (_tmp358_ = vala_ccode_constant_new ("FALSE")))));
- _vala_ccode_node_unref0 (_tmp359_);
+ vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp358_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) async_call)));
_vala_ccode_node_unref0 (_tmp358_);
- vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp361_ = vala_ccode_label_new (_tmp360_ = g_strdup_printf ("_state_%d", state))));
- _vala_ccode_node_unref0 (_tmp361_);
- _g_free0 (_tmp360_);
+ vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp360_ = vala_ccode_return_statement_new ((ValaCCodeExpression*) (_tmp359_ = vala_ccode_constant_new ("FALSE")))));
+ _vala_ccode_node_unref0 (_tmp360_);
+ _vala_ccode_node_unref0 (_tmp359_);
+ vala_ccode_fragment_append (((ValaCCodeBaseModule*) self)->pre_statement_fragment, (ValaCCodeNode*) (_tmp362_ = vala_ccode_label_new (_tmp361_ = g_strdup_printf ("_state_%d", state))));
+ _vala_ccode_node_unref0 (_tmp362_);
+ _g_free0 (_tmp361_);
}
if (VALA_IS_ARRAY_RESIZE_METHOD (m)) {
- ValaList* _tmp362_;
- ValaIterator* _tmp363_;
+ ValaList* _tmp363_;
+ ValaIterator* _tmp364_;
ValaIterator* arg_it;
- ValaExpression* _tmp364_;
- ValaCCodeExpression* _tmp365_;
+ ValaExpression* _tmp365_;
+ ValaCCodeExpression* _tmp366_;
ValaCCodeExpression* new_size;
ValaLocalVariable* temp_decl;
ValaCCodeExpression* temp_ref;
ValaCCodeExpression* clen;
ValaCCodeExpression* celems;
ValaArrayType* array_type;
- char* _tmp366_;
char* _tmp367_;
- ValaCCodeIdentifier* _tmp368_;
+ char* _tmp368_;
+ ValaCCodeIdentifier* _tmp369_;
ValaCCodeIdentifier* csizeof;
ValaCCodeBinaryExpression* cdelta;
ValaCCodeBinaryExpression* ccheck;
- ValaCCodeIdentifier* _tmp369_;
- ValaCCodeFunctionCall* _tmp370_;
+ ValaCCodeIdentifier* _tmp370_;
+ ValaCCodeFunctionCall* _tmp371_;
ValaCCodeFunctionCall* czero;
- ValaCCodeBinaryExpression* _tmp371_;
- ValaCCodeConstant* _tmp372_;
- ValaCCodeBinaryExpression* _tmp373_;
+ ValaCCodeBinaryExpression* _tmp372_;
+ ValaCCodeConstant* _tmp373_;
+ ValaCCodeBinaryExpression* _tmp374_;
ValaCCodeCommaExpression* ccomma;
- ValaCCodeAssignment* _tmp374_;
- ValaCCodeConstant* _tmp375_;
- ValaCCodeConditionalExpression* _tmp376_;
- ValaCCodeExpression* _tmp377_;
- ValaCCodeAssignment* _tmp378_;
- arg_it = (_tmp363_ = vala_iterable_iterator ((ValaIterable*) (_tmp362_ = vala_method_call_get_argument_list (expr))), _vala_collection_object_unref0 (_tmp362_), _tmp363_);
+ ValaCCodeAssignment* _tmp375_;
+ ValaCCodeConstant* _tmp376_;
+ ValaCCodeConditionalExpression* _tmp377_;
+ ValaCCodeExpression* _tmp378_;
+ ValaCCodeAssignment* _tmp379_;
+ arg_it = (_tmp364_ = vala_iterable_iterator ((ValaIterable*) (_tmp363_ = vala_method_call_get_argument_list (expr))), _vala_collection_object_unref0 (_tmp363_), _tmp364_);
vala_iterator_next (arg_it);
- new_size = (_tmp365_ = _vala_ccode_node_ref0 (VALA_CCODE_EXPRESSION (vala_code_node_get_ccodenode ((ValaCodeNode*) (_tmp364_ = (ValaExpression*) vala_iterator_get (arg_it))))), _vala_code_node_unref0 (_tmp364_), _tmp365_);
+ new_size = (_tmp366_ = _vala_ccode_node_ref0 (VALA_CCODE_EXPRESSION (vala_code_node_get_ccodenode ((ValaCodeNode*) (_tmp365_ = (ValaExpression*) vala_iterator_get (arg_it))))), _vala_code_node_unref0 (_tmp365_), _tmp366_);
temp_decl = vala_ccode_base_module_get_temp_variable ((ValaCCodeBaseModule*) self, ((ValaCCodeBaseModule*) self)->int_type, TRUE, NULL, TRUE);
temp_ref = vala_ccode_base_module_get_variable_cexpression ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) temp_decl));
vala_collection_add ((ValaCollection*) vala_ccode_base_module_get_temp_vars ((ValaCCodeBaseModule*) self), temp_decl);
@@ -2182,26 +2187,26 @@
clen = vala_ccode_base_module_get_array_length_cexpression ((ValaCCodeBaseModule*) self, vala_member_access_get_inner (ma), 1);
celems = _vala_ccode_node_ref0 (VALA_CCODE_EXPRESSION (vala_code_node_get_ccodenode ((ValaCodeNode*) vala_member_access_get_inner (ma))));
array_type = _vala_code_node_ref0 (VALA_ARRAY_TYPE (vala_expression_get_value_type (vala_member_access_get_inner (ma))));
- csizeof = (_tmp368_ = vala_ccode_identifier_new (_tmp367_ = g_strdup_printf ("sizeof (%s)", _tmp366_ = vala_data_type_get_cname (vala_array_type_get_element_type (array_type)))), _g_free0 (_tmp367_), _g_free0 (_tmp366_), _tmp368_);
+ csizeof = (_tmp369_ = vala_ccode_identifier_new (_tmp368_ = g_strdup_printf ("sizeof (%s)", _tmp367_ = vala_data_type_get_cname (vala_array_type_get_element_type (array_type)))), _g_free0 (_tmp368_), _g_free0 (_tmp367_), _tmp369_);
cdelta = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_MINUS, temp_ref, clen);
ccheck = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_GREATER_THAN, temp_ref, clen);
- czero = (_tmp370_ = vala_ccode_function_call_new ((ValaCCodeExpression*) (_tmp369_ = vala_ccode_identifier_new ("memset"))), _vala_ccode_node_unref0 (_tmp369_), _tmp370_);
- vala_ccode_function_call_add_argument (czero, (ValaCCodeExpression*) (_tmp371_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_PLUS, celems, clen)));
- _vala_ccode_node_unref0 (_tmp371_);
- vala_ccode_function_call_add_argument (czero, (ValaCCodeExpression*) (_tmp372_ = vala_ccode_constant_new ("0")));
+ czero = (_tmp371_ = vala_ccode_function_call_new ((ValaCCodeExpression*) (_tmp370_ = vala_ccode_identifier_new ("memset"))), _vala_ccode_node_unref0 (_tmp370_), _tmp371_);
+ vala_ccode_function_call_add_argument (czero, (ValaCCodeExpression*) (_tmp372_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_PLUS, celems, clen)));
_vala_ccode_node_unref0 (_tmp372_);
- vala_ccode_function_call_add_argument (czero, (ValaCCodeExpression*) (_tmp373_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_MUL, (ValaCCodeExpression*) csizeof, (ValaCCodeExpression*) cdelta)));
+ vala_ccode_function_call_add_argument (czero, (ValaCCodeExpression*) (_tmp373_ = vala_ccode_constant_new ("0")));
_vala_ccode_node_unref0 (_tmp373_);
- ccomma = vala_ccode_comma_expression_new ();
- vala_ccode_comma_expression_append_expression (ccomma, (ValaCCodeExpression*) (_tmp374_ = vala_ccode_assignment_new (temp_ref, new_size, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)));
+ vala_ccode_function_call_add_argument (czero, (ValaCCodeExpression*) (_tmp374_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_MUL, (ValaCCodeExpression*) csizeof, (ValaCCodeExpression*) cdelta)));
_vala_ccode_node_unref0 (_tmp374_);
+ ccomma = vala_ccode_comma_expression_new ();
+ vala_ccode_comma_expression_append_expression (ccomma, (ValaCCodeExpression*) (_tmp375_ = vala_ccode_assignment_new (temp_ref, new_size, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)));
+ _vala_ccode_node_unref0 (_tmp375_);
vala_ccode_comma_expression_append_expression (ccomma, VALA_CCODE_EXPRESSION (vala_code_node_get_ccodenode ((ValaCodeNode*) expr)));
- vala_ccode_comma_expression_append_expression (ccomma, (ValaCCodeExpression*) (_tmp376_ = vala_ccode_conditional_expression_new ((ValaCCodeExpression*) ccheck, (ValaCCodeExpression*) czero, (ValaCCodeExpression*) (_tmp375_ = vala_ccode_constant_new ("NULL")))));
+ vala_ccode_comma_expression_append_expression (ccomma, (ValaCCodeExpression*) (_tmp377_ = vala_ccode_conditional_expression_new ((ValaCCodeExpression*) ccheck, (ValaCCodeExpression*) czero, (ValaCCodeExpression*) (_tmp376_ = vala_ccode_constant_new ("NULL")))));
+ _vala_ccode_node_unref0 (_tmp377_);
_vala_ccode_node_unref0 (_tmp376_);
- _vala_ccode_node_unref0 (_tmp375_);
- vala_ccode_comma_expression_append_expression (ccomma, (ValaCCodeExpression*) (_tmp378_ = vala_ccode_assignment_new (_tmp377_ = vala_ccode_base_module_get_array_length_cexpression ((ValaCCodeBaseModule*) self, vala_member_access_get_inner (ma), 1), temp_ref, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)));
+ vala_ccode_comma_expression_append_expression (ccomma, (ValaCCodeExpression*) (_tmp379_ = vala_ccode_assignment_new (_tmp378_ = vala_ccode_base_module_get_array_length_cexpression ((ValaCCodeBaseModule*) self, vala_member_access_get_inner (ma), 1), temp_ref, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)));
+ _vala_ccode_node_unref0 (_tmp379_);
_vala_ccode_node_unref0 (_tmp378_);
- _vala_ccode_node_unref0 (_tmp377_);
vala_code_node_set_ccodenode ((ValaCodeNode*) expr, (ValaCCodeNode*) ccomma);
_vala_ccode_node_unref0 (ccomma);
_vala_ccode_node_unref0 (czero);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/codegen/valaccodemethodcallmodule.vala new/vala-0.10.2/codegen/valaccodemethodcallmodule.vala
--- old/vala-0.10.1/codegen/valaccodemethodcallmodule.vala 2010-09-10 09:35:56.000000000 +0200
+++ new/vala-0.10.2/codegen/valaccodemethodcallmodule.vala 2010-12-23 15:35:23.000000000 +0100
@@ -652,10 +652,14 @@
if (ellipsis) {
/* ensure variable argument list ends with NULL
* except when using printf-style arguments */
- if (!m.printf_format && !m.scanf_format && m.sentinel != "") {
+ if (m == null) {
+ in_arg_map.set (get_param_pos (-1, true), new CCodeConstant (Method.DEFAULT_SENTINEL));
+ } else if (!m.printf_format && !m.scanf_format && m.sentinel != "") {
in_arg_map.set (get_param_pos (-1, true), new CCodeConstant (m.sentinel));
}
- } else if (itype is DelegateType) {
+ }
+
+ if (itype is DelegateType) {
var deleg_type = (DelegateType) itype;
var d = deleg_type.delegate_symbol;
if (d.has_target) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/configure new/vala-0.10.2/configure
--- old/vala-0.10.1/configure 2010-10-26 20:18:04.000000000 +0200
+++ new/vala-0.10.2/configure 2010-12-28 19:51:16.000000000 +0100
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for vala 0.10.1.
+# Generated by GNU Autoconf 2.68 for vala 0.10.2.
#
# Report bugs to .
#
@@ -569,8 +569,8 @@
# Identity of this package.
PACKAGE_NAME='vala'
PACKAGE_TARNAME='vala'
-PACKAGE_VERSION='0.10.1'
-PACKAGE_STRING='vala 0.10.1'
+PACKAGE_VERSION='0.10.2'
+PACKAGE_STRING='vala 0.10.2'
PACKAGE_BUGREPORT='j@bitron.ch'
PACKAGE_URL=''
@@ -1332,7 +1332,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures vala 0.10.1 to adapt to many kinds of systems.
+\`configure' configures vala 0.10.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1402,7 +1402,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of vala 0.10.1:";;
+ short | recursive ) echo "Configuration of vala 0.10.2:";;
esac
cat <<\_ACEOF
@@ -1521,7 +1521,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-vala configure 0.10.1
+vala configure 0.10.2
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1799,7 +1799,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by vala $as_me 0.10.1, which was
+It was created by vala $as_me 0.10.2, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
@@ -2618,7 +2618,7 @@
# Define the identity of the package.
PACKAGE='vala'
- VERSION='0.10.1'
+ VERSION='0.10.2'
cat >>confdefs.h <<_ACEOF
@@ -12683,7 +12683,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by vala $as_me 0.10.1, which was
+This file was extended by vala $as_me 0.10.2, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -12749,7 +12749,7 @@
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-vala config.status 0.10.1
+vala config.status 0.10.2
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/gobject-introspection/scanner.c new/vala-0.10.2/gobject-introspection/scanner.c
--- old/vala-0.10.1/gobject-introspection/scanner.c 2010-09-10 09:35:01.000000000 +0200
+++ new/vala-0.10.2/gobject-introspection/scanner.c 2010-12-23 15:49:23.000000000 +0100
@@ -1753,7 +1753,7 @@
{
g_printerr ("ERROR: Need at least one header file.\n");
g_igenerator_free (igenerator);
- return 0;
+ return 1;
}
igenerator->filenames = filenames;
cpp_options = g_list_reverse (cpp_options);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/NEWS new/vala-0.10.2/NEWS
--- old/vala-0.10.1/NEWS 2010-10-26 20:17:19.000000000 +0200
+++ new/vala-0.10.2/NEWS 2010-12-28 19:50:07.000000000 +0100
@@ -1,3 +1,8 @@
+Vala 0.10.2
+===========
+
+ * Bug fixes and binding updates.
+
Vala 0.10.1
===========
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/.tarball-version new/vala-0.10.2/.tarball-version
--- old/vala-0.10.1/.tarball-version 2010-10-26 20:22:10.000000000 +0200
+++ new/vala-0.10.2/.tarball-version 2010-12-28 19:53:20.000000000 +0100
@@ -1 +1 @@
-0.10.1
+0.10.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valaassignment.c new/vala-0.10.2/vala/valaassignment.c
--- old/vala-0.10.1/vala/valaassignment.c 2010-10-26 20:19:19.000000000 +0200
+++ new/vala-0.10.2/vala/valaassignment.c 2010-12-28 19:51:42.000000000 +0100
@@ -1863,7 +1863,7 @@
ValaMemberAccess* _tmp24_;
ValaMethodCall* _tmp25_;
ValaMethodCall* set_call;
- set_call = (_tmp25_ = vala_method_call_new ((ValaExpression*) (_tmp24_ = vala_member_access_new (vala_element_access_get_container (ea), "set", NULL)), NULL), _vala_code_node_unref0 (_tmp24_), _tmp25_);
+ set_call = (_tmp25_ = vala_method_call_new ((ValaExpression*) (_tmp24_ = vala_member_access_new (vala_element_access_get_container (ea), "set", vala_code_node_get_source_reference ((ValaCodeNode*) self))), vala_code_node_get_source_reference ((ValaCodeNode*) self)), _vala_code_node_unref0 (_tmp24_), _tmp25_);
{
ValaList* _tmp26_;
ValaIterator* _tmp27_;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valaassignment.vala new/vala-0.10.2/vala/valaassignment.vala
--- old/vala-0.10.1/vala/valaassignment.vala 2010-09-10 09:35:01.000000000 +0200
+++ new/vala-0.10.2/vala/valaassignment.vala 2010-12-23 15:47:06.000000000 +0100
@@ -190,7 +190,7 @@
var sig = (Signal) ea.container.symbol_reference;
right.target_type = new DelegateType (sig.get_delegate (ma.inner.value_type, this));
} else if (ea.container.value_type.get_member ("set") is Method) {
- var set_call = new MethodCall (new MemberAccess (ea.container, "set"));
+ var set_call = new MethodCall (new MemberAccess (ea.container, "set", source_reference), source_reference);
foreach (Expression e in ea.get_indices ()) {
set_call.add_argument (e);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valabinaryexpression.c new/vala-0.10.2/vala/valabinaryexpression.c
--- old/vala-0.10.1/vala/valabinaryexpression.c 2010-10-26 20:19:19.000000000 +0200
+++ new/vala-0.10.2/vala/valabinaryexpression.c 2010-12-28 19:51:42.000000000 +0100
@@ -2436,7 +2436,7 @@
_vala_code_node_unref0 (contains_method);
return result;
}
- contains_call = (_tmp95_ = vala_method_call_new ((ValaExpression*) (_tmp94_ = vala_member_access_new (vala_binary_expression_get_right (self), "contains", NULL)), NULL), _vala_code_node_unref0 (_tmp94_), _tmp95_);
+ contains_call = (_tmp95_ = vala_method_call_new ((ValaExpression*) (_tmp94_ = vala_member_access_new (vala_binary_expression_get_right (self), "contains", vala_code_node_get_source_reference ((ValaCodeNode*) self))), vala_code_node_get_source_reference ((ValaCodeNode*) self)), _vala_code_node_unref0 (_tmp94_), _tmp95_);
vala_method_call_add_argument (contains_call, vala_binary_expression_get_left (self));
vala_code_node_replace_expression (vala_code_node_get_parent_node ((ValaCodeNode*) self), (ValaExpression*) self, (ValaExpression*) contains_call);
result = vala_code_node_check ((ValaCodeNode*) contains_call, analyzer);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valabinaryexpression.vala new/vala-0.10.2/vala/valabinaryexpression.vala
--- old/vala-0.10.1/vala/valabinaryexpression.vala 2010-09-10 09:35:01.000000000 +0200
+++ new/vala-0.10.2/vala/valabinaryexpression.vala 2010-12-23 15:47:06.000000000 +0100
@@ -473,7 +473,7 @@
return false;
}
- var contains_call = new MethodCall (new MemberAccess (right, "contains"));
+ var contains_call = new MethodCall (new MemberAccess (right, "contains", source_reference), source_reference);
contains_call.add_argument (left);
parent_node.replace_expression (this, contains_call);
return contains_call.check (analyzer);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valaelementaccess.c new/vala-0.10.2/vala/valaelementaccess.c
--- old/vala-0.10.1/vala/valaelementaccess.c 2010-10-26 20:19:20.000000000 +0200
+++ new/vala-0.10.2/vala/valaelementaccess.c 2010-12-28 19:51:43.000000000 +0100
@@ -1759,9 +1759,9 @@
vala_expression_set_value_type ((ValaExpression*) self, _tmp26_ = (ValaDataType*) vala_list_get (_tmp25_ = vala_data_type_get_type_arguments (vala_expression_get_value_type (vala_element_access_get_container (self))), i));
_vala_code_node_unref0 (_tmp26_);
_vala_collection_object_unref0 (_tmp25_);
- ma = vala_member_access_new (vala_element_access_get_container (self), "get", NULL);
+ ma = vala_member_access_new (vala_element_access_get_container (self), "get", vala_code_node_get_source_reference ((ValaCodeNode*) self));
vala_member_access_add_type_argument (ma, vala_expression_get_value_type ((ValaExpression*) self));
- get_call = vala_method_call_new ((ValaExpression*) ma, NULL);
+ get_call = vala_method_call_new ((ValaExpression*) ma, vala_code_node_get_source_reference ((ValaCodeNode*) self));
vala_method_call_add_argument (get_call, (ValaExpression*) index);
vala_expression_set_target_type ((ValaExpression*) get_call, vala_expression_get_target_type ((ValaExpression*) self));
vala_code_node_replace_expression (vala_code_node_get_parent_node ((ValaCodeNode*) self), (ValaExpression*) self, (ValaExpression*) get_call);
@@ -1823,7 +1823,7 @@
ValaMemberAccess* _tmp33_;
ValaMethodCall* _tmp34_;
ValaMethodCall* get_call;
- get_call = (_tmp34_ = vala_method_call_new ((ValaExpression*) (_tmp33_ = vala_member_access_new (vala_element_access_get_container (self), "get", NULL)), NULL), _vala_code_node_unref0 (_tmp33_), _tmp34_);
+ get_call = (_tmp34_ = vala_method_call_new ((ValaExpression*) (_tmp33_ = vala_member_access_new (vala_element_access_get_container (self), "get", vala_code_node_get_source_reference ((ValaCodeNode*) self))), vala_code_node_get_source_reference ((ValaCodeNode*) self)), _vala_code_node_unref0 (_tmp33_), _tmp34_);
{
ValaList* _tmp35_;
ValaIterator* _tmp36_;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valaelementaccess.vala new/vala-0.10.2/vala/valaelementaccess.vala
--- old/vala-0.10.1/vala/valaelementaccess.vala 2010-10-08 23:05:49.000000000 +0200
+++ new/vala-0.10.2/vala/valaelementaccess.vala 2010-12-23 15:47:06.000000000 +0100
@@ -179,9 +179,9 @@
value_type = container.value_type.get_type_arguments ().get (i);
// replace element access by call to generic get method
- var ma = new MemberAccess (container, "get");
+ var ma = new MemberAccess (container, "get", source_reference);
ma.add_type_argument (value_type);
- var get_call = new MethodCall (ma);
+ var get_call = new MethodCall (ma, source_reference);
get_call.add_argument (index);
get_call.target_type = this.target_type;
parent_node.replace_expression (this, get_call);
@@ -201,7 +201,7 @@
} else {
var get_method = container.value_type.get_member ("get") as Method;
if (get_method != null) {
- var get_call = new MethodCall (new MemberAccess (container, "get"));
+ var get_call = new MethodCall (new MemberAccess (container, "get", source_reference), source_reference);
foreach (Expression e in get_indices ()) {
get_call.add_argument (e);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valagenieparser.c new/vala-0.10.2/vala/valagenieparser.c
--- old/vala-0.10.1/vala/valagenieparser.c 2010-10-26 20:19:21.000000000 +0200
+++ new/vala-0.10.2/vala/valagenieparser.c 2010-12-28 19:51:44.000000000 +0100
@@ -1069,16 +1069,6 @@
typedef struct _ValaMemberInitializer ValaMemberInitializer;
typedef struct _ValaMemberInitializerClass ValaMemberInitializerClass;
-#define VALA_TYPE_SCOPE (vala_scope_get_type ())
-#define VALA_SCOPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SCOPE, ValaScope))
-#define VALA_SCOPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SCOPE, ValaScopeClass))
-#define VALA_IS_SCOPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SCOPE))
-#define VALA_IS_SCOPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SCOPE))
-#define VALA_SCOPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SCOPE, ValaScopeClass))
-
-typedef struct _ValaScope ValaScope;
-typedef struct _ValaScopeClass ValaScopeClass;
-
#define VALA_TYPE_ASSIGNMENT_OPERATOR (vala_assignment_operator_get_type ())
#define VALA_TYPE_STATEMENT (vala_statement_get_type ())
@@ -1861,14 +1851,6 @@
ValaArrayCreationExpression* vala_array_creation_expression_new (ValaDataType* element_type, gint rank, ValaInitializerList* initializer_list, ValaSourceReference* source_reference);
ValaArrayCreationExpression* vala_array_creation_expression_construct (GType object_type, ValaDataType* element_type, gint rank, ValaInitializerList* initializer_list, ValaSourceReference* source_reference);
void vala_array_creation_expression_append_size (ValaArrayCreationExpression* self, ValaExpression* size);
-gpointer vala_scope_ref (gpointer instance);
-void vala_scope_unref (gpointer instance);
-GParamSpec* vala_param_spec_scope (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
-void vala_value_set_scope (GValue* value, gpointer v_object);
-void vala_value_take_scope (GValue* value, gpointer v_object);
-gpointer vala_value_get_scope (const GValue* value);
-GType vala_scope_get_type (void) G_GNUC_CONST;
-char* vala_data_type_to_qualified_string (ValaDataType* self, ValaScope* scope);
static ValaMemberInitializer* vala_genie_parser_parse_member_initializer (ValaGenieParser* self, GError** error);
ValaMemberInitializer* vala_member_initializer_new (const char* name, ValaExpression* initializer, ValaSourceReference* source_reference);
ValaMemberInitializer* vala_member_initializer_construct (GType object_type, const char* name, ValaExpression* initializer, ValaSourceReference* source_reference);
@@ -5623,7 +5605,6 @@
ValaSourceReference* _tmp4_;
ValaObjectCreationExpression* _tmp5_;
ValaObjectCreationExpression* expr;
- char* t;
g_return_val_if_fail (self != NULL, NULL);
g_return_val_if_fail (element_type != NULL, NULL);
list_member = NULL;
@@ -5635,32 +5616,7 @@
vala_member_access_add_type_argument (list_member, element_type);
vala_member_access_set_creation_member (list_member, TRUE);
expr = (_tmp5_ = vala_object_creation_expression_new (list_member, _tmp4_ = vala_genie_parser_get_src (self, begin)), _vala_source_reference_unref0 (_tmp4_), _tmp5_);
- t = vala_data_type_to_qualified_string (element_type, NULL);
- if (_vala_strcmp0 (t, "string") == 0) {
- ValaSourceReference* _tmp6_;
- ValaMemberAccess* _tmp7_;
- ValaSourceReference* _tmp8_;
- ValaMemberAccess* _tmp9_;
- parent_member = (_tmp7_ = vala_member_access_new (NULL, "GLib", _tmp6_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (parent_member), _tmp7_);
- _vala_source_reference_unref0 (_tmp6_);
- vala_object_creation_expression_add_argument (expr, (ValaExpression*) (_tmp9_ = vala_member_access_new ((ValaExpression*) parent_member, "str_equal", _tmp8_ = vala_genie_parser_get_src (self, begin))));
- _vala_code_node_unref0 (_tmp9_);
- _vala_source_reference_unref0 (_tmp8_);
- } else {
- if (_vala_strcmp0 (t, "int") == 0) {
- ValaSourceReference* _tmp10_;
- ValaMemberAccess* _tmp11_;
- ValaSourceReference* _tmp12_;
- ValaMemberAccess* _tmp13_;
- parent_member = (_tmp11_ = vala_member_access_new (NULL, "GLib", _tmp10_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (parent_member), _tmp11_);
- _vala_source_reference_unref0 (_tmp10_);
- vala_object_creation_expression_add_argument (expr, (ValaExpression*) (_tmp13_ = vala_member_access_new ((ValaExpression*) parent_member, "int_equal", _tmp12_ = vala_genie_parser_get_src (self, begin))));
- _vala_code_node_unref0 (_tmp13_);
- _vala_source_reference_unref0 (_tmp12_);
- }
- }
result = (ValaExpression*) expr;
- _g_free0 (t);
_vala_code_node_unref0 (parent_member);
_vala_code_node_unref0 (list_member);
return result;
@@ -5671,75 +5627,27 @@
ValaExpression* result = NULL;
ValaMemberAccess* dict_member;
ValaMemberAccess* parent_member;
- ValaMemberAccess* dict_hash;
- ValaMemberAccess* dict_equal;
ValaSourceReference* _tmp0_;
ValaMemberAccess* _tmp1_;
ValaSourceReference* _tmp2_;
ValaMemberAccess* _tmp3_;
- char* key_type_name;
- ValaSourceReference* _tmp16_;
- ValaObjectCreationExpression* _tmp17_;
+ ValaSourceReference* _tmp4_;
+ ValaObjectCreationExpression* _tmp5_;
ValaObjectCreationExpression* expr;
- gboolean _tmp18_ = FALSE;
g_return_val_if_fail (self != NULL, NULL);
g_return_val_if_fail (key_type != NULL, NULL);
g_return_val_if_fail (value_type != NULL, NULL);
dict_member = NULL;
parent_member = NULL;
- dict_hash = NULL;
- dict_equal = NULL;
parent_member = (_tmp1_ = vala_member_access_new (NULL, "Gee", _tmp0_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (parent_member), _tmp1_);
_vala_source_reference_unref0 (_tmp0_);
dict_member = (_tmp3_ = vala_member_access_new ((ValaExpression*) parent_member, "HashMap", _tmp2_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (dict_member), _tmp3_);
_vala_source_reference_unref0 (_tmp2_);
vala_member_access_add_type_argument (dict_member, key_type);
vala_member_access_add_type_argument (dict_member, value_type);
- key_type_name = vala_data_type_to_qualified_string (key_type, NULL);
- if (_vala_strcmp0 (key_type_name, "string") == 0) {
- ValaSourceReference* _tmp4_;
- ValaMemberAccess* _tmp5_;
- ValaSourceReference* _tmp6_;
- ValaMemberAccess* _tmp7_;
- ValaSourceReference* _tmp8_;
- ValaMemberAccess* _tmp9_;
- parent_member = (_tmp5_ = vala_member_access_new (NULL, "GLib", _tmp4_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (parent_member), _tmp5_);
- _vala_source_reference_unref0 (_tmp4_);
- dict_hash = (_tmp7_ = vala_member_access_new ((ValaExpression*) parent_member, "str_hash", _tmp6_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (dict_hash), _tmp7_);
- _vala_source_reference_unref0 (_tmp6_);
- dict_equal = (_tmp9_ = vala_member_access_new ((ValaExpression*) parent_member, "str_equal", _tmp8_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (dict_equal), _tmp9_);
- _vala_source_reference_unref0 (_tmp8_);
- } else {
- if (_vala_strcmp0 (key_type_name, "int") == 0) {
- ValaSourceReference* _tmp10_;
- ValaMemberAccess* _tmp11_;
- ValaSourceReference* _tmp12_;
- ValaMemberAccess* _tmp13_;
- ValaSourceReference* _tmp14_;
- ValaMemberAccess* _tmp15_;
- parent_member = (_tmp11_ = vala_member_access_new (NULL, "GLib", _tmp10_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (parent_member), _tmp11_);
- _vala_source_reference_unref0 (_tmp10_);
- dict_hash = (_tmp13_ = vala_member_access_new ((ValaExpression*) parent_member, "int_hash", _tmp12_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (dict_hash), _tmp13_);
- _vala_source_reference_unref0 (_tmp12_);
- dict_equal = (_tmp15_ = vala_member_access_new ((ValaExpression*) parent_member, "int_equal", _tmp14_ = vala_genie_parser_get_src (self, begin)), _vala_code_node_unref0 (dict_equal), _tmp15_);
- _vala_source_reference_unref0 (_tmp14_);
- }
- }
vala_member_access_set_creation_member (dict_member, TRUE);
- expr = (_tmp17_ = vala_object_creation_expression_new (dict_member, _tmp16_ = vala_genie_parser_get_src (self, begin)), _vala_source_reference_unref0 (_tmp16_), _tmp17_);
- if (dict_hash != NULL) {
- _tmp18_ = dict_equal != NULL;
- } else {
- _tmp18_ = FALSE;
- }
- if (_tmp18_) {
- vala_object_creation_expression_add_argument (expr, (ValaExpression*) dict_hash);
- vala_object_creation_expression_add_argument (expr, (ValaExpression*) dict_equal);
- }
+ expr = (_tmp5_ = vala_object_creation_expression_new (dict_member, _tmp4_ = vala_genie_parser_get_src (self, begin)), _vala_source_reference_unref0 (_tmp4_), _tmp5_);
result = (ValaExpression*) expr;
- _g_free0 (key_type_name);
- _vala_code_node_unref0 (dict_equal);
- _vala_code_node_unref0 (dict_hash);
_vala_code_node_unref0 (parent_member);
_vala_code_node_unref0 (dict_member);
return result;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vala/valagenieparser.vala new/vala-0.10.2/vala/valagenieparser.vala
--- old/vala-0.10.1/vala/valagenieparser.vala 2010-10-26 20:08:36.000000000 +0200
+++ new/vala-0.10.2/vala/valagenieparser.vala 2010-12-23 15:33:59.000000000 +0100
@@ -1095,50 +1095,22 @@
list_member.creation_member = true;
var expr = new ObjectCreationExpression (list_member, get_src (begin));
- var t = element_type.to_qualified_string ();
- if (t == "string") {
- parent_member = new MemberAccess (null, "GLib", get_src (begin));
- expr.add_argument (new MemberAccess (parent_member, "str_equal", get_src (begin)));
-
- } else if (t == "int") {
- parent_member = new MemberAccess (null, "GLib", get_src (begin));
- expr.add_argument (new MemberAccess (parent_member, "int_equal", get_src (begin)));
- }
-
return expr;
}
Expression parse_dict_creation_expression (SourceLocation begin, DataType key_type, DataType value_type) throws ParseError {
- MemberAccess dict_member = null, parent_member = null, dict_hash = null, dict_equal = null;
+ MemberAccess dict_member = null, parent_member = null;
parent_member = new MemberAccess (null, "Gee", get_src (begin));
dict_member = new MemberAccess (parent_member, "HashMap", get_src (begin));
dict_member.add_type_argument (key_type);
dict_member.add_type_argument (value_type);
- var key_type_name = key_type.to_qualified_string ();
- if (key_type_name == "string") {
- parent_member = new MemberAccess (null, "GLib", get_src (begin));
- dict_hash = new MemberAccess (parent_member, "str_hash", get_src (begin));
- dict_equal = new MemberAccess (parent_member, "str_equal", get_src (begin));
-
- } else if (key_type_name == "int") {
- parent_member = new MemberAccess (null, "GLib", get_src (begin));
- dict_hash = new MemberAccess (parent_member, "int_hash", get_src (begin));
- dict_equal = new MemberAccess (parent_member, "int_equal", get_src (begin));
- }
-
dict_member.creation_member = true;
var expr = new ObjectCreationExpression (dict_member, get_src (begin));
- if (dict_hash != null && dict_equal != null) {
- expr.add_argument (dict_hash);
- expr.add_argument (dict_equal);
- }
-
-
return expr;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/clutter-1.0.vapi new/vala-0.10.2/vapi/clutter-1.0.vapi
--- old/vala-0.10.1/vapi/clutter-1.0.vapi 2010-10-08 23:02:49.000000000 +0200
+++ new/vala-0.10.2/vapi/clutter-1.0.vapi 2010-12-23 15:44:30.000000000 +0100
@@ -643,7 +643,7 @@
public static unowned Clutter.Event @get ();
public uint32 get_button ();
public uint get_click_count ();
- public void get_coords (float x, float y);
+ public void get_coords (out float x, out float y);
public unowned Clutter.InputDevice get_device ();
public int get_device_id ();
public Clutter.InputDeviceType get_device_type ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/dbus-glib-1.vapi new/vala-0.10.2/vapi/dbus-glib-1.vapi
--- old/vala-0.10.1/vapi/dbus-glib-1.vapi 2010-10-19 20:32:29.000000000 +0200
+++ new/vala-0.10.2/vapi/dbus-glib-1.vapi 2010-12-28 19:46:36.000000000 +0100
@@ -159,7 +159,7 @@
public bool get_path_decomposed (out char[] path );
}
- [CCode (cprefix = "DBUS_MESSAGE_TYPE_")]
+ [CCode (cname = "int", cprefix = "DBUS_MESSAGE_TYPE_")]
public enum RawMessageType {
INVALID,
METHOD_CALL,
@@ -168,7 +168,7 @@
SIGNAL
}
- [CCode (cprefix = "DBUS_TYPE_")]
+ [CCode (cname = "int", cprefix = "DBUS_TYPE_")]
public enum RawType {
INVALID,
BYTE,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/gdk-pixbuf-2.0.vapi new/vala-0.10.2/vapi/gdk-pixbuf-2.0.vapi
--- old/vala-0.10.1/vapi/gdk-pixbuf-2.0.vapi 2010-09-10 09:35:56.000000000 +0200
+++ new/vala-0.10.2/vapi/gdk-pixbuf-2.0.vapi 2010-12-23 15:33:15.000000000 +0100
@@ -3,7 +3,7 @@
[CCode (cprefix = "Gdk", lower_case_cprefix = "gdk_", gir_namespace = "GdkPixbuf", gir_version = "2.0")]
namespace Gdk {
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
- public class Pixbuf : GLib.Object {
+ public class Pixbuf : GLib.Object, GLib.Icon {
[CCode (has_construct_function = false)]
public Pixbuf (Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height);
public unowned Gdk.Pixbuf add_alpha (bool substitute_color, uchar r, uchar g, uchar b);
@@ -36,7 +36,7 @@
public int get_bits_per_sample ();
public Gdk.Colorspace get_colorspace ();
public static unowned Gdk.PixbufFormat get_file_info (string filename, out int width, out int height);
- public static unowned GLib.SList get_formats ();
+ public static GLib.SList<weak Gdk.PixbufFormat> get_formats ();
public bool get_has_alpha ();
public int get_height ();
public int get_n_channels ();
@@ -89,12 +89,15 @@
public bool on_currently_loading_frame ();
}
[Compact]
- [CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
+ [CCode (copy_function = "gdk_pixbuf_format_copy", type_id = "GDK_TYPE_PIXBUF_FORMAT", cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
public class PixbufFormat {
+ public unowned Gdk.PixbufFormat copy ();
public unowned string get_description ();
- public unowned string get_extensions ();
+ [CCode (array_length = false, array_null_terminated = true)]
+ public string[] get_extensions ();
public unowned string get_license ();
- public unowned string get_mime_types ();
+ [CCode (array_length = false, array_null_terminated = true)]
+ public string[] get_mime_types ();
public unowned string get_name ();
public bool is_disabled ();
public bool is_scalable ();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/gio-2.0.vapi new/vala-0.10.2/vapi/gio-2.0.vapi
--- old/vala-0.10.1/vapi/gio-2.0.vapi 2010-10-26 20:11:04.000000000 +0200
+++ new/vala-0.10.2/vapi/gio-2.0.vapi 2010-12-23 15:26:31.000000000 +0100
@@ -148,7 +148,7 @@
public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
[CCode (type = "void", has_construct_function = false)]
public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
- public uint add_filter (GLib.DBusMessageFilterFunction filter_function, GLib.DestroyNotify user_data_free_func);
+ public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
public async GLib.Variant call (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void close (GLib.Cancellable? cancellable = null, GLib.AsyncReadyCallback callback);
@@ -733,8 +733,8 @@
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOSchedulerJob {
- public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify? notify);
- public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify? notify);
+ public bool send_to_mainloop (owned GLib.SourceFunc func);
+ public void send_to_mainloop_async (owned GLib.SourceFunc func);
}
[CCode (cheader_filename = "gio/gio.h")]
public class IOStream : GLib.Object {
@@ -1396,7 +1396,7 @@
public abstract bool add_supports_type (string content_type) throws GLib.Error;
public abstract bool can_delete ();
public abstract bool can_remove_supports_type ();
- public static unowned GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
+ public static unowned GLib.AppInfo create_from_commandline (string commandline, string? application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
public bool @delete ();
[NoWrapper]
public abstract bool do_delete ();
@@ -1570,7 +1570,7 @@
[NoWrapper]
public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
public abstract uint hash (void* icon);
- public static unowned GLib.Icon new_for_string (string str) throws GLib.Error;
+ public static GLib.Icon? new_for_string (string str) throws GLib.Error;
public string to_string ();
[NoWrapper]
public abstract bool to_tokens (GLib.GenericArray tokens, int out_version);
@@ -2406,7 +2406,7 @@
[CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
public static void g_io_scheduler_cancel_all_jobs ();
[CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
- public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? notify, int io_priority, GLib.Cancellable? cancellable = null);
+ public static void g_io_scheduler_push_job (owned GLib.IOSchedulerJobFunc job_func, int io_priority, GLib.Cancellable? cancellable = null);
[CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
[CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/gio-unix-2.0.vapi new/vala-0.10.2/vapi/gio-unix-2.0.vapi
--- old/vala-0.10.1/vapi/gio-unix-2.0.vapi 2010-10-19 20:58:09.000000000 +0200
+++ new/vala-0.10.2/vapi/gio-unix-2.0.vapi 2010-12-23 15:49:39.000000000 +0100
@@ -52,7 +52,7 @@
[CCode (cname = "g_unix_mount_compare")]
public int compare (GLib.UnixMountEntry mount);
[CCode (cname = "g_unix_mounts_get")]
- public static GLib.List @get (ref uint64? time_read = null);
+ public static GLib.List @get (out uint64 time_read = null);
[CCode (cname = "g_unix_mount_get_device_path")]
public unowned string get_device_path ();
[CCode (cname = "g_unix_mount_get_fs_type")]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/glib-2.0.vapi new/vala-0.10.2/vapi/glib-2.0.vapi
--- old/vala-0.10.1/vapi/glib-2.0.vapi 2010-10-26 20:07:02.000000000 +0200
+++ new/vala-0.10.2/vapi/glib-2.0.vapi 2010-12-23 15:42:55.000000000 +0100
@@ -43,6 +43,7 @@
}
[SimpleType]
+[GIR (name = "gint8")]
[CCode (cname = "gchar", cprefix = "g_ascii_", cheader_filename = "glib.h", type_id = "G_TYPE_CHAR", marshaller_type_name = "CHAR", get_value_function = "g_value_get_char", set_value_function = "g_value_set_char", default_value = "\'\\0\'", type_signature = "y")]
[IntegerType (rank = 2, min = 0, max = 127)]
public struct char {
@@ -73,6 +74,7 @@
}
[SimpleType]
+[GIR (name = "guint8")]
[CCode (cname = "guchar", cheader_filename = "glib.h", type_id = "G_TYPE_UCHAR", marshaller_type_name = "UCHAR", get_value_function = "g_value_get_uchar", set_value_function = "g_value_set_uchar", default_value = "\'\\0\'", type_signature = "y")]
[IntegerType (rank = 3, min = 0, max = 255)]
public struct uchar {
@@ -265,6 +267,7 @@
}
[SimpleType]
+[GIR (name = "gulong")]
[CCode (cname = "gsize", cheader_filename = "glib.h", type_id = "G_TYPE_ULONG", marshaller_type_name = "ULONG", get_value_function = "g_value_get_ulong", set_value_function = "g_value_set_ulong", default_value = "0UL")]
[IntegerType (rank = 9)]
public struct size_t {
@@ -293,6 +296,7 @@
}
[SimpleType]
+[GIR (name = "glong")]
[CCode (cname = "gssize", cheader_filename = "glib.h", type_id = "G_TYPE_LONG", marshaller_type_name = "LONG", get_value_function = "g_value_get_long", set_value_function = "g_value_set_long", default_value = "0L")]
[IntegerType (rank = 8)]
public struct ssize_t {
@@ -2410,7 +2414,9 @@
PICTURES,
PUBLIC_SHARE,
TEMPLATES,
- VIDEOS
+ VIDEOS,
+ [CCode (cname = "G_USER_N_DIRECTORIES")]
+ N_DIRECTORIES
}
namespace Path {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/gobject-2.0.vapi new/vala-0.10.2/vapi/gobject-2.0.vapi
--- old/vala-0.10.1/vapi/gobject-2.0.vapi 2010-10-08 23:04:57.000000000 +0200
+++ new/vala-0.10.2/vapi/gobject-2.0.vapi 2010-10-29 18:50:52.000000000 +0200
@@ -405,8 +405,8 @@
public unowned EnumValue[] values;
}
- [Compact]
- public class EnumValue {
+ [CCode (has_type_id = false)]
+ public struct EnumValue {
public int value;
public unowned string value_name;
public unowned string value_nick;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/gstreamer-0.10.vapi new/vala-0.10.2/vapi/gstreamer-0.10.vapi
--- old/vala-0.10.1/vapi/gstreamer-0.10.vapi 2010-09-10 09:35:01.000000000 +0200
+++ new/vala-0.10.2/vapi/gstreamer-0.10.vapi 2010-12-23 15:48:43.000000000 +0100
@@ -411,7 +411,7 @@
public void lost_state ();
public void lost_state_full (bool new_base_time);
public static Gst.Element? make_from_uri (Gst.URIType type, string uri, string? elementname);
- public void message_full (Gst.MessageType type, GLib.Quark domain, int code, string? text, string? debug, string file, string function, int line);
+ public void message_full (Gst.MessageType type, GLib.Quark domain, int code, owned string? text, owned string? debug, string file, string function, int line);
public bool post_message (owned Gst.Message message);
public virtual Gst.Clock? provide_clock ();
public bool provides_clock ();
@@ -821,11 +821,11 @@
public bool activate_pull (bool active);
public bool activate_push (bool active);
[CCode (cname = "gst_pad_add_buffer_probe_full")]
- public uint add_buffer_probe (owned Gst.BufferProbeCallback handler);
+ public uint add_buffer_probe ([CCode (type = "GCallback")] owned Gst.BufferProbeCallback handler);
[CCode (cname = "gst_pad_add_data_probe_full")]
- public uint add_data_probe (owned Gst.DataProbeCallback handler);
+ public uint add_data_probe ([CCode (type = "GCallback")] owned Gst.DataProbeCallback handler);
[CCode (cname = "gst_pad_add_event_probe_full")]
- public uint add_event_probe (owned Gst.EventProbeCallback handler);
+ public uint add_event_probe ([CCode (type = "GCallback")] owned Gst.EventProbeCallback handler);
public Gst.FlowReturn alloc_buffer (uint64 offset, int size, Gst.Caps caps, out Gst.Buffer buf);
public Gst.FlowReturn alloc_buffer_and_set_caps (uint64 offset, int size, Gst.Caps caps, out Gst.Buffer buf);
public bool can_link (Gst.Pad sinkpad);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/gtk+-2.0.vapi new/vala-0.10.2/vapi/gtk+-2.0.vapi
--- old/vala-0.10.1/vapi/gtk+-2.0.vapi 2010-10-08 23:05:19.000000000 +0200
+++ new/vala-0.10.2/vapi/gtk+-2.0.vapi 2010-12-23 15:43:31.000000000 +0100
@@ -600,7 +600,7 @@
protected CellRenderer ();
public virtual bool activate (Gdk.Event event, Gtk.Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.CellRendererState flags);
public void get_alignment (float xalign, float yalign);
- public void get_fixed_size (int width, int height);
+ public void get_fixed_size (out int width, out int height);
public void get_padding (int xpad, int ypad);
public bool get_sensitive ();
public abstract void get_size (Gtk.Widget widget, Gdk.Rectangle? cell_area, out int x_offset, out int y_offset, out int width, out int height);
@@ -1869,7 +1869,7 @@
public bool has_icon (string icon_name);
public GLib.List<string> list_contexts ();
public GLib.List<string> list_icons (string context);
- public unowned Gdk.Pixbuf load_icon (string icon_name, int size, Gtk.IconLookupFlags flags) throws GLib.Error;
+ public Gdk.Pixbuf? load_icon (string icon_name, int size, Gtk.IconLookupFlags flags) throws GLib.Error;
public Gtk.IconInfo lookup_by_gicon (GLib.Icon icon, int size, Gtk.IconLookupFlags flags);
public Gtk.IconInfo lookup_icon (string icon_name, int size, Gtk.IconLookupFlags flags);
public void prepend_search_path (string path);
@@ -3943,7 +3943,7 @@
[NoWrapper]
public virtual void draw_vline (Gdk.Window window, Gtk.StateType state_type, Gdk.Rectangle area, Gtk.Widget widget, string detail, int y1_, int y2_, int x);
public void @get (GLib.Type widget_type, ...);
- public void get_style_property (GLib.Type widget_type, string property_name, GLib.Value value);
+ public void get_style_property (GLib.Type widget_type, string property_name, out GLib.Value value);
public void get_valist (GLib.Type widget_type, string first_property_name, void* var_args);
[NoWrapper]
public virtual void init_from_rc (Gtk.RcStyle rc_style);
@@ -5403,7 +5403,7 @@
public void show_now ();
public void style_attach ();
public void style_get (...);
- public void style_get_property (string property_name, GLib.Value value);
+ public void style_get_property (string property_name, out GLib.Value value);
public void style_get_valist (string first_property_name, void* var_args);
public void thaw_child_notify ();
public bool translate_coordinates (Gtk.Widget dest_widget, int src_x, int src_y, out int dest_x, out int dest_y);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/mx-1.0.vapi new/vala-0.10.2/vapi/mx-1.0.vapi
--- old/vala-0.10.1/vapi/mx-1.0.vapi 2010-09-10 09:35:01.000000000 +0200
+++ new/vala-0.10.2/vapi/mx-1.0.vapi 2010-12-23 15:45:02.000000000 +0100
@@ -80,6 +80,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class Bin : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
+ [CCode (has_construct_function = false)]
+ protected Bin ();
public void allocate_child (Clutter.ActorBox box, Clutter.AllocationFlags flags);
public void get_alignment (Mx.Align x_align, Mx.Align y_align);
public unowned Clutter.Actor get_child ();
@@ -124,6 +126,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class BoxLayoutChild : Clutter.ChildMeta {
+ [CCode (has_construct_function = false)]
+ protected BoxLayoutChild ();
public static bool get_expand (Mx.BoxLayout box_layout, Clutter.Actor child);
public static Mx.Align get_x_align (Mx.BoxLayout box_layout, Clutter.Actor child);
public static bool get_x_fill (Mx.BoxLayout box_layout, Clutter.Actor child);
@@ -174,6 +178,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class Clipboard : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Clipboard ();
public static unowned Mx.Clipboard get_default ();
public void get_text (Mx.ClipboardCallbackFunc callback);
public void set_text (string text);
@@ -224,6 +230,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class DeformTexture : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
+ [CCode (has_construct_function = false)]
+ protected DeformTexture ();
[NoWrapper]
public virtual void deform (Cogl.TextureVertex vertex, float width, float height);
public void get_resolution (int tiles_x, int tiles_y);
@@ -293,6 +301,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class FloatingWidget : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
+ [CCode (has_construct_function = false)]
+ protected FloatingWidget ();
[NoWrapper]
public virtual void floating_paint (Clutter.Actor actor);
[NoWrapper]
@@ -300,6 +310,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class FocusManager : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected FocusManager ();
public unowned Mx.Focusable get_focused ();
public static unowned Mx.FocusManager get_for_stage (Clutter.Stage stage);
public unowned Clutter.Stage get_stage ();
@@ -565,6 +577,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class TableChild : Clutter.ChildMeta {
+ [CCode (has_construct_function = false)]
+ protected TableChild ();
public static int get_column (Mx.Table table, Clutter.Actor child);
public static int get_column_span (Mx.Table table, Clutter.Actor child);
public static int get_row (Mx.Table table, Clutter.Actor child);
@@ -598,6 +612,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class TextureCache : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected TextureCache ();
[NoWrapper]
public virtual void error_loading (GLib.Error error);
public unowned Clutter.Actor get_actor (string path);
@@ -646,6 +662,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class Tooltip : Mx.FloatingWidget, Clutter.Scriptable, Mx.Stylable {
+ [CCode (has_construct_function = false)]
+ protected Tooltip ();
public unowned string get_text ();
public Clutter.Geometry get_tip_area ();
public void hide ();
@@ -673,6 +691,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public class Widget : Clutter.Actor, Clutter.Scriptable, Mx.Stylable {
+ [CCode (has_construct_function = false)]
+ protected Widget ();
public void get_available_area (Clutter.ActorBox allocation, Clutter.ActorBox area);
public unowned Clutter.Actor get_background_image ();
public unowned Clutter.Actor get_border_image ();
@@ -725,8 +745,8 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public interface Draggable : Clutter.Actor {
- public abstract void disable ();
- public abstract void enable ();
+ public void disable ();
+ public void enable ();
public Mx.DragAxis get_axis ();
public unowned Clutter.Actor get_drag_actor ();
public uint get_drag_threshold ();
@@ -744,9 +764,9 @@
}
[CCode (cheader_filename = "mx/mx.h")]
public interface Droppable : Clutter.Actor {
- public abstract bool accept_drop (Mx.Draggable draggable);
- public abstract void disable ();
- public abstract void enable ();
+ public bool accept_drop (Mx.Draggable draggable);
+ public void disable ();
+ public void enable ();
public bool is_enabled ();
public bool drop_enabled { get; set; }
public signal void drop (Clutter.Actor draggable, float event_x, float event_y, int button, Clutter.ModifierType modifiers);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/pango.vapi new/vala-0.10.2/vapi/pango.vapi
--- old/vala-0.10.1/vapi/pango.vapi 2010-10-26 20:10:26.000000000 +0200
+++ new/vala-0.10.2/vapi/pango.vapi 2010-12-23 15:26:49.000000000 +0100
@@ -74,7 +74,7 @@
public void change (Pango.Attribute attr);
public Pango.AttrList copy ();
public unowned Pango.AttrList filter (Pango.AttrFilterFunc func, void* data);
- public unowned Pango.AttrIterator get_iterator ();
+ public Pango.AttrIterator get_iterator ();
public void insert (owned Pango.Attribute attr);
public void insert_before (Pango.Attribute attr);
public void splice (Pango.AttrList other, int pos, int len);
@@ -267,7 +267,7 @@
public Pango.GlyphItem copy ();
public void get_logical_widths (string text, int logical_widths);
public void letter_space (string text, Pango.LogAttr[] log_attrs, int letter_spacing);
- public unowned Pango.GlyphItem split (string text, int split_index);
+ public Pango.GlyphItem split (string text, int split_index);
}
[Compact]
[CCode (copy_function = "pango_glyph_string_copy", type_id = "PANGO_TYPE_GLYPH_STRING", cheader_filename = "pango/pango.h")]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/sqlite3.vapi new/vala-0.10.2/vapi/sqlite3.vapi
--- old/vala-0.10.1/vapi/sqlite3.vapi 2010-10-08 23:02:49.000000000 +0200
+++ new/vala-0.10.2/vapi/sqlite3.vapi 2010-12-23 15:28:44.000000000 +0100
@@ -87,7 +87,12 @@
public void rollback_hook (RollbackCallback? rollback_hook);
public void update_hook (UpdateCallback? update_hook);
public int create_function (string zFunctionName, int nArg, int eTextRep, void * user_data, UserFuncCallback? xFunc, UserFuncCallback? xStep, UserFuncFinishCallback? xFinal);
+ public int create_function_v2 (string zFunctionName, int nArg, int eTextRep, void * user_data, UserFuncCallback? xFunc, UserFuncCallback? xStep, UserFuncFinishCallback? xFinal, GLib.DestroyNotify? destroy = null);
public int create_collation (string zName, int eTextRep, [CCode (delegate_target_pos = 2.9, type = "int (*)(void *, int, const void *, int, const void *)")] CompareCallback xCompare);
+
+ public int wal_autocheckpoint (int N);
+ public int wal_checkpoint (string zDb);
+ public void* wal_hook (WALHookCallback cb, string db_name, int page_count);
}
[CCode (instance_pos = 0)]
@@ -107,6 +112,8 @@
public delegate void UpdateCallback (Sqlite.Action action, string dbname, string table, int64 rowid);
[CCode (instance_pos = 0)]
public delegate int CompareCallback (int alen, void* a, int blen, void* b);
+ [CCode (instance_pos = 0)]
+ public delegate int WALHookCallback (Sqlite.Database db, string dbname, int pages);
public unowned string? compileoption_get (int n);
public int compileoption_used (string option_name);
@@ -392,8 +399,11 @@
public static int64 used ();
[CCode (cname = "sqlite3_memory_highwater")]
public static int64 highwater (int reset = 0);
+ [Deprecated (since = "3.7.2", replacement = "Sqlite.Memory.soft_heap_limit64")]
[CCode (cname = "sqlite3_soft_heap_limit")]
public static void soft_heap_limit (int limit);
+ [CCode (cname = "sqlite3_soft_heap_limit64")]
+ public static int64 soft_heap_limit64 (int64 limit = -1);
}
[Compact]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/vapi/zlib.vapi new/vala-0.10.2/vapi/zlib.vapi
--- old/vala-0.10.1/vapi/zlib.vapi 2010-09-10 09:35:02.000000000 +0200
+++ new/vala-0.10.2/vapi/zlib.vapi 2010-12-23 15:42:47.000000000 +0100
@@ -29,52 +29,52 @@
namespace ZLib {
[CCode (cname="int", cprefix="Z_")]
public enum Flush {
- NO_FLUSH = 0,
- SYNC_FLUSH = 2,
- FULL_FLUSH = 3,
- FINISH = 4,
- BLOCK = 5
+ NO_FLUSH,
+ SYNC_FLUSH,
+ FULL_FLUSH,
+ FINISH,
+ BLOCK
}
[CCode (cname="int", cprefix="Z_")]
public enum Status {
- OK = 0,
- STREAM_END = 1,
- NEED_DICT = 2,
- ERRNO = (-1),
- STREAM_ERROR = (-2),
- DATA_ERROR = (-3),
- MEM_ERROR = (-4),
- BUF_ERROR = (-5),
- VERSION_ERROR = (-6)
+ OK,
+ STREAM_END,
+ NEED_DICT,
+ ERRNO,
+ STREAM_ERROR,
+ DATA_ERROR,
+ MEM_ERROR,
+ BUF_ERROR,
+ VERSION_ERROR
}
[CCode (cname="int", cprefix="Z_")]
public enum Level {
- NO_COMPRESSION = 0,
- BEST_SPEED = 1,
- BEST_COMPRESSION = 9,
- DEFAULT_COMPRESSION = (-1)
+ NO_COMPRESSION,
+ BEST_SPEED,
+ BEST_COMPRESSION,
+ DEFAULT_COMPRESSION
}
[CCode (cname="int", cprefix="Z_")]
public enum Strategy {
- DEFAULT_STRATEGY = 0,
- FILTERED = 1,
- HUFFMAN_ONLY = 2,
- RLE = 3,
- FIXED = 4
+ DEFAULT_STRATEGY,
+ FILTERED,
+ HUFFMAN_ONLY,
+ RLE,
+ FIXED
}
[CCode (cname="int", cprefix="Z_")]
public enum Data {
- BINARY = 0,
- ASCII = 1,
- UNKNOWN = 2
+ BINARY,
+ ASCII,
+ UNKNOWN
}
[CCode (cname="int", cprefix="Z_")]
public enum Algorithm {
- DEFLATED = 8
+ DEFLATED
}
[CCode (cname="int", cprefix="Z_")]
public enum Initial {
- NULL = 0
+ NULL
}
namespace VERSION {
[CCode (cname = "ZLIB_VERSION")]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vala-0.10.1/.version new/vala-0.10.2/.version
--- old/vala-0.10.1/.version 2010-10-26 20:18:25.000000000 +0200
+++ new/vala-0.10.2/.version 2010-12-28 19:51:37.000000000 +0100
@@ -1 +1 @@
-0.10.1
+0.10.2
++++++ vala-bgo638902-shotwell-fix.patch ++++++
commit 2390d7519a482e442f6b98308f1b720381828b43
Author: Jürg Billeter
Date: Sat Jan 8 14:25:59 2011 +0100
Fix formal_target_type in conditional expressions
Fixes bug 638902.
# Comment out the .vala part to avoid regenerating the .c, which requires vala
#Index: vala-0.10.2/vala/valaconditionalexpression.vala
#===================================================================
#--- vala-0.10.2.orig/vala/valaconditionalexpression.vala
#+++ vala-0.10.2/vala/valaconditionalexpression.vala
#@@ -1,6 +1,6 @@
# /* valaconditionalexpression.vala
# *
#- * Copyright (C) 2006-2009 Jürg Billeter
#+ * Copyright (C) 2006-2011 Jürg Billeter
# *
# * This library is free software; you can redistribute it and/or
# * modify it under the terms of the GNU Lesser General Public
#@@ -176,6 +176,7 @@ public class Vala.ConditionalExpression
# false_block.replace_statement (false_decl, false_stmt);
#
# var ma = new MemberAccess.simple (local.name, source_reference);
#+ ma.formal_target_type = formal_target_type;
# ma.target_type = target_type;
# ma.check (analyzer);
#
Index: vala-0.10.2/vala/valaconditionalexpression.c
===================================================================
--- vala-0.10.2.orig/vala/valaconditionalexpression.c
+++ vala-0.10.2/vala/valaconditionalexpression.c
@@ -1382,6 +1382,8 @@ ValaAssignment* vala_assignment_construc
ValaExpressionStatement* vala_expression_statement_new (ValaExpression* expression, ValaSourceReference* source_reference);
ValaExpressionStatement* vala_expression_statement_construct (GType object_type, ValaExpression* expression, ValaSourceReference* source_reference);
void vala_block_replace_statement (ValaBlock* self, ValaStatement* old_stmt, ValaStatement* new_stmt);
+ValaDataType* vala_expression_get_formal_target_type (ValaExpression* self);
+void vala_expression_set_formal_target_type (ValaExpression* self, ValaDataType* value);
ValaCodeNode* vala_code_node_get_parent_node (ValaCodeNode* self);
void vala_code_node_replace_expression (ValaCodeNode* self, ValaExpression* old_node, ValaExpression* new_node);
void vala_code_node_set_parent_node (ValaCodeNode* self, ValaCodeNode* value);
@@ -1576,6 +1578,7 @@ static gboolean vala_conditional_express
vala_block_replace_statement (true_block, (ValaStatement*) true_decl, (ValaStatement*) true_stmt);
vala_block_replace_statement (false_block, (ValaStatement*) false_decl, (ValaStatement*) false_stmt);
ma = vala_member_access_new_simple (vala_symbol_get_name ((ValaSymbol*) local), vala_code_node_get_source_reference ((ValaCodeNode*) self));
+ vala_expression_set_formal_target_type ((ValaExpression*) ma, vala_expression_get_formal_target_type ((ValaExpression*) self));
vala_expression_set_target_type ((ValaExpression*) ma, vala_expression_get_target_type ((ValaExpression*) self));
vala_code_node_check ((ValaCodeNode*) ma, analyzer);
vala_code_node_replace_expression (vala_code_node_get_parent_node ((ValaCodeNode*) self), (ValaExpression*) self, (ValaExpression*) ma);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org