Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…api merge)

s/pobject_lives/Parrot_gc_mark_PObj_alive/

COMPATIBILITY BREAK
  • Loading branch information
fperrad committed May 10, 2009
1 parent c0a72c1 commit 20bf64a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/pmc/luafunction.pmc
Expand Up @@ -96,7 +96,7 @@ Marks the function as live.
VTABLE void mark() {
SUPER();
if (f_env(SELF))
pobject_lives(INTERP, (PObj *)f_env(SELF));
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)f_env(SELF));
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/luastring.pmc
Expand Up @@ -105,7 +105,7 @@ Marks the string as live.
STRING * str_val;
GET_ATTR_str_val(INTERP, SELF, str_val);
if (str_val)
pobject_lives(INTERP, (PObj *)str_val);
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)str_val);
}

/*
Expand Down
6 changes: 3 additions & 3 deletions src/pmc/luatable.pmc
Expand Up @@ -357,9 +357,9 @@ static void lua_mark_table(PARROT_INTERP, LuaHash *t, STRING *mode)
for (i = 0; i < t->size; i++) {
if (v[i].val) {
if (mark_key)
pobject_lives(interp, (PObj *)v[i].key);
Parrot_gc_mark_PObj_alive(interp, (PObj *)v[i].key);
if (mark_val)
pobject_lives(interp, (PObj *)v[i].val);
Parrot_gc_mark_PObj_alive(interp, (PObj *)v[i].val);
}
}
}
Expand Down Expand Up @@ -424,7 +424,7 @@ Marks the hash as live.
lua_mark_table(INTERP, t_val(SELF), mode);

if (meta)
pobject_lives(INTERP, (PObj *)meta);
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)meta);
}

/*
Expand Down
4 changes: 2 additions & 2 deletions src/pmc/luathread.pmc
Expand Up @@ -100,9 +100,9 @@ Marks the Parrot::Coroutine as live.
*/
VTABLE void mark() {
if (t_val(SELF))
pobject_lives(INTERP, (PObj *)t_val(SELF));
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)t_val(SELF));
if (t_env(SELF))
pobject_lives(INTERP, (PObj *)t_env(SELF));
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)t_env(SELF));
}

/*
Expand Down
6 changes: 3 additions & 3 deletions src/pmc/luauserdata.pmc
Expand Up @@ -93,11 +93,11 @@ Marks the userdata as live.
*/
VTABLE void mark() {
if (u_val(SELF))
pobject_lives(INTERP, (PObj *)u_val(SELF));
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)u_val(SELF));
if (u_env(SELF))
pobject_lives(INTERP, (PObj *)u_env(SELF));
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)u_env(SELF));
if (u_mt(SELF))
pobject_lives(INTERP, (PObj *)u_mt(SELF));
Parrot_gc_mark_PObj_alive(INTERP, (PObj *)u_mt(SELF));
}

/*
Expand Down

0 comments on commit 20bf64a

Please sign in to comment.