mono.git
19 years ago2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Mar 2005 10:25:58 +0000 (10:25 -0000)]
2005-03-03  Atsushi Enomoto  <atsushi@ximian.com>

* XslStylesheet.cs, XslTransformProcessor.cs : exclude-element-prefix
  in stylesheet should be considered in TryElementNamespacesOutput().
  ParseQNameListAttribute() is not properly working for filling
  namespaces.

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

19 years ago * Binding.cs: Bind to <Property>Changed events so we can detect
Jackson Harper [Thu, 3 Mar 2005 10:19:14 +0000 (10:19 -0000)]
* Binding.cs: Bind to <Property>Changed events so we can detect
when properties are changed and update the data.

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

19 years ago * ReflectionEventDescriptor.cs: Bind handlers to the actual event so that
Jackson Harper [Thu, 3 Mar 2005 10:08:57 +0000 (10:08 -0000)]
* ReflectionEventDescriptor.cs: Bind handlers to the actual event so that
the delegates get invoked when the methods are.

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

19 years ago2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Mar 2005 09:25:16 +0000 (09:25 -0000)]
2005-03-03  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : For duplicating namespace mapping, it should
  create another prefix without throwing an exception.

* XmlTextWriterTests.cs : added testcase for duplicating namespace
  mapping processing (should create another prefix, not exception).

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

19 years ago* decl.cs (DeclSpace.LookupType): Remove 'silent' argument. Move
Raja R Harinath [Thu, 3 Mar 2005 08:41:58 +0000 (08:41 -0000)]
* decl.cs (DeclSpace.LookupType): Remove 'silent' argument.  Move
CS0246 check to users who passed 'silent = false'.
* ecore.cs (TypeLookupExpression.DoResolveAsTypeStep): Add CS0246
check.
(SimpleName.SimpleNameResolve): Update.
* expression.cs (ComposedCast.DoResolveAsTypeStep): Add CS0246 check.
(MemberAccess.IdenticalNameAndTypeName): Update.
* doc.cs (FindDocumentedTypeNonArray): Update.

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

19 years ago2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Mar 2005 08:19:31 +0000 (08:19 -0000)]
2005-03-03  Atsushi Enomoto  <atsushi@ximian.com>

* XslElement.cs : reject incorrectly qualified name attribute.

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

19 years ago * EventDescriptorCollection.cs: Handle null in the constructor properly.
Jackson Harper [Thu, 3 Mar 2005 07:27:07 +0000 (07:27 -0000)]
* EventDescriptorCollection.cs: Handle null in the constructor properly.

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

19 years ago* codegen.cs (EmitContext): Remove ResolvingTypeTree.
Raja R Harinath [Thu, 3 Mar 2005 06:38:35 +0000 (06:38 -0000)]
* codegen.cs (EmitContext): Remove ResolvingTypeTree.
* parameters.cs (ComputeAndDefineParameters): Remove.
* decl.cs (ResolveBaseTypeExpr): Don't set ResolvingTypeTree.
* delegate.cs (Define): Don't invoke ComputeAndDefineParameters.
Use GetParameterInfo.

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

19 years agoIn System.Data.ProviderBase:
Sureshkumar T [Thu, 3 Mar 2005 04:30:14 +0000 (04:30 -0000)]
In System.Data.ProviderBase:
2005-03-02  Sureshkumar T  <tsureshkumar@novell.com>

* DbConnectionBase.cs: CreateDbCommand: assign connection to the
created command.

In .:
2005-03-02  Sureshkumar T  <tsureshkumar@novell.com>

* System.Data.dll.sources: Added
System.Data.SqlClient/SqlConnectionFactory.cs.

In System.Data.SqlClient:
2005-03-03  Sureshkumar T  <tsureshkumar@novell.com>

* SqlClientFactory.cs: While creating command, create using
DbConnectionFactory as DbConnectionBase.CreateDbCommand needs to
have a connection factory.

* SqlConnection.cs: Added an internal constructor which takes
DbConnectionFactory.

* SqlConnectionFactory.cs: Added. Concrete class for abstract
factory DbConnectionFactory.

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

19 years ago2005-03-02 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 3 Mar 2005 04:27:41 +0000 (04:27 -0000)]
2005-03-02  Chris Toshok  <toshok@ximian.com>

* corlib.dll.sources: add DebuggerBrowsableState,
DebuggerBrowsableAttribute, DebuggerDisplayAttribute, and
DebuggerTypeProxyAttribute.

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

19 years ago2005-03-02 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 3 Mar 2005 04:24:32 +0000 (04:24 -0000)]
2005-03-02  Chris Toshok  <toshok@ximian.com>

        * DebuggerTypeProxyAttribute.cs, DebuggerBrowsableState.cs,
        DebuggerDisplayAttribute.cs, DebuggerBrowsableAttribute: first cut
        at 3/4 of the .net 2.0 debugger attributes.

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

19 years ago2005-03-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 2 Mar 2005 21:33:12 +0000 (21:33 -0000)]
2005-03-03  Sebastien Pouliot  <sebastien@ximian.com>

* cas4-5.cs: Removed. Replaced by new refcas#.cs tests.
* refcas1-5.cs: New. CAS test cases for reflection.
* Makefile: Update to build/execute new tests.
* README: Updated with new tests descriptions.

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

19 years agosvn path=/trunk/mono/; revision=41375
Sebastien Pouliot [Wed, 2 Mar 2005 21:29:56 +0000 (21:29 -0000)]
svn path=/trunk/mono/; revision=41375

19 years ago2005-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 2 Mar 2005 20:20:16 +0000 (20:20 -0000)]
2005-03-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* SessionStateModule.cs:
* SessionId.cs: share the same RNG for all the instances of
SessionStateModule.

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

19 years ago2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Mar 2005 19:02:39 +0000 (19:02 -0000)]
2005-03-02  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : LookupPrefix() should not return those prefix
  that is overriden by another xmlns declaration.

* XmlTextWriterTests.cs : Added test for LookupPrefix() for
  overriden prefix.

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

19 years ago2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Mar 2005 17:46:17 +0000 (17:46 -0000)]
2005-03-02  Atsushi Enomoto  <atsushi@ximian.com>

* XslElement.cs : name should be splitted regardless of "namespace"
  attribute existence. Removed XPathNavigatorNsm dependency.

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

19 years ago2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Mar 2005 17:32:36 +0000 (17:32 -0000)]
2005-03-02  Atsushi Enomoto  <atsushi@ximian.com>

* XslElement.cs : We throw exception when element name is resolved as
  invalid cname, so it should not ignore such name like ":foo".
  Fixed ambiguous error message. Removed unused code.

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

19 years ago2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Mar 2005 17:13:55 +0000 (17:13 -0000)]
2005-03-02  Atsushi Enomoto  <atsushi@ximian.com>

* XslStylesheet.cs : included stylesheet could be literal result
  element as stylesheet (see the spec 2.6.1).

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

19 years ago2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Mar 2005 16:32:36 +0000 (16:32 -0000)]
2005-03-02  Atsushi Enomoto  <atsushi@ximian.com>

* GenericOutputter.cs : On WriteStartElement(), prefix should be an
  empty string when nsURI is empty.
* HtmlEmitter.cs : non-HTML elements in default namespace are treated
  unlike xml but like span, as written in the spec 16.2.

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

19 years agoNew test for #73023.
Martin Baulig [Wed, 2 Mar 2005 16:31:04 +0000 (16:31 -0000)]
New test for #73023.

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

19 years ago2005-03-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Mar 2005 16:30:29 +0000 (16:30 -0000)]
2005-03-02  Martin Baulig  <martin@ximian.com>

* decl.cs (DeclSpace.SetParameterInfo): Make this virtual.

* class.cs (ClassPart.SetParameterInfo): Override this.
(PartialContainer.SetParameterInfo): Override this.
(TypeContainer.CheckConstraints): New protected method.
(PartialContainer.CheckConstraints): Override this and check
whether the same contraints were specified in all parts of a
partial generic type definition.
(PartialContainer.UpdateConstraints): New public method.

* generic.cs (TypeParameter.UpdateConstraints): New public method.

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

19 years ago2005-03-02 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 2 Mar 2005 16:25:00 +0000 (16:25 -0000)]
2005-03-02  Marek Safar  <marek.safar@seznam.cz>

* report.cs (StaticClass.DefineContainerMembers): Add warning 628.

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

19 years ago2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Mar 2005 16:22:58 +0000 (16:22 -0000)]
2005-03-02  Atsushi Enomoto  <atsushi@ximian.com>

* XslCompiledContext.cs, XslTransformProcessor.cs,
  XslElement.cs, XslCopyOf.cs, XslLiteralElement.cs, XslCopy.cs :

  According to errata E25, those namespaces 1) that has the same
  name as current element's prefix, or an empty name when current
  element's namespace URI is empty, are not written to output.
  So added current element information to XPathContext and added
  prefix parameter to PushElementState(), added xsl:copy check to
  TryElementNamespacesOutput().
  http://www.w3.org/1999/11/REC-xslt-19991116-errata/

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

19 years agoadded XML_DEP for ConnectionStrings property.
Sureshkumar T [Wed, 2 Mar 2005 15:47:08 +0000 (15:47 -0000)]
added XML_DEP for ConnectionStrings property.

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

19 years agoUnify DeclSpace.LookupType and DeclSpace.FindType.
Raja R Harinath [Wed, 2 Mar 2005 15:31:50 +0000 (15:31 -0000)]
Unify DeclSpace.LookupType and DeclSpace.FindType.
* decl.cs (DeclSpace.FindNestedType): New virtual function.  This
is in charge of defining nested types on demand.
(DeclSpace.LookupType): Use it when the current_type is a
TypeBuilder.  Use LookupTypeDirect for reflected types.
(DeclSpace.FindType): Remove.
(DeclSpace.LookupInterfaceOrClass): Likewise.
(DeclSpace.DefineTypeAndParents): Likewise.
* ecore.cs (SimpleName.ResolveAsTypeStep): Just call
DeclSpace.LookupType.
* doc.cs (FindDocumentedTypeNonArray): Use DeclSpace.LookupType.
* typemanager.cs (LookupType): Simplify.
(AddUserType): Remove type from negative_hits.
* namespace.cs (Namespace.Lookup): Use TypeManager.LookupTypeDirect.
* class.cs (TypeContainer.FindMembers): Move handling of nested
types ...
(TypeContainer.FindMembers_NestedTypes): ... here.
(TypeContainer.FindNestedType): Implement override.
(ClassPart.FindNestedType): Delegate to PartialContainer.
(ClassPart.PartFindNestedType): Looks up the nested types of the
part alone.

Here's the memory savings when compiling corlib:

  w/o patch:  124938 KB
  with patch: 119036 KB

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

19 years ago2005-03-02 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Wed, 2 Mar 2005 14:58:49 +0000 (14:58 -0000)]
2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
* ImageList.cs
  - Changes 32-bit pixel format to Format32bppArgb to allow transparency
  - Fixes ImageList constructor with ImageList container
  - Fixes image scaling (wrong parameters at DrawImage)

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

19 years ago2005-03-02 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Wed, 2 Mar 2005 14:39:48 +0000 (14:39 -0000)]
2005-03-02  Sureshkumar T  <tsureshkumar@novell.com>

* ConfigurationSettings.cs: Implemented ConnectionStrings
property.

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

19 years ago2005-03-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 2 Mar 2005 13:51:18 +0000 (13:51 -0000)]
2005-03-02  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAccessPermission.cs,
* PermissionSet.cs: Don't throw NotSupportedException if the security
manager (SecurityManager.SecurityEnabled) is off.

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

19 years ago* FileStreamTest.cs (Constructor_InvalidFileHandle): Fix to work
Raja R Harinath [Wed, 2 Mar 2005 12:17:46 +0000 (12:17 -0000)]
* FileStreamTest.cs (Constructor_InvalidFileHandle): Fix to work
on 64-bit platforms.

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

19 years ago * Binding.cs: Make property searches case-insensitive. Eliminate
Jackson Harper [Wed, 2 Mar 2005 07:45:44 +0000 (07:45 -0000)]
* Binding.cs: Make property searches case-insensitive. Eliminate
some duplicated code.

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

19 years ago2005-03-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Mar 2005 03:00:42 +0000 (03:00 -0000)]
2005-03-02  Martin Baulig  <martin@ximian.com>

Committing a patch from Carlos Alberto Cortez to fix #72887.

* convert.cs (Convert.ExplicitReferenceConversionExists): Allow
casts from `T []' to `int []'.

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

19 years ago2005-03-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Mar 2005 01:55:48 +0000 (01:55 -0000)]
2005-03-02  Martin Baulig  <martin@ximian.com>

* class.c (mono_class_is_assignable_from): Make this work if
`oklass' is a generic instance; fixes #72831.

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

19 years agoNew test for #72831.
Martin Baulig [Wed, 2 Mar 2005 01:53:12 +0000 (01:53 -0000)]
New test for #72831.

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

19 years agoNew test for #71866.
Martin Baulig [Wed, 2 Mar 2005 00:56:25 +0000 (00:56 -0000)]
New test for #71866.

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

19 years ago2005-03-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Mar 2005 00:55:18 +0000 (00:55 -0000)]
2005-03-02  Martin Baulig  <martin@ximian.com>

* generic.cs (TypeManager.IsEqual): Make this symmetric.

* expression.cs (Binary.ResolveOperator): When resolving a
BinaryDelegate, use `TypeManager.IsEqual (l, r)' rather than just
`=='.  Fixes #71866.  See gen-127.cs.

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

19 years ago2005-03-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Mar 2005 00:52:05 +0000 (00:52 -0000)]
2005-03-02  Martin Baulig  <martin@ximian.com>

* class.cs (TypeContainer.DoDefineMembers): We also need a default
static constructor in static classes.

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

19 years ago2005-03-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Mar 2005 00:51:33 +0000 (00:51 -0000)]
2005-03-02  Martin Baulig  <martin@ximian.com>

* class.cs (TypeContainer.DoDefineMembers): We also need a default
static constructor in static classes.

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

19 years ago2005-03-02 Kazuki Oikawa <kazuki@panicode.com>
Kazuki Oikawa [Wed, 2 Mar 2005 00:50:08 +0000 (00:50 -0000)]
2005-03-02  Kazuki Oikawa  <kazuki@panicode.com>

* NumberFormatter.cs: Some internal classes was converted to structs,
and improved some points.

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

19 years ago2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 1 Mar 2005 22:55:31 +0000 (22:55 -0000)]
2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* sockets.c: translate EINPROGRESS to EWOULDBLOCK in connect. This is
the expected error code showed by the test case in bug #73053.

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

19 years agoUpdated.
Martin Baulig [Tue, 1 Mar 2005 22:54:43 +0000 (22:54 -0000)]
Updated.

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

19 years ago2005-03-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 1 Mar 2005 22:54:30 +0000 (22:54 -0000)]
2005-03-02  Martin Baulig  <martin@ximian.com>

* generic.cs
(NullableType.Name, NullableType.FullName): Add a "?" to the name.
(Nullable.LiftedConversion): Added support for user-defined
conversions.

* cs-tokenizer.cs (Tokenizer.PutbackCloseParens): New public method.

* cs-parser.jay: Use ComposedCast everywhere instead of
NullableType, so we don't need to check for NullableType
everywhere.
(conditional_expression): Added `INTERR CLOSE_PARENS' rule for the
case where we'll be resolved into a `parenthesized_expression_0'
afterwards.

* convert.cs
(Convert.UserDefinedConversion): Added nullable conversions.

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

19 years ago2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 1 Mar 2005 22:51:32 +0000 (22:51 -0000)]
2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Socket.cs: don't Poll/block in Connect aither.

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

19 years ago2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 1 Mar 2005 22:32:37 +0000 (22:32 -0000)]
2005-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebHeaderCollection.cs: handle commas inside quotes when splitting
a multi-value header. Fixes bug #73151.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 19:48:41 +0000 (19:48 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (mono_marshal_get_managed_wrapper): Fix handling of methods
with hasthis set.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 18:34:04 +0000 (18:34 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* Al.cs: Applied patch from Gert Driesen (gert.driesen@pandora.be).
Fixes #72274.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 18:30:30 +0000 (18:30 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* Al.cs: Algid and Flags should be specified in hexadecimal. Fixes
#72282.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 18:05:03 +0000 (18:05 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* pinvoke3.cs: Add tests for passing blittable arrays.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 18:03:56 +0000 (18:03 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (emit_marshal_array): Emit native->managed marshalling of blittable arrays.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 17:50:37 +0000 (17:50 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* MethodInfoTest.cs: Disable code causing mcs to fail.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 17:44:37 +0000 (17:44 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c: Reorganize native->managed marshalling code to also use
the emit_marshal_... functions.

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

19 years agoseveral ComboBox fixes
Jordi Mas i Hernandez [Tue, 1 Mar 2005 17:40:07 +0000 (17:40 -0000)]
several ComboBox fixes

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

19 years agoTue Mar 1 18:35:27 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 1 Mar 2005 17:15:29 +0000 (17:15 -0000)]
Tue Mar 1 18:35:27 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini.c: thread safety fixes.

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

19 years ago2005-03-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Mar 2005 16:36:36 +0000 (16:36 -0000)]
2005-03-01  Atsushi Enomoto <atsushi@ximian.com>

* Commons.Xml.Relaxng.dll.sources : added NVDL support files.
* README : added halfbaked description.

* NvdlStructures.cs,
  NvdlSimplified.cs,
  NvdlReader.cs,
  NvdlValidatingReader.cs,
  NvdlConfig.cs,
  NvdlValidationProvider.cs,
  NvdlBuiltInValidationProvider.cs,
  NvdlRelaxngSupport.cs,
  NvdlXsdSupport.cs,
  NvdlException.cs,
  NvdlValidator.cs,
  NvdlCompileContext.cs : initial checkin.

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

19 years ago2005-03-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Mar 2005 16:34:47 +0000 (16:34 -0000)]
2005-03-01  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngReader.cs : there was two public namespace constant. One
  should be obsoleted.

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

19 years agoOops ! Missed these changes while merging with GMCS: 41320
Jambunathan K [Tue, 1 Mar 2005 15:39:42 +0000 (15:39 -0000)]
Oops ! Missed these changes while merging with GMCS: 41320

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

19 years agoMerged to GMCS: 41320
Jambunathan K [Tue, 1 Mar 2005 15:06:07 +0000 (15:06 -0000)]
Merged to GMCS: 41320

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

19 years agoTue Mar 1 16:16:42 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 1 Mar 2005 14:58:10 +0000 (14:58 -0000)]
Tue Mar 1 16:16:42 CET 2005 Paolo Molaro <lupus@ximian.com>

* object.c: typed allocs have issues with bitmap sizes > 30,
so check for max_set >= 30.

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

19 years ago* ecore.cs (ImplicitInvocation, ImplicitNew, FloatingToFixedCast): Added
Jambunathan K [Tue, 1 Mar 2005 12:51:34 +0000 (12:51 -0000)]
* ecore.cs (ImplicitInvocation, ImplicitNew, FloatingToFixedCast): Added
* expression.cs (ImplicitInvocation, ImplicitNew): Removed

* driver.cs, rootcontext.cs: Added the 'removeintchecks' and
'optionstrict' command line options

* convert.cs (WideningNumericConversion,
NarrowingNumericConversion): Updated to refelct VB.NET semantics.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 12:31:57 +0000 (12:31 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* pinvoke3.cs libtest.c: Add tests for passing arrays to delegates.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 12:31:11 +0000 (12:31 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (emit_marshal_array): Implement marshalling of arrays to
managed code. Fixes #73012.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 12:29:35 +0000 (12:29 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* metadata.h (MonoMarshalSpec): Add elem_mult field.

* metadata.c reflection.c: Load/Emit elem_mult as well.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 12:18:55 +0000 (12:18 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* attribute.cs: Pass -1 to DefineLPArrayInternal if sizeConst or
sizeParamIndex is not specified.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 12:18:05 +0000 (12:18 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* CustomAttributeBuilder.cs UnmanagedMarshal.cs: Allow sizeConst and
sizeParamIndex to be -1, which means they are not given.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 10:00:26 +0000 (10:00 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* get.c: Output marshal info for parameters.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 09:59:08 +0000 (09:59 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* metadata.h (MonoMarshalSpec): Add comment.

* metadata.h: Add MONO_MARSHAL_CONV_LPTSTR_STR.

* metadata.c (mono_metadata_parse_marshal_spec): Set param_num and
num_elem to -1 if not given.

* object-internals.h (MonoReflectionMarshal): Add has_size field.

* reflection.c (encode_marshal_blob): Differentiate between 0 and not
given values.

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

19 years ago2005-03-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Mar 2005 09:56:21 +0000 (09:56 -0000)]
2005-03-01  Zoltan Varga  <vargaz@freemail.hu>

* CustomAttributeBuilder.cs (get_umarshal): Only call the internal
LPArray creation method if sizeConst of sizeParamIndex is given.

* UnmanagedMarshal.cs: Add has_size field.

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

19 years ago2005-03-01 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 1 Mar 2005 09:52:47 +0000 (09:52 -0000)]
2005-03-01  Peter Bartok  <pbartok@novell.com>

* Control.cs:
  - Fixed Visible property, now follows (once again) parent chain
    to return false if any control in the chain is visible=false
  - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
  - Fixed several places where is_visible instead of Visible was used
  - Implemented FIXME related to focus selection when setting focused
    control to be invisible

* XplatUIWin32.cs: Now using proper method to find out if window is
  visible. Thanks to Jordi for pointing it out

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

19 years ago2005-03-01 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Tue, 1 Mar 2005 08:45:38 +0000 (08:45 -0000)]
2005-03-01  Marek Safar <marek.safar@seznam.cz>

* test-352.cs: New test.

* test-353.cs, test-353-2: Bug #73117

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

19 years ago2005-03-01 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Tue, 1 Mar 2005 08:42:45 +0000 (08:42 -0000)]
2005-03-01  Marek Safar  <marek.safar@seznam.cz>

Fix #73117
* report.cs (WarningMessage.IsEnabled): Missing null check.

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

19 years ago2005-03-01 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Tue, 1 Mar 2005 07:04:57 +0000 (07:04 -0000)]
2005-03-01  Marek Safar  <marek.safar@seznam.cz>

* null-gc.c (mono_gc_free_fixed): Was not compilable.

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

19 years agoIn System.Data.Common:
Sureshkumar T [Tue, 1 Mar 2005 05:48:39 +0000 (05:48 -0000)]
In System.Data.Common:
2005-03-01  Sureshkumar T  <tsureshkumar@novell.com>

* ConnectionStringsSectionHandler.cs: Added. configuration section
handler for section "connectionStrings". This handler is a ad hoc
solution till the new configuration API is available in mono.

In .:
2005-03-01  Sureshkumar T  <tsureshkumar@novell.com>

* System.Data.dll.sources: Added System.Data.Common/
ConnectionStringsSectionHandler.cs.
* app_test_2.0.config: Changed the configuration handler for
seciton "connectionStrings".

In Test/System.Data.Common:

* ConnectionStringsSectionTest.cs : removed console.writeline-s.

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

19 years ago2005-03-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Mar 2005 05:28:19 +0000 (05:28 -0000)]
2005-03-01  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngPattern.cs : RdpUnresolvedRef should process empty/notAllowed
  elimination on its referenced pattern.

* RdpPattern.cs : In "textDeriv(group p1 p2) s", "nullable p1" is
  incorrectly computed as "nullable p".

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

19 years ago2005-02-28 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Tue, 1 Mar 2005 03:10:41 +0000 (03:10 -0000)]
2005-02-28  Cesar Lopez Nataren  <cnataren@novell.com>

* ForIn.cs: Initial implementation of ForIn stm.

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

19 years ago2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 1 Mar 2005 01:21:10 +0000 (01:21 -0000)]
2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Socket.cs: don't block on Accept if the socket is non-blocking.
Fixes bug #73053. Patch by Ankit Jain.

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

19 years ago2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 1 Mar 2005 01:11:22 +0000 (01:11 -0000)]
2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpRequest.cs: Path and FilePath also change when RewritePath is
called. Fixes bug #73055.

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

19 years agoundo r39947. See bugzilla #73073.
Gonzalo Paniagua Javier [Tue, 1 Mar 2005 00:33:29 +0000 (00:33 -0000)]
undo r39947. See bugzilla #73073.

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

19 years ago* convert.cs: Added the following conversion routines:
Jambunathan K [Mon, 28 Feb 2005 18:16:38 +0000 (18:16 -0000)]
* convert.cs: Added the following conversion routines:
BooleanConversions, WideningStringConversions,
NarrowingStringConversions.

* ecore.cs: Added following helper classes: BooleanToNumericCast,
NumericToBooleanCast

* typemanager.cs: Added System.DateTime to the cached types.

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

19 years ago2004-12-01 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Mon, 28 Feb 2005 18:16:34 +0000 (18:16 -0000)]
2004-12-01 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* driver.cs: correcting the handling of many options.
* Upgraded to latest Mono.GetOptions that supports vbc style boolean arguments /debug+ /debug-, and /help2 to hide less used options

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

19 years ago2005-02-28 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Mon, 28 Feb 2005 18:13:26 +0000 (18:13 -0000)]
2005-02-28  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
* Mono.GetOptions/OptionAttribute.cs, Mono.GetOptions/OptionDetails.cs, Mono.GetOptions/OptionList:
Implemented support for vbc style booleans: /debug+ /debug- . Usage: [Option("debug", VBCStyleBoolean = true)]
Implemented support for second level help screen. Usage: [Option("advanced stuff", SecondLevelHelp = true)]
Better alignment for descriptions, specially multiline
ArgumentProcessor-marked method now is called while processing options to allow positional processing

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

19 years ago2005-02-28 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Mon, 28 Feb 2005 17:27:14 +0000 (17:27 -0000)]
2005-02-28  Marek Safar  <marek.safar@seznam.cz>

* attribute.cs (DefinePInvokeMethod): Fix, all data are stored
in the fields and not in the properties.

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

19 years ago* ecore.cs (StringToExpression):
Jambunathan K [Mon, 28 Feb 2005 17:02:32 +0000 (17:02 -0000)]
* ecore.cs (StringToExpression):
* expression.cs (ImplicitInvocation, ImplicitNew): VB.NET specific
helper classes and methods.

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

19 years ago2005-02-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Feb 2005 14:20:30 +0000 (14:20 -0000)]
2005-02-28  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (encode_marshal_blob): Encode param_num field as well.

* object-internals.h (MonoReflectionMarshal): Add param_num field.

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

19 years ago2005-02-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Feb 2005 14:19:00 +0000 (14:19 -0000)]
2005-02-28  Zoltan Varga  <vargaz@freemail.hu>

* attribute.cs (GetMarshal): Marshal SizeConst and SizeParamIndex
fields as well.

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

19 years agomore tests + updated fixed
Marek Safar [Mon, 28 Feb 2005 14:14:39 +0000 (14:14 -0000)]
more tests + updated fixed

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

19 years ago2005-02-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Feb 2005 14:12:50 +0000 (14:12 -0000)]
2005-02-28  Zoltan Varga  <vargaz@freemail.hu>

* CustomAttributeBuilder.cs (get_umarshal): Marshal sizeConst and
sizeParamIndex fields as well.

* UnmanagedMarshal.cs: Add param_num field and a new internal creation
method which sets it.

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

19 years ago2005-02-28 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Mon, 28 Feb 2005 13:31:36 +0000 (13:31 -0000)]
2005-02-28  Marek Safar  <marek.safar@seznam.cz>

* attribute.cs: Small refactoring (improved robustness).
(ImplOptions, UnmanagedType, UsageAttribute): Removed members.
(ValidateGuid): Removed.
(Resolve): Removed referenced to above mentioned.
(GetAttributeUsage): Made private and changed to work without
class assistance.
(GetIndexerAttributeValue): Don't crash.
(GetConditionalAttributeValue): Ditto.
(GetClsCompliantAttributeValue): Ditto.
(ExtractSecurityPermissionSet): All attributes exceptions are
error 648.
(GetPropertyValue): New helper.
(GetMethodImplOptions): New method.
(DefinePInvokeMethod): Reuse common code. Implemented handling of
some missing properties.

* class.cs (ClassOrStruct.ApplyAttributeBuilder): Updated.
(Method.ApplyAttributeBuilder): Updated.

* decl.cs (DeclSpace.ApplyAttributeBuilder): Don't catch shared
exception.

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

19 years agoUpdated Firebird Provider to the RC2 sources
Carlos Guzmán Álvarez [Mon, 28 Feb 2005 12:37:30 +0000 (12:37 -0000)]
Updated Firebird Provider to the RC2 sources

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

19 years agoFix #73052.
Raja R Harinath [Mon, 28 Feb 2005 12:12:20 +0000 (12:12 -0000)]
Fix #73052.
* mcs/report.cs (Report.SymbolRelatedToPreviousError): Handle
non-simple types (array, pointer, reference).
* errors/cs0053-2.cs: New test from #73052.

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

19 years ago2005-02-28 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Mon, 28 Feb 2005 11:25:12 +0000 (11:25 -0000)]
2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>

* ComboBox.cs: show/hide scrollbar instead of creating it

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

19 years agoMon Feb 28 11:59:42 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 28 Feb 2005 10:49:29 +0000 (10:49 -0000)]
Mon Feb 28 11:59:42 CET 2005 Paolo Molaro <lupus@ximian.com>

* object.c: generalized the reference bitmap creation
and added hooks for the new GC.
* class-internals.c: removed the gc_bitmap field from MonoClass.

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

19 years ago2005-02-28 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Mon, 28 Feb 2005 10:48:07 +0000 (10:48 -0000)]
2005-02-28  Marek Safar  <marek.safar@seznam.cz>

* cs-parser.jay: Add errors 1617, 650, 1007, 531, 547, 548

* class.cs (MethodCore.IsDuplicateImplementation): Special error
for operators.
(Method.CheckBase): Catch wrong destructor here.
(MethodData.Define): Add errors 550, 668.

* cs-tokenizer.cs (PreProcessPragma): Add warning 1634.

* ecore.cs (PropertyExpr.DoResolveLValue): Fixed wrong error code.

* pending.cs (VerifyPendingMethods): Add error 551.

* typemanager.cs (CSharpName): Next error report helper.

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

19 years agoUpdates.
Paolo Molaro [Mon, 28 Feb 2005 10:19:16 +0000 (10:19 -0000)]
Updates.

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

19 years ago2005-02-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 28 Feb 2005 05:36:42 +0000 (05:36 -0000)]
2005-02-28  Martin Baulig  <martin@ximian.com>

* generic.cs (TypeManager.IsNullableType): New static method.
(Nullable): New abstract class.
(Nullable.NullLiteral): New public class.
(Nullable.LiftedConversion): New public class.

* cs-parser.jay (non_expression_type): Changed `builtin_types' to
`builtin_types opt_nullable'.

* convert.cs
(Convert.ImplicitConversionStandard): Added nullable conversions.
(Convert.ExplicitConversionStandard): Likewise.
(Convert.ExplicitConversion): Likewise.

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

19 years ago2005-02-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 Feb 2005 05:13:56 +0000 (05:13 -0000)]
2005-02-28  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaTests.cs : just set NotWorking for trivial comparison tests.

* XmlReflectionImporterTests.cs : set NotWorking for trivial empty
  string comparison.

* MsxslScriptTests.cs,
  XslTransformTests.cs : set NotWorking for msxsl:script tests (they
  premise runnable compilers existence which actually might not exist.)

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

19 years ago * CurrencyManager.cs: Add PositionChanged stuff.
Jackson Harper [Mon, 28 Feb 2005 00:11:58 +0000 (00:11 -0000)]
* CurrencyManager.cs: Add PositionChanged stuff.

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

19 years ago2005-02-27 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Sun, 27 Feb 2005 23:56:08 +0000 (23:56 -0000)]
2005-02-27  Peter Bartok  <pbartok@novell.com>

* XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
* XplatUIOSX.cs: Added GetMenuOrigin() stub
* XplatUIWin32.cs: Implemented GetMenuOrigin()
* XplatUIX11.cs:
  - Implemented GetMenuDC()
  - Implemented GetMenuOrigin()
  - Implemented ReleaseMenuDC()
  - Implemented generation of WM_NCPAINT message
  - Implemented generation and handling of WM_NCCALCSIZE message
* Form.cs: Added debug helper message for Jordi's menu work
* Hwnd.cs:
  - Modified ClientRect property; added setter, fixed getter to handle
    setting of ClientRect
  - Added MenuOrigin property

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

19 years ago2005-02-27 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 27 Feb 2005 22:55:23 +0000 (22:55 -0000)]
2005-02-27  Miguel de Icaza  <miguel@novell.com>

* pending.cs: Make the code resistant to errors.

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

19 years ago2005-02-27 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Sun, 27 Feb 2005 22:20:23 +0000 (22:20 -0000)]
2005-02-27  Cesar Lopez Nataren  <cnataren@novell.com>

* VariableStatement.cs (PopulateContext): Do not add the symbol to
the context if already defined in current context.

* CodeGenerator.cs: Renamed VariableDefined to variable_defined_in_current_scope.

* TypeManager.cs: Reimplemented it, We use an IdentificationTable
instead of a simple Hashtable so we can handle scopes
properly. Cleaner api.

* VariableDeclaration.cs: Use new CodeGenerator api. (EmitDecl)
Add the builders to the TypeManager.

* Block.cs: Use new TypeManager api.

* FunctionDeclaration.cs: Use new TypeManager api. Take care of
scopes in the TypeManger on Emit.

* IdentificationTable.cs: (Binder) Changed the type of value from
AST to object so I can use this symbol table
anywhere. (IdentificationTable) Add current_locals stack and added
method InCurrentScope.

* expression.cs: Use new api from TypeManager, Add casts where neeeded.

This solves an infinite loop we were falling into when calling
IdentificationTable.CurrentLocals when repeated declarations where
inside function declarations.

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

19 years agoBroadly, what C# spec terms as "Implicit" & "Explicit", VB.NET spec
Jambunathan K [Sun, 27 Feb 2005 22:12:07 +0000 (22:12 -0000)]
Broadly, what C# spec terms as "Implicit" & "Explicit", VB.NET spec
terms as "Widening" & "Narrowing" respectively. So renamed exisiting
methods to reflect the VB.NET nomenclature. These are just first
renamings.

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

19 years agoVB.NET has no notion of User defined conversions. Assuming that UserDefinedConversion...
Jambunathan K [Sun, 27 Feb 2005 21:29:04 +0000 (21:29 -0000)]
VB.NET has no notion of User defined conversions. Assuming that UserDefinedConversion () returns null, propagated the resulting changes upstream.

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