summaryrefslogtreecommitdiff
path: root/giscanner/sourcescanner.h
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-19 11:33:38 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-19 12:04:20 -0300
commitcb61330eb495786bf8232ebcb51b0d6d9a753ce7 (patch)
tree544f43868003c027ad127e497ba9f959da12da37 /giscanner/sourcescanner.h
parent9180641a496b26b5d5a720a2f2a61c710f094d2a (diff)
downloadgobject-introspection-cb61330eb495786bf8232ebcb51b0d6d9a753ce7.tar.gz
Save the line number of a source comment
Diffstat (limited to 'giscanner/sourcescanner.h')
-rw-r--r--giscanner/sourcescanner.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.h b/giscanner/sourcescanner.h
index 581b6b17..a7bc176c 100644
--- a/giscanner/sourcescanner.h
+++ b/giscanner/sourcescanner.h
@@ -28,6 +28,7 @@
G_BEGIN_DECLS
+typedef struct _GISourceComment GISourceComment;
typedef struct _GISourceScanner GISourceScanner;
typedef struct _GISourceSymbol GISourceSymbol;
typedef struct _GISourceType GISourceType;
@@ -95,13 +96,20 @@ typedef enum
UNARY_LOGICAL_NEGATION
} UnaryOperator;
+struct _GISourceComment
+{
+ char *comment;
+ char *filename;
+ int line;
+};
+
struct _GISourceScanner
{
char *current_filename;
gboolean macro_scan;
GSList *symbols;
GList *filenames;
- GSList *comments;
+ GSList *comments; /* _GIComment */
GHashTable *typedef_table;
GHashTable *struct_or_union_or_enum_table;
};