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.

Reply via email to