[Python-Dev] Where is PyMarshal_ReadShortFromFile() ?
Guido van Rossum
guido@python.org
Thu, 11 Oct 2001 11:47:10 -0400
> I am looking at Python 2.2a3.
>
> In Include/, marshal.h declares both PyMarshal_ReadLongFromFile()
> and PyMarshal_ReadShortFromFile(), but the second seems to be
> missing from marshal.c. Or is it somewhere else?
>
> Here is the code; put in marshal.c just before ReadLongFromFile at line 638:
>
> int
> PyMarshal_ReadShortFromFile(FILE *fp)
> {
> RFILE rf;
> rf.fp = fp;
> return r_short(&rf);
> }
+1
--Guido van Rossum (home page: http://www.python.org/~guido/)