[Mono-devel-list] patch for pinvoke1.cs

Urs Muff umuff at QUARK.com
Fri Apr 30 09:36:31 EDT 2004


Index: mono/tests/pinvoke.cs

===================================================================

RCS file: /mono/mono/mono/tests/pinvoke.cs,v

retrieving revision 1.8

diff -u -r1.8 pinvoke.cs

--- mono/tests/pinvoke.cs       2 Feb 2004 14:00:09 -0000       1.8

+++ mono/tests/pinvoke.cs       30 Apr 2004 14:52:16 -0000

@@ -3,7 +3,7 @@

 

 public class Test {

 

-       [DllImport("cygwin1.dll", EntryPoint="puts", CharSet=CharSet.Ansi)]

+       [DllImport("libtest", EntryPoint="puts", CharSet=CharSet.Ansi)]

        public static extern int puts (string name);

 

        [DllImport ("libtest", EntryPoint="mono_test_many_int_arguments")]

@@ -35,7 +35,7 @@

                        return 1;

                if (Math.Acos (1) != 0)

                        return 2;

-               if (mono_test_many_int_arguments (1, 1, 1, 1, 1, 1, 1, 1, 1,
1) != 10)

+               if (mono_test_many_int_arguments (1, 2, 3, 4, 5, 6, 7, 8, 9,
10) != 55)

                        return 3;

                if (mono_test_many_short_arguments (1, 2, 3, 4, 5, 6, 7, 8,
9, 10) != 55)

                        return 4;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040430/275d89b3/attachment.html 


More information about the Mono-devel-list mailing list