]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
14 years agoSourceFile: change the definition of 'used' 0.10-parallel
Ryan Lortie [Mon, 20 Sep 2010 10:56:32 +0000 (06:56 -0400)] 
SourceFile: change the definition of 'used'

Consider a source file as used only if actual C code (or declarations)
have been generated from something in that source file.

This greatly reduces the number of dependencies listed for compilations
that touch a large number of symbols in trivial ways without really
making use of them (for example, when listing a very large number of
unused fast-vapi files, as parvala does).

14 years agoCheck accessibility of constants
Jürg Billeter [Fri, 10 Sep 2010 16:07:41 +0000 (18:07 +0200)] 
Check accessibility of constants

14 years agoReport error for private virtual methods
Jürg Billeter [Fri, 10 Sep 2010 15:57:44 +0000 (17:57 +0200)] 
Report error for private virtual methods

14 years agoCodeWriter: Do not do any sorting in FAST mode
Jürg Billeter [Fri, 10 Sep 2010 15:34:43 +0000 (17:34 +0200)] 
CodeWriter: Do not do any sorting in FAST mode

Order of virtual methods matters for fast-vapis

14 years agoUnresolvedType: Override is_disposable method
Jürg Billeter [Fri, 10 Sep 2010 07:48:45 +0000 (09:48 +0200)] 
UnresolvedType: Override is_disposable method

14 years agoDo not require interface implementations in fast-vapi
Jürg Billeter [Fri, 10 Sep 2010 07:38:40 +0000 (09:38 +0200)] 
Do not require interface implementations in fast-vapi

14 years agoCodeWriter: Support external symbols
Jürg Billeter [Fri, 10 Sep 2010 07:32:48 +0000 (09:32 +0200)] 
CodeWriter: Support external symbols

14 years agoWork around code writer issues with address of expressions
Jürg Billeter [Fri, 10 Sep 2010 15:40:03 +0000 (17:40 +0200)] 
Work around code writer issues with address of expressions

14 years agoCodeWriter: Support non-constant expressions as default arguments
Jürg Billeter [Fri, 10 Sep 2010 06:47:53 +0000 (08:47 +0200)] 
CodeWriter: Support non-constant expressions as default arguments

14 years agocodegen: Fix external constants
Jürg Billeter [Fri, 10 Sep 2010 06:33:52 +0000 (08:33 +0200)] 
codegen: Fix external constants

14 years agocodegen: Skip visiting fast-vapis
Ryan Lortie [Sat, 28 Aug 2010 17:39:26 +0000 (19:39 +0200)] 
codegen: Skip visiting fast-vapis

Skip visiting fast-vapis in the code generator when not writing a header
file.  For builds with a very large number of fast-vapi files this can
reduce compile time by more than 50%.

14 years agoCodeWriter: Do not replace .vapi if unchanged
Ryan Lortie [Sat, 28 Aug 2010 14:30:05 +0000 (16:30 +0200)] 
CodeWriter: Do not replace .vapi if unchanged

Steal some logic from the CCodeWriter to avoid replacing .vapi output if
nothing has changed.

14 years agocodegen: Run partial codegen on fast vapi files
Ryan Lortie [Sat, 28 Aug 2010 13:11:24 +0000 (15:11 +0200)] 
codegen: Run partial codegen on fast vapi files

Run the C code generator for fast-vapi files in order to populate the
header file.  Add some early-exits to avoid doing unnecessary work (and
to avoid crashes caused by assumptions that there will actually be
code to output).

14 years agoCodeWriter: Omit cheader_filename for fast vapi
Ryan Lortie [Fri, 27 Aug 2010 12:25:56 +0000 (14:25 +0200)] 
CodeWriter: Omit cheader_filename for fast vapi

14 years agovalac: Output make-style dependency file
Ryan Lortie [Wed, 25 Aug 2010 14:10:30 +0000 (16:10 +0200)] 
valac: Output make-style dependency file

Add a --deps= option to the compiler to write out a make-style
dependency file.  The name of the target used is the name of the
dependency file itself.

This lets the dependency file serve as a stamp for the C file (which may
or may not be touched depending if it was changed).  The dependency
output is always touched.

14 years agoProperties, Methods: Relax some checks
Ryan Lortie [Tue, 24 Aug 2010 19:58:32 +0000 (21:58 +0200)] 
Properties, Methods: Relax some checks

Only enforce property/method body requirements in the case that the
SourceFileType is SOURCE.  This allows fast-vapi to slip through without
complaints.

14 years agoSymbol: Add SourceFileType source_type
Ryan Lortie [Tue, 24 Aug 2010 19:51:55 +0000 (21:51 +0200)] 
Symbol: Add SourceFileType source_type

Pass this through from the SourceFileType of the source file.  If there
is no source file, use SourceFileType.NONE.

Redefine 'external_package' in terms of this new property.

14 years agoSourceFileType: Add SourceFileType.NONE
Ryan Lortie [Tue, 24 Aug 2010 19:49:17 +0000 (21:49 +0200)] 
SourceFileType: Add SourceFileType.NONE

14 years agovalac: Add --use-fast-vapi commandline argument
Ryan Lortie [Tue, 24 Aug 2010 17:33:50 +0000 (19:33 +0200)] 
valac: Add --use-fast-vapi commandline argument

Accepts an input file that was previously produced with the --fast-vapi=
commandline argument.

14 years agoSourceFile: Add SourceFileType.FAST enum value
Ryan Lortie [Tue, 24 Aug 2010 17:31:04 +0000 (19:31 +0200)] 
SourceFile: Add SourceFileType.FAST enum value

14 years agovalac: Add --fast-vapi= commandline argument
Ryan Lortie [Tue, 24 Aug 2010 17:32:25 +0000 (19:32 +0200)] 
valac: Add --fast-vapi= commandline argument

Outputs a file with the given name using CodeWriterType.FAST

14 years agoCodeWriter: Add CodeWriterType.FAST enum value
Ryan Lortie [Tue, 24 Aug 2010 17:22:21 +0000 (19:22 +0200)] 
CodeWriter: Add CodeWriterType.FAST enum value

Designed to emit .vapi files before the resolution stage has run.

Includes 'using' in the output so that the resolver can figure it out
later.

Also includes the values of constants and enums so that headers are not
required.

14 years agoMemberAccess: Fix crash in .to_string()
Ryan Lortie [Tue, 24 Aug 2010 17:25:43 +0000 (19:25 +0200)] 
MemberAccess: Fix crash in .to_string()

MemberAccess.to_string() would crash if it was run before the symbol
resolver.  Fix that.

14 years agoUnresolvedType: Improve .to_string()
Ryan Lortie [Tue, 24 Aug 2010 17:24:58 +0000 (19:24 +0200)] 
UnresolvedType: Improve .to_string()

Include nullable designation and generic type arguments in the output.

14 years agoCodeWriter: Introduce CodeWriterType enumeration
Ryan Lortie [Tue, 24 Aug 2010 17:10:24 +0000 (19:10 +0200)] 
CodeWriter: Introduce CodeWriterType enumeration

CodeWriterType has 3 possible values:
  DUMP
  INTERNAL
  EXTERNAL

and replaces CodeWriter.emit_internal and CodeWriter.dump_tree booleans
with a new field called 'type'.

14 years agoSourceFile: Introduce SourceFileType enumeration
Ryan Lortie [Tue, 24 Aug 2010 17:01:39 +0000 (19:01 +0200)] 
SourceFile: Introduce SourceFileType enumeration

SourceFileType has 2 possible values:
  SOURCE
  PACKAGE

and replaces the CodeWriter.external_package boolean with a new field
called 'file_type'.

14 years agoSimplify attribute objects
Jürg Billeter [Sat, 21 Aug 2010 11:01:26 +0000 (13:01 +0200)] 
Simplify attribute objects

14 years agoDo not create empty type parameter lists in parser
Jürg Billeter [Sat, 21 Aug 2010 10:11:58 +0000 (12:11 +0200)] 
Do not create empty type parameter lists in parser

14 years agoImprove performance of SemanticAnalyzer.is_type_accessible
Jürg Billeter [Sat, 21 Aug 2010 10:07:28 +0000 (12:07 +0200)] 
Improve performance of SemanticAnalyzer.is_type_accessible

14 years agoCreate array lists in Method class only on demand
Jürg Billeter [Sat, 21 Aug 2010 09:55:35 +0000 (11:55 +0200)] 
Create array lists in Method class only on demand

14 years agoSupport iteration via index to improve performance
Jürg Billeter [Wed, 11 Aug 2010 21:46:41 +0000 (23:46 +0200)] 
Support iteration via index to improve performance

14 years agogee: Replace interfaces by abstract classes to improve performance
Jürg Billeter [Wed, 11 Aug 2010 20:23:09 +0000 (22:23 +0200)] 
gee: Replace interfaces by abstract classes to improve performance

14 years agoReport error on invalid using directives
Aaron Andersen [Fri, 20 Aug 2010 16:02:14 +0000 (18:02 +0200)] 
Report error on invalid using directives

Fixes bug 626103.

14 years agoRelease 0.10.0 0.10.0
Jürg Billeter [Fri, 17 Sep 2010 22:24:31 +0000 (00:24 +0200)] 
Release 0.10.0

14 years agogio-2.0: Fix g_settings_list_* bindings
Jürg Billeter [Fri, 17 Sep 2010 21:55:36 +0000 (23:55 +0200)] 
gio-2.0: Fix g_settings_list_* bindings

Fixes bug 629860.

14 years agogio-2.0: Update to 2.26 branch
Jürg Billeter [Fri, 17 Sep 2010 21:41:00 +0000 (23:41 +0200)] 
gio-2.0: Update to 2.26 branch

14 years agoglib-2.0: Add GDateTime bindings
Jürg Billeter [Thu, 16 Sep 2010 12:46:47 +0000 (14:46 +0200)] 
glib-2.0: Add GDateTime bindings

14 years agogtksourceview-2.0: make SourceCompletionProvider.get_icon nullable
Evan Nemerson [Fri, 17 Sep 2010 06:21:09 +0000 (23:21 -0700)] 
gtksourceview-2.0: make SourceCompletionProvider.get_icon nullable

Fixes bug 628774.

14 years agoposix: add getpwnam binding
Robert Ancell [Fri, 17 Sep 2010 06:12:58 +0000 (23:12 -0700)] 
posix: add getpwnam binding

Fixes bug 628933.

14 years agoreadline: fix the completion_matches binding
Philip Withnall [Tue, 7 Sep 2010 16:06:58 +0000 (17:06 +0100)] 
readline: fix the completion_matches binding

14 years agoreadline: fix the cname of CompentryFunc
Philip Withnall [Tue, 7 Sep 2010 16:06:26 +0000 (17:06 +0100)] 
readline: fix the cname of CompentryFunc

14 years agoreadline: fix the signature of CompletionFunc
Philip Withnall [Tue, 7 Sep 2010 15:37:00 +0000 (16:37 +0100)] 
readline: fix the signature of CompletionFunc

14 years agoreadline: fix the attempted_completion_function binding
Philip Withnall [Tue, 7 Sep 2010 15:10:31 +0000 (16:10 +0100)] 
readline: fix the attempted_completion_function binding

Fixes bug 628966.

14 years agoglib-2.0: Add several missing symbols for glib-2.26.
Evan Nemerson [Fri, 17 Sep 2010 05:32:07 +0000 (22:32 -0700)] 
glib-2.0: Add several missing symbols for glib-2.26.

14 years agoglib-2.0: Add g_key_file_get/set_int64 bindings
Jürg Billeter [Thu, 16 Sep 2010 20:46:39 +0000 (22:46 +0200)] 
glib-2.0: Add g_key_file_get/set_int64 bindings

14 years agogirparser: Report error on unsupported GIR version
Jürg Billeter [Thu, 16 Sep 2010 15:39:58 +0000 (17:39 +0200)] 
girparser: Report error on unsupported GIR version

Fixes bug 629805.

14 years agoD-Bus: Add missing gio.h include for GDBus servers
Jürg Billeter [Thu, 16 Sep 2010 14:51:51 +0000 (16:51 +0200)] 
D-Bus: Add missing gio.h include for GDBus servers

14 years agoD-Bus: Do not use GLib.Application in tests
Jürg Billeter [Wed, 15 Sep 2010 20:52:37 +0000 (22:52 +0200)] 
D-Bus: Do not use GLib.Application in tests

GApplication will not be available in GLib 2.26.

14 years agogirparser: Fix detection of asynchronous methods
Jürg Billeter [Wed, 15 Sep 2010 18:39:38 +0000 (20:39 +0200)] 
girparser: Fix detection of asynchronous methods

14 years agoWrite GIR version 1.2 instead of version 1.1
Evan Nemerson [Mon, 6 Sep 2010 22:40:03 +0000 (15:40 -0700)] 
Write GIR version 1.2 instead of version 1.1

Fixes bug 628927.

14 years agogirparser: Set array_length_cname
Jürg Billeter [Wed, 15 Sep 2010 18:09:16 +0000 (20:09 +0200)] 
girparser: Set array_length_cname

Fixes bug 629691.

14 years agoAdd array_length_cname attribute for parameters
Jürg Billeter [Wed, 15 Sep 2010 18:00:37 +0000 (20:00 +0200)] 
Add array_length_cname attribute for parameters

14 years agogirparser: Update to parameter index handling used in GIR version 1.2
Jürg Billeter [Mon, 13 Sep 2010 20:07:54 +0000 (22:07 +0200)] 
girparser: Update to parameter index handling used in GIR version 1.2

14 years agogirparser: Update to prefix handling used in GIR version 1.2
Jürg Billeter [Mon, 13 Sep 2010 20:05:21 +0000 (22:05 +0200)] 
girparser: Update to prefix handling used in GIR version 1.2

14 years agogirparser: Support alias syntax used in GIR version 1.2
Jürg Billeter [Mon, 13 Sep 2010 18:54:19 +0000 (20:54 +0200)] 
girparser: Support alias syntax used in GIR version 1.2

14 years agogirparser: Support type names used in GIR version 1.2
Jürg Billeter [Mon, 13 Sep 2010 18:44:06 +0000 (20:44 +0200)] 
girparser: Support type names used in GIR version 1.2

14 years agoFix crash on invalid constructor chain up
Jürg Billeter [Mon, 13 Sep 2010 20:19:39 +0000 (22:19 +0200)] 
Fix crash on invalid constructor chain up

Fixes bug 628182.

14 years agoCodeWriter: add 'new' to methods where appropriate
Ryan Lortie [Sat, 11 Sep 2010 16:16:37 +0000 (12:16 -0400)] 
CodeWriter: add 'new' to methods where appropriate

14 years agocodegen: Fix GValue memory leak after boxing
Jürg Billeter [Thu, 9 Sep 2010 17:53:54 +0000 (19:53 +0200)] 
codegen: Fix GValue memory leak after boxing

Fixes bug 623543.

14 years agocodegen: Report error on unsupported use of array concatenation
Jürg Billeter [Thu, 9 Sep 2010 15:58:10 +0000 (17:58 +0200)] 
codegen: Report error on unsupported use of array concatenation

14 years agogio-2.0: Fix ownership of two AppLaunchContext method return values.
Evan Nemerson [Tue, 7 Sep 2010 22:53:10 +0000 (15:53 -0700)] 
gio-2.0: Fix ownership of two AppLaunchContext method return values.

14 years agoRelease 0.9.8 0.9.8
Jürg Billeter [Sat, 4 Sep 2010 15:05:57 +0000 (17:05 +0200)] 
Release 0.9.8

14 years agocodegen: Fix lcopy_value function generated for fundamental classes
Jürg Billeter [Fri, 3 Sep 2010 15:04:01 +0000 (17:04 +0200)] 
codegen: Fix lcopy_value function generated for fundamental classes

14 years agocodegen: Fix preconditions in asynchronous methods
Jürg Billeter [Fri, 3 Sep 2010 14:55:44 +0000 (16:55 +0200)] 
codegen: Fix preconditions in asynchronous methods

14 years agoposix: Fix SockAddr cname.
BianShaoLei [Thu, 2 Sep 2010 18:42:59 +0000 (11:42 -0700)] 
posix: Fix SockAddr cname.

Fixes bug 628470.

14 years agowebkit-1.0: Mark WebKitWebView::create_web_view return value as owned.
Luca Bruno [Tue, 31 Aug 2010 07:55:59 +0000 (09:55 +0200)] 
webkit-1.0: Mark WebKitWebView::create_web_view return value as owned.

Fixes bug 625569.

14 years agogtk+-2.0, gtk+-3.0: Make gtk_image_set_from_pixmap parameters be nullable.
Jakob Westhoff [Mon, 30 Aug 2010 10:55:55 +0000 (12:55 +0200)] 
gtk+-2.0, gtk+-3.0: Make gtk_image_set_from_pixmap parameters be nullable.

Fixes bug 627778.

14 years agogio-2.0: GLib.Icon.to_string() return value is not unowned
Luca Bruno [Sat, 28 Aug 2010 09:52:44 +0000 (11:52 +0200)] 
gio-2.0: GLib.Icon.to_string() return value is not unowned

Fixes bug 628119.

14 years agogio-2.0: Make Application.quit_with_data.platform_data nullable.
Evan Nemerson [Sun, 22 Aug 2010 18:04:56 +0000 (11:04 -0700)] 
gio-2.0: Make Application.quit_with_data.platform_data nullable.

14 years agodova: Do not generate empty type structs for interfaces
Jürg Billeter [Sun, 22 Aug 2010 09:14:42 +0000 (11:14 +0200)] 
dova: Do not generate empty type structs for interfaces

14 years agoglib-2.0: Fix Variant.dup_string binding.
Evan Nemerson [Sun, 22 Aug 2010 03:47:28 +0000 (20:47 -0700)] 
glib-2.0: Fix Variant.dup_string binding.

14 years agocodewriter: Correctly write deprecated replacement attributes.
Evan Nemerson [Sat, 7 Aug 2010 18:15:12 +0000 (11:15 -0700)] 
codewriter: Correctly write deprecated replacement attributes.

14 years agovapigen: Fix chain up warning in subclasses of generated bindings
Jürg Billeter [Sat, 21 Aug 2010 16:47:40 +0000 (18:47 +0200)] 
vapigen: Fix chain up warning in subclasses of generated bindings

14 years agoFix writing of construct_function attribute
Jürg Billeter [Sat, 21 Aug 2010 16:36:42 +0000 (18:36 +0200)] 
Fix writing of construct_function attribute

14 years agoFix assignment to construct properties
Jürg Billeter [Sat, 21 Aug 2010 16:01:29 +0000 (18:01 +0200)] 
Fix assignment to construct properties

Based on patch by Marc-André Lureau, fixes bug 624259.

14 years agogtk+-2.0, gtk+-3.0: Make Gtk.Menu.attach_to_widget.detacher nullable.
Luca Bruno [Fri, 20 Aug 2010 20:30:18 +0000 (22:30 +0200)] 
gtk+-2.0, gtk+-3.0: Make Gtk.Menu.attach_to_widget.detacher nullable.

Fixes bug 626580.

14 years agoFix error handling for character literals
Jürg Billeter [Fri, 20 Aug 2010 19:19:10 +0000 (21:19 +0200)] 
Fix error handling for character literals

14 years agovapigen: Replace use of string.len () by string.length
Jürg Billeter [Fri, 20 Aug 2010 18:42:39 +0000 (20:42 +0200)] 
vapigen: Replace use of string.len () by string.length

14 years agoglib-2.0: Deprecate string.len () in favor of string.length
Jürg Billeter [Fri, 20 Aug 2010 18:04:59 +0000 (20:04 +0200)] 
glib-2.0: Deprecate string.len () in favor of string.length

14 years agoSupport implicit GValue conversion when assigning to properties
Luca Bruno [Thu, 10 Jun 2010 09:00:13 +0000 (11:00 +0200)] 
Support implicit GValue conversion when assigning to properties

Thanks to Michal Hruby for the test case.

Fixes bug 620706.

14 years agoExtend signal details to support string expressions
Luca Bruno [Fri, 20 Aug 2010 15:13:44 +0000 (17:13 +0200)] 
Extend signal details to support string expressions

Fixes bug 566909.

14 years agovalac: Add --fatal-warnings option
Evan Nemerson [Fri, 20 Aug 2010 14:58:18 +0000 (16:58 +0200)] 
valac: Add --fatal-warnings option

Fixes bug 615708.

14 years agoFix memory leak when freeing nullable structs without free function
Jürg Billeter [Fri, 20 Aug 2010 14:52:21 +0000 (16:52 +0200)] 
Fix memory leak when freeing nullable structs without free function

Based on patch by Geert Jordaens, fixes bug 571264.

14 years agoD-Bus: Add missing gio.h include for GDBus clients
Jürg Billeter [Fri, 20 Aug 2010 13:55:01 +0000 (15:55 +0200)] 
D-Bus: Add missing gio.h include for GDBus clients

14 years agoUse relative path as specified on the command-line in error messages
Jürg Billeter [Fri, 20 Aug 2010 13:30:50 +0000 (15:30 +0200)] 
Use relative path as specified on the command-line in error messages

Fixes bug 591683.

14 years agoDeprecate use of D-Bus GLib
Jürg Billeter [Fri, 20 Aug 2010 11:52:34 +0000 (13:52 +0200)] 
Deprecate use of D-Bus GLib

GDBus should be used instead.

14 years agoFix ellipsis parameter position in generated methods
Luca Bruno [Sun, 25 Jul 2010 07:03:31 +0000 (09:03 +0200)] 
Fix ellipsis parameter position in generated methods

Fixes bug 620673.

14 years agoAdd mutex field in priv structures for properties
Luca Bruno [Sat, 24 Jul 2010 19:20:33 +0000 (21:20 +0200)] 
Add mutex field in priv structures for properties

Fixes bug 625200.

14 years agoFix handling of exceptions in property accessors
Evan Nemerson [Mon, 16 Aug 2010 21:50:27 +0000 (14:50 -0700)] 
Fix handling of exceptions in property accessors

Fixes bug 627090.

14 years agoHonor array_length_type when generating method parameters
Luca Bruno [Mon, 16 Aug 2010 20:06:25 +0000 (22:06 +0200)] 
Honor array_length_type when generating method parameters

Based on patch by Sam Thursfield, fixes bug 621830.

14 years agoSupport abstract/virtual delegate properties with target
Luca Bruno [Fri, 20 Aug 2010 07:56:01 +0000 (09:56 +0200)] 
Support abstract/virtual delegate properties with target

Fixes bug 623888.

14 years agoFix crash on invalid switch expression
Carlo Teubner [Fri, 20 Aug 2010 07:52:25 +0000 (09:52 +0200)] 
Fix crash on invalid switch expression

Fixes bug 626397.

14 years agoCall ref_sink also on result of Object.newv if necessary
Jürg Billeter [Fri, 20 Aug 2010 07:46:29 +0000 (09:46 +0200)] 
Call ref_sink also on result of Object.newv if necessary

14 years agoFix ref_sink of Gtk.Window created with GLib.Object.new
Luca Bruno [Fri, 20 Aug 2010 07:39:23 +0000 (09:39 +0200)] 
Fix ref_sink of Gtk.Window created with GLib.Object.new

Fixes bug 618750.

14 years agoFix passing real non null struct arguments to vararg methods
Jürg Billeter [Fri, 6 Aug 2010 08:43:03 +0000 (10:43 +0200)] 
Fix passing real non null struct arguments to vararg methods

Based on patch by Luca Bruno, fixes bug 625758.

14 years agovapigen: Allow metadata to specify the type_name of properties.
Evan Nemerson [Fri, 20 Aug 2010 06:12:03 +0000 (23:12 -0700)] 
vapigen: Allow metadata to specify the type_name of properties.

14 years agorasqal: add *.deps-file
Florian Brosch [Thu, 19 Aug 2010 19:10:24 +0000 (21:10 +0200)] 
rasqal: add *.deps-file

14 years agosdl-gfx, sdl-image, sdl-mixer, sdl-net, sdl-ttf: add .deps-files
Florian Brosch [Thu, 19 Aug 2010 18:13:08 +0000 (20:13 +0200)] 
sdl-gfx, sdl-image, sdl-mixer, sdl-net, sdl-ttf: add .deps-files

14 years agoglib-2.0: Add g_int64_hash and g_int64_equal bindings.
Evan Nemerson [Thu, 19 Aug 2010 18:51:39 +0000 (11:51 -0700)] 
glib-2.0: Add g_int64_hash and g_int64_equal bindings.

14 years agodova: Add support for [NoThrow] methods
Jürg Billeter [Thu, 19 Aug 2010 09:25:41 +0000 (11:25 +0200)] 
dova: Add support for [NoThrow] methods