Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 644298068be8c6fb35a2223484b8220a > files > 87

bash-doc-4.4-23.1.mga7.x86_64.rpm

#include <EXTERN.h>               /* from the Perl distribution     */
#include <perl.h>                 /* from the Perl distribution     */

extern void xs_init _((void));

static PerlInterpreter *iperl;  /***    The Perl interpreter    ***/

int
perl_main(int argc, char **argv, char **env)
{
	int	r;

	iperl = perl_alloc();
	perl_construct(iperl);
	perl_parse(iperl, xs_init, argc, argv, (char **)NULL);
	r = perl_run(iperl);

PerlIO_flush(PerlIO_stdout());
PerlIO_flush(PerlIO_stderr());

	perl_destruct(iperl);
	perl_free(iperl);
	return (r);
}