comparison CbC-examples/rectypeTest/typedef.cbc @ 106:85047c4f1ca4

add CbC-examples/rectypeTest
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Wed, 13 Jun 2012 17:18:58 +0900
parents
children a3a2f64cf8f4
comparison
equal deleted inserted replaced
105:b3cfc7733d3f 106:85047c4f1ca4
1 #include <stdio.h>
2
3 //typedef __code (*csPtr)(__rectype);
4 typedef __code (*csPtr)(__rectype*); // TODO: error
5
6
7 //__code print(csPtr p ) { TODO:
8 __code print(__rectype *p ) {
9 puts("hello");
10 }
11
12 //__code func(csPtr p ) { TODO:
13 __code func(__rectype *p ) {
14 goto p(func);
15 }
16
17
18 int main() {
19 goto func(print);
20 return 0;
21 }