diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/as.linux64/zsvjmp_demo.c | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'unix/as.linux64/zsvjmp_demo.c')
-rw-r--r-- | unix/as.linux64/zsvjmp_demo.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/unix/as.linux64/zsvjmp_demo.c b/unix/as.linux64/zsvjmp_demo.c new file mode 100644 index 00000000..3dd2d90e --- /dev/null +++ b/unix/as.linux64/zsvjmp_demo.c @@ -0,0 +1,13 @@ +/* Compile with gcc -S to get demo assembler code. + */ +#include <setjmp.h> + +#define import_spp +#include <iraf.h> + +int zsvjmp_( XPOINTER *buf, XINT *status ) +{ + *status = 0; + ((XINT **)buf)[0] = status; + return sigsetjmp ((void *)((XINT **)buf+1),0); +} |