From b8cf3e64beefc65b462324efa09c85e85bdba7c2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 19 Oct 2001 01:46:21 +0000 Subject: [PATCH] SF patch #470393 (Jim Ahlstrom): Add missing marshal function In Include/, marshal.h declares both PyMarshal_ReadLongFromFile() and PyMarshal_ReadShortFromFile(), but the second is missing from marshal.c. [Shouldn't the return type be declared as 'short' instead of 'int'? But 'int' is what was in marshal.h all those years... --Guido] --- Python/marshal.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Python/marshal.c b/Python/marshal.c index 944ae35a0c1..806b91c71d4 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -635,6 +635,14 @@ r_object(RFILE *p) } } +int +PyMarshal_ReadShortFromFile(FILE *fp) +{ + RFILE rf; + rf.fp = fp; + return r_short(&rf); +} + long PyMarshal_ReadLongFromFile(FILE *fp) {