[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private DateTimeForma
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private DateTimeFormatter.cs,1.4,1.5 NumberParser.cs,1.5,1.6 |
Date: |
Fri, 10 Jan 2003 18:33:33 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private
In directory subversions:/tmp/cvs-serv5856/runtime/System/Private
Modified Files:
DateTimeFormatter.cs NumberParser.cs
Log Message:
Fix errors and warnings discovered by csc.
Index: DateTimeFormatter.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/DateTimeFormatter.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** DateTimeFormatter.cs 3 Dec 2002 00:19:39 -0000 1.4
--- DateTimeFormatter.cs 10 Jan 2003 23:33:31 -0000 1.5
***************
*** 59,63 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 59,62 ----
***************
*** 90,94 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 89,92 ----
***************
*** 206,210 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 204,207 ----
***************
*** 229,233 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 226,229 ----
***************
*** 252,256 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 248,251 ----
***************
*** 276,280 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 271,274 ----
***************
*** 301,305 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 295,298 ----
***************
*** 335,339 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 328,331 ----
***************
*** 355,359 ****
}
}
- throw new FormatException("Invalid format string");
}
}
--- 347,350 ----
***************
*** 459,463 ****
}
}
- return format;
}
public static String Format(DateTime date,
--- 450,453 ----
Index: NumberParser.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/NumberParser.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** NumberParser.cs 4 Jan 2003 12:54:35 -0000 1.5
--- NumberParser.cs 10 Jan 2003 23:33:31 -0000 1.6
***************
*** 725,729 ****
NumberStyles style,
NumberFormatInfo nfi)
{
! bool leadingsign, trailingsign;
if (sb.ToString().StartsWith(nfi.PositiveSign) ||
--- 725,729 ----
NumberStyles style,
NumberFormatInfo nfi)
{
! bool leadingsign = false, trailingsign = false;
if (sb.ToString().StartsWith(nfi.PositiveSign) ||
***************
*** 1127,1131 ****
{
uint exponent;
! bool negExponent;
sb.Remove(0, 1);
if (sb.ToString().StartsWith(nfi.PositiveSign))
--- 1127,1131 ----
{
uint exponent;
! bool negExponent = false;
sb.Remove(0, 1);
if (sb.ToString().StartsWith(nfi.PositiveSign))
***************
*** 1135,1138 ****
--- 1135,1139 ----
else if (sb.ToString().StartsWith(nfi.NegativeSign))
{
+ negExponent = true;
sb.Remove(0, nfi.NegativeSign.Length);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private DateTimeFormatter.cs,1.4,1.5 NumberParser.cs,1.5,1.6,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: treecc gen_php.c,NONE,1.1 ChangeLog,1.66,1.67 Makefile.am,1.4,1.5 gen.c,1.3,1.4 gen.h,1.3,1.4 info.h,1.7,1.8 options.c,1.5,1.6
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel Component.cs,1.2,1.3 Container.cs,1.2,1.3
- Previous by thread:
[Dotgnu-pnet-commits] CVS: treecc gen_php.c,NONE,1.1 ChangeLog,1.66,1.67 Makefile.am,1.4,1.5 gen.c,1.3,1.4 gen.h,1.3,1.4 info.h,1.7,1.8 options.c,1.5,1.6
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel Component.cs,1.2,1.3 Container.cs,1.2,1.3
- Index(es):