mono.git
18 years ago2006-02-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 21 Feb 2006 23:33:47 +0000 (23:33 -0000)]
2006-02-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* SerialPort.cs: Little work on support the Read methods.

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

18 years agoIt is not yet the right time to fix this bug.
Marek Safar [Tue, 21 Feb 2006 23:20:53 +0000 (23:20 -0000)]
It is not yet the right time to fix this bug.

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

18 years ago2006-02-21 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Tue, 21 Feb 2006 21:59:39 +0000 (21:59 -0000)]
2006-02-21  Marek Safar  <marek.safar@seznam.cz>

* String.cs (Equals): Optimized for speed.

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

18 years ago2006-02-21 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Tue, 21 Feb 2006 21:16:38 +0000 (21:16 -0000)]
2006-02-21  Marek Safar  <marek.safar@seznam.cz>

* NativeConvert.generated.cs: Removed duplicated CLSCompliant attribute.

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

18 years ago2006-02-21 Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Tue, 21 Feb 2006 21:09:01 +0000 (21:09 -0000)]
2006-02-21 Jelmer Vernooij <jelmer@samba.org>
* Test/tests/statements/AssignmentStatementsJ.vb: Add test that
demonstrates bug in incremental property assignment.

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 21:00:20 +0000 (21:00 -0000)]
2006-02-21  Atsushi Enomoto <atsushi@ximian.com>

* DTMXPathNavigator2.cs : removed valueBuilder field (create
  StringBuilder dynamically).

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 20:59:25 +0000 (20:59 -0000)]
2006-02-21  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
* XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 20:57:33 +0000 (20:57 -0000)]
2006-02-21  Atsushi Enomoto <atsushi@ximian.com>

* Iterator.cs : removed extra field from AxisIterator.

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

18 years ago2006-02-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 21 Feb 2006 20:31:26 +0000 (20:31 -0000)]
2006-02-21  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni): Fix writing past memory. Fixes #77613.

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

18 years ago2006-02-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 21 Feb 2006 20:20:37 +0000 (20:20 -0000)]
2006-02-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TermInfoDriver.cs: patch by Mike Hull that fixes bug #77518.

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 19:36:46 +0000 (19:36 -0000)]
2006-02-21  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 19:35:19 +0000 (19:35 -0000)]
2006-02-21  Atsushi Enomoto <atsushi@ximian.com>

* XmlDocument.cs : (ReadNodeCore) not public.

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

18 years agoTue Feb 21 19:56:55 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 Feb 2006 18:58:21 +0000 (18:58 -0000)]
Tue Feb 21 19:56:55 CET 2006 Paolo Molaro <lupus@ximian.com>

* inssel.brg: faster interface call implementation
to sync with the interface_offsets MonoVTable changes.

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

18 years agoTue Feb 21 19:55:11 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 Feb 2006 18:58:13 +0000 (18:58 -0000)]
Tue Feb 21 19:55:11 CET 2006 Paolo Molaro <lupus@ximian.com>

* class-internals.h, object.c: reduce the size of MonoVTable
and store the interface_offsets array at negative offsets.

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

18 years agoTue Feb 21 19:53:26 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 Feb 2006 18:54:29 +0000 (18:54 -0000)]
Tue Feb 21 19:53:26 CET 2006 Paolo Molaro <lupus@ximian.com>

* metadata.c: tweak table descriptors data structures to reduce
size and runtime relocations.

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

18 years agoAdded helper file.
Paolo Molaro [Tue, 21 Feb 2006 18:53:19 +0000 (18:53 -0000)]
Added helper file.

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 17:02:29 +0000 (17:02 -0000)]
2006-02-21  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter2.cs : (CloseStartElement)
  Avoid ArrayList.Clear() and culture-sensitive Contains().

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 15:39:10 +0000 (15:39 -0000)]
2006-02-21  Atsushi Enomoto <atsushi@ximian.com>

* XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
  which discards "overriden" namespaces.
* XmlTextWriter2.cs : fresh implementation.
  - The source structure is simplified and cleaner.
  - When outputting escaped string, output directly to TextWriter.
  - roughly 20% performance improvement.

  (Also fixed previous perf. evaluation excess in ChangeLog.)

* XmlReaderCommonTests.cs : added custom assertion overload that takes
  test label.
* XmlNodeReaderTests.cs : labeled some.
* XmlTextWriterTests.cs :
  Changed the semantics of AttributeNamespacesXmlnsXmlns() and
  removed NotDotNet (in contrast this test should fail with previous
  version of XmlTextWriter). See the code comment for details.
  Added WriteQualifiedNameXmlnsError().

* System.Xml.dll.sources : removed XmlTextWriterOpenElement.cs and
  XmlTextWriter.cs. Added XmlTextWriter2.cs, to be renamed to
  XmlTextWriter.cs in a few days or weeks.

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

18 years ago2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 21 Feb 2006 15:25:32 +0000 (15:25 -0000)]
2006-02-21  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializer.cs: Fix the previous fix.

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

18 years agoTue Feb 21 14:52:13 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 Feb 2006 13:53:09 +0000 (13:53 -0000)]
Tue Feb 21 14:52:13 CET 2006 Paolo Molaro <lupus@ximian.com>

* marshal.c: fix some types and opcodes to be type-safe
in marshaling wrappers.

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

18 years ago2006-02-21 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 21 Feb 2006 13:30:12 +0000 (13:30 -0000)]
2006-02-21  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializer.cs: Added option to avoid falling back to the
interpreted serializer if the code generator fails. To be used
in the test suite.

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

18 years ago* metadata.h (mono_metadata_decode_signed_value): Add declaration.
Ankit Jain [Tue, 21 Feb 2006 13:17:28 +0000 (13:17 -0000)]
* metadata.h (mono_metadata_decode_signed_value): Add declaration.

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

18 years ago* get.c (can_print_generic_param_name): Rename to ..
Ankit Jain [Tue, 21 Feb 2006 13:01:36 +0000 (13:01 -0000)]
* get.c (can_print_generic_param_name): Rename to ..
(cant_print_generic_param_name): .. this, to match function name with behavior.

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

18 years ago* metadata.c (get_constraints): Relax debugging checks for monodis.
Raja R Harinath [Tue, 21 Feb 2006 12:09:31 +0000 (12:09 -0000)]
* metadata.c (get_constraints): Relax debugging checks for monodis.

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

18 years ago2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 21 Feb 2006 11:33:33 +0000 (11:33 -0000)]
2006-02-21  Atsushi Enomoto  <atsushi@ximian.com>

* Uri.cs : seems like Uri opreator == and != are case sensitive.

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

18 years agoIn mono/dis:
Ankit Jain [Tue, 21 Feb 2006 10:00:25 +0000 (10:00 -0000)]
In mono/dis:
* get.c (mono_generic_params_with_ambiguous_names): New.
(generic_containers): New. Hashtable of all generic containers that have
been checked for ambiguous params.
(check_ambiguous_genparams): New. Walk a MonoGenericContainer
and fill mono_generic_params_with_ambiguous_names table.
(is_ambiguous_generic_param): New. Check whether a MonoGenericParam has
ambiguous names.
(dis_stringify_type): Use new is_ambiguous_generic_param to determine
whether to print number or name for VAR/MVAR.

In mono/metadata:
* metadata.c (mono_metadata_load_generic_params): Move the code
checking for ambiguous generic params from here to mono/dis/get.c
* metadata-internals.h (mono_generic_params_with_ambiguous_names): Remove.

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

18 years agoFix assertion triggered when compiling nemerle.
Raja R Harinath [Mon, 20 Feb 2006 20:21:24 +0000 (20:21 -0000)]
Fix assertion triggered when compiling nemerle.
* class.c (mono_get_shared_generic_inst): Rename from
get_shared_inst and make non-static.
* loader.c (mono_get_shared_generic_method): New.  Used to create
the MonoGenericContext-equivalent of a MonoGenericContainer.
(mono_get_method_from_token): Initialize the 'context' field of
the created MonoGenericContainer.
* reflection.c (reflection_methodbuilder_to_mono_method): Likewise.
* metadata.c (get_constraints): Add sanity check.
* class-internals.h: Add new internal methods.

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

18 years ago* reflection.c (verify_safe_for_managed_space): New sanity check.
Raja R Harinath [Mon, 20 Feb 2006 20:02:41 +0000 (20:02 -0000)]
* reflection.c (verify_safe_for_managed_space): New sanity check.
Currently checks that owner-less generic parameters aren't allowed
in managed space.
(mono_type_get_object): Use it.
* icall.c (ves_icall_MonoType_GetGenericArguments): Remove checks
that are now in mono_type_get_object.
(ves_icall_MonoMethod_GetGenericArguments): Likewise.

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

18 years ago2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 20 Feb 2006 19:48:12 +0000 (19:48 -0000)]
2006-02-20  Atsushi Enomoto <atsushi@ximian.com>

* XmlElement.cs : make use of HasAttributes. Remove extra check.
  10% speed improvement.

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

18 years ago2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 20 Feb 2006 18:48:47 +0000 (18:48 -0000)]
2006-02-20  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs : added Source XmlReader property for
  XsdValidatingReader use (see XsdValidatingReader change as well).

* XsdValidatingReader.cs : when DTD did not appear in
  DTDValidatingReader, it almost makes no sense to use it, so just
  use its internal EntityResolvingXmlReader (it is required to
  detect "undeclared entity in use" well-formedness violation).
  It could double processing speed (or more).

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

18 years agofixed AreEqualAttribs to make attribute compare case insensitive
Vladimir Krasnov [Mon, 20 Feb 2006 17:10:07 +0000 (17:10 -0000)]
fixed AreEqualAttribs to make attribute compare case insensitive

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

18 years ago* ListControl.cs: fixed DataSource property, to throw
Vladimir Krasnov [Mon, 20 Feb 2006 16:29:28 +0000 (16:29 -0000)]
* ListControl.cs: fixed DataSource property, to throw
ArgumentException on incorrect value

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

18 years agoImage.cs: fixed missing border="0" attribute, when image has style, but border width...
Vladimir Krasnov [Mon, 20 Feb 2006 16:09:20 +0000 (16:09 -0000)]
Image.cs: fixed missing border="0" attribute, when image has style, but border width is not specified.

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

18 years ago* CheckBox.cs: fixed InternalAddAttributesToRender, Render to
Vladimir Krasnov [Mon, 20 Feb 2006 15:45:42 +0000 (15:45 -0000)]
* CheckBox.cs: fixed InternalAddAttributesToRender, Render to
correct the "disabled" attribute in CheckBoxList
* CheckBoxList.cs: fixed RenderItem, to correct the "disabled" attribute in CheckBoxList

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

18 years agoCheckBox.cs: fixed Render function, removed rendering of empty <span> element if...
Vladimir Krasnov [Mon, 20 Feb 2006 15:01:46 +0000 (15:01 -0000)]
CheckBox.cs: fixed Render function, removed rendering of empty  <span> element if ControlStyleCreated but it's empty.
fixed "disabled" attribute, it should be placed into span element

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

18 years ago2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 20 Feb 2006 15:00:34 +0000 (15:00 -0000)]
2006-02-20  Atsushi Enomoto <atsushi@ximian.com>

* EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
  in get_NodeType() entity reader existence check is faster.
* DTDValidatingReader2.cs : IsDefault could be avoided.

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

18 years agoBoundColumn.cs: fixed InitializeCell function, if DataField is null or empty string...
Vladimir Krasnov [Mon, 20 Feb 2006 14:43:58 +0000 (14:43 -0000)]
BoundColumn.cs: fixed InitializeCell function, if DataField is null or empty string, the cell should not be bound.

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

18 years ago2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 20 Feb 2006 14:35:40 +0000 (14:35 -0000)]
2006-02-20  Atsushi Enomoto <atsushi@ximian.com>

* XmlNodeReaderImpl.cs : optimized Depth.

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

18 years agoIn ilasm/tests:
Ankit Jain [Mon, 20 Feb 2006 13:03:47 +0000 (13:03 -0000)]
In ilasm/tests:
* generics-al.i, test-29.il: Remove. These use invalid style of
specifying generic constraints.

In ilasm/scanner:
* ILTable.cs (directives): Remove .constraint

In ilasm/parser:
* ILParser.jay: Remove D_CONSTRAINT

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

18 years ago2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 20 Feb 2006 13:02:16 +0000 (13:02 -0000)]
2006-02-20  Atsushi Enomoto <atsushi@ximian.com>

* XmlValidatingReader.cs : reducing layered ReadState invocation
  results in 10% speed up.

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

18 years agoDisplay error messages instead of stack traces.
Ankit Jain [Mon, 20 Feb 2006 12:31:13 +0000 (12:31 -0000)]
Display error messages instead of stack traces.

In ilasm/codegen:
2006-02-20  Ankit Jain  <jankit@novell.com>

* *.cs: Update all .cs files to use Report.Error instead of directly
throwing an exception.
* CodeGen.cs (CodeGen.ctor): Remove 'report' param, and the related
field & property.

In ilasm:
2006-02-20  Ankit Jain  <jankit@novell.com>

* Report.cs (Report): Make all methods,fields static.
(Report.Error): Update to throw ILAsmException.
(ILAsmException): New.
(InternalErrorException): New. Derive from ILAsmException.
* Driver.cs (Driver.Run): Catch ILAsmException and PEFileException and
print error messages instead of dumping the stack trace, and delete the
output file if CodeGen.Write() fails.
Move the check for entrypoint from CodeGen.Write to here.

In ilasm/scanner:
2006-02-20  Ankit Jain  <jankit@novell.com>

* ILTokenizingException.cs (ILTokenizingException): Derive from
ILAsmException.

In ilasm/parser:
2006-02-20  Ankit Jain  <jankit@novell.com>

* ILParser.jay: Update to use Report.Error instead of directly throwing
an exception.

In class/PEAPI:
2006-02-20  Ankit Jain  <jankit@novell.com>

* PEAPI.cs (PEFileException): Update error message.
* Metadata.cs: Update to throw PEFileException instead of Exception.

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

18 years ago2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 20 Feb 2006 12:18:54 +0000 (12:18 -0000)]
2006-02-20  Atsushi Enomoto <atsushi@ximian.com>

* XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
  - reduced call to NextSibling which is very unlikely to be inlined
  - reorganized conditioning to avoid extra check
  - added description on each returning branch.
  - And then, removed unused code.
  It is 1.5x faster than before.

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

18 years agoMon Feb 20 11:19:54 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 20 Feb 2006 10:20:48 +0000 (10:20 -0000)]
Mon Feb 20 11:19:54 CET 2006 Paolo Molaro <lupus@ximian.com>

* MonoType.cs: patch from Joachim Ante <joe@otee.dk> to
improve error messages.

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

18 years agoMon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 20 Feb 2006 09:38:29 +0000 (09:38 -0000)]
Mon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: more verification checks.

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

18 years ago2006-02-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 19 Feb 2006 18:09:33 +0000 (18:09 -0000)]
2006-02-19  Zoltan Varga  <vargaz@gmail.com>

* CodeDomProvider.cs: Fix the [ToolboxItem] attribute. Fixes #77513.

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

18 years agofollow JDBC provider generic adapter mechanism
Konstantin Triger [Sun, 19 Feb 2006 18:05:18 +0000 (18:05 -0000)]
follow JDBC provider generic adapter mechanism

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

18 years agoadded JDBC provider generic adapter mechanism
Konstantin Triger [Sun, 19 Feb 2006 17:30:11 +0000 (17:30 -0000)]
added JDBC provider generic adapter mechanism

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

18 years ago* ExternTable.cs (ExternTable.GetModuleTypeRef): 'module_table' can be
Ankit Jain [Sun, 19 Feb 2006 14:49:12 +0000 (14:49 -0000)]
* ExternTable.cs (ExternTable.GetModuleTypeRef): 'module_table' can be
null.

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

18 years agoIn ilasm/tests:
Ankit Jain [Sun, 19 Feb 2006 13:59:36 +0000 (13:59 -0000)]
In ilasm/tests:
* invalid-method.il: New. Reference to undefined method.
* invalid-field.il: New. Reference to undefined field.

In ilasm/codegen:
* CodeGen.cs (CodeGen.Write): Use only filename as the name of the
module.
* TypeDef.cs (TypeDef.ResolveAsMethodRef): New.
(TypeDef.ResolveMethod): Change signature to take ret_type, params
etc instead of a signature string. Also, if the method does not exist,
then use ResolveAsMethodRef to return a MethodRef for it.
(TypeDef.ResolveVarargMethod): Likewise.
(TypeDef.ResolveField): Likewise.
* MethodRef.cs (MethodRef.Resolve): Update use of TypeDef.Resolve*
methods.
* FieldRef.cs (FieldRef.Resolve): Update use of TypeDef.ResolveField.
* PropertyDef.cs (PropertyDef.AsMethodDef): Throws an exception is the
method is not a MethodDef.
(PropertyDef.Define): Use AsMethodDef to ensure that get/set/other are
MethodDefs.
* EventDef.cs (EventDef.AsMethodDef): Same as PropertyDef.
(EventDef.Define): Likewise.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Sun, 19 Feb 2006 10:40:06 +0000 (10:40 -0000)]
In ilasm/codegen:
* CodeGen.cs (CodeGen.ThisModule): New.
(CodeGen.Write): Set module name if not set by '.module' directive.
* Module.cs: Inherit from ExternRef.

In class/PEAPI:
* Metadata.cs (Module): Implment IExternRef to allow reference to types
in 'this' module.

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

18 years ago* metadata.c (mono_type_create_from_typespec): Rename from
Raja R Harinath [Sun, 19 Feb 2006 07:31:38 +0000 (07:31 -0000)]
* metadata.c (mono_type_create_from_typespec): Rename from
mono_type_create_from_typespec_full.  Remove MonoGenericContainer*
argument and caching of types in the generic container.
(unwrap_arrays, find_generic_param): Remove.
* metadata-internals.h: Update.
* class-internals.h (_MonoGenericContainer): Remove 'types' field.

The last in the series of cleanups to typespec handling.  The caching
of types in the generic container was buggy wrt byref types, and the
only call-site of this function is prepared to handle owner-less
generic params/insts.

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

18 years ago2006-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 18 Feb 2006 22:04:32 +0000 (22:04 -0000)]
2006-02-18  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_get_exception_for_failure): Fix a warning.

* marshal.c (mono_marshal_emit_native_wrapper): Handle FNPTR args and
return values. Fixes #77581.

* class.c (mono_fnptr_class_get): Switch name and name_space.

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

18 years ago2006-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 18 Feb 2006 20:36:41 +0000 (20:36 -0000)]
2006-02-18  Zoltan Varga  <vargaz@gmail.com>

* libtest.c pinvoke2.cs: Add tests for asany marshalling and directional
attributes.

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

18 years ago2006-02-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 18 Feb 2006 20:36:03 +0000 (20:36 -0000)]
2006-02-18  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_asany): Fix marshalling of blittable formatted
classes and add support for [In, Out] attributes.
(mono_marshal_free_asany): Ditto. Fixes #77524.

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

18 years ago2006-02-18 Duncan Mak <duncan@novell.com>
Duncan Mak [Sat, 18 Feb 2006 19:35:35 +0000 (19:35 -0000)]
2006-02-18  Duncan Mak  <duncan@novell.com>

* Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
possible IndexOutOfRangeException.

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

18 years ago* Uri.cs (InternalEquals): New helper.
Raja R Harinath [Sat, 18 Feb 2006 19:01:42 +0000 (19:01 -0000)]
* Uri.cs (InternalEquals): New helper.
(Equals, operator ==): Use it.
(operator !=): Likewise.  Fix to actually compare operands.

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

18 years agoDisable Mono.C5 in 'make check'.
Raja R Harinath [Sat, 18 Feb 2006 18:35:41 +0000 (18:35 -0000)]
Disable Mono.C5 in 'make check'.

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

18 years ago* DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
Raja R Harinath [Sat, 18 Feb 2006 18:23:45 +0000 (18:23 -0000)]
* DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
_dictionary, not 'this' in cast.

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

18 years ago* DbConnectionStringBuilderTest.cs
Raja R Harinath [Sat, 18 Feb 2006 17:56:59 +0000 (17:56 -0000)]
* DbConnectionStringBuilderTest.cs
(ICollectionCopyToTest, NegICollectionCopyToTest): Enable.
(IDictionaryCopyToTest, NegIDictionaryCopyToTest): Delete.

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

18 years ago2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 18 Feb 2006 16:40:11 +0000 (16:40 -0000)]
2006-02-18  Atsushi Enomoto  <atsushi@ximian.com>

* CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
  outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
  ReadOnly properties. This fixes bug #77576.

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

18 years ago* get.c (get_typespec): Don't use mono_type_create_from_typespec_full().
Raja R Harinath [Sat, 18 Feb 2006 16:35:17 +0000 (16:35 -0000)]
* get.c (get_typespec): Don't use mono_type_create_from_typespec_full().
Use get_type() instead.
(get_type): Add 'is_def' parameter.
(get_field_signature, get_ret_type, get_param): Update.
* dump.c (dump_table_property): Likewise.
* get.h (get_type): Update prototype.

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

18 years ago* class.c (mono_class_from_generic_parameter): Make more robust to
Raja R Harinath [Sat, 18 Feb 2006 16:24:57 +0000 (16:24 -0000)]
* class.c (mono_class_from_generic_parameter): Make more robust to
incomplete MonoGenericContainers from monodis.

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

18 years ago* TypeTest.cs (ByrefType): New.
Raja R Harinath [Sat, 18 Feb 2006 06:01:34 +0000 (06:01 -0000)]
* TypeTest.cs (ByrefType): New.

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

18 years ago2006-02-18 Alp Toker <alp@atoker.com>
Alp Toker [Sat, 18 Feb 2006 03:33:01 +0000 (03:33 -0000)]
2006-02-18  Alp Toker  <alp@atoker.com>

* UnixEndPoint.cs: Avoid truncation of last two bytes of SocketAddress
string

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

18 years agoIn System.Data.OleDb:
Chris Toshok [Fri, 17 Feb 2006 20:34:22 +0000 (20:34 -0000)]
In System.Data.OleDb:
* OleDbDataAdapter.cs, OleDbCommand.cs, OleDbParameter.cs,
OleDbCommandBuilder.cs, OleDbConnection.cs: remove
DataSysDescriptions for >= 2.0.

2006-02-17  Chris Toshok  <toshok@ximian.com>

In System.Data.SqlClient:
* SqlCommand.cs, SqlCommandBuilder.cs, SqlConnection.cs,
SqlDataAdapter.cs: remove DataSysDescription attributes for >= 2.0

2006-02-17  Chris Toshok  <toshok@ximian.com>

In System.Data:
* System.Data/DataSet.cs, System.Data/DataView.cs,
System.Data/ForeignKeyConstraint.cs,
System.Data/DataViewManager.cs, System.Data/DataRow.cs,
System.Data/DataSysDescriptionAttribute.cs,
System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
System.Data/DataRelation.cs: lots of attribute work, removing
DataSysDescription atributes (and marking the class obsolete) for
2.0.

2006-02-17  Chris Toshok  <toshok@ximian.com>

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 20:11:29 +0000 (20:11 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataAdapter.cs: more 2.0 cleanup.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 19:49:17 +0000 (19:49 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataAdapter.cs, DataColumnMappingCollection.cs,
DataColumnMapping.cs, DataTableMappingCollection.cs,
DataTableMapping.cs, DbCommandBuilder.cs,
DbConnectionStringBuilder.cs, DbParameterCollection.cs,
DbParameter.cs: pretty major attribute work.

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

18 years agoUpdates.
Paolo Molaro [Fri, 17 Feb 2006 19:09:05 +0000 (19:09 -0000)]
Updates.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 19:03:46 +0000 (19:03 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* XmlElement.cs : NextSibling could be effectively computed using
  LastLinkedChild, beyond previous XmlLinkedNode optimization.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:52:44 +0000 (18:52 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataAdapterException.cs: remove this file.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:52:33 +0000 (18:52 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* System.Data.dll.sources: remove
System.Data/DataAdapterException.cs, and add
System.Data.Common/SupportedJoinOperators.cs.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:50:48 +0000 (18:50 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbProviderFactory.cs: remove two methods.  and mark the
DbProviderSupportedClasses ctor as internal since it's not part of
the public api.

* DbTable.cs: remove this class from 2.0 build.. leave it for the
JVM build, I guess?

* RowUpdatingEventArgs.cs: this class isn't abstract in 2.0.

* RowUpdatedEventArgs.cs: this class isn't abstract in 2.0.

* SupportedJoinOperators.cs: new 2.0 enum.

* CatalogLocation.cs: fix enum values.

* GroupByBehavior.cs: same.

* IdentifierCase.cs: same.

* SchemaTableColumn.cs: class is static, not sealed.  and add
missing elements.

* SchemaTableOptionalColumn.cs: same.

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

18 years agoFri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 17 Feb 2006 18:48:13 +0000 (18:48 -0000)]
Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: added a few more verification checks.

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

18 years agoFri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 17 Feb 2006 18:46:56 +0000 (18:46 -0000)]
Fri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>

* class-internals.h: added some more exception types.
* class.c, metadata.c: added a few checks to handle missing
types.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 18:37:58 +0000 (18:37 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* XmlLinkedNode.cs : In NextSibling, use LastChild directly.
  It improves NextSibling performance in bulky document.

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

18 years agoFix compilation.
Paolo Molaro [Fri, 17 Feb 2006 18:29:29 +0000 (18:29 -0000)]
Fix compilation.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:21:25 +0000 (18:21 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataTableReader.cs: Switch to the (bool) form of Dispose to
override, as the no-arg form isn't virtual.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:20:46 +0000 (18:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataReaderBase.cs: Switch to the (bool) form of Dispose to
override, as the no-arg form isn't virtual.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:20:02 +0000 (18:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataReader.cs: oops, add back in VisibleFieldCount (i missed
it in the corcompare output), add EditorBrowsable attributes all
over the place, and fix some method signatures.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 18:19:23 +0000 (18:19 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
  it in Read(). Simply use state field in EOF. They result in 20%
  perf. boost. Expanding EOF also improved performance by 2-3%
  (mono --optimize=inline might work in the later stage).

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 18:18:55 +0000 (18:18 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* Constraint.cs: #ifdef out more DataSysDescriptions.

* ConstraintException.cs: add ..ctor (string, Exception) for 2.0.

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

18 years ago2006-02-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Feb 2006 18:17:56 +0000 (18:17 -0000)]
2006-02-17  Zoltan Varga  <vargaz@gmail.com>

* DynamicMethod.cs: Implement DefineParameter ().

* ParameterBuilder.cs: Add support for DynamicMethod parents.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 17:47:13 +0000 (17:47 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs : more refactoring. Split ReadContent()
  into some methods. Reduced some extra MoveToElement().

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:20:53 +0000 (17:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.

* AdapterMappingException.cs: nuke this file.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:20:26 +0000 (17:20 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* System.Data.dll.sources: remove
System.Data/AdapterMappingException.cs.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:12:20 +0000 (17:12 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
remove these 2.0 files.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:12:06 +0000 (17:12 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataUpdatableRecord.cs: remove this 2.0 file.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:10:41 +0000 (17:10 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* System.Data.dll.sources: remove IDbAsyncConnection.cs,
IDbAsyncCommand.cs, IGetTypedData.cs, ISetTypedData.cs,
IDataReader2.cs, IDataSources.cs, IDbExecutionContext.cs,
IDataRecord2.cs, IDataUpdatableRecord.cs, and
DbDataUpdatableRecord.cs from the build.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:06:24 +0000 (17:06 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* InvalidUdtException.cs: fix namespace typo, and mark all ctors
as internal (since none are public in corcompare.)

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

18 years ago* mini-s390x.c, mini-s390x.h: Check for presence of long displacement
Neale Ferguson [Fri, 17 Feb 2006 17:05:52 +0000 (17:05 -0000)]
* mini-s390x.c, mini-s390x.h: Check for presence of long displacement
facility on the processor and use it if available.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 17:03:36 +0000 (17:03 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs : more refactoring. Removed and simplified
  some error check. String += would be enough for entity-reference-
  mixed attributes which rarely happen, so simplify the code.
  Added comments on how the fields are used.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 17:01:44 +0000 (17:01 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* OleDbCommand.cs: remove extra using System.Data.  fixes warning.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:57:38 +0000 (16:57 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* StorageState.cs: correct namespace, and remove "Delayed"
element.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:57:19 +0000 (16:57 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* SqlNotificationRequest.cs: class is sealed, and s/id/userData
and s/service/options.

* SqlDataSourceEnumerator.cs: ctor is private (for use with
Instance property, which is currently not implemented.)  Also,
remove set_Instance.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:46:03 +0000 (16:46 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* ConstraintCollection.cs: in 2.0, class is not serializable and
is sealed.  make all the "virtuals" #if !NET_2_0 as well.

* Constraint.cs: not serializable in 2.0.

* DataColumnCollection.cs: in 2.0, class is not serializable and
is sealed.  make all the "virtuals" #if !NET_2_0 as well.

* DataRelationCollection.cs: not serializable in 2.0.

* DataRelation.cs: not serializable in 2.0.

* DataRowBuilder.cs: class is sealed in 2.0.

* DataRowCollection.cs: in 2.0, class is not serialized and is
sealed.  Also, Add isn't virtual in 2.0 (as the class is sealed).

* DataRow.cs: not serializable in 2.0.

* DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
and s/GetDataReader/CreateDataReader.

* DataTableCollection.cs: in 2.0, class is not serializable and is
sealed.  make all the "virtuals" #if !NET_2_0 as well.

* DataTableReader.cs: remove VisibleFieldCount property.

* DataViewSettingCollection.cs: not serializable in 2.0.

* DataViewSetting.cs: not serializable in 2.0.

* ForeignKeyConstraint.cs: serializable in 2.0.

* OperationAbortedException.cs: class is sealed and serializable.

* PropertyCollection.cs: serializable in 2.0.

* StatementCompletedEventArgs.cs: class is sealed.

* UniqueConstraint.cs: not serializable in 2.0.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:45:44 +0000 (16:45 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* DbDataReader.cs: remove VisibleFieldCount attribute, and remove
IDataReader2 and IDataRecord2 interfaces.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:45:25 +0000 (16:45 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* SqlDataReader.cs: remove VisibleFieldCount property.

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

18 years ago2006-02-17 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 17 Feb 2006 16:45:10 +0000 (16:45 -0000)]
2006-02-17  Chris Toshok  <toshok@ximian.com>

* OdbcDataReader.cs: remove VisibleFieldCount property.

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

18 years ago2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 17 Feb 2006 16:07:12 +0000 (16:07 -0000)]
2006-02-17  Atsushi Enomoto <atsushi@ximian.com>

* DTDValidatingReader2.cs : attribute node simplification. It now
  stores attribute node slots, including default attributes for
  further refactoring.

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

18 years ago2006-02-17 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 17 Feb 2006 15:51:28 +0000 (15:51 -0000)]
2006-02-17  Dick Porter  <dick@ximian.com>

        * handles-private.h:
        * handles.c: Check handle values passed to array lookups.  Fixes
        bug 77572.

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