platform/upstream/vala.git
17 years agosupport delegate keyword and optional modifiers to declare callbacks
Juerg Billeter [Mon, 9 Jul 2007 05:08:30 +0000 (05:08 +0000)]
support delegate keyword and optional modifiers to declare callbacks

2007-07-09  Juerg Billeter  <j@bitron.ch>

* vala/scanner.l, vala/parser.y: support delegate keyword and optional
  modifiers to declare callbacks

svn path=/trunk/; revision=332

17 years agosupport # modifier to transfer ownership in method parameters
Juerg Billeter [Mon, 9 Jul 2007 04:53:32 +0000 (04:53 +0000)]
support # modifier to transfer ownership in method parameters

2007-07-09  Juerg Billeter  <j@bitron.ch>

* vala/parser.y: support # modifier to transfer ownership in method
  parameters

svn path=/trunk/; revision=331

17 years agofix TimeVal binding add experimental VAPI for HAL update
Juerg Billeter [Thu, 5 Jul 2007 12:29:32 +0000 (12:29 +0000)]
fix TimeVal binding add experimental VAPI for HAL update

2007-07-05  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: fix TimeVal binding
* vapi/dbus-glib-1.vala, vapi/hal.deps, vapi/hal.vala: add experimental
  VAPI for HAL
* vapi/Makefile.am: update

svn path=/trunk/; revision=330

17 years agoupdate to new GRegex API
Juerg Billeter [Wed, 4 Jul 2007 14:40:28 +0000 (14:40 +0000)]
update to new GRegex API

2007-07-04  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: update to new GRegex API

svn path=/trunk/; revision=329

17 years agowrite cprefix and lower_case_cprefix of namespaces and write
Juerg Billeter [Tue, 3 Jul 2007 21:42:08 +0000 (21:42 +0000)]
write cprefix and lower_case_cprefix of namespaces and write

2007-07-03  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: write cprefix and lower_case_cprefix
  of namespaces and write cheader_filename of interfaces
* vala/valanamespace.vala: make set_cprefix and set_lower_case_cprefix
  methods public
* ccode/valaccodewriter.vala, vala/valainterfacewriter.vala,
  gobject/valaccodecompiler.vala, compiler/valacompiler.vala,
  vapi/glib-2.0.vala, vapigen/valagidlparser.vala,
  vapigen/valavapigen.vala: split GLib.File into GLib.FileStream and
  GLib.FileUtils to not conflict with GVFS
* vala/valagidlparser.vala: improve support for GVFS
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  regenerated
* vapi/gio-standalone.vala, vapi/packages/gio-standalone/: add
  experimental VAPI for GVFS
* vapi/Makefile.am: update

svn path=/trunk/; revision=328

17 years agoadd more string utility functions and GDate support, based on patch by
Juerg Billeter [Sun, 1 Jul 2007 19:09:54 +0000 (19:09 +0000)]
add more string utility functions and GDate support, based on patch by

2007-07-01  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add more string utility functions and GDate
  support, based on patch by Michael Lawrence, fixes bug 452015

svn path=/trunk/; revision=327

17 years agoadd basic support for enum methods
Juerg Billeter [Sun, 1 Jul 2007 16:50:02 +0000 (16:50 +0000)]
add basic support for enum methods

2007-07-01  Juerg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valasymbolbuilder.vala,
  vala/valasymbolresolver.vala, vala/valaenum.vala: add basic support
  for enum methods

svn path=/trunk/; revision=326

17 years agofix current_symbol handling in visit_property_accessor add missing
Juerg Billeter [Sat, 30 Jun 2007 16:31:19 +0000 (16:31 +0000)]
fix current_symbol handling in visit_property_accessor add missing

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

* vala/valasymbolbuilder.vala: fix current_symbol handling in
  visit_property_accessor
* vapigen/valagidlparser.vala: add missing NoArrayLength attribute,
  support hiding signals
* vapi/glib-2.0.vala: add GConnectFlags
* vapi/packages/pango/pango.gidl, vapi/pango.vala: updated to
  Pango 1.17.3
* vapi/packages/gdk-2.0/gdk-2.0.gidl,
  vapi/packages/gtk+-2.0/gtk+-2.0.gidl,
  vapi/packages/gtk+-2.0/gtk+-2.0.metadata, vapi/gdk-2.0.vala,
  vapi/gtk+-2.0.vala: updated to GTK+ 2.11.4, some small
  GtkTreeModel/GtkTreeStore fixes

svn path=/trunk/; revision=325

17 years agomove iteration of symbol nodes from accept to accept_children method
Jürg Billeter [Fri, 15 Jun 2007 16:27:12 +0000 (16:27 +0000)]
move iteration of symbol nodes from accept to accept_children method

2007-06-15  Jürg Billeter  <j@bitron.ch>

* vala/valaattributeprocessor.vala, vala/valacodevisitor.vala,
  vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
  vala/valasemanticanalyzer.vala, vala/valasymbolbuilder.vala,
  vala/valasymbolresolver.vala, vala/valaconstant.vala,
  vala/valaconstructor.vala, vala/valacreationmethod.vala,
  vala/valadestructor.vala, vala/valafield.vala,
  vala/valaformalparameter.vala, vala/valamethod.vala,
  vala/valaproperty.vala, vala/valapropertyaccessor.vala,
  vala/valasignal.vala, gobject/valacodegenerator.vala,
  gobject/valacodegeneratormethod.vala,
  gobject/valacodegeneratorsignal.vala: move iteration of symbol nodes
  from accept to accept_children method

svn path=/trunk/; revision=324

17 years agomove iteration of data types from accept to accept_children method
Jürg Billeter [Fri, 15 Jun 2007 12:36:34 +0000 (12:36 +0000)]
move iteration of data types from accept to accept_children method

2007-06-15  Jürg Billeter  <j@bitron.ch>

* vala/valaattributeprocessor.vala, vala/valacodevisitor.vala,
  vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
  vala/valaparser.vala, vala/valasemanticanalyzer.vala,
  vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
  vala/valacallback.vala, vala/valaclass.vala, vala/valaenum.vala,
  vala/valaflags.vala, vala/valainterface.vala, vala/valastruct.vala,
  gobject/valacodegenerator.class, gobject/valacodegeneratorclass.vala,
  gobject/valacodegeneratorinterface.vala,
  gobject/valacodegeneratorstruct.vala: move iteration of data types
  from accept to accept_children method

svn path=/trunk/; revision=323

17 years agomove iteration of source files and namespaces from accept to
Jürg Billeter [Fri, 15 Jun 2007 10:25:33 +0000 (10:25 +0000)]
move iteration of source files and namespaces from accept to

2007-06-15  Jürg Billeter  <j@bitron.ch>

* vala/valaattributeprocessor.vala, vala/valacodevisitor.vala,
  vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
  vala/valaparser.vala, vala/valasemanticanalyzer.vala,
  vala/valasourcefile.vala, vala/valasymbolbuilder.vala,
  vala/valasymbolresolver.vala, vala/valacodenode.vala,
  vala/valanamespace.vala, gobject/valacodegenerator.vala,
  gobject/valacodegeneratorsourcefile.vala, vapigen/valagidlparser.vala:
  move iteration of source files and namespaces from accept to
  accept_children method

svn path=/trunk/; revision=322

17 years agoenhance commandline interface, add support for invoking c compiler update
Jürg Billeter [Fri, 15 Jun 2007 09:47:47 +0000 (09:47 +0000)]
enhance commandline interface, add support for invoking c compiler update

2007-06-15  Jürg Billeter  <j@bitron.ch>

* vala/valacodecontext.vala, gobject/valaccodecompiler.vala,
  compiler/valacompiler.vala: enhance commandline interface, add support
  for invoking c compiler
* gobject/Makefile.am: update
* vapi/glib-2.0.vala: add shell-related utilities

svn path=/trunk/; revision=321

17 years agocorrect invocation of setter method of inherited properties, fixes bug
Jürg Billeter [Tue, 5 Jun 2007 11:05:50 +0000 (11:05 +0000)]
correct invocation of setter method of inherited properties, fixes bug

2007-06-05  Jürg Billeter  <j@bitron.ch>

* gobject/valacodegeneratorassignment.vala: correct invocation of setter
  method of inherited properties, fixes bug 443527
* gobject/valacodegeneratormemberaccess.vala: remove outdated comment

svn path=/trunk/; revision=320

17 years agosupport storing sizes of array dimensions for methods returning arrays add
Jürg Billeter [Tue, 5 Jun 2007 09:21:31 +0000 (09:21 +0000)]
support storing sizes of array dimensions for methods returning arrays add

2007-06-05  Jürg Billeter  <j@bitron.ch>

* vala/valainvocationexpression.vala: support storing sizes of array
  dimensions for methods returning arrays
* gobject/valacodegenerator.vala,
  gobject/valacodegeneratorinvocationexpression.vala: add length
  argument for methods returning arrays
* vapi/glib-2.0.vala: add missing NoArrayLength attributes

Fixes bug 434929

svn path=/trunk/; revision=319

17 years agoallow value-type arrays of unknown length, assert at runtime when trying
Jürg Billeter [Tue, 5 Jun 2007 08:43:19 +0000 (08:43 +0000)]
allow value-type arrays of unknown length, assert at runtime when trying

2007-06-05  Jürg Billeter  <j@bitron.ch>

* gobject/valacodegenerator.vala: allow value-type arrays of unknown
  length, assert at runtime when trying to iterate over such arrays

svn path=/trunk/; revision=318

17 years agosupport sizeof expression update add struct_size param to GLib.Source
Jürg Billeter [Thu, 31 May 2007 12:33:24 +0000 (12:33 +0000)]
support sizeof expression update add struct_size param to GLib.Source

2007-05-31  Jürg Billeter  <j@bitron.ch>

* vala/scanner.l, vala/parser.y, vala/valasemanticanalyzer.vala,
  vala/valacodevisitor.vala, vala/valasizeofexpression.vala,
  gobject/valacodegenerator.vala: support sizeof expression
* vala/vala.h, vala/Makefile.am: update
* vapi/glib-2.0.vala: add struct_size param to GLib.Source construction
  method

svn path=/trunk/; revision=317

17 years agoimprove argument checks of invocation expression, fixes bug 435854
Jürg Billeter [Mon, 14 May 2007 09:27:26 +0000 (09:27 +0000)]
improve argument checks of invocation expression, fixes bug 435854

2007-05-14  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: improve argument checks of invocation
  expression, fixes bug 435854

svn path=/trunk/; revision=316

17 years agoseparate declaration output remove comma at end of enum remove unused
Jürg Billeter [Thu, 10 May 2007 11:33:08 +0000 (11:33 +0000)]
separate declaration output remove comma at end of enum remove unused

2007-05-10  Jürg Billeter  <j@bitron.ch>

* ccode/valaccodeblock.vala, ccode/valaccodedeclaration.vala,
  ccode/valaccodedeclarator.vala, ccode/valaccodefragment.vala,
  ccode/valaccodefunctiondeclarator.vala, ccode/valaccodenode.vala,
  ccode/valaccodeoncesection.vala, ccode/valaccodestruct.vala,
  ccode/valaccodetypedefinition.vala,
  ccode/valaccodevariabledeclarator.vala: separate declaration output
* vala/parser.y: remove comma at end of enum
* vala/valaclass.vala, vala/valastruct.vala: remove unused methods
* vala/Makefile.am: update
* gobject/valacodegeneratorsourcefile.vala: support declaration
  separation in C code
* gobject/valaclassregisterfunction.vala,
  gobject/valainterfaceregisterfunction.vala,
  gobject/valatyperegisterfunction.vala: move from vala directory,
  move interface info declarations to the beginning of the block
* gobject/Makefile.am: update

svn path=/trunk/; revision=315

17 years agoremove comma at end of generated enumerator list, fixes gcc warning
Jürg Billeter [Wed, 9 May 2007 12:32:58 +0000 (12:32 +0000)]
remove comma at end of generated enumerator list, fixes gcc warning

2007-05-09  Jürg Billeter  <j@bitron.ch>

* ccode/valaccodeenum.vala: remove comma at end of generated enumerator
  list, fixes gcc warning

svn path=/trunk/; revision=314

17 years agogenerate get_property and set_property methods only when necessary, fixes
Jürg Billeter [Wed, 9 May 2007 12:15:30 +0000 (12:15 +0000)]
generate get_property and set_property methods only when necessary, fixes

2007-05-09  Jürg Billeter  <j@bitron.ch>

* gobject/valacodegeneratorclass.vala: generate get_property and
  set_property methods only when necessary, fixes bug 435848

svn path=/trunk/; revision=313

17 years agoadd basic checks for method modifiers, fixes bug 435853 include
Jürg Billeter [Wed, 9 May 2007 11:53:05 +0000 (11:53 +0000)]
add basic checks for method modifiers, fixes bug 435853 include

2007-05-09  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: add basic checks for method modifiers, fixes bug 435853
* vala/vala.h: include valaflagsvalue.h

svn path=/trunk/; revision=312

17 years agoiterate correctly over string in camel_case_to_lower_case method, fixes
Jürg Billeter [Wed, 9 May 2007 11:27:08 +0000 (11:27 +0000)]
iterate correctly over string in camel_case_to_lower_case method, fixes

2007-05-09  Jürg Billeter  <j@bitron.ch>

* vala/valanamespace.vala: iterate correctly over string in
  camel_case_to_lower_case method, fixes bug 436760

svn path=/trunk/; revision=311

17 years agodon't add default include directives for VAPI files, fixes bug 436761
Jürg Billeter [Wed, 9 May 2007 09:41:36 +0000 (09:41 +0000)]
don't add default include directives for VAPI files, fixes bug 436761

2007-05-09  Jürg Billeter  <j@bitron.ch>

* vala/valanamespace.vala: don't add default include directives for
  VAPI files, fixes bug 436761

svn path=/trunk/; revision=310

17 years agocorrect strstr cname, patch by Zsombor add ellipsis to Gtk.ListStore.set()
Jürg Billeter [Mon, 7 May 2007 10:05:06 +0000 (10:05 +0000)]
correct strstr cname, patch by Zsombor add ellipsis to Gtk.ListStore.set()

2007-05-07  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: correct strstr cname, patch by Zsombor
* vapi/gtk+-2.0.vala: add ellipsis to Gtk.ListStore.set() and
  Gtk.TreeStore.set()
* vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala: update to GTK+ 2.10.12

svn path=/trunk/; revision=309

17 years agoensure that local variables don't use keywords in the C code
Jürg Billeter [Mon, 7 May 2007 09:34:33 +0000 (09:34 +0000)]
ensure that local variables don't use keywords in the C code

2007-05-07  Jürg Billeter  <j@bitron.ch>

* gobject/valacodegenerator.vala,
  gobject/valacodegeneratormemberaccess.vala: ensure that local
  variables don't use keywords in the C code

svn path=/trunk/; revision=308

17 years agodeclare variables at the beginning of blocks as required for C89 avoid
Jürg Billeter [Mon, 7 May 2007 08:01:06 +0000 (08:01 +0000)]
declare variables at the beginning of blocks as required for C89 avoid

2007-05-07  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: declare variables at the beginning of blocks as
  required for C89
* gobject/valacodegeneratorclass.vala: avoid empty private struct
  declaration
* vapi/glib-2.0.vala: use g_ascii_strtoll instead of strtoll

Patch by Hans Breuer

svn path=/trunk/; revision=307

17 years agosplit code generator update
Jürg Billeter [Thu, 3 May 2007 12:40:17 +0000 (12:40 +0000)]
split code generator update

2007-05-03  Jürg Billeter  <j@bitron.ch>

* gobject/valacodegenerator.vala,
  gobject/valacodegeneratorassignment.vala,
  gobject/valacodegeneratorclass.vala,
  gobject/valacodegeneratorinterface.vala,
  gobject/valacodegeneratorinvocationexpression.vala
  gobject/valacodegeneratormemberaccess.vala,
  gobject/valacodegeneratormethod.vala,
  gobject/valacodegeneratorsignal.vala,
  gobject/valacodegeneratorsourcefile.vala,
  gobject/valacodegeneratorstruct.vala: split code generator
* gobject/Makefile.am, vapigen/Makefile.am: update

svn path=/trunk/; revision=306

17 years agomove code generator to new gobject directory update
Jürg Billeter [Thu, 3 May 2007 09:54:30 +0000 (09:54 +0000)]
move code generator to new gobject directory update

2007-05-03  Jürg Billeter  <j@bitron.ch>

* gobject/valacodegenerator.vala: move code generator to new gobject
  directory
* configure.ac, Makefile.am, vala/Makefile.am, gobject/Makefile.am,
  compiler/Makefile.am, vapi/Makefile.am: update

svn path=/trunk/; revision=305

17 years agoGSList fixes and GIConv, patch by Michael Lawrence
Jürg Billeter [Thu, 3 May 2007 08:43:20 +0000 (08:43 +0000)]
GSList fixes and GIConv, patch by Michael Lawrence

2007-05-03  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: GSList fixes and GIConv, patch by Michael Lawrence

svn path=/trunk/; revision=304

17 years agouse configured libdir, remove bashism, based on patch by Mathias
Jürg Billeter [Wed, 2 May 2007 12:24:44 +0000 (12:24 +0000)]
use configured libdir, remove bashism, based on patch by Mathias

2007-05-02  Jürg Billeter  <j@bitron.ch>

* vapigen/gidlgen/gidlgen.in: use configured libdir, remove bashism,
  based on patch by Mathias Hasselmann
* vapigen/gidlgen/Makefile.am: update

svn path=/trunk/; revision=303

17 years agoRemove vala-pkg
Jürg Billeter [Wed, 2 May 2007 09:42:45 +0000 (09:42 +0000)]
Remove vala-pkg

2007-05-02  Jürg Billeter  <j@bitron.ch>

* Remove vala-pkg

svn path=/trunk/; revision=301

17 years agoMove contents of vala-pkg to trunk
Jürg Billeter [Wed, 2 May 2007 09:42:00 +0000 (09:42 +0000)]
Move contents of vala-pkg to trunk

2007-05-02  Jürg Billeter  <j@bitron.ch>

* Move contents of vala-pkg to trunk

svn path=/trunk/; revision=300

17 years agoRename vala to vala-pkg
Jürg Billeter [Wed, 2 May 2007 09:38:17 +0000 (09:38 +0000)]
Rename vala to vala-pkg

2007-05-02  Jürg Billeter  <j@bitron.ch>

* Rename vala to vala-pkg

svn path=/trunk/; revision=299

17 years agomove from vapigen update
Jürg Billeter [Wed, 2 May 2007 09:26:52 +0000 (09:26 +0000)]
move from vapigen update

2007-05-02  Jürg Billeter  <j@bitron.ch>

* gobject-introspection, vapigen, vapi/packages: move from vapigen
* configure.ac, Makefile.am: update

svn path=/trunk/; revision=298

17 years agoPost-release version bump
Jürg Billeter [Mon, 30 Apr 2007 16:12:24 +0000 (16:12 +0000)]
Post-release version bump

2007-04-30  Jürg Billeter  <j@bitron.ch>

* configure.ac: Post-release version bump

svn path=/trunk/; revision=297

17 years agoupdate for 0.0.9 release VALA_0_0_9
Jürg Billeter [Mon, 30 Apr 2007 15:05:49 +0000 (15:05 +0000)]
update for 0.0.9 release

2007-04-30  Jürg Billeter  <j@bitron.ch>

* NEWS: update for 0.0.9 release

svn path=/trunk/; revision=296

17 years agoadd experimental support for class declarations in multiple source files
Jürg Billeter [Mon, 30 Apr 2007 14:18:27 +0000 (14:18 +0000)]
add experimental support for class declarations in multiple source files

2007-04-30  Jürg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valasymbolbuilder.vala, vala/valaclass.vala,
  vala/valanamespace.vala: add experimental support for class
  declarations in multiple source files

svn path=/trunk/; revision=295

17 years agocheck whether specified collection is iterable in foreach statements,
Jürg Billeter [Mon, 30 Apr 2007 10:01:41 +0000 (10:01 +0000)]
check whether specified collection is iterable in foreach statements,

2007-04-30  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: check whether specified collection is
  iterable in foreach statements, fixes bug 434514

svn path=/trunk/; revision=294

17 years agoallow any integer type as index in an element access expression, fixes bug
Jürg Billeter [Mon, 30 Apr 2007 09:45:42 +0000 (09:45 +0000)]
allow any integer type as index in an element access expression, fixes bug

2007-04-30  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: allow any integer type as index in an
  element access expression, fixes bug 434506

svn path=/trunk/; revision=293

17 years agoadd basic support for flags, fixes bug 434511
Jürg Billeter [Mon, 30 Apr 2007 09:27:07 +0000 (09:27 +0000)]
add basic support for flags, fixes bug 434511

2007-04-30  Jürg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valasymbolbuilder.vala,
  vala/valaattributeprocessor.vala, vala/valasemanticanalyzer.vala,
  vala/valacodegenerator.vala, vala/valainterfacewriter.vala,
  vala/valaflags.vala: add basic support for flags, fixes bug 434511

svn path=/trunk/; revision=292

17 years agocheck that void return values are not used, fixes bug 434503
Jürg Billeter [Mon, 30 Apr 2007 08:50:08 +0000 (08:50 +0000)]
check that void return values are not used, fixes bug 434503

2007-04-30  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: check that void return values are not
  used, fixes bug 434503

svn path=/trunk/; revision=291

17 years agofix type check in relational operations, fixes bug 434507
Jürg Billeter [Mon, 30 Apr 2007 07:59:19 +0000 (07:59 +0000)]
fix type check in relational operations, fixes bug 434507

2007-04-30  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix type check in relational
  operations, fixes bug 434507

svn path=/trunk/; revision=290

17 years agoadd pointer to integer conversion in foreach statements, fixes bug 433288
Jürg Billeter [Mon, 30 Apr 2007 07:38:03 +0000 (07:38 +0000)]
add pointer to integer conversion in foreach statements, fixes bug 433288

2007-04-30  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: add pointer to integer conversion in
  foreach statements, fixes bug 433288

svn path=/trunk/; revision=289

17 years agoadd g_bit_nth_lsf, g_bit_nth_msf, and g_bit_storage
Jürg Billeter [Tue, 24 Apr 2007 09:34:13 +0000 (09:34 +0000)]
add g_bit_nth_lsf, g_bit_nth_msf, and g_bit_storage

2007-04-24  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add g_bit_nth_lsf, g_bit_nth_msf, and
  g_bit_storage

svn path=/trunk/; revision=288

17 years agoadd possibility to override default cname process callback attributes
Jürg Billeter [Tue, 24 Apr 2007 09:32:32 +0000 (09:32 +0000)]
add possibility to override default cname process callback attributes

2007-04-24  Jürg Billeter  <j@bitron.ch>

* vala/valacallback.vala: add possibility to override default cname
* vala/valaattributeprocessor.vala: process callback attributes
* vala/valainterfacewriter.vala: cleanup code to write identifiers

svn path=/trunk/; revision=287

17 years agouse const types where appropriate, fixes bug 428393
Jürg Billeter [Wed, 18 Apr 2007 09:03:25 +0000 (09:03 +0000)]
use const types where appropriate, fixes bug 428393

2007-04-18  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: use const types where appropriate,
  fixes bug 428393

svn path=/trunk/; revision=286

17 years agosimplify unref expression for non-null types don't mark fields as non-null
Jürg Billeter [Wed, 18 Apr 2007 08:49:10 +0000 (08:49 +0000)]
simplify unref expression for non-null types don't mark fields as non-null

2007-04-18  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: simplify unref expression for non-null
  types
* vala/valaclass.vala: don't mark fields as non-null due to
  initialization issue

svn path=/trunk/; revision=285

17 years agoadd is_null property fix type analysis in conditional and parenthesized
Jürg Billeter [Thu, 12 Apr 2007 15:11:57 +0000 (15:11 +0000)]
add is_null property fix type analysis in conditional and parenthesized

2007-04-12  Jürg Billeter  <j@bitron.ch>

* vala/valatypereference.vala: add is_null property
* vala/valasemanticanalyzer.vala: fix type analysis in conditional and
  parenthesized expressions, fixes bug 428368
* vapi/glib-2.0.vala: don't mark GLib.Object and GLib.InitiallyUnowned
  as abstract

svn path=/trunk/; revision=284

17 years agofix warning when using interface properties
Jürg Billeter [Thu, 12 Apr 2007 09:49:33 +0000 (09:49 +0000)]
fix warning when using interface properties

2007-04-12  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: fix warning when using interface
  properties

svn path=/trunk/; revision=283

17 years agouse yyleng instead of strlen don't write unnecessary attributes to reduce
Jürg Billeter [Fri, 6 Apr 2007 14:27:28 +0000 (14:27 +0000)]
use yyleng instead of strlen don't write unnecessary attributes to reduce

2007-04-06  Jürg Billeter  <j@bitron.ch>

* vala/scanner.l: use yyleng instead of strlen
* vala/valainterfacewriter.vala: don't write unnecessary attributes to
  reduce parse time
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  remove unnecessary attributes to reduce parse time

svn path=/trunk/; revision=282

17 years agosupport temporary variables in initializers and iterators of for
Jürg Billeter [Thu, 5 Apr 2007 11:49:49 +0000 (11:49 +0000)]
support temporary variables in initializers and iterators of for

2007-04-05  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala, vala/valaforstatement.vala: support
  temporary variables in initializers and iterators of for statements
* vala/valacodegenerator.vala: support freeing generic types
* vala/parser.y, vala/valacodevisitor.vala,
  vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
  vala/valareferencetransferexpression.vala: add reference transfer
  expressions, e.g. `#var'
* vala/vala.h, vala/Makefile.am: update

svn path=/trunk/; revision=281

17 years agogenerate properties for destroy function pointers in generic types
Jürg Billeter [Thu, 5 Apr 2007 09:50:40 +0000 (09:50 +0000)]
generate properties for destroy function pointers in generic types

2007-04-05  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: generate properties for destroy function
  pointers in generic types

svn path=/trunk/; revision=280

17 years agopass destroy function pointer when creating instances of generic types add
Jürg Billeter [Thu, 5 Apr 2007 09:03:37 +0000 (09:03 +0000)]
pass destroy function pointer when creating instances of generic types add

2007-04-05  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: pass destroy function pointer when
  creating instances of generic types
* vala/valaclass.vala: add get_type_parameters method

svn path=/trunk/; revision=279

17 years agoimprove cast support fix ownership handling of local arrays skip code
Jürg Billeter [Wed, 4 Apr 2007 20:52:30 +0000 (20:52 +0000)]
improve cast support fix ownership handling of local arrays skip code

2007-04-04  Jürg Billeter  <j@bitron.ch>

* vala/scanner.l: improve cast support
* vala/valasemanticanalyzer.vala: fix ownership handling of local arrays
* vala/valacodegenerator.vala: skip code generation for static
  interfaces, downgrade generic management support message to warning
* vala/valacallback.vala: support callbacks as property type

svn path=/trunk/; revision=278

17 years agosupport casts to generic types support arrays of generic types don't take
Jürg Billeter [Wed, 4 Apr 2007 12:24:42 +0000 (12:24 +0000)]
support casts to generic types support arrays of generic types don't take

2007-04-04  Jürg Billeter  <j@bitron.ch>

* vala/scanner.l: support casts to generic types
* vala/valasymbolresolver.vala, vala/valatypereference.vala: support
  arrays of generic types
* vala/valasymbolresolver.vala: don't take ownership of elements of weak
  arrays
* vala/valasemanticanalyzer.vala: accept uint as index value
* vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
  vala/valastatement.vala: minor cleanup of creation methods
* vala/valacodegenerator.vala: support creation methods for structs, fix
  pointer as return type
* vapi/glib-2.0.vala: add CLAMP and g_spaced_primes_closest

svn path=/trunk/; revision=277

17 years agoadd mathematical functions, patch by Mathias Hasselmann update
Jürg Billeter [Tue, 3 Apr 2007 14:25:53 +0000 (14:25 +0000)]
add mathematical functions, patch by Mathias Hasselmann update

2007-04-03  Jürg Billeter  <j@bitron.ch>

* vapi/math.vala: add mathematical functions, patch by
  Mathias Hasselmann
* vapi/Makefile.am: update

svn path=/trunk/; revision=276

17 years agoinitialize new array elements after resizing an array, patch by Mathias
Jürg Billeter [Tue, 3 Apr 2007 13:00:25 +0000 (13:00 +0000)]
initialize new array elements after resizing an array, patch by Mathias

2007-04-03  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: initialize new array elements after
  resizing an array, patch by Mathias Hasselmann
* vala/valaproperty.vala: fix for interface properties

svn path=/trunk/; revision=275

17 years agosupport Goo namespace
Jürg Billeter [Tue, 3 Apr 2007 12:39:13 +0000 (12:39 +0000)]
support Goo namespace

2007-04-03  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support Goo namespace

svn path=/trunk/; revision=274

17 years agoadd manual page for valac written by Marc-André Lureau update
Jürg Billeter [Tue, 3 Apr 2007 12:21:48 +0000 (12:21 +0000)]
add manual page for valac written by Marc-André Lureau update

2007-04-03  Jürg Billeter  <j@bitron.ch>

* doc/valac.1, doc/Makefile.am: add manual page for valac written by
  Marc-André Lureau
* Makefile.am, configure.ac: update

svn path=/trunk/; revision=273

17 years agosupport declaration of local arrays test local array declaration
Jürg Billeter [Tue, 3 Apr 2007 11:59:29 +0000 (11:59 +0000)]
support declaration of local arrays test local array declaration

2007-04-03  Jürg Billeter  <j@bitron.ch>

* vala/scanner.l, vala/parser.y, vala/valasemanticanalyzer.vala,
  vala/valatypereference.vala: support declaration of local arrays
* tests/test-022.vala: test local array declaration

svn path=/trunk/; revision=272

17 years agosome fixes for abstract properties improve default cname
Jürg Billeter [Tue, 3 Apr 2007 11:23:40 +0000 (11:23 +0000)]
some fixes for abstract properties improve default cname

2007-04-03  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolbuilder.vala, vala/valacodegenerator.vala: some fixes
  for abstract properties
* vala/valamethod.vala: improve default cname

svn path=/trunk/; revision=271

17 years agoextend unicode support, add GRegex
Jürg Billeter [Tue, 3 Apr 2007 11:16:58 +0000 (11:16 +0000)]
extend unicode support, add GRegex

2007-04-03  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: extend unicode support, add GRegex

svn path=/trunk/; revision=270

17 years agodeclare HashFunc and EqualFunc as callback functions, patch by David
Raffaele Sandrini [Wed, 28 Mar 2007 12:09:46 +0000 (12:09 +0000)]
declare HashFunc and EqualFunc as callback functions, patch by David

2007-03-28  Raffaele Sandrini  <rasa@gmx.ch>

* vapi/glib-2.0.vala: declare HashFunc and EqualFunc as callback
  functions, patch by David Keijser

svn path=/trunk/; revision=269

17 years agoadd vte binding update
Raffaele Sandrini [Sun, 25 Mar 2007 09:34:40 +0000 (09:34 +0000)]
add vte binding update

2007-03-25  Raffaele Sandrini  <rasa@gmx.ch>

* vapi/vte.vala, vapi/vte.deps: add vte binding
* vapi/Makefile.am: update

svn path=/trunk/; revision=268

17 years agoadd vte bindings add cheader_filename to class declarations; support pid_t
Raffaele Sandrini [Sun, 25 Mar 2007 09:28:15 +0000 (09:28 +0000)]
add vte bindings add cheader_filename to class declarations; support pid_t

2007-03-25  Raffaele Sandrini  <rasa@gmx.ch>

* packages/vte/vte.files, packages/vte/vte.deps,
  packages/vte/vte.namespace, packages/vte/vte.excludes,
  packages/vte/vte.patch, packages/vte/vte.gidl,
  packages/vte/vte.metadata: add vte bindings
* vapigen/valagidlparser.vala: add cheader_filename to class
  declarations; support pid_t type; support vte

svn path=/trunk/; revision=267

17 years agoassign parent_node to children of this statement; include iterator and
Raffaele Sandrini [Sat, 24 Mar 2007 20:52:41 +0000 (20:52 +0000)]
assign parent_node to children of this statement; include iterator and

2007-03-24  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valaforstatement.vala: assign parent_node to children of this
  statement; include iterator and initializer in replacement of a child
  node (fixes segfault using prefix increment expression in the
  iterator of a for-statement)

svn path=/trunk/; revision=266

17 years agoadd support for default values of types use default values for
Raffaele Sandrini [Thu, 22 Mar 2007 19:39:15 +0000 (19:39 +0000)]
add support for default values of types use default values for

2007-03-22  Raffaele Sandrini  <rasa@gmx.ch>
* vala/valaflags.vala, vala/valaenum.vala, vala/valadatatype.vala,
  vala/valastruct.vala: add support for default values of types
* vala/valacodegenerator.vala: use default values for initialization
* vapi/glib-2.0.vala: add default values for common types

svn path=/trunk/; revision=265

17 years agoPost-release version bump
Jürg Billeter [Thu, 22 Mar 2007 12:39:50 +0000 (12:39 +0000)]
Post-release version bump

2007-03-22  Jürg Billeter  <j@bitron.ch>

* configure.ac: Post-release version bump

svn path=/trunk/; revision=264

17 years agoupdate for 0.0.8 release update VALA_0_0_8
Jürg Billeter [Thu, 22 Mar 2007 10:48:39 +0000 (10:48 +0000)]
update for 0.0.8 release update

2007-03-22  Jürg Billeter  <j@bitron.ch>

* NEWS: update for 0.0.8 release
* tests/Makefile.am: update

svn path=/trunk/; revision=263

17 years agofix generation of unresolvable 'memset' for classes without strings.
Raffaele Sandrini [Thu, 22 Mar 2007 09:57:14 +0000 (09:57 +0000)]
fix generation of unresolvable 'memset' for classes without strings.

2007-03-22  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valacodegenerator.vala: fix generation of unresolvable 'memset'
  for classes without strings.

svn path=/trunk/; revision=262

17 years agoadd Pango.Cairo and Pango.CairoFontMap add cairo dependency update
Raffaele Sandrini [Wed, 21 Mar 2007 22:21:00 +0000 (22:21 +0000)]
add Pango.Cairo and Pango.CairoFontMap add cairo dependency update

2007-03-21  Raffaele Sandrini  <rasa@gmx.ch>

* vapi/pango.vala: add Pango.Cairo and Pango.CairoFontMap
* vapi/pango.deps: add cairo dependency
* vapi/Makefile.am: update

svn path=/trunk/; revision=261

17 years agofix properties with interface types fix memory management when storing
Jürg Billeter [Wed, 21 Mar 2007 22:05:26 +0000 (22:05 +0000)]
fix properties with interface types fix memory management when storing

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: fix properties with interface types
* vala/valamemorymanager.vala: fix memory management when storing array
  elements
* vala/valaconstant.vala: obey overridden cprefix in namespaces
* vapi/config.vala: override lower_case_cprefix of namespace

svn path=/trunk/; revision=260

17 years agoremove pangocairo.h add cairo dependency regenerated
Raffaele Sandrini [Wed, 21 Mar 2007 22:03:24 +0000 (22:03 +0000)]
remove pangocairo.h add cairo dependency regenerated

2007-03-21  Raffaele Sandrini  <rasa@gmx.ch>

* packages/pango/pango.excludes: remove pangocairo.h
* packages/pango/pango.deps: add cairo dependency
* packages/pango/pango.gidl: regenerated

svn path=/trunk/; revision=259

17 years agoadd '_' between namespace and name of namespace constants' cname
Raffaele Sandrini [Wed, 21 Mar 2007 21:14:00 +0000 (21:14 +0000)]
add '_' between namespace and name of namespace constants' cname

2007-03-21  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valaconstant.vala: add '_' between namespace and name of
  namespace constants' cname

svn path=/trunk/; revision=258

17 years agodefault to reference type for boxed types, improve array and value-type
Jürg Billeter [Wed, 21 Mar 2007 20:38:20 +0000 (20:38 +0000)]
default to reference type for boxed types, improve array and value-type

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: default to reference type for boxed
  types, improve array and value-type handling
* packages/atk/atk.metadata, packages/gdk-2.0/gdk-2.0.metadata,
  packages/gtk+-2.0/gtk+-2.0.metadata, packages/pango/pango.metadata:
  add more value-types

svn path=/trunk/; revision=257

17 years agominor output enhancements improve handling of value-types and arrays
Jürg Billeter [Wed, 21 Mar 2007 20:13:01 +0000 (20:13 +0000)]
minor output enhancements improve handling of value-types and arrays

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: minor output enhancements
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  improve handling of value-types and arrays

svn path=/trunk/; revision=256

17 years agosupport static interfaces make set_type_id public add GBoxed as interface
Jürg Billeter [Wed, 21 Mar 2007 17:05:04 +0000 (17:05 +0000)]
support static interfaces make set_type_id public add GBoxed as interface

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valainterface.vala: support static interfaces
* vala/valastruct.vala: make set_type_id public
* vapi/glib-2.0.vala: add GBoxed as interface

svn path=/trunk/; revision=255

17 years agoadapt to current Vala SVN by using weak variables where appropriate
Jürg Billeter [Wed, 21 Mar 2007 16:27:38 +0000 (16:27 +0000)]
adapt to current Vala SVN by using weak variables where appropriate

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: adapt to current Vala SVN by using weak
  variables where appropriate

svn path=/trunk/; revision=254

17 years agouse pointer as default of type_id and marshaller_type_name for reference
Jürg Billeter [Wed, 21 Mar 2007 15:15:46 +0000 (15:15 +0000)]
use pointer as default of type_id and marshaller_type_name for reference

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vala/valastruct.vala: use pointer as default of type_id and
  marshaller_type_name for reference types
* vala/valapointer.vala: implement get_type_id

svn path=/trunk/; revision=253

17 years agodeep copy GLists if necessary, patch by Mathias Hasselmann fix some printf
Jürg Billeter [Wed, 21 Mar 2007 14:54:40 +0000 (14:54 +0000)]
deep copy GLists if necessary, patch by Mathias Hasselmann fix some printf

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: deep copy GLists if necessary, patch by
  Mathias Hasselmann
* vapi/glib-2.0.vala: fix some printf format strings to work on ILP32
  and LP64 platforms

svn path=/trunk/; revision=252

17 years agoimprove support for numeric types, patch by Mathias Hasselmann test
Jürg Billeter [Wed, 21 Mar 2007 14:32:16 +0000 (14:32 +0000)]
improve support for numeric types, patch by Mathias Hasselmann test

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: improve support for numeric types, patch by
  Mathias Hasselmann
* tests/test-030.vala, tests/test-030.out, tests/test-031.vala,
  tests/test-031.out: test numeric types
* tests/testrunner.sh: use c99 and math library
* tests/Makefile.am: update

svn path=/trunk/; revision=251

17 years agoimplement marshalling support support signals with interface parameters
Jürg Billeter [Wed, 21 Mar 2007 09:54:31 +0000 (09:54 +0000)]
implement marshalling support support signals with interface parameters

2007-03-21  Jürg Billeter  <j@bitron.ch>

* vala/valainterface.vala: implement marshalling support
* vala/valacodegenerator.vala: support signals with interface parameters

svn path=/trunk/; revision=250

17 years agoadd extended runtime type support also read property modifiers in set-only
Raffaele Sandrini [Tue, 20 Mar 2007 21:08:30 +0000 (21:08 +0000)]
add extended runtime type support also read property modifiers in set-only

2007-03-20  Raffaele Sandrini  <rasa@gmx.ch>

* vapi/glib-2.0.vala: add extended runtime type support
* vala/parser.y: also read property modifiers in set-only properties

svn path=/trunk/; revision=249

17 years agoadd GObject to the list of base types add ref and unref methods to GObject
Jürg Billeter [Tue, 20 Mar 2007 17:11:46 +0000 (17:11 +0000)]
add GObject to the list of base types add ref and unref methods to GObject

2007-03-20  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala: add GObject to the list of base types
* vapi/glib-2.0.vala: add ref and unref methods to GObject

svn path=/trunk/; revision=248

17 years agouse weak local variables where appropriate default local variables to
Jürg Billeter [Tue, 20 Mar 2007 15:44:43 +0000 (15:44 +0000)]
use weak local variables where appropriate default local variables to

2007-03-20  Jürg Billeter  <j@bitron.ch>

* vala/valaparser.vala, vala/valasemanticanalyzer.vala,
  vala/valamemorymanager.vala, vala/valacodegenerator.vala,
  vala/valacallback.vala, vala/valainvocationexpression.vala,
  vala/valamethod.vala, vala/valaobjectcreationexpression.vala: use weak
  local variables where appropriate
* vala/parser.y, vala/valasemanticanalyzer.vala: default local variables
  to strong reference
* vala/valasemanticanalyzer.vala: don't promote local variables from
  weak to strong reference
* vala/valacodegenerator.vala: warn when duplicating non-reference
  counted structs implicitly

svn path=/trunk/; revision=247

17 years agorun with /bin/bash due to bashism, patch by Mathias Hasselmann
Jürg Billeter [Tue, 20 Mar 2007 14:13:52 +0000 (14:13 +0000)]
run with /bin/bash due to bashism, patch by Mathias Hasselmann

2007-03-20  Jürg Billeter  <j@bitron.ch>

* tests/testrunner.sh: run with /bin/bash due to bashism, patch by
  Mathias Hasselmann

svn path=/trunk/; revision=246

17 years agowrap functions for escaping markup strings, patch by Mathias Hasselmann
Jürg Billeter [Tue, 20 Mar 2007 14:10:39 +0000 (14:10 +0000)]
wrap functions for escaping markup strings, patch by Mathias Hasselmann

2007-03-20  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: wrap functions for escaping markup strings, patch
  by Mathias Hasselmann

svn path=/trunk/; revision=245

17 years agofree lists of interfaces correctly, patch by Mathias Hasselmann
Jürg Billeter [Tue, 20 Mar 2007 13:53:35 +0000 (13:53 +0000)]
free lists of interfaces correctly, patch by Mathias Hasselmann

2007-03-20  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: free lists of interfaces correctly, patch
  by Mathias Hasselmann

svn path=/trunk/; revision=244

17 years agoconsider install prefix when searching for packages, patch by Mathias
Jürg Billeter [Sat, 17 Mar 2007 19:34:08 +0000 (19:34 +0000)]
consider install prefix when searching for packages, patch by Mathias

2007-03-17  Jürg Billeter  <j@bitron.ch>

* compiler/valacompiler.vala, compiler/Makefile.am, vapi/config.vala:
  consider install prefix when searching for packages, patch by
  Mathias Hasselmann
* configure.ac: add AM_PROG_CC_C_O
* autogen.sh, MAINTAINERS: added
* Makefile.am: dist MAINTAINERS

svn path=/trunk/; revision=243

17 years agosupport creating GTypeModule-based plug-ins with the ModuleInit attribute
Jürg Billeter [Sat, 17 Mar 2007 14:29:00 +0000 (14:29 +0000)]
support creating GTypeModule-based plug-ins with the ModuleInit attribute

2007-03-17  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala, vala/valacodegnerator.vala,
  vala/valaclassregisterfunction.vala,
  vala/valainterfaceregisterfunction.vala,
  vala/valatyperegisterfunction.vala, vala/valacodecontext.vala: support
  creating GTypeModule-based plug-ins with the ModuleInit attribute
* vala/parser.y, vala/valacodegenerator.vala, vala/valaclass.vala:
  support static classes
* vapi/glib-2.0.vala: add TypePlugin and TypeModule

svn path=/trunk/; revision=242

17 years agoadapt to current Vala SVN regenerated
Jürg Billeter [Sat, 17 Mar 2007 12:52:46 +0000 (12:52 +0000)]
adapt to current Vala SVN regenerated

2007-03-17  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: adapt to current Vala SVN
* packages/atk/atk.gidl, packages/gtk+-2.0/gtk+-2.0.gidl,
  packages/pango/pango.gidl: regenerated

svn path=/trunk/; revision=241

17 years agoaccept attributes without parentheses don't write weak keyword for value
Jürg Billeter [Sat, 17 Mar 2007 12:50:24 +0000 (12:50 +0000)]
accept attributes without parentheses don't write weak keyword for value

2007-03-17  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: accept attributes without parentheses
* vala/valainterfacewriter.vala: don't write weak keyword for value
  types
* vapi/atk.vala, vapi/cairo.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala,
  vapi/libxml-2.0.vala, vapi/pango.vala: update

svn path=/trunk/; revision=240

17 years agosupport pointer indirections support pointer-types, pointer indirections,
Jürg Billeter [Sat, 17 Mar 2007 09:52:20 +0000 (09:52 +0000)]
support pointer indirections support pointer-types, pointer indirections,

2007-03-17  Jürg Billeter  <j@bitron.ch>

* ccode/valaccodeunaryexpression.vala: support pointer indirections
* vala/parser.y, vala/valacodevisitor.vala,
  vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala,
  vala/valamemorymanager.vala, vala/valacodegenerator.vala,
  vala/valaaddressofexpression.vala, vala/valadatatype.vala,
  vala/valapointer.vala, vala/valapointerindirection.vala,
  vala/valatypereference.vala: support pointer-types, pointer
  indirections, and address-of expressions
* vala/vala.h, vala/Makefile.am: update

svn path=/trunk/; revision=239

17 years agosupport weak keyword in local variable declarations improve GError support
Jürg Billeter [Fri, 16 Mar 2007 22:42:57 +0000 (22:42 +0000)]
support weak keyword in local variable declarations improve GError support

2007-03-16  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: support weak keyword in local variable declarations
* vapi/glib-2.0.vala: improve GError support

svn path=/trunk/; revision=238

17 years agosupport disconnecting signals, based on patch by Alexandre Moreira test
Jürg Billeter [Fri, 16 Mar 2007 22:13:48 +0000 (22:13 +0000)]
support disconnecting signals, based on patch by Alexandre Moreira test

2007-03-16  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: support disconnecting signals, based on
  patch by Alexandre Moreira
* tests/test-018.vala, tests/test-018.out: test disconnecting signals

svn path=/trunk/; revision=237

17 years agofix null pointer dereference when emitting signals
Jürg Billeter [Fri, 16 Mar 2007 21:26:41 +0000 (21:26 +0000)]
fix null pointer dereference when emitting signals

2007-03-16  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: fix null pointer dereference when
  emitting signals

svn path=/trunk/; revision=236

17 years agodefault to strong references for method return types reset
Jürg Billeter [Fri, 16 Mar 2007 21:23:27 +0000 (21:23 +0000)]
default to strong references for method return types reset

2007-03-16  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: default to strong references for method return types
* vala/valasymbolresolver.vala: reset TypeReference.transfers_ownership
  for value-types
* vala/valasourcefile.vala: assume ownership of include filenames
* vala/valainterfacewriter.vala: use weak keyword for return types
* vala/valacodecontext.vala, vala/valasourcefile.vala,
  vala/valasymbolbuilder.vala, vapi/glib-2.0.vala: add weak to return
  types

svn path=/trunk/; revision=235

17 years agoresolve generic return values fix check for generic method parameters to
Jürg Billeter [Sun, 11 Mar 2007 22:17:06 +0000 (22:17 +0000)]
resolve generic return values fix check for generic method parameters to

2007-03-11  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: resolve generic return values
* vala/valamemorymanager.vala: fix check for generic method parameters
  to support derived types
* vala/valainterface.vala: implement get_type_parameter_index
* vala/valamemberaccess.vala: visit type arguments
* vala/valaclassregisterfunction.vala,
  vala/valainterfaceregisterfunction.vala,
  vala/valatyperegisterfunction.vala: pass base_init function pointer
  for interfaces
* vala/valacodegenerator.vala: fix initialization check in interface
  base_init function
* vala/valasemanticanalyzer.vala: fix prerequisite check to also accept
  derived types of prerequisites

svn path=/trunk/; revision=234

17 years agocorrect bracketing in cast expressions
Jürg Billeter [Sat, 10 Mar 2007 22:30:15 +0000 (22:30 +0000)]
correct bracketing in cast expressions

2007-03-10  Jürg Billeter  <j@bitron.ch>

* ccode/valaccodecastexpression.vala: correct bracketing in cast
  expressions

svn path=/trunk/; revision=233

17 years agosupport interface properties and signals, improve support for generics
Jürg Billeter [Sat, 10 Mar 2007 22:22:03 +0000 (22:22 +0000)]
support interface properties and signals, improve support for generics

2007-03-10  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: support interface properties and signals,
  improve support for generics

svn path=/trunk/; revision=232