mono.git
18 years ago2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 29 Jun 2005 22:38:30 +0000 (22:38 -0000)]
2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* supportw.c:
* supportw.h:
* Makefile.am: new library intended to provide often P/Invoked windows
API functions not present in io-layer.

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

18 years agoOSX fixes
Miguel de Icaza [Wed, 29 Jun 2005 20:49:34 +0000 (20:49 -0000)]
OSX fixes

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

18 years ago2005-06-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 29 Jun 2005 20:00:45 +0000 (20:00 -0000)]
2005-06-29  Sebastien Pouliot  <sebastien@ximian.com>

* X509CRL.cs: Fix the case where no entry are present in the CRL (as
the structure is optional).

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

18 years ago * UnixEnvironment: Add User, Login properties.
Jonathan Pryor [Wed, 29 Jun 2005 19:51:51 +0000 (19:51 -0000)]
  * UnixEnvironment: Add User, Login properties.
  * Syscall.cs: Add locking around cuserid, crypt, encrypt, getlogin.

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

18 years ago2005-06-29 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 29 Jun 2005 19:38:39 +0000 (19:38 -0000)]
2005-06-29  Ben Maurer  <bmaurer@ximian.com>

* Makefile (TEST_MCS_FLAGS): Remove bad dep on S.Data.

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

18 years ago2005-06-29 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 29 Jun 2005 19:36:50 +0000 (19:36 -0000)]
2005-06-29  Ben Maurer  <bmaurer@ximian.com>

* DataTableTest.cs: Add Gonz's test from corlib that should be here.

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

18 years ago2005-06-29 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 29 Jun 2005 17:44:33 +0000 (17:44 -0000)]
2005-06-29  Miguel de Icaza  <miguel@ximian.com>

* mkbundle.cs: Add support for OSX in the generated assembly
code.

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 17:35:43 +0000 (17:35 -0000)]
2005-06-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
  to ISO 8601 and XSD datatypes 3.2.6.1).

* XmlConvertTests.cs : added timespan milliseconds testcase.

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 16:41:02 +0000 (16:41 -0000)]
2005-06-29  Atsushi Enomoto  <atsushi@ximian.com>

Updated referenced msdn page to msdn2.microsoft.com.

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

18 years ago2005-06-29 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 29 Jun 2005 15:19:12 +0000 (15:19 -0000)]
2005-06-29  Marek Safar  <marek.safar@seznam.cz>

The big error and warning messages review.

* anonymous.cs,
* assign.cs,
* attribute.cs,
* class.cs,
* codegen.cs,
* convert.cs,
* cs-parser.jay,
* cs-tokenizer.cs,
* decl.cs,
* delegate.cs,
* doc.cs,
* driver.cs,
* ecore.cs,
* enum.cs,
* expression.cs,
* flowanalysis.cs,
* iterators.cs,
* literal.cs,
* location.cs,
* modifiers.cs,
* namespace.cs,
* parameter.cs,
* pending.cs,
* report.cs,
* rootcontext.cs,
* statement.cs,
* support.cs,
* tree.cs,
* typemanager.cs: Updated.

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

18 years agoerror messages review
Marek Safar [Wed, 29 Jun 2005 14:55:08 +0000 (14:55 -0000)]
error messages review

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

18 years ago2005-06-29 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Wed, 29 Jun 2005 13:31:18 +0000 (13:31 -0000)]
2005-06-29  Sureshkumar T  <tsureshkumar@novell.com>

* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsInternalException.cs: Add ctor for InnerException.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs: Throw TdsInternalException rather than
  SocketException.
* System.Data/System.Data.SqlClient/SqlConnection.cs: Open (): catch TdsInternalException and throw
  SqlException.
* System.Data/System.Data.SqlClient/SqlException.cs: code re-organised to pass message as well with
  the exception.

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 12:52:39 +0000 (12:52 -0000)]
2005-06-29  Atsushi Enomoto  <atsushi@ximian.com>

* create-mscompat-collation-table.cs,
* mono-tailoring-source.txt : removed extraneous level 4 sortkey
  which cannot be supported.
* SimpleCollator.cs : added GetContraction() and used in some places.
  Now CompareOptions is set only once. Reordered some code (e.g.
  ignorable check -> get compat char -> compare).

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

18 years ago * map.c: Handle Syslog-related changes (SyslogFacility isn't a
Jonathan Pryor [Wed, 29 Jun 2005 12:16:24 +0000 (12:16 -0000)]
* map.c: Handle Syslog-related changes (SyslogFacility isn't a
  [Flags] enum); make-map.exe changes.

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

18 years ago * Syscall.cs: SyslogFacility shouldn't be [Flags] either. Sigh.
Jonathan Pryor [Wed, 29 Jun 2005 12:13:45 +0000 (12:13 -0000)]
* Syscall.cs: SyslogFacility shouldn't be [Flags] either.  Sigh.
  Thanks to Vorobiev Maksim for pointing this out.
* make-map.cs: Don't generate conversion code for [Obsolete] enum members.
  This assumes that (1) the enum member's value is invalid, or (2) a
  corrected member with the same value exists.  This fix allows us to
  obsolete invalid members (instead of removing them) without screwing up
  the generated code -- consider LOG_USRE, the mis-spelling of LOG_USER.
  Since SyslogFacility was (incorrectly) a [Flags] enum, since both LOG_USER
  and LOG_USRE had the same value, we'd get a EINVAL error trying to convert
  a valid value, since LOG_USRE would exist, would be checked for, and the
  check would succeed (since it had the same value as LOG_USER).
  This change allows us to be slightly more permissive with versioning.

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

18 years agoFixed to pass after MS fix
Marek Safar [Wed, 29 Jun 2005 11:45:43 +0000 (11:45 -0000)]
Fixed to pass after MS fix

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

18 years agocorrection in test case
Manjula GHM [Wed, 29 Jun 2005 11:40:19 +0000 (11:40 -0000)]
correction in test case

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

18 years ago2005-06-29 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Wed, 29 Jun 2005 11:31:11 +0000 (11:31 -0000)]
2005-06-29  Sureshkumar T  <tsureshkumar@novell.com>

* ArithmeticExpressions.cs: Eval :if any one of the argument is
null for an operator, the result is also NULL.

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 11:14:05 +0000 (11:14 -0000)]
2005-06-29  Atsushi Enomoto  <atsushi@ximian.com>

* DataSetReadXmlSchemaTest.cs : set [Category("InetAccess")]

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 10:59:11 +0000 (10:59 -0000)]
2005-06-29  Atsushi Enomoto  <atsushi@ximian.com>

* SimpleCollator.cs : sort tailoring tables before actual usage.
  Support diacritical remappings (it is customized collation rule
  which does not exist in UCA).

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

18 years ago2005-06-29 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Wed, 29 Jun 2005 10:36:46 +0000 (10:36 -0000)]
2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>

* ControlBindingsCollection.cs
- Throws an exception on null datasource when adding
- Checks for duplicated bindings when adding

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 10:29:56 +0000 (10:29 -0000)]
2005-06-29  Atsushi Enomoto  <atsushi@ximian.com>

* SimpleCollator.cs : build culture specific tailoring table from
  TailoringInfo and unified data array.
* create-mscompat-collation-table.cs : Added null termination to
  sortkey map tailorings (mostly to save my eyes).
* MSCompatUnicodeTable.template : added public TailoringValues.

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

18 years agoStandardize file-endings. Set svn:eol-style=native on LF-terminated files.
Raja R Harinath [Wed, 29 Jun 2005 09:50:30 +0000 (09:50 -0000)]
Standardize file-endings.  Set svn:eol-style=native on LF-terminated files.

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

18 years agoCorrection in test case
Manjula GHM [Wed, 29 Jun 2005 09:05:44 +0000 (09:05 -0000)]
Correction in test case

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

18 years agoFix csc error CS0234
Rafael Mizrahi [Wed, 29 Jun 2005 08:34:39 +0000 (08:34 -0000)]
Fix csc error CS0234

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

18 years ago2005-06-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 29 Jun 2005 07:06:39 +0000 (07:06 -0000)]
2005-06-29  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c: Revert the last change as it seems to break the build.

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 07:02:42 +0000 (07:02 -0000)]
2005-06-29  Atsushi Enomoto  <atsushi@ximian.com>

* SortKeyBuffer.cs : handle special weight (category 06) characters.
* Collation-notes.txt : Updated description on special weight (it was
  incorrect).
* TestDriver.cs : added special weight cases.

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

18 years agoTestcase from #75417
Raja R Harinath [Wed, 29 Jun 2005 06:39:48 +0000 (06:39 -0000)]
Testcase from #75417

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

18 years ago2005-06-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 29 Jun 2005 06:02:57 +0000 (06:02 -0000)]
2005-06-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.

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

18 years ago2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jun 2005 05:53:19 +0000 (05:53 -0000)]
2005-06-29  Atsushi Enomoto  <atsushi@ximian.com>

* MSCompatUnicodeTable.template : added GetTailoringInfo().
* SimpleCollator.cs : Now tailoring information is acquired and used.
  (FrenchSort is supported but Compare() won't work expectedly since
   the table is still incomplete for those diacritical marks).
* SortKeyBuffer.cs : On reversing diacritical weights, it should
  ignore zeros. Reset() should reset frenchSorted flag.

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

18 years ago2005-06-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 29 Jun 2005 04:32:18 +0000 (04:32 -0000)]
2005-06-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c (mono_arch_cpu_init): Fix setting of fp precision in the VC build.

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

18 years ago * TreeView.cs (OnKeyDown): Support left and right properly
Jackson Harper [Wed, 29 Jun 2005 04:18:39 +0000 (04:18 -0000)]
    * TreeView.cs (OnKeyDown): Support left and right properly
        (navigates as well as expanding and collapsing.
        - Add support for Multiply, this expands all the selected nodes
        children.
        - Fix some tabbing.

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

18 years ago2005-06-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 29 Jun 2005 03:41:11 +0000 (03:41 -0000)]
2005-06-28  Zoltan Varga  <vargaz@freemail.hu>

* mono-compiler.h (trunc): Define this to be floor under win32.

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

18 years ago2005-06-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 29 Jun 2005 03:08:12 +0000 (03:08 -0000)]
2005-06-28  Zoltan Varga  <vargaz@freemail.hu>

* Makefile.am appdomain3.cs: Remove appdomain3 test, since it is a duplicate of appdomain-unload.

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

18 years ago2005-06-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 29 Jun 2005 03:05:26 +0000 (03:05 -0000)]
2005-06-28  Zoltan Varga  <vargaz@freemail.hu>

* appdomain.c (unload_thread_main): Mark this as WINAPI.

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

18 years agoFix
Miguel de Icaza [Wed, 29 Jun 2005 02:34:15 +0000 (02:34 -0000)]
Fix

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

18 years ago Add support for ADD and SUBTRACT (thanks peter).
Jackson Harper [Tue, 28 Jun 2005 23:19:50 +0000 (23:19 -0000)]
    Add support for ADD and SUBTRACT (thanks peter).

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

18 years agoOops, fix test case
Miguel de Icaza [Tue, 28 Jun 2005 22:59:55 +0000 (22:59 -0000)]
Oops, fix test case

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

18 years ago2005-06-28 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 28 Jun 2005 22:57:41 +0000 (22:57 -0000)]
2005-06-28  Miguel de Icaza  <miguel@novell.com>

* pending.cs: Do not define a proxy if the base method is virtual,
it will be picked up by the runtime (bug 75270).

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

18 years ago Add support for
Jackson Harper [Tue, 28 Jun 2005 22:56:18 +0000 (22:56 -0000)]
    Add support for
        toggling checkboxes with the space bar.

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

18 years ago2005-06-28 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 28 Jun 2005 22:54:26 +0000 (22:54 -0000)]
2005-06-28  Miguel de Icaza  <miguel@novell.com>

* pending.cs: Do not define a proxy if the base method is virtual,
it will be picked up by the runtime (bug 75270).

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

18 years agoAdd
Miguel de Icaza [Tue, 28 Jun 2005 22:53:58 +0000 (22:53 -0000)]
Add

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

18 years ago * TreeView.cs: Implement keyboard navigation, currently supports,
Jackson Harper [Tue, 28 Jun 2005 22:40:40 +0000 (22:40 -0000)]
    * TreeView.cs: Implement keyboard navigation, currently supports,
        LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END.

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

18 years ago * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
Jackson Harper [Tue, 28 Jun 2005 21:16:55 +0000 (21:16 -0000)]
    * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
        tree.

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

18 years ago2005-06-28 Elliott Draper <el@eldiablo.co.uk>
Ben Maurer [Tue, 28 Jun 2005 20:44:00 +0000 (20:44 -0000)]
2005-06-28  Elliott Draper  <el@eldiablo.co.uk>

* Activator.cs: This implements the generic Activator.CreateInstance<T>()
function for NET_2_0. It's full signature is:
public static T CreateInstance<T>();

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

18 years ago2005-06-28 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Tue, 28 Jun 2005 20:39:06 +0000 (20:39 -0000)]
2005-06-28  Ben Maurer  <bmaurer@ximian.com>

* MutexTest.cs: Re-enable the mutex tests. They seem to work for
me now when I ran them in a loop on the smp box.

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

18 years agoThis is an internal class
Miguel de Icaza [Tue, 28 Jun 2005 20:31:10 +0000 (20:31 -0000)]
This is an internal class

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

18 years ago* CodeGeneratorFromTypeTest.cs: Added additional property tests.
Gert Driesen [Tue, 28 Jun 2005 20:27:55 +0000 (20:27 -0000)]
* CodeGeneratorFromTypeTest.cs: Added additional property tests.
* CodeGenerator.cs: On 2.0 profile, internal members are also marked
virtual. Fixed access modifier for FamilyAndAssembly to match MS.NET.

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

18 years ago2005-06-27 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Tue, 28 Jun 2005 20:26:29 +0000 (20:26 -0000)]
2005-06-27  Ben Maurer  <bmaurer@ximian.com>

* mini.c (NEW_AOTCONST): make sure to call mono_get_got_var
outside of the macro, so strange stuff doesn't happen with gcc4
(NEW_AOTCONST_TOKEN): Likewise.

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

18 years ago2005-06-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jun 2005 20:03:49 +0000 (20:03 -0000)]
2005-06-28  Atsushi Enomoto  <atsushi@ximian.com>

* create-mscompat-collation-table.cs : Further fixes on Jamo,
  diacritical weights by character name, and *Numbers primary weights.

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

18 years ago Add missing event.
Jackson Harper [Tue, 28 Jun 2005 19:48:32 +0000 (19:48 -0000)]
    Add missing event.

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

18 years ago * TabControl.cs: Add missing event.
Jackson Harper [Tue, 28 Jun 2005 19:45:54 +0000 (19:45 -0000)]
    * TabControl.cs: Add missing event.

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

18 years ago2005-06-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jun 2005 19:07:52 +0000 (19:07 -0000)]
2005-06-28  Atsushi Enomoto  <atsushi@ximian.com>

* create-mscompat-collation-table.cs : More fix on Devanagari,
  Gujarati, Oliya, Tamil and Lao sortkeys.

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

18 years ago* CodeGeneratorFromExpressionTest.cs: No longer inherit from
Gert Driesen [Tue, 28 Jun 2005 18:17:53 +0000 (18:17 -0000)]
* CodeGeneratorFromExpressionTest.cs: No longer inherit from
CodeGeneratorTestBase. Added tests for CodeTypeReference.
* CodeTypeReferenceTest.cs: Tests for zero-length and null type names,
and null type.
* CodeGeneratorFromExpressionTest.cs: Renumbered tests for
TypeReferenceExpressionTest. Added tests for zero-length or null
type name, and object type.
* CSharpCodeGenerator.cs: Fixed GetTypeOutput to match MS.NET 1.x and 2.0.
* CodeTypeReference.cs: Also consider null type name as void, throw
ArgumentNullException for null type on 2.0 profile.
* System_test.dll.sources: Added CodeTypeReferenceTest.cs from
System.CodeDom.

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

18 years agoline ending sanity
Ben Maurer [Tue, 28 Jun 2005 18:05:08 +0000 (18:05 -0000)]
line ending sanity

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

18 years agobe less verbose
Ben Maurer [Tue, 28 Jun 2005 17:26:26 +0000 (17:26 -0000)]
be less verbose

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

18 years agoconsistant line endings
Ben Maurer [Tue, 28 Jun 2005 16:53:40 +0000 (16:53 -0000)]
consistant line endings

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

18 years ago2005-06-08 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 16:30:44 +0000 (16:30 -0000)]
2005-06-08  Martin Baulig  <martin@ximian.com>

The big Iterators rewrite :-)

* iterators.cs: Rewrite this to use the anonymous methods framework.

* rootcontext.cs (RootContext.DefineTypes): Define Delegates
before the TypeContainers; see 2test-21.cs.

* class.cs
(TypeContainer.DefineType): Don't create a new EmitContext if we
already have one (this only happens if we're an Iterator).
(TypeContainer.Define): Also call Define() on all our iterators.
(Method.CreateEmitContext): Added support for iterators.

* anonymous.cs
(AnonymousContainer): New abstract base class for `AnonymousMethod'.
(AnonymousContainer.CreateMethodHost): Moved here from
AnonymousMethod and made abstract.
(AnonymousContainer.CreateScopeType): New abstract method.
(AnonymousContainer.IsIterator): New public property.
(ScopeInfo.EmitScopeType): Call CreateScopeType() on our Host to
get the ScopeTypeBuilder rather than manually defining it here.
(ScopeInfo.EmitScopeInstance): New public method; correctly handle
iterators here.

* driver.cs (Driver.MainDriver): Call TypeManager.InitCodeHelpers()
before RootContext.DefineTypes().

* codegen.cs (EmitContext.RemapToProxy): Removed.
(EmitContext.CurrentAnonymousMethod): Changed type from
AnonymousMethod -> AnonymousContainer.
(EmitContext.ResolveTopBlock): Protect from being called twice.
(EmitContext.MapVariable, RemapParameter(LValue)): Removed.
(EmitContext.EmitThis): Removed the iterators hacks; use the
anonymous methods framework for that.

* statement.cs
(ToplevelBlock.Container): Make this a property, not a field.
(ToplevelBlock.ReParent): New public method; move the
ToplevelBlock into a new container.
(Foreach.TemporaryVariable): Simplify.

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

18 years ago2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 28 Jun 2005 16:20:50 +0000 (16:20 -0000)]
2005-06-28  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializer.cs: Fix race between XmlSerializer and the
serializer generator.

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

18 years ago2005-06-28 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 28 Jun 2005 15:28:42 +0000 (15:28 -0000)]
2005-06-28  Lluis Sanchez Gual  <lluis@novell.com>

* Decimal.cs: Renamed internal fields for the sake of serialization
interoperability with MS.NET.
* Exception.cs: In the StackTrace property, return the stack trace
if it has a value, even if the exception has not been thrown
(it may have been deserialized).

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

18 years ago**** Merged r45430 from GMCS ****
Martin Baulig [Tue, 28 Jun 2005 15:11:17 +0000 (15:11 -0000)]
**** Merged r45430 from GMCS ****

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

18 years agoNew test.
Martin Baulig [Tue, 28 Jun 2005 15:10:46 +0000 (15:10 -0000)]
New test.

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

18 years ago2005-06-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 15:10:05 +0000 (15:10 -0000)]
2005-06-28  Martin Baulig  <martin@ximian.com>

* cs-parser.jay (interface_method_declaration): Avoid a
reduce/reduce conflict by moving some of the code into a separate
`interface_method_declaration_body' rule; fixes #75368.

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

18 years ago**** Merged r45429 from GMCS ****
Martin Baulig [Tue, 28 Jun 2005 14:41:54 +0000 (14:41 -0000)]
**** Merged r45429 from GMCS ****

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

18 years agoUpdated.
Martin Baulig [Tue, 28 Jun 2005 14:22:09 +0000 (14:22 -0000)]
Updated.

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

18 years ago2005-06-04 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 14:21:28 +0000 (14:21 -0000)]
2005-06-04  Martin Baulig  <martin@ximian.com>

**** Merged r45395 from GCS ****

The big Foreach rewrite - Part II.

* typemanager.cs (TypeManager.object_getcurrent_void): Replaced
with `PropertyInfo ienumerator_getcurrent'.

* codegen.cs (VariableStorage): Removed.

* statement.cs
(Foreach): Derive from Statement, not ExceptionStatement.
(Foreach.CollectionForeach): New nested class.  Moved all the code
dealing with collection foreach here.
(Foreach.ForeachHelperMethods): Removed.
(Foreach.TemporaryVariable): Implement IMemoryLocation.

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

18 years ago2005-06-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 13:41:05 +0000 (13:41 -0000)]
2005-06-28  Martin Baulig  <martin@ximian.com>

* loader.c (method_from_methodspec): Fix #75334.

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

18 years ago**** Merged r44912 from GMCS ****
Martin Baulig [Tue, 28 Jun 2005 13:40:11 +0000 (13:40 -0000)]
**** Merged r44912 from GMCS ****

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

18 years ago2005-05-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 13:13:28 +0000 (13:13 -0000)]
2005-05-20  Martin Baulig  <martin@ximian.com>

Merged r44808 from GMCS.

* class.cs (TypeContainer.CircularDepException): Removed.
(TypeContainer.DefineType): Removed the `InTransit' stuff.
(TypeContainer.CheckRecursiveDefinition): Check for circular class
(CS0146) and interface (CS0529) dependencies here.

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

18 years agoUpdate Visual MainWin project file to recent changes in sources
Andrew Skiba [Tue, 28 Jun 2005 12:47:42 +0000 (12:47 -0000)]
Update Visual MainWin project file to recent changes in sources

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

18 years agoKill `priv_fmt_expr'.
Martin Baulig [Tue, 28 Jun 2005 12:23:12 +0000 (12:23 -0000)]
Kill `priv_fmt_expr'.

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

18 years ago2005-06-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jun 2005 11:56:26 +0000 (11:56 -0000)]
2005-06-28  Atsushi Enomoto  <atsushi@ximian.com>

* create-mscompat-collation-table.cs : Fixed Georgian, Thai, Gurmukhi
  sortkey values.

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

18 years ago2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Tue, 28 Jun 2005 11:50:14 +0000 (11:50 -0000)]
2005-06-28  Sureshkumar T  <tsureshkumar@novell.com>

* OdbcDataReader.cs: GetPrimaryKeys (): use the length indicator
for GetString, otherwise, it creates a string of length 255. Use
ArrayList for keys as the columns are different from the selected
columns. fixes bug #75263.

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

18 years agoadd fixme.lst, remove fixed test cases, touch right file during make.
Andrew Skiba [Tue, 28 Jun 2005 11:37:33 +0000 (11:37 -0000)]
add fixme.lst, remove fixed test cases, touch right file during make.

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

18 years ago * map.c, map.h: Handle Syslog-related changes (SyslogLevel isn't a [Flags]
Jonathan Pryor [Tue, 28 Jun 2005 11:34:22 +0000 (11:34 -0000)]
* map.c, map.h: Handle Syslog-related changes (SyslogLevel isn't a [Flags]
  enum; change in order between LOG_USER and LOG_USRE).

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

18 years ago * Syscall.cs: correct value of LOG_CRON (it shouldn't be identical to
Jonathan Pryor [Tue, 28 Jun 2005 11:32:29 +0000 (11:32 -0000)]
* Syscall.cs: correct value of LOG_CRON (it shouldn't be identical to
  LOG_UUCP).  SyslogLevel shouldn't have [Flags].  Move LOG_USER to be
  before LOG_USRE so that the generated map code doesn't return EINVAL when
  LOG_USER is specified.

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

18 years ago * DataRow.cs: Delete (): if row is detached, do nothing.
Sureshkumar T [Tue, 28 Jun 2005 11:21:23 +0000 (11:21 -0000)]
* DataRow.cs: Delete (): if row is detached, do nothing.
donot remove proposed version as this value is depended upon by this [column].
fixes bug #75388.

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

18 years ago2005-06-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 11:12:17 +0000 (11:12 -0000)]
2005-06-28  Martin Baulig  <martin@ximian.com>

* gtest-177.cs: New test for #74953.

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

18 years ago2005-06-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 11:09:01 +0000 (11:09 -0000)]
2005-06-28  Martin Baulig  <martin@ximian.com>

* mini.c (mini_class_is_system_array): New static method; use this
instead of `klass->parent == mono_defaults.array_class' everywhere
since this also works for the new generic array class.

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

18 years ago2005-06-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jun 2005 11:08:02 +0000 (11:08 -0000)]
2005-06-28  Atsushi Enomoto  <atsushi@ximian.com>

* create-mscompat-collation-table.cs : Fixed Thai character primary
  and secondary values. Fixed Thaana letters. Added more LAMESPEC
  CJK compat. Fixed some circled CJK secondary weight.
  Hacked some nonspacing mark sortkey value adjustment.

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

18 years ago2005-06-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 11:07:33 +0000 (11:07 -0000)]
2005-06-28  Martin Baulig  <martin@ximian.com>

Fix #74953 - Arrays now implement the generic IList<T> interface
on the 2.0 platform.

* class-internals.h (MonoDefaults): Added `generic_array_class'.

* reflection.c (mono_class_bind_generic_parameters): New public
function; similar to mono_reflection_bind_generic_parameters(),
but operates on a `MonoType *' and not on a `MonoReflectionType *'.

* domain.c (mono_init_internal): Try to initialize.
`mono_defaults.generic_array_class' here; this'll only succeed if
we're using the 2.0 corlib.

* icall.c
(ves_icall_System_Array_InternalArray_GetGenericValueImpl): Added
interncall for "System.Array/InternalArray`1:GetGenericValueImpl".
(mono_lookup_internal_call): Added support for nested classes.

* loader.c
(mono_get_method_from_token): Set `result->signature->pinvoke' if
we're an interncall and have generic arguments.

* class.c
(mono_class_inflate_generic_methods): Allow interncalls and PInvoke.
(mono_bounded_array_class_get): If we're on the 2.0 corlib, use an
instance of System.Array.InternalArray<T> for arrays, so they
implement the generic IList<T> interface.

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

18 years ago2005-06-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 10:56:02 +0000 (10:56 -0000)]
2005-06-28  Martin Baulig  <martin@ximian.com>

* Array.cs (Array.InternalArray<T>): New nested class; derives
from Array.  This is now used by the runtime for arrays; fixes #74953.

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

18 years ago2005-06-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 28 Jun 2005 10:51:19 +0000 (10:51 -0000)]
2005-06-28  Martin Baulig  <martin@ximian.com>

* typemanager.cs (TypeManager.MemberLookup_FindMembers): Move the
array check after the check for TypeBuilder's.

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

18 years agoSome more corrections in test cases
Manjula GHM [Tue, 28 Jun 2005 10:23:45 +0000 (10:23 -0000)]
Some more corrections in test cases

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

18 years ago2005-06-28 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Tue, 28 Jun 2005 10:01:23 +0000 (10:01 -0000)]
2005-06-28  Sureshkumar T  <tsureshkumar@novell.com>

* DataRow.cs: Delete (): if row is detached, remove proposed
version and do nothing else. fixes bug #75388.

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

18 years ago Fix compilation error
Manjula GHM [Tue, 28 Jun 2005 10:01:20 +0000 (10:01 -0000)]
 Fix compilation error

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

18 years ago2005-06-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jun 2005 09:44:09 +0000 (09:44 -0000)]
2005-06-28  Atsushi Enomoto  <atsushi@ximian.com>

* create-mscompat-collation-table.cs : CP932.TXT was not parsed as
  expected. JIS ordering was incorrect. OtherNumbers that represents
  10 or more values were incorrectly computed the offset. Some Hangul
  compat characters has different offset.

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

18 years agoSupport suitable property to override
Manjula GHM [Tue, 28 Jun 2005 08:50:15 +0000 (08:50 -0000)]
Support suitable property to override

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

18 years ago2005-06-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jun 2005 07:23:06 +0000 (07:23 -0000)]
2005-06-28  Atsushi Enomoto  <atsushi@ximian.com>

* create-mscompat-collation-table.cs : Fixed 0x8 category characters.
  Added hack for need-to-be-fixed characters to fall into 0xA category.
* create-collation-element-table.cs : previous checkin seem failed :(
* README: updated a bit.

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

18 years agoadd nunit support
Andrew Skiba [Tue, 28 Jun 2005 06:41:51 +0000 (06:41 -0000)]
add nunit support

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

18 years ago2005-06-27 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 28 Jun 2005 05:47:02 +0000 (05:47 -0000)]
2005-06-27  Zoltan Varga  <vargaz@freemail.hu>

* pinvoke2.cs: Add test for #75374.

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

18 years ago2005-06-27 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 28 Jun 2005 05:46:15 +0000 (05:46 -0000)]
2005-06-27  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (emit_marshal_string): Applied patch from Itamar Rogel (chastamar@yahoo.com). Fixes
#75374.

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

18 years ago2005-06-27 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 28 Jun 2005 05:13:00 +0000 (05:13 -0000)]
2005-06-27  Zoltan Varga  <vargaz@freemail.hu>

* Makefile.am pinvoke18.cs pinvoke2.cs: Merge pinvoke18 into pinvoke2.

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

18 years ago2005-06-27 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 28 Jun 2005 03:47:26 +0000 (03:47 -0000)]
2005-06-27  Peter Bartok  <pbartok@novell.com>

* TextControl.cs:
  - Made line ending size configurable (now allows for counting
    lineendings as \n or \r\n)
  - Added margin to viewport to keep caret visible on right side
  - Fixed translation routines for line/pos to documentpos to consider
    cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
  - Fixed some line-endings to be unix style
  - Fixed Document.FormatText to perform it's calculations 1-based
  - Added descriptions for a few methods that might otherwise get
    used wrong
  - Added NOTE section with some basic conventions to remember at
    the top of the file
  - Major fixup for RichTextBox selection drawing:
    * Fixed crashes when multiple tags on a single line were selected
    * fixed selection box drawing not overlaying text
    * fixed bogus offset calculation for tags not starting at index 1
    * Switched behaviour from using multiple Substrings of a
      StringBuilder.ToString() to using multiple
      StringBuilder.ToString(start, length) statements, hoping this is
      faster (kept original version commented out in the code, in case
      original version was faster)
* TextBox.cs (set_TextAlignment): TextBox always needs to wrap if
  alignment != Left
* TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
  call it as well

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

18 years ago * TabControl.cs: Move to the left and right with the arrow
Jackson Harper [Tue, 28 Jun 2005 02:26:24 +0000 (02:26 -0000)]
    * TabControl.cs: Move to the left and right with the arrow
        keys. These keys don't cycle beyond first and last like
        tab. Refresh all the tabs when scrolling them to the left or
        right.

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

18 years ago * TabControl.cs:
Jackson Harper [Tue, 28 Jun 2005 01:35:26 +0000 (01:35 -0000)]
    * TabControl.cs:
          - ToString: Added method
          - CreateParams: Remove TODO and comment
          - OnKeyDown: Cycle through bounds properly.
          - SelectedIndex: Scroll to the right or left if we need to
          display the newly selected tab.

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

18 years agomore stuff that is somehow failing now
Ben Maurer [Mon, 27 Jun 2005 22:35:03 +0000 (22:35 -0000)]
more stuff that is somehow failing now

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

18 years agoadd new test and reference System.Data when compiling tests
Gonzalo Paniagua Javier [Mon, 27 Jun 2005 22:08:07 +0000 (22:08 -0000)]
add new test and reference System.Data when compiling tests

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

18 years ago2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 27 Jun 2005 22:07:27 +0000 (22:07 -0000)]
2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* GlobalizationAndDomains.cs: more tests for bugz.

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

18 years ago2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 27 Jun 2005 22:07:14 +0000 (22:07 -0000)]
2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* NumberFormatInfo.cs: undo workaround for bug 55978 as it's not needed
any more. This fixed bug #75396.

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