projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d1c8c9
)
remove macro definition of longjmp from setjmp.h
author
Rich Felker
<dalias@aerifal.cx>
Thu, 2 Apr 2015 00:35:03 +0000
(20:35 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 2 Apr 2015 00:35:03 +0000
(20:35 -0400)
the C standard specifies that setjmp is a macro, but longjmp is a
normal function. a macro version of it would be permitted (albeit
useless) for C (not C++), but would have to be a function-like macro,
not an object-like one.
include/setjmp.h
patch
|
blob
|
history
diff --git
a/include/setjmp.h
b/include/setjmp.h
index 0da27de6e5c67efd98875cbf54d9f82a71f347a9..2d43abf84f54ad9fc9501e0204816579c9b0de99 100644
(file)
--- a/
include/setjmp.h
+++ b/
include/setjmp.h
@@
-33,7
+33,6
@@
int setjmp (jmp_buf);
_Noreturn void longjmp (jmp_buf, int);
#define setjmp setjmp
-#define longjmp longjmp
#ifdef __cplusplus
}