Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PMC_int_val() and PMC_pmc_val() are gone
  • Loading branch information
bschmalhofer committed Apr 17, 2009
1 parent 6dbfee7 commit 45145b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/pmc/phpresource.pmc
Expand Up @@ -47,8 +47,6 @@ Sets the referenced PMC to C<initializer>.

*/
VTABLE void init_pmc(PMC *initializer) {
PMC_pmc_val(SELF) = initializer;
PObj_custom_mark_SET(SELF);
}

/*
Expand All @@ -61,7 +59,6 @@ Get the referenced PMC.

*/
VTABLE PMC *get_pmc() {
return PMC_pmc_val(SELF);
}

/*
Expand Down
4 changes: 2 additions & 2 deletions src/pmc/phpstring.pmc
Expand Up @@ -142,7 +142,7 @@ Return the string 'string'.

if (s1 != s2 && (*s2 == '\0' || isspace((unsigned char)*s2))) {
retval = pmc_new(INTERP, dynpmc_PhpInteger);
PMC_int_val(retval) = i;
VTABLE_set_integer_native(INTERP, retval, i);
}
else {
FLOATVAL d = strtod(s1, &s2);
Expand All @@ -153,7 +153,7 @@ Return the string 'string'.
}
else {
retval = pmc_new(INTERP, dynpmc_PhpInteger);
PMC_int_val(retval) = 0;
VTABLE_set_integer_native(INTERP, retval, i);
}
}

Expand Down

0 comments on commit 45145b3

Please sign in to comment.