Skip to content

Commit

Permalink
Moving close() from FileHandle to Handle
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandobrito committed Nov 30, 2010
1 parent f085399 commit e844c4c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/pmc/filehandle.pmc
Expand Up @@ -291,21 +291,6 @@ Returns a boolean value indicating whether C<SELF> is a console/tty.
RETURN(INTVAL isatty);
}

/*

=item C<METHOD close()>

Close the filehandle.

=cut

*/

METHOD close() {
const INTVAL status = Parrot_io_close(INTERP, SELF);
RETURN(INTVAL status);
}


/*

Expand Down
16 changes: 16 additions & 0 deletions src/pmc/handle.pmc
Expand Up @@ -90,6 +90,22 @@ platforms that use integer file descriptors).
RETURN(INTVAL -1);
}


/*

=item C<METHOD close()>

Close the handle.

=cut

*/

METHOD close() {
const INTVAL status = Parrot_io_close(INTERP, SELF);
RETURN(INTVAL status);
}

}

/*
Expand Down

0 comments on commit e844c4c

Please sign in to comment.