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.417 by root, Sun Feb 19 11:14:45 2012 UTC vs.
Revision 1.418 by root, Mon Feb 20 00:03:07 2012 UTC

1410 1410
1411 slf_frame.prepare = slf_prepare_set_stacklevel; 1411 slf_frame.prepare = slf_prepare_set_stacklevel;
1412 slf_frame.check = slf_check_set_stacklevel; 1412 slf_frame.check = slf_check_set_stacklevel;
1413} 1413}
1414 1414
1415/* the tail of transfer: execute stuff we can only do after a transfer */
1416ecb_inline void
1417transfer_tail (pTHX)
1418{
1419 free_coro_mortal (aTHX);
1420}
1421
1415/* try to exit the same way perl's main function would do */ 1422/* try to exit the same way perl's main function would do */
1416/* we do not bother resetting the environment or other things *7 1423/* we do not bother resetting the environment or other things *7
1417/* that are not, uhm, essential */ 1424/* that are not, uhm, essential */
1418/* this obviously also doesn't work when perl is embedded */ 1425/* this obviously also doesn't work when perl is embedded */
1419static void ecb_noinline ecb_cold 1426static void ecb_noinline ecb_cold
1420perlish_exit (void) 1427perlish_exit (void)
1421{ 1428{
1422 int exitstatus = perl_destruct (PL_curinterp); 1429 int exitstatus = perl_destruct (PL_curinterp);
1423 perl_free (PL_curinterp); 1430 perl_free (PL_curinterp);
1424 exit (exitstatus); 1431 exit (exitstatus);
1425}
1426
1427/* the tail of transfer: execute stuff we can only do after a transfer */
1428ecb_inline void
1429transfer_tail (pTHX)
1430{
1431 free_coro_mortal (aTHX);
1432} 1432}
1433 1433
1434/* 1434/*
1435 * this is a _very_ stripped down perl interpreter ;) 1435 * this is a _very_ stripped down perl interpreter ;)
1436 */ 1436 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines