Mercurial > hg > CbC > old > device
view test/tmp.c @ 471:cfa4db8b18a5
mips float arg fix
author | kono |
---|---|
date | Tue, 08 Nov 2005 12:11:17 +0900 |
parents | 32737bad7489 |
children | a379da780856 |
line wrap: on
line source
int printf(const char *format, ...); int main1(int ac,char *av[],int (*f)(),int g()) { return (*f)(ac)+g(ac); } int g(int k) { return k+1; } main0(ac,av) { return ac; } main(ac,av) int ac; char *av[]; { register int i; register char *p; p = av[1]; if (!p) return; i = p[1]; p = p+i; printf("#0028:%d %s\n",i,p-i); printf("#0029:%d\n",main1(ac,av,g,g)); return 0; }