dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ChangeLog System/Text/RegularExpression...


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog System/Text/RegularExpression...
Date: Sat, 14 Jul 2007 09:22:33 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnetlib
Changes by:     Klaus Treichel <ktreichel>      07/07/14 09:22:33

Modified files:
        .              : ChangeLog 
        System/Text/RegularExpressions: regex.cs 
        DotGNU.XmlRpc  : XmlRpcException.cs 

Log message:
        Fix build with the mscompact profile.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2510&r2=1.2511
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System/Text/RegularExpressions/regex.cs?cvsroot=dotgnu-pnet&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/pnetlib/DotGNU.XmlRpc/XmlRpcException.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2510
retrieving revision 1.2511
diff -u -b -r1.2510 -r1.2511
--- ChangeLog   12 Jul 2007 13:08:47 -0000      1.2510
+++ ChangeLog   14 Jul 2007 09:22:32 -0000      1.2511
@@ -1,3 +1,8 @@
+2007-07-14  Klaus Treichel  <address@hidden>
+
+       * System/Text/RegularExpressions/regex.cs,
+       DotGNU.XmlRpc/XmlRpcException.cs: Fix build with the mscompact profile.
+
 2007-07-12  Radek Polak  <address@hidden>
 
        * System.Drawing/StringFormat.cs: Remember and internally expose whether

Index: System/Text/RegularExpressions/regex.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Text/RegularExpressions/regex.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- System/Text/RegularExpressions/regex.cs     19 Aug 2005 23:36:38 -0000      
1.8
+++ System/Text/RegularExpressions/regex.cs     14 Jul 2007 09:22:33 -0000      
1.9
@@ -60,8 +60,16 @@
                CultureInvariant                = 0x200 
        }
        
+#if CONFIG_SERIALIZATION
        [Serializable]
-       public class Regex : ISerializable {
+#endif
+       public class Regex
+#if CONFIG_SERIALIZATION
+               : ISerializable
+#endif
+       {
+
+       #if CONFIG_REFLECTION_EMIT
                public static void CompileToAssembly
                        (RegexCompilationInfo[] regexes, AssemblyName aname)
                {
@@ -110,6 +118,7 @@
                        asmBuilder.Save(aname.Name);
                        */
                }
+       #endif  // CONFIG_REFLECTION_EMIT
                
                public static string Escape (string str) {
                        return Parser.Escape (str);
@@ -233,10 +242,12 @@
                        }
                }
 
+       #if CONFIG_SERIALIZATION
                private Regex (SerializationInfo info, StreamingContext 
context) :
                        this (info.GetString ("pattern"), 
                              (RegexOptions) info.GetValue ("options", typeof 
(RegexOptions))) {
                }
+       #endif  // CONFIG_SERIALIZATION
 
                // fixes public API signature
                ~Regex ()
@@ -493,11 +504,13 @@
                        return pattern;
                }
 
+       #if CONFIG_SERIALIZATION
                // ISerializable interface
                void ISerializable.GetObjectData (SerializationInfo info, 
StreamingContext context) {
                        info.AddValue ("pattern", this.ToString (), typeof 
(string));
                        info.AddValue ("options", this.Options, typeof 
(RegexOptions));
                }
+       #endif  // CONFIG_SERIALIZATION
 
                // internal
 
@@ -534,7 +547,9 @@
                protected internal RegexRunnerFactory factory;
        }
 
+#if CONFIG_SERIALIZATION
        [Serializable]
+#endif // CONFIG_SERIALIZATION
        public class RegexCompilationInfo {
                public RegexCompilationInfo (string pattern, RegexOptions 
options, string name, string nspace, bool isPublic)
                {

Index: DotGNU.XmlRpc/XmlRpcException.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/DotGNU.XmlRpc/XmlRpcException.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- DotGNU.XmlRpc/XmlRpcException.cs    14 May 2006 11:00:47 -0000      1.2
+++ DotGNU.XmlRpc/XmlRpcException.cs    14 Jul 2007 09:22:33 -0000      1.3
@@ -17,17 +17,21 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  *
- * $Revision: 1.2 $  $Date: 2006/05/14 11:00:47 $
+ * $Revision: 1.3 $  $Date: 2007/07/14 09:22:33 $
  * 
  * --------------------------------------------------------------------------
  */
 using System;
 using System.Xml;
+#if CONFIG_SERIALIZATION
 using System.Runtime.Serialization;
+#endif
 
 namespace DotGNU.XmlRpc
 {
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcException : Exception
   {
     private int faultCode;
@@ -52,10 +56,12 @@
       base.HResult = e.HResult;
     }
 
+  #if CONFIG_SERIALIZATION
     public XmlRpcException(SerializationInfo info, StreamingContext context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
 
     public int FaultCode 
     {
@@ -65,7 +71,9 @@
     }    
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcBadFormatException : XmlRpcException
   {
     public XmlRpcBadFormatException()
@@ -80,12 +88,16 @@
       : base( faultCode, message ) 
     { 
     }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcBadFormatException(SerializationInfo info, StreamingContext 
context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }  
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcInvalidStateException : XmlRpcException
   {
     public XmlRpcInvalidStateException()
@@ -96,101 +108,131 @@
       : base( 200, message ) 
     {
     }
+  #if CONFIG_SERIALIZATION
     public XmlRpcInvalidStateException(SerializationInfo info, 
StreamingContext context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcInvalidXmlRpcException : ApplicationException
   {
     public XmlRpcInvalidXmlRpcException() { }  
     public XmlRpcInvalidXmlRpcException( String text ) : base(text) { }  
     public XmlRpcInvalidXmlRpcException( String text, Exception iex ) 
             : base(text, iex) { }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcInvalidXmlRpcException(SerializationInfo info, 
StreamingContext context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcBadMethodException : ApplicationException
   {
     public XmlRpcBadMethodException() { }  
     public XmlRpcBadMethodException( String text ) : base(text) { }  
     public XmlRpcBadMethodException( String text, Exception iex ) 
             : base(text, iex) { }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcBadMethodException(SerializationInfo info, StreamingContext 
context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcBadValueException : ApplicationException
   {
     public XmlRpcBadValueException() { }  
     public XmlRpcBadValueException( String text ) : base(text) { }  
     public XmlRpcBadValueException( String text, Exception iex ) 
             : base(text, iex) { }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcBadValueException(SerializationInfo info, StreamingContext 
context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcNullReferenceException : ApplicationException
   {
     public XmlRpcNullReferenceException() { }  
     public XmlRpcNullReferenceException( String text ) : base(text) { }  
     public XmlRpcNullReferenceException( String text, Exception iex ) 
             : base(text, iex) { }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcNullReferenceException(SerializationInfo info, 
StreamingContext context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcInvalidParametersException : ApplicationException
   {
     public XmlRpcInvalidParametersException() { }  
     public XmlRpcInvalidParametersException( String text ) : base(text) { }  
     public XmlRpcInvalidParametersException( String text, Exception iex ) 
             : base(text, iex) { }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcInvalidParametersException(SerializationInfo info, 
StreamingContext context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcTypeMismatchException : ApplicationException
   {
     public XmlRpcTypeMismatchException() { }  
     public XmlRpcTypeMismatchException( String text ) : base(text) { }  
     public XmlRpcTypeMismatchException( String text, Exception iex ) 
             : base(text, iex) { }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcTypeMismatchException(SerializationInfo info, 
StreamingContext context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
 
+#if CONFIG_SERIALIZATION
   [Serializable()]
+#endif // CONFIG_SERIALIZATION
   public class XmlRpcBadAssemblyException : ApplicationException
   {
     public XmlRpcBadAssemblyException() { }  
     public XmlRpcBadAssemblyException( String text ) : base(text) { }  
     public XmlRpcBadAssemblyException( String text, Exception iex ) 
             : base(text, iex) { }  
+  #if CONFIG_SERIALIZATION
     public XmlRpcBadAssemblyException(SerializationInfo info, StreamingContext 
context)
        : base( info, context )
     {
     }
+  #endif       // CONFIG_SERIALIZATION
   }
   
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]