[vala] girparser: Set cheader_filename for all symbols.



commit c5bd3f06deddde697805d2aaa4cd1b5e3705f890
Author: Luca Bruno <lucabru src gnome org>
Date:   Thu Jan 6 11:51:56 2011 +0100

    girparser: Set cheader_filename for all symbols.

 vala/valagirparser.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 81d5abb..af7308a 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1069,6 +1069,14 @@ public class Vala.GirParser : CodeVisitor {
 		sym.deprecated_since = element_get_string ("deprecated-version", ArgumentType.DEPRECATED_SINCE);
 		sym.deprecated = metadata.get_bool (ArgumentType.DEPRECATED) || sym.replacement != null || sym.deprecated_since != null;
 
+		// cheader filename
+		var cheader_filename = metadata.get_string (ArgumentType.CHEADER_FILENAME);
+		if (cheader_filename != null) {
+			foreach (string filename in cheader_filename.split (",")) {
+				sym.add_cheader_filename (filename);
+			}
+		}
+
 		// mark to be reparented
 		if (metadata.has_argument (ArgumentType.PARENT)) {
 			var target_symbol = parse_symbol_from_string (metadata.get_string (ArgumentType.PARENT), metadata.get_source_reference (ArgumentType.PARENT));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]