提交 d6d636aa 创建 作者: rsc's avatar rsc

make setjmp fit on one page

上级 ab299eb3
# 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论