platform/upstream/vala.git
16 years agosupport strings in switch statements, fixes bug 473462
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

16 years agoemit line directives in debug mode
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

16 years agoadd string.to_double
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

16 years agoFixed ChangeLog order. Shame on you, git-rebase.
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

16 years agoHandle markup errors in GIDL files.
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

16 years agofix virtual methods with generic return type
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

16 years agoimprove Screen class, patch by Ed Schouten
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

16 years agohandle null pointer for expression_type in get_implicit_cast_expression.
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

16 years agoadding vapicheck as tool to verify Vala bindings. currently only .metadata
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

16 years agoregenerated for release 1.90.4
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

16 years agoavoid unnecessary xml_pp dependency, patch by Alberto Ruiz, fixes bug
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

16 years agoimprove gidlgen command-line options, patch by Alberto Ruiz, fixes bug
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

16 years agofix internal warnings on syntax errors
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

16 years agouse subtyping, patch by Ed Schouten
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

16 years agofix implicit casts to support non-GObject classes, enable run-time checks
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

16 years agomark pango_glyph_item_letter_space.log_attrs and
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

16 years agogtk_init_with_args.entries as array mark PangoLogAttr as value type
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

16 years agolet DataType.is_subtype_of return true if the specified type is the same
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

16 years agoadd introduction to data types
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

16 years agovisit finally body, fixes bug 467919
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

16 years agoadd xsltproc as optional dependency add initial structure for the Vala
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

16 years agocheck arguments of methods with ellipsis parameters
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

16 years agoimprove error reporting for expression, while, and for statements and for
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

16 years agoPost-release version bump
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

16 years agoupdate for 0.1.3 release VALA_0_1_3
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

16 years agoonly install man pages for vapigen and gidlgen if vapigen is enabled
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

16 years agofix binding provider support
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

16 years agonumber temp variables for each function separately, don't use reserved __
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

16 years agosimplify struct variable initialization, remove unnecessary warning
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

16 years agosupport base_class attribute
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

16 years agouse G_TYPE_POINTER for not registered classes, add has_type_id attribute
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

16 years agohide internal API and specify correct header files regenerated
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

16 years agodon't NULL-terminate value-type arrays
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

16 years agosupport prototype access to allow accessing instance members without an
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

16 years agorename MemberAccessibility to SymbolAccessibility and move its declaration
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

16 years agoremove support for reference-type structs, improve support for non-GObject
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

16 years agofix internal warnings on syntax errors
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

16 years agoimprove error reporting for parenthesized expressions
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

16 years agoimprove error reporting for foreach statements
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

16 years agoremove clutter bindings, will be moved to clutter svn
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

16 years agoreplace reference-type structs by classes, requires r539 to build
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

16 years agofix object creation for non-GObject classes without creation method
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

16 years agoremove obsolete ctype attribute
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

16 years agosupport classes without base class
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

16 years agodon't implicitly derive from GLib.Object in preparation for a more
Juerg Billeter [Thu, 30 Aug 2007 12:33:40 +0000 (12:33 +0000)]
don't implicitly derive from GLib.Object in preparation for a more

2007-08-30  Juerg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala,
  gobject/valacodegenerator.vala, gobject/valacodegeneratorclass.vala:
  don't implicitly derive from GLib.Object in preparation for a more
  consistent type system

* gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala,
  gee/iterable.vala, gee/iterator.vala, gee/list.vala, gee/map.vala,
  gee/readonlycollection.vala, gee/readonlylist.vala,
  gee/readonlymap.vala, gee/readonlyset.vala,
  vala/valabindingprovider.vala, vala/valacodecontext.vala,
  vala/valacodenode.vala, vala/valacodevisitor.vala,
  vala/valascope.vala, vala/valasourcefile.vala,
  vala/valasourcefilecycle.vala, vala/valasourcereference.vala,
  ccode/valaccodenode.vala, ccode/valaccodewriter.vala,
  gobject/valaccodecompiler.vala, gobject/valadbusbindingprovider.vala,
  gobject/valatyperegisterfunction.vala, compiler/valacompiler.vala,
  tests/, vapigen/valavapigen.vala: derive all classes from GLib.Object

svn path=/trunk/; revision=536

16 years agoadd missing file
Juerg Billeter [Thu, 30 Aug 2007 12:31:30 +0000 (12:31 +0000)]
add missing file

2007-08-30  Juerg Billeter  <j@bitron.ch>

* vapi/libnotify.deps: add missing file

svn path=/trunk/; revision=535

16 years agoadd libnotify bindings, patch by Nicolas Christener and Roland Hostettler
Juerg Billeter [Wed, 29 Aug 2007 20:39:02 +0000 (20:39 +0000)]
add libnotify bindings, patch by Nicolas Christener and Roland Hostettler

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/libnotify.valam, vapi/packages/libnotify/: add
  libnotify bindings, patch by Nicolas Christener and Roland Hostettler

svn path=/trunk/; revision=534

16 years agoadd missing type_id information
Juerg Billeter [Wed, 29 Aug 2007 18:47:42 +0000 (18:47 +0000)]
add missing type_id information

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add missing type_id information

svn path=/trunk/; revision=533

16 years agoadd signal to keyword list
Juerg Billeter [Wed, 29 Aug 2007 14:45:42 +0000 (14:45 +0000)]
add signal to keyword list

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: add signal to keyword list

* vapi/libglade-2.0.vala: regenerated

svn path=/trunk/; revision=532

16 years agoreport too short type names, based on patch by Ed Schouten, fixes bug
Juerg Billeter [Wed, 29 Aug 2007 14:09:40 +0000 (14:09 +0000)]
report too short type names, based on patch by Ed Schouten, fixes bug

2007-08-29  Juerg Billeter  <j@bitron.ch>

* gobject/valacodegeneratorclass.vala,
  gobject/valacodegeneratorinterface.vala: report too short type names,
  based on patch by Ed Schouten, fixes bug 471253

svn path=/trunk/; revision=531

16 years agoallow property accessors in arbitrary order, fixes bug 470233
Juerg Billeter [Wed, 29 Aug 2007 13:56:53 +0000 (13:56 +0000)]
allow property accessors in arbitrary order, fixes bug 470233

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vala/parser.y: allow property accessors in arbitrary order,
  fixes bug 470233

svn path=/trunk/; revision=530

16 years agoimprove error reporting in invocation expressions
Juerg Billeter [Wed, 29 Aug 2007 13:31:43 +0000 (13:31 +0000)]
improve error reporting in invocation expressions

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: improve error reporting in invocation
  expressions

svn path=/trunk/; revision=529

16 years agodeny access to instance members from static methods, improve error
Juerg Billeter [Wed, 29 Aug 2007 13:04:23 +0000 (13:04 +0000)]
deny access to instance members from static methods, improve error

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vala/valaclass.vala, vala/valasemanticanalyzer.vala,
  gobject/valacodegeneratorassignment.vala: deny access to instance
  members from static methods, improve error reporting

svn path=/trunk/; revision=528

16 years agofix internal warnings on syntax errors, fixes bug 471226
Juerg Billeter [Wed, 29 Aug 2007 11:26:07 +0000 (11:26 +0000)]
fix internal warnings on syntax errors, fixes bug 471226

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vala/parser.y: fix internal warnings on syntax errors,
  fixes bug 471226

svn path=/trunk/; revision=527

16 years agoadd missing init/shutdown methods
Juerg Billeter [Wed, 29 Aug 2007 10:14:25 +0000 (10:14 +0000)]
add missing init/shutdown methods

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vapi/gnome-vfs-2.0.vala,
  vapi/packages/gnome-vfs-2.0/gnome-vfs-2.0-custom.vala: add missing
  init/shutdown methods

svn path=/trunk/; revision=526

16 years agofix warnings on invalid code
Juerg Billeter [Wed, 29 Aug 2007 10:08:43 +0000 (10:08 +0000)]
fix warnings on invalid code

2007-08-29  Juerg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala: fix warnings on invalid code

svn path=/trunk/; revision=525

16 years agofix warnings on invalid code
Juerg Billeter [Wed, 29 Aug 2007 09:42:37 +0000 (09:42 +0000)]
fix warnings on invalid code

2007-08-29  Juerg Billeter  <j@bitron.ch>

* gobject/valadbusbindingprovider.vala: fix warnings on invalid code

svn path=/trunk/; revision=524

16 years agoensure that the error domains match when comparing two methods for
Juerg Billeter [Tue, 28 Aug 2007 19:05:29 +0000 (19:05 +0000)]
ensure that the error domains match when comparing two methods for

2007-08-28  Juerg Billeter  <j@bitron.ch>

* vala/valamethod.vala: ensure that the error domains match when
  comparing two methods for equality, fixes bug 465123

svn path=/trunk/; revision=523

16 years agogenerate warning about invalid property ids, fixes bug 463668
Juerg Billeter [Tue, 28 Aug 2007 18:53:29 +0000 (18:53 +0000)]
generate warning about invalid property ids, fixes bug 463668

2007-08-28  Juerg Billeter  <j@bitron.ch>

* ccode/valaccodeswitchstatement.vala,
  gobject/valacodegeneratorclass.vala: generate warning about invalid
  property ids, fixes bug 463668

svn path=/trunk/; revision=522

16 years agoavoid crash on missing copy function, fixes bug 471063.
Mathias Hasselmann [Tue, 28 Aug 2007 15:17:45 +0000 (15:17 +0000)]
avoid crash on missing copy function, fixes bug 471063.

2007-08-28  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* gobject/valacodegenerator.vala: avoid crash on missing copy
function, fixes bug 471063.

svn path=/trunk/; revision=520

16 years agodoc: add vapigen and gidlgen manual pages
Marc-Andre Lureau [Tue, 28 Aug 2007 15:13:08 +0000 (15:13 +0000)]
doc: add vapigen and gidlgen manual pages

svn path=/trunk/; revision=519

16 years agoupdate format as requested on desktop-devel
Juerg Billeter [Tue, 28 Aug 2007 14:36:23 +0000 (14:36 +0000)]
update format as requested on desktop-devel

2007-08-28  Juerg Billeter  <j@bitron.ch>

* MAINTAINERS: update format as requested on desktop-devel

svn path=/trunk/; revision=518

16 years agosupport custom field cname in generated VAPI file
Juerg Billeter [Tue, 28 Aug 2007 14:22:57 +0000 (14:22 +0000)]
support custom field cname in generated VAPI file

2007-08-28  Juerg Billeter  <j@bitron.ch>

* vala/valafield.vala, vala/valainterfacewriter.vala: support custom
  field cname in generated VAPI file

* vapigen/valagidlparser.vala: add mode_t support

* vapi/glib-2.0.vala, vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala: add
  some required stubs

* vapi/gconf-2.0.vala, vapi/packages/gconf-2.0/: add GConf bindings

* vapi/gnome-vfs-2.0.vala, vapi/packages/gnome-vfs-2.0/: add GnomeVFS
  bindings

* vapi/libgnome-2.0.vala, vapi/packages/libgnome-2.0/: add libgnome
  bindings

* vapi/libgnomeui-2.0.deps, vapi/libgnomeui-2.0.vala,
  vapi/packages/libgnomeui-2.0/: add libgnomeui bindings

* vapi/libpanelapplet-2.0.deps, vapi/libpanelapplet-2.0.vala: add Panel
  Applet bindings

* vapi/atk.vala, vapi/clutter-0.4.vala, vapi/gdk-2.0.vala,
  vapi/gio-standalone.vala, vapi/gnome-desktop-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/libsoup-2.2.vala, vapi/libwnck-1.0.vala,
  vapi/pango.vala, vapi/poppler-glib.vala, vapi/vte.vala: regenerated

* vapi/Makefile.am: updated

svn path=/trunk/; revision=517

16 years agoadd support for partial structs, patch by Mathias Hasselmann
Juerg Billeter [Tue, 28 Aug 2007 14:04:00 +0000 (14:04 +0000)]
add support for partial structs, patch by Mathias Hasselmann

2007-08-28  Juerg Billeter  <j@bitron.ch>

* vala/parser.y: add support for partial structs,
  patch by Mathias Hasselmann

* vapigen/valagidlparser.vala: support partial structs and classes in
  -custom.vala files, fixes bug 470855

* vapi/gtk+-2.0.vala, vapi/packages/pango/pango-custom.vala,
  vapi/pango.vala: updated

svn path=/trunk/; revision=516

16 years agomove math functions to GLib VAPI, remove math.vala
Juerg Billeter [Tue, 28 Aug 2007 07:49:23 +0000 (07:49 +0000)]
move math functions to GLib VAPI, remove math.vala

2007-08-28  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/glib-2.0.vala, vapi/math.vala: move math
  functions to GLib VAPI, remove math.vala

svn path=/trunk/; revision=515

16 years agosupport non-GObject classes, will replace reference-type structs
Juerg Billeter [Tue, 28 Aug 2007 07:22:02 +0000 (07:22 +0000)]
support non-GObject classes, will replace reference-type structs

2007-08-28  Juerg Billeter  <j@bitron.ch>

* vala/valaclass.vala, vala/valaenum.vala,
  gobject/valacodegenerator.vala, gobject/valacodegeneratorclass.vala,
  gobject/valacodegeneratorinterface.vala,
  gobject/valacodegeneratormethod.vala: support non-GObject classes,
  will replace reference-type structs

svn path=/trunk/; revision=514

16 years agoreintroduce GtkWidgetFlags API
Mathias Hasselmann [Mon, 27 Aug 2007 21:37:29 +0000 (21:37 +0000)]
reintroduce GtkWidgetFlags API

2007-08-27  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala,
vapi/gtk+-2.0.vala: reintroduce GtkWidgetFlags API

svn path=/trunk/; revision=513

16 years agofix signature of Pango.Language.to_string
Mathias Hasselmann [Mon, 27 Aug 2007 21:37:23 +0000 (21:37 +0000)]
fix signature of Pango.Language.to_string

2007-08-27  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* vapi/packages/pango/pango-custom.vala:
fix signature of Pango.Language.to_string

svn path=/trunk/; revision=512

16 years agoinclude type-name in to_string result implement to_string method, fixes
Mathias Hasselmann [Mon, 27 Aug 2007 19:41:15 +0000 (19:41 +0000)]
include type-name in to_string result implement to_string method, fixes

2007-08-27  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* vala/valacodenode.vala: include type-name in to_string result
* vala/valaunaryexpression.vala: implement to_string method,
       fixes bug 470778

svn path=/trunk/; revision=511

16 years agoupdate to Clutter 0.4.1, patch by Alberto Ruiz, fixes bug 470763
Juerg Billeter [Mon, 27 Aug 2007 19:16:53 +0000 (19:16 +0000)]
update to Clutter 0.4.1, patch by Alberto Ruiz, fixes bug 470763

2007-08-27  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/clutter-0.3.deps, vapi/clutter-0.3.vala,
  vapi/clutter-0.4.deps, vapi/clutter-0.4.vala,
  vapi/packages/clutter-0.3/, vapi/packages/clutter-0.4/: update to
  Clutter 0.4.1, patch by Alberto Ruiz, fixes bug 470763

svn path=/trunk/; revision=510

16 years agouse .deps files to satisfy dependencies, patch by Alberto Ruiz, fixes bug
Juerg Billeter [Mon, 27 Aug 2007 19:04:22 +0000 (19:04 +0000)]
use .deps files to satisfy dependencies, patch by Alberto Ruiz, fixes bug

2007-08-27  Juerg Billeter  <j@bitron.ch>

* vapigen/valavapigen.vala: use .deps files to satisfy dependencies,
  patch by Alberto Ruiz, fixes bug 470756

* vapi/packages/clutter-0.3/clutter-0.3.deps,
  vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps,
  vapi/packages/gtksourceview-2.0/gtksourceview-2.0.deps,
  vapi/packages/libglade-2.0/libglade-2.0.deps,
  vapi/packages/libwnck-1.0/libwnck-1.0.deps: add missing dependencies

svn path=/trunk/; revision=509

16 years agoadd pango_layout_to_string. TODO: support partial classes in vapigen.
Mathias Hasselmann [Mon, 27 Aug 2007 18:35:09 +0000 (18:35 +0000)]
add pango_layout_to_string. TODO: support partial classes in vapigen.

2007-08-27  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* vapi/packages/pango/pango-custom.vala, vapi/pango.vala:
add pango_layout_to_string. TODO: support partial classes in vapigen.

svn path=/trunk/; revision=508

16 years agochange type of string length paramenters from int to long to be compliant
Mathias Hasselmann [Mon, 27 Aug 2007 18:35:05 +0000 (18:35 +0000)]
change type of string length paramenters from int to long to be compliant

2007-08-27  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* vapi/enchant.vala: change type of string length paramenters from int
to long to be compliant with GLib.string.size ().

svn path=/trunk/; revision=507

16 years agoignore enum values to avoid some pattern matching issues
Juerg Billeter [Mon, 27 Aug 2007 16:36:37 +0000 (16:36 +0000)]
ignore enum values to avoid some pattern matching issues

2007-08-27  Juerg Billeter  <j@bitron.ch>

* vapigen/gidlgen/gapi2xml.pl: ignore enum values to avoid some pattern
  matching issues

* vapi/Makefile.am, vapi/packages/poppler-glib/, vapi/poppler-glib.deps,
  vapi/poppler-glib.vala: add poppler bindings, patch by Alberto Ruiz,
  fixes bug 468990

* vapi/packages/atk/atk.gidl, vapi/packages/gdk-2.0/gdk-2.0.gidl,
  vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.gidl,
  vapi/packages/gstreamer-0.10/gstreamer-0.10.gidl,
  vapi/packages/gtk+-2.0/gtk+-2.0.gidl,
  vapi/packages/libsoup-2.2/libsoup-2.2.gidl,
  vapi/packages/libwnck-1.0/libwnck-1.0.gidl,
  vapi/packages/pango/pango.gidl: regenerated

svn path=/trunk/; revision=506

16 years agoadd curses bindings, patch by Ed Schouten
Juerg Billeter [Mon, 27 Aug 2007 14:53:16 +0000 (14:53 +0000)]
add curses bindings, patch by Ed Schouten

2007-08-27  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/curses.vala: add curses bindings,
  patch by Ed Schouten

svn path=/trunk/; revision=505

16 years agogenerate static get_type functions for non-public classes and interfaces,
Juerg Billeter [Mon, 27 Aug 2007 14:46:38 +0000 (14:46 +0000)]
generate static get_type functions for non-public classes and interfaces,

2007-08-27  Juerg Billeter  <j@bitron.ch>

* gobject/valaclassregisterfunction.vala,
  gobject/valacodegeneratorinterface.vala,
  gobject/valainterfaceregisterfunction.vala,
  gobject/valatyperegisterfunction.vala: generate static get_type
  functions for non-public classes and interfaces,
  patch by Ed Schouten, fixes bug 470428

svn path=/trunk/; revision=504

16 years agouse exceptions instead of GError parameters for generated bindings, based
Juerg Billeter [Mon, 27 Aug 2007 13:51:41 +0000 (13:51 +0000)]
use exceptions instead of GError parameters for generated bindings, based

2007-08-27  Juerg Billeter  <j@bitron.ch>

* vala/valacreationmethod.vala, gobject/valacodegenerator.vala,
  vapigen/valagidlparser.vala: use exceptions instead of GError
  parameters for generated bindings, based on patch by Alberto Ruiz,
  fixes bug 470432

* vapi/clutter-0.3.vala, vapi/gdk-2.0.vala, vapi/gio-standalone.vala,
  vapi/gnome-desktop-2.0.vala, vapi/gstreamer-0.10.vala,
  vapi/gtk+-2.0.vala, vapi/hildon-1.vala, vapi/pango.vala: regenerated

svn path=/trunk/; revision=503

16 years agofix generated string out and string array parameters add g_listenv
Juerg Billeter [Fri, 24 Aug 2007 18:23:29 +0000 (18:23 +0000)]
fix generated string out and string array parameters add g_listenv

2007-08-24  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala, vapi/gdk-2.0.vala,
  vapi/gio-standalone.vala,
  vapi/gnome-desktop-2.0.vala, vapi/gstreamer-0.10.vala,
  vapi/gtk+-2.0.vala, vapi/libsoup-2.2.vala,
  vapi/packages/gdk-2.0/gdk-2.0.metadata,
  vapi/packages/gio-standalone/gio-standalone.metadata,
  vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata,
  vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata,
  vapi/packages/gtk+-2.0/gtk+-2.0.metadata,
  vapi/packages/vte/vte.metadata, vapi/pango.vala, vapi/vte.vala:
  fix generated string out and string array parameters
* vapi/glib-2.0.vala: add g_listenv

svn path=/trunk/; revision=502

16 years agoadd GNOME Desktop Library bindings
Juerg Billeter [Fri, 24 Aug 2007 14:33:35 +0000 (14:33 +0000)]
add GNOME Desktop Library bindings

2007-08-24  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala, vapi/Makefile.am,
  vapi/gnome-desktop-2.0.vala, vapi/packages/gnome-desktop-2.0/: add
  GNOME Desktop Library bindings

svn path=/trunk/; revision=501

16 years agofix array fields of Gtk.Style, fixes bug 463959 add g_get_user_data_dir
Juerg Billeter [Fri, 24 Aug 2007 14:14:50 +0000 (14:14 +0000)]
fix array fields of Gtk.Style, fixes bug 463959 add g_get_user_data_dir

2007-08-24  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala, vapi/gtk+-2.0.vala,
  vapi/packages/gtk+-2.0/gtk+-2.0.metadata: fix array fields of
  Gtk.Style, fixes bug 463959
* vapi/glib-2.0.vala: add g_get_user_data_dir

svn path=/trunk/; revision=500

16 years agorecognize unsigned and unsigned-int types add libwnck bindings
Juerg Billeter [Fri, 24 Aug 2007 07:18:59 +0000 (07:18 +0000)]
recognize unsigned and unsigned-int types add libwnck bindings

2007-08-24  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: recognize unsigned and unsigned-int types
* vapi/Makefile.am, vapi/libwnck-1.0.vala, vapi/packages/libwnck-1.0/:
  add libwnck bindings

svn path=/trunk/; revision=499

16 years agowrite dup_function and free_function attribute values recognize ref,
Juerg Billeter [Fri, 24 Aug 2007 07:10:26 +0000 (07:10 +0000)]
write dup_function and free_function attribute values recognize ref,

2007-08-24  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala, vala/valastruct.vala,
  gobject/valacodegenerator.vala: write dup_function and free_function
  attribute values
* vapigen/valagidlparser.vala: recognize ref, unref, and free functions,
  GType arrays, and out parameters
* vapi/glib-2.0.vala: mark Closure as reference type
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gio-standalone.vala,
  vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
  vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala,
  vapi/vte.vala: regenerated
* vapi/packages/atk/: update to ATK 1.19.6
* vapi/packages/gdk-2.0/, vapi/packages/gtk+-2.0/: update to GTK+ 2.11.6
* vapi/packages/gstreamer-0.10/: update to GStreamer 0.10.14
* vapi/packages/gtksourceview-2.0/: update to GtkSourceView 1.90.3
* vapi/packages/pango/: update to Pango 1.18.0

svn path=/trunk/; revision=498

16 years agofix typo, patch by Piotr Skamruk
Juerg Billeter [Tue, 21 Aug 2007 11:35:19 +0000 (11:35 +0000)]
fix typo, patch by Piotr Skamruk

2007-08-21  Juerg Billeter  <j@bitron.ch>

* vapi/libxml-2.0.vala: fix typo, patch by Piotr Skamruk

svn path=/trunk/; revision=497

16 years agoadd array length argument when passing null as array argument, fixes bug
Juerg Billeter [Tue, 21 Aug 2007 11:23:08 +0000 (11:23 +0000)]
add array length argument when passing null as array argument, fixes bug

2007-08-21  Juerg Billeter  <j@bitron.ch>

* gobject/valacodegeneratorinvocationexpression.vala: add array length
  argument when passing null as array argument, fixes bug 467903

svn path=/trunk/; revision=496

16 years agofix build system to pass distcheck, based on patch by Nicolas Trangez,
Juerg Billeter [Tue, 21 Aug 2007 10:51:08 +0000 (10:51 +0000)]
fix build system to pass distcheck, based on patch by Nicolas Trangez,

2007-08-21  Juerg Billeter  <j@bitron.ch>

* gee/Makefile.am, vala/Makefile.am, ccode/Makefile.am,
  gobject/Makefile.am, compiler/Makefile.am, tests/Makefile.am,
  tests/testrunner.sh: fix build system to pass distcheck,
  based on patch by Nicolas Trangez, fixes bug 466283
* Rename tests/*.out to tests/*.exp
* tests/test-022.vala, tests/test-022.exp: reduce to regression test

svn path=/trunk/; revision=495

16 years agosupport --directory option, use basename of input filenames, patch by
Juerg Billeter [Tue, 21 Aug 2007 10:00:47 +0000 (10:00 +0000)]
support --directory option, use basename of input filenames, patch by

2007-08-21  Juerg Billeter  <j@bitron.ch>

* vala/valacodecontext.vala, vala/valasourcefile.vala,
  gobject/valaccodecompiler.vala, compiler/valacompiler.vala: support
  --directory option, use basename of input filenames,
  patch by Nicolas Trangez, fixes bug 465720

svn path=/trunk/; revision=494

16 years agoconsider switch statements when releasing local variables, fixes bug
Mathias Hasselmann [Tue, 21 Aug 2007 07:40:14 +0000 (07:40 +0000)]
consider switch statements when releasing local variables, fixes bug

2007-08-21 Mathias Hasselmann <mathias.hasselmann@gmx.de>

* gobject/valacodegenerator.vala, vala/valaswitchsection.vala,
vala/valaswitchstatement.vala: consider switch statements
when releasing local variables, fixes bug 467896
* tests/Makefile.am, tests/test-035.*: test for that bug

svn path=/trunk/; revision=493

16 years agoAdd bug number to encourage use of Bugzilla.
Mathias Hasselmann [Tue, 21 Aug 2007 07:37:54 +0000 (07:37 +0000)]
Add bug number to encourage use of Bugzilla.

svn path=/trunk/; revision=492

16 years agofix memory management for throw statements, fixes bug 465071
Juerg Billeter [Mon, 20 Aug 2007 21:52:07 +0000 (21:52 +0000)]
fix memory management for throw statements, fixes bug 465071

2007-08-20  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala, vala/valathrowstatement.vala,
  gobject/valacodegenerator.vala: fix memory management for throw
  statements, fixes bug 465071

svn path=/trunk/; revision=491

16 years agoAdd test for prefix increments in while loops: do { } while (++i < x);
Mathias Hasselmann [Mon, 20 Aug 2007 21:30:39 +0000 (21:30 +0000)]
Add test for prefix increments in while loops: do { } while (++i < x);

2007-08-20  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* tests/test-027.*: Add test for prefix increments
in while loops: do { } while (++i < x);

svn path=/trunk/; revision=490

16 years agosupport C# like as operator test the as operator
Mathias Hasselmann [Mon, 20 Aug 2007 21:23:00 +0000 (21:23 +0000)]
support C# like as operator test the as operator

2007-08-20  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* vala/valacastexpression.vala, gobject/valacodegenerator.vala,
vala/parser.y, vala/scanner.l: support C# like as operator
* tests/Makefile.am, tests/test-034.*: test the as operator

svn path=/trunk/; revision=489

16 years agosupport cheader_filename attribute, fixes bug 464988
Juerg Billeter [Mon, 20 Aug 2007 20:00:35 +0000 (20:00 +0000)]
support cheader_filename attribute, fixes bug 464988

2007-08-20  Juerg Billeter  <j@bitron.ch>

* vala/valafield.vala: support cheader_filename attribute,
  fixes bug 464988

svn path=/trunk/; revision=488

16 years agofix initialization of external variables
Juerg Billeter [Mon, 20 Aug 2007 19:05:47 +0000 (19:05 +0000)]
fix initialization of external variables

2007-08-20  Juerg Billeter  <j@bitron.ch>

* ccode/valaccodedeclaration.vala, ccode/valaccodemodifiers.vala,
  gobject/valacodegenerator.vala: fix initialization of external
  variables

svn path=/trunk/; revision=487

16 years agosupport namespace fields and public static class fields, fixes bug 464985
Juerg Billeter [Mon, 20 Aug 2007 16:42:47 +0000 (16:42 +0000)]
support namespace fields and public static class fields, fixes bug 464985

2007-08-20  Juerg Billeter  <j@bitron.ch>

* vala/valafield.vala, gobject/valacodegenerator.vala,
  gobject/valacodegeneratorclass.vala: support namespace fields and
  public static class fields, fixes bug 464985

svn path=/trunk/; revision=486

16 years agoenclose prefix increment and decrement unary expressions transformend to
Raffaele Sandrini [Mon, 20 Aug 2007 14:48:27 +0000 (14:48 +0000)]
enclose prefix increment and decrement unary expressions transformend to

2007-08-20  Raffaele Sandrini  <raffaele@sandrini.ch>

* vala/valasemanticanalyzer.vala: enclose prefix increment and decrement unary
  expressions transformend to binary expressions into parenthesis

svn path=/trunk/; revision=485

16 years agoreport error and fix critical to prevent private members in namespaces
Juerg Billeter [Mon, 20 Aug 2007 13:33:26 +0000 (13:33 +0000)]
report error and fix critical to prevent private members in namespaces

2007-08-20  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: report error and fix critical to
  prevent private members in namespaces

svn path=/trunk/; revision=484

16 years agoalso use _vala_array_free to release string arrays as g_strfreev cannot
Mathias Hasselmann [Sun, 19 Aug 2007 22:03:31 +0000 (22:03 +0000)]
also use _vala_array_free to release string arrays as g_strfreev cannot

2007-08-19  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* gobject/valacodegenerator.vala: also use _vala_array_free to
release string arrays as g_strfreev cannot handle Vala's sized
arrays, which have a _length variable, but no NULL sentinel.
* gobject/valacodegeneratorsourcefile.vala: enhance _vala_array_free
to handle unsized (NULL sentinel terminated) arrays.
* tests/test-022.*: test behaviour of _vala_array_free. currently
fails because Vala forgets to release old element members when
assigning a new value.

svn path=/trunk/; revision=483

16 years agomove code generation for _vala_array_free and _vala_array_move into
Mathias Hasselmann [Sun, 19 Aug 2007 22:03:24 +0000 (22:03 +0000)]
move code generation for _vala_array_free and _vala_array_move into

2007-08-19  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* gobject/valacodegeneratorsourcefile.vala: move code generation
for _vala_array_free and _vala_array_move into separate methods
for readability.

svn path=/trunk/; revision=482

16 years agoterminate array initializer with NULL sentinal to make destructors like
Mathias Hasselmann [Sun, 19 Aug 2007 22:03:19 +0000 (22:03 +0000)]
terminate array initializer with NULL sentinal to make destructors like

2007-08-18  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* gobject/valacodegenerator.vala: terminate array initializer
with NULL sentinal to make destructors like g_strfreev happy

svn path=/trunk/; revision=481

16 years agoerm, well.. also should install enchant.vala
Mathias Hasselmann [Sat, 18 Aug 2007 09:43:15 +0000 (09:43 +0000)]
erm, well.. also should install enchant.vala

2007-08-18  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

* vapi/Makefile.am: erm, well.. also should install enchant.vala

svn path=/trunk/; revision=479