ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcoro/coro.h
(Generate patch)

Comparing libcoro/coro.h (file contents):
Revision 1.34 by root, Sat Nov 8 04:52:01 2008 UTC vs.
Revision 1.35 by root, Sat Nov 8 13:42:28 2008 UTC

228# endif 228# endif
229 229
230# include <setjmp.h> 230# include <setjmp.h>
231 231
232struct coro_context { 232struct coro_context {
233#if _XOPEN_UNIX > 0 || CORO_LOSER
233 jmp_buf env; 234 jmp_buf env;
235#else
236 sigjmp_buf env;
237#endif
234}; 238};
235 239
236# if _XOPEN_UNIX > 0 240# if _XOPEN_UNIX > 0
237# define coro_transfer(p,n) do { if (! _setjmp ((p)->env )) _longjmp ((n)->env, 1); } while (0) 241# define coro_transfer(p,n) do { if (! _setjmp ((p)->env )) _longjmp ((n)->env, 1); } while (0)
238# elif CORO_LOSER 242# elif CORO_LOSER

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines