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

Comparing libcoro/coro.c (file contents):
Revision 1.2 by root, Mon Jul 23 22:09:39 2001 UTC vs.
Revision 1.3 by root, Mon Jul 23 22:16:38 2001 UTC

46 volatile coro_func func = coro_init_func; 46 volatile coro_func func = coro_init_func;
47 volatile void *arg = coro_init_arg; 47 volatile void *arg = coro_init_arg;
48 48
49 coro_transfer ((coro_context *)new_coro, (coro_context *)create_coro); 49 coro_transfer ((coro_context *)new_coro, (coro_context *)create_coro);
50 50
51 func (arg); 51 func ((void *)arg);
52 52
53 /* the new coro returned. bad. just abort() for now */ 53 /* the new coro returned. bad. just abort() for now */
54 abort (); 54 abort ();
55} 55}
56 56
61 61
62/* trampoline signal handler */ 62/* trampoline signal handler */
63static void 63static void
64trampoline(int sig) 64trampoline(int sig)
65{ 65{
66 if (setjmp (&(((coro_context *)new_coro)->env))) 66 if (setjmp (((coro_context *)new_coro)->env))
67 coro_init (); /* start it */ 67 coro_init (); /* start it */
68 else 68 else
69 trampoline_count++; 69 trampoline_count++;
70} 70}
71 71

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines