diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-25 23:16:37 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:48 -0700 |
| commit | c45a5bde1a5d2782cfdcd9ecb400545790a29c9a (patch) | |
| tree | 392d3c607b78bdc9eca595b9b0f364aa5a749a3a /show-parse.c | |
| parent | 55e9b0efa2c45cdfa23c19402dfd3572b9ad2b59 (diff) | |
| download | sparse-dev-c45a5bde1a5d2782cfdcd9ecb400545790a29c9a.tar.gz | |
Print out array sizes correctly.
Diffstat (limited to 'show-parse.c')
| -rw-r--r-- | show-parse.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/show-parse.c b/show-parse.c index e0618963..8ac94500 100644 --- a/show-parse.c +++ b/show-parse.c @@ -132,7 +132,7 @@ void show_type(struct symbol *sym) return; case SYM_ARRAY: - printf("<array>("); + printf("<array [%d] of>(", sym->array_size); show_type(sym->ctype.base_type); printf(")"); return; @@ -198,10 +198,6 @@ void show_symbol(struct symbol *sym) show_statement(type->stmt); return; - case SYM_ARRAY: - printf("[%d]\n", type->array_size); - return; - default: break; } |
