aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.c
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2007-06-29 17:25:51 +0100
committerJosh Triplett <josh@freedesktop.org>2007-07-13 08:33:39 -0700
commit78d2e4b170d776017b56231f47b9a7749e50a73f (patch)
tree35f2422d195d9dc5eabeaeabe04528aa2b1bb14a /symbol.c
parent073d2a3ab34f5f196150c684e5970b22d2acf2b4 (diff)
downloadsparse-78d2e4b170d776017b56231f47b9a7749e50a73f.tar.gz
add end position to symbols
This adds a field in the symbol struct for the position of the end of the symbol and code to parse.c to fill this in for the various symbol types when parsing. Signed-off-by: Rob Taylor <rob.taylor@codethink.co.uk>
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 9dfeb41e..2fa68d93 100644
--- a/symbol.c
+++ b/symbol.c
@@ -62,6 +62,7 @@ struct symbol *alloc_symbol(struct position pos, int type)
struct symbol *sym = __alloc_symbol(0);
sym->type = type;
sym->pos = pos;
+ sym->endpos.type = 0;
return sym;
}