[Python-checkins] CVS: python/dist/src/Python marshal.c,1.67,1.68

Guido van Rossum gvanrossum@users.sourceforge.net
2001年10月18日 18:46:23 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv6806
Modified Files:
	marshal.c 
Log Message:
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]
Index: marshal.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/marshal.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** marshal.c	2001年08月30日 14:50:20	1.67
--- marshal.c	2001年10月19日 01:46:21	1.68
***************
*** 636,639 ****
--- 636,647 ----
 }
 
+ int
+ PyMarshal_ReadShortFromFile(FILE *fp)
+ {
+ 	RFILE rf;
+ 	rf.fp = fp;
+ 	return r_short(&rf);
+ }
+ 
 long
 PyMarshal_ReadLongFromFile(FILE *fp)

AltStyle によって変換されたページ (->オリジナル) /