[Python-checkins] CVS: python/dist/src/Objects unicodectype.c,2.10,2.11

Fredrik Lundh effbot@users.sourceforge.net
Wed, 27 Jun 2001 15:08:29 -0700


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

Modified Files:
	unicodectype.c 
Log Message:


removed "register const" from scalar arguments to the unicode
predicates


Index: unicodectype.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodectype.c,v
retrieving revision 2.10
retrieving revision 2.11
diff -C2 -r2.10 -r2.11
*** unicodectype.c	2001/06/27 18:59:43	2.10
--- unicodectype.c	2001/06/27 22:08:26	2.11
***************
*** 50,54 ****
     'B', 0 otherwise. */
  
! int _PyUnicode_IsLinebreak(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 50,54 ----
     'B', 0 otherwise. */
  
! int _PyUnicode_IsLinebreak(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 80,84 ****
     otherwise. */
  
! int _PyUnicode_IsTitlecase(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 80,84 ----
     otherwise. */
  
! int _PyUnicode_IsTitlecase(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 90,94 ****
     this property, -1 otherwise. */
  
! int _PyUnicode_ToDecimalDigit(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 90,94 ----
     this property, -1 otherwise. */
  
! int _PyUnicode_ToDecimalDigit(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 97,101 ****
  }
  
! int _PyUnicode_IsDecimalDigit(register const Py_UNICODE ch)
  {
      if (_PyUnicode_ToDecimalDigit(ch) < 0)
--- 97,101 ----
  }
  
! int _PyUnicode_IsDecimalDigit(Py_UNICODE ch)
  {
      if (_PyUnicode_ToDecimalDigit(ch) < 0)
***************
*** 107,111 ****
     this property, -1 otherwise. */
  
! int _PyUnicode_ToDigit(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 107,111 ----
     this property, -1 otherwise. */
  
! int _PyUnicode_ToDigit(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 114,118 ****
  }
  
! int _PyUnicode_IsDigit(register const Py_UNICODE ch)
  {
      if (_PyUnicode_ToDigit(ch) < 0)
--- 114,118 ----
  }
  
! int _PyUnicode_IsDigit(Py_UNICODE ch)
  {
      if (_PyUnicode_ToDigit(ch) < 0)
***************
*** 126,130 ****
  /* TODO: replace with unicodetype_db.h table */
  
! double _PyUnicode_ToNumeric(register const Py_UNICODE ch)
  {
      switch (ch) {
--- 126,130 ----
  /* TODO: replace with unicodetype_db.h table */
  
! double _PyUnicode_ToNumeric(Py_UNICODE ch)
  {
      switch (ch) {
***************
*** 314,318 ****
  }
  
! int _PyUnicode_IsNumeric(register const Py_UNICODE ch)
  {
      if (_PyUnicode_ToNumeric(ch) < 0.0)
--- 314,318 ----
  }
  
! int _PyUnicode_IsNumeric(Py_UNICODE ch)
  {
      if (_PyUnicode_ToNumeric(ch) < 0.0)
***************
*** 326,330 ****
     'WS', 'B' or 'S' or the category 'Zs', 0 otherwise. */
  
! int _PyUnicode_IsWhitespace(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 326,330 ----
     'WS', 'B' or 'S' or the category 'Zs', 0 otherwise. */
  
! int _PyUnicode_IsWhitespace(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 336,340 ****
     otherwise. */
  
! int _PyUnicode_IsLowercase(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 336,340 ----
     otherwise. */
  
! int _PyUnicode_IsLowercase(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 346,350 ****
     otherwise. */
  
! int _PyUnicode_IsUppercase(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 346,350 ----
     otherwise. */
  
! int _PyUnicode_IsUppercase(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 356,360 ****
     ch if no uppercase mapping is known. */
  
! Py_UNICODE _PyUnicode_ToUppercase(register Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 356,360 ----
     ch if no uppercase mapping is known. */
  
! Py_UNICODE _PyUnicode_ToUppercase(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 372,376 ****
     ch if no lowercase mapping is known. */
  
! Py_UNICODE _PyUnicode_ToLowercase(register Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 372,376 ----
     ch if no lowercase mapping is known. */
  
! Py_UNICODE _PyUnicode_ToLowercase(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 388,392 ****
     'Lo' or 'Lm',  0 otherwise. */
  
! int _PyUnicode_IsAlpha(register const Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
--- 388,392 ----
     'Lo' or 'Lm',  0 otherwise. */
  
! int _PyUnicode_IsAlpha(Py_UNICODE ch)
  {
      const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
***************
*** 400,429 ****
     reasons:  */
  
! int _PyUnicode_IsWhitespace(register const Py_UNICODE ch)
  {
      return iswspace(ch);
  }
  
! int _PyUnicode_IsLowercase(register const Py_UNICODE ch)
  {
      return iswlower(ch);
  }
  
! int _PyUnicode_IsUppercase(register const Py_UNICODE ch)
  {
      return iswupper(ch);
  }
  
! Py_UNICODE _PyUnicode_ToLowercase(register const Py_UNICODE ch)
  {
      return towlower(ch);
  }
  
! Py_UNICODE _PyUnicode_ToUppercase(register const Py_UNICODE ch)
  {
      return towupper(ch);
  }
  
! int _PyUnicode_IsAlpha(register const Py_UNICODE ch)
  {
      return iswalpha(ch);
--- 400,429 ----
     reasons:  */
  
! int _PyUnicode_IsWhitespace(Py_UNICODE ch)
  {
      return iswspace(ch);
  }
  
! int _PyUnicode_IsLowercase(Py_UNICODE ch)
  {
      return iswlower(ch);
  }
  
! int _PyUnicode_IsUppercase(Py_UNICODE ch)
  {
      return iswupper(ch);
  }
  
! Py_UNICODE _PyUnicode_ToLowercase(Py_UNICODE ch)
  {
      return towlower(ch);
  }
  
! Py_UNICODE _PyUnicode_ToUppercase(Py_UNICODE ch)
  {
      return towupper(ch);
  }
  
! int _PyUnicode_IsAlpha(Py_UNICODE ch)
  {
      return iswalpha(ch);