Mercurial > hg > CbC > CbC_gcc
view CbC-examples/rectypeTest/typedef.cbc @ 120:f93fa5091070
fix conv1.c
author | mir3636 |
---|---|
date | Thu, 08 Mar 2018 14:53:42 +0900 |
parents | a3a2f64cf8f4 |
children |
line wrap: on
line source
typedef __code (CS)(__rectype*); // CS *p //typedef __code (*CS)(__code(*p)()); //typedef __code (CS)(__code(*p)()); // CS *p #include <stdio.h> __code cs_end(CS *p) { printf("end\n"); } __code cs(CS *p) { CS *b; goto p(b); // goto p("aaa"); //note: expected ‘void (*)’ but argument is of type ‘char } int main() { CS *p; p = cs_end; goto cs(p); return 0; }