Mercurial > hg > CbC > old > device
changeset 521:15c17f799404
*** empty log message ***
author | kono |
---|---|
date | Mon, 26 Dec 2005 22:52:36 +0900 |
parents | c562d1681275 |
children | a513979e5495 |
files | test/too-long-argument.c |
diffstat | 1 files changed, 24 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/test/too-long-argument.c Mon Dec 26 21:28:59 2005 +0900 +++ b/test/too-long-argument.c Mon Dec 26 22:52:36 2005 +0900 @@ -1,5 +1,10 @@ #include <stdio.h> +typedef code +(*CCC)( int f1,int f2,int f3,int f4,int f5,int f6,int f7,int f8,int f9,int fa,int fb,int fc,int fd,int fe,int ff, + code(*ret)(int), + void *env); + code tcode2( int f1,int f2,int f3,int f4,int f5,int f6,int f7,int f8,int f9,int fa,int fb,int fc,int fd,int fe,int ff, code(*ret)(int), @@ -22,23 +27,30 @@ } code -tcode0(int x,int y,code(*junction)(int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,code(*)(int),void *),code(*ret)(int),void *env) +tcode4(int x,int y,CCC junction,code(*ret)(int),void *env) { - goto junction(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,ret,env); + goto junction(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,ret,env); +} + +code +tcode0(int x,int y,code(*junction)(int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,code(*)(int),void *),code(*ret)(int),void *env) +{ + + goto junction(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,ret,env); } int main0() { - goto tcode2(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, + goto tcode2(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14, return,environment); } int main1() { - goto tcode1(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, + goto tcode1(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14, return,environment); } @@ -49,9 +61,16 @@ } int +main4() +{ + goto tcode4(0,1,tcode2,return,environment); +} + +int main() { + main4(); + main2(); main0(); main1(); - main2(); }