summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.c
diff options
context:
space:
mode:
authorAlan Knowles <alan@akbkhome.com>2010-04-04 16:52:24 +0800
committerJohan Dahlin <johan@gnome.org>2010-05-25 14:02:37 -0300
commitef76b0e4ef0a5d4790147a746a944c5fd5f91159 (patch)
tree7e7848a88f1d8486244583cd134904ac925734e0 /giscanner/sourcescanner.c
parentf18a979634d427615f08995290c3a9d3aa50d12e (diff)
downloadgobject-introspection-ef76b0e4ef0a5d4790147a746a944c5fd5f91159.tar.gz
[sourcescanner] Support for line numbers on Symbol
Add line numbers to symbols, which can be useful in later stages of the scanner.
Diffstat (limited to 'giscanner/sourcescanner.c')
-rw-r--r--giscanner/sourcescanner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.c b/giscanner/sourcescanner.c
index 79d89cdc..14e3a3bd 100644
--- a/giscanner/sourcescanner.c
+++ b/giscanner/sourcescanner.c
@@ -24,11 +24,12 @@
#include <string.h>
GISourceSymbol *
-gi_source_symbol_new (GISourceSymbolType type)
+gi_source_symbol_new (GISourceSymbolType type, int line)
{
GISourceSymbol *s = g_slice_new0 (GISourceSymbol);
s->ref_count = 1;
s->type = type;
+ s->line = line;
return s;
}