From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- unix/as.linux64/zsvjmp_demo.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 unix/as.linux64/zsvjmp_demo.c (limited to 'unix/as.linux64/zsvjmp_demo.c') 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 + +#define import_spp +#include + +int zsvjmp_( XPOINTER *buf, XINT *status ) +{ + *status = 0; + ((XINT **)buf)[0] = status; + return sigsetjmp ((void *)((XINT **)buf+1),0); +} -- cgit