In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/6645d2ed454fabd284e37e08a29cacbfc5b9a3d6?hp=272d03f882615257eeac4d2796d0b94e8c4ad868>
- Log ----------------------------------------------------------------- commit 6645d2ed454fabd284e37e08a29cacbfc5b9a3d6 Author: Tony Cook <[email protected]> Date: Wed Nov 9 14:59:38 2016 +1100 Stefan Seifert is now a perl author M AUTHORS commit 54c85bb058e15520a2fc0ba34007743aae56be34 Author: Stefan Seifert <[email protected]> Date: Wed Nov 9 14:49:07 2016 +1100 clarify the contents of argv[] M pod/perlembed.pod ----------------------------------------------------------------------- Summary of changes: AUTHORS | 1 + pod/perlembed.pod | 3 +++ 2 files changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index 818a359..275e60e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1129,6 +1129,7 @@ Spiros Denaxas <[email protected]> Sreeji K Das <[email protected]> Stanislaw Pusep <[email protected]> Stas Bekman <[email protected]> +Stefan Seifert <[email protected]> Steffen Müller <[email protected]> Steffen Schwigon <[email protected]> Steffen Ullrich <[email protected]> diff --git a/pod/perlembed.pod b/pod/perlembed.pod index 7bc7a8c..1c971c3 100644 --- a/pod/perlembed.pod +++ b/pod/perlembed.pod @@ -211,6 +211,9 @@ Also notice that no matter what arguments you pass to perl_parse(), PERL_SYS_INIT3() must be invoked on the C main() argc, argv and env and only once. +Mind that argv[argc] must be NULL, same as those passed to a main +function in C. + Now compile this program (I'll call it I<interp.c>) into an executable: % cc -o interp interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts` -- Perl5 Master Repository
