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

Comparing libcoro/coro.c (file contents):
Revision 1.13 by root, Thu Mar 3 17:20:31 2005 UTC vs.
Revision 1.14 by root, Mon Mar 21 14:17:44 2005 UTC

46# endif 46# endif
47#endif 47#endif
48 48
49#if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX 49#if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX
50 50
51#if CORO_SJLJ
51#include <signal.h> 52# include <signal.h>
53#endif
52 54
53static volatile coro_func coro_init_func; 55static volatile coro_func coro_init_func;
54static volatile void *coro_init_arg; 56static volatile void *coro_init_arg;
55static volatile coro_context *new_coro, *create_coro; 57static volatile coro_context *new_coro, *create_coro;
56 58
72 74
73static volatile int trampoline_count; 75static volatile int trampoline_count;
74 76
75/* trampoline signal handler */ 77/* trampoline signal handler */
76static void 78static void
77trampoline(int sig) 79trampoline (int sig)
78{ 80{
79 if (setjmp (((coro_context *)new_coro)->env)) 81 if (setjmp (((coro_context *)new_coro)->env))
80 coro_init (); /* start it */ 82 coro_init (); /* start it */
81 else 83 else
82 trampoline_count++; 84 trampoline_count++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines