1. 15 Jul, 2006 1 commit
    • Jürg Billeter's avatar
      update for 0.0.1 release add introduction replace by LGPL add · 68986811
      Jürg Billeter authored
      2006-07-15  Jürg Billeter  <j@bitron.ch>
      
      	* NEWS: update for 0.0.1 release
      	* README: add introduction
      	* COPYING: replace by LGPL
      	* compiler/valacompiler.vala: add /usr/local/share/vala/vapi ad default
      	  vapi search dir
      	* vapi/glib-2.0.vala: File and HashTable enhancements
      
      svn path=/trunk/; revision=79
      68986811
  2. 14 Jul, 2006 2 commits
    • Raffaele Sandrini's avatar
      add element access support add visit_postfix_expression implementation add · d9a96b3b
      Raffaele Sandrini authored
      2006-07-14  Raffaele Sandrini  <rasa@gmx.ch>
      
              * vala/valacodegenerator.vala, vala/valasymbolresolver.vala,
                vala/scanner.l, vala/valatypereference.vala,
                vala/valasemanticanalyzer.vala, vala/valaelementaccess.vala,
                vala/valadatatype.vala, vala/parser.y, vala/valaarray.vala,
                vala/valacodevisitor.vala, ccode/valaccodeelementaccess.vala: add
                element access support
              * vala/valasemanticanalyzer.vala: add visit_postfix_expression
                implementation
              * tests/test-019.vala: add element access testcase
              * vala/Makefile.am, tests/Makefile.am, ccode/Makefile.am: update
      
      
      svn path=/trunk/; revision=78
      d9a96b3b
    • Jürg Billeter's avatar
      ignore file-internal dependencies mark string literals as non-null, add · 03bea87b
      Jürg Billeter authored
      2006-07-14  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodecontext.vala: ignore file-internal dependencies
      	* vala/valasemanticanalyzer.vala: mark string literals as non-null, add
      	  some implicit casts
      	* vala/valamemorymanager.vala: only check for leaks with reference
      	  types, manage memory in field initializers
      	* vala/valacodegenerator.vala: add non-null parameter typechecks for
      	  structs, simplify ref expression if expression is known to be non-null
      	* vapi/glib-2.0.vala: unichar, string, String, and Path enhancements,
      	  add Base64 and Dir
      
      svn path=/trunk/; revision=77
      03bea87b
  3. 10 Jul, 2006 1 commit
    • Jürg Billeter's avatar
      adapt to changes in InvocationExpression, LocalVariableDeclaration, and · 6a6d38f1
      Jürg Billeter authored
      2006-07-10  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: adapt to changes in InvocationExpression,
      	  LocalVariableDeclaration, and InitializerList
      	* vala/valasemanticanalyzer.vala: add some implicit casts, fix assigning
      	  callback to field, adapt to changes in InvocationExpression
      	* vala/valamemorymanager.vala: adapt to change in InvocationExpression
      	* vala/valacodegenerator.vala: fix signal handler without parameters,
      	  fix access to value-type struct members, adapt to changes in
      	  LocalVariableDeclaration, InitializerList, and InvocationExprssion
      	* vala/valaclass.vala: don't let private static fields influence
      	  has_private_fields, correct marshaller type name
      	* vala/valaifstatement.vala, vala/valainitializerlist.vala,
      	  vala/valainstancecast.vala, vala/valaintegerliteral.vala,
      	  vala/valainvocationexpression.vala, vala/valaliteralexpression.vala,
      	  vala/valalocalvariabledeclaration.vala: add interface documentation,
      	  use implicit namespace specification
      	* compiler/valacompiler.vala: fix --vapidir handling
      	* vapi/glib-2.0.vala: add MainLoop, MainContext, IdleSource, Source, and
      	  Thread
      
      svn path=/trunk/; revision=76
      6a6d38f1
  4. 08 Jul, 2006 5 commits
    • Jürg Billeter's avatar
      don't allow write access to read-only properties adapt to changes in · 3cf0fef2
      Jürg Billeter authored
      2006-07-08  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala: don't allow write access to read-only
      	  properties
      	* vala/valacodegenerator.vala: adapt to changes in CCodeFragment and
      	  CCommaExpression
      	* vala/valapostfixexpression.vala, ccode/valaccodebinaryexpression.vala,
      	  ccode/valaccodeblock.vala, ccode/valaccodebreakstatement.vala,
      	  ccode/valaccodecasestatement.vala,
      	  ccode/valaccodecommaexpressoin.vala, ccode/valaccodecomment.vala,
      	  ccode/valaccodeconditionalexpression.vala,
      	  ccode/valaccodeconstant.vala, ccode/valaccodecontinuestatement.vala,
      	  ccode/valaccodedeclaration.vala, ccode/valaccodedeclarator.vala,
      	  ccode/valaccodeenum.vala, ccode/valaccodeemptystatement.vala,
      	  ccode/valaccodeexpressionstatement.vala,
      	  ccode/valaccodeformalparameter.vala, ccode/valaccodeforstatement.vala,
      	  ccode/valaccodefragment.vala, ccode/valaccodefunction.vala,
      	  ccode/valaccodefunctioncall.vala,
      	  ccode/valaccodefunctiondeclarator.vala,
      	  ccode/valaccodeidentifier.vala, ccode/valaccodeifstatement.vala,
      	  ccode/valaccodeincludedirective.vala,
      	  ccode/valaccodeinitializerlist.vala,
      	  ccode/valaccodemacroreplacement.vala,
      	  ccode/valaccodememberaccess.vala, ccode/valaccodemodifiers.vala,
      	  ccode/valaccodenewline.vala, ccode/valaccodeoncesection.vala,
      	  ccode/valaccodeparenthesizedexpression.vala,
      	  ccode/valaccodereturnstatement.vala, ccode/valaccodestatement.vala,
      	  ccode/valaccodestruct.vala, ccode/valaccodeswitchstatement.vala,
      	  ccode/valaccodeunaryexpression.vala,
      	  ccode/valaccodevariabledeclarator.vala,
      	  ccode/valaccodewhilestatement.vala, ccode/valaccodewriter.vala: add
      	  interface documentation, use implicit namespace specification
      
      svn path=/trunk/; revision=75
      3cf0fef2
    • Jürg Billeter's avatar
      don't allow access to private members · 4506aa08
      Jürg Billeter authored
      2006-07-08  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala: don't allow access to private members
      
      svn path=/trunk/; revision=74
      4506aa08
    • Jürg Billeter's avatar
      check method signatures of overriding methods support abstract classes add · 2a1a351c
      Jürg Billeter authored
      2006-07-08  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala: check method signatures of overriding
      	  methods
      	* vala/parser.y, vala/valaclassregisterfunction.vala,
      	  vala/valatyperegisterfunction.vala: support abstract classes
      	* vala/valamethod.vala: add equals method
      	* vala/valatypereference.vala: add equals method
      	* corrects overriding methods to match signatures of overridden methods
      	  to fix build with current compiler
      
      svn path=/trunk/; revision=73
      2a1a351c
    • Jürg Billeter's avatar
      adapt to ForStatement API changes make {get,set}_lower_case_csuffix · c8075c40
      Jürg Billeter authored
      2006-07-08  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valacodegenerator.vala: adapt to ForStatement API
      	  changes
      	* vala/valaclass.vala: make {get,set}_lower_case_csuffix methods private
      	* vala/valaenum.vala, vala/valaenumvalue.vala,
      	  vala/valaexpressionstatement.vala, vala/valafield.vala,
      	  vala/valaflags.vala, vala/valaflagsvalue.vala,
      	  vala/valaforeachstatement.vala, vala/valaforstatement.vala: add
      	  interface documentation, use implicit namespace specification
      
      svn path=/trunk/; revision=72
      c8075c40
    • Jürg Billeter's avatar
      adapt to Method API changes support signals, mark private signal handlers · d445ab95
      Jürg Billeter authored
      2006-07-08  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: adapt to Method API changes
      	* vala/valasemanticanalyzer.vala: support signals, mark private signal
      	  handlers as instance_last
      	* vala/valamemorymanager.vala: support signals
      	* vala/valacodegenerator.vala: support signals, methods with
      	  instance_last
      	* vala/valaclass.vala: add get_type_id and get_marshaller_type_name
      	  methods
      	* vala/valadatatype.vala: add get_marshaller_type_name method
      	* vala/valastruct.vala: move type_id attribute to CCode, support
      	  marshaller_type_name attribute
      	* vala/valainterfacewriter.vala, vala/valamethod.vala,
      	  vala/valastruct.vala, ccode/valaccodeexpression.vala,
      	  ccode/valaccodenode.vala: add interface documentation, use implicit
      	  namespace specification
      	* vala/valacallback.vala, vala/valasignal.vala: improve documentation
      	* ccode/valaccodecastexpression.vala: type cast in C code
      	* ccode/Makefile.am: update
      	* tests/test-018.vala: test signals
      	* tests/Makefile.am: update
      	* vapi/glib-2.0.vala: add type_id and marshaller_type_name attributes
      
      svn path=/trunk/; revision=71
      d445ab95
  5. 07 Jul, 2006 3 commits
    • Jürg Billeter's avatar
      support interfaces support lambda expressions with statement body add · 1afd1f31
      Jürg Billeter authored
      2006-07-07  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodegenerator.vala, vala/valaclassregisterfunction.vala:
      	  support interfaces
      	* vala/parser.y, vala/valasemanticanalyzer.vala,
      	  vala/valalambdaexpression.vala: support lambda expressions with
      	  statement body
      	* vala/valaclassregisterfunction.vala, vala/valaemptystatement.vala,
      	  vala/valainterface.vala, vala/valainterfaceregisterfunction.vala,
      	  vala/valatyperegisterfunction.vala: add interface documentation, use
      	  implicit namespace specification
      	* tests/test-015.vala: test lambda expressions with statement body
      	* tests/test-017.vala: test interfaces
      	* tests/Makefile.am: update
      
      svn path=/trunk/; revision=70
      1afd1f31
    • Jürg Billeter's avatar
      add interface documentation, use implicit namespace specification · 235eba7a
      Jürg Billeter authored
      2006-07-07  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaconstructor.vala, vala/valacontinuestatement.vala,
      	  vala/valadeclarationstatement.vala, vala/valadestructor.vala: add
      	  interface documentation, use implicit namespace specification
      
      svn path=/trunk/; revision=69
      235eba7a
    • Jürg Billeter's avatar
      use continue statements to decrease indentation levels add interface · 53b8098f
      Jürg Billeter authored
      2006-07-07  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodecontext.vala: use continue statements to decrease
      	  indentation levels
      	* vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
      	  vala/valasemanticanalyzer.vala, vala/valamemorymanager.vala,
      	  vala/valacodegenerator.vala, vala/valaconditionalexpression.vala,
      	  vala/valaconstant.vala: add interface documentation, use implicit
      	  namespace specification
      	* vala/valasemanticanalyzer.vala: check that if, while, for, and
      	  conditional expression conditions are boolean
      	* vala/valaclass.vala: remove dummy accessor, breaks build with old
      	  vala compiler
      	* compiler/valacompiler.vala: use implicit namespace specification
      	* tests/test-016.vala: test conditional expressions
      	* tests/Makefile.am: update
      
      svn path=/trunk/; revision=68
      53b8098f
  6. 06 Jul, 2006 2 commits
    • Jürg Billeter's avatar
      add interface documentation, use implicit namespace specification adapt to · 7b280c7d
      Jürg Billeter authored
      2006-07-07  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodecontext.vala: add interface documentation, use implicit
      	  namespace specification
      	* vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
      	  vala/valasemanticanalyzer.vala: adapt to change in CodeContext
      
      svn path=/trunk/; revision=67
      7b280c7d
    • Jürg Billeter's avatar
      merge SimpleName into MemberAccess adapt to change in Class support · 49177f7d
      Jürg Billeter authored
      2006-07-06  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y, vala/valacodevisitor.vala, vala/valasymbolbuilder.vala,
      	  vala/valasemanticanalyzer.vala, vala/valamemorymanager.vala,
      	  vala/valacodegenerator.vala, vala/valatypereference.vala, vala/vala.h,
      	  vala/Makefile.am: merge SimpleName into MemberAccess
      	* vala/valasymbolresolver.vala, vala/valainterfacewriter.vala: adapt to
      	  change in Class
      	* vala/valasemanticanalyzer.vala: support non-static lambda expressions
      	  and lambda expressions without return values
      	* vala/valacodegenerator.vala: support conditional expressions, support
      	  lambda expressions as signal handlers, support read-only and
      	  write-only properties
      	* vala/valacodevisitor.vala, vala/valamemorymanager.vala,
      	  vala/valaassignment.vala: visit at beginning and end
      	* vala/valacallback.vala: add instance property
      	* vala/valasignal.vala: add get_callback method
      	* vala/valacastexpression.vala, vala/valacharacterliteral.vala,
      	  vala/valaclass.vala, vala/valamemberaccess.vala, vala/valasignal.vala:
      	  add interface documentation, use implicit namespace specification
      
      svn path=/trunk/; revision=66
      49177f7d
  7. 05 Jul, 2006 1 commit
    • Jürg Billeter's avatar
      don't pass parameter list to lambda expression contructor support static · bf6a3316
      Jürg Billeter authored
      2006-07-05  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: don't pass parameter list to lambda expression
      	  contructor
      	* vala/valasemanticanalyzer.vala, vala/valamemorymanager.vala,
      	  vala/valacodegenerator.vala: support static lambda expressions and
      	  nested methods
      	* vala/valainvocationexpression.vala: visit call node before visiting
      	  begin of invocation expression
      	* vala/valaformalparameter.vala, vala/valalambdaexpression.vala: add
      	  interface documentation, use implicit namespace specification
      	* vala/valamethod.vala: allow nested methods
      	* tests/test-015.vala: test lambda expressions
      	* tests/Makefile.am: update
      
      svn path=/trunk/; revision=65
      bf6a3316
  8. 04 Jul, 2006 4 commits
    • Jürg Billeter's avatar
      support implicit namespace specification in callback declaration support · dd54613e
      Jürg Billeter authored
      2006-07-04  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: support implicit namespace specification in callback
      	  declaration
      	* vala/valasemanticanalyzer.vala, vala/valamemorymanager.vala,
      	  vala/valacodegenerator.vala: support callbacks
      	* vala/valaassignment.vala, vala/valabinaryexpression.vala: improve
      	  documentation
      	* vala/valabooleanliteral.vala, vala/valabreakstatement.vala,
      	  vala/valacallback.vala: add interface documentation, use implicit
      	  namespace specification
      	* vala/valacallback.vala: add matches_method method, mark as
      	  non-reference type
      	* ccode/valaccodetypedefinition.vala: replace typedef_name by
      	  declarator, add interface documentation, use implicit namespace
      	  specification
      	* tests/test-013.vala: test break
      	* tests/test-014.vala: test callback
      	* tests/Makefile.am: update
      
      svn path=/trunk/; revision=64
      dd54613e
    • Jürg Billeter's avatar
      add interface documentation, use implicit namespace specification test · 8e4d93a8
      Jürg Billeter authored
      2006-07-04  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valablock.vala: add interface documentation, use implicit
      	  namespace specification
      	* tests/test-011.vala: test binary expressions
      	* tests/test-012.vala: test blocks
      	* configure.ac, Makefile.am, tests/Makefile.am: distribute tests
      
      svn path=/trunk/; revision=63
      8e4d93a8
    • Jürg Billeter's avatar
      add interface documentation, use implicit namespace specification · 14c2da81
      Jürg Billeter authored
      2006-07-04  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodevisitor.vala, vala/valaattributeprocessor.vala,
      	  vala/valabinaryexpression.vala: add interface documentation, use
      	  implicit namespace specification
      	* vala/valaassignment.vala, vala/valaattribute.vala: documentation
      	  corrections
      
      svn path=/trunk/; revision=62
      14c2da81
    • Jürg Billeter's avatar
      generate assignment with appropriate operator use implicit namespace · 3a558fda
      Jürg Billeter authored
      2006-07-04  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodegenerator.vala: generate assignment with appropriate
      	  operator
      	* vala/valaassignment.vala: use implicit namespace specification
      	* ccode/valaccodeassignment.vala: support assignment operators , add
      	  interface documentation, use implicit namespace specification
      	* tests/test-010.vala: test assignments
      
      svn path=/trunk/; revision=61
      3a558fda
  9. 03 Jul, 2006 1 commit
    • Jürg Billeter's avatar
      support implicit namespace specification in struct, interface, enum, and · 629fa2ee
      Jürg Billeter authored
      2006-07-03  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: support implicit namespace specification in struct,
      	  interface, enum, and flags declaration
      	* vala/valasymbolbuilder.vala: report error when declaring non-static
      	  namespace methods
      	* vala/valasemanticanalyzer.vala: analyze return statements
      	* vala/valacodegenerator.vala: correctly set GParamFlags for properties,
      	  initialize static variables, add preconditions to property accessors,
      	  support namespace methods
      	* vala/valaassignment.vala, vala/valaattribute.vala: add interface
      	  documentation, use implicit namespace specification
      	* tests/test-001.vala, tests/test-002.vala, tests/test-003.vala,
      	  tests/test-004.vala, tests/test-005.vala, tests/test-006.vala,
      	  tests/test-007.vala, tests/test-008.vala, tests/test-009.vala:
      	  update test cases to print test values
      
      svn path=/trunk/; revision=60
      629fa2ee
  10. 30 Jun, 2006 2 commits
  11. 29 Jun, 2006 2 commits
    • Jürg Billeter's avatar
      distinguish between ref_function/unref_function and · 027deaeb
      Jürg Billeter authored
      2006-06-29  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodegenerator.vala, vala/valaclass.vala,
      	  vala/valadatatype.vala, vala/valastruct.vala: distinguish between
      	  ref_function/unref_function and dup_function/free_function
      	* vala/valadatatype.vala: add interface documentation
      	* vapi/glib-2.0.vala: use dup_function attribute, keep ref_function for
      	  compatibility
      
      svn path=/trunk/; revision=57
      027deaeb
    • Jürg Billeter's avatar
      add interface documentation · 44cb3169
      Jürg Billeter authored
      2006-06-29  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodenode.vala, vala/valaexpression.vala: add interface
      	  documentation
      
      svn path=/trunk/; revision=56
      44cb3169
  12. 28 Jun, 2006 2 commits
    • Jürg Billeter's avatar
      add private add_symbol helper method tiny refactoring of GObject lookup · 7d6ffc05
      Jürg Billeter authored
      2006-06-28  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valasymbolbuilder.vala: add private add_symbol helper method
      	* vala/valasymbolresolver.vala: tiny refactoring of GObject lookup
      	* vala/valasemanticanalyzer.vala: use get_parameters method of Callback
      	* vala/valacallback.vala, vala/valaintegerliteral.vala,
      	  vala/valarealliteral.vala, vala/valastringliteral.vala: replace public
      	  fields by properties / private fields, don't mark properties as
      	  construct-only, use non-null types
      	* vala/valaattribute.vala, vala/valacodenode.vala,
      	  vala/valaconstructor.vala, vala/valadatatype.vala,
      	  vala/valadestructor.vala, vala/valaenumvalue.vala,
      	  vala/valaexpression.vala, vala/valafield.vala,
      	  vala/valaflagsvalue.vala, vala/valaformalparameter.vala,
      	  vala/valaliteral.vala, vala/valalocalvariabledeclaration.vala,
      	  vala/valamethod.vala, vala/valanamedargument.vala,
      	  vala/valanamespace.vala, vala/valanamespacereference.vala,
      	  vala/valaproperty.vala, vala/valapropertyaccessor.vala,
      	  vala/valasignal.vala, vala/valastatement.vala,
      	  vala/valatypeparameter.vala, vala/valatypereference.vala,
      	  vala/valavariabledeclarator.vala: move source_reference to CodeNode
      
      svn path=/trunk/; revision=55
      7d6ffc05
    • Jürg Billeter's avatar
      move source_reference to Vala.Literal, use non-null types, don't mark · e054dd10
      Jürg Billeter authored
      2006-06-28  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valabooleanliteral.vala, vala/valacharacterliteral.vala,
      	  vala/valaintegerliteral.vala, vala/valaliteral.vala,
      	  vala/valanullliteral.vala, vala/valarealliteral.vala,
      	  vala/valastringliteral.vala: move source_reference to Vala.Literal,
      	  use non-null types, don't mark properties as construct-only
      
      svn path=/trunk/; revision=54
      e054dd10
  13. 26 Jun, 2006 1 commit
    • Jürg Billeter's avatar
      plug some memory leaks, adapt to Vala.Block changes replace public fields · d5c1409f
      Jürg Billeter authored
      2006-06-26  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: plug some memory leaks, adapt to Vala.Block changes
      	* vala/valaattribute.vala, vala/valabinaryexpression.vala,
      	  vala/valablock.vala, vala/valabooleanexpression.vala,
      	  vala/valabreakstatement.vala, vala/valaliteral.vala,
      	  vala/valastatement.vala: replace public fields by properties / private
      	  fields, don't mark properties as construct-only, use non-null types
      	* vala/valadatatype.vala: renamed from Vala.Type_ to Vala.DataType
      	* vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
      	  vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
      	  vala/valasourcefile.vala, vala/valacallback.vala, vala/valaclass.vala,
      	  vala/valaclassregisterfunction.vala, vala/valaconstant.vala,
      	  vala/valaenum.vala, vala/valaflags.vala, vala/valainstancecast.vala,
      	  vala/valainterface.vala, vala/valainterfaceregisterfunction.vala,
      	  vala/valamethod.vala, vala/valastruct.vala,
      	  vala/valatypeparameter.vala, vala/valatypereference.vala,
      	  vala/valatypergisterfunction.vala: adapt to renaming of Vala.Type_ to
      	  Vala.DataType
      	* vala/Makefile.am: update
      
      svn path=/trunk/; revision=53
      d5c1409f
  14. 22 Jun, 2006 3 commits
    • Jürg Billeter's avatar
      don't mark properties as construct-only, use non-null types use non-null · 244f6cbe
      Jürg Billeter authored
      2006-06-22  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valaassignment.vala: don't mark properties as construct-only,
      	  use non-null types
      	* vala/valacodenode.vala: use non-null type
      	* vala/valaexpression.vala: replace public fields by properties
      
      svn path=/trunk/; revision=52
      244f6cbe
    • Jürg Billeter's avatar
      replace specialized interface member declarations by standard member · 49cda49e
      Jürg Billeter authored
      2006-06-22  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: replace specialized interface member declarations by
      	  standard member declarations to allow non-abstract methods in
      	  interfaces
      	* vala/valacodegenerator.vala: cast instance in property setter
      	  invocations
      
      svn path=/trunk/; revision=51
      49cda49e
    • Jürg Billeter's avatar
      support LAMBDA and CALLBACK support callbacks and lambda expressions add · b25848cb
      Jürg Billeter authored
      2006-06-22  Jürg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l: support LAMBDA and CALLBACK
      	* vala/parser.y: support callbacks and lambda expressions
      	* vala/valacodevisitor.vala: add visit methods for callbacks and lambda
      	  expressions
      	* vala/valasymbolbuilder.vala: use non-null parameter types, support
      	  callbacks
      	* vala/valasemanticanalyzer.vala: partially support interface methods,
      	  support callback invocations
      	* vala/valamemorymanager.vala: support callback invocations
      	* vala/valacodegenerator.vala: partially support interface methods
      	* vala/valacallback.vala: initial implementation
      	* vala/valacodenode.vala: replace public fields by properties
      	* vala/valaexpression.vala: add expected_type field
      	* vala/valainvocationexpression.vala: also visit at beginning
      	* vala/valalambdaexpression.vala
      	* vala/valanamespace.vala: support callbacks
      	* vala/vala.h: update
      	* vala/Makefile.am: update
      
      svn path=/trunk/; revision=50
      b25848cb
  15. 18 Jun, 2006 1 commit
    • Jürg Billeter's avatar
      support TYPEOF support typeof expressions, out ref parameters, and enum · 7249dcd5
      Jürg Billeter authored
      2006-06-18  Jürg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l: support TYPEOF
      	* vala/parser.y: support typeof expressions, out ref parameters, and
      	  enum attributes
      	* vala/valacodevisitor.vala: add visit method for typeof expressions
      	* vala/valaattributeprocessor.vala: use non-null parameter types,
      	  support enums and properties
      	* vala/valasemanticanalyzer.vala: support floating references
      	* vala/valamemorymanager.vala: ignore signal connections
      	* vala/valacodegenerator.vala: reset temp variable id at beginning of
      	  each file, fix out parameters, support properties without accessor
      	  methods, support floating references, add typeof expression, support
      	  static signal handlers
      	* vala/valaclass.vala: use default arguments
      	* vala/valaenum.vala: support cname, cprefix, and cheader_filename
      	  attributes
      	* vala/valaenumvalue.vala: use Enum.get_cprefix ()
      	* vala/valamethod.vala: support FloatingReference attribute
      	* vala/valanamespace.vala: use default arguments
      	* vala/valaproperty.vala: support NoAccessorMethod attribute
      	* vala/valastruct.vala: support type_id
      	* vala/valatype.vala: add abstract get_type_id method
      	* vala/valatypeofexpression.vala
      	* vala/valatypereference.vala: add floating_reference property, correct
      	  to_string method signature
      	* vala/vala.h: update
      	* vala/Makefile.am: update
      	* vapi/glib-2.0.vala: add GInitiallyUnowned
      	* vapi/gtk+-2.0.vala: start of a GTK+ binding
      	* vapi/pango.vala: start of a Pango binding
      
      svn path=/trunk/; revision=49
      7249dcd5
  16. 17 Jun, 2006 1 commit
    • Jürg Billeter's avatar
      don't leak comment texts, support generic types with weak arguments plug · 93620ce9
      Jürg Billeter authored
      2006-06-17  Jürg Billeter  <j@bitron.ch>
      
      	* vala/scanner.l: don't leak comment texts, support generic types with
      	  weak arguments
      	* vala/parser.y: plug most memory leaks
      	* vala/valacodecontext.vala: work around memory management issues
      	* vala/valasourcefile.vala: break reference cycles
      	* vala/valasourcefilecycle.vala: break reference cycles
      	* vala/valasymbolbuilder.vala: store `this` and `value` parameters in
      	  appropriate member node
      	* vala/valasymbolresolver.vala: break reference cycle
      	* vala/valasemanticanalyzer.vala: break reference cycle, promote local
      	  variables with ownership transferring initializer, store foreach
      	  variable declarator in statement object, assignments to properties
      	  don't take value ownership, make null type checks behave well on
      	  either side of a comparison
      	* vala/valamemorymanager.vala: add support for named arguments,
      	  properties, and ellipsis parameter
      	* vala/valacodegenerator.vala: add dispose function, register properties
      	  with static strings, don't leak strings when setting properties,
      	  support freeing string arrays, support freeing lists with allocated
      	  items, free local variables before return statements, free old value
      	  on assignments
      	* vala/valainterfacewriter.vala: output more type reference information
      	* vala/valaforeachstatement.vala: reference variable_declarator
      	* vala/valaforstatement.vala: correct generic type arguments
      	* vala/valamethod.vala: break reference cycle
      	* vala/valaproperty.vala: reference this_parameter, add
      	  get_canoncial_cconstant method
      	* vala/valapropertyaccessor.vala: reference value_parameter
      	* vala/valasimplename.vala: remove unneeded type_argument_list
      	  parameter from constructor
      	* vala/valasourcereference.vala: let to_string transfer ownership
      	* vala/valastruct.vala: correct generic type argument
      	* vala/valasymbol.vala: improve memory management
      	* vala/valatype.vala: break reference cycles, let get_lower_case_cname
      	  transfer ownership
      	* vala/valatypereference.vala: break reference cycle, use
      	  type_argument_list
      	* vala/vala.h: add valaflags.h
      	* ccode/valaccodefunction.vala: work around missing list deep copy
      	* ccode/valaccodewriter.vala: don't manually free objects
      	* compiler/valacompiler.vala: enable memory management by default,
      	  valac doesn't work anymore without memory management
      	* vapi/glib-2.0.vala: add memory management information
      
      svn path=/trunk/; revision=48
      93620ce9
  17. 15 Jun, 2006 3 commits
    • Jürg Billeter's avatar
      add local variables to block analyze local variable initializers free · 452bde0b
      Jürg Billeter authored
      2006-06-15  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valasemanticanalyzer.vala: add local variables to block
      	* vala/valamemorymanager.vala: analyze local variable initializers
      	* vala/valacodegenerator.vala: free local variables at end of block,
      	  only free non-null variables, use some strong references due to memory
      	  manager deficiencies
      	* vala/valablock.vala: use non-null parameter types, add local variable
      	  declarators
      	* vala/valaenum.vala: let get_upper_case_cname transfer ownership
      	* vala/valastruct.vala: add free_function attribute
      	* ccode/valaccodewriter.vala: set freed values to null
      	* vapi/glib-2.0.vala: add free functions
      
      svn path=/trunk/; revision=47
      452bde0b
    • Raffaele Sandrini's avatar
      add libxml-2.0 also to the Makefile · a2d5b8fb
      Raffaele Sandrini authored
      * add libxml-2.0 also to the Makefile
      
      svn path=/trunk/; revision=46
      a2d5b8fb
    • Raffaele Sandrini's avatar
      add basic libxml2 reader support · 141261f6
      Raffaele Sandrini authored
      2006-06-15  Raffaele Sandrini <rasa@gmx.ch>
      
              * vapi/libxml-2.0.vala: add basic libxml2 reader support
      
      
      svn path=/trunk/; revision=45
      141261f6
  18. 14 Jun, 2006 3 commits
    • Jürg Billeter's avatar
      set is_lvalue_ref in property declarations use non-null parameter types · f699908b
      Jürg Billeter authored
      2006-06-14  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: set is_lvalue_ref in property declarations
      	* vala/valacodecontext.vala: use non-null parameter types
      	* vala/valasymbolresolver.vala: fix lookup in namespaces of using
      	  directives, reset is_lvalue_ref where appropriate
      	* vala/valasemanticanalyzer.vala: use non-null parameter types,
      	  correctly set is_ref and is_lvalue_ref in variable declarators
      	* vala/valamemorymanager.vala: support methods which transfer ownership
      	  of arguments and or return value, analyze assignments
      	* vala/valacodegenerator.vala: add missing reference increment calls,
      	  small memory management improvements
      	* vala/valaclass.vala: use non-null parameter types
      	* vala/valaexpression.vala: add ref_missing
      	* vala/valastruct.vala: support ref_function attribute, use non-null
      	  parameter types
      	* vala/valatype.vala: let get_upper_case_cname return ref string
      	* vala/valatypereference.vala: add copy method
      	* ccode/valaccodeconditionalexpression.vala
      	* ccode/valaccodefunctioncall.vala: use non-null parameter types
      	* ccode/Makefile.am: update
      	* compiler/valacompiler.vala: process attributes before resolving
      	  symbols to have reference_type information available in resolver
      	* vapi/glib-2.0.vala: add ref_function attributes to string and List,
      	  use ref parameters in List and HashTable until the compiler can handle
      	  it correctly
      
      svn path=/trunk/; revision=44
      f699908b
    • Jürg Billeter's avatar
      set is_lvalue_ref for variables and fields variables and fields never · 8991394c
      Jürg Billeter authored
      2006-06-14  Jürg Billeter  <j@bitron.ch>
      
      	* vala/parser.y: set is_lvalue_ref for variables and fields
      	* vala/valasemanticanalyzer.vala: variables and fields never transfer
      	  ownership as rvalue
      	* vala/valamemorymanager.vala: use non-null parameter types, analyze
      	  return statements
      	* vala/valacodegenerator.vala: use non-null parameter types, support
      	  memory management for temporary variables in variable initializers,
      	  initialize all uninitialized references to null
      	* vala/valareturnstatement.vala: visit end of full expression
      	* vala/valatypereference.vala: add is_lvalue_ref property
      	* vala/valavariabledeclarator.vala: visit end of full expression
      
      svn path=/trunk/; revision=43
      8991394c
    • Jürg Billeter's avatar
      use non-null parameter types, add visit method for full expressions add · d49a4eb2
      Jürg Billeter authored
      2006-06-14  Jürg Billeter  <j@bitron.ch>
      
      	* vala/valacodevisitor.vala: use non-null parameter types, add visit
      	  method for full expressions
      	* vala/valasymbolresolver.vala: add some missing casts
      	* vala/valasemanticanalyzer.vala: support memory management for
      	  temporary variables
      	* vala/valamemorymanager.vala: visitor to detect leaked references
      	* vala/valacodegenerator.vala: add automatic memory management for
      	  temporary variables, add some missing casts
      	* vala/valaassignment.vala: move source_reference to Expression
      	* vala/valabinaryexpression.vala: move source_reference to Expression
      	* vala/valacastexpression.vala: move source_reference to Expression
      	* vala/valaconditionalexpression.vala: move source_reference to
      	  Expression
      	* vala/valaclass.vala: implement memory management methods
      	* vala/valaexpression.vala: add source_reference, ref_leaked, and
      	  temp_vars
      	* vala/valaforstatement.vala: visit end of full expression
      	* vala/valaifstatement.vala: visit end of full expression
      	* vala/valainitializerlist.vala: move source_reference to Expression
      	* vala/valainvocationexpression.vala: move source_reference to
      	  Expression
      	* vala/valaliteralexpression.vala: move source_reference to Expression
      	* vala/valamemberaccess.vala: move source_reference to Expression
      	* vala/valaobjectcreationexpression.vala: move source_reference to
      	  Expression
      	* vala/valaparenthesizedexpression.vala: move source_reference to
      	  Expression
      	* vala/valapostfixexpression.vala: move source_reference to Expression
      	* vala/valasimplename.vala: move source_reference to Expression
      	* vala/valastruct.vala: implement memory management methods
      	* vala/valatype.vala: add abstract is_reference_counting,
      	  get_ref_function, and get_free_function methods
      	* vala/valatypecheck.vala: move source_reference to Expression
      	* vala/valaunaryexpression.vala: move source_reference to Expression
      	* vala/valawhilestatement.vala: visit end of full expression
      	* vala/Makefile.am: update
      	* ccode/valaccodecommaexpression.vala
      	* ccode/Makefile.am: update
      	* compiler/valacompiler.vala: add enable-memory-management option
      	* vapi/glib-2.0.vala: minor GType enhancements
      
      svn path=/trunk/; revision=42
      d49a4eb2
  19. 07 Jun, 2006 2 commits