This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] deprecated labels at end of compound statements


This patch removes an undocumented c extension: labels at ends of
compound statements without the required null statement.

Regards,
     Gábor Lóki

2004-01-21 Gábor Lóki <loki@inf.u-szeged.hu>

	* libc/ctype/iswctype.c: adding required null statement after
	  labels at ends of compound statements
	* libc/ctype/wctype.c: same.



*** newlib-1.11.0/newlib/libc/ctype/iswctype.c.old	Fri Sep 20 22:13:10 2002
--- newlib-1.11.0/newlib/libc/ctype/iswctype.c	Wed Jan 21 10:41:28 2004
*************** _DEFUN(iswctype,(c, desc), wint_t c _AND
*** 61,67 ****
        return iswupper (c);
      case WC_XDIGIT:
        return iswxdigit (c);
!     default:
      }
  
    /* otherwise unknown */
--- 61,67 ----
        return iswupper (c);
      case WC_XDIGIT:
        return iswxdigit (c);
!     default:;
      }
  
    /* otherwise unknown */
*** newlib-1.11.0/newlib/libc/ctype/wctype.old	Fri Sep 20 22:13:10 2002
--- newlib-1.11.0/newlib/libc/ctype/wctype.c	Wed Jan 21 10:55:22 2004
*************** _DEFUN (_wctype_r, (r, c), 
*** 120,126 ****
        if (!strcmp (c, "xdigit"))
          return WC_XDIGIT;
        break;
!     default:
      }
  
    /* otherwise invalid */
--- 120,126 ----
        if (!strcmp (c, "xdigit"))
          return WC_XDIGIT;
        break;
!     default:;
      }
  
    /* otherwise invalid */




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]