Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "remove some yet unused code"
This reverts commit 31f8a10.
  • Loading branch information
bschmalhofer committed Apr 17, 2009
1 parent d170576 commit d76c493
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/pmc/phpresource.pmc
Expand Up @@ -25,6 +25,57 @@ pmclass PhpResource

/*

=item C<void init()>

Raises an exception. Use C<init_pmc()>.

=cut

*/
VTABLE void init() {
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_INVALID_OPERATION,
"PhpResource init without pmc");
}

/*

=item C<void init_pmc(PMC *initializer)>

Sets the referenced PMC to C<initializer>.

=cut

*/
VTABLE void init_pmc(PMC *initializer) {
}

/*

=item C<PMC *get_pmc()>

Get the referenced PMC.

=cut

*/
VTABLE PMC *get_pmc() {
}

/*

=item C<void mark()>

Marks the referenced PMC as live.

=cut

*/
VTABLE void mark() {
pobject_lives(INTERP, (PObj *)PMC_pmc_val(SELF));
}

/*

=item C<STRING* name()>

Return the string 'resource'.
Expand Down Expand Up @@ -57,8 +108,17 @@ Returns a string representation of the resource.

=over 4

=item C<PMC* to_number()>

=cut

*/
METHOD PMC* to_number() {
RETURN(PMC *SELF);
}

/*

=back

=head2 Specific Methods
Expand Down

0 comments on commit d76c493

Please sign in to comment.