mono.git
19 years ago2004-03-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Mar 2005 07:08:20 +0000 (07:08 -0000)]
2004-03-11  Atsushi Enomoto  <atsushi@ximian.com>

* doc.cs : just eliminate the latest change.

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

19 years ago2005-03-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 11 Mar 2005 06:02:22 +0000 (06:02 -0000)]
2005-03-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FormsAuthenticationModule.cs: fix for bug 73545, which caused
authentication not to work when the cookie was not persistent.
Patch by Ilya Kharmatsky (Mainsoft).

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

19 years ago(Parse): Re-org. Resolve unreachable code.
Sureshkumar T [Fri, 11 Mar 2005 05:06:51 +0000 (05:06 -0000)]
(Parse): Re-org. Resolve unreachable code.

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

19 years ago2005-03-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 11 Mar 2005 01:17:37 +0000 (01:17 -0000)]
2005-03-10  Sebastien Pouliot  <sebastien@ximian.com>

* pinvoke1-3.cs: New. Tests that P/Invoking unmanaged methods provoke
a stack walk (Demand) for SecurityPermissionFlag.UnmanagedCode.
* sucs1-4.cs: New. Tests that [SuppressUnmanagedCodeSecurity] removes
the stack walk when present on either the p/invoked definition or on
it's class.
* Makefile: New. Build/execute new tests.
* README: New. Instruction and details about the tests.

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

19 years ago2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 10 Mar 2005 23:29:30 +0000 (23:29 -0000)]
2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpWebResponse.cs: moved cookie parsing into its own class.
* WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
call.
* HttpWebRequest.cs: don't let exception raised in the ctor of
HttpWebResponse vanish.

Fixes bug #73275.

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

19 years ago2005-03-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 23:27:18 +0000 (23:27 -0000)]
2005-03-11  Zoltan Varga  <vargaz@freemail.hu>

* aot.c (mono_aot_load_method): Get rid of bogus make_writable call.

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

19 years ago2005-03-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 22:55:01 +0000 (22:55 -0000)]
2005-03-11  Zoltan Varga  <vargaz@freemail.hu>

* Array.cs (Sort): Bail out early if length <= 1. Fixes #72721.

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

19 years ago- Oops, that's not supposed to be in yet
Peter Dennis Bartok [Thu, 10 Mar 2005 20:43:29 +0000 (20:43 -0000)]
- Oops, that's not supposed to be in yet

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

19 years ago- Added SaveFileDialog.cs
Peter Dennis Bartok [Thu, 10 Mar 2005 20:40:04 +0000 (20:40 -0000)]
- Added SaveFileDialog.cs

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

19 years ago2004-03-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Mar 2005 20:06:54 +0000 (20:06 -0000)]
2004-03-10  Atsushi Enomoto  <atsushi@ximian.com>

* doc.cs : commented out the latest change. It breaks xml-030.cs

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

19 years ago2004-03-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Mar 2005 18:54:56 +0000 (18:54 -0000)]
2004-03-10  Atsushi Enomoto  <atsushi@ximian.com>

* doc.cs : When TypeBuilder did not create Type yet, GetEvents() will
  fail. So invoke CreateType() in FindDocumentedType().

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 17:58:35 +0000 (17:58 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_reflection_create_runtime_class): Fix 2.0 build.

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

19 years ago2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 10 Mar 2005 17:44:18 +0000 (17:44 -0000)]
2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* filewatcher.c: commented out the code for windows watcher, as we don't
use it (we use the managed implementation instead).

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:32:00 +0000 (16:32 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* dataslot.cs: Add tests for #65414.

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:26:56 +0000 (16:26 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* object-internals.h (MonoThread): Remove 'unused1' field.

* appdomain.c: Bump corlib version.

* marshal.c: Remove calls to Reset/RestoreDataStoreStatus ().

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:25:01 +0000 (16:25 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* Environment.cs: Bump corlib version.

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:24:28 +0000 (16:24 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* CrossAppDomainChannel.cs: Remove call to ResetDataStoreStatus ().

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:23:50 +0000 (16:23 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.

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

19 years ago2004-03-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Mar 2005 16:10:50 +0000 (16:10 -0000)]
2004-03-10  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* cs-tokenizer.cs : added IsKeyword().
* doc.cs : Detect keyword incorrectly used as identifier.
  Allow identifiers prefixed by @.

in tests:
* xml-036.cs, xml-036-ref.xml, Makefile : added test for bug #73384.

in errors:
* cs1041.cs : added test for bug #73385.

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

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

* reflection.c (mono_reflection_create_runtime_class): Remove the
AssemblyBuilder.Save optimization since it causes too many problems.

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

19 years ago2005-03-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Mar 2005 13:25:35 +0000 (13:25 -0000)]
2005-03-10  Sebastien Pouliot  <sebastien@ximian.com>

* exception.c|h: Added mono_get_exception_reflection_type_load to
create a ReflectionTypeLoadException object.
* icall.c: Updated ves_icall_System_Reflection_Assembly_InternalGetType
to return NULL is a InheritanceDemand fails during reflection. Updated
ves_icall_System_Reflection_Assembly_GetTypes to throw a
ReflectionTypeLoadException if an InheritanceDemand fails during
reflection. Added icall mapping for GetLinkDemandSecurity.
* security-manager.c|h: Added ves_icall_System_Security_
SecurityManager_GetLinkDemandSecurity internal call to return the
class and methods permissions set for a LinkDemand. Removed unused
fields in MonoSecurityManager.

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

19 years agoupdate Provider Factory status.
Sureshkumar T [Thu, 10 Mar 2005 12:55:11 +0000 (12:55 -0000)]
update Provider Factory status.

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

19 years agoIn .:
Sureshkumar T [Thu, 10 Mar 2005 12:48:43 +0000 (12:48 -0000)]
In .:
2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>

* System.Data.dll.sources: Added
System.Data.Odbc/OdbcConnectionFactory.cs.
System.Data.Odbc/OdbcFactory.cs.

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

Migrated core classes to derive from ProviderBase instead of
implementing IDb* interfaces. Most part of these files have been
branched with #if NET_2_0/ONLY_1_1. Make sure any changes works
with both the profiles.

* OdbcFactory.cs: Concrete Factory for DbProviderFactory. Factory
to generate Connection,Command,etc.

* OdbcConnectionFactory.cs: Concrete factory for DbConnectionFactory.

* OdbcTransaction.cs: migration and overrides.
* OdbcCommandBuilder.cs: migration and overrides.
* OdbcDataReader.cs: --do--. no command behavior member as it will
be maintained in base provider class.
* OdbcParameterCollection.cs: --do--. Now, local ArrayList is not
maintained here, instead it is in base class. Most of the methods
which operated on this list are not needed in NET_2_0.
* OdbcConnection.cs: Migration. connectionString is maintained in
DbConnectionBase class.
* OdbcParameter.cs: Migration. Many of the local members like
value,sourceColumn are maintained in DbParameterBase.
* OdbcCommand.cs: Migration. commandText,timeout and
commandTimeOut are maintained in DbCommandBase class.

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

19 years agoA minor fix for the previous checkin
Satya Sudha K [Thu, 10 Mar 2005 12:34:43 +0000 (12:34 -0000)]
A minor fix for the previous checkin

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

19 years agoIn .:
Sureshkumar T [Thu, 10 Mar 2005 09:13:45 +0000 (09:13 -0000)]
In .:
2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>

* System.Data.dll.sources: Added
System.Data.Odbc/OdbcTypeConverter.

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

* OdbcType.cs: Added enums for SQL_TYPE & SQL_C_TYPE.

* libodbc.cs: Accept SQL_C_TYPE for driver
parameters. SQLBindParameter takes two parameters SQL_TYPE and
SQL_C_TYPE. This caused the whole lot of changes done in this
revision.

* OdbcParameter.cs: Set default values of OdbcType & DbType. Pass
mapped SQL_TYPE and SQL_C_TYPE to SQLBindParameter. Increase
buffer size by 2 for additional ' chars.

* OdbcTypeConverter.cs: Added class to convert between OdbcType,
SQL_TYPE, SQL_C_TYPE.

* OdbcColumn.cs: Added private members for SQL_TYPE and
SQL_C_TYPE. conversion from/to odbctype to/from SQL_TYPE is done
through OdbcTypeConverter class.

* OdbcDataReader.cs: use OdbcColumn's SQL_C_TYPE member. It keeps
track of default mapping between odbctype, SQL_TYPE and
SQL_C_TYPE. Move dataTableSchema.AcceptChanges inside if condition
to avoid null reference exception.

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

19 years ago2005-03-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Mar 2005 08:59:37 +0000 (08:59 -0000)]
2005-03-10 Marek Safar <marek.safar@seznam.cz>

* TestRunner.cs: New fast test runner.

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

19 years ago2005-03-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Mar 2005 08:52:34 +0000 (08:52 -0000)]
2005-03-10  Marek Safar  <marek.safar@seznam.cz>

* attributes.cs (Attributes.Emit): Continue after CheckTargets.
It caused exception in namespace resolving (again!).

* class.cs (Class.ctor): Removed exit.
(PropertyMethod.ctor): ditto.

* codegen.cs (Codegen.Reset): Reset static data.
(Codegen.ResolveTopBlock): Forward error status from ResolveMeta.

* cs-tokenizer.cs (Cleanup): Removed.

* driver.cs (GetSystemDir): Rewrote to one line command.
It caused problem with unloaded dynamic modules.
(UnixParseOption): Removed Exit.
(CompilerCallableEntryPoint.InvokeCompiler): Make static.
(CompilerCallableEntryPoint.Reset): Reset suitable static data.
Now can be mcs used as library.

* ecore.cs (Expression.ResolveBoolean): Use Location.Null for
empty location.

* location.cs (Reset): Reset static data.

* namespace.cs (Reset): Reset static data.

* report.cs (Report.Reset): Reset static data.

* rootcontext.cs (RootContext.Reset): Reset static data.

* tree.cs (RootTypes.ctor): Use Location.Null

* typemanager.cs (TypeManager.Reset): Reset static data.
(CoreLookupType): Removed Exit.
(TypeHandle.Reset): Reset static data.

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

19 years agooops.
Raja R Harinath [Thu, 10 Mar 2005 08:42:48 +0000 (08:42 -0000)]
oops.

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

19 years agoFix #73516.
Raja R Harinath [Thu, 10 Mar 2005 08:39:16 +0000 (08:39 -0000)]
Fix #73516.
* mcs/typemanager.cs (ComputeNamespaces): Import namespaces from
referenced modules too.
* tests/mtest-7-exe.cs, tests/mtest-7-dll.cs: New test from #73516.
* tests/Makefile (DISTFILES): Add test-353-2.cs.

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

19 years ago Support 'Is' for all reference types
Manjula GHM [Thu, 10 Mar 2005 06:46:29 +0000 (06:46 -0000)]
 Support 'Is' for all reference types

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

19 years ago2005-03-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Mar 2005 06:40:51 +0000 (06:40 -0000)]
2005-03-10  Martin Baulig  <martin@ximian.com>

* Nullable.cs (Nullable<T>.ToString): Return an empty string if
we're null.

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

19 years agosvn propset svn:eol-style native
Raja R Harinath [Thu, 10 Mar 2005 05:55:34 +0000 (05:55 -0000)]
svn propset svn:eol-style native
svn propdel svn:executable

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

19 years agoRemoved a '\r' character from the end of a line (as it was breaking
Satya Sudha K [Thu, 10 Mar 2005 05:24:32 +0000 (05:24 -0000)]
Removed a '\r' character from the end of a line (as it was breaking
'make dist') - as pointed out by Sudharsan V

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

19 years agoEnable the nullable tests.
Martin Baulig [Thu, 10 Mar 2005 04:36:08 +0000 (04:36 -0000)]
Enable the nullable tests.

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

19 years ago2005-03-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Mar 2005 04:32:26 +0000 (04:32 -0000)]
2005-03-10  Martin Baulig  <martin@ximian.com>

* class.c (mono_bounded_array_class_get): Initialize `eclass' if
it's a generic instance.

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

19 years ago2005-03-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Mar 2005 04:31:53 +0000 (04:31 -0000)]
2005-03-10  Martin Baulig  <martin@ximian.com>

* expression.cs
(ArrayAccess.EmitDynamicInitializers): Use `etype.IsValueType'
rather than `etype.IsSubclassOf (TypeManager.value_type)'.

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

19 years agoSupport for 'AndAlso' and 'OrElse' operators
Satya Sudha K [Thu, 10 Mar 2005 04:07:51 +0000 (04:07 -0000)]
Support for 'AndAlso' and 'OrElse' operators

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

19 years agooops
Gonzalo Paniagua Javier [Wed, 9 Mar 2005 23:27:05 +0000 (23:27 -0000)]
oops

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

19 years ago2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 9 Mar 2005 23:19:52 +0000 (23:19 -0000)]
2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Control.cs: in FindControl, throw if there's more than one control
with the same ID. Fixes bug #73479.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 23:18:18 +0000 (23:18 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslText.cs : whitespace nodes should be written at any time, once
  they constructed this instance.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 22:52:38 +0000 (22:52 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslStylesheet.cs, XslCompiledContext.cs : Fixed PreserveWhitespace()
  to work fine with xsl:*-space attributes as expected.
* XslTransformProcessor.cs : PreserveWhitespace() in this file is
  actually nothing. It should not use XsltContext.PreserveWhitespace()
  because this method is used to control output, while the referenced
  method is used to control source document.

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

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

* XslTemplate.cs : First non-element content were incorrectly ignored.

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

19 years ago2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 9 Mar 2005 21:40:53 +0000 (21:40 -0000)]
2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpRequest.cs: correctly store the value cookies in Params. Fixes
bug #73345.

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

19 years ago2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 20:06:59 +0000 (20:06 -0000)]
2004-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* Expression.cs,
  Iterator.cs, :
  SlashIterator is now constructed with requireSorting parameter
  that thus just use RequireSorting from both left/right Expressions,
  not iterators.
  When attribute axis is on the left expression, the result needs to
  be sorted.

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

19 years agough, the patch was changing different ChangeLog :(
Atsushi Eno [Wed, 9 Mar 2005 19:57:21 +0000 (19:57 -0000)]
ugh, the patch was changing different ChangeLog :(

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

19 years ago2005-03-09 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 9 Mar 2005 19:51:26 +0000 (19:51 -0000)]
2005-03-09  Dick Porter  <dick@ximian.com>

        * MonoIOError.cs:
        * MonoIO.cs: Add a few more exception messages

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

19 years ago2005-03-09 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 9 Mar 2005 19:51:04 +0000 (19:51 -0000)]
2005-03-09  Dick Porter  <dick@ximian.com>

        * error.c (_wapi_get_win32_file_error): ENFILE and EMFILE should
        map to ERROR_TOO_MANY_OPEN_FILES, not ERROR_NO_MORE_FILES.  Fixes
        bug 72671.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 18:21:10 +0000 (18:21 -0000)]
2005-03-09  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
  surrogate calculations. This fixes bug #73513. Patch by
  Andrew Skiba.

* XmlTextReaderTests.cs : added SurrogatePair() based on bug #73513.

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

19 years ago2005-03-09 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 9 Mar 2005 18:15:50 +0000 (18:15 -0000)]
2005-03-09  Ben Maurer  <bmaurer@ximian.com>

* mini.c (mono_codegen): Don't leak here, to help people running
monogrind.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 17:53:30 +0000 (17:53 -0000)]
2005-03-09  Atsushi Enomoto <atsushi@ximian.com>

* XmlParserInput.cs : silly mixed line endings :(

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 16:42:26 +0000 (16:42 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_get_object_from_blob): Applied patch from
Ankit Jain (radical@gmail.com). Fix enum default values. Fixes #73457.

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

19 years agochmod +x monogrind.pl
Ben Maurer [Wed, 9 Mar 2005 15:54:02 +0000 (15:54 -0000)]
chmod +x monogrind.pl

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

19 years ago2005-03-09 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 9 Mar 2005 15:51:30 +0000 (15:51 -0000)]
2005-03-09  Ben Maurer  <bmaurer@ximian.com>

* monogrind.pl: Renamed valgrind-monofunc.pl to this, per
Nat. Updated with Nat's fixes.

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

19 years ago* class.cs (TypeContainer.AddToMemberContainer): Use "." rather than '.'.
Raja R Harinath [Wed, 9 Mar 2005 14:23:25 +0000 (14:23 -0000)]
* class.cs (TypeContainer.AddToMemberContainer): Use "." rather than '.'.

Oh no, I'm channelling BenM ;-)  This cheesy little patch allocated 400KB less
on a corlib build !!!

  w/o patch: 119389 KB
  w/  patch: 118964 KB

in the before, we had:
     163 KB Mono.CSharp.TypeContainer::AddToMemberContainer(MemberCore)
              163 KB    16713 System.Char
     261 KB System.Char::ToString()
              261 KB    16716 System.String

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

19 years ago* decl.cs (DeclSpace.LookupType): Don't loop but recurse into
Raja R Harinath [Wed, 9 Mar 2005 14:05:25 +0000 (14:05 -0000)]
* decl.cs (DeclSpace.LookupType): Don't loop but recurse into
enclosing DeclSpace.  This ensures that a name-lookup populates
more caches and there are fewer 'TypeExpression's.  Carve out
nested type lookup into ...
(LookupNestedTypeInHierarchy): ... this.

Turns out that this saves a teensy amount of memory when compiling corlib.
So, given the IMHO improved readability, this is a no-brainer ;-)

  w/o patch: 119433 KB
  w/  patch: 119389 KB

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 13:32:43 +0000 (13:32 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Reenable last test.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 12:32:07 +0000 (12:32 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* TypeTest.cs: Add tests for bug #73432.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 12:29:24 +0000 (12:29 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* Activator.cs MonoType.cs: Applied patch from Carlos Alberto Cortez
(carlos@unixmexico.org). Allow creation of valuetypes with no ctor.
Fixes #73432.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 11:52:07 +0000 (11:52 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* solaris_threads.c (GC_thread_is_registered): Add this for solaris
too.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 11:00:00 +0000 (11:00 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* pthread_support.c (GC_thread_is_registered): Move this outside of
the #ifdef THREAD_LOCAL_ALLOC.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 10:50:37 +0000 (10:50 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* class.c (mono_class_is_assignable_from): Another try at fixing
#73469 without breaking anything.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 10:11:52 +0000 (10:11 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslVariable.cs : clone stored XPathNavigator items before storing.
* XslAttribute.cs : tiny code reduction.

* Iterator.cs : Now for most of iterator types, Current property always
  returns the same instance. It results in huge memory reduction.

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

19 years agoClean up a few partial-class semantics.
Raja R Harinath [Wed, 9 Mar 2005 10:04:11 +0000 (10:04 -0000)]
Clean up a few partial-class semantics.
Fixes test-357.cs and cs1618-2.cs.
* cs-parser.jay (struct_declaration): Use 'current_class' as
parent of newly-created struct.  Remove call to Register ().
Use 'pop_current_class' to complete handing the current struct.
(interface_declaration): Likewise.
(class_declaration): Likewise.
(enum_declaration): Use 'current_class' as parent of newly created
enum.
(delegate_declaration): Likewise.
(pop_current_class): New function.  This is used to handle closing
up the 'current_class' and 'current_container', and pointing them
to the enclosing class/container.
(CSharpParser): Initialize 'current_class' too.
 decl.cs (MemberCore): Add check for invariant: a partial
container is not a parsed entity, and thus does not enclose any
parsed members.
(DeclSpace.TypeResolveEmitContext): Expose 'type_resolve_ec'.
(DeclSpace.BaseTypeExpr): Use it.
(DeclSpace.LookupType): Add check for invariant.
* class.cs (TypeContainer): Add check for invariant: a nested
class should have the same NamespaceEntry as its enclosing class.
(TypeContainer.EmitFieldInitializers): Make virtual.
(TypeContainer.DefineDefaultConstructor): Adhere to invariant in
MemberCore.
(TypeContainer.Register): Remove.
(TypeContainer.DefineType): Set the 'ec' of a PartialContainer to
null.  Use TypeResolveEmitContext for resolving base types and
interfaces.  Move initialization of Parts.TypeBuilder here from
...
(TypeContainer.DefineNestedTypes): ... here.
(PartialContainer): Take a Namespace not a NamespaceEntry.
(PartialContainer.Create): Don't use Register.  Call the
appropriate Add... function directly.
(ClassPart): Take both the PartialContainer and the enclosing
class as constructor arguments.
(ClassPart.EmitFieldInitializers): Override.
(ClassPart.PartFindNestedTypes): Remove.
(FieldBase.GetInitializerExpression): Resolve the initializer
expression in the emit context of the enclosing class.
* tree.cs (RootTypes): Remove Register ().

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

19 years ago2005-03-09 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 9 Mar 2005 09:38:44 +0000 (09:38 -0000)]
2005-03-09  Dick Porter  <dick@ximian.com>

        * daemon.c (process_process_fork): Initialise the handle data
        before using it in the error case.  This is probably the error
        we're working around in the previous change.  Spotted by Taru Jain
        <tjain@novell.com> and Hemanth Yamijala <YHemanth@novell.com>.

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

19 years agoSupport 'Is' Expression
Manjula GHM [Wed, 9 Mar 2005 09:18:13 +0000 (09:18 -0000)]
Support 'Is' Expression

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

19 years ago2005-03-09 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 9 Mar 2005 08:28:31 +0000 (08:28 -0000)]
2005-03-09  Marek Safar  <marek.safar@seznam.cz>

* ILGenerator.cs (DeclareLocal): Throw an exception for null argument.

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

19 years ago2005-03-08 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 9 Mar 2005 06:41:37 +0000 (06:41 -0000)]
2005-03-08  Peter Bartok  <pbartok@novell.com>

* Control.cs: Fixed bug #73190; now invokes CreateControl (which
  in turn triggers OnCreateContro) when creating a handle for the
  first time.
* TextControl.cs: Fixed endless loop in certain cases when
  replacing the current selection

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

19 years agoFixed conflicting class names - (as pointed out by Sudharsan V)
Satya Sudha K [Wed, 9 Mar 2005 06:06:18 +0000 (06:06 -0000)]
Fixed conflicting class names - (as pointed out by Sudharsan V)

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

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

* XsltContext.cs : removed GetNsm() from IStaticXsltContext and added
  LookupNamespace() instead.
* BUGS-MS.txt : more bug info.

* XslFunctions.cs, Compiler.cs : Eliminated XPathNavigatorNsm class
  to reduce references to stylesheet XPathNavigator. To accomplish it,
  IStaticXsltContext does not declare GetNsm() anymore. All xslt
  function types now directly hold IStaticXsltContext.
* XslStylesheet.cs : removed "Compiler c" field.
  Removed unused properties.

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

19 years ago2005-03-08 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 9 Mar 2005 03:45:04 +0000 (03:45 -0000)]
2005-03-08  Ben Maurer  <bmaurer@ximian.com>

* valgrind-monofunc.pl: Add this wonderful script from Nat.

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

19 years agoUpdated.
Martin Baulig [Wed, 9 Mar 2005 02:21:03 +0000 (02:21 -0000)]
Updated.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 23:37:30 +0000 (23:37 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Disable last test since the fix is reverted.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 17:22:19 +0000 (17:22 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* class.c: (mono_class_is_assignable_from): Revert the last changes
since they don't work with generics.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 16:31:40 +0000 (16:31 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* class.c (mono_class_is_assignable_from): Fix build bustage.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 14:22:15 +0000 (14:22 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Add new test.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 14:21:14 +0000 (14:21 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* class.c (mono_class_is_assignable_from): If oklass is dynamic, call
the managed IsAssignableFrom method. Fixes #73469.

* reflection.c (mono_reflection_call_is_assignable_from): New helper
function.

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

19 years ago2005-03-08 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Tue, 8 Mar 2005 13:48:47 +0000 (13:48 -0000)]
2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>

* ScrollBar.cs
  - Honors NewValue changes in Scroll events allowing apps to change it
  - Adds First and Last Scroll events
  - Fixes Thumb events

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

19 years agofixed wrong errors
Marek Safar [Tue, 8 Mar 2005 12:47:42 +0000 (12:47 -0000)]
fixed wrong errors
update

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

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

* test-355.cs, test-356.cs: New tests.

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

19 years agoTestcases for Events,Delegates, Inheritance - Contributed by Sudharsan V
Satya Sudha K [Tue, 8 Mar 2005 12:13:35 +0000 (12:13 -0000)]
Testcases for Events,Delegates, Inheritance - Contributed by Sudharsan V

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

19 years ago2005-03-08 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 8 Mar 2005 11:58:25 +0000 (11:58 -0000)]
2005-03-08  Lluis Sanchez Gual <lluis@novell.com>

* XmlSchemaImporter.cs: Support importing schemas that define
extra types in the standard xml schema namespace. When using encoded
format, support the primitive types defined by the SOAP encoding
namespace.

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

19 years ago2005-03-08 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Tue, 8 Mar 2005 11:53:54 +0000 (11:53 -0000)]
2005-03-08  Marek Safar  <marek.safar@seznam.cz>

* cs-parser.jay: Removed CS0134.

* driver.cs: Removed CS1901.

* expression.cs (SizeOf.DoResolve): Don't report CS0233
        for predefined types.

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

19 years ago* ecore.cs : Included Decimal -> Single/double conversions in 'WideningConversio...
Satya Sudha K [Tue, 8 Mar 2005 11:18:58 +0000 (11:18 -0000)]
* ecore.cs      : Included Decimal -> Single/double conversions in 'WideningConversionExists' method
* expression.cs : Fixed the behaviour of some Unary operators
                  Allowing Exponentiation on object types

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 11:13:22 +0000 (11:13 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* mini-amd64.c (mono_arch_output_basic_block): Fix int->float
conversions in sse2 mode.

* basic-float.cs: Add regression test.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 11:11:38 +0000 (11:11 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* amd64/amd64-codegen.h (amd64_sse_cvtsi2sd_reg_reg_size): Add _size
variants to some sse2 macros.

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

19 years ago2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 8 Mar 2005 10:48:37 +0000 (10:48 -0000)]
2004-03-04  Atsushi Enomoto  <atsushi@ximian.com>

* Iterator.cs : (SlashIterator.MoveNext()) For SortedList.Add(), the
  key should be iterator itself. Key by list count never makes sense.

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

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

* mini-amd64.c: Reenable sse2.

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

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

* amd64/amd64-codegen.h (amd64_sse_cvtsd2si_reg_reg): Make this convert
to a 64 bit value.

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

19 years ago2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 8 Mar 2005 09:20:03 +0000 (09:20 -0000)]
2005-03-08  Atsushi Enomoto  <atsushi@ximian.com>

* GenericOutputter.cs : When WriteStartElement() requires to add
  new namespace declaration, _currentNamespaceDecls needs to be set.

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

19 years agoIn System.Data.ProviderBase:
Sureshkumar T [Tue, 8 Mar 2005 08:38:20 +0000 (08:38 -0000)]
In System.Data.ProviderBase:
2005-03-08  Sureshkumar T  <tsureshkumar@novell.com>

* DbParameterBase.cs: Implemented most of get set methods.
* DbConnectionBase.cs: Commented ConnectionOptions creation,
because it is not yet implemented.
* DbCommandBase.cs: Implemented ExecuteScalar method.
* DbParameterCollectionBase.cs: Implemented Add method.
* DbDataReaderBase.cs: removed internal constructor DbDataReader
(DbCommand).

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

* SqlDataReader.cs: Call base constructor with CommandBehavior
parameter instead of passing DbCommand object. The internal base
class with DbCommand Parameter is removed.

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

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

* GenericOutputter.cs : for duplicate attribute in an element, no need
  to keep previous prefix.

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

19 years ago2005-03-07 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 8 Mar 2005 08:11:55 +0000 (08:11 -0000)]
2005-03-07  Peter Bartok  <pbartok@novell.com>

* Hwnd.cs: Added DefaultClientRectangle property
* XplatUI.cs: Now using the X11 driver Where() method, which provides
  more detailed debug information
* XplatUIX11.cs:
  - Fixed size-change feedback loop, where we would pull an old size
    off the queue and mistakenly change our window's size to an
    earlier value
  - Now compressing ConfigureNotify events, to reduce looping and
    redraw issues
* TextBoxBase.cs: Preventing crash when no text is set and ToString()
  is called

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

19 years agoBug fix - new Object creation and object assignment
Manjula GHM [Tue, 8 Mar 2005 06:15:47 +0000 (06:15 -0000)]
Bug fix - new Object creation and object assignment

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

19 years ago2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 8 Mar 2005 06:11:19 +0000 (06:11 -0000)]
2005-03-08  Atsushi Enomoto  <atsushi@ximian.com>

* GenericOutputter.cs : Prefix "xml" is only allowed to the fixed XML
  namespace. Rewrite prefix only when there is non-empty namespace.

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

19 years ago2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 8 Mar 2005 06:08:59 +0000 (06:08 -0000)]
2005-03-08  Atsushi Enomoto  <atsushi@ximian.com>

* XslAttribute.cs : In Evaluate(), name strings are not computed as
  expected especially when they are bound to non-empty namespace.

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

19 years ago2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 8 Mar 2005 06:06:59 +0000 (06:06 -0000)]
2005-03-08  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : namespace declaration check for those which starts
  with 'x' 'm' 'l' should not be done here (it might be 'declared'
  though reserved).
* XmlNamespaceManager.cs : error message for "'xml' prefix for
  different namespace" is incorrect.

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

19 years agoRevert my unfinished patches that were accidentally committed
Duncan Mak [Tue, 8 Mar 2005 04:40:02 +0000 (04:40 -0000)]
Revert my unfinished patches that were accidentally committed

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

19 years ago2005-03-07 Duncan Mak <duncan@novell.com>
Duncan Mak [Tue, 8 Mar 2005 04:12:16 +0000 (04:12 -0000)]
2005-03-07  Duncan Mak  <duncan@novell.com>

* codegen.cs (Save):  Catch UnauthorizedAccessException as
well. Fixes bug #73454.

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

19 years ago * DataViewManagerListItemTypeDescriptor.cs: Implement missing
Jackson Harper [Mon, 7 Mar 2005 23:32:01 +0000 (23:32 -0000)]
* DataViewManagerListItemTypeDescriptor.cs: Implement missing
features. These are needed for System.Windows.Forms databinding.

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

19 years ago * Binding.cs: Push data pushes from data -> property. Check if the
Jackson Harper [Mon, 7 Mar 2005 21:51:54 +0000 (21:51 -0000)]
* Binding.cs: Push data pushes from data -> property. Check if the
property is readonly when attempting to set it.

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