mono.git
16 years agoIn Test/System:
Robert Jordan [Sat, 26 Jan 2008 13:42:01 +0000 (13:42 -0000)]
In Test/System:
2008-01-23  Robert Jordan  <robertj@gmx.net>

* UriTest3.cs: Add tests for bug #346432.

In System:
2008-01-23  Robert Jordan  <robertj@gmx.net>

* Uri.cs (Parse): Handle uriString.Length == 1 as a valid relative URI.
Fixes #346432.

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

16 years ago2008-01-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 26 Jan 2008 10:01:07 +0000 (10:01 -0000)]
2008-01-26  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeReader.cs : fixed GetAttribute() that wrongly resulted in
  returning "" instead of null. Fixed bug #335975.

* XNodeReaderTest.cs : test for bug #335975.

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

16 years ago2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 26 Jan 2008 08:11:42 +0000 (08:11 -0000)]
2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControlTest.cs: Add SelectedValue2 test - for #324286.

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

16 years ago2008-01-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 26 Jan 2008 08:08:56 +0000 (08:08 -0000)]
2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListControl.cs: Since we are getting two BinginContextChanged events
for the same binding context instance (when the control is added to
form, and when the form is actually shown), take it into account only the
first time for a given binding context instance.
Fixes part of #324286.

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

16 years ago2008-01-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 26 Jan 2008 02:49:26 +0000 (02:49 -0000)]
2008-01-26  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (arm_patch): Add support for patching the blx calling sequence.

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

16 years ago2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 26 Jan 2008 02:00:52 +0000 (02:00 -0000)]
2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>

 * PropertryGridView.cs: Ops.

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

16 years ago2008-01-26 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 26 Jan 2008 01:34:18 +0000 (01:34 -0000)]
2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>

 * PropertyGridView.cs: Close dropdown form if the owner form is
 moved or minimized.
 [Fixes bug #322446]

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

16 years ago2008-01-25 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 25 Jan 2008 21:08:52 +0000 (21:08 -0000)]
2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>

 * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs,
 RootGridEntry.cs, CategoryGridEntry.cs:
 PropertyGrid rewrite.
 - Rewrite all of the control logic in PropertyGrid.
 - Rewrite all of the ComponentModel logic in GridEntry.
 - Rewrite all UI work in PropertyGridView.
 - Many bugfixes, etc.

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

16 years ago* ActivationTests.cs: Only stop server if it was actually created.
Gert Driesen [Fri, 25 Jan 2008 20:41:57 +0000 (20:41 -0000)]
* ActivationTests.cs: Only stop server if it was actually created.
* RemotingServicesTest.cs: Always/only unregister channels if they were
actually created. More code formatting.

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

16 years ago* System.Runtime.Remoting_test.dll.sources: add TcpChannelTest.cs.
Gert Driesen [Fri, 25 Jan 2008 20:22:12 +0000 (20:22 -0000)]
* System.Runtime.Remoting_test.dll.sources: add TcpChannelTest.cs.
* RemotingServicesTest.cs: Do not hide exception that occur when
unregistering a channel. Code formatting and removed extra tabs.
* TcpChannelTest.cs: Added simple ctor test that covers bug #355905.
* System.Runtime.Remoting_test.dll.sources: add TcpChannelTest.cs.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 19:38:31 +0000 (19:38 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* TcpChannel.cs (Init): Handle properties == null.

* TcpClientChannel.cs (.ctor): Ditto. Fixes #355905.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 19:07:10 +0000 (19:07 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* cpu-*.md: Get rid of unused opcodes.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 18:51:40 +0000 (18:51 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* TypeBuilder.cs (GenerateDebugInfo): Emit debug info for nested types as well.
Fixes #356316.

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

16 years ago2008-01-25 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 25 Jan 2008 18:15:21 +0000 (18:15 -0000)]
2008-01-25  Marek Safar  <marek.safar@gmail.com>

* report.cs: Correctly reset warnings count after probing.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 18:07:07 +0000 (18:07 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* cpu-g4.md: Rename this to cpu-ppc.md for consistency with other archs.

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

16 years ago2008-01-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 25 Jan 2008 17:47:40 +0000 (17:47 -0000)]
2008-01-25  Martin Baulig  <martin@ximian.com>

* namespace.cs
(NamespaceEntry.SymbolFileID): Make this work again after
MemberName.ToString() is gone.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 17:41:09 +0000 (17:41 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Move mini-trampolines.c to $(common_sources) since it is now used
by all platforms.

* mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_SPECIFIC_TRAMPOLINE
define.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 17:31:33 +0000 (17:31 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* mini-s390x.h tramp-s390x.c Makefile.am: Rework the s390x trampoline code to use
the arch independent trampoline code in mini-trampolines.c.

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

16 years agoNew tests.
Marek Safar [Fri, 25 Jan 2008 17:22:19 +0000 (17:22 -0000)]
New tests.

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

16 years ago2008-01-25 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 25 Jan 2008 17:21:36 +0000 (17:21 -0000)]
2008-01-25  Marek Safar  <marek.safar@gmail.com>

* expression.cs: Implemented Divide, Equal, ExclusiveOr, GreaterThanOrEqual
expressions.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 16:12:06 +0000 (16:12 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (mono_aot_init_vtable): Fix a warning.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 16:08:57 +0000 (16:08 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* mini.c (get_runtime_generic_context_ptr): Fix a warning.

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

16 years ago2008-01-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 25 Jan 2008 15:40:23 +0000 (15:40 -0000)]
2008-01-25  Rodrigo Kumpera  <rkumpera@novell.com>

* MonoType.cs (InvokeMember): Fixed exceptions arguments for last comit.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 15:38:54 +0000 (15:38 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* mini-s390.h: Remove an unused define.

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

16 years agowe pass Bind
Jb Evain [Fri, 25 Jan 2008 15:23:00 +0000 (15:23 -0000)]
we pass Bind

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

16 years ago2008-01-25 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 25 Jan 2008 15:22:44 +0000 (15:22 -0000)]
2008-01-25  Jb Evain  <jbevain@novell.com>

* Expression.cs, ExpressionPrinter.cs: implement Bind.

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

16 years ago2008-01-25 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 25 Jan 2008 15:22:23 +0000 (15:22 -0000)]
2008-01-25  Jb Evain  <jbevain@novell.com>

* MemberMemberBinding.cs, MemberListBinding.cs,
MemberAssignment.cs, MemberBinding.cs:
add constructors.

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 14:58:49 +0000 (14:58 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* mini-s390.h tramp-s390.c Makefile.am: Rework the s390 trampoline code to use
the arch independent trampoline code in mini-trampolines.c.

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

16 years agowe pass PropertyOrField
Jb Evain [Fri, 25 Jan 2008 14:39:14 +0000 (14:39 -0000)]
we pass PropertyOrField

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

16 years ago2008-01-25 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 25 Jan 2008 14:38:55 +0000 (14:38 -0000)]
2008-01-25  Jb Evain  <jbevain@novell.com>

* Expression.cs: implement PropertyOrField.

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

16 years agoupdate
Jb Evain [Fri, 25 Jan 2008 14:32:27 +0000 (14:32 -0000)]
update

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

16 years ago2008-01-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 25 Jan 2008 14:25:30 +0000 (14:25 -0000)]
2008-01-25  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_emit_prolog): Fix build.

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

16 years agowe pass ExclusiveOr tests
Jb Evain [Fri, 25 Jan 2008 14:21:32 +0000 (14:21 -0000)]
we pass ExclusiveOr tests

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

16 years agoNew test.
Marek Safar [Fri, 25 Jan 2008 11:37:44 +0000 (11:37 -0000)]
New test.

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

16 years ago2008-01-25 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 25 Jan 2008 11:37:10 +0000 (11:37 -0000)]
2008-01-25  Marek Safar  <marek.safar@gmail.com>

  * generic.cs: Use full implicit conversion for type inference fixing.

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

16 years agoFixed copy&paste
Marek Safar [Fri, 25 Jan 2008 10:00:05 +0000 (10:00 -0000)]
Fixed copy&paste

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

16 years ago2008-01-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 Jan 2008 03:47:12 +0000 (03:47 -0000)]
2008-01-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
  not). Fixed bug #347768.

* XmlReaderCommonTests.cs : added test for bug #347768.

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

16 years agoSWF2K5.csproj, SWF.csproj: synched
Andreia Gaita [Fri, 25 Jan 2008 00:15:50 +0000 (00:15 -0000)]
SWF2K5.csproj, SWF.csproj: synched

2008-01-24  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-01-24 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Fri, 25 Jan 2008 00:11:00 +0000 (00:11 -0000)]
2008-01-24  Andreia Gaita  <avidigal@novell.com>

* xpidl2cs.pl: Add support for different marshalling depending
on whether a parameter is in or out. Add special case for
generic interface returns. Only output parent is it's not
the base parent. Output helper class to proxy objects.

* Makefile: added. regenerates interfaces

2008-01-24  Andreia Gaita <avidigal@novell.com>

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

16 years agoTry to make test not font size dependent.
Jonathan Pobst [Thu, 24 Jan 2008 22:56:31 +0000 (22:56 -0000)]
Try to make test not font size dependent.

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

16 years agoIn System:
Rodrigo Kumpera [Thu, 24 Jan 2008 22:16:22 +0000 (22:16 -0000)]
In System:
2008-01-24  Rodrigo Kumpera  <rkumpera@novell.com>

* MonoType.cs (InvokeMember): Check for parameters without default value which
the supplied argument is Missing.Value. Fixes one of the issues of #348522.

In Test/System:
2008-01-24  Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs (InvokeMember_WithoutDefaultValue): Added test for bug #348522.
It call InvokeMember passing as method argument Missing.Value and a binder that
returns a method that doesn't have a default value for it's parameter.

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

16 years ago2008-01-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 24 Jan 2008 21:55:44 +0000 (21:55 -0000)]
2008-01-24  Marek Habersack  <mhabersack@novell.com>

* WebHandlerBuildProvider.cs: derive from the new
SimpleBuildProvider class.

* BuildManager.cs: full implementation of the batch compilation
for the 2.0 profile. The implementation is most probably different
to MS.NET's but the effects are the same (or nearly the same -
there are some minor differences). There are missing bits and
pieces, but minor ones - to be added later.

* SimpleBuildProvider.cs: new build provider abstract class
deriving from the GenericBuildProvider that implements common code
for building web handlers and web services.

* GenericBuildProvider.cs: new generic abstract class used to
implement base builder code for all the build provider types and
maximize code reuse.

* PageBuildProvider.cs: derive from the new TemplateBuildProvider
class and implement all the necessary abstract members.
Handle "fake" virtual paths, to properly support generating of the
WSDL helper code.

* BuildProvider.cs: SetVirtualPath now converts the passed path to
absolute URL.
Added internal virtual method GenerateCode, used by derived
classes.
SetCommonParameters no longer sets the referenced assemblies, this
is done in BuildManager now.
Added an internal virtual property CodeUnit which returns the
build provider's compilation unit.

* PageCompiler.cs: fix assignment of base types for asynchronous
pages, to match MS.NET.
For asynchronous pages, add the necessary methods generation.

* BaseCompiler.cs: default namespace is now set using a constant.
Renamed the Init method into ConstructType, to better reflect its
purpose and made the method internal - it is used by the build
providers.
Added several CreateProvider overloads for easier and more unified
compilation provider creation.
Added an internal MainClassType property to enable class type name
retrieval from other parts of the class hierarchy.

* ApplicationFileBuildProvider.cs: new build provider deriving
from the TemplateBuildProvider class to compile the global.asax
file.

* AspGenerator.cs: properly handle parsers which have no input
file path given, but use TextReader instead.
Dependencies are virtual paths now, convert them to physical ones
before creating cache dependency.

* CachingCompiler.cs: parser dependencies are virtual paths now,
convert them to physical ones before creating cache dependency.

* AssemblyBuilder.cs: full implementation of the documented
functionality as well as a lot of internal build code
added. Produces assemblies using the same style what MS.NET for
temporary and target file naming. Handles partial type squashing
if the same partial type is used by several code compile units
added to the same builder instance.

* MasterPageBuildProvider.cs: use the new TemplateBuildProvider
base class and add implementation of all the abstract methods
required by it.

* ThemeDirectoryBuildProvider.cs: new build provider to compile
theme directories. Replaces the old ThemeDirectoryCompiler class.

* UserControlBuildProvider.cs: use the new TemplateBuildProvider
base class and add implementation of all the abstract methods
required by it.

* TemplateBuildProvider.cs: new internal abstract class which
implements the common tasks for all the template control build
providers.

* WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
type to implement building.

2008-01-24  Marek Habersack  <mhabersack@novell.com>

* PageThemeFileParser.cs: the DefaultBaseType property removed.

* ApplicationFileParser.cs: added constructor which takes a
TextReader.
Removed the DefaultBaseType property.
Added the Reader property.

* MasterPage.cs: use BuildManager to create page instance.

* WebHandlerParser.cs: added a compatibility constructor.

* TemplateControl.cs: GetTypeFromControlPath uses
BuildManager.GetCompiledType for the 2.0+ profile.

* WebServiceParser.cs: added a compatibility internal
constructor.

* SimpleWebHandlerParser.cs: properly treat context and
physicalPath parameters to the constructor, especially for the
2.0+ profile where they are obsolete.
Dependencies are added using virtual paths.

* PageThemeParser.cs: DefaultBaseType property removed.

* Page.cs: Style sheets and themes are compiled using
BuildManager.
Previous page instance is compiled using BuildManager for the 2.0+
profile.

* MasterPageParser.cs: Use BuildManager to create instance and
compile types.
Dependencies are added using virtual paths.

* SimpleHandlerFactory.cs: Use
BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.

* UserControlParser.cs: if the parser is created using a
TextReader, take the input file path from the virtual path.
Added a new internal constructor which takes both a TextReader and
an inputFile parameters.
Set base type to the default in the constructors.
Use virtual path when setting master page dependency.
DefaultBaseTypename doesn't use a literal string in the 2.0+
profile, it gets the base type from the application
configuration.

* TemplateControlParser.cs: Dependency on a control/page mentioned
in the Reference directive is registered using the virtual path.
TextReader property is an override now.

* TemplateParser.cs: RegisterCustomControl adds a dependency on
the virtual path, not the physical path. The custom control is
compiled using BuildManager.GetCompiledType for the 2.0+ profile.
RegisterNamespace does not add a dependency on the assembly.
LoadType does not add a dependency on the assembly.
Legacy Src attribute is handled properly now.
Dependency on code-behind (Src and CodeFile directive attributes)
is added using the code-behind file's virtual path.
GetAssemblyFromSource adds a dependency using the virtual path.
DefaultBaseType implemented here, using DefaultBaseTypeName which
is implemented in the descendant classes.
Added internal CodeBehindSource property, used by build
providers.
ClassName property works correctly if inputFile is missing
(e.g. when the parser has been created using a TextReader)
Added a virtual internal property TextReader to return the readed
which has been used to create the parser instance.

* PageHandlerFactory.cs: GetHandler uses
BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.

* PageParser.cs: set the default base type in the constructors.
If the input file is not passed to a constructor, take the input
file path from the virtual path.
GetCompiledPageInstance uses BuildManager.CreateInstanceFromVirtualPath
for the 2.0+ profile.
MasterPage dependency is set using the virtual path of the master
page.
MasterPage is compiled into a type using BuildManager.GetCompiledType.
GetCompiledPageType uses BuildManager.GetCompiledType for the 2.0
profile.
DefaultBaseType override removed, it is implemented in the
TemplateParser class.
DefaultBaseTypename doesn't use a literal string in the 2.0+
profile, it gets the base type from the application
configuration.

2008-01-24  Marek Habersack  <mhabersack@novell.com>

* HttpApplicationFactory.cs: use BuildManager.GetCompiledType to
build the application (global.asax) file.

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

16 years ago2008-01-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 24 Jan 2008 21:47:46 +0000 (21:47 -0000)]
2008-01-24  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
when all contained controls are autosize or dock-fill.  Also take into
account when the total percentage of column/row sizes is not 100%.
[Fixes bug #354672]

2008-01-24  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutTest.cs: Add tests for bug #354672.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 20:40:33 +0000 (20:40 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* mini-sparc.c (mono_arch_output_basic_block): Remove some unecessary code.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 20:12:46 +0000 (20:12 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (SUBDIRS): Or if INTERP_SUPPORTED is true.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 20:10:14 +0000 (20:10 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (SUBDIRS): Only set this on arm.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 20:05:43 +0000 (20:05 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* mini-s390.c (mono_arch_emit_prolog): Fix build.

* mini-s390x.c (mono_arch_emit_prolog): Fix build.

* mini-ppc.c (mono_arch_emit_prolog): Fix build.

* cpu-amd64.md: Use smaller sizes for int opcodes.

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

16 years agoMore tests.
Marek Safar [Thu, 24 Jan 2008 19:58:10 +0000 (19:58 -0000)]
More tests.

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 19:57:00 +0000 (19:57 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

  * ecore.cs, expression.cs, generic.cs: Implemented Convert, ConvertChecked.
  Fixed user operator conversions.

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

16 years ago* HtmlDocument.cs:
Andreia Gaita [Thu, 24 Jan 2008 18:06:18 +0000 (18:06 -0000)]
* HtmlDocument.cs:
- Save a reference to the IDocument in the instance and
  use that one instead of going to WebHost.Document; the document that the
  WebHost returns might not be the right one (in case of frames).
- Use the hashcode returned from the IDocument interface.
- Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie,
  Domain (setter is not supported), Encoding, ForeColor, Forms, Images,
  LinkColor, Url, VisitedColor, Window

* HtmlElement.cs:
- Implemented: CanHaveChildren, Children, Document, GetAttribute,
  set_Attribute, NextSibling, Parent, TagName, AppendChild,
  GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
  SetAttribute, Equals, equality operators.
- Added stubs for: AttachEventHandler, DetachEventHandler, Focus,
  InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView,

* HtmlElementCollection.cs: Change implementation to use a generic
collection. Implemented Enumerator and CopyTo

* HtmlHistory.cs: Add constructor, no implementation yet.

* HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode,
Equals, equality operators.

* HtmlWindowCollection.cs: Implemented.

* WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
has been deprecated).

* WebBrowserBase.cs: Use Completed event to track document loading
(Navigated has been deprecated)

2008-01-24  Andreia Gaita <avidigal@novell.com>

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

16 years ago* Mono.Mozilla.dll.sources, Mono.Mozilla.2K5.csproj: Added files.
Andreia Gaita [Thu, 24 Jan 2008 18:01:23 +0000 (18:01 -0000)]
* Mono.Mozilla.dll.sources, Mono.Mozilla.2K5.csproj: Added files.

* Mono.Mozilla/interfaces/*.cs: Add yet more mozilla interfaces to
support getting windows, page encodings, dealing with focused elements.
Update GetProxyForObject signature.

* Mono.Mozilla/Base.cs: Remove unneeded navigation methods, Navigation
now goes through the Navigation object.
(GetProxyForObject): Use GetObjectForIUnknown instead of
GetTypedObjectForIUnknown, this one is not working properly. GetProxyForObject
now has two parameters, instead of three (no need to send the type). All the
interfaces have been regenerated and xpidl2cs changed for the new signature.

* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs:
Implement Window getter. Add events and event watcher to track page loading.

* Mono.Mozilla/DOM/Attribute.cs, Mono.WebBrowser/DOM/IAttribute.cs:
Add GetHashCode

* Mono.WebBrowser/DOM/IDocument.cs, Mono.Mozilla/DOM/Document.cs:
Implemented: Active, ActiveLinkColor, Anchors, Applets, Background, BackColor,
Charset, Cookie, Domain, ForeColor, Forms, Images, LinkColor, Links,
VisitedLinkColor, GetElement, Equals, GetHashCode

* Mono.WebBrowser/DOM/IElement.cs, Mono.Mozilla/DOM/Element.cs:
Implemented: Children, TagName, AppendChild, Equals, GetElementsByTagName,
GetHashCode, SetAttribute.
Changed get_All to return all children recursively.

* Mono.WebBrowser/DOM/IElementCollection.cs: Fix header. Add GetHashCode.

* Mono.Mozilla/DOM/HTMLElementCollection.cs: Fix header. Change Load() so
it only includes html elements in the collection.

* Mono.WebBrowser/DOM/INavigation.cs, Mono.Mozilla/DOM/Navigation.cs:
Implement GetHashCode. Add CharsetChange option to the load flags so support
refreshing a page after an encoding change.

* Mono.WebBrowser/DOM/INode.cs, Mono.Mozilla/DOM/Node.cs:
Implement: InsertBefore, LastChild, Next, Owner, Parent, Previous, GetHashCode

* Mono.WebBrowser/DOM/INodeList.cs, Mono.Mozilla/DOM/NodeList.cs:
Fix header. Implement GetHashCode. Add support for creating empty
collections that get nodes added later, add support for removing nodes.

* Mono.WebBrowser/DOM/IWindow.cs, Mono.Mozilla/DOM/Window.cs:
Added. Represents a window (top level or frame) and wraps nsIDOMWindow.

* Mono.WebBrowser/DOM/IWindowCollection.cs,
Mono.Mozilla/DOM/WindowCollection.cs:
Added. Represents a collection of windows, wraps nsIDOMWindowCollection.

2008-01-24  Andreia Gaita <avidigal@novell.com>

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

16 years agowe pass Field and Property
Jb Evain [Thu, 24 Jan 2008 17:55:58 +0000 (17:55 -0000)]
we pass Field and Property

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

16 years ago2008-01-24 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 24 Jan 2008 17:55:41 +0000 (17:55 -0000)]
2008-01-24  Jb Evain  <jbevain@novell.com>

* Expression.cs, MemberExpression.cs, ExpressionPrinter.cs:
implement Field and Property.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 16:48:32 +0000 (16:48 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* *.c: Get rid of the NOT_IMPLEMENTED define which is now in mini.h.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 16:39:16 +0000 (16:39 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* *.cs: Add some tests from the linear-ir branch. Move structs tests to
objects.cs.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 16:31:08 +0000 (16:31 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* driver.c (mono_main): Add a --break-at-bb command line argument for JIT
debugging.

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

16 years ago2008-01-24 Jonatham Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 24 Jan 2008 16:31:02 +0000 (16:31 -0000)]
2008-01-24  Jonatham Pobst  <monkey@jpobst.com>

* ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
level MenuItems do not respect tabs.
[Fixes bug #355196]

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 16:29:01 +0000 (16:29 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* driver.c (mono_main): Add a --break-at-bb command line argument for JIT
debugging.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 16:22:42 +0000 (16:22 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* mini.h *.c: Change cfg->vars to contain the MonoMethodVar entries directly
instead of though a pointer to save an indirection when accessing elements of
the array.

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

16 years ago2008-01-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 Jan 2008 15:59:58 +0000 (15:59 -0000)]
2008-01-24  Zoltan Varga  <vargaz@gmail.com>

* mini.h (MONO_IS_COND_BRANCH_OP): Move these macros here from mini.c. Fix
some typos.
(NOT_IMPLEMENTED): New helper macro.
(MONO_BB_FOR_EACH_INS): New helper macro to iterate through the instructions
of a bb.

* *.c: Use the new helper macro.

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

16 years ago2008-01-24 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Thu, 24 Jan 2008 15:34:25 +0000 (15:34 -0000)]
2008-01-24  Jonathan Chambers  <joncham@gmail.com>

        * marshal.c (emit_marshal_string): Fix out string marshalling
        to use specified encoding. Fixes #323900.

        Code is contributed under MIT/X11 license.

2008-01-24  Jonathan Chambers  <joncham@gmail.com>

        * libtest.c: Allocate memory for out string parameters.

        * pinvoke2.cs: Add tests for marshalling strings as out paramters.

        Code is contributed under MIT/X11 license.

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

16 years agoNew test.
Marek Safar [Thu, 24 Jan 2008 15:30:42 +0000 (15:30 -0000)]
New test.

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 15:30:29 +0000 (15:30 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

  * generic.cs: Do nullable type to null comparison optimization during
  resolve phase.

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

16 years agofixof #9723, Reenable getping/setping, fixed by jonasm
Vladimir Krasnov [Thu, 24 Jan 2008 14:32:00 +0000 (14:32 -0000)]
fixof #9723, Reenable getping/setping, fixed by jonasm

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

16 years agoshould be fixed now
Jb Evain [Thu, 24 Jan 2008 13:43:19 +0000 (13:43 -0000)]
should be fixed now

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

16 years agofix typo
Jb Evain [Thu, 24 Jan 2008 13:42:35 +0000 (13:42 -0000)]
fix typo

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

16 years ago2008-01-24 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Thu, 24 Jan 2008 12:45:29 +0000 (12:45 -0000)]
2008-01-24  Stephane Delcroix  <sdelcroix@novell.com>

* TimeZoneInfo.TransitionTime.cs: check for a whole number of
milliseconds instead of a whole number of seconds.

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

16 years ago* DataSourceCacheManager.cs: fixed GetKeyFromParameters, in case more than one dataso...
Vladimir Krasnov [Thu, 24 Jan 2008 12:40:41 +0000 (12:40 -0000)]
* DataSourceCacheManager.cs: fixed GetKeyFromParameters, in case more than one datasource using the same object with the same select method

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 10:32:23 +0000 (10:32 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

A test for bug #355163

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 10:31:50 +0000 (10:31 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

A fix for bug #355163
  * generic.cs: Enabled l-value resolve on nullable expressions.

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

16 years agoNew test.
Marek Safar [Thu, 24 Jan 2008 10:27:46 +0000 (10:27 -0000)]
New test.

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 10:18:06 +0000 (10:18 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

A fix for bug #353986
  * class.cs: Ingore static ctors with parameters for any further checks.

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 10:00:01 +0000 (10:00 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

A fix for bug #354310
  * namespace.cs: Removed redundant check.

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 09:49:31 +0000 (09:49 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

A test for bug #354928

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 09:49:03 +0000 (09:49 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

A fix for bug #354928
  * expression.cs: ElementInitializers can be resolved only once.

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

16 years agoMore tests.
Marek Safar [Thu, 24 Jan 2008 09:42:48 +0000 (09:42 -0000)]
More tests.

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

16 years agoNew tests.
Marek Safar [Thu, 24 Jan 2008 09:42:10 +0000 (09:42 -0000)]
New tests.

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

16 years ago2008-01-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 24 Jan 2008 09:41:53 +0000 (09:41 -0000)]
2008-01-24  Marek Safar  <marek.safar@gmail.com>

* convert.cs, ecore.cs, expression.cs, generic.cs: Implemented Coalesce and
Condition expressions.

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

16 years ago2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 24 Jan 2008 03:55:40 +0000 (03:55 -0000)]
2008-01-24  Atsushi Enomoto  <atsushi@ximian.com>

* TypeData.cs : fixed setter which did not actually see the argument.
* XmlTypeMapElementInfo.cs : some cosmetic fixes for gendarme-
  reported issues.

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

16 years agoIn System.Windows.Forms:
Geoff Norton [Thu, 24 Jan 2008 01:58:22 +0000 (01:58 -0000)]
In System.Windows.Forms:
2008-01-23  Geoff Norton  <gnorton@novell.com>

* XplatUICarbon.cs:  Ensure that windows are created in their initial
FormWindowState.  Finished fixing Fullscreen windows on Carbon

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

16 years agoIn System.Windows.Forms.CarbonInternal:
Geoff Norton [Thu, 24 Jan 2008 01:44:10 +0000 (01:44 -0000)]
In System.Windows.Forms.CarbonInternal:
* Cursor.cs: Expose the colors to avoid some warnings until we use them

2008-01-23  Geoff Norton  <gnorton@novell.com>

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

16 years ago2008-01-24 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 24 Jan 2008 01:16:04 +0000 (01:16 -0000)]
2008-01-24  Ivan N. Zlatev  <contact@i-nz.net>

 * DockEditor.cs: ITypeDescriptorContext.Instance doesn't
 contain the current value. It could contain the owner.
 Use the initial value parameter.

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

16 years agoSome fixes for Monodoc
Miguel de Icaza [Thu, 24 Jan 2008 00:54:58 +0000 (00:54 -0000)]
Some fixes for Monodoc

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

16 years agosvn path=/trunk/mcs/; revision=93754
Geoff Norton [Thu, 24 Jan 2008 00:52:07 +0000 (00:52 -0000)]
svn path=/trunk/mcs/; revision=93754

16 years agoIn .:
Geoff Norton [Thu, 24 Jan 2008 00:48:16 +0000 (00:48 -0000)]
In .:
* Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
* XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
it work again.  Handle HITTEST events.

2008-01-23  Geoff Norton  <gnorton@novell.com>

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

16 years agoIn .:
Geoff Norton [Thu, 24 Jan 2008 00:42:28 +0000 (00:42 -0000)]
In .:
2008-01-23  Geoff Norton  <gnorton@novell.com>

* System.Windows.Forms.dll.sources:  Add the Carbon Cursor.cs to the build.

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

16 years agoIn .:
Geoff Norton [Thu, 24 Jan 2008 00:41:41 +0000 (00:41 -0000)]
In .:
* MouseHandler.cs: Send HITTEST events.
* Cursor.cs: Initial support for Theme cursors.  Custom cursors not
quite yet.

2008-01-23  Geoff Norton  <gnorton@novell.com>

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

16 years agoFixes a crasher for #348767
Miguel de Icaza [Wed, 23 Jan 2008 23:40:23 +0000 (23:40 -0000)]
Fixes a crasher for #348767

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

16 years ago * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
Everaldo Canuto [Wed, 23 Jan 2008 23:04:09 +0000 (23:04 -0000)]
* MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
be used as grab_control. Also save status of capture before show ContextMenu
and restore it after close.

2008-01-23  Everaldo Canuto  <ecanuto@novell.com>

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

16 years ago2008-01-23 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 23 Jan 2008 22:55:46 +0000 (22:55 -0000)]
2008-01-23  Everaldo Canuto  <ecanuto@novell.com>

* Control.cs: Internal FindRootParent method added to return high control
in parent tree.

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

16 years agoIn System.Windows.Forms:
Geoff Norton [Wed, 23 Jan 2008 21:08:02 +0000 (21:08 -0000)]
In System.Windows.Forms:
2008-01-23  Geoff Norton  <gnorton@novell.com>

* XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
a crash in certain cases.  Support for fullscreen windows in certain cases.

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

16 years agoIn System.Drawing:
Geoff Norton [Wed, 23 Jan 2008 20:41:12 +0000 (20:41 -0000)]
In System.Drawing:
* carbonFunction.cs:  Remove some debug code.  Thanks spouliot.

2008-01-23  Geoff Norton  <gnorton@novell.com>

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

16 years agoFix some puzzling code
Raja R Harinath [Wed, 23 Jan 2008 20:18:02 +0000 (20:18 -0000)]
Fix some puzzling code

* class.c (mono_class_inflate_generic_method_full): Don't modify
iresult->context after cache check.

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

16 years agoIn System.Drawing:
Geoff Norton [Wed, 23 Jan 2008 20:02:04 +0000 (20:02 -0000)]
In System.Drawing:
* carbonFunctions.cs: Dont crash when we have an orphaned handle.

2008-01-23  Geoff Norton  <gnorton@novell.com>

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

16 years ago2008-01-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 23 Jan 2008 19:52:56 +0000 (19:52 -0000)]
2008-01-23  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_inflate_generic_method_full): Change the
struct assignments to memcpy for better visibility and add some comments.

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

16 years ago2008-01-23 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 23 Jan 2008 19:47:46 +0000 (19:47 -0000)]
2008-01-23  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
[Fixes bug #355703]

2008-01-23  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Add test for bug 355703.

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

16 years ago2008-01-23 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 23 Jan 2008 19:18:34 +0000 (19:18 -0000)]
2008-01-23  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutTest.cs: Set ClientSize to a known size to
make Bug355408 () WM independent.

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

16 years agoIn System.Windows.Forms:
Geoff Norton [Wed, 23 Jan 2008 18:42:54 +0000 (18:42 -0000)]
In System.Windows.Forms:

* XplatUICarbon.cs: Remove some dead code that was causing warnings.
2008-01-23  Geoff Norton  <gnorton@novell.com>

In System.Windows.Forms.CarbonInternal:
2008-01-23  Geoff Norton  <gnorton@novell.com>

* ControlHandler.cs: Remove some dead code that was causing warnings.

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

16 years agoIn System.Windows.Forms:
Geoff Norton [Wed, 23 Jan 2008 18:38:27 +0000 (18:38 -0000)]
In System.Windows.Forms:
2008-01-23  Geoff Norton  <gnorton@novell.com>

* XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.

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

16 years ago2008-01-23 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 23 Jan 2008 18:28:30 +0000 (18:28 -0000)]
2008-01-23  Everaldo Canuto  <ecanuto@novell.com>

* SplitContainer.cs: Remove unused declarations.
* Binding.cs: Remove unused declarations.

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