Mercurial > hg > Members > nobuyasu > test
view regen/src/template/cbc_return.c @ 11:1e0cd7fade8b
add regen
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Jun 2011 16:36:05 +0900 |
parents | |
children |
line wrap: on
line source
void s0(UCHARP beg, UCHARP buf, UCHARP end, ENVP env) { env->ret = (jmp_buf *)malloc(sizeof(int)*100); // allocate dumy fields. for protect real ret addres. env->ret = (jmp_buf *)malloc(sizeof(jmp_buf)); if (env == NULL) { fprintf(stderr, "can't allocate jmp_buf"); exit(0); } int ret; if ((ret = setjmp(env->ret)) == 0) { goto _s0(beg, buf, end, env); } //free(env->ret); danger! return; }