summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.c
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/sourcescanner.c')
-rw-r--r--giscanner/sourcescanner.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/giscanner/sourcescanner.c b/giscanner/sourcescanner.c
index 27f82f77..80c61a27 100644
--- a/giscanner/sourcescanner.c
+++ b/giscanner/sourcescanner.c
@@ -74,6 +74,21 @@ gi_source_symbol_copy (GISourceSymbol * symbol)
}
GISourceSymbol *
+gi_source_symbol_const_binary (GISourceSymbol * s1, GISourceSymbol * s2, GFile *file, int line)
+{
+ GISourceSymbol *new_symbol;
+
+ if (s1->const_int_set && s2->const_int_set) {
+ new_symbol = gi_source_symbol_new (CSYMBOL_TYPE_CONST, file, line);
+ new_symbol->const_int_set = TRUE;
+ } else {
+ new_symbol = gi_source_symbol_new (CSYMBOL_TYPE_INVALID, file, line);
+ }
+
+ return new_symbol;
+}
+
+GISourceSymbol *
gi_source_symbol_ref (GISourceSymbol * symbol)
{
symbol->ref_count++;