/* we're only interested in non-pkg source files */
var source_files = context.get_source_files ();
foreach (SourceFile file in source_files) {
- if (file.file_type == SourceFileType.SOURCE) {
+ if (file.file_type != SourceFileType.PACKAGE) {
file.accept (this);
}
}
return;
}
+ /* For fast-vapi, we only wanted the header declarations
+ * to be emitted, so bail out here without writing the
+ * C code output.
+ */
+ if (source_file.file_type == SourceFileType.FAST) {
+ return;
+ }
+
if (requires_array_free) {
append_vala_array_free ();
}
}
}
+ if (acc.source_type == SourceFileType.FAST) {
+ return;
+ }
+
var this_type = get_data_type_for_symbol (t);
var cselfparam = new CCodeFormalParameter ("self", this_type.get_cname ());
if (t is Struct) {