Permalink
Browse files

Updated doc and some code to reflect new Parrot_new() interface

Courtesy of St��phane Payrard <stef@payrard.net>


git-svn-id: https://svn.parrot.org/parrot/trunk@6636 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 30b79e6 commit 01f4e37a805aa7655bd9cd859c9e615b3b9c01df Jens Rieks committed Sep 16, 2004
Showing with 8 additions and 7 deletions.
  1. +2 −2 build_tools/pbc2c.pl
  2. +4 −3 docs/embed.pod
  3. +1 −1 docs/tests.pod
  4. +1 −1 src/test_main.c
View
@@ -231,7 +231,7 @@ sub compile_byte_code {
INTVAL i;
PMC *userargv;
- interpreter = Parrot_new();
+ interpreter = Parrot_new(NULL);
if (!interpreter) {
return 1;
}
@@ -366,4 +366,4 @@ =head1 LICENSE
This program is free software. It is subject to the same license
as the Parrot interpreter.
-=end ADDITIONAL
+=end ADDITIONAL
View
@@ -16,7 +16,7 @@ embed.pod - Parrot embedding system
argc--; argv++; /* skip the program name */
- interp=Parrot_new();
+ interp=Parrot_new(NULL);
Parrot_init(interp);
if(PARROT_JIT_CAPABLE) {
@@ -178,9 +178,10 @@ it).
=over 4
-=item C<Parrot_Interp Parrot_new()>
+=item C<Parrot_Interp Parrot_new(Parrot_Interp parent)>
-Allocates and returns a new Parrot interpreter.
+Allocates and returns a new Parrot interpreter. C<parent> is NULL for the
+main interpreter that will be destroyed last.
=item C<void Parrot_init(Parrot_Interp)>
View
@@ -63,7 +63,7 @@ in the test code:
int main(int argc, char* argv[]) {
Parrot_Interp interpreter;
- interpreter = Parrot_new();
+ interpreter = Parrot_new(NULL);
if (!interpreter)
return 1;
View
@@ -72,7 +72,7 @@ main(int argc, char *argv[])
char *filename;
Parrot_PackFile pf;
- interpreter = Parrot_new();
+ interpreter = Parrot_new(NULL);
if (!interpreter) {
return 1;

0 comments on commit 01f4e37

Please sign in to comment.