summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.h
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.h
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.h')
-rw-r--r--giscanner/sourcescanner.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.h b/giscanner/sourcescanner.h
index a49de5c7..581b6b17 100644
--- a/giscanner/sourcescanner.h
+++ b/giscanner/sourcescanner.h
@@ -119,6 +119,7 @@ struct _GISourceSymbol
gboolean const_double_set;
double const_double;
char *source_filename;
+ int line;
};
struct _GISourceType
@@ -146,7 +147,7 @@ GSList * gi_source_scanner_get_symbols (GISourceScanner *scanne
GSList * gi_source_scanner_get_comments (GISourceScanner *scanner);
void gi_source_scanner_free (GISourceScanner *scanner);
-GISourceSymbol * gi_source_symbol_new (GISourceSymbolType type);
+GISourceSymbol * gi_source_symbol_new (GISourceSymbolType type, int line);
gboolean gi_source_symbol_get_const_boolean (GISourceSymbol *symbol);
GISourceSymbol * gi_source_symbol_ref (GISourceSymbol *symbol);
void gi_source_symbol_unref (GISourceSymbol *symbol);