X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlembed.pod;h=5ecaed04d067e3e15d4e053cba3b9fadea9ec370;hb=8162142bfe8ad55439ff878b28c85e654d9a67d3;hp=161e1ceff517d60ff63053aca238df6898906cd5;hpb=eb53357261107ec40e8c517666330fc71276b6fb;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlembed.pod b/pod/perlembed.pod index 161e1ce..5ecaed0 100644 --- a/pod/perlembed.pod +++ b/pod/perlembed.pod @@ -207,6 +207,10 @@ interpreter, and PERL_SYS_TERM() after you free your last interpreter. Since PERL_SYS_INIT3() may change C, it may be more appropriate to provide C as an argument to perl_parse(). +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. + Now compile this program (I'll call it I) into an executable: % cc -o interp interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts` @@ -1096,7 +1100,7 @@ Finally, select Build -> Build interp.exe and you're ready to go. =head1 Hiding Perl_ -If you completely hide the short forms forms of the Perl public API, +If you completely hide the short forms of the Perl public API, add -DPERL_NO_SHORT_NAMES to the compilation flags. This means that for example instead of writing