develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33770 - trunk/src/pmc

From:
fperrad
Date:
December 10, 2008 08:45
Subject:
[svn:parrot] r33770 - trunk/src/pmc
Message ID:
20081210164456.94D39CBA89@x12.develooper.com
Author: fperrad
Date: Wed Dec 10 08:44:55 2008
New Revision: 33770

Modified:
   trunk/src/pmc/filehandle.pmc

Log:
[pdd22io] 
Add the method 'flush' (lost between ParrotIO and FileHandle)
The I/O library of Lua needs it.



Modified: trunk/src/pmc/filehandle.pmc
==============================================================================
--- trunk/src/pmc/filehandle.pmc	(original)
+++ trunk/src/pmc/filehandle.pmc	Wed Dec 10 08:44:55 2008
@@ -399,6 +399,20 @@
 
 /*
 
+=item C<METHOD flush()>
+
+Flushes the filehandle.
+
+=cut
+
+*/
+
+    METHOD flush() {
+        Parrot_io_flush(interp, SELF);
+    }
+
+/*
+
 =item C<METHOD print([INTVAL|FLOATVAL|STRING *|PMC*] value)>
 
 Print the passed in integer, number, string, or PMC to the filehandle.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About