[Patches] [ python-Patches-470393 ] Add missing marshal function
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 18 Oct 2001 18:46:50 -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: Closed
>Resolution: Accepted
Priority: 5
Submitted By: James C. Ahlstrom (ahlstromjc)
>Assigned to: Guido van Rossum (gvanrossum)
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)
{
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-18 18:46
Message:
Logged In: YES
user_id=6380
Thanks! Checked in.
(Wasn't there a documentation task related to this too?)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=470393&group_id=5470