mono.git
18 years ago2005-08-26 Iain McCoy <iain@mccoy.id.au>
Iain McCoy [Fri, 26 Aug 2005 12:11:30 +0000 (12:11 -0000)]
2005-08-26  Iain McCoy  <iain@mccoy.id.au>

       * System.Windows.Serialization/data-classes-builder.pl: tighten up
        access controls for members that don't exist in microsoft's impl
        (internal access only is appropriate for these members)
        * Test/XamlParser.cs: use reflection to access the newly tightened-up
        members

svn path=/trunk/mcs/; revision=48887

18 years ago2005-08-26 Iain McCoy <iain@mccoy.id.au>
Iain McCoy [Fri, 26 Aug 2005 11:33:02 +0000 (11:33 -0000)]
2005-08-26  Iain McCoy  <iain@mccoy.id.au>

        * xamlc.cs: use the newly-renamed ParserToCode class instead of the
        interim CodeWriter
        * Mono.Windows.Serialization/CodeWriter.cs,
        Mono.Windows.Serialization/ParserToCode.cs: renamed CodeWriter to
        ParserToCode in order to more closely parallel
        System.Windows.Serialization.Parser
        * Test/CodeWriter.cs: changed to test the new ParserToCode class

svn path=/trunk/mcs/; revision=48886

18 years ago2005-08-26 Iain McCoy <iain@mccoy.id.au>
Iain McCoy [Fri, 26 Aug 2005 11:15:34 +0000 (11:15 -0000)]
2005-08-26  Iain McCoy  <iain@mccoy.id.au>

        * demo/runtimetest.cs: use the newly-renamed Parser class instead of
        the interim ObjectWriter

2005-08-24  Iain McCoy  <iain@mccoy.id.au>

        * Mono.Windows.Serialization/ObjectWriter.cs,
        System.Windows.Serialization/Parser.cs: renamed ObjectWriter to
        Parser, made interface more similar
        * Test/ObjectWriter.cs: changed to test the new Parser class

2005-08-24  Iain McCoy  <iain@mccoy.id.au>

        * Mono.Windows.Serialization/XamlParser.cs: make internal
        * Mono.Windows.Serialization/CodeWriter.cs: add private member so that
        the tests can get at the type for XamlParser
        * Test/XamlParser.cs: use reflection to get the XamlParser type out of
        CodeWriter, create an instance of it and get nodes from it

svn path=/trunk/mcs/; revision=48885

18 years ago* compiler-tester.cs (NegativeChecker.GetCompilerError): Don't
Raja R Harinath [Fri, 26 Aug 2005 09:59:23 +0000 (09:59 -0000)]
* compiler-tester.cs (NegativeChecker.GetCompilerError): Don't
look for exactly two ':'s in the error message.
(NegativeChecker.HandleFailure): Print an informative message when
CompilerError.MissingLocation.

svn path=/trunk/mcs/; revision=48883

18 years agoFri Aug 26 11:09:28 BST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 26 Aug 2005 09:48:15 +0000 (09:48 -0000)]
Fri Aug 26 11:09:28 BST 2005 Paolo Molaro <lupus@ximian.com>

* inssel-arm.brg: apply changes tested by Brian Koropoff
<briank@marakicorp.com>.

svn path=/trunk/mono/; revision=48882

18 years agoIn System.Data/System.Data.SqlClient:
Sureshkumar T [Fri, 26 Aug 2005 09:31:43 +0000 (09:31 -0000)]
In System.Data/System.Data.SqlClient:
2005-08-26  Sureshkumar T  <tsureshkumar@novell.com>

* SqlConnection.cs (Open): enable sp_reset_connection.

In Mono.Data.Tds/Mono.Data.Tds.Protocol:
2005-08-26  Sureshkumar T  <tsureshkumar@novell.com>

* Tds70.cs (ExecProc): if no parameters, execute via RPC. parameter
support has to be added.

* Tds.cs (ExecRPC): added virtual method to execute via RPC.

This fixes bug #68978 by enabling execution of sp_reset_connection.

svn path=/trunk/mcs/; revision=48881

18 years agoOops
Wade Berrier [Fri, 26 Aug 2005 06:58:33 +0000 (06:58 -0000)]
Oops

svn path=/trunk/mono/; revision=48874

18 years agoInclude files for 'make dist'
Wade Berrier [Fri, 26 Aug 2005 06:48:41 +0000 (06:48 -0000)]
Include files for 'make dist'

svn path=/trunk/mono/; revision=48871

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 20:31:50 +0000 (20:31 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

* driver.cs : reverting default encoding change as well as mcs.

svn path=/trunk/mcs/; revision=48857

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 20:06:56 +0000 (20:06 -0000)]
2005-08-25  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSimpleTypeRestriction.cs : normalize EOL.
  Remove non-ASCII letters.

svn path=/trunk/mcs/; revision=48856

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 18:56:42 +0000 (18:56 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

* driver.cs : kinda reverting the default encoding changes (not exact
  revert since I noticed that "codepage:reset" might not work fine).

svn path=/trunk/mcs/; revision=48851

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 16:50:37 +0000 (16:50 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

* NumberFormatter.cs : eliminate non-ASCII character.

svn path=/trunk/mcs/; revision=48847

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 16:14:15 +0000 (16:14 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : /codepage:28591 (otherwise the build is broken on utf8
  environment).

svn path=/trunk/mcs/; revision=48846

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 16:07:47 +0000 (16:07 -0000)]
2005-08-25 Atsushi Enomoto <atsushi@ximian.com>

* Makefile: build fix for some utf8-defaulted environment.

svn path=/trunk/mcs/; revision=48845

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 15:28:45 +0000 (15:28 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

* class.cs : (AbstractPropertyEventMethod) SetupName() now takes
  Location. Now getter and setter store location correctly.
  (errors/cs0111-12.cs now reports the expected location.)

svn path=/trunk/mcs/; revision=48844

18 years ago* get.c (get_encoded_user_string_or_bytearray): Add len param.
Ankit Jain [Thu, 25 Aug 2005 15:12:40 +0000 (15:12 -0000)]
* get.c (get_encoded_user_string_or_bytearray): Add len param.
  (get_constant): Pass len param to get_encoded_user_string_or_bytearray.
* dis-cil.c (dissasemble_cil): Calculate len of the userstring and pass to
  get_encoded_user_string_or_bytearray.
* get.h (get_encoded_user_string_or_bytearray): Add len param.

svn path=/trunk/mono/; revision=48841

18 years ago2005-08-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Aug 2005 14:27:55 +0000 (14:27 -0000)]
2005-08-25  Zoltan Varga  <vargaz@gmail.com>

* rand.c: Use wincrypt.h instead of WinCrypt.h.

svn path=/trunk/mono/; revision=48838

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 14:20:53 +0000 (14:20 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

* driver.cs, support.cs : merged r48826.
  Marek Safer wrote:
  > could you integrate your mcs changes to gmcs otherwise
  > gmcs cannot compile some files.

svn path=/trunk/mcs/; revision=48837

18 years ago2005-08-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Aug 2005 14:12:12 +0000 (14:12 -0000)]
2005-08-25  Zoltan Varga  <vargaz@gmail.com>

* io-layer.h: Include winbase.h not WinBase.h.

svn path=/trunk/mono/; revision=48836

18 years ago2005-08-25 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 25 Aug 2005 13:53:44 +0000 (13:53 -0000)]
2005-08-25  Zoltan Varga  <vargaz@freemail.hu>

* configure.in: Pass --enable-win32-dllmain to libgc configure. Build the runtime as a dll under windows.

svn path=/trunk/mono/; revision=48834

18 years ago2005-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Aug 2005 13:48:41 +0000 (13:48 -0000)]
2005-08-24  Zoltan Varga  <vargaz@gmail.com>

* win32_threads.c: If GC_INSIDE_DLL is defined, define the DllMain function for automatic registration
of threads with the GC.

* configure.in: Add an option for turning GC_INSIDE_DLL on.

svn path=/trunk/mono/; revision=48831

18 years agoResize docked control and its neighbor.
Jonathan Chambers [Thu, 25 Aug 2005 12:18:34 +0000 (12:18 -0000)]
Resize docked control and its neighbor.

svn path=/trunk/mcs/; revision=48830

18 years ago2005-08-25 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Thu, 25 Aug 2005 12:00:02 +0000 (12:00 -0000)]
2005-08-25 Jordi Mas i Hernandez <jordi@ximian.com>

* TestMatrix.cs: New test cases

svn path=/trunk/mcs/; revision=48828

18 years ago2005-08-25 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 25 Aug 2005 11:39:31 +0000 (11:39 -0000)]
2005-08-25  Sureshkumar T  <tsureshkumar@novell.com>

* SqlDecimalTest.cs: use Assert rather than derive from Assertion.
* SqlBooleanTest.cs: use Assert rather than derive from Assertion.
* SqlInt32Test.cs: use Assert rather than derive from Assertion.
* SqlInt16Test.cs: use Assert rather than derive from Assertion.
* SqlSingleTest.cs: use Assert rather than derive from Assertion.
* SqlByteTest.cs: use Assert rather than derive from Assertion.
* SqlInt64Test.cs: use Assert rather than derive from Assertion.
* SqlStringTest.cs: use Assert rather than derive from Assertion.
* SqlMoneyTest.cs: use Assert rather than derive from Assertion.
* SqlDoubleTest.cs: use Assert rather than derive from Assertion.

svn path=/trunk/mcs/; revision=48827

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 10:41:47 +0000 (10:41 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* driver.cs : Use default encoding on the environment.
  Removed (now that) extra parameter for SeekableStreamReader.
* support.cs : (SeekableStreamReader) third .ctor() argument for
  StreamReader is not required (always true). preamble size could
  be acquired in simpler and safe way.

in tests:
* test-444.cs :
  UTF-8 BOM autodetect test (for encoding detection patch).

in class/corlib/System.Text:
* UTF8Encoding.cs : (InternalGetChars/InternalGetCharCount):
  Don't exclude FEFF in the resulting text.

in class/corlib/Test/System.Text:
* UTF8EncodingTest.cs : added GetCharsFEFF().

in class/Managed.Windows.Forms:
* Makefile : added /codepage:65001 (otherwise the build gets broken
  on KeyboardLayout.cs on some non-iso-8859-1 environment).

svn path=/trunk/mcs/; revision=48826

18 years agoSet max fetch size for jdbc statement.
Boris Kirzner [Thu, 25 Aug 2005 09:35:54 +0000 (09:35 -0000)]
Set max fetch size for jdbc statement.

svn path=/trunk/mcs/; revision=48824

18 years ago2005-08-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 25 Aug 2005 09:22:40 +0000 (09:22 -0000)]
2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>

* ScriptCompilerInfo.cs : It should not be "#line" when the source is
  not C#. It should fix bug #75789.

svn path=/trunk/mcs/; revision=48822

18 years agoPen.cs: Refactoring
Vladimir Krasnov [Thu, 25 Aug 2005 09:15:41 +0000 (09:15 -0000)]
Pen.cs: Refactoring
Image.cs: Refactoring
Bitmap.cs: Refactoring
Graphics.cs: Refactoring
Region.cs: Refactoring

svn path=/trunk/mcs/; revision=48821

18 years ago2005-08-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 25 Aug 2005 09:14:53 +0000 (09:14 -0000)]
2005-08-25  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_emit_prolog): Fix calling of mono_jit_thread_attach () under windows.

svn path=/trunk/mono/; revision=48820

18 years ago2005-08-25 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 25 Aug 2005 08:02:12 +0000 (08:02 -0000)]
2005-08-25  Marek Safar  <marek.safar@seznam.cz>

* gdipFunctions.cs: GetIconInfo new user32 method.
GdipGetDC uses IntPtr.

* gdipStructs.cs: Defined IconInfo struct.

* Graphics.cs: FromImage throws exception when image has an indexed format.
GetHdc fixed.

* Icon.cs: Implemented FromHandle, Dispose.

svn path=/trunk/mcs/; revision=48818

18 years ago2005-08-25 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 25 Aug 2005 07:43:33 +0000 (07:43 -0000)]
2005-08-25  Marek Safar  <marek.safar@seznam.cz>

* Enum.cs: Better exception message.

svn path=/trunk/mcs/; revision=48817

18 years ago2005-08-25 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 25 Aug 2005 06:42:35 +0000 (06:42 -0000)]
2005-08-25  Sureshkumar T  <tsureshkumar@novell.com>

* SqlCommandBuilder.cs: BuildInformation (): continue on columns
who don't have basetablename.

svn path=/trunk/mcs/; revision=48816

18 years ago2005-08-24 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 25 Aug 2005 04:29:45 +0000 (04:29 -0000)]
2005-08-24  Sureshkumar T  <tsureshkumar@novell.com>

* Tds.cs: ProcessColumnDetail (): expression columns don't have
baseTableName.

svn path=/trunk/mcs/; revision=48814

18 years ago2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 24 Aug 2005 19:13:14 +0000 (19:13 -0000)]
2005-08-24  Lluis Sanchez Gual  <lluis@novell.com>

* Makefile: Removed System.Runtime.Remoting dependency.
* Mono.Posix.dll.sources: Added new files:
Mono.Remoting.Channels.Unix/UnixBinaryClientFormatterSink.cs
Mono.Remoting.Channels.Unix/UnixBinaryClientFormatterSinkProvider.cs
Mono.Remoting.Channels.Unix/UnixBinaryCore.cs
Mono.Remoting.Channels.Unix/UnixBinaryServerFormatterSink.cs
Mono.Remoting.Channels.Unix/UnixBinaryServerFormatterSinkProvider.

svn path=/trunk/mcs/; revision=48810

18 years ago2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 24 Aug 2005 19:12:25 +0000 (19:12 -0000)]
2005-08-24  Lluis Sanchez Gual  <lluis@novell.com>

* UnixServerChannel.cs:
* UnixClientChannel.cs: Use the internal binary formatter sink.

* UnixBinaryServerFormatterSink.cs:
* UnixBinaryClientFormatterSinkProvider.cs:
* UnixBinaryClientFormatterSink.cs:
* UnixBinaryCore.cs:
* UnixBinaryServerFormatterSinkProvider.cs: New internal formatter sink,
to avoid dependency with System.Runtime.Remoting.dll.

* UnixClientTransportSink.cs:
* UnixMessageIO.cs: Don't use CommonTransportKeys.

svn path=/trunk/mcs/; revision=48809

18 years ago2005-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Aug 2005 19:10:17 +0000 (19:10 -0000)]
2005-08-24  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Add -lunwind to ldflags on IA64.

svn path=/trunk/mono/; revision=48808

18 years agoIn System.Drawing:
Michael Hutchinson [Wed, 24 Aug 2005 19:00:34 +0000 (19:00 -0000)]
In System.Drawing:
2005-05-24 Michael Hutchinson <m.j.hutchinson@gmail.com>

* ToolboxBitmapAttribute.cs: Implemented retrieving the image

In System.Drawing.Design:
2005-08-24 Michael Hutchinson <m.j.hutchinson@gmail.com>

* ToolboxItem.cs: Implemented retrieving item's bitmap

svn path=/trunk/mcs/; revision=48806

18 years ago2005-08-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 24 Aug 2005 18:16:08 +0000 (18:16 -0000)]
2005-08-24  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* cs-parser.jay: report CS0642 at warning level 3
  and report CS0642 for an if else statement also
  fixes bug #74745. Patch by John Luke (and a bit
  modified by me).
  Removed extra CS0642 warning check for "while",
  "for" and "fixed".
* statement.cs: In Block.Resolve(), CS0642 check
  is reimplemented to check a sequence of an empty
  statement and a block.

  Both fix bug #66777.

in errors:
* known-issues-mcs : removed cs0642*.cs (working now)
* cs0642-2.cs, cs0642-3.cs, cs0642-4.cs, cs0642-5.cs, cs0642-6.cs :
  filename fix.
* cs0642-7.cs, cs0642-8.cs, cs0642-9.cs :
  Possible empty statement check for if&else.
* cs0642-10.cs : additional empty statement check for "fixed".

svn path=/trunk/mcs/; revision=48805

18 years ago2005-08-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 24 Aug 2005 18:15:03 +0000 (18:15 -0000)]
2005-08-24  Zoltan Varga  <vargaz@gmail.com>

* solaris_threads.c (GC_thread_register_foreign): Add dummy implementation.

svn path=/trunk/mono/; revision=48803

18 years ago2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 24 Aug 2005 18:09:51 +0000 (18:09 -0000)]
2005-08-24  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializerTests.cs: Added test for bug #75855.
* DeserializeTests.cs: New test.
* XmlSerializerTestClasses.cs: New test classes.

svn path=/trunk/mcs/; revision=48802

18 years agoAdd missing ChangeLog entry.
Zoltan Varga [Wed, 24 Aug 2005 18:01:30 +0000 (18:01 -0000)]
Add missing ChangeLog entry.

svn path=/trunk/mono/; revision=48801

18 years ago2005-08-24 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 24 Aug 2005 17:55:22 +0000 (17:55 -0000)]
2005-08-24  Lluis Sanchez Gual  <lluis@novell.com>

* TypeData.cs: Reset the hasPublicConstructor flag when the
type is an interface.
* XmlSerializationWriterInterpreter.cs: Get the Count property
from the object type instead of the property type (it didn't
work for IList).
* ReflectionHelper.cs: In CheckSerializableType, don't trow
if the type is a collection interface. All this fixes
bug #75855.

svn path=/trunk/mcs/; revision=48799

18 years agoWed Aug 24 19:39:36 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 24 Aug 2005 17:42:17 +0000 (17:42 -0000)]
Wed Aug 24 19:39:36 CEST 2005 Paolo Molaro <lupus@ximian.com>

* mini.c: when running under valgrind, set the stack bottom for
the GC at the actual approximate stack for the app (fixes running
mono with valgrind).

svn path=/trunk/mono/; revision=48798

18 years ago2005-08-24 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Wed, 24 Aug 2005 16:27:08 +0000 (16:27 -0000)]
2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
-- Making Windows with Menus layout correctly --
* Form.cs : The first leg of the fix
Menu setter - adjust Client Size as needed to make space for the menu
SetClientSizeCore - doesn't call base version to be able to pass the
menu handle to XplatUI.CalculateWindowRect
* Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
* XplatUIX11.cs: The critical second leg of the fix
GetWindowPos needs to use a recalculated client_rect
so that resizing the window doesn't break layout of child controls.
Also a more complete rule to avoid X Server roundtrips in SetWindowPos
Lots of \t\n killed

svn path=/trunk/mcs/; revision=48794

18 years ago2005-08-24 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 24 Aug 2005 16:09:37 +0000 (16:09 -0000)]
2005-08-24 Marek Safar <marek.safar@seznam.cz>

* SD.csproj: Updated.

svn path=/trunk/mcs/; revision=48793

18 years agoone more hint
Marek Safar [Wed, 24 Aug 2005 16:06:19 +0000 (16:06 -0000)]
one more hint

svn path=/trunk/mcs/; revision=48792

18 years agoswap NotSupportedByProviderException for ProviderException (2.0)
Sebastien Pouliot [Wed, 24 Aug 2005 15:56:21 +0000 (15:56 -0000)]
swap NotSupportedByProviderException for ProviderException (2.0)

svn path=/trunk/mcs/; revision=48791

18 years ago2005-08-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 24 Aug 2005 15:54:19 +0000 (15:54 -0000)]
2005-08-24  Sebastien Pouliot  <sebastien@ximian.com>

* ProviderException.cs: New (2.0). Seems to replace the older
NotSupportedByProviderException class.

svn path=/trunk/mcs/; revision=48790

18 years ago2005-06-24 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 24 Aug 2005 15:28:02 +0000 (15:28 -0000)]
2005-06-24  Marek Safar  <marek.safar@seznam.cz>

* compiler-tester.cs: Enabled error/warning message checking.

svn path=/trunk/mcs/; revision=48788

18 years ago2005-08-24 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 24 Aug 2005 15:25:41 +0000 (15:25 -0000)]
2005-08-24 Marek Safar <marek.safar@seznam.cz>

* Makefile: Add ilasm for *.il compilation.

svn path=/trunk/mcs/; revision=48787

18 years agonew tests + error syntax fixes
Marek Safar [Wed, 24 Aug 2005 15:23:34 +0000 (15:23 -0000)]
new tests + error syntax fixes

svn path=/trunk/mcs/; revision=48785

18 years ago2005-08-24 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 24 Aug 2005 15:18:20 +0000 (15:18 -0000)]
2005-08-24  Marek Safar <marek.safar@seznam.cz>

* Makefile: Re-enabled ilasm files.

* test-443.*: New test.

svn path=/trunk/mcs/; revision=48783

18 years ago2005-08-24 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 24 Aug 2005 15:11:52 +0000 (15:11 -0000)]
2005-08-24  Marek Safar  <marek.safar@seznam.cz>

* attribute.cs (GetMethodObsoleteAttribute): Disabled obsolete properties
detection until I fix it.

* cs-tokenizer.cs: Changed error message.

* cs-parser.jay: Fixed 2 error locations.

* ecore.cs (Error_TypeDoesNotContainDefinition): Share error message.
(PropertyExpr.Error_PropertyNotFound): First attempt to detect non C#
properties.

* enum.cs (GetSignatureForError): Fixed.

* expression.cs (Invocation.IsSpecialMethodInvocation): Improved special
method detection.

* class.cs,
* typemanager.cs (RegisterProperty): Removed.

* statement.cs (CheckInvariantMeaningInBlock): Changed error message.

svn path=/trunk/mcs/; revision=48782

18 years ago2005-08-24 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Wed, 24 Aug 2005 15:05:47 +0000 (15:05 -0000)]
2005-08-24 Jordi Mas i Hernandez <jordi@ximian.com>

* TestMatrix.cs: New Matrix unit case

svn path=/trunk/mcs/; revision=48781

18 years ago* class.c (mono_class_from_typeref): Don't call mono_class_init as we might've been
Ankit Jain [Wed, 24 Aug 2005 14:55:57 +0000 (14:55 -0000)]
* class.c (mono_class_from_typeref): Don't call mono_class_init as we might've been
  called by it recursively.
  (mono_class_init): Remove special case in pending_init handling, since it's
  superseded by the fix to mono_class_from_typeref.

svn path=/trunk/mono/; revision=48780

18 years ago2005-08-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 24 Aug 2005 14:44:09 +0000 (14:44 -0000)]
2005-08-24  Zoltan Varga  <vargaz@freemail.hu>

* mini-codegen.c (mono_local_regalloc): Avoid allocating dreg and sreg1/2
to the same register if dreg is just a base register.
(print_ins): Improve printing of membase opcodes.

* inssel-x86.brg: Add optimized ldind(reg) rules.

* mini-x86.c cpu-pentium.md: Changes required to support the new rules.

svn path=/trunk/mono/; revision=48776

18 years agoIn mcs:
Raja R Harinath [Wed, 24 Aug 2005 14:41:52 +0000 (14:41 -0000)]
In mcs:
Fix #75874.
* expression.cs (ArrayAccess.EmitLoadOpcode): Emit ldelem.i for pointers.
(ArrayAccess.GetStoreOpcode): Return stelem.i for pointers.

In tests:
* test-442.cs: New test from #75874.

svn path=/trunk/mcs/; revision=48775

18 years agosvn:eol-style=native
Raja R Harinath [Wed, 24 Aug 2005 06:57:19 +0000 (06:57 -0000)]
svn:eol-style=native

svn path=/trunk/mcs/; revision=48774

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 20:56:53 +0000 (20:56 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* expression.cs : tiny fix is required for not warning positive ulong.
  See test-441.cs.

in tests:
* test-441.cs : test to not warn incorrect ulong const comparison.

svn path=/trunk/mcs/; revision=48762

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 20:20:18 +0000 (20:20 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* expression.cs : add CS0652 check for constant and integral
  expression. Fixed bug #53974.

in errors:
* known-issues-mcs : removed cs0652.cs (working now)
* cs0652-2.cs, cs0652-3.cs cs0652-4.cs : for bug #53974 plus alpha.

svn path=/trunk/mcs/; revision=48761

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 20:03:46 +0000 (20:03 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

* cs0034-3.cs : for bug #73709.

svn path=/trunk/mcs/; revision=48760

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 20:00:03 +0000 (20:00 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* expression.cs : in DoNumericPromotions(), check if there is implicit
  conversion overload for string (to check CS0034). Fixed bug #52492.

in tests:
* test-440.cs : non-CS0034 case (overload for double and int is valid).

in errors:
* cs0034-2.cs : for bug #52492.

svn path=/trunk/mcs/; revision=48759

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 19:43:41 +0000 (19:43 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* cs-tokenizer.cs : Check newline in char constant. Fixed bug #75245.

in errors:
* cs1010-2.cs : for bug #75245.

svn path=/trunk/mcs/; revision=48758

18 years agoTue Aug 23 21:38:50 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 23 Aug 2005 19:40:00 +0000 (19:40 -0000)]
Tue Aug 23 21:38:50 CEST 2005 Paolo Molaro <lupus@ximian.com>

* mini.c: do no break at the first valuetype to init found
(fixes bug #75791).

svn path=/trunk/mono/; revision=48757

18 years agoUse developer edition project file
Eyal Alalouf [Tue, 23 Aug 2005 17:33:09 +0000 (17:33 -0000)]
Use developer edition project file

svn path=/trunk/mcs/; revision=48748

18 years ago2005-08-23 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 23 Aug 2005 16:19:24 +0000 (16:19 -0000)]
2005-08-23  Peter Dennis Bartok  <pbartok@novell.com>

* Label.cs: Now properly recalculates width and height on Font and Text
  changes if AutoSize is set

svn path=/trunk/mcs/; revision=48742

18 years ago* PEAPI.cs (MetaData.version): Change from 1.0.3705 to 1.1.4322.
Ankit Jain [Tue, 23 Aug 2005 15:50:39 +0000 (15:50 -0000)]
* PEAPI.cs (MetaData.version): Change from 1.0.3705 to 1.1.4322.

svn path=/trunk/mcs/; revision=48741

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 15:41:03 +0000 (15:41 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

* ecore.cs : report location when it is *not* Null.

svn path=/trunk/mcs/; revision=48740

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 15:38:40 +0000 (15:38 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* codegen.cs,
  ecore.cs,
  flowanalysis.cs,
  expression.cs:
  Added OmitStructFlowAnalysis to EmitContext to handle CS0165 check
  correctly. Fixed bug #75721.

in errors:
* cs0165-10.cs, cs0165-11.cs : for bug #75721.

svn path=/trunk/mcs/; revision=48739

18 years agoTue Aug 23 16:53:21 BST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 23 Aug 2005 15:31:10 +0000 (15:31 -0000)]
Tue Aug 23 16:53:21 BST 2005 Paolo Molaro <lupus@ximian.com>

* cpu-arm.md, mini-arm.c: more fixes and LMF support.

svn path=/trunk/mono/; revision=48738

18 years agoFix build on cygwin for win32 (Microsoft.VisualBasic)
Wade Berrier [Tue, 23 Aug 2005 15:28:24 +0000 (15:28 -0000)]
Fix build on cygwin for win32 (Microsoft.VisualBasic)

svn path=/trunk/mcs/; revision=48737

18 years ago* PEAPI.cs (MSCorLib.systemClasses): Change type from ClassRef[] to
Ankit Jain [Tue, 23 Aug 2005 15:15:48 +0000 (15:15 -0000)]
* PEAPI.cs (MSCorLib.systemClasses): Change type from ClassRef[] to
  Class[].
  (MSCorLib.ctor): Add assembly ref to mscorlib for non-mscorlib assemblies
  only.
  (MSCorLib.AddClass): Use Class instead of ClassRef.
  (MSCorLib.GetSpecialClass): Change return type to Class from ClassRef.
  Don't instantiate object of SystemClass if this assembly is mscorlib.
  (MSCorLib.SetSpecialSystemClass): New. Set a System.* class for primitive
  types, used for compiling mscorlib.
  (MSCorLib.GetValueClass): Change to handle new type of systemClasses.
  (MSCorLib.ValueType),
  (MSCorLib.EnumType): Don't instantiate ClassRef if this assembly is mscorlib.
  (ClassDef.ctor): Don't superType to System.Object for System.Object and <Module>.
  (ClassDef.MakeValueClass): Set typeIndex to ValueType's typeIndex.
  (ClassDef.IsValueType),
  (ClassDef.IsEnum): Use "==" instead of .CompareTo for string comparison.
  (ClassDef.AddNestedClass): Set typeIndexChecked = true for the nested class.
  (PEFile.isMSCorlib): New. bool field.
  (PEFile.ctor): Move all ctor logic into one overload and call that from others.
  (PEFile.ctor): Add outputDir parameter.
  (PEFile.SetName): Set name of the assembly and set isMSCorlib accordingly.
  (PEFile.IsMSCorlib): New. bool Property.
  (PEFile.AddClass): Call overload.
  (PEFile.AddClass): Set superType and SetSpecialSystemClass if compiling mscorlib.
  (PEFile.AddValueClass): Call MakeValueClass only if the class is not System.ValueType
  or System.Enum itself, else set the supertype correctly.

svn path=/trunk/mcs/; revision=48736

18 years agoIn ilasm/codegen:
Ankit Jain [Tue, 23 Aug 2005 15:15:15 +0000 (15:15 -0000)]
In ilasm/codegen:
2005-08-23  Ankit Jain  <jankit@novell.com>

* ExternTable.cs (ExternTable.ctor): Remove. Move the initialization code
  to the new method AddCorlib.
  (ExternTable.AddCorlib): New.
  (ExternTable.Resolve): Assembly_table can be null so check before using it.
  (ExternTable.GetTypeRef): AddCorlib if mscorlib is being referenced but
  assembly_table is still null.
* CodeGen.cs (CodeGen.SetAssemblyName): Call AddCorlib if name is not mscorlib.
  (CodeGen.Write): Pass null for new outputDir param for PEFile ctor.
* (PrimitiveTypeRef.Name): New. Returns the full_name.

In ilasm/parser:
2005-08-23  Ankit Jain  <jankit@novell.com>

* ILParser (method_ref : call_conv..): Use TypeRef instead of PrimitiveTypeRef
  if this assembly is mscorlib.
  (type | ..): Correct names of primitive types.

svn path=/trunk/mcs/; revision=48735

18 years agoFix thinko. If this doesn't work, I'll need to rewrite
Raja R Harinath [Tue, 23 Aug 2005 14:31:34 +0000 (14:31 -0000)]
Fix thinko.  If this doesn't work, I'll need to rewrite
this code :-(

* profiles/basic.make (do-profile-check): Set MONO_PATH to
monolite directory when running disassembler.

svn path=/trunk/mcs/; revision=48731

18 years agosvn:eol-style=native
Raja R Harinath [Tue, 23 Aug 2005 14:23:08 +0000 (14:23 -0000)]
svn:eol-style=native

svn path=/trunk/mcs/; revision=48730

18 years ago* profiles/basic.make (do-profile-check): Set MONO_PATH when
Raja R Harinath [Tue, 23 Aug 2005 14:21:25 +0000 (14:21 -0000)]
* profiles/basic.make (do-profile-check): Set MONO_PATH when
running disassembler.

svn path=/trunk/mcs/; revision=48729

18 years agoIn .:
Raja R Harinath [Tue, 23 Aug 2005 14:15:25 +0000 (14:15 -0000)]
In .:
* System.dll.sources: Update.

In System.Text.RegularExpressions:
* regex.cs: Remove.  Split into ...
* MatchEvaluator.cs, Regex.cs, RegexCompilationInfo.cs,
RegexOptions.cs: ... these.  Now every publicly exposed type in
this namespace has its own file.

svn path=/trunk/mcs/; revision=48728

18 years ago* test-byref.il: New. Test for a call with byref return type.
Ankit Jain [Tue, 23 Aug 2005 14:13:25 +0000 (14:13 -0000)]
* test-byref.il: New. Test for a call with byref return type.

svn path=/trunk/mcs/; revision=48727

18 years ago* support.cs (SeekableStreamReader.Position): Avoid an expensive
Raja R Harinath [Tue, 23 Aug 2005 14:07:12 +0000 (14:07 -0000)]
* support.cs (SeekableStreamReader.Position): Avoid an expensive
loop that performs 'max (pos, char_count)'.

svn path=/trunk/mcs/; revision=48726

18 years agoIn mcs:
Raja R Harinath [Tue, 23 Aug 2005 13:59:43 +0000 (13:59 -0000)]
In mcs:
Fix #75862.
* expression.cs (Unary.ResolveOperator): Don't discard implicit
converted value in Operator.OnesComplement.

In tests:
* test-439.cs: New test from #75862.

svn path=/trunk/mcs/; revision=48725

18 years agoFix #75186.
Ankit Jain [Tue, 23 Aug 2005 13:42:31 +0000 (13:42 -0000)]
Fix #75186.
* get.c (get_ret_type): Use '&' instead of '[out]' for return type.

svn path=/trunk/mono/; revision=48723

18 years ago* get.c (get_encoded_user_string_or_bytearray): New. Print a string if possible
Ankit Jain [Tue, 23 Aug 2005 13:34:57 +0000 (13:34 -0000)]
* get.c (get_encoded_user_string_or_bytearray): New. Print a string if possible
  or else a bytearray from the US heap.
  (get_encoded_user_string_bytearray): New. Print a bytearray from the US heap.
  (get_constant): Use get_encoded_user_string_or_bytearray for MONO_TYPE_STRING.
* get.h (get_encoded_user_string_or_bytearray): Add the new function.
* dis-cil.c (get_encoded_user_string): Move to get.c .
  (disassemble_cil): Use get_encoded_user_string_or_bytearray instead of
  get_encoded_user_string.

svn path=/trunk/mono/; revision=48721

18 years agoTue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 23 Aug 2005 13:12:30 +0000 (13:12 -0000)]
Tue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>

* cpu-g4.md: fixed instruction length exposed by the nemerle compiler.

svn path=/trunk/mono/; revision=48720

18 years agoFix #75679.
Raja R Harinath [Tue, 23 Aug 2005 12:17:17 +0000 (12:17 -0000)]
Fix #75679.
* StreamReader.cs (DiscardBufferedData): Reset the decoder too.

(r=eno)

svn path=/trunk/mcs/; revision=48719

18 years agoGraphics.jvm.cs: Fixed ResetTransform, TransfromPoints
Vladimir Krasnov [Tue, 23 Aug 2005 12:00:24 +0000 (12:00 -0000)]
Graphics.jvm.cs: Fixed ResetTransform, TransfromPoints
Fixed SmoothingMode property

svn path=/trunk/mcs/; revision=48718

18 years ago2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Tue, 23 Aug 2005 11:48:00 +0000 (11:48 -0000)]
2005-08-23 Jordi Mas i Hernandez <jordi@ximian.com>

* Brushes: Do not create the objects every time that they are requested
as in Pens we create and cache them only once when need it. This also
fixes the Equals method between two objects requested to Brushes

svn path=/trunk/mcs/; revision=48717

18 years ago2005-08-23 Jordi Mas i Hernandez <jordi@ximan.com>
Jordi Mas i Hernandez [Tue, 23 Aug 2005 11:40:01 +0000 (11:40 -0000)]
2005-08-23 Jordi Mas i Hernandez <jordi@ximan.com>

* TestPens.cs: Add test for Equals method
* TestBrushes.cs: Add test for Equals method

svn path=/trunk/mcs/; revision=48716

18 years ago * statement.cs :
Satya Sudha K [Tue, 23 Aug 2005 11:31:43 +0000 (11:31 -0000)]
    * statement.cs :
                StatementSequence : Avoid Resolving multiple times
        * ecore.cs :
                Minor fix to 'Constantify' method

svn path=/trunk/mcs/; revision=48715

18 years agoChanged reference to Consts.cs
Boris Kirzner [Tue, 23 Aug 2005 11:24:25 +0000 (11:24 -0000)]
Changed reference to Consts.cs

svn path=/trunk/mcs/; revision=48714

18 years ago2005-08-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Aug 2005 10:36:12 +0000 (10:36 -0000)]
2005-08-23  Atsushi Enomoto  <atsushi@ximian.com>

* test-438.cs : test for bug #67711.

svn path=/trunk/mcs/; revision=48712

18 years agoFixed pathnames in some testcases
Satya Sudha K [Tue, 23 Aug 2005 10:21:54 +0000 (10:21 -0000)]
Fixed pathnames in some testcases

svn path=/trunk/mcs/; revision=48711

18 years agocorrected typo.
Sureshkumar T [Tue, 23 Aug 2005 04:44:09 +0000 (04:44 -0000)]
corrected typo.

svn path=/trunk/mcs/; revision=48708

18 years ago2005-08-22 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Mon, 22 Aug 2005 23:09:48 +0000 (23:09 -0000)]
2005-08-22  Ben Maurer  <bmaurer@ximian.com>

* anonymous.cs: If the anon method is pulled into a helper class,
it needs to be `internal' not `private'. Fixes runtime behavior on
msft. bug #75704

svn path=/trunk/mcs/; revision=48702

18 years agoupdate
Gonzalo Paniagua Javier [Mon, 22 Aug 2005 22:46:00 +0000 (22:46 -0000)]
update

svn path=/trunk/mono/; revision=48699

18 years ago2005-08-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 22:01:43 +0000 (22:01 -0000)]
2005-08-23  Zoltan Varga  <vargaz@freemail.hu>

* delegate.cs: Add float and double tests.

svn path=/trunk/mono/; revision=48698

18 years ago2005-08-23 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 22:01:13 +0000 (22:01 -0000)]
2005-08-23  Zoltan Varga  <vargaz@freemail.hu>

* inssel-amd64.brg inssel-x86.brg: Fix the fcall rules.

svn path=/trunk/mono/; revision=48697

18 years agoThis was talked about on irc...
Wade Berrier [Mon, 22 Aug 2005 21:50:54 +0000 (21:50 -0000)]
This was talked about on irc...

Have the win32 mono build use mcs instead of csc.exe

svn path=/trunk/mcs/; revision=48695

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 21:18:01 +0000 (21:18 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* configure.in: Patch libtool to get rid of 'cyg' prefixes in library names.

svn path=/trunk/mono/; revision=48694

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 21:15:46 +0000 (21:15 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* delegate.cs: Restructure and add long delegate test.

svn path=/trunk/mono/; revision=48693

18 years ago2005-08-22 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 22 Aug 2005 21:09:31 +0000 (21:09 -0000)]
2005-08-22  Zoltan Varga  <vargaz@freemail.hu>

* inssel-x86.brg: Fix assert in patch_delegate_trampoline.

svn path=/trunk/mono/; revision=48692