Skip to content
Snippets Groups Projects
Commit d6d636aa authored by rsc's avatar rsc
Browse files

make setjmp fit on one page

parent ab299eb3
No related branches found
No related tags found
No related merge requests found
# int setjmp(struct jmpbuf *jmp); # int setjmp(struct jmpbuf *jmp);
# void longjmp(struct jmpbuf *jmp); # void longjmp(struct jmpbuf *jmp);
# #
# Setjmp saves its stack environment in jmp # Setjmp saves its stack environment in jmp for later use by longjmp.
# for later use by longjmp. It returns 0. # It returns 0.
# #
# Longjmp restores the environment saved by # Longjmp restores the environment saved by the last call of setjmp.
# the last call of setjmp. It then causes # It then causes execution to continue as if the call of setjmp
# execution to continue as if the call of setjmp
# had just returned 1. # had just returned 1.
# #
# The caller of setjmp must not itself have # The caller of setjmp must not itself have returned in the interim.
# returned in the interim. All accessible data # All accessible data have values as of the time longjmp was called.
# have values as of the time longjmp was called.
# #
# [Description, but not code, borrowed from Plan 9.] # [Description, but not code, borrowed from Plan 9.]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment