Juerg Billeter [Mon, 1 Oct 2007 09:24:55 +0000 (09:24 +0000)]
add experimental support for registering new fundamental classed types
2007-10-01 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.valam gobject/valaccodegeneratorclass.vala,
gobject/valaccodegeneratormethod.vala,
gobject/valatyperegisterfunction.vala: add experimental support for
registering new fundamental classed types
svn path=/trunk/; revision=637
Juerg Billeter [Thu, 27 Sep 2007 20:49:44 +0000 (20:49 +0000)]
replace dummy property nick and blurb by property name
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorinterface.vala: replace dummy property nick
and blurb by property name
svn path=/trunk/; revision=636
Juerg Billeter [Thu, 27 Sep 2007 18:25:25 +0000 (18:25 +0000)]
improve fix_type_name, based on patch by Andrea Del Signore
2007-09-27 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: improve fix_type_name,
based on patch by Andrea Del Signore
svn path=/trunk/; revision=635
Juerg Billeter [Thu, 27 Sep 2007 12:55:56 +0000 (12:55 +0000)]
add CCodeElementAccessBinding class and move relevant code from
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/Makefile.am, gobject/valaccodeelementaccessbinding.vala,
gobject/valaccodegenerator.vala: add CCodeElementAccessBinding class
and move relevant code from CCodeGenerator to
CCodeElementAccessBinding
svn path=/trunk/; revision=634
Juerg Billeter [Thu, 27 Sep 2007 12:17:16 +0000 (12:17 +0000)]
add CCodeArrayCreationExpressionBinding class and move relevant code from
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/Makefile.am,
gobject/valaccodearraycreationexpressionbinding.vala,
gobject/valaccodegenerator.vala: add
CCodeArrayCreationExpressionBinding class and move relevant code from
CCodeGenerator to CCodeArrayCreationExpressionBinding
svn path=/trunk/; revision=633
Juerg Billeter [Thu, 27 Sep 2007 12:08:41 +0000 (12:08 +0000)]
refactor emit method
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/valaccodeassignmentbinding.vala: refactor emit method
svn path=/trunk/; revision=632
Juerg Billeter [Thu, 27 Sep 2007 11:59:26 +0000 (11:59 +0000)]
add CCodeExpressionBinding and CCodeAssignmentBinding classes and move
2007-09-27 Juerg Billeter <j@bitron.ch>
* vala/valacodebinding.vala, vala/valasemanticanalyzer.vala,
gobject/Makefile.am, gobject/valaccodeassignmentbinding.vala,
gobject/valaccodeexpressionbinding.vala,
gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorassignment.vala,
gobject/valaccodegeneratorclass.vala,
gobject/valaccodegeneratorsignal.vala: add CCodeExpressionBinding and
CCodeAssignmentBinding classes and move relevant code from
CCodeGenerator to CCodeAssignmentBinding
svn path=/trunk/; revision=631
Juerg Billeter [Wed, 26 Sep 2007 20:39:11 +0000 (20:39 +0000)]
support # comment lines in .metadata files, based on patch by Andrea Del
2007-09-26 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support # comment lines in .metadata
files, based on patch by Andrea Del Signore
svn path=/trunk/; revision=630
Juerg Billeter [Wed, 26 Sep 2007 20:35:28 +0000 (20:35 +0000)]
fix crash when using libvala without a code generator
2007-09-26 Juerg Billeter <j@bitron.ch>
* vala/valacodecontext.vala, vala/valacodegenerator.vala: fix crash
when using libvala without a code generator
svn path=/trunk/; revision=629
Juerg Billeter [Wed, 26 Sep 2007 20:26:10 +0000 (20:26 +0000)]
support custom cname for classes, based on patch by Andrea Del Signore
2007-09-26 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterfacewriter.vala: support custom
cname for classes, based on patch by Andrea Del Signore
svn path=/trunk/; revision=628
Juerg Billeter [Fri, 21 Sep 2007 13:03:35 +0000 (13:03 +0000)]
prepare support for classes based on GTypeInstance but not on GObject add
2007-09-21 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorclass.vala: prepare support for classes
based on GTypeInstance but not on GObject
* tests/classes.exp, tests/classes.vala: add simple test cases for
GTypeInstance-based classes
svn path=/trunk/; revision=627
Juerg Billeter [Fri, 21 Sep 2007 08:44:31 +0000 (08:44 +0000)]
add missing parent field for derived non-GObject classes
2007-09-21 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorclass.vala: add missing parent field for
derived non-GObject classes
svn path=/trunk/; revision=626
Raffaele Sandrini [Thu, 20 Sep 2007 21:23:19 +0000 (21:23 +0000)]
Fix memory leak with non reference counting reference types in property
2007-09-20 Raffaele Sandrini <raffaele@sandrini.ch>
* vala/valasemanticanalyzer.vala, gobject/valaccodegenerator.vala:
Fix memory leak with non reference counting reference types in
property getters, now we enforce an explicit ownership transfer in
such a case, fixes bug 472904
svn path=/trunk/; revision=625
Juerg Billeter [Thu, 20 Sep 2007 20:42:55 +0000 (20:42 +0000)]
create code nodes with factory methods to support backend-specific code
2007-09-20 Juerg Billeter <j@bitron.ch>
* vala/parser.y, vala/vala.h, vala/valacodecontext.vala,
vala/valacodegenerator.vala, gobject/Makefile.am,
gobject/valaccodebinding.vala, gobject/valaccodegenerator.vala,
gobject/valadbusbindingprovider.vala: create code nodes with factory
methods to support backend-specific code bindings
svn path=/trunk/; revision=624
Raffaele Sandrini [Thu, 20 Sep 2007 13:02:59 +0000 (13:02 +0000)]
Add support for ownership transfer with properties using the HASH (#)
2007-09-20 Raffaele Sandrini <raffaele@sandrini.ch>
* vala/parser.y: Add support for ownership transfer with properties
using the HASH (#) modifier e.g. public string!# foo { get; set; }
svn path=/trunk/; revision=623
Raffaele Sandrini [Thu, 20 Sep 2007 09:37:49 +0000 (09:37 +0000)]
add G.HashTable.size ()
2007-09-20 Raffaele Sandrini <raffaele@sandrini.ch>
* vapi/glib-2.0.vala: add G.HashTable.size ()
svn path=/trunk/; revision=622
Juerg Billeter [Thu, 20 Sep 2007 09:21:32 +0000 (09:21 +0000)]
support notify attribute for properties
2007-09-20 Juerg Billeter <j@bitron.ch>
* vala/valaproperty.vala, gobject/valaccodegenerator.vala: support
notify attribute for properties
svn path=/trunk/; revision=621
Alberto Ruiz [Tue, 18 Sep 2007 22:18:03 +0000 (22:18 +0000)]
add vapigen variable, fixes bug 477111
2007-09-19 Alberto Ruiz <aruiz@gnome.org>
* vala-1.0.pc.in: add vapigen variable,
fixes bug 477111
svn path=/trunk/; revision=620
Juerg Billeter [Tue, 18 Sep 2007 21:06:31 +0000 (21:06 +0000)]
fix public static fields, fixes bug 477207
2007-09-18 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: fix public static fields,
fixes bug 477207
svn path=/trunk/; revision=619
Juerg Billeter [Tue, 18 Sep 2007 20:59:01 +0000 (20:59 +0000)]
support mapping interface methods to abstract and virtual methods, fixes
2007-09-18 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorclass.vala,
gobject/valaccodegeneratormethod.vala: support mapping interface
methods to abstract and virtual methods, fixes bug 477206
svn path=/trunk/; revision=618
Juerg Billeter [Mon, 17 Sep 2007 21:01:20 +0000 (21:01 +0000)]
rename CodeGenerator to CCodeGenerator, add abstract CodeGenerator and
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valacodebinding.vala,
vala/valacodecontext.vala, vala/valacodegenerator.vala,
vala/valacodenode.vala, gobject/Makefile.am,
gobject/valaccodegenerator.vala, compiler/valacompiler.vala: rename
CodeGenerator to CCodeGenerator, add abstract CodeGenerator and
CodeBinding classes
svn path=/trunk/; revision=617
Juerg Billeter [Mon, 17 Sep 2007 19:05:34 +0000 (19:05 +0000)]
switch lambda expression to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valalambdaexpression.vala,
vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala, gobject/valacodegenerator.vala: switch
lambda expression to external visitor
svn path=/trunk/; revision=616
Juerg Billeter [Mon, 17 Sep 2007 18:42:27 +0000 (18:42 +0000)]
switch object creation expression to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valamemorymanager.vala,
vala/valaobjectcreationexpression.vala,
vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala,
gobject/valacodegenerator.vala: switch object creation expression to
external visitor
svn path=/trunk/; revision=615
Juerg Billeter [Mon, 17 Sep 2007 18:35:50 +0000 (18:35 +0000)]
switch invocation expression to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valainvocationexpression.vala,
vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala,
gobject/valacodegeneratorinvocationexpression.vala: switch invocation
expression to external visitor
svn path=/trunk/; revision=614
Juerg Billeter [Mon, 17 Sep 2007 18:28:38 +0000 (18:28 +0000)]
switch return statement to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valamemorymanager.vala,
vala/valareturnstatement.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala, gobject/valacodegenerator.vala: switch
return statement to external visitor
svn path=/trunk/; revision=613
Juerg Billeter [Mon, 17 Sep 2007 18:22:42 +0000 (18:22 +0000)]
switch block to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valablock.vala, vala/valacodevisitor.vala,
vala/valaforeachstatement.vala, vala/valamemorymanager.vala,
vala/valasemanticanalyzer.vala, vala/valaswitchsection.vala,
vala/valasymbolresolver.vala, gobject/valacodegenerator.vala: switch
block to external visitor
svn path=/trunk/; revision=612
Juerg Billeter [Mon, 17 Sep 2007 16:20:44 +0000 (16:20 +0000)]
switch assignment to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valaassignment.vala, vala/valacodevisitor.vala,
vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala,
gobject/valacodegeneratorassignment.vala: switch assignment to
external visitor
svn path=/trunk/; revision=611
Juerg Billeter [Sun, 16 Sep 2007 16:43:20 +0000 (16:43 +0000)]
fix memory management when using lambda expressions
2007-09-16 Juerg Billeter <j@bitron.ch>
* vala/valamemorymanager.vala: fix memory management when using lambda
expressions
svn path=/trunk/; revision=610
Juerg Billeter [Sat, 15 Sep 2007 21:43:43 +0000 (21:43 +0000)]
add support for object initializers
2007-09-15 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/parser.y, vala/valamemberinitializer.vala,
vala/valaobjectcreationexpression.vala,
vala/valasemanticanalyzer.vala, gobject/valacodegenerator.vala: add
support for object initializers
* tests/classes.exp, tests/classes.vala, tests/structs.exp,
tests/structs.vala: test object initializers with classes and structs
svn path=/trunk/; revision=609
Juerg Billeter [Sat, 15 Sep 2007 19:44:20 +0000 (19:44 +0000)]
support creation methods in structs, replace InstanceByReference method
2007-09-15 Juerg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala, vala/valamethod.vala,
vala/valasemanticanalyzer.vala, vala/valastruct.vala,
gobject/valacodegenerator.vala,
gobject/valacodegeneratorinvocationexpression.vala,
gobject/valacodegeneratormethod.vala, vapigen/valagidlparser.vala,
vapi/glib-2.0.vala: support creation methods in structs, replace
InstanceByReference method attribute by SimpleType type attribute
(inverse effect)
* tests/Makefile.am, tests/structs.exp, tests/structs.vala: add struct
declaration test
* vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala: regenerated
svn path=/trunk/; revision=608
Juerg Billeter [Sat, 15 Sep 2007 08:57:16 +0000 (08:57 +0000)]
support real literals with exponent
2007-09-15 Juerg Billeter <j@bitron.ch>
* vala/scanner.l: support real literals with exponent
svn path=/trunk/; revision=607
Juerg Billeter [Fri, 14 Sep 2007 21:15:59 +0000 (21:15 +0000)]
deny assignment to instance members from static methods
2007-09-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: deny assignment to instance members
from static methods
svn path=/trunk/; revision=606
Juerg Billeter [Fri, 14 Sep 2007 21:00:12 +0000 (21:00 +0000)]
fix Gst.version_string method
2007-09-14 Juerg Billeter <j@bitron.ch>
* vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata: fix
Gst.version_string method
* vapi/gstreamer-0.10.vala: regenerated
svn path=/trunk/; revision=605
Juerg Billeter [Fri, 14 Sep 2007 20:45:31 +0000 (20:45 +0000)]
simplify dispose function, fixes bug 476700
2007-09-14 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: simplify dispose function,
fixes bug 476700
svn path=/trunk/; revision=604
Juerg Billeter [Fri, 14 Sep 2007 20:19:28 +0000 (20:19 +0000)]
fix late bound methods and signals, fixes bug 476953
2007-09-14 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorinvocationexpression.vala,
gobject/valacodegeneratorsignal.vala: fix late bound methods and
signals, fixes bug 476953
svn path=/trunk/; revision=603
Juerg Billeter [Thu, 13 Sep 2007 18:40:55 +0000 (18:40 +0000)]
generate C code comment for abstract methods
2007-09-13 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratormethod.vala: generate C code comment for
abstract methods
svn path=/trunk/; revision=602
Juerg Billeter [Thu, 13 Sep 2007 18:34:17 +0000 (18:34 +0000)]
don't remove first parameter of creation methods
2007-09-13 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: don't remove first parameter of creation
methods
* vapi/gdk-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala:
regenerated
svn path=/trunk/; revision=601
Juerg Billeter [Mon, 10 Sep 2007 12:37:36 +0000 (12:37 +0000)]
document struct declarations
2007-09-10 Juerg Billeter <j@bitron.ch>
* doc/vala/structs.xml: document struct declarations
svn path=/trunk/; revision=600
Juerg Billeter [Sun, 9 Sep 2007 18:34:07 +0000 (18:34 +0000)]
detect interface prerequisite cycle
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: detect interface prerequisite cycle
svn path=/trunk/; revision=599
Juerg Billeter [Sun, 9 Sep 2007 18:27:42 +0000 (18:27 +0000)]
detect base class cycle
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterface.vala,
vala/valasymbolresolver.vala: detect base class cycle
svn path=/trunk/; revision=598
Juerg Billeter [Sun, 9 Sep 2007 15:26:44 +0000 (15:26 +0000)]
support typeof expressions for arrays
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/parser.y: support typeof expressions for arrays
svn path=/trunk/; revision=597
Juerg Billeter [Sun, 9 Sep 2007 15:24:12 +0000 (15:24 +0000)]
add GLib.Type.INVALID constant
2007-09-09 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add GLib.Type.INVALID constant
svn path=/trunk/; revision=596
Juerg Billeter [Sun, 9 Sep 2007 14:36:49 +0000 (14:36 +0000)]
support static classes
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala: support static classes
svn path=/trunk/; revision=595
Juerg Billeter [Sat, 8 Sep 2007 16:07:38 +0000 (16:07 +0000)]
add class declaration test
2007-09-08 Juerg Billeter <j@bitron.ch>
* tests/classes.exp, tests/classes.vala: add class declaration test
* tests/Makefile.am: update
svn path=/trunk/; revision=594
Juerg Billeter [Sat, 8 Sep 2007 15:55:19 +0000 (15:55 +0000)]
fix support for static classes
2007-09-08 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: fix support for static classes
svn path=/trunk/; revision=593
Juerg Billeter [Sat, 8 Sep 2007 15:36:02 +0000 (15:36 +0000)]
ensure there is always a default construction method for non-abstract
2007-09-08 Juerg Billeter <j@bitron.ch>
* vala/parser.y: ensure there is always a default construction method
for non-abstract non-VAPI classes
svn path=/trunk/; revision=592
Juerg Billeter [Sat, 8 Sep 2007 15:30:53 +0000 (15:30 +0000)]
append the generated free function to the right file fragment
2007-09-08 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: append the generated free
function to the right file fragment
svn path=/trunk/; revision=591
Juerg Billeter [Sat, 8 Sep 2007 08:42:33 +0000 (08:42 +0000)]
report an error when trying to define a signal in a type not deriving from
2007-09-08 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorsignal.vala: report an error when trying to
define a signal in a type not deriving from GLib.Object
svn path=/trunk/; revision=590
Juerg Billeter [Fri, 7 Sep 2007 10:36:24 +0000 (10:36 +0000)]
support notes
2007-09-07 Juerg Billeter <j@bitron.ch>
* doc/vala/default.css, doc/vala/xhtml.xsl: support notes
* doc/vala/classes.xml: document class declarations
svn path=/trunk/; revision=589
Juerg Billeter [Fri, 7 Sep 2007 07:25:29 +0000 (07:25 +0000)]
update license headers to the GNU Lesser General Public License, version
2007-09-07 Juerg Billeter <j@bitron.ch>
* update license headers to the GNU Lesser General Public License,
version 2.1 or later
svn path=/trunk/; revision=588
Juerg Billeter [Thu, 6 Sep 2007 14:20:18 +0000 (14:20 +0000)]
add GTypeDebugFlags and GNode
2007-09-06 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add GTypeDebugFlags and GNode
svn path=/trunk/; revision=587
Juerg Billeter [Thu, 6 Sep 2007 12:16:37 +0000 (12:16 +0000)]
updated to currrent git regenerated
2007-09-06 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-standalone/: updated to currrent git
* vapi/gio-standalone.vala: regenerated
svn path=/trunk/; revision=586
Mathias Hasselmann [Thu, 6 Sep 2007 08:23:51 +0000 (08:23 +0000)]
create bindings for gnet-2.0 first attempt to generate gnet-2.0 bindings.
2007-09-06 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gnet-2.0/*: create bindings for gnet-2.0
* vapi/gnet-2.0.vala: first attempt to generate gnet-2.0 bindings.
not adding to Makefile.am for now, as this VAPI is untested,
well and because gnet-2.0 uses depricated glib API
svn path=/trunk/; revision=585
Mathias Hasselmann [Thu, 6 Sep 2007 08:18:15 +0000 (08:18 +0000)]
support multiple namespace mappings for binding really broken libraries
2007-09-06 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vala/valanamespace.vala, vapigen/valagidlparser.vala:
support multiple namespace mappings for binding really broken
libraries like gnet-2.0. support shell patterns to lookup attributes
from metadata files. fixes bug 474145
svn path=/trunk/; revision=584
Mathias Hasselmann [Thu, 6 Sep 2007 07:59:53 +0000 (07:59 +0000)]
support for GPatternSpec
2007-09-06 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/glib-2.0.vala: support for GPatternSpec
svn path=/trunk/; revision=583
Mathias Hasselmann [Wed, 5 Sep 2007 06:50:31 +0000 (06:50 +0000)]
link to bug 473804 for Object::notify add property sample from Wiki as
2007-09-05 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/glib-2.0.vala: link to bug 473804 for Object::notify
* tests/Makefile.am, tests/property-sample.exp,
tests/property-sample.vala: add property sample from Wiki
as regression test.
svn path=/trunk/; revision=582
Mathias Hasselmann [Tue, 4 Sep 2007 21:19:27 +0000 (21:19 +0000)]
support strings in switch statements, fixes bug 473462
2007-09-04 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegenerator.vala: support strings in switch
statements, fixes bug 473462
svn path=/trunk/; revision=581
Juerg Billeter [Tue, 4 Sep 2007 20:17:31 +0000 (20:17 +0000)]
emit line directives in debug mode
2007-09-04 Juerg Billeter <j@bitron.ch>
* vala/valacodenode.vala, ccode/valaccodebreakstatement.vala,
ccode/valaccodecasestatement.vala, ccode/valaccodecontinuestatement.vala,
ccode/valaccodedeclaration.vala, ccode/valaccodedostatement.vala,
ccode/valaccodeexpressionstatement.vala, ccode/valaccodeforstatement.vala,
ccode/valaccodefunction.vala, ccode/valaccodeifstatement.vala,
ccode/valaccodereturnstatement.vala, ccode/valaccodeswitchstatement.vala,
ccode/valaccodevariabledeclarator.vala,
ccode/valaccodewhilestatement.vala, ccode/valaccodewriter.vala,
gobject/valacodegenerator.vala, gobject/valacodegeneratormethod.vala,
gobject/valacodegeneratorsourcefile.vala: emit line directives in debug
mode
svn path=/trunk/; revision=580
Mathias Hasselmann [Mon, 3 Sep 2007 18:59:11 +0000 (18:59 +0000)]
add string.to_double
2007-09-03 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/glib-2.0.vala: add string.to_double
svn path=/trunk/; revision=579
Mathias Hasselmann [Sun, 2 Sep 2007 21:13:35 +0000 (21:13 +0000)]
Fixed ChangeLog order. Shame on you, git-rebase.
svn path=/trunk/; revision=578
Mathias Hasselmann [Sun, 2 Sep 2007 21:09:56 +0000 (21:09 +0000)]
Handle markup errors in GIDL files.
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapigen/valavapicheck.vala: Handle markup errors in GIDL files.
svn path=/trunk/; revision=577
Juerg Billeter [Sun, 2 Sep 2007 15:45:56 +0000 (15:45 +0000)]
fix virtual methods with generic return type
2007-09-02 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratormethod.vala: fix virtual methods with generic
return type
svn path=/trunk/; revision=576
Juerg Billeter [Sun, 2 Sep 2007 15:26:17 +0000 (15:26 +0000)]
improve Screen class, patch by Ed Schouten
2007-09-02 Juerg Billeter <j@bitron.ch>
* vapi/curses.vala: improve Screen class, patch by Ed Schouten
svn path=/trunk/; revision=575
Mathias Hasselmann [Sun, 2 Sep 2007 11:56:20 +0000 (11:56 +0000)]
handle null pointer for expression_type in get_implicit_cast_expression.
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegenerator.vala, tests/Makefile.am: handle null
pointer for expression_type in get_implicit_cast_expression.
needed for instance to pass function pointers to HashTable.full
* tests/test-036.exp, tests/test-036.vala: test for usability
of HashTable.full
svn path=/trunk/; revision=574
Mathias Hasselmann [Sun, 2 Sep 2007 10:12:06 +0000 (10:12 +0000)]
adding vapicheck as tool to verify Vala bindings. currently only .metadata
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapigen/Makefile.am, vapigen/valavapicheck.vala: adding vapicheck
as tool to verify Vala bindings. currently only .metadata files are
checked for unresolved symbols.
svn path=/trunk/; revision=573
Mathias Hasselmann [Sun, 2 Sep 2007 10:12:03 +0000 (10:12 +0000)]
regenerated for release 1.90.4
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gtksourceview-2.0/gtksourceview-2.0.gidl,
vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata,
vapi/gtksourceview-2.0.vala: regenerated for release 1.90.4
svn path=/trunk/; revision=572
Juerg Billeter [Sat, 1 Sep 2007 21:36:07 +0000 (21:36 +0000)]
avoid unnecessary xml_pp dependency, patch by Alberto Ruiz, fixes bug
2007-09-01 Juerg Billeter <j@bitron.ch>
* vapigen/gidlgen/gapi2xml.pl, vapigen/gidlgen/gidlgen.in: avoid
unnecessary xml_pp dependency, patch by Alberto Ruiz, fixes bug 472658
svn path=/trunk/; revision=571
Juerg Billeter [Sat, 1 Sep 2007 20:59:28 +0000 (20:59 +0000)]
improve gidlgen command-line options, patch by Alberto Ruiz, fixes bug
2007-09-01 Juerg Billeter <j@bitron.ch>
* vapigen/gidlgen/gidlgen.in: improve gidlgen command-line options,
patch by Alberto Ruiz, fixes bug 472646
svn path=/trunk/; revision=570
Juerg Billeter [Sat, 1 Sep 2007 19:33:17 +0000 (19:33 +0000)]
fix internal warnings on syntax errors
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/parser.y: fix internal warnings on syntax errors
svn path=/trunk/; revision=569
Juerg Billeter [Sat, 1 Sep 2007 19:09:01 +0000 (19:09 +0000)]
use subtyping, patch by Ed Schouten
2007-09-01 Juerg Billeter <j@bitron.ch>
* vapi/curses.vala: use subtyping, patch by Ed Schouten
svn path=/trunk/; revision=568
Juerg Billeter [Sat, 1 Sep 2007 19:07:10 +0000 (19:07 +0000)]
fix implicit casts to support non-GObject classes, enable run-time checks
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valalockable.vala, gobject/valacodegenerator.vala,
gobject/valacodegeneratorassignment.vala,
gobject/valacodegeneratorclass.vala,
gobject/valacodegeneratorinvocationexpression.vala,
gobject/valacodegeneratormemberaccess.vala,
gobject/valacodegeneratormethod.vala, compiler/valacompiler.vala:
fix implicit casts to support non-GObject classes, enable run-time
checks by default, fixes bug 472446
svn path=/trunk/; revision=567
Mathias Hasselmann [Sat, 1 Sep 2007 13:49:06 +0000 (13:49 +0000)]
mark pango_glyph_item_letter_space.log_attrs and
2007-09-01 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/pango/pango.metadata: mark
pango_glyph_item_letter_space.log_attrs and
pango_get_log_attrs.log_attrs as arrays
* vapi/pango.vala: regenerated
svn path=/trunk/; revision=566
Mathias Hasselmann [Sat, 1 Sep 2007 13:23:05 +0000 (13:23 +0000)]
gtk_init_with_args.entries as array mark PangoLogAttr as value type
2007-09-01 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata:
gtk_init_with_args.entries as array
* vapi/packages/pango/pango.metadata:
mark PangoLogAttr as value type
* vapi/gtk+-2.0.vala, vapi/pango.vala:
regenerated
svn path=/trunk/; revision=565
Juerg Billeter [Sat, 1 Sep 2007 13:12:28 +0000 (13:12 +0000)]
let DataType.is_subtype_of return true if the specified type is the same
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valadatatype.vala, vala/valainterface.vala,
vala/valasemanticanalyzer.vala, gobject/valacodegenerator.vala,
gobject/valacodegeneratorassignment.vala: let DataType.is_subtype_of
return true if the specified type is the same
svn path=/trunk/; revision=564
Juerg Billeter [Sat, 1 Sep 2007 12:59:08 +0000 (12:59 +0000)]
add introduction to data types
2007-09-01 Juerg Billeter <j@bitron.ch>
* doc/vala/types.xml: add introduction to data types
svn path=/trunk/; revision=563
Juerg Billeter [Sat, 1 Sep 2007 12:09:48 +0000 (12:09 +0000)]
visit finally body, fixes bug 467919
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valatrystatement.vala: visit finally body, fixes bug 467919
svn path=/trunk/; revision=562
Juerg Billeter [Sat, 1 Sep 2007 11:44:15 +0000 (11:44 +0000)]
add xsltproc as optional dependency add initial structure for the Vala
2007-09-01 Juerg Billeter <j@bitron.ch>
* configure.ac: add xsltproc as optional dependency
* doc/vala/: add initial structure for the Vala Reference Manual, will
be built and installed if xsltproc is available
* tests/hello.exp, tests/hello.vala: add hello world test case
* doc/Makefile.am, tests/Makefile.am: updated
svn path=/trunk/; revision=561
Juerg Billeter [Sat, 1 Sep 2007 05:58:23 +0000 (05:58 +0000)]
check arguments of methods with ellipsis parameters
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: check arguments of methods with
ellipsis parameters
svn path=/trunk/; revision=560
Juerg Billeter [Fri, 31 Aug 2007 21:23:58 +0000 (21:23 +0000)]
improve error reporting for expression, while, and for statements and for
2007-08-31 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for
expression, while, and for statements and for parenthesized
expressions
svn path=/trunk/; revision=559
Juerg Billeter [Fri, 31 Aug 2007 12:40:19 +0000 (12:40 +0000)]
Post-release version bump
2007-08-31 Juerg Billeter <j@bitron.ch>
* configure.ac: Post-release version bump
svn path=/trunk/; revision=558
Juerg Billeter [Fri, 31 Aug 2007 12:38:29 +0000 (12:38 +0000)]
update for 0.1.3 release
2007-08-31 Juerg Billeter <j@bitron.ch>
* NEWS: update for 0.1.3 release
svn path=/trunk/; revision=556
Juerg Billeter [Fri, 31 Aug 2007 12:33:03 +0000 (12:33 +0000)]
only install man pages for vapigen and gidlgen if vapigen is enabled
2007-08-31 Juerg Billeter <j@bitron.ch>
* doc/Makefile.am: only install man pages for vapigen and gidlgen if
vapigen is enabled
svn path=/trunk/; revision=555
Juerg Billeter [Fri, 31 Aug 2007 12:11:03 +0000 (12:11 +0000)]
fix binding provider support
2007-08-31 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: fix binding provider support
svn path=/trunk/; revision=554
Juerg Billeter [Fri, 31 Aug 2007 11:35:44 +0000 (11:35 +0000)]
number temp variables for each function separately, don't use reserved __
2007-08-31 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala, gobject/valacodegeneratormethod.vala:
number temp variables for each function separately, don't use reserved
__ prefix
svn path=/trunk/; revision=553
Juerg Billeter [Fri, 31 Aug 2007 11:21:44 +0000 (11:21 +0000)]
simplify struct variable initialization, remove unnecessary warning
2007-08-31 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: simplify struct variable
initialization, remove unnecessary warning
svn path=/trunk/; revision=552
Juerg Billeter [Fri, 31 Aug 2007 10:08:59 +0000 (10:08 +0000)]
support base_class attribute
2007-08-31 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support base_class attribute
* vapi/packages/gdk-2.0/gdk-2.0.metadata, vapi/gdk-2.0.vala: set
base_class of GdkPixmap, fixes bug 463816
svn path=/trunk/; revision=551
Juerg Billeter [Fri, 31 Aug 2007 09:44:28 +0000 (09:44 +0000)]
use G_TYPE_POINTER for not registered classes, add has_type_id attribute
2007-08-31 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valastruct.vala: use G_TYPE_POINTER for
not registered classes, add has_type_id attribute
* vapigen/valagidlparser.vala: use GLib.Boxed as base type of boxed
types
* vapi/glib-2.0.vala: use has_type_id attribute and GLib.Boxed
* vapi/gconf-2.0.vala, vapi/gdk-2.0.vala, vapi/gnome-desktop-2.0.vala,
vapi/gnome-vfs-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/libglade-2.0.vala, vapi/libgnome-2.0.vala, vapi/libsoup-2.2.vala,
vapi/pango.vala, vapi/poppler-glib.vala: regenerated
svn path=/trunk/; revision=550
Mathias Hasselmann [Thu, 30 Aug 2007 21:56:59 +0000 (21:56 +0000)]
hide internal API and specify correct header files regenerated
2007-08-30 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata:
hide internal API and specify correct header files
* vapi/gtksourceview-2.0.vala: regenerated
svn path=/trunk/; revision=549
Juerg Billeter [Thu, 30 Aug 2007 21:39:22 +0000 (21:39 +0000)]
don't NULL-terminate value-type arrays
2007-08-30 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: don't NULL-terminate value-type arrays
svn path=/trunk/; revision=548
Juerg Billeter [Thu, 30 Aug 2007 19:54:32 +0000 (19:54 +0000)]
support prototype access to allow accessing instance members without an
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valamemberaccess.vala, vala/valasemanticanalyzer.vala: support
prototype access to allow accessing instance members without an
actual instance, fixes bug 471778
svn path=/trunk/; revision=547
Juerg Billeter [Thu, 30 Aug 2007 19:02:06 +0000 (19:02 +0000)]
rename MemberAccessibility to SymbolAccessibility and move its declaration
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valamemberaccessibility.vala: rename MemberAccessibility to
SymbolAccessibility and move its declaration to vala/valasymbol.vala
* vala/parser.y: store accessibility modifier for properties and follow
the renames caused by the accessibility releated refactoring, cast
the Struct allocated in struct_declaration to silence gcc
* vala/Makefile.am: remove valamemberaccessibility.* files
* vala/valasymbol.vala: add access property found in serveral
sub-classes and add is_internal_symbol () method, which considers
parent symbols to determinate if a symbol belongs to internal API
* gobject/*, vala/*, vapigen/valagidlparser.vala:
move the access property/field found in several Symbol derived
classes to the Symbol class where it belongs and rename the
MemberAccessibility enumeration to SymbolAccessibility
* vala/valaformalparameter.vala, vala/valanamespace.vala: set access
to public on initialization, as there is no accessibility modifier
* gobject/valacodegenerator.vala: do not add internal symbols to
header_type_member_declarations
* vala/valasemanticanalyzer.vala: do not add HEADER_SHALLOW symbol
dependencies for internal symbols
* gobject/valacodegeneratormethod.vala: consider all anchestors,
not just the parent for visibility
patch by Mathias Hasselmann, fixes bug 471475
svn path=/trunk/; revision=546
Juerg Billeter [Thu, 30 Aug 2007 18:05:37 +0000 (18:05 +0000)]
remove support for reference-type structs, improve support for non-GObject
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterfacewriter.vala,
vala/valastruct.vala: remove support for reference-type structs,
improve support for non-GObject classes
* vapigen/valagidlparser.vala, vapi/cairo.vala, vapi/curses.vala,
vapi/dbus-glib-1.vala, vapi/enchant.vala, vapi/hal.vala,
vapi/libxml-2.0.vala, vapi/sqlite3.vala,
vapi/packages/libsoup-2.2/libsoup-2.2-custom.vala,
vapi/packages/pango/pango-custom.vala: replace reference-type structs
by classes
* vapi/atk.vala, vapi/gconf-2.0.vala, vapi/gdk-2.0.vala,
vapi/gio-standalone.vala, vapi/gnome-desktop-2.0.vala,
vapi/gnome-vfs-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/gtksourceview-2.0.vala, vapi/hildon-1.vala,
vapi/libglade-2.0.vala, vapi/libgnome-2.0.vala,
vapi/libgnomeui-2.0.vala, vapi/libsoup-2.2.vala,
vapi/libwnck-1.0.vala, vapi/pango.vala, vapi/poppler-glib.vala,
vapi/vte.vala: regenerated
svn path=/trunk/; revision=545
Juerg Billeter [Thu, 30 Aug 2007 16:25:05 +0000 (16:25 +0000)]
fix internal warnings on syntax errors
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/parser.y: fix internal warnings on syntax errors
svn path=/trunk/; revision=544
Juerg Billeter [Thu, 30 Aug 2007 16:07:18 +0000 (16:07 +0000)]
improve error reporting for parenthesized expressions
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for
parenthesized expressions
svn path=/trunk/; revision=543
Juerg Billeter [Thu, 30 Aug 2007 15:47:11 +0000 (15:47 +0000)]
improve error reporting for foreach statements
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for foreach
statements
svn path=/trunk/; revision=542
Juerg Billeter [Thu, 30 Aug 2007 15:18:47 +0000 (15:18 +0000)]
remove clutter bindings, will be moved to clutter svn
2007-08-30 Juerg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/clutter-0.4.deps, vapi/clutter-0.4.vala,
vapi/packages/clutter-0.4/: remove clutter bindings, will be moved
to clutter svn
svn path=/trunk/; revision=541
Juerg Billeter [Thu, 30 Aug 2007 14:54:51 +0000 (14:54 +0000)]
replace reference-type structs by classes, requires r539 to build
2007-08-30 Juerg Billeter <j@bitron.ch>
* gee/hashmap.vala, gee/hashset.vala, vapi/glib-2.0.vala,
gobject-introspection/gidl.vala: replace reference-type structs by
classes, requires r539 to build
svn path=/trunk/; revision=540
Juerg Billeter [Thu, 30 Aug 2007 14:47:36 +0000 (14:47 +0000)]
fix object creation for non-GObject classes without creation method
2007-08-30 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: fix object creation for non-GObject
classes without creation method
svn path=/trunk/; revision=539
Juerg Billeter [Thu, 30 Aug 2007 14:19:05 +0000 (14:19 +0000)]
remove obsolete ctype attribute
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, gobject/valacodegenerator.vala,
gobject/valacodegeneratorinterface.vala,
gobject/valacodegeneratormethod.vala, vapi/glib-2.0.vala: remove
obsolete ctype attribute
svn path=/trunk/; revision=538
Juerg Billeter [Thu, 30 Aug 2007 13:45:05 +0000 (13:45 +0000)]
support classes without base class
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valasemanticanalyzer.vala,
gobject/valacodegenerator.vala, gobject/valacodegeneratorclass.vala,
gobject/valacodegeneratormethod.vala, vapi/glib-2.0.vala: support
classes without base class
svn path=/trunk/; revision=537