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
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
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
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
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
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
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
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
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
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
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
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
Sebastien Pouliot [Wed, 2 Mar 2005 21:29:56 +0000 (21:29 -0000)]
svn path=/trunk/mono/; revision=41375
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
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
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
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
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
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
Martin Baulig [Wed, 2 Mar 2005 16:31:04 +0000 (16:31 -0000)]
New test for #73023.
svn path=/trunk/mcs/; revision=41366
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
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
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
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
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
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
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
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
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
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
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
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
Martin Baulig [Wed, 2 Mar 2005 01:53:12 +0000 (01:53 -0000)]
New test for #72831.
svn path=/trunk/mcs/; revision=41352
Martin Baulig [Wed, 2 Mar 2005 00:56:25 +0000 (00:56 -0000)]
New test for #71866.
svn path=/trunk/mcs/; revision=41351
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
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
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
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
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
Martin Baulig [Tue, 1 Mar 2005 22:54:43 +0000 (22:54 -0000)]
Updated.
svn path=/trunk/mcs/; revision=41343
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
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
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
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
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
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
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
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
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
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
Jordi Mas i Hernandez [Tue, 1 Mar 2005 17:40:07 +0000 (17:40 -0000)]
several ComboBox fixes
svn path=/trunk/mcs/; revision=41327
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
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
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
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
Jambunathan K [Tue, 1 Mar 2005 15:06:07 +0000 (15:06 -0000)]
Merged to GMCS: 41320
svn path=/trunk/mcs/; revision=41322
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Mon, 28 Feb 2005 14:14:39 +0000 (14:14 -0000)]
more tests + updated fixed
svn path=/trunk/mcs/; revision=41283
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
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
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
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
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
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
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
Paolo Molaro [Mon, 28 Feb 2005 10:19:16 +0000 (10:19 -0000)]
Updates.
svn path=/trunk/mono/; revision=41275
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
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
Jackson Harper [Mon, 28 Feb 2005 00:11:58 +0000 (00:11 -0000)]
* CurrencyManager.cs: Add PositionChanged stuff.
svn path=/trunk/mcs/; revision=41271
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
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
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
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
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