[Python-checkins] CVS: python/dist/src/Modules cPickle.c,2.58,2.59

Tim Peters tim_one@users.sourceforge.net
Mon, 09 Apr 2001 21:35:30 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv30336/python/dist/src/Modules

Modified Files:
	cPickle.c 
Log Message:
Ack -- this module mixes tabs and spaces, and what appears to be a mix
of 2-space and 4-space indents.  Whatever, when I saw the checkin diff it
was clear that what my editor thinks a tab means didn't match this module's
belief.  Removed all the tabs from the lines I added and changed, left
everything else alone.


Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.58
retrieving revision 2.59
diff -C2 -r2.58 -r2.59
*** cPickle.c	2001/04/10 04:22:00	2.58
--- cPickle.c	2001/04/10 04:35:28	2.59
***************
*** 74,85 ****
  
  Integer types
! BININT1		8-bit unsigned integer; followed by 1 byte.
  BININT2         16-bit unsigned integer; followed by 2 bytes, little-endian.
! BININT		32-bit signed integer; followed by 4 bytes, little-endian.
! INT		Integer; natural decimal string conversion, then newline.
                  CAUTION:  INT-reading code can't assume that what follows
                  fits in a Python int, because the size of Python ints varies
                  across platforms.
! LONG		Long (unbounded) integer; repr(i), then newline.
  -------------------------------------------------------------------------- */
  
--- 74,85 ----
  
  Integer types
! BININT1         8-bit unsigned integer; followed by 1 byte.
  BININT2         16-bit unsigned integer; followed by 2 bytes, little-endian.
! BININT          32-bit signed integer; followed by 4 bytes, little-endian.
! INT             Integer; natural decimal string conversion, then newline.
                  CAUTION:  INT-reading code can't assume that what follows
                  fits in a Python int, because the size of Python ints varies
                  across platforms.
! LONG            Long (unbounded) integer; repr(i), then newline.
  -------------------------------------------------------------------------- */
  
***************
*** 932,936 ****
      }
      else {
!     	/* Binary pickle and l fits in a signed 4-byte int. */
          c_str[1] = (int)( l        & 0xff);
          c_str[2] = (int)((l >> 8)  & 0xff);
--- 932,936 ----
      }
      else {
!         /* Binary pickle and l fits in a signed 4-byte int. */
          c_str[1] = (int)( l        & 0xff);
          c_str[2] = (int)((l >> 8)  & 0xff);