Mercurial > hg > CbC > old > device
comparison test/tmp4.c @ 725:3f1f6c0610c1
goto with enviornment syntax changed.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 20 Aug 2009 16:39:02 +0900 |
parents | 6b7372e17970 |
children | c2c709727221 |
comparison
equal
deleted
inserted
replaced
724:e60c3d8dadd6 | 725:3f1f6c0610c1 |
---|---|
1 #define __environment _CbC_environment | |
2 #define __return _CbC_return | |
3 | |
1 #include "stdio.h" | 4 #include "stdio.h" |
2 | 5 |
3 int | 6 int |
4 main(ac,av) | 7 main(ac,av) |
5 int ac; | 8 int ac; |
52 __code (*ret)(); | 55 __code (*ret)(); |
53 void *retenv; | 56 void *retenv; |
54 { | 57 { |
55 fprintf(stdout,"5: %s\n",av[0]+2); | 58 fprintf(stdout,"5: %s\n",av[0]+2); |
56 fprintf(stdout,"5: i=%d j=%d k=%d\n",i,j,k); | 59 fprintf(stdout,"5: i=%d j=%d k=%d\n",i,j,k); |
57 goto (*ret)(1234),retenv; | 60 goto (*ret)(1234,retenv); |
58 } | 61 } |