… | |
… | |
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 */ |
|
|
1416 | ecb_inline void |
|
|
1417 | transfer_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 */ |
1419 | static void ecb_noinline ecb_cold |
1426 | static void ecb_noinline ecb_cold |
1420 | perlish_exit (void) |
1427 | perlish_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 */ |
|
|
1428 | ecb_inline void |
|
|
1429 | transfer_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 | */ |