From 635f3167091b5f7419cef9b24810f24269f40a37 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 13:27:49 -0500 Subject: update standards and safety --- src/setjmp/longjmp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/setjmp/longjmp.c') diff --git a/src/setjmp/longjmp.c b/src/setjmp/longjmp.c index fc4305ca..26c65299 100644 --- a/src/setjmp/longjmp.c +++ b/src/setjmp/longjmp.c @@ -1,12 +1,12 @@ -#if 0 - #include +#include "_safety.h" /** restore calling environment **/ _Noreturn void longjmp(jmp_buf env, int val) { extern _Noreturn void __longjmp(jmp_buf); + SIGNAL_SAFE(0); /* use val if nonzero, otherwise 1 */ env[0] = val ? val : 1; @@ -35,6 +35,3 @@ UNDEFINED(The function containing the previous call to FUNCTION(setjmp) is no lo UNDEFINED(THIS() is called from a nested signal handler) STDC(1) */ - - -#endif -- cgit v1.2.1