From eb8c67f943a1f7bcdcda2fe3304f5076c404f2cc Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 1 Jun 2010 13:16:30 -0700 Subject: [PATCH] Call .loadlib from the correct place --- plparrot.h | 3 ++- plparrot_secure.pir | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plparrot.h b/plparrot.h index ea16292..66e9638 100644 --- a/plparrot.h +++ b/plparrot.h @@ -4,8 +4,9 @@ * Written by ./bin/text2macro.pl from plparrot_secure.pir */ #define PLPARROT_SECURE \ +".loadlib \"io_ops\"\n" \ +"\n" \ ".sub _ :main\n" \ -" .loadlib \"io_ops\"\n" \ " .local pmc p6meta, interp, classes, classid\n" \ " p6meta = get_root_global [\"parrot\"], \"P6metaclass\"\n" \ " p6meta.'new_class'('PLParrot')\n" \ diff --git a/plparrot_secure.pir b/plparrot_secure.pir index 746467f..71235b5 100644 --- a/plparrot_secure.pir +++ b/plparrot_secure.pir @@ -1,5 +1,6 @@ +.loadlib "io_ops" + .sub _ :main - .loadlib "io_ops" .local pmc p6meta, interp, classes, classid p6meta = get_root_global ["parrot"], "P6metaclass" p6meta.'new_class'('PLParrot')