ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/State.xs
(Generate patch)

Comparing Coro/Coro/State.xs (file contents):
Revision 1.419 by root, Mon Feb 20 08:13:25 2012 UTC vs.
Revision 1.420 by root, Fri Apr 13 10:53:25 2012 UTC

1416/* try to exit the same way perl's main function would do */ 1416/* try to exit the same way perl's main function would do */
1417/* we do not bother resetting the environment or other things *7 1417/* we do not bother resetting the environment or other things *7
1418/* that are not, uhm, essential */ 1418/* that are not, uhm, essential */
1419/* this obviously also doesn't work when perl is embedded */ 1419/* this obviously also doesn't work when perl is embedded */
1420static void ecb_noinline ecb_cold 1420static void ecb_noinline ecb_cold
1421perlish_exit (void) 1421perlish_exit (pTHX)
1422{ 1422{
1423 int exitstatus = perl_destruct (PL_curinterp); 1423 int exitstatus = perl_destruct (PL_curinterp);
1424 perl_free (PL_curinterp); 1424 perl_free (PL_curinterp);
1425 exit (exitstatus); 1425 exit (exitstatus);
1426} 1426}
1462 * If perl-run returns we assume exit() was being called or the coro 1462 * If perl-run returns we assume exit() was being called or the coro
1463 * fell off the end, which seems to be the only valid (non-bug) 1463 * fell off the end, which seems to be the only valid (non-bug)
1464 * reason for perl_run to return. We try to mimic whatever perl is normally 1464 * reason for perl_run to return. We try to mimic whatever perl is normally
1465 * doing in that case. YMMV. 1465 * doing in that case. YMMV.
1466 */ 1466 */
1467 perlish_exit (); 1467 perlish_exit (aTHX);
1468 } 1468 }
1469} 1469}
1470 1470
1471static coro_cctx * 1471static coro_cctx *
1472cctx_new (void) 1472cctx_new (void)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines