]>
git.ipfire.org Git - thirdparty/vala.git/log
Simon Werbeck [Wed, 26 Nov 2014 10:53:31 +0000 (11:53 +0100)]
Improve constructor chain-up checks
The only valid expressions for chaining up are:
* this[.named] ()
* base[.named] ()
* Object () - for GObject style chain-ups
This patch should prevent invalid chain-ups such as:
* Foo.named (), where Foo is not a valid base class
* (new Foo ()) (), i.e. invoking expressions that return an object
In preparation to fixing bug 567269, is_chainup() was turned into a
property.
Rico Tzschichholz [Mon, 5 Dec 2016 15:55:13 +0000 (16:55 +0100)]
vapi: Update GIR-based bindings
Yu Feng [Sun, 4 Dec 2016 01:43:06 +0000 (17:43 -0800)]
girwriter: Add fullname GIR attribute, and set fullname of GObject.Type
In gir files generated by Vala, members of type GType is referenced
with name "GObject.Type", but GObject-introspection expect it to be
"GType".
While there was no way to override the fully qualified GIR name of a
member, this patch adds [GIR (fullname = "GType")] to fix the mismatch
for GObject.Type.
https://bugzilla.gnome.org/show_bug.cgi?id=775591
Rico Tzschichholz [Thu, 1 Dec 2016 17:09:48 +0000 (18:09 +0100)]
codegen: Add function-prototypes for all register-type calls
Make sure to match the list of called register-type calls and include
implemented classes and interfaces.
https://bugzilla.gnome.org/show_bug.cgi?id=775446
Rico Tzschichholz [Thu, 1 Dec 2016 09:54:36 +0000 (10:54 +0100)]
gtk+-4.0: Update to 3.89.1+
e09b78f7
Rico Tzschichholz [Wed, 30 Nov 2016 18:27:17 +0000 (19:27 +0100)]
methodcall: Don't try to remove N_/NC_ while they are properly handled in C
This avoids messing around with the ownership and properly invokes copying
if needed.
https://bugzilla.gnome.org/show_bug.cgi?id=642350
Rico Tzschichholz [Tue, 29 Nov 2016 11:41:18 +0000 (12:41 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 27 Nov 2016 11:06:25 +0000 (12:06 +0100)]
tests: Add gir-test for fixed-size arrays
Rico Tzschichholz [Thu, 24 Nov 2016 14:47:45 +0000 (15:47 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 24 Nov 2016 08:23:40 +0000 (09:23 +0100)]
girparser: No support for fixed-size array as return-value
Due to the special syntax for those arrays it lead to omitting the
array-qualifier and therefore generating broken bindings.
Rico Tzschichholz [Tue, 22 Nov 2016 11:57:21 +0000 (12:57 +0100)]
Release 0.35.1
Rico Tzschichholz [Mon, 21 Nov 2016 17:00:02 +0000 (18:00 +0100)]
gstreamer-1.0: Make ElementFactory.get_static_pad_templates fully "unowned"
https://bugzilla.gnome.org/show_bug.cgi?id=774791
Rico Tzschichholz [Sun, 20 Nov 2016 19:46:12 +0000 (20:46 +0100)]
vapi: Update GIR-based bindings
Carlos Garnacho [Wed, 23 Mar 2016 14:04:37 +0000 (15:04 +0100)]
codegen: Use GTask instead of GSimpleAsyncResult if 2.36 target is selected
GTask brings some differences compared to GSimpleAsyncResult. Most namely,
g_task_return*() operations perform at once the async result data asignment
and the caller's main context activation. This is something that has to be
done exactly once, so the code flow has slight changes to ensure that.
Also, the async operation data used to be attached early through
g_simple_async_result_set_op_res_gpointer, only to be maybe replaced by
the real return data. If GTask is being used, we set this data through
g_task_set_task_data().
There's code out there relying on immediate return here when state is
!=0. As GTask always defers the finalization to an idle in its main
context, ensure the source is dispatched and the task completed before
returning.
https://bugzilla.gnome.org/show_bug.cgi?id=763345
Rico Tzschichholz [Wed, 16 Nov 2016 17:29:26 +0000 (18:29 +0100)]
gtk+-4.0: Update to 3.89.0+
48e7f419
Rico Tzschichholz [Sun, 13 Nov 2016 11:10:45 +0000 (12:10 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 13 Nov 2016 09:06:50 +0000 (10:06 +0100)]
gtk+-4.0: Update to 3.89.0+
2520662d
Rico Tzschichholz [Sat, 12 Nov 2016 12:18:36 +0000 (13:18 +0100)]
Fix build with -Werror=redundant-decls
Rico Tzschichholz [Fri, 11 Nov 2016 23:34:00 +0000 (00:34 +0100)]
Fix build with -Werror=enum-compare
Rico Tzschichholz [Fri, 11 Nov 2016 22:44:11 +0000 (23:44 +0100)]
tests: Enable -Werror=redundant-decls
Rico Tzschichholz [Fri, 11 Nov 2016 22:39:21 +0000 (23:39 +0100)]
codegen: Don't write declaration of CreationMethod for compact-classes twice
https://bugzilla.gnome.org/show_bug.cgi?id=772661
Rico Tzschichholz [Fri, 11 Nov 2016 20:59:05 +0000 (21:59 +0100)]
ccode: Fix and disable deprecating EnumValue
This still requires GCC 6.0 and later to work.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47043
Rico Tzschichholz [Fri, 11 Nov 2016 19:04:06 +0000 (20:04 +0100)]
Move "blurb", "nick" and "notify" into Property
Rico Tzschichholz [Fri, 11 Nov 2016 18:30:41 +0000 (19:30 +0100)]
Transform CCode*'s "deprecated" into using CCodeNode's "modifiers"
Rico Tzschichholz [Thu, 10 Nov 2016 17:23:28 +0000 (18:23 +0100)]
tests: Add missing main() in bug641418-*.test
Rico Tzschichholz [Thu, 10 Nov 2016 13:40:18 +0000 (14:40 +0100)]
codegen: g_free is already NULL-safe
Rico Tzschichholz [Thu, 10 Nov 2016 10:52:16 +0000 (11:52 +0100)]
codegen: Don't implicitly initialize local variables with an initializer
Rico Tzschichholz [Thu, 10 Nov 2016 09:44:11 +0000 (10:44 +0100)]
Don't initilize local variable if not requested
Rico Tzschichholz [Thu, 10 Nov 2016 09:29:10 +0000 (10:29 +0100)]
codegen: Remove unused create_local()
Rico Tzschichholz [Thu, 10 Nov 2016 09:24:42 +0000 (10:24 +0100)]
codegen: Make get_temp_variable() default to init=false
Rico Tzschichholz [Thu, 10 Nov 2016 08:21:19 +0000 (09:21 +0100)]
Revert "Always initialize temp variables to fix fatal warnings of GCC 4.8"
This reverts commit
eeb861dfba147bc37cfc7a9c22e1b582cf20ff31 .
Rico Tzschichholz [Tue, 8 Nov 2016 15:37:31 +0000 (16:37 +0100)]
Add G_GNUC_PRINTF/SCANF attribute for Printf/ScanfFormat functions
https://bugzilla.gnome.org/show_bug.cgi?id=710862
Rico Tzschichholz [Tue, 8 Nov 2016 11:09:25 +0000 (12:09 +0100)]
Transform CCodeParameter's "format_arg" into CCodeNode's "modifiers"
Rico Tzschichholz [Tue, 8 Nov 2016 11:00:48 +0000 (12:00 +0100)]
Add CCodeNode "modifiers" and transform CCodeFunction's "attributes" to it
Rico Tzschichholz [Thu, 20 Oct 2016 18:37:42 +0000 (20:37 +0200)]
vala: Clean up PropertyAccessor API
Alistair Thomas [Tue, 8 Nov 2016 00:36:58 +0000 (00:36 +0000)]
vala: check a property has an accessor and/or a mutator
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=773956
Rico Tzschichholz [Mon, 7 Nov 2016 20:50:07 +0000 (21:50 +0100)]
gtk+-4.0: Update to 3.89.0+
fa7d77d4
Rico Tzschichholz [Mon, 7 Nov 2016 20:03:56 +0000 (21:03 +0100)]
codegen: Add G_GNUC_FORMAT attribute for FormatArg function-pointers
Rico Tzschichholz [Mon, 7 Nov 2016 19:49:14 +0000 (20:49 +0100)]
tests: More cases of FormatArg functions
Jürg Billeter [Mon, 7 Nov 2016 19:23:38 +0000 (20:23 +0100)]
codegen: Add G_GNUC_FORMAT attribute for FormatArg functions
https://bugzilla.gnome.org/show_bug.cgi?id=774060
Jürg Billeter [Mon, 7 Nov 2016 19:22:59 +0000 (20:22 +0100)]
tests: Enable -Werror=format-nonliteral
Rico Tzschichholz [Mon, 7 Nov 2016 17:56:04 +0000 (18:56 +0100)]
vala: Pass through the format-literal
https://bugzilla.gnome.org/show_bug.cgi?id=774060
Richard Wiedenhöft [Sun, 28 Feb 2016 17:19:29 +0000 (18:19 +0100)]
Fix broken destruction of null-terminated arrays in async data structs
https://bugzilla.gnome.org/show_bug.cgi?id=762819
Rico Tzschichholz [Sun, 6 Nov 2016 09:11:50 +0000 (10:11 +0100)]
doap: Add description as required
Rico Tzschichholz [Sun, 6 Nov 2016 08:44:17 +0000 (09:44 +0100)]
Drop obsolete MAINTAINERS file
Rico Tzschichholz [Sun, 6 Nov 2016 08:41:43 +0000 (09:41 +0100)]
Add myself to doap
Rico Tzschichholz [Sun, 6 Nov 2016 08:26:48 +0000 (09:26 +0100)]
Update bugreport and package urls
Timm Bäder [Sat, 5 Nov 2016 13:02:16 +0000 (14:02 +0100)]
method: Print encountered type if return types mismatch
If a class overrides a method of a base type, print both the encountered
return type and the return type expected by the base class.
https://bugzilla.gnome.org/show_bug.cgi?id=769501
Rico Tzschichholz [Fri, 4 Nov 2016 08:13:22 +0000 (09:13 +0100)]
gtk+-4.0: Fix cheader_filename for Gdk and update to 3.89.0+
a47fb1c4
Andrea Del Signore [Thu, 3 Nov 2016 22:01:00 +0000 (23:01 +0100)]
girwriter: Use the correct tag- and element-name for an annotation
The correct syntax is <attribute name=".." value=".."/>
https://bugzilla.gnome.org/show_bug.cgi?id=769597
Severin Heiniger [Fri, 27 Jun 2014 05:12:14 +0000 (22:12 -0700)]
codegen: Allow underscores in type parameter names
https://bugzilla.gnome.org/show_bug.cgi?id=644938
Jürg Billeter [Tue, 1 Nov 2016 18:18:36 +0000 (19:18 +0100)]
tests: Enable -Werror=format-security
Jürg Billeter [Tue, 1 Nov 2016 17:03:17 +0000 (18:03 +0100)]
codegen: Avoid temporary variables for calls to [FormatArg] methods
This prevents bogus C compiler warnings with -Wformat-nonliteral.
https://bugzilla.gnome.org/show_bug.cgi?id=769229
Jürg Billeter [Tue, 1 Nov 2016 17:14:09 +0000 (18:14 +0100)]
Do not use non-literal printf format strings
Jürg Billeter [Tue, 1 Nov 2016 17:01:20 +0000 (18:01 +0100)]
Add [FormatArg] attribute to Parser.get_error
Jürg Billeter [Tue, 1 Nov 2016 17:00:25 +0000 (18:00 +0100)]
glib-2.0: Add [FormatArg] attributes to gettext functions
Jürg Billeter [Tue, 1 Nov 2016 16:48:15 +0000 (17:48 +0100)]
Support [FormatArg] attribute for parameters
This attribute specifies that the method takes and returns a printf
or scanf format string without modifying the order or types of expected
arguments, e.g., to translate the format string. This allows the
compiler to check the printf/scanf arguments.
Rico Tzschichholz [Wed, 2 Nov 2016 14:36:33 +0000 (15:36 +0100)]
Fix deprecation of class/struct fields
Respect the "deprecated" attributes given to class and struct fields, while
actually adding G_GNUC_DEPRECATED to their declaration.
Rico Tzschichholz [Wed, 2 Nov 2016 19:47:27 +0000 (20:47 +0100)]
codegen: Simplify get_enum_value_canonical_cconstant()
Rico Tzschichholz [Wed, 2 Nov 2016 19:46:50 +0000 (20:46 +0100)]
codegen: Simplify get_signal_canonical_constant()
Rico Tzschichholz [Thu, 3 Nov 2016 18:31:28 +0000 (19:31 +0100)]
glib-2.0: Add simple fast-path to string.replace()
Rico Tzschichholz [Thu, 3 Nov 2016 09:30:39 +0000 (10:30 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 2 Nov 2016 17:27:05 +0000 (18:27 +0100)]
gtk+-4.0: Update to 3.89.0+
c9a313a1
Rico Tzschichholz [Tue, 1 Nov 2016 16:48:55 +0000 (17:48 +0100)]
parser: Cache current token if possible
Rico Tzschichholz [Tue, 1 Nov 2016 15:07:48 +0000 (16:07 +0100)]
codegen: Mark GLibValue as internal
Jürg Billeter [Tue, 1 Nov 2016 18:10:36 +0000 (19:10 +0100)]
Check printf arguments of object creation expressions
Rico Tzschichholz [Thu, 28 Apr 2016 20:31:08 +0000 (22:31 +0200)]
vapi: Add unstable bindings for gtk+-4.0 (based on 3.89.0+
3c1f7267 )
Rico Tzschichholz [Tue, 1 Nov 2016 09:29:45 +0000 (10:29 +0100)]
Don't create constant Regex on demand and use static field where possible
Rico Tzschichholz [Tue, 1 Nov 2016 07:39:57 +0000 (08:39 +0100)]
ccodewriter: Use private _bol field instead of property
Rico Tzschichholz [Tue, 1 Nov 2016 07:16:50 +0000 (08:16 +0100)]
writer: Some string optimizations
Rico Tzschichholz [Mon, 31 Oct 2016 12:28:52 +0000 (13:28 +0100)]
field: Drop unused methods
Rico Tzschichholz [Sun, 30 Oct 2016 18:18:30 +0000 (19:18 +0100)]
vala: Add missing TokeType cases for to_string()
Rico Tzschichholz [Sun, 30 Oct 2016 14:47:02 +0000 (15:47 +0100)]
Avoid some string copying
Rico Tzschichholz [Sun, 30 Oct 2016 14:09:53 +0000 (15:09 +0100)]
ccode: Replace if-else-tree with switch
Rico Tzschichholz [Sun, 30 Oct 2016 13:53:44 +0000 (14:53 +0100)]
vala: Avoid superfluous string copying
Rico Tzschichholz [Fri, 21 Oct 2016 13:47:30 +0000 (15:47 +0200)]
codegen: Some simplifications
Rico Tzschichholz [Thu, 20 Oct 2016 19:15:58 +0000 (21:15 +0200)]
Use more "...".printf to concat strings
Rico Tzschichholz [Thu, 20 Oct 2016 18:47:54 +0000 (20:47 +0200)]
codegen: Drop superfluous dynamic-type cast
Rico Tzschichholz [Sun, 30 Oct 2016 09:30:20 +0000 (10:30 +0100)]
webkit2gtk-4.0: Update to 2.15.1
Rico Tzschichholz [Sun, 30 Oct 2016 07:11:24 +0000 (08:11 +0100)]
gdk-3.0: Update to 3.22.2+
0ad5d51d
Rico Tzschichholz [Thu, 27 Oct 2016 15:25:50 +0000 (17:25 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 13 Oct 2016 20:25:56 +0000 (22:25 +0200)]
build: Conditionally adjust VALAFLAGS in case of proper bootsrapped builds
This adds --hide-internal to VALAFLAGS to allow symbols to be marked
'internal' in Vala source files and not appear in the dynamic symbol table
of libvala.
The build system checks for minimum valac version to fullfill required
support of needed VALAFLAGS.
https://bugzilla.gnome.org/show_bug.cgi?id=771920
Evan Nemerson [Thu, 7 Oct 2010 08:07:30 +0000 (01:07 -0700)]
codegen: Only emit notify signals if the value actually changed
https://bugzilla.gnome.org/show_bug.cgi?id=631267
Rico Tzschichholz [Mon, 24 Oct 2016 06:52:20 +0000 (08:52 +0200)]
gdk-3.0: Update to 3.22.1+
a1115c05
Luca Bruno [Sat, 30 Jul 2011 14:41:34 +0000 (16:41 +0200)]
Add explicit copy method for arrays
https://bugzilla.gnome.org/show_bug.cgi?id=650663
Matthias Berndt [Fri, 7 Oct 2016 21:42:29 +0000 (23:42 +0200)]
vapi: Add missing type parameters for delegates
https://bugzilla.gnome.org/show_bug.cgi?id=772204
Rico Tzschichholz [Wed, 19 Oct 2016 16:35:13 +0000 (18:35 +0200)]
gdk-pixbuf-2.0: Use metadata instead of custom defintions for Pixbuf
Rico Tzschichholz [Wed, 19 Oct 2016 07:16:37 +0000 (09:16 +0200)]
glib-2.0: Some nullable arguments in GLib.Test.*
https://bugzilla.gnome.org/show_bug.cgi?id=772964
Rico Tzschichholz [Tue, 18 Oct 2016 21:24:34 +0000 (23:24 +0200)]
glib-2.0: Add "g_utf8_make_valid" binding
Rico Tzschichholz [Tue, 18 Oct 2016 21:19:54 +0000 (23:19 +0200)]
gio-unix-2.0: Add "g_unix_mounts_for" binding
Rico Tzschichholz [Tue, 18 Oct 2016 21:15:40 +0000 (23:15 +0200)]
gio-unix-2.0: Fix "g_unix_mount_at" binding
Rico Tzschichholz [Tue, 18 Oct 2016 20:54:26 +0000 (22:54 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 31 Jan 2016 21:25:16 +0000 (22:25 +0100)]
girparser: Avoid fatal handling of nameless unions
Philip Withnall [Tue, 18 Oct 2016 18:00:07 +0000 (11:00 -0700)]
ccode: Add missing newline after gnuc deprecations attribute
In generated C code, code wrapped by
G_GNUC_[BEGIN|END]_IGNORE_DEPRECATIONS was missing a newline after the
BEGIN attribute, which was causing compilation failures. Fix that by
adding the missing newline.
https://bugzilla.gnome.org/show_bug.cgi?id=773129
Rico Tzschichholz [Thu, 13 Oct 2016 07:39:47 +0000 (09:39 +0200)]
codegen: Support deprecating properties and their accessors
Use G_PARAM_DEPRECATED for properties and in addition their accessor
methods will be marked as deprecated.
Guard internal accessors calls with G_GNUC_BEGIN/END_IGNORED_DEPRECATIONS
to silence unavoidable warnings.
Based on patch by Simon Werbeck <simon.werbeck@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=732449
Rico Tzschichholz [Mon, 17 Oct 2016 11:59:48 +0000 (13:59 +0200)]
valaparser: Allow casts of pointer expressions without enclosing parens
Based on patch by Geert Jordaens <geert.jordaens@telenet.be>
https://bugzilla.gnome.org/show_bug.cgi?id=590641
Rico Tzschichholz [Thu, 6 Oct 2016 12:18:46 +0000 (14:18 +0200)]
Regenerate GIR-based bindings
Rico Tzschichholz [Thu, 6 Oct 2016 11:50:10 +0000 (13:50 +0200)]
girparser: Use type_id information from gir if not already overridden
Rico Tzschichholz [Sat, 15 Oct 2016 19:05:10 +0000 (21:05 +0200)]
Regenerate for GIR-based bindings including array-related metadata fixes
https://bugzilla.gnome.org/show_bug.cgi?id=772902
Rico Tzschichholz [Fri, 14 Oct 2016 07:22:27 +0000 (09:22 +0200)]
girparser: More complete parsing of field information
Especially to retrieve available array-length information.
https://bugzilla.gnome.org/show_bug.cgi?id=772902