[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_scanner.l,1.6,1.7
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_scanner.l,1.6,1.7 |
Date: |
Thu, 30 Jan 2003 22:37:07 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv1221/cscc/csharp
Modified Files:
cs_scanner.l
Log Message:
Don't warn for decimal constants that start with 0 any more.
Index: cs_scanner.l
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_scanner.l,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** cs_scanner.l 31 Oct 2002 07:22:30 -0000 1.6
--- cs_scanner.l 31 Jan 2003 03:37:04 -0000 1.7
***************
*** 144,148 ****
}
}
! else if(*text == '0' && text[1] != '\0')
{
/* The C# standard does not support octal integer constants,
--- 144,149 ----
}
}
! else if(*text == '0' && text[1] != '\0' && text[1] != 'u' &&
! text[1] != 'U' && text[1] != 'l' && text[1] != 'L')
{
/* The C# standard does not support octal integer constants,
***************
*** 178,192 ****
else
{
! /* Parse as a decimal constant, but warn the user first
*/
! if(!CCStringListContains(extension_flags,
num_extension_flags,
!
"decimal-constants"))
! {
! CCTypedWarning("-octal-constants",
! "parsing decimal
constant, but it may be octal");
! CCTypedWarning("-octal-constants",
! "(use
-foctal-constants to parse as octal, or");
! CCTypedWarning("-octal-constants",
! "-fdecimal-constants to force the
use of decimal)");
! }
goto decimal;
}
--- 179,183 ----
else
{
! /* Parse as a decimal constant */
goto decimal;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_scanner.l,1.6,1.7,
Rhys Weatherley <address@hidden> <=