[vala/wip/attributes: 114/121] Fix sentinel
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/attributes: 114/121] Fix sentinel
- Date: Mon, 4 Jul 2011 17:18:20 +0000 (UTC)
commit 955d1ab88fa41a6f1b209e282303d43081e89306
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Jul 3 20:17:27 2011 +0200
Fix sentinel
codegen/valaccodebasemodule.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 1fce524..c80d242 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -6592,9 +6592,6 @@ public class Vala.CCodeAttribute : AttributeCache {
no_delegate_target = !attr.get_bool ("delegate_target");
}
sentinel = attr.get_string ("sentinel");
- if (sentinel == null) {
- sentinel = "NULL";
- }
}
if (node.get_attribute ("NoArrayLength") != null) {
Report.deprecated (node.source_reference, "NoArrayLength attribute is deprecated, use [CCode (array_length = false)] instead.");
@@ -6613,6 +6610,9 @@ public class Vala.CCodeAttribute : AttributeCache {
_name = st.width == 64 ? "double" : "float";
}
}
+ if (sentinel == null) {
+ sentinel = "NULL";
+ }
}
private string get_default_name () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]