Skip to content

Commit

Permalink
add a couple of VTABLE declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Mar 24, 2009
1 parent 536d3c1 commit 39013da
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/pmc/php.pmc
Expand Up @@ -68,11 +68,11 @@ information see F<src/pmc.c>.
=cut

*/
void* get_pointer() {
VTABLE void* get_pointer() {
return Php_PMC;
}

void set_pointer(void *ptr) {
VTABLE void set_pointer(void *ptr) {
Php_PMC = (PMC *)ptr;
}

Expand Down
4 changes: 2 additions & 2 deletions src/pmc/phpboolean.pmc
Expand Up @@ -38,7 +38,7 @@ Return the string 'boolean'.
=cut

*/
STRING* name() {
VTABLE STRING* name() {
return Parrot_str_new_constant(INTERP, "boolean");
}

Expand All @@ -51,7 +51,7 @@ Return the string '1' or ''.
=cut

*/
STRING* get_string() {
VTABLE STRING* get_string() {
if (SELF.get_integer())
return Parrot_str_new_constant(INTERP, "1");
else
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/phpfloat.pmc
Expand Up @@ -35,7 +35,7 @@ Return the string 'double'.
=cut

*/
STRING* name() {
VTABLE STRING* name() {
return Parrot_str_new_constant(INTERP, "double");
}

Expand Down
2 changes: 1 addition & 1 deletion src/pmc/phpinteger.pmc
Expand Up @@ -33,7 +33,7 @@ Return the string 'integer'.
=cut

*/
STRING* name() {
VTABLE STRING* name() {
return Parrot_str_new_constant(INTERP, "integer");
}

Expand Down
2 changes: 1 addition & 1 deletion src/pmc/phpnull.pmc
Expand Up @@ -32,7 +32,7 @@ Return the string 'NULL'.
=cut

*/
STRING* name() {
VTABLE STRING* name() {
return Parrot_str_new_constant(INTERP, "NULL");
}

Expand Down
2 changes: 1 addition & 1 deletion src/pmc/phpresource.pmc
Expand Up @@ -32,7 +32,7 @@ Raises an exception. Use C<init_pmc()>.
=cut

*/
void init() {
VTABLE void init() {
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_INVALID_OPERATION,
"PhpResource init without pmc");
}
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/phpstring.pmc
Expand Up @@ -35,7 +35,7 @@ Return the string 'string'.
=cut

*/
STRING* name() {
VTABLE STRING* name() {
return Parrot_str_new_constant(INTERP, "string");
}

Expand Down

0 comments on commit 39013da

Please sign in to comment.