[vala/0.36] girwriter: Don't write c:include tags for symbols from external packages



commit 84423b1327022b5991b644dcb716177bb25cdbd8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Apr 29 16:30:43 2019 +0200

    girwriter: Don't write c:include tags for symbols from external packages

 codegen/valagirwriter.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala
index f60d210a3..df8ee5c82 100644
--- a/codegen/valagirwriter.vala
+++ b/codegen/valagirwriter.vala
@@ -230,6 +230,9 @@ public class Vala.GIRWriter : CodeVisitor {
                        header_filenames.add (c_header_filename);
                }
                foreach (Symbol symbol in ns.scope.get_symbol_table ().get_values ()) {
+                       if (symbol.external_package) {
+                               continue;
+                       }
                        foreach (unowned string c_header_filename in 
CCodeBaseModule.get_ccode_header_filenames (symbol).split (",")) {
                                header_filenames.add (c_header_filename);
                        }


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