[svn:parrot] r39669 - branches/io_cleanups/src/pmc
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Fri Jun 19 01:01:06 UTC 2009
Author: whiteknight
Date: Fri Jun 19 01:01:06 2009
New Revision: 39669
URL: https://trac.parrot.org/parrot/changeset/39669
Log:
[io_rewiring] remove unused process_id ATTR from FileHandle. It's not needed since FileHandle isn't Pipe anymore
Modified:
branches/io_cleanups/src/pmc/filehandle.pmc
Modified: branches/io_cleanups/src/pmc/filehandle.pmc
==============================================================================
--- branches/io_cleanups/src/pmc/filehandle.pmc Fri Jun 19 00:56:39 2009 (r39668)
+++ branches/io_cleanups/src/pmc/filehandle.pmc Fri Jun 19 01:01:06 2009 (r39669)
@@ -36,7 +36,6 @@
ATTR STRING *filename; /* The opened path and filename */
ATTR STRING *mode; /* The mode string used in open */
ATTR STRING *encoding; /* The encoding for read/write */
- ATTR INTVAL process_id; /* The child pid */
ATTR PIOOFF_T file_pos; /* Current real file pointer */
ATTR PIOOFF_T last_pos; /* Last file position */
ATTR size_t buffer_size; /* Buffer size */
@@ -149,50 +148,6 @@
/*
-=item C<INTVAL get_integer_keyed_int(INTVAL key)>
-
-Shortcut to get the value of some attributes.
-For internal usage only, subject to change without notice.
-
-=cut
-
-*/
-
- VTABLE INTVAL get_integer_keyed_int(INTVAL key) {
- INTVAL result;
- switch (key) {
- case 0:
- GET_ATTR_process_id(INTERP, SELF, result);
- break;
- default:
- result = 0;
- }
- return result;
- }
-
-/*
-
-=item C<void set_integer_keyed_int(INTVAL key, INTVAL value)>
-
-Shortcut to set the value of some attributes
-For internal usage only, subject to change without notice.
-
-=cut
-
-*/
-
- VTABLE void set_integer_keyed_int(INTVAL key, INTVAL value) {
- switch (key) {
- case 0:
- SET_ATTR_process_id(INTERP, SELF, value);
- break;
- default:
- break;
- }
- }
-
-/*
-
=item C<INTVAL get_bool()>
Returns whether the FileHandle has reached the end of the file.
More information about the parrot-commits
mailing list