[Python-checkins] python/dist/src/Modules zipimport.c,1.5,1.6

jvr@users.sourceforge.net jvr@users.sourceforge.net
2002年12月31日 07:47:45 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv22074/Modules
Modified Files:
	zipimport.c 
Log Message:
removed unused get_short() function
Index: zipimport.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zipimport.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** zipimport.c	31 Dec 2002 09:51:59 -0000	1.5
--- zipimport.c	31 Dec 2002 15:47:42 -0000	1.6
***************
*** 603,620 ****
 /* implementation */
 
- /* Given a buffer, return the short that is represented by the first
- 2 bytes, encoded as little endian. This partially reimplements
- marshal.c:r_short(). */
- static int
- get_short(unsigned char *buf)
- {
- 	short x;
- 	x = buf[0];
- 	x |= buf[1] << 8;
- 	/* Sign-extension, in case short greater than 16 bits */
- 	x |= -(x & 0x8000);
- 	return x;
- }
- 
 /* Given a buffer, return the long that is represented by the first
 4 bytes, encoded as little endian. This partially reimplements
--- 603,606 ----

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