[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.125,2.126

M.-A. Lemburg lemburg@users.sourceforge.net
Wed, 06 Feb 2002 10:18:05 -0800


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

Modified Files:
	unicodeobject.c 
Log Message:
Whitespace fixes.



Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.125
retrieving revision 2.126
diff -C2 -d -r2.125 -r2.126
*** unicodeobject.c	2002/02/06 18:09:02	2.125
--- unicodeobject.c	2002/02/06 18:18:03	2.126
***************
*** 1204,1210 ****
  		cbAllocated += 4 * 10;
  		if (_PyString_Resize(&v, cbAllocated + 4))
! 				goto onError;
  		p = PyString_AS_STRING(v) + cbWritten;
!                         }
  
  	    if (ch < 0x10000) {
--- 1204,1210 ----
  		cbAllocated += 4 * 10;
  		if (_PyString_Resize(&v, cbAllocated + 4))
! 		    goto onError;
  		p = PyString_AS_STRING(v) + cbWritten;
! 	    }
  
  	    if (ch < 0x10000) {
***************
*** 1226,1241 ****
                  }
                  *p++ = (char)(0xe0 | (ch >> 12));
!             *p++ = (char)(0x80 | ((ch >> 6) & 0x3f));
!             *p++ = (char)(0x80 | (ch & 0x3f));
  		cbWritten += 3;
      
!         } else {
!             *p++ = 0xf0 | (ch>>18);
!             *p++ = 0x80 | ((ch>>12) & 0x3f);
!             *p++ = 0x80 | ((ch>>6) & 0x3f);
!             *p++ = 0x80 | (ch & 0x3f);
!             cbWritten += 4;
  	}
-     }
      }
      *p = '\0';
--- 1226,1241 ----
                  }
                  *p++ = (char)(0xe0 | (ch >> 12));
! 		*p++ = (char)(0x80 | ((ch >> 6) & 0x3f));
! 		*p++ = (char)(0x80 | (ch & 0x3f));
  		cbWritten += 3;
      
! 	    } else {
! 		*p++ = 0xf0 | (ch>>18);
! 		*p++ = 0x80 | ((ch>>12) & 0x3f);
! 		*p++ = 0x80 | ((ch>>6) & 0x3f);
! 		*p++ = 0x80 | (ch & 0x3f);
! 		cbWritten += 4;
! 	    }
  	}
      }
      *p = '\0';