Author: spouliot
Date: 2008-01-02 14:57:30 -0500 (Wed, 02 Jan 2008)
New Revision: 92122

Added:
   
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp
Modified:
   trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/ChangeLog
   
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/GetLastErrorMustBeCalledRightAfterPInvokeRule.cs
Log:
2008-01-02  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * GetLastErrorMustBeCalledRightAfterPInvokeRule.cs: Change two 
        methods to static (self-test)
        * Gendarme.Rules.Interoperability.mdp: New. MonoDevelop project file.



Modified: trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/ChangeLog
===================================================================
--- trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/ChangeLog        
2008-01-02 19:55:57 UTC (rev 92121)
+++ trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/ChangeLog        
2008-01-02 19:57:30 UTC (rev 92122)
@@ -1,3 +1,9 @@
+2008-01-02  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * GetLastErrorMustBeCalledRightAfterPInvokeRule.cs: Change two 
+       methods to static (self-test)
+       * Gendarme.Rules.Interoperability.mdp: New. MonoDevelop project file.
+
 2007-12-30  Sebastien Pouliot  <[EMAIL PROTECTED]> 
 
        * GetLastErrorMustBeCalledRightAfterPInvokeRule.cs: New. Rule to 

Added: 
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp
===================================================================
--- 
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp
      2008-01-02 19:55:57 UTC (rev 92121)
+++ 
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp
      2008-01-02 19:57:30 UTC (rev 92122)
@@ -0,0 +1,26 @@
+<Project name="Gendarme.Rules.Interoperability" fileversion="2.0" 
language="C#" clr-version="Net_2_0" ctype="DotNetProject">
+  <Configurations active="Debug">
+    <Configuration name="Debug" ctype="DotNetProjectConfiguration">
+      <Output directory="bin/Debug" assembly="Gendarme.Rules.Interoperability" 
/>
+      <Build debugmode="True" target="Library" />
+      <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" 
clr-version="Net_2_0" />
+      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" 
unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" 
generatexmldocumentation="False" win32Icon="." ctype="CSharpCompilerParameters" 
/>
+    </Configuration>
+    <Configuration name="Release" ctype="DotNetProjectConfiguration">
+      <Output directory="bin/Release" 
assembly="Gendarme.Rules.Interoperability" />
+      <Build debugmode="False" target="Library" />
+      <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" 
clr-version="Net_2_0" />
+      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" 
unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" 
generatexmldocumentation="False" win32Icon="." ctype="CSharpCompilerParameters" 
/>
+    </Configuration>
+  </Configurations>
+  <Contents>
+    <File name="GetLastErrorMustBeCalledRightAfterPInvokeRule.cs" 
subtype="Code" buildaction="Compile" />
+    <File name="PInvokeShouldNotBeVisibleRule.cs" subtype="Code" 
buildaction="Compile" />
+    <File name="Gendarme.Rules.Interoperability.xml.in" subtype="Code" 
buildaction="Nothing" />
+  </Contents>
+  <References>
+    <ProjectReference type="Assembly" localcopy="True" 
refto="../../../lib/Mono.Cecil.dll" />
+    <ProjectReference type="Project" localcopy="True" refto="framework" />
+    <ProjectReference type="Gac" localcopy="True" refto="System, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+  </References>
+</Project>
\ No newline at end of file

Modified: 
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/GetLastErrorMustBeCalledRightAfterPInvokeRule.cs
===================================================================
--- 
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/GetLastErrorMustBeCalledRightAfterPInvokeRule.cs
 2008-01-02 19:55:57 UTC (rev 92121)
+++ 
trunk/cecil/gendarme/rules/Gendarme.Rules.Interoperability/GetLastErrorMustBeCalledRightAfterPInvokeRule.cs
 2008-01-02 19:57:30 UTC (rev 92122)
@@ -49,13 +49,13 @@
                        AllowedCalls.Add ("System.Boolean 
System.IntPtr::op_Equality(System.IntPtr,System.IntPtr)");
                }
 
-               private void EnsureExists (ref MessageCollection msg)
+               private static void EnsureExists (ref MessageCollection msg)
                {
                        if (msg == null)
                                msg = new MessageCollection ();
                }
 
-               private Instruction GetNextCall (Instruction ins)
+               private static Instruction GetNextCall (Instruction ins)
                {
                        while ((ins = ins.Next) != null) {
                                switch (ins.OpCode.Code) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to