platform/upstream/vala.git
16 years agofix crash when casting an invalid expression, fixes bug 514331
Juerg Billeter [Tue, 5 Feb 2008 08:04:49 +0000 (08:04 +0000)]
fix crash when casting an invalid expression, fixes bug 514331

2008-02-05  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix crash when casting an invalid
  expression, fixes bug 514331

svn path=/trunk/; revision=970

16 years agoimprove error reporting for methods missing the return type, fixes bug
Juerg Billeter [Tue, 5 Feb 2008 00:13:47 +0000 (00:13 +0000)]
improve error reporting for methods missing the return type, fixes bug

2008-02-05  Juerg Billeter  <j@bitron.ch>

* vala/valaclass.vala, vala/valastruct.vala: improve error reporting
  for methods missing the return type, fixes bug 514344

svn path=/trunk/; revision=969

16 years agofix error message for invalid symbols, fixes bug 514329
Juerg Billeter [Mon, 4 Feb 2008 23:52:32 +0000 (23:52 +0000)]
fix error message for invalid symbols, fixes bug 514329

2008-02-05  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix error message for invalid
  symbols, fixes bug 514329

svn path=/trunk/; revision=968

16 years agoimprove error reporting for properties, fixes bug 514326
Juerg Billeter [Mon, 4 Feb 2008 23:41:00 +0000 (23:41 +0000)]
improve error reporting for properties, fixes bug 514326

2008-02-05  Juerg Billeter  <j@bitron.ch>

* vala/valaclass.vala: improve error reporting for properties,
  fixes bug 514326

* tests/classes-properties.vala: fix test case

svn path=/trunk/; revision=967

16 years agodon't use construction properties for classes not deriving from GObject,
Juerg Billeter [Mon, 4 Feb 2008 23:17:59 +0000 (23:17 +0000)]
don't use construction properties for classes not deriving from GObject,

2008-02-05  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodeassignmentbinding.vala,
  gobject/valaccodegenerator.vala: don't use construction properties
  for classes not deriving from GObject, fixes bug 514323

svn path=/trunk/; revision=966

16 years agodon't crash when using delegate properties, fixes bug 514261
Juerg Billeter [Mon, 4 Feb 2008 22:47:22 +0000 (22:47 +0000)]
don't crash when using delegate properties, fixes bug 514261

2008-02-04  Juerg Billeter  <j@bitron.ch>

* vala/valadatatype.vala, vala/valadelegatetype.vala,
  gobject/valaccodeassignmentbinding.vala: don't crash when using
  delegate properties, fixes bug 514261

svn path=/trunk/; revision=965

16 years agodon't write C file in case of errors, fixes bug 514259
Juerg Billeter [Mon, 4 Feb 2008 22:27:25 +0000 (22:27 +0000)]
don't write C file in case of errors, fixes bug 514259

2008-02-04  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegeneratorsourcefile.vala: don't write C file in
  case of errors, fixes bug 514259

svn path=/trunk/; revision=964

16 years agodon't generate result variable when not using postconditions to avoid
Juerg Billeter [Mon, 4 Feb 2008 21:52:51 +0000 (21:52 +0000)]
don't generate result variable when not using postconditions to avoid

2008-02-04  Juerg Billeter  <j@bitron.ch>

* vala/valaclass.vala, vala/valainterface.vala, vala/valastruct.vala,
  gobject/valaccodegeneratormethod.vala: don't generate result
  variable when not using postconditions to avoid unnecessary name
  conflicts with method parameters

svn path=/trunk/; revision=963

16 years agofix .vapi location without -d option
Juerg Billeter [Mon, 4 Feb 2008 21:49:11 +0000 (21:49 +0000)]
fix .vapi location without -d option

2008-02-04  Juerg Billeter  <j@bitron.ch>

* compiler/valacompiler.vala: fix .vapi location without -d option

svn path=/trunk/; revision=962

16 years agoadd missing visit_expression call for assignments, fixes bug 514255
Juerg Billeter [Mon, 4 Feb 2008 21:13:11 +0000 (21:13 +0000)]
add missing visit_expression call for assignments, fixes bug 514255

2008-02-04  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodeassignmentbinding.vala: add missing
  visit_expression call for assignments, fixes bug 514255

svn path=/trunk/; revision=961

16 years agoadd JSON-GLib bindings, patch by Ali Sabil
Juerg Billeter [Sun, 3 Feb 2008 22:52:40 +0000 (22:52 +0000)]
add JSON-GLib bindings, patch by Ali Sabil

2008-02-03  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/json-glib-1.0.vapi,
  vapi/packages/json-glib-1.0/: add JSON-GLib bindings,
  patch by Ali Sabil

svn path=/trunk/; revision=960

16 years agomove get_package_path method to libvala
Juerg Billeter [Sun, 3 Feb 2008 21:47:02 +0000 (21:47 +0000)]
move get_package_path method to libvala

2008-02-03  Juerg Billeter  <j@bitron.ch>

* vala/Makefile.am, vala/valacodecontext.vala,
  compiler/valacompiler.vala, vapigen/valavapigen.vala: move
  get_package_path method to libvala

svn path=/trunk/; revision=959

16 years agoextend the array test with an array of structs declared through the "var"
Raffaele Sandrini [Sun, 3 Feb 2008 21:22:28 +0000 (21:22 +0000)]
extend the array test with an array of structs declared through the "var"

2008-02-03  Raffaele Sandrini  <raffaele@sandrini.ch>

        * tests/arrays.vala: extend the array test with an array of structs
          declared through the "var" keyword
        * vala/valasemanticanalyzer.vala: fix a memory management bug with
          arrays of struct elements

svn path=/trunk/; revision=958

16 years agoset requires_null_check for nullable parameters, they're not local
Juerg Billeter [Sun, 3 Feb 2008 19:48:29 +0000 (19:48 +0000)]
set requires_null_check for nullable parameters, they're not local

2008-02-03  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: set requires_null_check for nullable
  parameters, they're not local variables

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=957

16 years agoaccept carriage returns in source files
Juerg Billeter [Sun, 3 Feb 2008 16:18:23 +0000 (16:18 +0000)]
accept carriage returns in source files

2008-02-03  Juerg Billeter  <j@bitron.ch>

* vala/scanner.l: accept carriage returns in source files

svn path=/trunk/; revision=956

16 years agoadd missing return statement
Juerg Billeter [Sat, 2 Feb 2008 15:44:11 +0000 (15:44 +0000)]
add missing return statement

2008-02-02  Juerg Billeter  <j@bitron.ch>

* vala/valaproperty.vala: add missing return statement

svn path=/trunk/; revision=955

16 years agoadd very basic support for properties serving real (non fundamental)
Raffaele Sandrini [Sat, 2 Feb 2008 15:37:11 +0000 (15:37 +0000)]
add very basic support for properties serving real (non fundamental)

2008-02-02  Raffaele Sandrini  <raffaele@sandrini.ch>

        * gobject/valaccodeassignmentbinding.vala
          gobject/valaccodegenerator.vala,
          gobject/valaccodegeneratorclass.vala,
          gobject/valaccodegeneratormemberaccess.vala,
          gobject/valaccodegeneratormethod.vala, vala/valadatatype.vala: add
          very basic support for properties serving real (non fundamental)
          structs, they are unboxed and therefore not yet known by the GObject
          type system when declared

svn path=/trunk/; revision=954

16 years agouse --directory when writing vapi file
Juerg Billeter [Sat, 2 Feb 2008 14:13:16 +0000 (14:13 +0000)]
use --directory when writing vapi file

2008-02-02  Juerg Billeter  <j@bitron.ch>

* compiler/valacompiler.vala: use --directory when writing vapi file

svn path=/trunk/; revision=953

16 years agoremove basedir workaround used for backward compatibility, so that
Juerg Billeter [Sat, 2 Feb 2008 13:56:50 +0000 (13:56 +0000)]
remove basedir workaround used for backward compatibility, so that

2008-02-02  Juerg Billeter  <j@bitron.ch>

* vala/valasourcefile.vala: remove basedir workaround used for
  backward compatibility, so that --library without --basedir
  works as expected

svn path=/trunk/; revision=952

16 years agoregenerated
Juerg Billeter [Sat, 2 Feb 2008 13:48:26 +0000 (13:48 +0000)]
regenerated

2008-02-02  Juerg Billeter  <j@bitron.ch>

* vapi/atk.vapi, vapi/gdk-2.0.vapi, vapi/gio-2.0.vapi,
  vapi/gnome-vfs-2.0.vapi, vapi/gstreamer-0.10.vapi,
  vapi/gstreamer-audio-0.10.vapi, vapi/gstreamer-base-0.10.vapi,
  vapi/gstreamer-interfaces-0.10.vapi, vapi/gstreamer-rtp-0.10.vapi,
  vapi/gstreamer-tag-0.10.vapi, vapi/gtk+-2.0.vapi,
  vapi/libglade-2.0.vapi, vapi/liboobs-1.vapi, vapi/libsoup-2.2.vapi,
  vapi/libsoup-2.4.vapi, vapi/libwnck-1.0.vapi, vapi/pango.vapi,
  vapi/vte.vapi, vapi/WebKitGtk.vapi: regenerated

svn path=/trunk/; revision=951

16 years agoimprove support for virtual methods, based on patch by Michael Lawrence,
Juerg Billeter [Sat, 2 Feb 2008 13:40:06 +0000 (13:40 +0000)]
improve support for virtual methods, based on patch by Michael Lawrence,

2008-02-02  Juerg Billeter  <j@bitron.ch>

* gobject-introspection/gidl.vapi, vapigen/valagidlparser.vala:
  improve support for virtual methods,
  based on patch by Michael Lawrence, fixes bug 452019

svn path=/trunk/; revision=950

16 years agoadd gdk-x11-2.0 bindings, patch by Maciej Piechotka, fixes bug 510336
Juerg Billeter [Sat, 2 Feb 2008 12:39:35 +0000 (12:39 +0000)]
add gdk-x11-2.0 bindings, patch by Maciej Piechotka, fixes bug 510336

2008-02-02  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/packages/gdk-x11-2.0/, vapi/gdk-x11-2.0.deps,
  vapi/gdk-x11-2.0.vapi: add gdk-x11-2.0 bindings,
  patch by Maciej Piechotka, fixes bug 510336

svn path=/trunk/; revision=949

16 years agosupport [Description (nick = "foo", blurb = "bar")] attribute, based on
Juerg Billeter [Sat, 2 Feb 2008 12:21:04 +0000 (12:21 +0000)]
support [Description (nick = "foo", blurb = "bar")] attribute, based on

2008-02-02  Juerg Billeter  <j@bitron.ch>

* vala/valaproperty.vala, gobject/valaccodegeneratorinterface.vala:
  support [Description (nick = "foo", blurb = "bar")] attribute,
  based on patch by Juan Carlos Girardi, fixes part of bug 437434

svn path=/trunk/; revision=948

16 years agoreport error when declaring static properties
Juerg Billeter [Fri, 1 Feb 2008 18:51:12 +0000 (18:51 +0000)]
report error when declaring static properties

2008-02-01  Juerg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valaproperty.vala, vala/valasemanticanalyzer.vala:
  report error when declaring static properties

svn path=/trunk/; revision=947

16 years agoreport error for binary expressions with invalid operands, fixes bug
Juerg Billeter [Fri, 1 Feb 2008 18:44:56 +0000 (18:44 +0000)]
report error for binary expressions with invalid operands, fixes bug

2008-02-01  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: report error for binary
  expressions with invalid operands, fixes bug 513708

svn path=/trunk/; revision=946

16 years agofix crash when using general catch clause, fixes bug 513680
Juerg Billeter [Fri, 1 Feb 2008 17:52:32 +0000 (17:52 +0000)]
fix crash when using general catch clause, fixes bug 513680

2008-02-01  Juerg Billeter  <j@bitron.ch>

* vala/valacatchclause.vala, vala/valacfgbuilder.vala,
  vala/valasemanticanalyzer.vala: fix crash when using general
  catch clause, fixes bug 513680

svn path=/trunk/; revision=945

16 years agoadd basic support for exceptional control flow
Juerg Billeter [Fri, 1 Feb 2008 17:43:25 +0000 (17:43 +0000)]
add basic support for exceptional control flow

2008-02-01  Juerg Billeter  <j@bitron.ch>

* vala/valacfgbuilder.vala, vala/valatrystatement.vala: add basic
  support for exceptional control flow

svn path=/trunk/; revision=944

16 years agofix typo in hex_digit
Juerg Billeter [Fri, 1 Feb 2008 17:10:16 +0000 (17:10 +0000)]
fix typo in hex_digit

2008-02-01  Juerg Billeter  <j@bitron.ch>

* vala/scanner.l: fix typo in hex_digit

svn path=/trunk/; revision=943

16 years ago0-initialize temporary struct variables to avoid passing uninitialized
Juerg Billeter [Fri, 1 Feb 2008 16:59:58 +0000 (16:59 +0000)]
0-initialize temporary struct variables to avoid passing uninitialized

2008-02-01  Juerg Billeter  <j@bitron.ch>

* ccode/valaccodevariabledeclarator.vala,
  gobject/valaccodegenerator.vala: 0-initialize temporary struct
  variables to avoid passing uninitialized structs by reference,
  fixes bug 513144

svn path=/trunk/; revision=942

16 years agofix casts to delegate types
Juerg Billeter [Fri, 1 Feb 2008 13:58:14 +0000 (13:58 +0000)]
fix casts to delegate types

2008-02-01  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix casts to delegate types

svn path=/trunk/; revision=941

16 years agoadd more non-null warnings
Juerg Billeter [Fri, 1 Feb 2008 13:56:01 +0000 (13:56 +0000)]
add more non-null warnings

2008-02-01  Juerg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valaarraytype.vala, vala/valadatatype.vala,
  vala/valaintegertype.vala, vala/valanulltype.vala,
  vala/valapointertype.vala, vala/valasemanticanalyzer.vala,
  vala/valasymbolresolver.vala, vala/valaunresolvedtype.vala,
  ccode/valaccodeassignment.vala, ccode/valaccodebinaryexpression.vala,
  gobject/valaccodegenerator.vala: add more non-null warnings

svn path=/trunk/; revision=940

16 years agoregenerated
Juerg Billeter [Thu, 31 Jan 2008 12:31:42 +0000 (12:31 +0000)]
regenerated

2008-01-31  Juerg Billeter  <j@bitron.ch>

* vapi/atk.vapi, vapi/gdk-pixbuf-2.0.vapi, vapi/gstreamer-0.10.vapi,
  vapi/gstreamer-controller-0.10.vapi,
  vapi/gstreamer-interfaces-0.10.vapi, vapi/gstreamer-rtsp-0.10.vapi,
  vapi/gstreamer-video-0.10.vapi, vapi/gtk+-2.0.vapi,
  vapi/poppler-glib.vapi: regenerated

svn path=/trunk/; revision=939

16 years agoupdate to gnome-desktop 2.21.90
Juerg Billeter [Thu, 31 Jan 2008 12:25:13 +0000 (12:25 +0000)]
update to gnome-desktop 2.21.90

2008-01-31  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gnome-desktop-2.0/: update to gnome-desktop 2.21.90

* vapi/gnome-desktop-2.0.vapi: regenerated

svn path=/trunk/; revision=938

16 years agoupdate to pango 1.19.3
Juerg Billeter [Thu, 31 Jan 2008 11:10:25 +0000 (11:10 +0000)]
update to pango 1.19.3

2008-01-31  Juerg Billeter  <j@bitron.ch>

* vapi/packages/pango/: update to pango 1.19.3

* vapi/pango.vapi: regenerated

svn path=/trunk/; revision=937

16 years agoupdate to glib 2.15.4
Juerg Billeter [Thu, 31 Jan 2008 10:54:06 +0000 (10:54 +0000)]
update to glib 2.15.4

2008-01-31  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gio-2.0/: update to glib 2.15.4

* vapi/gio-2.0.vapi: regenerated

svn path=/trunk/; revision=936

16 years agoadd libsoup-2.4 bindings
Juerg Billeter [Thu, 31 Jan 2008 10:47:17 +0000 (10:47 +0000)]
add libsoup-2.4 bindings

2008-01-31  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/libsoup-2.4.deps, vapi/libsoup-2.4.vapi,
  vapi/packages/libsoup-2.4/: add libsoup-2.4 bindings

svn path=/trunk/; revision=935

16 years agoadd GBookmarkFile bindings, patch by Emmanuele Bassi, fixes bug 513059
Juerg Billeter [Wed, 30 Jan 2008 19:55:50 +0000 (19:55 +0000)]
add GBookmarkFile bindings, patch by Emmanuele Bassi, fixes bug 513059

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: add GBookmarkFile bindings,
  patch by Emmanuele Bassi, fixes bug 513059

svn path=/trunk/; revision=934

16 years agoadd GSequence bindings, based on patch by Daniel Svensson, fixes bug
Juerg Billeter [Wed, 30 Jan 2008 17:59:37 +0000 (17:59 +0000)]
add GSequence bindings, based on patch by Daniel Svensson, fixes bug

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: add GSequence bindings,
  based on patch by Daniel Svensson, fixes bug 512938

svn path=/trunk/; revision=933

16 years agoadd gio-unix-2.0 bindings, based on patch by Mikael Hermansson, fixes bug
Juerg Billeter [Wed, 30 Jan 2008 17:24:33 +0000 (17:24 +0000)]
add gio-unix-2.0 bindings, based on patch by Mikael Hermansson, fixes bug

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/gio-unix-2.0.deps, vapi/gio-unix-2.0.vapi,
  vapi/packages/gio-unix-2.0/: add gio-unix-2.0 bindings,
  based on patch by Mikael Hermansson, fixes bug 512926

svn path=/trunk/; revision=932

16 years agoenhance GOption bindings, based on patch by Maciej Piechotka, fixes bug
Juerg Billeter [Wed, 30 Jan 2008 17:08:48 +0000 (17:08 +0000)]
enhance GOption bindings, based on patch by Maciej Piechotka, fixes bug

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: enhance GOption bindings,
  based on patch by Maciej Piechotka, fixes bug 512840

svn path=/trunk/; revision=931

16 years agoreport error when using automatic properties in interfaces, fixes bug
Juerg Billeter [Wed, 30 Jan 2008 16:38:04 +0000 (16:38 +0000)]
report error when using automatic properties in interfaces, fixes bug

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: report error when using automatic
  properties in interfaces, fixes bug 513157

svn path=/trunk/; revision=930

16 years agoreport error when trying to add instance fields to interfaces, fixes bug
Juerg Billeter [Wed, 30 Jan 2008 16:29:25 +0000 (16:29 +0000)]
report error when trying to add instance fields to interfaces, fixes bug

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: report error when trying to add
  instance fields to interfaces, fixes bug 513152

svn path=/trunk/; revision=929

16 years agooutput # for properties transferring ownership
Juerg Billeter [Wed, 30 Jan 2008 16:01:16 +0000 (16:01 +0000)]
output # for properties transferring ownership

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: output # for properties transferring
  ownership

svn path=/trunk/; revision=928

16 years agodefault cname should be _init instead of _new for creation methods in
Juerg Billeter [Wed, 30 Jan 2008 10:29:19 +0000 (10:29 +0000)]
default cname should be _init instead of _new for creation methods in

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vala/valacreationmethod.vala: default cname should be _init instead
  of _new for creation methods in structs

svn path=/trunk/; revision=927

16 years agodon't output overridden properties
Juerg Billeter [Wed, 30 Jan 2008 06:38:00 +0000 (06:38 +0000)]
don't output overridden properties

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: don't output overridden properties

svn path=/trunk/; revision=926

16 years agoadd WebKit bindings
Juerg Billeter [Tue, 29 Jan 2008 23:21:32 +0000 (23:21 +0000)]
add WebKit bindings

2008-01-30  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/WebKitGtk.deps, vapi/WebKitGtk.vapi,
  vapi/packages/WebKitGtk/: add WebKit bindings

svn path=/trunk/; revision=925

16 years agobind GString as GLib.StringBuilder to avoid confusion between string and
Juerg Billeter [Tue, 29 Jan 2008 20:29:22 +0000 (20:29 +0000)]
bind GString as GLib.StringBuilder to avoid confusion between string and

2008-01-29  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala, vapi/glib-2.0.vapi: bind GString
  as GLib.StringBuilder to avoid confusion between string and String

svn path=/trunk/; revision=924

16 years agofix crash on invalid code, fixes bug 512306
Juerg Billeter [Tue, 29 Jan 2008 14:37:19 +0000 (14:37 +0000)]
fix crash on invalid code, fixes bug 512306

2008-01-29  Juerg Billeter  <j@bitron.ch>

* vala/valadatatype.vala: fix crash on invalid code, fixes bug 512306

svn path=/trunk/; revision=923

16 years agoenhance GError binding
Juerg Billeter [Tue, 29 Jan 2008 10:45:23 +0000 (10:45 +0000)]
enhance GError binding

2008-01-29  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: enhance GError binding

svn path=/trunk/; revision=922

16 years agofix SoupDataBuffer binding
Juerg Billeter [Tue, 29 Jan 2008 08:42:17 +0000 (08:42 +0000)]
fix SoupDataBuffer binding

2008-01-29  Juerg Billeter  <j@bitron.ch>

* vapi/packages/libsoup-2.2/: fix SoupDataBuffer binding

* vapi/libsoup-2.2.vapi: regenerated

svn path=/trunk/; revision=921

16 years agosupport transfer_ownership attribute for function parameters
Juerg Billeter [Tue, 29 Jan 2008 07:33:47 +0000 (07:33 +0000)]
support transfer_ownership attribute for function parameters

2008-01-29  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support transfer_ownership attribute
  for function parameters

* vapi/packages/libsoup-2.2/: fix soup_session_queue_message binding

* vapi/libsoup-2.2.vapi: regenerated

svn path=/trunk/; revision=920

16 years agosupport [NoWrapper] attribute for virtual methods
Juerg Billeter [Mon, 28 Jan 2008 20:29:20 +0000 (20:29 +0000)]
support [NoWrapper] attribute for virtual methods

2008-01-28  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: support [NoWrapper] attribute for
  virtual methods

svn path=/trunk/; revision=919

16 years agoremove unnecessary if statement
Juerg Billeter [Mon, 28 Jan 2008 19:04:17 +0000 (19:04 +0000)]
remove unnecessary if statement

2008-01-28  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: remove unnecessary if statement

svn path=/trunk/; revision=918

16 years agofix struct pointer member access
Juerg Billeter [Sun, 27 Jan 2008 22:49:18 +0000 (22:49 +0000)]
fix struct pointer member access

2008-01-27  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegeneratorinvocationexpression.vala,
  gobject/valaccodegeneratormemberaccess.vala: fix struct pointer
  member access

* tests/Makefile.am, tests/pointers.vala, tests/pointers.exp: test
  struct pointers

svn path=/trunk/; revision=917

16 years agofix critical when using normal member access on pointers
Juerg Billeter [Sun, 27 Jan 2008 16:21:47 +0000 (16:21 +0000)]
fix critical when using normal member access on pointers

2008-01-27  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix critical when using normal member
  access on pointers

svn path=/trunk/; revision=916

16 years agofix GValue binding
Juerg Billeter [Sun, 27 Jan 2008 16:13:19 +0000 (16:13 +0000)]
fix GValue binding

2008-01-27  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix GValue binding

svn path=/trunk/; revision=915

16 years agobind message output functions
Juerg Billeter [Sun, 27 Jan 2008 12:35:19 +0000 (12:35 +0000)]
bind message output functions

2008-01-27  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: bind message output functions

svn path=/trunk/; revision=914

16 years agoreport error instead of warning when trying to implicitly copy
Juerg Billeter [Sun, 27 Jan 2008 12:23:33 +0000 (12:23 +0000)]
report error instead of warning when trying to implicitly copy

2008-01-27  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: report error instead of warning when
  trying to implicitly copy non-reference counted object

svn path=/trunk/; revision=913

16 years agofix regression introduced with libgee regarding marshaller generation
Raffaele Sandrini [Sun, 27 Jan 2008 12:19:58 +0000 (12:19 +0000)]
fix regression introduced with libgee regarding marshaller generation

2008-01-27  Raffaele Sandrini  <raffaele@sandrini.ch>

* gobject/valaccodegeneratorsignal.vala: fix regression introduced
  with libgee regarding marshaller generation

svn path=/trunk/; revision=912

16 years agocomplete GList and GSList bindings
Juerg Billeter [Sun, 27 Jan 2008 12:15:29 +0000 (12:15 +0000)]
complete GList and GSList bindings

2008-01-27  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: complete GList and GSList bindings

svn path=/trunk/; revision=911

16 years agofix cheader_filename of GStreamer libraries, patch by Maciej Piechotka,
Juerg Billeter [Sat, 26 Jan 2008 13:03:40 +0000 (13:03 +0000)]
fix cheader_filename of GStreamer libraries, patch by Maciej Piechotka,

2008-01-26  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-audio-0.10/,
  vapi/packages/gstreamer-fft-0.10/,
  vapi/packages/gstreamer-interfaces-0.10/,
  vapi/packages/gstreamer-netbuffer-0.10/,
  vapi/packages/gstreamer-pbutils-0.10/,
  vapi/packages/gstreamer-riff-0.10/,
  vapi/packages/gstreamer-rtp-0.10/,
  vapi/packages/gstreamer-rtsp-0.10/,
  vapi/packages/gstreamer-sdp-0.10/,
  vapi/packages/gstreamer-tag-0.10/,
  vapi/packages/gstreamer-video-0.10/: fix cheader_filename of GStreamer
  libraries, patch by Maciej Piechotka, fixes bug 510834

* vapi/gstreamer-audio-0.10.vapi, vapi/gstreamer-fft-0.10.vapi,
  vapi/gstreamer-interfaces-0.10.vapi,
  vapi/gstreamer-netbuffer-0.10.vapi, vapi/gstreamer-pbutils-0.10.vapi,
  vapi/gstreamer-riff-0.10.vapi, vapi/gstreamer-rtp-0.10.vapi,
  vapi/gstreamer-rtsp-0.10.vapi, vapi/gstreamer-sdp-0.10.vapi,
  vapi/gstreamer-tag-0.10.vapi, vapi/gstreamer-video-0.10.vapi:
  regenerated

svn path=/trunk/; revision=910

16 years agofix critical on parse error in lambda expression, fixes bug 511887
Juerg Billeter [Sat, 26 Jan 2008 12:10:24 +0000 (12:10 +0000)]
fix critical on parse error in lambda expression, fixes bug 511887

2008-01-26  Juerg Billeter  <j@bitron.ch>

* vala/parser.y: fix critical on parse error in lambda expression,
  fixes bug 511887

svn path=/trunk/; revision=909

16 years agofix crash with invalid invocation expressions, fixes bug 511823
Juerg Billeter [Sat, 26 Jan 2008 10:34:24 +0000 (10:34 +0000)]
fix crash with invalid invocation expressions, fixes bug 511823

2008-01-26  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix crash with invalid invocation
  expressions, fixes bug 511823

svn path=/trunk/; revision=908

16 years agofix crash when using type without copy function, fixes bug 511821
Juerg Billeter [Sat, 26 Jan 2008 10:29:08 +0000 (10:29 +0000)]
fix crash when using type without copy function, fixes bug 511821

2008-01-26  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: fix crash when using type without
  copy function, fixes bug 511821

svn path=/trunk/; revision=907

16 years agouse ArrayType class
Juerg Billeter [Thu, 24 Jan 2008 15:27:08 +0000 (15:27 +0000)]
use ArrayType class

2008-01-24  Juerg Billeter  <j@bitron.ch>

* vala/valaarraytype.vala, vala/valadatatype.vala,
  vala/valainterfacewriter.vala, vala/valanulltype.vala,
  vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala,
  gobject/valaccodeassignmentbinding.vala,
  gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratorinvocationexpression.vala,
  gobject/valaccodegeneratormethod.vala,
  gobject/valaccodegeneratorsignal.vala: use ArrayType class

svn path=/trunk/; revision=906

16 years agoallow constant declarations in structs
Raffaele Sandrini [Thu, 24 Jan 2008 14:16:19 +0000 (14:16 +0000)]
allow constant declarations in structs

2008-01-24  Raffaele Sandrini  <raffaele@sandrini.ch>

        * vala/parser.y: allow constant declarations in structs

svn path=/trunk/; revision=905

16 years agoreport initializers in struct fields as error
Raffaele Sandrini [Thu, 24 Jan 2008 13:38:21 +0000 (13:38 +0000)]
report initializers in struct fields as error

2008-01-24  Raffaele Sandrini  <raffaele@sandrini.ch>

* vala/parser.y: report initializers in struct fields as error

svn path=/trunk/; revision=904

16 years agouse valac -C in generated Makefile.am and fix GtkTextBuffer.get_text call
Juerg Billeter [Thu, 24 Jan 2008 12:58:01 +0000 (12:58 +0000)]
use valac -C in generated Makefile.am and fix GtkTextBuffer.get_text call

2008-01-24  Juerg Billeter  <j@bitron.ch>

* gen-project/valaprojectgenerator.vala: use valac -C in generated
  Makefile.am and fix GtkTextBuffer.get_text call in generated source
  code

svn path=/trunk/; revision=903

16 years agobuild control flow graph for switch statements, report missing break
Juerg Billeter [Thu, 24 Jan 2008 11:59:48 +0000 (11:59 +0000)]
build control flow graph for switch statements, report missing break

2008-01-24  Juerg Billeter  <j@bitron.ch>

* vala/valacfgbuilder.vala: build control flow graph for switch
  statements, report missing break statements at end of switch
  sections, fixes bug 511644

* tests/statements-selection.vala: test switch checks

svn path=/trunk/; revision=902

16 years agofix gdk_pixdata_serialize binding
Juerg Billeter [Wed, 23 Jan 2008 21:07:14 +0000 (21:07 +0000)]
fix gdk_pixdata_serialize binding

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gdk-pixbuf-2.0/: fix gdk_pixdata_serialize binding

* vapi/gdk-pixbuf-2.0.vapi: regenerated

svn path=/trunk/; revision=901

16 years agofix GdkPixdata binding
Juerg Billeter [Wed, 23 Jan 2008 21:05:08 +0000 (21:05 +0000)]
fix GdkPixdata binding

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gdk-pixbuf-2.0/: fix GdkPixdata binding

* vapi/gdk-pixbuf-2.0.vapi: regenerated

svn path=/trunk/; revision=900

16 years agooverride copy method
Juerg Billeter [Wed, 23 Jan 2008 20:30:59 +0000 (20:30 +0000)]
override copy method

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vala/valaintegertype.vala: override copy method

svn path=/trunk/; revision=899

16 years agofix cheader_filename of GStreamer base libraries, fixes part of bug 510834
Juerg Billeter [Wed, 23 Jan 2008 20:08:02 +0000 (20:08 +0000)]
fix cheader_filename of GStreamer base libraries, fixes part of bug 510834

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-base-0.10/,
  vapi/packages/gstreamer-controller-0.10/,
  vapi/packages/gstreamer-dataprotocol-0.10/,
  vapi/packages/gstreamer-net-0.10/: fix cheader_filename of GStreamer
  base libraries, fixes part of bug 510834

* vapi/gstreamer-base-0.10.vapi, vapi/gstreamer-controller-0.10.vapi,
  vapi/gstreamer-dataprotocol-0.10.vapi, vapi/gstreamer-net-0.10.vapi:
  regenerated

svn path=/trunk/; revision=898

16 years agoimprove generic type resolution to support generic fields, fixes bug
Juerg Billeter [Wed, 23 Jan 2008 18:58:37 +0000 (18:58 +0000)]
improve generic type resolution to support generic fields, fixes bug

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vala/valamethodtype.vala, vala/valasemanticanalyzer.vala,
  vala/valasignaltype.vala, gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratormemberaccess.vala: improve generic type
  resolution to support generic fields, fixes bug 475524

svn path=/trunk/; revision=897

16 years agofix symbol dependency for delegates, fixes bug 511555
Juerg Billeter [Wed, 23 Jan 2008 16:16:58 +0000 (16:16 +0000)]
fix symbol dependency for delegates, fixes bug 511555

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vala/valadelegatetype.vala: fix symbol dependency for delegates,
  fixes bug 511555

svn path=/trunk/; revision=896

16 years agofix crash on invalid operand, fixes bug 511546
Juerg Billeter [Wed, 23 Jan 2008 16:05:43 +0000 (16:05 +0000)]
fix crash on invalid operand, fixes bug 511546

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix crash on invalid operand,
  fixes bug 511546

svn path=/trunk/; revision=895

16 years agobuild control flow graph, report error for missing return statement in
Juerg Billeter [Wed, 23 Jan 2008 15:26:07 +0000 (15:26 +0000)]
build control flow graph, report error for missing return statement in

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vala/Makefile.am, vala/valabasicblock.vala, vala/valacfgbuilder.vala,
  vala/valadostatement.vala, vala/valaforstatement.vala,
  vala/valaifstatement.vala, vala/valamemorymanager.vala,
  vala/valamethod.vala, vala/valasemanticanalyzer.vala,
  vala/valasymbolresolver.vala, vala/valawhilestatement.vala,
  gobject/valaccodegenerator.vala, compiler/valacompiler.vala: build
  control flow graph, report error for missing return statement in
  non-void methods, and report warning for unreachable code,
  fixes bug 508480

* tests/exceptions.vala: add missing return statement

svn path=/trunk/; revision=894

16 years agohonor EXEEXT to fix tests on Cygwin and MinGW, patch by Yaakov Selkowitz,
Juerg Billeter [Wed, 23 Jan 2008 09:58:00 +0000 (09:58 +0000)]
honor EXEEXT to fix tests on Cygwin and MinGW, patch by Yaakov Selkowitz,

2008-01-23  Juerg Billeter  <j@bitron.ch>

* tests/Makefile.am, tests/testrunner.sh: honor EXEEXT to fix tests
  on Cygwin and MinGW, patch by Yaakov Selkowitz, fixes bug 511438

svn path=/trunk/; revision=893

16 years agoemit namespace constants, fixes bug 511383
Juerg Billeter [Wed, 23 Jan 2008 09:54:52 +0000 (09:54 +0000)]
emit namespace constants, fixes bug 511383

2008-01-23  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: emit namespace constants,
  fixes bug 511383

svn path=/trunk/; revision=892

16 years agoallow string comparison with null, use strcmp instead of g_utf8_collate
Juerg Billeter [Wed, 23 Jan 2008 09:32:30 +0000 (09:32 +0000)]
allow string comparison with null, use strcmp instead of g_utf8_collate

2008-01-23  Juerg Billeter  <j@bitron.ch>

* vala/valaenumvalue.vala, vala/valasemanticanalyzer.vala,
  gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratorsourcefile.vala: allow string comparison
  with null, use strcmp instead of g_utf8_collate for string operators,
  fixes bug 506199

* tests/Makefile.am, tests/strings.vala, tests/strings.exp: test
  string operators

svn path=/trunk/; revision=891

16 years agosupport metadata attributes for signal parameters
Juerg Billeter [Tue, 22 Jan 2008 22:25:30 +0000 (22:25 +0000)]
support metadata attributes for signal parameters

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support metadata attributes for signal
  parameters

* vapi/packages/gtk+-2.0/: fix GtkWidget::key_*_event bindings,
  fixes bug 505062

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=890

16 years agouse char[] instead of string for byte buffers, fixes bug 501690
Juerg Billeter [Tue, 22 Jan 2008 21:56:15 +0000 (21:56 +0000)]
use char[] instead of string for byte buffers, fixes bug 501690

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: use char[] instead of string for byte buffers,
  fixes bug 501690

svn path=/trunk/; revision=889

16 years agoimprove implicit conversion from integer literals, fixes bug 492475
Juerg Billeter [Tue, 22 Jan 2008 20:32:31 +0000 (20:32 +0000)]
improve implicit conversion from integer literals, fixes bug 492475

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vala/Makefile.am, vala/valaintegertype.vala,
  vala/valasemanticanalyzer.vala, vapi/glib-2.0.vapi: improve implicit
  conversion from integer literals, fixes bug 492475

svn path=/trunk/; revision=888

16 years agoupdate ranks of integer types to allow more implicit conversions where it
Juerg Billeter [Tue, 22 Jan 2008 18:50:41 +0000 (18:50 +0000)]
update ranks of integer types to allow more implicit conversions where it

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: update ranks of integer types to allow more
  implicit conversions where it makes sense

svn path=/trunk/; revision=887

16 years agosupport length field for array constants
Juerg Billeter [Tue, 22 Jan 2008 17:27:31 +0000 (17:27 +0000)]
support length field for array constants

2008-01-22  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: support length field for array
  constants

* tests/arrays.vala: test length field of array constants

svn path=/trunk/; revision=886

16 years agoadd element access tests to array tests
Juerg Billeter [Tue, 22 Jan 2008 17:15:36 +0000 (17:15 +0000)]
add element access tests to array tests

2008-01-22  Juerg Billeter  <j@bitron.ch>

* tests/Makefile.am, tests/arrays.exp, tests/arrays.vala: add element
  access tests to array tests

svn path=/trunk/; revision=885

16 years agocheck type of variable initializer
Juerg Billeter [Tue, 22 Jan 2008 17:05:24 +0000 (17:05 +0000)]
check type of variable initializer

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: check type of variable initializer

* gee/hashmap.vala, gee/hashset.vala, vala/valasymbol.vala: fix invalid
  variable initializers

svn path=/trunk/; revision=884

16 years agoadd bindings for gdk-pixbuf-2.0, fixes bug 501589
Juerg Billeter [Tue, 22 Jan 2008 14:35:05 +0000 (14:35 +0000)]
add bindings for gdk-pixbuf-2.0, fixes bug 501589

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gdk-pixbuf-2.0/, vapi/packages/gdk-2.0/,
  vapi/gdk-pixbuf-2.0.vapi, vapi/gdk-2.0.vapi: add bindings for
  gdk-pixbuf-2.0, fixes bug 501589

* vapi/packages/gnome-desktop-2.0/, vapi/packages/gtk+-2.0/,
  vapi/packages/gtksourceview-2.0/, vapi/packages/hildon-1/,
  vapi/packages/libglade-2.0/, vapi/packages/libgnomeui-2.0/,
  vapi/packages/libnotify/. vapi/packages/libwnck-1.0/.
  vapi/packages/poppler-glib/, vapi/packages/vte/, vapi/gdk-2.0.deps,
  vapi/gnome-desktop-2.0.deps, vapi/gtk+-2.0.deps,
  vapi/gtksourceview-2.0.deps, vapi/hildon-1.deps,
  vapi/libglade-2.0.deps, vapi/libgnomeui-2.0.deps, vapi/libnotify.deps,
  vapi/libwnck-1.0.deps, vapi/poppler-glib.deps, vapi/vte.deps: update
  dependencies

* vapi/Makefile.am: updated

svn path=/trunk/; revision=883

16 years agoadd get_element_type method to Gee.Iterable
Juerg Billeter [Tue, 22 Jan 2008 13:18:05 +0000 (13:18 +0000)]
add get_element_type method to Gee.Iterable

2008-01-22  Juerg Billeter  <j@bitron.ch>

* gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala,
  gee/iterable.vala, gee/readonlycollection.vala, gee/readonlylist.vala,
  gee/readonlyset.vala: add get_element_type method to Gee.Iterable

svn path=/trunk/; revision=882

16 years agosupport cheader_filename metadata attribute for enums
Juerg Billeter [Tue, 22 Jan 2008 10:16:47 +0000 (10:16 +0000)]
support cheader_filename metadata attribute for enums

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support cheader_filename metadata
  attribute for enums

svn path=/trunk/; revision=881

16 years agofix nullable types for local variables
Juerg Billeter [Tue, 22 Jan 2008 09:39:42 +0000 (09:39 +0000)]
fix nullable types for local variables

2008-01-22  Juerg Billeter  <j@bitron.ch>

* vala/scanner.l: fix nullable types for local variables

svn path=/trunk/; revision=880

16 years agoremove unneeded type casts
Juerg Billeter [Tue, 22 Jan 2008 08:12:10 +0000 (08:12 +0000)]
remove unneeded type casts

2008-01-22  Juerg Billeter  <j@bitron.ch>

* gee/hashmap.vala, gee/hashset.vala: remove unneeded type casts

svn path=/trunk/; revision=879

16 years agofix array creation expressions with side-effects, fixes bug 472984
Juerg Billeter [Mon, 21 Jan 2008 23:08:22 +0000 (23:08 +0000)]
fix array creation expressions with side-effects, fixes bug 472984

2008-01-22  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodearraycreationexpressionbinding.vala,
  gobject/valaccodegenerator.vala: fix array creation expressions with
  side-effects, fixes bug 472984

* tests/arrays.vala: test array creation expressions with side-effects

svn path=/trunk/; revision=878

16 years agocombine array tests in one file
Juerg Billeter [Mon, 21 Jan 2008 20:07:03 +0000 (20:07 +0000)]
combine array tests in one file

2008-01-21  Juerg Billeter  <j@bitron.ch>

* tests/Makefile.am, tests/arrays.exp, tests/arrays.vala: combine array
  tests in one file

svn path=/trunk/; revision=877

16 years agoset base_method also in VAPI classes for virtual and abstract methods,
Juerg Billeter [Mon, 21 Jan 2008 17:49:33 +0000 (17:49 +0000)]
set base_method also in VAPI classes for virtual and abstract methods,

2008-01-21  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: set base_method also in VAPI classes
  for virtual and abstract methods, fixes `baseĀ“ access

svn path=/trunk/; revision=876

16 years agoadd --quiet option to valac and vapigen, patch by Emmanuele Bassi, fixes
Juerg Billeter [Mon, 21 Jan 2008 17:27:16 +0000 (17:27 +0000)]
add --quiet option to valac and vapigen, patch by Emmanuele Bassi, fixes

2008-01-21  Juerg Billeter  <j@bitron.ch>

* compiler/valacompiler.vala, vapigen/valavapigen.vala: add --quiet
  option to valac and vapigen,
  patch by Emmanuele Bassi, fixes bug 510998

svn path=/trunk/; revision=875

16 years agoimprove generic type resolution, add type checking for element type in
Juerg Billeter [Mon, 21 Jan 2008 17:09:24 +0000 (17:09 +0000)]
improve generic type resolution, add type checking for element type in

2008-01-21  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: improve generic type resolution, add
  type checking for element type in foreach statement,
  based on patch by Hans Vercammen, fixes bug 510852

* gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratormethod.vala, vapigen/valagidlparser.vala:
  fix foreach statements

svn path=/trunk/; revision=874

16 years agofix pango_layout_iter_get_line_yrange binding
Juerg Billeter [Mon, 21 Jan 2008 10:41:34 +0000 (10:41 +0000)]
fix pango_layout_iter_get_line_yrange binding

2008-01-21  Juerg Billeter  <j@bitron.ch>

* vapi/packages/pango/: fix pango_layout_iter_get_line_yrange binding

* vapi/pango.vapi: regenerated

svn path=/trunk/; revision=873

16 years agofix poppler_page_get_size binding, fixes bug 510781
Juerg Billeter [Mon, 21 Jan 2008 10:38:47 +0000 (10:38 +0000)]
fix poppler_page_get_size binding, fixes bug 510781

2008-01-21  Juerg Billeter  <j@bitron.ch>

* vapi/packages/poppler-glib/: fix poppler_page_get_size binding,
  fixes bug 510781

* vapi/poppler-glib.vapi: regenerated

svn path=/trunk/; revision=872

16 years agosupport type_t naming convention
Juerg Billeter [Sat, 19 Jan 2008 20:23:18 +0000 (20:23 +0000)]
support type_t naming convention

2008-01-19  Juerg Billeter  <j@bitron.ch>

* gobject-introspection/scanner.c: support type_t naming convention

svn path=/trunk/; revision=871