diff options
author | Rob Taylor <rob.taylor@codethink.co.uk> | 2007-06-29 17:25:51 +0100 |
---|---|---|
committer | Josh Triplett <josh@freedesktop.org> | 2007-07-13 08:33:39 -0700 |
commit | 78d2e4b170d776017b56231f47b9a7749e50a73f (patch) | |
tree | 35f2422d195d9dc5eabeaeabe04528aa2b1bb14a /symbol.c | |
parent | fix handling of pointers in ?: (diff) | |
download | sparse-78d2e4b170d776017b56231f47b9a7749e50a73f.tar.gz sparse-78d2e4b170d776017b56231f47b9a7749e50a73f.tar.bz2 sparse-78d2e4b170d776017b56231f47b9a7749e50a73f.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |