[Python-Dev] Where is PyMarshal_ReadShortFromFile() ? (original) (raw)

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 PyMarshalReadLongFromFile() and PyMarshalReadShortFromFile(), 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 PyMarshalReadShortFromFile(FILE *fp) { RFILE rf; rf.fp = fp; return rshort(&rf); }

+1

--Guido van Rossum (home page: http://www.python.org/~guido/)