comparison CbC-examples/rectypeTest/rectypeTest1.c @ 105:b3cfc7733d3f

fix bug. implementation fo rectype. c-family/c-pretty-print.c
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Fri, 25 May 2012 10:34:23 +0900
parents
children
comparison
equal deleted inserted replaced
104:46ee985e4f0e 105:b3cfc7733d3f
1 #include <stdio.h>
2 __code print(__rectype *p, int num) {
3 printf("num = %d\n",num);
4 }
5
6 __code csA(__rectype *p, int num) {
7 goto p(csA,3,4);
8 goto p(2,3);
9 goto p(csA,3);
10 return;
11 }
12
13 void funcA(__code (*p)()){
14 goto p(print, 3);
15 return;
16 }
17
18 int main() {
19 funcA(csA);
20
21 return 0;
22 }