vala r1524 - in trunk: . vala vapigen
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1524 - in trunk: . vala vapigen
- Date: Sat, 31 May 2008 21:34:50 +0000 (UTC)
Author: juergbi
Date: Sat May 31 21:34:50 2008
New Revision: 1524
URL: http://svn.gnome.org/viewvc/vala?rev=1524&view=rev
Log:
2008-05-31 JÃrg Billeter <j bitron ch>
* vala/valasemanticanalyzer.vala:
* vapigen/valavapigen.vala:
Fix handling of ref array arguments
Modified:
trunk/ChangeLog
trunk/vala/valasemanticanalyzer.vala
trunk/vapigen/valavapigen.vala
Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala (original)
+++ trunk/vala/valasemanticanalyzer.vala Sat May 31 21:34:50 2008
@@ -2701,6 +2701,7 @@
} else if (expr.operator == UnaryOperator.REF || expr.operator == UnaryOperator.OUT) {
if (expr.inner.symbol_reference is Field || expr.inner.symbol_reference is FormalParameter || expr.inner.symbol_reference is LocalVariable) {
// ref and out can only be used with fields, parameters, and local variables
+ expr.lvalue = true;
expr.value_type = expr.inner.value_type;
} else {
expr.error = true;
Modified: trunk/vapigen/valavapigen.vala
==============================================================================
--- trunk/vapigen/valavapigen.vala (original)
+++ trunk/vapigen/valavapigen.vala Sat May 31 21:34:50 2008
@@ -36,13 +36,13 @@
CodeContext context;
const OptionEntry[] options = {
- { "vapidir", 0, 0, OptionArg.FILENAME_ARRAY, out vapi_directories, "Look for package bindings in DIRECTORY", "DIRECTORY..." },
- { "pkg", 0, 0, OptionArg.STRING_ARRAY, out packages, "Include binding for PACKAGE", "PACKAGE..." },
- { "library", 0, 0, OptionArg.STRING, out library, "Library name", "NAME" },
- { "directory", 'd', 0, OptionArg.FILENAME, out directory, "Output directory", "DIRECTORY" },
+ { "vapidir", 0, 0, OptionArg.FILENAME_ARRAY, ref vapi_directories, "Look for package bindings in DIRECTORY", "DIRECTORY..." },
+ { "pkg", 0, 0, OptionArg.STRING_ARRAY, ref packages, "Include binding for PACKAGE", "PACKAGE..." },
+ { "library", 0, 0, OptionArg.STRING, ref library, "Library name", "NAME" },
+ { "directory", 'd', 0, OptionArg.FILENAME, ref directory, "Output directory", "DIRECTORY" },
{ "version", 0, 0, OptionArg.NONE, ref version, "Display version number", null },
{ "quiet", 'q', 0, OptionArg.NONE, ref quiet_mode, "Do not print messages to the console", null },
- { "", 0, 0, OptionArg.FILENAME_ARRAY, out sources, null, "FILE..." },
+ { "", 0, 0, OptionArg.FILENAME_ARRAY, ref sources, null, "FILE..." },
{ null }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]