-%
-% (c) The GRASP/AQUA Project, Glasgow University, 1994
-%
-\subsection[readFile.lc]{hGetContents Runtime Support}
+/*
+ * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
+ *
+ * $Id: readFile.c,v 1.1 1998/04/10 10:54:43 simonm Exp $
+ *
+ * hGetContents Runtime Support
+ */
-\begin{code}
-
-#include "rtsdefs.h"
+#include "Rts.h"
#include "stgio.h"
#define EOT 4
StgInt
-readBlock(buf, fp, size)
-StgAddr buf;
-StgForeignObj fp;
-StgInt size;
+readBlock(StgAddr buf, StgAddr fp, StgInt size)
{
int count;
}
StgInt
-readLine(buf, fp, size)
-StgAddr buf;
-StgForeignObj fp;
-StgInt size;
+readLine(StgAddr buf, StgAddr fp, StgInt size)
{
if (feof((FILE *) fp)) {
ghc_errtype = ERR_EOF;
}
StgInt
-readChar(fp)
-StgForeignObj fp;
+readChar(StgAddr fp)
{
int c;
else
return c;
}
-
-\end{code}