summaryrefslogtreecommitdiff
path: root/src/setjmp/setjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp/setjmp.c')
-rw-r--r--src/setjmp/setjmp.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/setjmp/setjmp.c b/src/setjmp/setjmp.c
index c578d2a9..a297dd6f 100644
--- a/src/setjmp/setjmp.c
+++ b/src/setjmp/setjmp.c
@@ -1,32 +1,33 @@
#include <setjmp.h>
+/** save program state **/
+
int setjmp(jmp_buf env)
{
- extern int __setjmp(jmp_buf);
+ (void)env;
+ /* extern int setjmp(jmp_buf); */
/*
RETURN(0, the environment has been saved by THIS())
RETURN(NONZERO, the environment has been restored by FUNCTION(longjmp))
*/
- return __setjmp(env);
+ return 0; /* setjmp(env); */
}
-/** save program state **/
-
/***
saves the current state of the calling environment
in the TYPEDEF(jmp_buf) ARGUMENT(env).
***/
-/* CONSTRAINT: entire controlling expression of a selection or iteration statement */
-/* CONSTRAINT: one operand of a relational or equality operator which is the entire controlling expression of a selction or iteration statement */
-/* CONSTRAINT: the operand of a unary ! as the entire controlling expression of a selection or iteration statement */
-/* CONSTRAINT: an entire expression statement */
-
/*
+CONSTRAINT: entire controlling expression of a selection or iteration statement
+CONSTRAINT: one operand of a relational or equality operator which is the entire controlling expression of a selction or iteration statement
+CONSTRAINT: the operand of a unary ! as the entire controlling expression of a selection or iteration statement
+CONSTRAINT: an entire expression statement
+
UNSPECIFIED(Whether THIS() is a macro or identifier with external linkage)
+
UNDEFINED(A macro definition of THIS() is suppressed in order to access an actual function)
UNDEFINED(A program defines an external identifier named LITERAL(setjmp))
-*/
-/*
+
STDC(1)
*/