mono.git
14 years ago2010-04-15 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Thu, 15 Apr 2010 19:02:02 +0000 (19:02 -0000)]
2010-04-15  Jérémie Laval  <jeremie.laval@gmail.com>

In class/System.Core/:
   * System.Core_test.dll.sources: Add PLinq unit tests

In class/System.Core/Test/System.Linq/:
   * ParallelEnumerableTests.cs:
   * ParallelTestHelper.cs: Add PLinq unit tests

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

14 years ago2010-04-15 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Thu, 15 Apr 2010 19:01:50 +0000 (19:01 -0000)]
2010-04-15  Jérémie Laval  <jeremie.laval@gmail.com>

In class/System.Core/:
   * net_4_0_System.Core.dll.sources: add PLinq sources

In class/System.Core/System.Linq/:
   * OrderedParallelQuery.cs:
   * ParallelEnumerable.cs:
   * ParallelExecuter.cs:
   * ParallelPartitioner.cs:
   * ParallelQuery.cs:
   * ParallelQueryEnumerator.cs: First check-in of PLinq

In class/System.Core/System.Linq/Internal/:
   * AggregationList.cs:
   * ConcurrentGrouping.cs:
   * ConcurrentLookup.cs:
   * OrderingEnumerator.cs:
   * ParallelQuickSort.cs:
   * RangeList.cs:
   * RepeatList.cs:
   * ReverseList.cs:
   * StripPartitioner.cs: Initial check-in of PLinq

In class/System.Core/System.Linq/Internal/QueryNodes/:
   * QueryBaseNode.cs:
   * QueryCastNode.cs:
   * QueryChildNode.cs:
   * QueryConcatNode.cs:
   * QueryDefaultEmptyNode.cs:
   * QueryGroupByNode.cs:
   * QueryMuxNode.cs:
   * QueryOptionNode.cs:
   * QueryOrderByNode.cs:
   * QueryOrderGuardNode.cs:
   * QueryOrderedStreamNode.cs:
   * QueryReverseNode.cs:
   * QuerySelectManyNode.cs:
   * QuerySelectNode.cs:
   * QuerySetNode.cs:
   * QueryStartNode.cs:
   * QueryStreamNode.cs:
   * QueryWhereNode.cs:
   * QueryZipNode.cs:
   * WrapHelper.cs: Initial check-in of PLinq

In class/System.Core/System.Linq/Internal/Visitors/:
   * INodeVisitor.cs:
   * IVisitableNode.cs:
   * QueryCheckerVisitor.cs:
   * QueryOptions.cs: First check-in of PLinq

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

14 years ago2010-04-15 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Thu, 15 Apr 2010 19:01:37 +0000 (19:01 -0000)]
2010-04-15  Jérémie Laval  <jeremie.laval@gmail.com>

In class/System.Core/System.Linq/:
   * ParallelExecutionMode.cs:
   * ParallelMergeOptions.cs: Initial check-in of PLinq (enum)

In class/System.Core/System.Linq/Internal/QueryNodes/:
   * SetInclusion.cs: Initial check-in of PLinq (enum)

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

14 years ago2010-04-15 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Thu, 15 Apr 2010 19:01:26 +0000 (19:01 -0000)]
2010-04-15  Jérémie Laval  <jeremie.laval@gmail.com>

In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs:
   * ConcurrentBag.cs: Add BOOTSTRAP_NET_4_0

In class/System/System.Threading/:
   * Barrier.cs: Add BOOTSTRAP_NET_4_0

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentSkipList.cs:
   * OrderablePartitioner.cs:
   * Partitioner.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Collections/:
   * IStructuralComparable.cs:
   * IStructuralEquatable.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Task.cs:
   * TaskCanceledException.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * TaskStatus.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading/:
   * AtomicBoolean.cs:
   * CountdownEvent.cs:
   * SpinLock.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System/:
   * Tuple.cs:
   * Tuples.cs: Add BOOTSTRAP_NET_4_0 define

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

14 years ago2010-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 15 Apr 2010 18:31:06 +0000 (18:31 -0000)]
2010-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (mono_method_get_signature_full): Use new function
inflate_generic_signature_checked to check for errors.

Fixes #560839.

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

14 years ago2010-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 15 Apr 2010 18:30:58 +0000 (18:30 -0000)]
2010-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (inflate_generic_signature): Add _checked variant
and move this function to use it.

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

14 years ago2010-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 15 Apr 2010 17:42:37 +0000 (17:42 -0000)]
2010-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_setup_vtable_general): Use error checking
version of mono_class_inflate_generic_method_full.

Fixes #596975.

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

14 years ago * UnixSignal.cs: Change the native WaitAny() method to accept a
Jonathan Pryor [Thu, 15 Apr 2010 17:31:46 +0000 (17:31 -0000)]
* UnixSignal.cs: Change the native WaitAny() method to accept a
  Mono_Posix_RuntimeIsShuttingDown delegate, so that we can prevent an
  infinite loop while shutting the process down.  Fixes #592981.

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

14 years ago * Makefile.am: Revert previous linkage against libmono.so, as lupus
Jonathan Pryor [Thu, 15 Apr 2010 17:31:24 +0000 (17:31 -0000)]
* Makefile.am: Revert previous linkage against libmono.so, as lupus
  mentioned that it's unacceptable for MonoPosixHelper to link against
  libmono (e.g. when embedding mono, there might not be a libmono).
* map.h: Flush updated Mono_Unix_UnixSignal_SignalInfo prototype.
* signal.c: Don't use mono_runtime_is_shutting_down(). Instead, change
  Mono_Unix_UnixSignal_WaitAny() to accept a function pointer argument,
  which will return Environment.HasShutdownStarted in managed code (the
  moral equivalent of mono_runtime_is_shutting_down()).  This allows
  us to avoid a libmono dependency w/o lots of rewriting. Fixes #592981.

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

14 years ago2010-04-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 15 Apr 2010 17:17:18 +0000 (17:17 -0000)]
2010-04-15 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_inflate_generic_type_no_copy): Do proper
error handling passing MonoError around.

Fixes #560336.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 17:10:24 +0000 (17:10 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XamlType.cs : implement AllowedContentTypes and ContentWrappers.

* XamlTypeTest.cs, XamlLanguageTest.cs : enable AllowedContentTypes
  and ContentWrappers tests.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 16:40:33 +0000 (16:40 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XamlXmlReader.cs : handle types in clr-namespace.
* XamlType.cs : replaced Type-to-typename hack with better-working one.
* XamlLanguage,cs : add internal clr type name resolver method.
* XamlXmlWriter.cs : for Initialization, value is passed as a string,
  so don't try to verify it with the object type.

* XamlXmlReaderTest.cs : enable DateTime tests.
* XamlSchemaContextTest.cs : add a type name resolver test.

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

14 years agoremove unused using
Jb Evain [Thu, 15 Apr 2010 16:12:45 +0000 (16:12 -0000)]
remove unused using

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

14 years agoremove warning
Gonzalo Paniagua Javier [Thu, 15 Apr 2010 14:43:22 +0000 (14:43 -0000)]
remove warning

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 14:35:57 +0000 (14:35 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XmlnsCompatibleWithAttribute.cs
  IComponentConnector.cs
  XmlLangPropertyAttribute.cs
  XamlSetMarkupExtensionEventArgs.cs
  PropertyDefinition.cs
  XmlnsDefinitionAttribute.cs
  XmlnsPrefixAttribute.cs : another corcompare fix.

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

14 years ago2010-04-15 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 15 Apr 2010 12:20:40 +0000 (12:20 -0000)]
2010-04-15  Jb Evain  <jbevain@novell.com>

* dmcs.exe.config: update the runtime version to .net 4.0 RTM.

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

14 years ago2010-04-15 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 15 Apr 2010 11:56:06 +0000 (11:56 -0000)]
2010-04-15  Jb Evain  <jbevain@novell.com>

* Directory.cs: don't fully qualify name when not it's necessary.

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

14 years ago2010-04-15 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 15 Apr 2010 11:49:37 +0000 (11:49 -0000)]
2010-04-15  Jb Evain  <jbevain@novell.com>

* MemoryMappedFile.cs: implement CreateOrOpen.

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

14 years agoeol
Jb Evain [Thu, 15 Apr 2010 11:49:13 +0000 (11:49 -0000)]
eol

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 10:31:41 +0000 (10:31 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XamlXmlReader.cs : ongoing bugfixes to pass start object.

* XamlXmlReaderTest.cs : added a couple more of read and load tests.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 08:11:11 +0000 (08:11 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs, TypeExtensionMethods.cs :
  Value serialization improvements. Improved namespace handling.
  Remove unused code.

* XamlObjectReaderTest.cs : add more read tests (lots of them are
  not fully working yet).

* DateTime.xml : new test file. (not working though)

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 08:09:50 +0000 (08:09 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* System.Xaml_test.dll.sources : add XDataTest.cs.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 08:06:24 +0000 (08:06 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XamlXmlReader.cs : Return Member. Remove NIE.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 08:04:54 +0000 (08:04 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XData.cs : actual implementation.

* XDataTest.cs : new test.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 05:16:41 +0000 (05:16 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* Consts.cs.in : Add AssemblyWindowsBase, AssemblyPresentationCore_3_5
  and AssemblyPresentationFramework_3_5.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 05:16:21 +0000 (05:16 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* ArrayExtension.cs
  TrimSurroundingWhitespaceAttribute.cs
  RuntimeNamePropertyAttribute.cs
  TypeExtension.cs
  MarkupExtensionReturnTypeAttribute.cs
  DateTimeValueSerializer.cs
  IValueSerializerContext.cs
  RootNamespaceAttribute.cs
  MarkupExtension.cs
  Reference.cs
  AmbientAttribute.cs
  NameScopePropertyAttribute.cs
  ValueSerializer.cs
  DictionaryKeyPropertyAttribute.cs
  WhitespaceSignificantCollectionAttribute.cs
  ConstructorArgumentAttribute.cs
  IUriContext.cs
  INameScope.cs
  StaticExtension.cs
  IProvideValueTarget.cs
  ValueSerializerAttribute.cs
  IXamlTypeResolver.cs
  ContentWrapperAttribute.cs
  ContentPropertyAttribute.cs
  DependsOnAttribute.cs
  NullExtension.cs
  UidPropertyAttribute.cs : several corcompare fixes.

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

14 years ago2010-04-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Apr 2010 04:35:45 +0000 (04:35 -0000)]
2010-04-15  Atsushi Enomoto  <atsushi@ximian.com>

* XamlAccessLevel.cs : add missing methods.

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

14 years ago2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 15 Apr 2010 02:42:35 +0000 (02:42 -0000)]
2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>

* socket-io.c: make GetHostByName ("") work on windows.
Fixes bug #456723.

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

14 years ago2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 15 Apr 2010 02:01:10 +0000 (02:01 -0000)]
2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>

* object-internals.h:
* threads.c: use a spin lock when accesing the per-thread appdomain
list.

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

14 years ago2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 14 Apr 2010 22:27:35 +0000 (22:27 -0000)]
2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threads.c: no need to take the threads lock in push/pop appdomain.

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

14 years ago2010-04-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Apr 2010 22:24:14 +0000 (22:24 -0000)]
2010-04-15  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c (type_commands): Call mono_class_setup_methods () before
calling mono_class_num_methods (). Fixes #592244.

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

14 years ago2010-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 14 Apr 2010 22:13:58 +0000 (22:13 -0000)]
2010-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (_mono_reflection_parse_type): MS supports
non-assembly-qualified types in a generic type parameter list
when enclosed in '[]' (which signals that they should be a fqn).

This breaks ECMA specs for how type names are encoded in cattr
blobs but F# does it.

Fixes #576342.

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

14 years agoAdd here too
Miguel de Icaza [Wed, 14 Apr 2010 21:26:01 +0000 (21:26 -0000)]
Add here too

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

14 years agoAdd mono.pc for those using it as a way to probe for Mono
Miguel de Icaza [Wed, 14 Apr 2010 21:25:35 +0000 (21:25 -0000)]
Add mono.pc for those using it as a way to probe for Mono

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

14 years ago2010-04-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 14 Apr 2010 19:50:58 +0000 (19:50 -0000)]
2010-04-14  Miguel de Icaza  <miguel@novell.com>

* configure.in: turn the AC_MSG_ERROR into a AC_MSG_WARN since in
Andrew's configuration this aborts the build:

 host=i686-pc-linux-gnu != target=i586-suse-linux

And I no longer remember why I added that error in the first
place (we need to determine perhaps the arch/OS but it is
difficult with those strings).

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 18:47:36 +0000 (18:47 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlXmlWriter.cs : use TypeConverter to get string value to write.
  (TimeSpan shows the difference; the type's ValueSerializer is null,
  while TypeConverter is not, and gives the expected non-xsd output.)

* XamlXmlReaderTest.cs : add primitive TimeSpan reader test.

* TimeSpan.xml : new test file.

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 18:32:37 +0000 (18:32 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlSchemaContext.cs, TypeExtensionMethods.cs : reimplement some
  GetXamlType() overloads. Protected one should be the actual
  implementation.

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

14 years agoimplement TypeExtensionConverter and several fixes around.
Atsushi Eno [Wed, 14 Apr 2010 17:59:26 +0000 (17:59 -0000)]
implement TypeExtensionConverter and several fixes around.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 14 Apr 2010 16:43:36 +0000 (16:43 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Regression test for #422113.

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

14 years ago2010-04-14 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 14 Apr 2010 16:38:53 +0000 (16:38 -0000)]
2010-04-14  Jb Evain  <jbevain@novell.com>

* MemoryMappedViewAccessor.cs
* MemoryMappedFile.cs
* MemoryMappedViewStream.cs:
Properly retrieve the size of the mmapped file. Fixes the
unit tests.

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

14 years ago2010-04-14 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 14 Apr 2010 16:38:40 +0000 (16:38 -0000)]
2010-04-14 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_InternalInvoke): Check if the vtable is
* sane
for instance methods/ctors.

Fixes #422113.

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 15:31:16 +0000 (15:31 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlTypeName.cs : corcompare shows I was missing useful two.

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

14 years agocomment out debug output
Jb Evain [Wed, 14 Apr 2010 15:25:59 +0000 (15:25 -0000)]
comment out debug output

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

14 years ago2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 14 Apr 2010 14:17:29 +0000 (14:17 -0000)]
2010-04-14 Gonzalo Paniagua Javier <gonzalo@novell.com>

* DeflateStream.cs: the delegate uses Cdecl calling convention on
windows too. Fixes bug #574713.

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

14 years agoimplemented XamlTypeName.
Atsushi Eno [Wed, 14 Apr 2010 13:59:22 +0000 (13:59 -0000)]
implemented XamlTypeName.

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

14 years ago2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 14 Apr 2010 13:36:53 +0000 (13:36 -0000)]
2010-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeViewTest.cs: New test for TreeViewNodeSorter used recursively.

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

14 years ago * TreeView.cs: We must use the comparer supplied by TreeViewNodeSorter
Carlos Alberto Cortez [Wed, 14 Apr 2010 13:35:15 +0000 (13:35 -0000)]
* TreeView.cs: We must use the comparer supplied by TreeViewNodeSorter
*always*, since it is used recursively, so checking for a number of
top level nodes is useless. This should fix a case where we were not
sorting any node with a single root node.

2010-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 12:28:43 +0000 (12:28 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlMemberTest.cs : remove extra type that I wrote when I thought
  there were no public UnderlyingMember.

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 11:50:55 +0000 (11:50 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlMember.cs : implemented ToString().

* XamlMemberTest.cs : added ToStringTest().

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 10:44:46 +0000 (10:44 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlXmlReader.cs :
  Skip irrelevant nodes. Remove extra member (Dispose).

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

14 years agoXamlXmlReader implementation.
Atsushi Eno [Wed, 14 Apr 2010 10:29:27 +0000 (10:29 -0000)]
XamlXmlReader implementation.

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 10:26:41 +0000 (10:26 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs : Type is consumed as TypeExtension.

* XamlObjectReaderTest.cs
  XamlSchemaContextTest.cs
  XamlTypeTest.cs : a couple of Type/TypeExtension-related tests.

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 10:23:06 +0000 (10:23 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlServices.cs : fix Transform implementation.

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

14 years ago2010-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Apr 2010 09:51:27 +0000 (09:51 -0000)]
2010-04-14  Zoltan Varga  <vargaz@gmail.com>

* collection.c (_wapi_collection_init): Set stack size on openbsd similarly to
the other BSDs.

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

14 years ago2010-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Apr 2010 09:48:59 +0000 (09:48 -0000)]
2010-04-14  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_get_llvm_call_info): Handle empty structures correctly.

* mini-llvm.c: Disable LLVM for calls with non-default calling conventions.

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

14 years ago * DataGridView.cs: Call the base Paint impl last, instead of do that
Carlos Alberto Cortez [Wed, 14 Apr 2010 09:12:59 +0000 (09:12 -0000)]
* DataGridView.cs: Call the base Paint impl last, instead of do that
at the beginning, to let handlers draw on top of us.
Fixes the remaining bits of #587563.

2010-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

14 years ago2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 14 Apr 2010 09:05:15 +0000 (09:05 -0000)]
2010-04-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripItem.cs: Separate the background rendering from the Paint
routine, so we can both make sure the background stuff is done first,
and we also let our items fire the OnPaint event handlers before or
after their own routines.
* ToolStripLabel.cs: Move the base call to OnPaint to the end, so any
user's Paint handler can draw on top of us, like .Net does.
Fixes #587563.

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 06:31:35 +0000 (06:31 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlServices.cs : added a couple of missing methods.

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

14 years ago2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Apr 2010 06:19:11 +0000 (06:19 -0000)]
2010-04-14  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs
  XamlSchemaContext.cs
  XamlObjectReaderException.cs
  XamlXmlWriterException.cs
  XamlXmlWriterSettings.cs
  XamlObjectWriterException.cs
  XamlParseException.cs
  XamlInternalException.cs
  XamlException.cs
  XamlSchemaException.cs
  XamlDuplicateMemberException.cs : a handful of corcompare fixes.

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

14 years agoimplement ValueSerializer.
Atsushi Eno [Wed, 14 Apr 2010 05:54:03 +0000 (05:54 -0000)]
implement ValueSerializer.

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

14 years ago2010-04-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Apr 2010 03:00:56 +0000 (03:00 -0000)]
2010-04-14  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (handle_box_inst): Merge into handle_box, simplify the merged
version.
* (handle_alloc): Ditto.
(mono_method_to_ir): Remove the constrained call restriction added by a previous
change, its not needed anymore.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:56 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* Remove broken tests dues to aditional tests or relaxation
of existing constraints.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:47 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c: Use the new verifier support for checking
custom attributes.

Fixes #595306.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:39 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Implement structural verification
of custom attributes. This check requires access to the
loader since to resolve the size of an enum we have to
look it up.
We don't check if named argumenments are encoded in a
compatible fashion to their underlying field/prop.
Maybe we should?

* verify-internals.h: Add two new cattr verification API.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:31 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (decode_signature_header): Fix signature.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:23 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoCustomAttrs.cs: Raise an exception if the runtime
returned a null cattr.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:23 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (mono_verifier_is_enabled_for_method): Handle
assembly less images.

* verify.c (mono_verifier_is_class_full_trust): Ditto.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:14 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (mono_method_signature_checked): Properly
init MonoError.

* loader.c (mono_method_signature): It's the calee
resposibility to init the error object.

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

14 years ago2010-04-13 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:59:06 +0000 (22:59 -0000)]
2010-04-13 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (decode_signature_header): Do proper
overflow checking.

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

14 years ago2010-04-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 13 Apr 2010 22:58:59 +0000 (22:58 -0000)]
2010-04-12 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-posix.c (sigusr1_signal_handler): Fix build on
non x86/amd64 systems.

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

14 years ago2010-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Apr 2010 21:38:17 +0000 (21:38 -0000)]
2010-04-13  Zoltan Varga  <vargaz@gmail.com>

* ConvertTest.cs: Add a test for #596339.

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

14 years ago2010-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Apr 2010 21:38:10 +0000 (21:38 -0000)]
2010-04-13  Zoltan Varga  <vargaz@gmail.com>

* Convert.cs (ToInt32): Do a checked cast. Fixes #596339.

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

14 years ago2010-04-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 13 Apr 2010 21:31:23 +0000 (21:31 -0000)]
2010-04-13  Marek Habersack  <mhabersack@novell.com>

* GridView.cs: make sure Header and Footer visibility are set when
binding the data. Fixes bug #595567

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

14 years ago2010-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Apr 2010 21:11:27 +0000 (21:11 -0000)]
2010-04-13  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir): Disable generic sharing for constrained
calls where the constrained class needs a context. Fixes #595863.

* iltests.il.in: Add a test.

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

14 years agoAdd tasks/targets for moonlight msbuild project support.
Ankit Jain [Tue, 13 Apr 2010 20:14:42 +0000 (20:14 -0000)]
Add tasks/targets for moonlight msbuild project support.

In class:

* Makefile: Add Moonlight.Build.Tasks to net_2_0_dirs and
net_3_5_dirs.
* Moonlight.Build.Tasks: New.

In class/Moonlight.Build.Tasks:

* Initial commit.

In class/Moonlight.Build.Tasks/Moonlight.Build.Tasks:

* CreateTestPage.cs:
* GenerateMoonlightManifest.cs:
* GetMoonlightFrameworkPath.cs:
* GenerateXap.cs:
* Respack.cs:
* XamlG.cs:
MSBuild tasks for building silverlight projects.

In tools/xbuild:

* xbuild/Microsoft.Silverlight*.targets: New.
* Makefile: Update to install silverlight target files.
* xbuild_targets.make: Update to handle silverlight
target files.

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

14 years ago * class/System.Data.Linq/src/**/*: Sync with DbLinq r1403.
Jonathan Pryor [Tue, 13 Apr 2010 19:19:47 +0000 (19:19 -0000)]
* class/System.Data.Linq/src/**/*: Sync with DbLinq r1403.
  This is DbLinq 0.20 + fixes.  Primarily fixes sqlmetal, codegen, etc.
* tools/sqlmetal/sqlmetal.exe.source: Add additional files.

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

14 years ago * System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
Jonathan Pryor [Tue, 13 Apr 2010 18:48:04 +0000 (18:48 -0000)]
* System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
  when beginning Type generation.  This prevents "invalid"
  `#endregion`s; if the CodeGenerator instance is reused for multiple
  types, the last member of the first type has an EndDirective, then
  the EndDirectvies will be generated before any members of the 2nd
  type.  Don't do that.
* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing
  for CodeRegionDirectives.

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

14 years ago2010-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 13 Apr 2010 17:45:08 +0000 (17:45 -0000)]
2010-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: When checking for the values returned by
_NET_WORKAREA, use current_desktop+1 instead of current_desktop, since
we need the actual value, instead of the index (which is 0 based, and
is not working in this case). Patch by Andy Stühr
(andysmuell@hammerhartes.de).
Fixes #494234.

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

14 years agofix installation of Mono.Cecil.Mdb
Jb Evain [Tue, 13 Apr 2010 13:45:15 +0000 (13:45 -0000)]
fix installation of Mono.Cecil.Mdb

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

14 years ago2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 13 Apr 2010 13:16:03 +0000 (13:16 -0000)]
2010-04-13  Sebastien Pouliot  <sebastien@ximian.com>

* CrossDomainPolicyManager.cs: Fix previous change since it
breaks several valid cases (e.g. text/*, text/xml; charset=utf-8)
and does not completely covers the application/xml case.
Avoid possible ArgumentException while adding policies since it
confuse the logs.

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

14 years ago2010-04-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 13 Apr 2010 13:01:09 +0000 (13:01 -0000)]
2010-04-13  Atsushi Enomoto  <atsushi@ximian.com>

* XamlXmlWriter.cs :
  Do not write element or attribute for Initialization.

* XamlXmlWriterTest.cs : enable WriteNode() tests.

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

14 years agoXamlObjectWriter implementation.
Atsushi Eno [Tue, 13 Apr 2010 12:48:13 +0000 (12:48 -0000)]
XamlObjectWriter implementation.

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

14 years ago2010-04-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 13 Apr 2010 12:42:43 +0000 (12:42 -0000)]
2010-04-13  Atsushi Enomoto  <atsushi@ximian.com>

* XamlTypeInvoker.cs : implement AddToCollection and AddToDictionary.

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

14 years agoTue Apr 13 12:36:29 CEST 2010 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 13 Apr 2010 10:38:02 +0000 (10:38 -0000)]
Tue Apr 13 12:36:29 CEST 2010 Paolo Molaro <lupus@ximian.com>

* reflection.c: maintain the invariants required by
mono_class_layout_fields() also in typebuilder_setup_fields ().

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

14 years ago2010-04-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 13 Apr 2010 09:17:24 +0000 (09:17 -0000)]
2010-04-13  Atsushi Enomoto  <atsushi@ximian.com>

* XamlType.cs : IsArray, IsCollection and IsGeneric are based on
  LookupCollectionKind(). Removed buggy documented behavior from the
  lookup method too.

* XamlTypeTest.cs : assert that dictionary types are *not* collection.

* XamlTypeInvoker.cs : implement CreateInstance() for object writer.

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

14 years ago2010-04-13 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Tue, 13 Apr 2010 05:06:15 +0000 (05:06 -0000)]
2010-04-13  Andreia Gaita  <avidigal@novell.com>

* CrossDomainPolicyManager.cs: make the contentType detection
look for /xml at the end, it's more reliable
(fixes olympics for moonlight)

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

14 years ago2010-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 13 Apr 2010 04:38:43 +0000 (04:38 -0000)]
2010-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpanTest.cs: Remove "NotWorking" from our custom formats parse
methods, as well as augmenting the test with some new assertions, and
changing a pair to properly reflect what they are testing.

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

14 years ago2010-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 13 Apr 2010 04:35:16 +0000 (04:35 -0000)]
2010-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpan.cs: Implement support for custom formats parsing. This
should as well include the bits required to easily implement the same
for ToString methods, when the final release fixes the mess we found
in the latest beta.

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

14 years ago2010-04-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 13 Apr 2010 02:49:19 +0000 (02:49 -0000)]
2010-04-12  Miguel de Icaza  <miguel@novell.com>

* Enumerable.cs: Jumbo patch that inlines code, mainly for the AOT
scenario where we our compiler cant infer the extra layer of
indirection of a lambda function.

But additionally, since we lack support for our JIT to inline
intermediate delegate calls, it should save memory and run
faster.

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

14 years ago2010-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Apr 2010 01:04:09 +0000 (01:04 -0000)]
2010-04-13  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_method_compile): Disable llvm+methods with clauses again, llvm
2.6/SVN seems to have broken support for them.

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

14 years ago.gitignore
Zoltan Varga [Tue, 13 Apr 2010 01:01:32 +0000 (01:01 -0000)]
.gitignore

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

14 years ago2010-04-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Apr 2010 01:00:45 +0000 (01:00 -0000)]
2010-04-13  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c: Fix support for LLVM 2.6.

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

14 years ago 2010-04-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 12 Apr 2010 22:40:55 +0000 (22:40 -0000)]
2010-04-13  Marek Habersack  <mhabersack@novell.com>

     * ImageField.cs, CheckBoxField.cs: OnDataBindField must expect
     sender to be something else than DataControlFieldCell. Fixes bug
     #595568

    2010-04-13  Marek Habersack  <mhabersack@novell.com>

     * CheckBoxFieldTest.cs: added test for bug #595568

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

14 years ago * Test/Microsoft.CSharp/CodeGeneratorFromExpressionTest.cs: Test
Jonathan Pryor [Mon, 12 Apr 2010 20:34:54 +0000 (20:34 -0000)]
* Test/Microsoft.CSharp/CodeGeneratorFromExpressionTest.cs: Test
  CodeDefaultValueExpression generation.
* Microsoft.CSharp/CCSharpCodeGenerator.cs: Support generating
  default(T) expressions.

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

14 years ago2010-04-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 12 Apr 2010 19:37:54 +0000 (19:37 -0000)]
2010-04-12  Marek Habersack  <mhabersack@novell.com>

* PageCompiler.cs: if EnableViewStateMac is set in the page
source, generate relevant code.

2010-04-12  Marek Habersack  <mhabersack@novell.com>

* PageParser.cs: if EnableViewStateMac option is present in the
directive, remember it for later use by the compiler.

* Page.cs: initialize EnableViewStateMac with the default read
from the config.

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

14 years ago2010-04-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 12 Apr 2010 18:38:31 +0000 (18:38 -0000)]
2010-04-12  Marek Safar  <marek.safar@gmail.com>

* expression.cs, attribute.cs, parameter.cs: More attribute type
checks.

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

14 years ago2010-04-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 12 Apr 2010 17:49:34 +0000 (17:49 -0000)]
2010-04-12  Marek Safar  <marek.safar@gmail.com>

* expression.cs, attribute.cs: More attribute type checks.

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

14 years agoNew tests.
Marek Safar [Mon, 12 Apr 2010 17:47:24 +0000 (17:47 -0000)]
New tests.

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

14 years agoIt should not compile.
Marek Safar [Mon, 12 Apr 2010 17:28:04 +0000 (17:28 -0000)]
It should not compile.

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

14 years agoUpdated.
Marek Safar [Mon, 12 Apr 2010 16:53:55 +0000 (16:53 -0000)]
Updated.

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