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

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

[dotgnu-pnet-commits] pnetlib ChangeLog runtime/System/Runtime/Compil...


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog runtime/System/Runtime/Compil...
Date: Sun, 15 Feb 2009 20:06:01 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnetlib
Changes by:     Klaus Treichel <ktreichel>      09/02/15 20:06:00

Modified files:
        .              : ChangeLog 
        runtime/System/Runtime/CompilerServices: MethodImplOptions.cs 
Added files:
        runtime/System/Runtime/CompilerServices: 
                                                 NativeCppClassAttribute.cs 
                                                 SpecialNameAttribute.cs 
                                                 TypeForwardedToAttribute.cs 
                                                 SuppressIldasmAttribute.cs 

Log message:
        Add more 2.0 stuff.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2559&r2=1.2560
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/CompilerServices/MethodImplOptions.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/CompilerServices/NativeCppClassAttribute.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/CompilerServices/SpecialNameAttribute.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/CompilerServices/TypeForwardedToAttribute.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Runtime/CompilerServices/SuppressIldasmAttribute.cs?cvsroot=dotgnu-pnet&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2559
retrieving revision 1.2560
diff -u -b -r1.2559 -r1.2560
--- ChangeLog   15 Feb 2009 16:09:06 -0000      1.2559
+++ ChangeLog   15 Feb 2009 20:05:59 -0000      1.2560
@@ -32,6 +32,16 @@
        * runtime/System/Single.cs (IsNaN): Replace the internal call for IsNaN
        with a check if a compare with itself yields false.
 
+       * runtime/System/Runtime/CompilerServices/MethodImplOptions.cs: Add
+       the missing NoOptimization member. Add the ComVisible(true) attribute
+       for non ECMA 2.0 builds.
+
+       * runtime/System/Runtime/CompilerServices/NativeCppClassAttribute.cs,
+       runtime/System/Runtime/CompilerServices/SpecialNameAttribute.cs,
+       runtime/System/Runtime/CompilerServices/TypeForwardedToAttribute.cs,
+       runtime/System/Runtime/CompilerServices/SuppressIldasmAttribute.cs:
+       Add some non ECMA 2.0 attributes.
+
        * System/GenericUriParserOptions.cs: Add non ECMA 2.0 enumeration.
 
        * tests/runtime/System/SuiteSystem.cs: Add the new tests to the suite.

Index: runtime/System/Runtime/CompilerServices/MethodImplOptions.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/CompilerServices/MethodImplOptions.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- runtime/System/Runtime/CompilerServices/MethodImplOptions.cs        23 Apr 
2003 05:39:49 -0000      1.2
+++ runtime/System/Runtime/CompilerServices/MethodImplOptions.cs        15 Feb 
2009 20:06:00 -0000      1.3
@@ -21,7 +21,11 @@
 
 namespace System.Runtime.CompilerServices
 {
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0
+using System.Runtime.InteropServices;
 
+[ComVisible(true)]
+#endif
 [Flags]
 public enum MethodImplOptions
 {
@@ -29,6 +33,7 @@
        NoInlining      = 0x0008,
        ForwardRef      = 0x0010,
        Synchronized    = 0x0020,
+       NoOptimization  = 0x0040,
        PreserveSig     = 0x0080,
        InternalCall    = 0x1000
 

Index: runtime/System/Runtime/CompilerServices/NativeCppClassAttribute.cs
===================================================================
RCS file: runtime/System/Runtime/CompilerServices/NativeCppClassAttribute.cs
diff -N runtime/System/Runtime/CompilerServices/NativeCppClassAttribute.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtime/System/Runtime/CompilerServices/NativeCppClassAttribute.cs  15 Feb 
2009 20:06:00 -0000      1.1
@@ -0,0 +1,43 @@
+/*
+ * NativeCppClassAttribute.cs - Implementation of the
+ *     "System.Runtime.CompilerServices.NativeCppClassAttribute" class.
+ *
+ * Copyright (C) 2009  Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+namespace System.Runtime.CompilerServices
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+using System.Runtime.InteropServices;
+
+[ComVisible(true)]
+[Serializable]
+[AttributeUsage(AttributeTargets.Struct,
+                               Inherited = true)]
+public sealed class NativeCppClassAttribute : Attribute
+{
+       // Constructors.
+       public NativeCppClassAttribute()
+       {
+       }
+
+}; // class NativeCppClassAttribute
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Runtime.CompilerServices

Index: runtime/System/Runtime/CompilerServices/SpecialNameAttribute.cs
===================================================================
RCS file: runtime/System/Runtime/CompilerServices/SpecialNameAttribute.cs
diff -N runtime/System/Runtime/CompilerServices/SpecialNameAttribute.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtime/System/Runtime/CompilerServices/SpecialNameAttribute.cs     15 Feb 
2009 20:06:00 -0000      1.1
@@ -0,0 +1,44 @@
+/*
+ * SpecialNameAttribute.cs - Implementation of the
+ *     "System.Runtime.CompilerServices.SpecialNameAttribute" class.
+ *
+ * Copyright (C) 2009  Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+namespace System.Runtime.CompilerServices
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+[AttributeUsage(AttributeTargets.Class |
+                               AttributeTargets.Struct |
+                               AttributeTargets.Method |
+                               AttributeTargets.Property |
+                               AttributeTargets.Field |
+                               AttributeTargets.Event)]
+public sealed class SpecialNameAttribute : Attribute
+{
+       // Constructors.
+       public SpecialNameAttribute()
+       {
+       }
+
+}; // class SpecialNameAttribute
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Runtime.CompilerServices

Index: runtime/System/Runtime/CompilerServices/TypeForwardedToAttribute.cs
===================================================================
RCS file: runtime/System/Runtime/CompilerServices/TypeForwardedToAttribute.cs
diff -N runtime/System/Runtime/CompilerServices/TypeForwardedToAttribute.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtime/System/Runtime/CompilerServices/TypeForwardedToAttribute.cs 15 Feb 
2009 20:06:00 -0000      1.1
@@ -0,0 +1,54 @@
+/*
+ * TypeForwardedToAttribute.cs - Implementation of the
+ *     "System.Runtime.CompilerServices.TypeForwardedToAttribute" class.
+ *
+ * Copyright (C) 2009  Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+namespace System.Runtime.CompilerServices
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+[AttributeUsage(AttributeTargets.Assembly,
+                               AllowMultiple = true,
+                               Inherited = false)]
+public sealed class TypeForwardedToAttribute : Attribute
+{
+       // internal state
+       private Type destination;
+
+       // Constructors.
+       public TypeForwardedToAttribute(Type destination)
+       {
+               this.destination = destination;
+       }
+
+       // Properties
+       public Type Destination
+       {
+               get
+               {
+                       return destination;
+               }
+       }
+
+}; // class TypeForwardedToAttribute
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Runtime.CompilerServices

Index: runtime/System/Runtime/CompilerServices/SuppressIldasmAttribute.cs
===================================================================
RCS file: runtime/System/Runtime/CompilerServices/SuppressIldasmAttribute.cs
diff -N runtime/System/Runtime/CompilerServices/SuppressIldasmAttribute.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtime/System/Runtime/CompilerServices/SuppressIldasmAttribute.cs  15 Feb 
2009 20:06:00 -0000      1.1
@@ -0,0 +1,40 @@
+/*
+ * SuppressIldasmAttribute.cs - Implementation of the
+ *     "System.Runtime.CompilerServices.SuppressIldasmAttribute" class.
+ *
+ * Copyright (C) 2009  Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+namespace System.Runtime.CompilerServices
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+[AttributeUsage(AttributeTargets.Assembly |
+                               AttributeTargets.Module)]
+public sealed class SuppressIldasmAttribute : Attribute
+{
+       // Constructors.
+       public SuppressIldasmAttribute()
+       {
+       }
+
+}; // class SuppressIldasmAttribute
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Runtime.CompilerServices




reply via email to

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