Mercurial > hg > CbC > old > examples
changeset 8:ae12f717a62e draft default tip
fix first example
author | one |
---|---|
date | Wed, 07 Jun 2017 14:57:55 +0900 |
parents | db61a5375f9b |
children | |
files | first.c |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/first.c Wed Jun 07 14:50:11 2017 +0900 +++ b/first.c Wed Jun 07 14:57:55 2017 +0900 @@ -1,23 +1,24 @@ -//#include <stdio.h> +#include <stdio.h> -code -code2(code (*exit0)(int), void *env) +__code +code2(__code (*exit0)(int,void*), void *env) { printf("aho\n"); - goto exit0(0), env; + goto exit0(0,env); } -code -code1(code *(exit0)(int), void *env) +__code +code1(__code exit0(int,void*), void *env) { printf("hello\n"); goto code2(exit0, env); } -void +int aho() { - goto code1(return,environment); + goto code1(__return,__environment); + return 0; } int