diff options
author | 2004-09-08 11:52:38 -0700 | |
---|---|---|
committer | 2005-04-07 21:03:11 -0700 | |
commit | ee1d2b7ef68ee42746174f0b7c51fda2473cc73d (patch) | |
tree | fe4a4d493ce0e8318bacae66314ae1ff24fe7775 /show-parse.c | |
parent | Reinstate non-ANSI warning for "int foo () { }". (diff) | |
download | sparse-ee1d2b7ef68ee42746174f0b7c51fda2473cc73d.tar.gz sparse-ee1d2b7ef68ee42746174f0b7c51fda2473cc73d.tar.bz2 sparse-ee1d2b7ef68ee42746174f0b7c51fda2473cc73d.zip |
symbol.h, symbol.c:
Add s(char|short|int|long|longlong)_ctype.
show-parse.c:
Print "signed" as part of the type names when needed.
parse.c:
Add separate ctypes for signed char, short, int, long, and long long.
Make ctype_integer pick the explicitly signed type as needed.
Diffstat (limited to 'show-parse.c')
-rw-r--r-- | show-parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/show-parse.c b/show-parse.c index b36edb4..1d423ad 100644 --- a/show-parse.c +++ b/show-parse.c @@ -162,14 +162,19 @@ static void do_show_type(struct symbol *sym, struct type_name *name) char *name; } typenames[] = { { & char_ctype, "char" }, + { &schar_ctype, "signed char" }, { &uchar_ctype, "unsigned char" }, { & short_ctype, "short" }, + { &sshort_ctype, "signed short" }, { &ushort_ctype, "unsigned short" }, { & int_ctype, "int" }, + { &sint_ctype, "signed int" }, { &uint_ctype, "unsigned int" }, + { &slong_ctype, "signed long" }, { & long_ctype, "long" }, { &ulong_ctype, "unsigned long" }, { & llong_ctype, "long long" }, + { &sllong_ctype, "signed long long" }, { &ullong_ctype, "unsigned long long" }, { &void_ctype, "void" }, |