Mercurial > hg > CbC > CbC_examples
changeset 12:0d306982c8b9
remove code segment declaration from fact-a
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Apr 2015 14:02:00 +0900 |
parents | 6d45489b5dcb |
children | f442aa72b246 |
files | fact-a.c normal.c test05.c |
diffstat | 3 files changed, 10 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/fact-a.c Thu Apr 16 19:40:07 2015 +0900 +++ b/fact-a.c Fri Apr 17 14:02:00 2015 +0900 @@ -5,9 +5,6 @@ #include "stdio.h" -__code factorial(int n,int result,int orig,__code(*print)(),__code(*exit1)(), void *exit1env); -__code print(int n,int result,int orig,__code(*print)(),__code (*exit1)(),void*exit1env); - __code factorial(int n,int result,int orig,__code(*print)(int,int,int,__code(*)(),__code(*)(),void*),__code(*exit1)(int,void *), void *exit1env) { if (n<0) {
--- a/normal.c Thu Apr 16 19:40:07 2015 +0900 +++ b/normal.c Fri Apr 17 14:02:00 2015 +0900 @@ -8,19 +8,19 @@ test_int ti; void end(){ - exit(0); + exit(0); } int main(int argc, char **argv){ - size=0; - ti=10; + size=0; + ti=10; - printf("main: "); - printf("normal:%d\n", argc); - - size = 10; - printf("size = %d\n", size); - printf(" ti = %d\n", ti); - end(); + printf("main: "); + printf("normal:%d\n", argc); + + size = 10; + printf("size = %d\n", size); + printf(" ti = %d\n", ti); + end(); }
--- a/test05.c Thu Apr 16 19:40:07 2015 +0900 +++ b/test05.c Fri Apr 17 14:02:00 2015 +0900 @@ -3,11 +3,8 @@ #define dprint(f, args...) \ printf("in %s: "f, __FUNCTION__, ## args) -__code caller (int a); void f01 (int a); void f02 (int a, float b); -__code cs01 (int a); -__code cs02 (int a, float b); int main ();