summaryrefslogtreecommitdiff
path: root/vala/valaenumvalue.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-01-23 09:32:30 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-01-23 09:32:30 +0000
commit9bcd6caa2e2e38b817a76dacb542719eea3a0568 (patch)
tree6fc05705cb6ad7cd6132829fa34120aed506d561 /vala/valaenumvalue.vala
parentcd3e90161f78f0633a056b7c533c47352b18e803 (diff)
downloadvala-9bcd6caa2e2e38b817a76dacb542719eea3a0568.tar.gz
allow string comparison with null, use strcmp instead of g_utf8_collate
2008-01-23 Juerg Billeter <j@bitron.ch> * vala/valaenumvalue.vala, vala/valasemanticanalyzer.vala, gobject/valaccodegenerator.vala, gobject/valaccodegeneratorsourcefile.vala: allow string comparison with null, use strcmp instead of g_utf8_collate for string operators, fixes bug 506199 * tests/Makefile.am, tests/strings.vala, tests/strings.exp: test string operators svn path=/trunk/; revision=891
Diffstat (limited to 'vala/valaenumvalue.vala')
-rw-r--r--vala/valaenumvalue.vala10
1 files changed, 8 insertions, 2 deletions
diff --git a/vala/valaenumvalue.vala b/vala/valaenumvalue.vala
index b6ba076b0..fde0561c0 100644
--- a/vala/valaenumvalue.vala
+++ b/vala/valaenumvalue.vala
@@ -1,6 +1,6 @@
/* valaenumvalue.vala
*
- * Copyright (C) 2006 Jürg Billeter
+ * Copyright (C) 2006-2008 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -55,7 +55,13 @@ public class Vala.EnumValue : Symbol {
public override void accept (CodeVisitor! visitor) {
visitor.visit_enum_value (this);
}
-
+
+ public override void accept_children (CodeVisitor! visitor) {
+ if (value != null) {
+ value.accept (visitor);
+ }
+ }
+
/**
* Returns the name of this enum value as it is used in C code.
*