[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib DotGNU.SSL/GNUTLS.cs System/Diagnostics...
From: |
Radek Polak |
Subject: |
[dotgnu-pnet-commits] pnetlib DotGNU.SSL/GNUTLS.cs System/Diagnostics... |
Date: |
Fri, 27 Feb 2009 13:02:12 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnetlib
Changes by: Radek Polak <radekp> 09/02/27 13:02:12
Modified files:
DotGNU.SSL : GNUTLS.cs
System/Diagnostics: Process.cs
System.Xml/XPath/Private: XPathNodes.tc XPathParser.cs
XPathParser.jay
runtime/System : AppDomain.cs AppDomainSetup.cs
runtime/System/Private/NumberFormat: Formatter.cs
runtime/System/Security/Cryptography/X509Certificates:
X509Certificate.cs
Log message:
various mainly compiler fixes
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/DotGNU.SSL/GNUTLS.cs?cvsroot=dotgnu-pnet&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Diagnostics/Process.cs?cvsroot=dotgnu-pnet&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Xml/XPath/Private/XPathNodes.tc?cvsroot=dotgnu-pnet&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Xml/XPath/Private/XPathParser.cs?cvsroot=dotgnu-pnet&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Xml/XPath/Private/XPathParser.jay?cvsroot=dotgnu-pnet&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/AppDomain.cs?cvsroot=dotgnu-pnet&r1=1.31&r2=1.32
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/AppDomainSetup.cs?cvsroot=dotgnu-pnet&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Private/NumberFormat/Formatter.cs?cvsroot=dotgnu-pnet&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs?cvsroot=dotgnu-pnet&r1=1.6&r2=1.7
Patches:
Index: DotGNU.SSL/GNUTLS.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/DotGNU.SSL/GNUTLS.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- DotGNU.SSL/GNUTLS.cs 13 May 2006 06:46:08 -0000 1.6
+++ DotGNU.SSL/GNUTLS.cs 27 Feb 2009 13:02:10 -0000 1.7
@@ -681,11 +681,10 @@
ref gnutls_datum key, Int type);
[StructLayout(LayoutKind.Sequential)]
- private struct gnutls_datum : IDisposable
+ private struct gnutls_datum
{
public IntPtr data;
public UInt size;
- private bool isDisposed;
// Constructor.
public gnutls_datum(byte[] value)
@@ -695,34 +694,16 @@
size = (UInt)(value.Length);
}
- // Finalizer.
- // structs do not normally have finalizers, however
- // this one has unmanaged resources that needs to be freed
- ~gnutls_datum()
- {
- if(isDisposed == false)
- {
- Free();
- }
- }
-
- // IDisposable interface because we have unmanaged resources
- public void Dispose()
- {
- if(isDisposed == false)
- {
- Free();
- }
- isDisposed = true;
- }
-
// Free the data in this object.
public void Free()
{
+ if(data != IntPtr.Zero)
+ {
Marshal.FreeHGlobal(data);
data = IntPtr.Zero;
size = (UInt)0;
}
+ }
}; // struct gnutls_datum
Index: System/Diagnostics/Process.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System/Diagnostics/Process.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- System/Diagnostics/Process.cs 19 Feb 2006 15:01:46 -0000 1.14
+++ System/Diagnostics/Process.cs 27 Feb 2009 13:02:11 -0000 1.15
@@ -1146,12 +1146,12 @@
// Get the last-occurring system error code for the current thread.
[MethodImpl(MethodImplOptions.InternalCall)]
- extern public static Errno GetErrno();
+ extern private static Errno GetErrno();
// Get a descriptive message for an error from the underlying platform.
// Returns null if the platform doesn't have an appropriate message.
[MethodImpl(MethodImplOptions.InternalCall)]
- extern public static String GetErrnoMessage(Errno errno);
+ extern private static String GetErrnoMessage(Errno errno);
}; // class Process
Index: System.Xml/XPath/Private/XPathNodes.tc
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Xml/XPath/Private/XPathNodes.tc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- System.Xml/XPath/Private/XPathNodes.tc 22 Feb 2005 11:21:22 -0000
1.7
+++ System.Xml/XPath/Private/XPathNodes.tc 27 Feb 2009 13:02:11 -0000
1.8
@@ -221,5 +221,5 @@
%include "XPathEvaluate.tc"
%end %{
-#endif /* CONFIG_XPATH */
+#endif // CONFIG_XPATH
%}
Index: System.Xml/XPath/Private/XPathParser.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/System.Xml/XPath/Private/XPathParser.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- System.Xml/XPath/Private/XPathParser.cs 22 Feb 2005 11:21:22 -0000
1.10
+++ System.Xml/XPath/Private/XPathParser.cs 27 Feb 2009 13:02:11 -0000
1.11
@@ -1238,4 +1238,4 @@
}
} // close outermost namespace, that MUST HAVE BEEN opened in the prolog
-#endif /* CONFIG_XPATH */
+#endif // CONFIG_XPATH
Index: System.Xml/XPath/Private/XPathParser.jay
===================================================================
RCS file:
/sources/dotgnu-pnet/pnetlib/System.Xml/XPath/Private/XPathParser.jay,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- System.Xml/XPath/Private/XPathParser.jay 22 Feb 2005 11:21:22 -0000
1.8
+++ System.Xml/XPath/Private/XPathParser.jay 27 Feb 2009 13:02:11 -0000
1.9
@@ -649,4 +649,4 @@
%%
}
-#endif /* CONFIG_XPATH */
+#endif // CONFIG_XPATH
Index: runtime/System/AppDomain.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/runtime/System/AppDomain.cs,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- runtime/System/AppDomain.cs 12 Aug 2008 18:21:22 -0000 1.31
+++ runtime/System/AppDomain.cs 27 Feb 2009 13:02:11 -0000 1.32
@@ -182,7 +182,7 @@
// Create a new application domain with a specified name.
public static AppDomain CreateDomain(String friendlyName)
{
- Object appDomain;
+ Object appDomain = null;
CreateAppDomain(ref appDomain);
return new AppDomain(friendlyName, appDomain);
@@ -191,7 +191,7 @@
public static AppDomain CreateDomain(String friendlyName,
Evidence securityInfo)
{
- Object appDomain;
+ Object appDomain = null;
CreateAppDomain(ref appDomain);
return new AppDomain(friendlyName, securityInfo,
@@ -202,7 +202,7 @@
Evidence securityInfo,
AppDomainSetup info)
{
- Object appDomain;
+ Object appDomain = null;
CreateAppDomain(ref appDomain);
return new AppDomain(friendlyName,
securityInfo, info, appDomain);
@@ -213,7 +213,7 @@
String appRelativeSearchPath,
bool shadowCopyFiles)
{
- Object appDomain;
+ Object appDomain = null;
CreateAppDomain(ref appDomain);
SetBaseDirectoryInternal(appDomain,
appBasePath);
Index: runtime/System/AppDomainSetup.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/runtime/System/AppDomainSetup.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- runtime/System/AppDomainSetup.cs 12 Aug 2008 18:21:22 -0000 1.6
+++ runtime/System/AppDomainSetup.cs 27 Feb 2009 13:02:11 -0000 1.7
@@ -162,7 +162,7 @@
}
else
{
- String[] paths;
+ String[] paths = null;
GetPrivateBinPaths(appDomain,
ref paths);
Index: runtime/System/Private/NumberFormat/Formatter.cs
===================================================================
RCS file:
/sources/dotgnu-pnet/pnetlib/runtime/System/Private/NumberFormat/Formatter.cs,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- runtime/System/Private/NumberFormat/Formatter.cs 25 May 2007 05:49:27
-0000 1.17
+++ runtime/System/Private/NumberFormat/Formatter.cs 27 Feb 2009 13:02:11
-0000 1.18
@@ -298,7 +298,7 @@
static protected string FormatAnyRound(Object o, int precision,
IFormatProvider provider)
{
- string ret;
+ string ret = null;
// Type validation
if (IsSignedInt(o) )
@@ -791,7 +791,7 @@
static public string FormatInt64( long value, string format,
IFormatProvider provider ) {
int precision;
if( UseStandardFormatter(format, out precision ) ) {
- NumberFormatInfo nfi = NumberFormatInfo.GetInstance(
provider );
+ NumberFormatInfo nfi =
System.Globalization.NumberFormatInfo.GetInstance( provider );
StringBuilder sb = new StringBuilder( FormatInt64(
value, nfi.NegativeSign ) );
if( precision > 0 ) {
sb.Append( nfi.NumberDecimalSeparator );
@@ -809,7 +809,7 @@
int precision;
if( UseStandardFormatter(format, out precision ) ) {
if( precision > 0 ) {
- NumberFormatInfo nfi =
NumberFormatInfo.GetInstance( provider );
+ NumberFormatInfo nfi =
System.Globalization.NumberFormatInfo.GetInstance( provider );
StringBuilder sb = new StringBuilder(
FormatUInt64( value ) );
sb.Append( nfi.NumberDecimalSeparator );
sb.Append( '0', precision );
@@ -859,7 +859,7 @@
static protected string FormatDouble( double value, int exponent, int
precision, bool FixedPoint, IFormatProvider provider ) {
- NumberFormatInfo nfi = NumberFormatInfo.GetInstance( provider );
+ NumberFormatInfo nfi =
System.Globalization.NumberFormatInfo.GetInstance( provider );
bool negativ = value < 0;
double work = negativ ? -value : value;
Index: runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs
===================================================================
RCS file:
/sources/dotgnu-pnet/pnetlib/runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs
1 Feb 2009 10:16:41 -0000 1.6
+++ runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs
27 Feb 2009 13:02:11 -0000 1.7
@@ -28,7 +28,7 @@
using System.IO;
using System.Text;
using System.Security.Cryptography;
-#if CONFIG_FRAMEWORK_2_0 && CONFIG_SERIALIZATION
+#if CONFIG_SERIALIZATION
using System.Runtime.Serialization;
#endif
@@ -379,13 +379,6 @@
}
#if CONFIG_FRAMEWORK_2_0
-#if CONFIG_SERIALIZATION
- [TODO]
- void ISerializable.GetObjectData(SerializationInfo info,
StreamingContext context)
- {
- throw new
NotImplementedException("GetObjectData");
- }
-#endif // CONFIG_SERIALIZATION
[TODO]
public IntPtr Handle
{
@@ -414,19 +407,25 @@
{
throw new NotImplementedException("Import");
}
+ [TODO]
+ public virtual void Reset()
+ {
+ throw new NotImplementedException("Reset");
+ }
+#endif
#if CONFIG_SERIALIZATION
[TODO]
void IDeserializationCallback.OnDeserialization(Object sender)
{
throw new
NotImplementedException("OnDeserialization");
}
-#endif // CONFIG_SERIALIZATION
[TODO]
- public virtual void Reset()
+ void ISerializable.GetObjectData(SerializationInfo info,
StreamingContext context)
{
- throw new NotImplementedException("Reset");
+ throw new
NotImplementedException("GetObjectData");
}
-#endif
+#endif // CONFIG_SERIALIZATION
+
// Get the string represenation of this certificate.
public override String ToString()
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib DotGNU.SSL/GNUTLS.cs System/Diagnostics...,
Radek Polak <=