# HG changeset patch # User Kaito Tokumori # Date 1386486485 -32400 # Node ID a4f34209ba639f9e90aabf7d2f41db4ee9d3dd0d # Parent 3f7c32b23851dc5783cd61daa8e991370108cbb3 remove __CbC_env from struct_longjmp.c diff -r 3f7c32b23851 -r a4f34209ba63 struct_longjump.c --- a/struct_longjump.c Sun Dec 01 20:28:23 2013 +0900 +++ b/struct_longjump.c Sun Dec 08 16:08:05 2013 +0900 @@ -2,11 +2,6 @@ int longjmp(int*,int); int printf(const char*,...); -struct CbC_env { - void *ret_p; - int *env; -}; - __code code1(int n,__code(*__return)(int,void *),void *__environment){ printf("code1 : code entry1\n"); goto __return(n,__environment); @@ -14,13 +9,13 @@ __code return1 (int n,void* env){ printf("return1 : __return entry\n"); - *(int*)((struct CbC_env *)(env))->ret_p = n; - longjmp((((struct CbC_env *)env)->env),1); + *(int*)((struct __CbC_env *)(env))->ret_p = n; + longjmp((((struct __CbC_env *)env)->env),1); } int main1 (){ __code (*__return)(); - struct CbC_env __environment; + struct __CbC_env __environment; int i_buf[128]; int retval; __environment.ret_p = &retval;