Mercurial > hg > CbC > old > device
diff test/tstdarg.c @ 896:d712ee10feb7
local_nptr for locally defined struct
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 06 Apr 2014 19:20:58 +0900 |
parents | 5313ed059cee |
children |
line wrap: on
line diff
--- a/test/tstdarg.c Sun Apr 06 17:11:44 2014 +0900 +++ b/test/tstdarg.c Sun Apr 06 19:20:58 2014 +0900 @@ -43,29 +43,29 @@ while((t= *numtypes++)) { if (t=='i') { i = va_arg(ap,int); - printf("#0020:int arg: %d\n",i); + printf("#0045:int arg: %d\n",i); print(&ap); #if 0 /* ‘float’ is promoted to ‘double’ when passed through ‘...’ */ } else if (t=='f') { f = va_arg(ap,float); - printf("#0025:float arg: %g\n",f); + printf("#0051:float arg: %g\n",f); #endif } else if (t=='d') { d = va_arg(ap,double); - printf("#0029:double arg: %g\n",d); + printf("#0055:double arg: %g\n",d); print(&ap); } else if (t=='l') { l = va_arg(ap,long long); - printf("#0032:long long arg: %lld\n",l); + printf("#0059:long long arg: %lld\n",l); print(&ap); } else if (t=='s') { s = va_arg(ap,char *); - printf("#0035:char *arg: %s\n",s); + printf("#0063:char *arg: %s\n",s); print(&ap); } else { s = va_arg(ap,char *); - printf("#0038:arg: error\n"); + printf("#0067:arg: error\n"); print(&ap); } }