diff options
author | rsc <devnull@localhost> | 2004-05-23 23:26:59 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-23 23:26:59 +0000 |
commit | f1ad497719e95974eb7a499b074ccf921ed0d731 (patch) | |
tree | cd58ba3bded34d210b180377d69a8ed045120932 /src/cmd/acidtypes | |
parent | 1be1539ea802a63e508514d7431e9eaead0b0857 (diff) | |
download | plan9port-f1ad497719e95974eb7a499b074ccf921ed0d731.tar.gz plan9port-f1ad497719e95974eb7a499b074ccf921ed0d731.tar.bz2 plan9port-f1ad497719e95974eb7a499b074ccf921ed0d731.zip |
small bug fixes
Diffstat (limited to 'src/cmd/acidtypes')
-rw-r--r-- | src/cmd/acidtypes/type.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd/acidtypes/type.c b/src/cmd/acidtypes/type.c index 5449077a..56dc33ed 100644 --- a/src/cmd/acidtypes/type.c +++ b/src/cmd/acidtypes/type.c @@ -343,6 +343,13 @@ typecmp(Type *t, Type *u) if(i) return i; + if(t->ty == Aggr){ + if(t->n > u->n) + return -1; + if(t->n < u->n) + return 1; + } + if(t->name || t->suename) return 0; @@ -445,7 +452,7 @@ ttt=ttt->sub; case Pointer: ttt = defer(tt->sub); if(ttt && ttt->ty == Aggr) - Bprint(b, "\tprint(indent, \"%s\t%s(\", addr.%s, \")\\n\");\n", + Bprint(b, "\tprint(indent, \"%s\t(%s)\", addr.%s, \"\\n\");\n", name, nameof(ttt, 1), name); else goto base; |