Mercurial > hg > CbC > old > device
annotate test/too-long-argument.c @ 881:ab501cdbbefd
fix wrong src/dst type in pdecl_data_field
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 03 Apr 2014 17:49:05 +0900 |
parents | 5313ed059cee |
children |
rev | line source |
---|---|
725
3f1f6c0610c1
goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
720
diff
changeset
|
1 #define __environment _CbC_environment |
3f1f6c0610c1
goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
720
diff
changeset
|
2 #define __return _CbC_return |
3f1f6c0610c1
goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
720
diff
changeset
|
3 |
520 | 4 #include <stdio.h> |
5 | |
524 | 6 #undef WRONGNUMBER |
7 | |
622 | 8 typedef __code |
521 | 9 (*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, |
880 | 10 __code(*ret)(int,void *), |
11 void *env); | |
521 | 12 |
622 | 13 __code |
520 | 14 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, |
880 | 15 __code(*ret)(int,void *), |
16 void *env) | |
520 | 17 { |
748
c2c709727221
i64 continue... basic.s assembled.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
18 fprintf(stdout,"#0017:tcode2: f1=%d,f2=%d,f3=%d,f4=%d,f5=%d,f6=%d,f7=%d,f8=%d,f9=%d,fa=%d,fb=%d,fc=%d,fd=%d,fe=%d,ff=%d\n", |
520 | 19 f1,f2,f3,f4,f5,f6,f7,f8,f9,fa,fb,fc,fd,fe,ff); |
725
3f1f6c0610c1
goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
720
diff
changeset
|
20 goto ret(0,env); |
520 | 21 } |
22 | |
622 | 23 __code |
519 | 24 tcode1(f1,f2,f3,f4,f5,f6,f7,f8,f9,fa,fb,fc,fd,fe,ff,ret,env) |
880 | 25 int f1,f2,f3,f4,f5,f6,f7,f8,f9,fa,fb,fc,fd,fe,ff; |
26 __code(*ret)(int,void *); | |
27 void *env; | |
519 | 28 { |
748
c2c709727221
i64 continue... basic.s assembled.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
29 fprintf(stdout,"#0028:tcode1: f1=%d,f2=%d,f3=%d,f4=%d,f5=%d,f6=%d,f7=%d,f8=%d,f9=%d,fa=%d,fb=%d,fc=%d,fd=%d,fe=%d,ff=%d\n", |
520 | 30 f1,f2,f3,f4,f5,f6,f7,f8,f9,fa,fb,fc,fd,fe,ff); |
725
3f1f6c0610c1
goto with enviornment syntax changed.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
720
diff
changeset
|
31 goto ret(0,env); |
519 | 32 } |
33 | |
622 | 34 __code |
35 tcode4(int x,int y,CCC junction,__code(*ret)(int),void *env) | |
519 | 36 { |
524 | 37 #ifdef WRONGNUMBER |
523 | 38 goto junction(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,ret,env); |
524 | 39 #else |
40 goto junction(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,ret,env); | |
41 #endif | |
521 | 42 } |
43 | |
622 | 44 __code |
45 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) | |
521 | 46 { |
524 | 47 #ifdef WRONGNUMBER |
523 | 48 goto junction(0,1,2,3,4,5,6,7,8,9,10,11,12,13,ret,env); |
524 | 49 #else |
50 goto junction(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,ret,env); | |
51 #endif | |
519 | 52 } |
53 | |
54 int | |
520 | 55 main0() |
56 { | |
524 | 57 #ifdef WRONGNUMBER |
58 goto tcode2(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, | |
880 | 59 __return,__environment); |
524 | 60 #else |
521 | 61 goto tcode2(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14, |
880 | 62 __return,__environment); |
524 | 63 #endif |
520 | 64 } |
65 | |
66 int | |
67 main1() | |
68 { | |
524 | 69 #ifdef WRONGNUMBER |
70 goto tcode1(0,1,2,3,4,5,6,7,8,9,10,11,12,13, | |
880 | 71 __return,__environment); |
524 | 72 #else |
521 | 73 goto tcode1(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14, |
880 | 74 __return,__environment); |
524 | 75 #endif |
520 | 76 } |
77 | |
78 int | |
79 main2() | |
519 | 80 { |
720 | 81 goto tcode0(0,1,tcode1,__return,__environment); |
519 | 82 } |
520 | 83 |
84 int | |
521 | 85 main4() |
86 { | |
720 | 87 goto tcode4(0,1,tcode2,__return,__environment); |
521 | 88 } |
89 | |
90 int | |
520 | 91 main() |
92 { | |
748
c2c709727221
i64 continue... basic.s assembled.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
93 printf("#0092:main4\n"); |
521 | 94 main4(); |
748
c2c709727221
i64 continue... basic.s assembled.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
95 printf("#0094:main2\n"); |
521 | 96 main2(); |
748
c2c709727221
i64 continue... basic.s assembled.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
97 printf("#0096:main0\n"); |
520 | 98 main0(); |
748
c2c709727221
i64 continue... basic.s assembled.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
725
diff
changeset
|
99 printf("#0098:main1\n"); |
520 | 100 main1(); |
575 | 101 return 0; |
520 | 102 } |
524 | 103 |
104 // |