[Patches] [ python-Patches-470393 ] Add missing marshal function

noreply@sourceforge.net noreply@sourceforge.net
Thu, 11 Oct 2001 14:34:37 -0700


Patches item #470393, was opened at 2001-10-11 14:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=470393&group_id=5470

Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: James C. Ahlstrom (ahlstromjc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add missing marshal function

Initial Comment:

In Include/, marshal.h declares both 
PyMarshal_ReadLongFromFile()
and PyMarshal_ReadShortFromFile(),
but the second is missing from marshal.c.

Here is the patch:

*** marshal.old Thu Oct 11 17:27:09 2001
--- marshal.c Thu Oct 11 17:27:24 2001
***************
*** 635,640 ****
--- 635,648 ----
        }
  }

+ int
+ PyMarshal_ReadShortFromFile(FILE *fp)
+ {
+       RFILE rf;
+       rf.fp = fp;
+       return r_short(&rf);
+ }
+
  long
  PyMarshal_ReadLongFromFile(FILE *fp)
  {

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=470393&group_id=5470