mono.git
18 years ago Kill the mdi_container when we dont need it anymore.
Jackson Harper [Thu, 9 Feb 2006 22:39:04 +0000 (22:39 -0000)]
     Kill the mdi_container when we dont need it anymore.

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

18 years ago2006-02-09 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 9 Feb 2006 21:25:22 +0000 (21:25 -0000)]
2006-02-09  Dick Porter  <dick@ximian.com>

        * threads.c (mono_thread_detach): Drop a reference to the thread
        we're detaching.

2006-02-09  Dick Porter  <dick@ximian.com>

        * threads.c: Cope with the problems caused by attaching already
        existing threads - they don't get the infrastructure to clean up
        after themselves, especially the ID to handle hash.  This fixes
        bug 77468.

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

18 years ago* XmlSerializerTests.cs: Fixed build after failed merge (time to call it a
Gert Driesen [Thu, 9 Feb 2006 21:02:39 +0000 (21:02 -0000)]
* XmlSerializerTests.cs: Fixed build after failed merge (time to call it a
day, I guess)

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

18 years ago* XmlTypeMapping.cs: Modified GetRealTypeMap to return current map if map
Gert Driesen [Thu, 9 Feb 2006 20:55:36 +0000 (20:55 -0000)]
* XmlTypeMapping.cs: Modified GetRealTypeMap to return current map if map
represents enum. Fixes bug #77501.
* XmlSerializerTests.cs: Added test for bug #77501. Added tests for XML and
encoded serialization of enums.

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

18 years ago * Form.cs: If a form is made into an MDI form update the styles
Jackson Harper [Thu, 9 Feb 2006 20:22:36 +0000 (20:22 -0000)]
    * Form.cs: If a form is made into an MDI form update the styles
        * so
        all the props can get set correctly.

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

18 years agoForgot to commit changelog entry for bug #77500.
Gert Driesen [Thu, 9 Feb 2006 18:28:10 +0000 (18:28 -0000)]
Forgot to commit changelog entry for bug #77500.

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

18 years ago* SoapReflectionImporterTests.cs: Marked test NotDotNet.
Gert Driesen [Thu, 9 Feb 2006 17:37:18 +0000 (17:37 -0000)]
* SoapReflectionImporterTests.cs: Marked test NotDotNet.

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

18 years ago2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 9 Feb 2006 17:10:04 +0000 (17:10 -0000)]
2006-02-09  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializerTests.cs, XmlSerializerTestClasses.cs: Added test
for bug #77447.

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

18 years ago2006-02-09 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 9 Feb 2006 17:06:43 +0000 (17:06 -0000)]
2006-02-09  Lluis Sanchez Gual  <lluis@novell.com>

* System.Xml.Serialization/XmlTypeMapMemberElement.cs: When
looking for the correct element definition for a member,
based on the value type, take into account subypes of the
declared types. Fixes bug #77447.

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

18 years ago* XmlSerializerTests.cs: Added constants for usage in new tests. Added methods
Gert Driesen [Thu, 9 Feb 2006 17:03:13 +0000 (17:03 -0000)]
* XmlSerializerTests.cs: Added constants for usage in new tests. Added methods
for encoded serialization. Fixed line endings.

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

18 years agothreat Oracle like DB2
Konstantin Triger [Thu, 9 Feb 2006 17:01:11 +0000 (17:01 -0000)]
threat Oracle like DB2

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

18 years ago* XmlSerializerTestClasses.cs: Added test classes.
Gert Driesen [Thu, 9 Feb 2006 16:54:13 +0000 (16:54 -0000)]
* XmlSerializerTestClasses.cs: Added test classes.

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

18 years agoThu Feb 9 16:24:44 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 9 Feb 2006 15:25:56 +0000 (15:25 -0000)]
Thu Feb 9 16:24:44 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: handle systems that sue a different way to
retrieve the stack address of the current thread.

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

18 years agoMore pthread function checks.
Paolo Molaro [Thu, 9 Feb 2006 15:23:45 +0000 (15:23 -0000)]
More pthread function checks.

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

18 years agoThu Feb 9 16:20:55 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 9 Feb 2006 15:22:31 +0000 (15:22 -0000)]
Thu Feb 9 16:20:55 CET 2006 Paolo Molaro <lupus@ximian.com>

* os_dep.c, include/private/gcconfig.h, darwin_stop_world.c:
OSX/x86 support, mostly from Geoff Norton <gnorton@customerdna.com>.

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

18 years ago2006-02-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Feb 2006 14:53:11 +0000 (14:53 -0000)]
2006-02-09  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am generics.2.cs: Rename this to generics.cs and handle
it specially in the makefile.

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

18 years ago2006-02-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Feb 2006 14:39:38 +0000 (14:39 -0000)]
2006-02-09  Zoltan Varga  <vargaz@gmail.com>

* generics.2.cs: Add tests for nullable reference types.

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

18 years ago2006-02-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Feb 2006 14:38:39 +0000 (14:38 -0000)]
2006-02-09  Zoltan Varga  <vargaz@gmail.com>

* FieldInfoTest.cs: Add tests for nullable reference types.

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

18 years ago2006-02-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Feb 2006 14:37:23 +0000 (14:37 -0000)]
2006-02-09  Zoltan Varga  <vargaz@gmail.com>

* object.c (mono_nullable_init): Handle nullable reference types.
(mono_nullable_box): Ditto. Fixes #77446.

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

18 years agoAdded Mainsoft OracleClient testsuite
Konstantin Triger [Thu, 9 Feb 2006 14:29:35 +0000 (14:29 -0000)]
Added Mainsoft OracleClient testsuite

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

18 years ago* XmlSerializationWriterTests.cs: Use Assert instead of deprecated
Gert Driesen [Thu, 9 Feb 2006 13:30:02 +0000 (13:30 -0000)]
* XmlSerializationWriterTests.cs: Use Assert instead of deprecated
Assertion class. Added tests for FromEnum, WriteXsiType,
WriteTypedPrimitive and WritePotentiallyReferencingElement. Changed
accessibility of Reset and Content on XmlSerializationWriterTester
and added public Execute methods for WritePotentiallyReferencingElement
and WriteTypedPrimitive, to allow this class to be useful for tests
that have effect on the prefix for other tests.
* XmlSerializationReaderTests.cs: Added tests for ToEnum.
* System.Xml_test.dll.Sources: Added XmlSerializationReaderTests.cs.
* XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
CreateInvalidEnumValueException. Set eol-style to native.
* XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
enum for which string value must be created. Set eol-style to native.
Modified FromEnum to behave more like MSFT's implementation:
- treat value as bit field.
- no longer return empty string if the value matches an id for which there's
no corresponding name.
- if one of the ids has value 0 and there's a match for the enum value
(with a zero length XML name) or the enum value is 0, then return the
corresponding XML for the id with value 0.
- in 2.0 profile, throw InvalidOperationException if no match is found
for (part of) the enum value.
Modifies ToEnum to match the MSFT implementation (as described in
.NET 2.0 SDK):
- Expect hashtable containing enum names as key, and corresponding
integral numbers as value.
- Do not report exception for whitespace-only value.
- Support space (MS docs are not clear about this) delimited list
of names.
- typeName is only used to construct exception message.

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

18 years ago* get.c (stringify_array): New. Returns the stringified representation
Ankit Jain [Thu, 9 Feb 2006 12:39:39 +0000 (12:39 -0000)]
* get.c (stringify_array): New. Returns the stringified representation
of an array.
(dis_stringify_array): Use stringify_array.
(get_array_shape): Likewise. Also, allow lo_bounds to be signed.

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

18 years ago* ILParser.jay (bound | int32): Handle invalid -ve size.
Ankit Jain [Thu, 9 Feb 2006 12:38:52 +0000 (12:38 -0000)]
* ILParser.jay (bound | int32): Handle invalid -ve size.

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

18 years ago2006-02-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 9 Feb 2006 08:47:32 +0000 (08:47 -0000)]
2006-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* FtpWebResponse.cs: Add UpdateStatus method, to update both
statusCode and statusDescription at the same time.

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

18 years agoMissing check.
Paolo Molaro [Thu, 9 Feb 2006 08:32:27 +0000 (08:32 -0000)]
Missing check.

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

18 years ago * FtpWebRequest.cs: Remove WebExceptionStatus argument
Carlos Alberto Cortez [Thu, 9 Feb 2006 06:27:17 +0000 (06:27 -0000)]
* FtpWebRequest.cs: Remove WebExceptionStatus argument
from CreateExceptionFromResponse, since exceptions gotten
from server response always have a WebExceptionStatus.ProtocolError
value.

2006-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

18 years ago2006-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 9 Feb 2006 05:22:50 +0000 (05:22 -0000)]
2006-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* FtpWebRequest.cs: Add renaming support when using
WebRequestMethods.Ftp.Rename method.

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

18 years ago * InternalWindowManager.cs: Respek clipping when drawing MDi
Jackson Harper [Thu, 9 Feb 2006 03:26:20 +0000 (03:26 -0000)]
    * InternalWindowManager.cs: Respek clipping when drawing MDi
        decorations.

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

18 years ago * InternalWindowManager.cs: Remove a state reset that was
Jackson Harper [Wed, 8 Feb 2006 22:01:49 +0000 (22:01 -0000)]
    * InternalWindowManager.cs: Remove a state reset that was
        getting invoked at the wrong time. Fixes managed windows getting
        into a 'stuck' captured state.

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

18 years ago * Hwnd.cs: Add bits to track non client expose events.
Jackson Harper [Wed, 8 Feb 2006 21:11:01 +0000 (21:11 -0000)]
    * Hwnd.cs: Add bits to track non client expose events.
        * XplatUIX11.cs: Track non client expose events on the hwnd.
        * This
        gives us a proper invalid rect and will allow for some nice
        optimizations with NC client drawing
        - MDI windows are children windows, so move their style handling
        into the child window block.

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

18 years ago2006-02-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 8 Feb 2006 20:40:47 +0000 (20:40 -0000)]
2006-02-08  Chris Toshok  <toshok@ximian.com>

* ListControl.cs (OnDataBinding): in 2.0, only clear our items if
AppendDataBoundItems != false.  Also, split all the databinding
logic out to DoDataBinding, which we call from here only if
!NET_2_0.
(DoDataBinding): new function. actually perform the binding.
(PerformDataBinding): implement.
(PerformSelect): chain up to base class.

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

18 years agoWed Feb 8 19:33:17 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 8 Feb 2006 18:34:40 +0000 (18:34 -0000)]
Wed Feb 8 19:33:17 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: always handle the case when mono_jit_init()
is called in a thread different from the main thread,
confusing libgc (bug #77309).

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

18 years ago* XmlTypeAttributeTests.cs: Set eol-style to native.
Gert Driesen [Wed, 8 Feb 2006 13:40:24 +0000 (13:40 -0000)]
* XmlTypeAttributeTests.cs: Set eol-style to native.
* All: removed bogus eol-style property.

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

18 years agoRealy really test eol-style on simple test file, to retrict possible damage;-)
Gert Driesen [Wed, 8 Feb 2006 13:38:15 +0000 (13:38 -0000)]
Realy really test eol-style on simple test file, to retrict possible damage;-)

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

18 years ago* XmlTextAttributeTests.cs: Set eol-style to native.
Gert Driesen [Wed, 8 Feb 2006 13:28:13 +0000 (13:28 -0000)]
* XmlTextAttributeTests.cs: Set eol-style to native.
* XmlTypeAttributeTests.cs: Same.
* XmlSerializerTestClasses.cs: Same.
* XmlSerializerTests.cs: Same.
* XmlSerializationWriterTests.cs: Same.
* XmlRootAttributeTests.cs: Same.
* XmlReflectionImporterTests.cs: Same.
* XmlIncludeAttributeTests.cs: Same.
* XmlEnumAttributeTests.cs: Same.
* XmlElementAttributeTests.cs: Same.
* XmlChoiceIdentifierAttributeTests.cs: Same.
* XmlAttributesTests.cs: Same.
* XmlAttributeAttributeTests.cs: Same.
* XmlArrayItemAttributeTests.cs: Same.
* XmlArrayAttributeTests.cs: Same.
* XmlAnyElementAttributeTests.cs: Same.
* SoapTypeAttributeTests.cs: Same.
* SoapSchemaMemberTests.cs: Same.
* SoapAttributeAttribute.cs: Same.
* SoapElementAttributeTests.cs: Same.
* SoapEnumAttributeTests.cs: Same.
* SoapIncludeAttributeTests.cs: Same.
* ComplexDataStructure.cs: Same.
* DeserializeTests.cs: Same.

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

18 years agoTest for setting eol-style to native (from Windows) on file that
Gert Driesen [Wed, 8 Feb 2006 11:43:54 +0000 (11:43 -0000)]
Test for setting eol-style to native (from Windows) on file that
has CRLF line endings.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Wed, 8 Feb 2006 07:01:34 +0000 (07:01 -0000)]
In ilasm/codegen:

* PeapiTypeRef.cs (PeapiTypeRef.MakeBoundArray): Simplify and fix
behavior.

In class/PEAPI:

* Metadata.cs (BoundArray.ctor): Change param 'upBounds' to sizes.
(MetaData.CompressNum): Fix range check.

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

18 years ago2006-02-08 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 8 Feb 2006 03:45:04 +0000 (03:45 -0000)]
2006-02-08  Martin Baulig  <martin@ximian.com>

* generic.cs (ConstraintChecker.CheckConstraints): Move the error
reporting into CheckConstraint() so we can use the correctly
instantiated type.

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

18 years ago2006-02-08 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 8 Feb 2006 02:52:34 +0000 (02:52 -0000)]
2006-02-08  Martin Baulig  <martin@ximian.com>

* expression.cs (BaseAccess): Add support for generic methods.

* ecore.cs (MethodGroupExpr.ResolveGeneric): Propagate `IsBase' to
the new MethodGroupExpr.

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

18 years ago2006-02-08 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 8 Feb 2006 02:02:19 +0000 (02:02 -0000)]
2006-02-08  Martin Baulig  <martin@ximian.com>

* MonoGenericClass.cs (MonoGenericClass.IsAssignableFrom):
Override and implement this; fixes #77395.

2006-02-07  Martin Baulig  <martin@ximian.com>

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

18 years ago2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 8 Feb 2006 01:37:58 +0000 (01:37 -0000)]
2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* ChunkedInputStream.cs:
* ChunkStream.cs: handle partial trailers and zero reads. Patch by Pawel
Sakowski.

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

18 years ago2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 8 Feb 2006 01:34:55 +0000 (01:34 -0000)]
2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>

* TextControl.cs (Document.ctor): Now initializing
  selection_anchor. Fixes #77493

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

18 years ago2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 8 Feb 2006 01:33:15 +0000 (01:33 -0000)]
2006-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpWebRequest.cs: don't send the expect-100 if if there's no content.

* HttpListenerRequest.cs:
* HttpConnection.cs:
* RequestStream.cs: use the content length header to avoid reading past
the end of the stream.

Patch by Horst Reiterer.

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

18 years ago * TrackBar.cs: The increment/decrements were backwards.
Jackson Harper [Tue, 7 Feb 2006 23:55:58 +0000 (23:55 -0000)]
    * TrackBar.cs: The increment/decrements were backwards.

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

18 years ago2006-02-07 Mike Kestner <mkestner@novell.com>
Mike Kestner [Tue, 7 Feb 2006 23:28:32 +0000 (23:28 -0000)]
2006-02-07  Mike Kestner  <mkestner@novell.com>

* Theme*.cs : remove ThemeEngine.Current usage as it just points back
to the instance itself.

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

18 years ago2006-02-07 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 7 Feb 2006 23:16:22 +0000 (23:16 -0000)]
2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>

* X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
  on ulongs and pointers, the size differs between 32bit and 64bit
  systems.

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

18 years ago2006-02-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 7 Feb 2006 22:40:58 +0000 (22:40 -0000)]
2006-02-07  Martin Baulig  <martin@ximian.com>

* generic.cs (ConstraintChecker.CheckConstraints): Interfaces are
also reference types; fixes #77483.

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

18 years ago2006-02-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 7 Feb 2006 22:17:41 +0000 (22:17 -0000)]
2006-02-07  Martin Baulig  <martin@ximian.com>

* icall.c (ves_icall_MonoMethod_get_IsGenericMethodDefinition): Removed.

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

18 years ago2006-02-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 7 Feb 2006 22:16:48 +0000 (22:16 -0000)]
2006-02-07  Martin Baulig  <martin@ximian.com>

* MethodInfoTest.cs: Added test where IsGenericMethod must return false.

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

18 years ago2006-02-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 7 Feb 2006 22:12:43 +0000 (22:12 -0000)]
2006-02-07  Martin Baulig  <martin@ximian.com>

* generic.cs
(TypeManager.IsGenericMethod): We now return whether something is
an instantiated generic method (and not a generic method def).
(TypeManager.IsGenericMethodDefinition): New public method.

* typemanager.cs
(TypeManager.CSharpSignature): Only include type arguments for
"real" generic methods, not for any instantiated method.
(TypeManager.GetMethodName): Likewise, but also allow generic
method definitions here.

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

18 years ago2006-02-07 Mike Kestner <mkestner@novell.com>
Mike Kestner [Tue, 7 Feb 2006 22:12:10 +0000 (22:12 -0000)]
2006-02-07  Mike Kestner  <mkestner@novell.com>

* XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
for 64 bit platforms to work around a metacity bug.

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

18 years ago2006-02-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 7 Feb 2006 22:11:52 +0000 (22:11 -0000)]
2006-02-07  Martin Baulig  <martin@ximian.com>

* MonoMethod.cs
(MonoMethod.IsGenericMethod): Only return true for "real" generic
methods and not for arbitrary instantiated methods.
(MonoMethod.IsGenericMethodDefinition): Only return true for
generic method definitions, but not for instantiated generic
methods.  Fixes #77466.

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 21:55:19 +0000 (21:55 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* data/net_2_0/Makefile.am (EXTRA_DIST): add web.config
(mono_DATA): same.

* data/net_2_0/machine.config: remove the system.web section from
here.

* data/net_2_0/web.config: and add it here.

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

18 years agoClarification
Miguel de Icaza [Tue, 7 Feb 2006 20:51:44 +0000 (20:51 -0000)]
Clarification

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

18 years agomake this test a bit more complicated by putting a server control in the contentplace...
Chris Toshok [Tue, 7 Feb 2006 20:43:50 +0000 (20:43 -0000)]
make this test a bit more complicated by putting a server control in the contentplaceholder's fallback

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 20:42:35 +0000 (20:42 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
calls to AddParsedSubObject to a special statement collection --
builder.flushOutputStatements -- not to builder.method.Statements.
(InitMethod): initially, set flushOutputStatements to
method.Statements.  If we're dealing with a ContentPlaceHolder,
set flushOutputStatements to be the else block of a conditional we
create.  This causes the compiled control to fall back to the
ContentPlaceHolder's child controls in case there's no
corresponding Content template.
(AddChildCall): use methodStatements instead of method.Statements.
(CreateControlTree): same.

* PageCompiler.cs (CreatePropertyAssign): factor out the
string,string implementation and add one that also takes a
CodeExpression; make the string,string implementation call the
three arg one with thisRef.
(AddStatementsToInitMethod): make use of the 3-arg form of
CreatePropertyAssign to reduce code.  Also, add support for
setting the page's Title from the parser's Title.

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 20:34:47 +0000 (20:34 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* ControlBuilder.cs: rename flushOutputStatements to
methodStatements to at least reflect that they're in that method.

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

18 years agoan example of using the <%@ Page ... Title directive
Chris Toshok [Tue, 7 Feb 2006 20:11:58 +0000 (20:11 -0000)]
an example of using the <%@ Page ... Title directive

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 20:10:07 +0000 (20:10 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
calls to AddParsedSubObject to a special statement collection --
builder.flushOutputStatements -- not to builder.method.Statements.
(InitMethod): initially, set flushOutputStatements to
method.Statements.  If we're dealing with a ContentPlaceHolder,
set flushOutputStatements to be the else block of a conditional we
create.  This causes the compiled control to fall back to the
ContentPlaceHolder's child controls in case there's no
corresponding Content template.

* PageCompiler.cs (CreatePropertyAssign): factor out the
string,string implementation and add one that also takes a
CodeExpression; make the string,string implementation call the
three arg one with thisRef.
(AddStatementsToInitMethod): make use of the 3-arg form of
CreatePropertyAssign to reduce code.  Also, add support for
setting the page's Title from the parser's Title.

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 20:04:15 +0000 (20:04 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* MasterPage.cs (CreateMasterPage): don't nullref on null
contentTemplateCollection.

* ControlBuilder.cs: add a flushOutputStatements field.

* PageParser.cs (ProcessMainAttributes): handle Title attribute.
(Title): add getter.

* Page.cs (Title): implement getter/setter.
(InternalProcessRequest): after calling ApplyMasterPage, apply the
page's Title directive if there is one.
(AddContentTemplate): make the EditorBrowsable attribute apply to
the method, not the field.

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

18 years ago * TrackBar.cs: Process the input keys we need, and hookup to
Jackson Harper [Tue, 7 Feb 2006 20:03:45 +0000 (20:03 -0000)]
    * TrackBar.cs: Process the input keys we need, and hookup to
        KeyDown instead of using WndProc, so we get key messages.

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

18 years ago * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
Peter Dennis Bartok [Tue, 7 Feb 2006 19:16:41 +0000 (19:16 -0000)]
* X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
  we need to translate the XdndVersion atoms array before sending it

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

18 years ago2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 7 Feb 2006 19:05:16 +0000 (19:05 -0000)]
2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
  machine we're on.

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

18 years agofix typo
Chris Toshok [Tue, 7 Feb 2006 16:56:30 +0000 (16:56 -0000)]
fix typo

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

18 years agoadd BaseTemplateParser.cs and MasterPageControlBuilder.cs, and track ContentControlBu...
Chris Toshok [Tue, 7 Feb 2006 16:50:19 +0000 (16:50 -0000)]
add BaseTemplateParser.cs and MasterPageControlBuilder.cs, and track ContentControlBuilderInternal name change.

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 16:49:30 +0000 (16:49 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* ContentPlaceHolder.cs: fix ToolboxDataAttribute.

* Content.cs: use ContentControlBuilderInternal, and add a bunch
of unused (for now) EventHandler's here.

* ContentControlBuilderInternal.cs: rename ContentControlBuilder
to this.

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 16:49:01 +0000 (16:49 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* MasterPage.cs: rework this file, adding some static methods
gleaned from MS stack traces, and clear up the propogation of
content templates between nested master pages.

* Control.cs (TemplateControl): implement.

* TemplateControl.cs: re-indent some of the code.
(ReadStringRecource): according to msdn2, these throw
NotSupportedException.

* MasterPageParser.cs (HandleOption): implement.  assign our
master page's MasterPageFile from the UserControl property.

* UserControl.cs (InitializeAsUserControlInternal): new method
that allows initialization without a page.

* UserControlParser.cs (ProcessMainAttributes): for 2.0 handle
MasterPageFile attributes, so we can have nested master pages.
(MasterPageFile): add a 2.0 specific property.

* TemplateControlParser.cs: in .net 2.0, our base class is
BaseTemplateParser.
(HandleOptions): be consistent and call base.HandleOptions.

* BaseTemplateParser.cs: new (stubbed) class.

* MasterPageControlBuilder.cs: new file, not filled in (and really
not used either.)

* Page.cs (InternalProcessRequest): call ApplyMasterPage.
(SaveExistingContentTemplates): nuke.
(ReapplyExistingContentTemplate): nuke.
(ApplyMasterPage): if we have a master page, call
MasterPage.ApplyMasterPageRecursive with it and add it to our
controls.
(set_MasterPageFile): remove call to SaveExistingContentTemplates.
(get_Master): call MasterPage.CreateMasterPage.
(AddContentTemplate): keep track of the page's content templates
in a local Hashtable - they aren't our master page's content
templates.

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

18 years ago2006-02-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 7 Feb 2006 16:48:02 +0000 (16:48 -0000)]
2006-02-07  Chris Toshok  <toshok@ximian.com>

* UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
assign __ctrl.MasterPageFile to our master page, if we have one.

* PageCompiler.cs (CreateContructor): remove the MasterPageFile
assignment from here.
(AddStatementsToInitMethod): and move it here.

* TemplateControlCompiler.cs (InitMethod): in the case where
builder is a RootBuilder (we're building the __BuildControlTree
method), call a virtual method so that subclasses can add their
own statements to the method (used by both Page and MasterPage);
Also, in the RootBuilder case, the argument should be the
parser.ClassName type (the class we're building); lastly, expand
the ContentPlaceHolder logic to include all the
ContentTemplates/InstantiateIn magic.
(AddStatementsToInitMethod): empty virtual method.
(AddContentTemplateInvocation): ContentControlBuilder ->
ContentControlBuilderInternal.
(CreateControlTree): same.
(CallBaseFrameworkInitialize): new function, create call to
base.FrameworkInitialize.
(CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.

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

18 years agoTARGET_JVM: fixing canonicalization
Konstantin Triger [Tue, 7 Feb 2006 11:49:21 +0000 (11:49 -0000)]
TARGET_JVM: fixing canonicalization

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

18 years agoremove local name encoding for enums
Konstantin Triger [Tue, 7 Feb 2006 08:45:54 +0000 (08:45 -0000)]
remove local name encoding for enums

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

18 years ago2006-02-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 7 Feb 2006 07:57:08 +0000 (07:57 -0000)]
2006-02-07  Atsushi Enomoto  <atsushi@ximian.com>

* cs1570-3.cs cs1570-5.cs cs1570-11.cs cs1570-9.cs cs1570-2.cs
  cs1570-4.cs cs1570-6.cs cs1570.cs cs1570-10.cs cs1570-8.cs :

  It reports XmlTextReader error message changes as build breakage.

  That's why I opposed to compare error messages blindly.

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

18 years ago* socket-io.h (MonoSocketFlags): New. Copy of System.Net.Sockets.SocketFlags
Ankit Jain [Tue, 7 Feb 2006 06:54:20 +0000 (06:54 -0000)]
* socket-io.h (MonoSocketFlags): New. Copy of System.Net.Sockets.SocketFlags
* socket-io.c (convert_socketflags): New. Convert SocketFlags to native ones.
(ves_icall_System_Net_Sockets_Socket_Receive_internal): Convert flags using convert_socketflags.
(ves_icall_System_Net_Sockets_Socket_ReceiveFrom_internal): Likewise.
(ves_icall_System_Net_Sockets_Socket_Send_internal): Likewise.
(ves_icall_System_Net_Sockets_Socket_SendTo_internal): Likewise.

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

18 years ago2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 7 Feb 2006 04:05:25 +0000 (04:05 -0000)]
2006-02-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaDatatypeTests.cs: (TestAnyType) NotDotNet -> Ignore.

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

18 years agoDocumented MONO_SHARED_HOSTNAME
Gonzalo Paniagua Javier [Tue, 7 Feb 2006 01:36:08 +0000 (01:36 -0000)]
Documented MONO_SHARED_HOSTNAME

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

18 years ago2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 7 Feb 2006 01:35:46 +0000 (01:35 -0000)]
2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* shared.c: use MONO_SHARED_HOSTNAME as a substitute for gethostname()
when creating the shared files in the .wapi directory. Fixes bug #77371.

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

18 years agofix
Gonzalo Paniagua Javier [Tue, 7 Feb 2006 00:56:41 +0000 (00:56 -0000)]
fix

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

18 years ago2006-02-06 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 7 Feb 2006 00:37:58 +0000 (00:37 -0000)]
2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs:
  - The preceeding 64bit fixes had a bug: ChangeProperty expects the
    number of bits for the property, not the number of bytes. The
    change to provide IntPtr.Size broke 32bit. (64bit was also wrong
    but would not crash since it specified 8 bits instead of 4 bits)
  - More 64bit fixes: Switched all atoms from int to IntPtr (they are
    defined as XID -> long in the C headers)
  - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms
    references since those are now IntPtr to begin with
  - Switched all Atom.XXX 'int' casts to IntPtr casts
  - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
  - Fixed XInternAtom signature for 64bit, now returns an IntPtr
  - Added XChangeActivePointerGrab DllImport (for X11DnD)
* X11Structs.cs:
  - Changed 'int' type for Atoms in XEvent structures to IntPtr
  - Changed atom in HoverStruct to be IntPtr
* X11DnD.cs:
  - Removed local DllImports, switched code to use those from XplatUIX11
  - Removed/fixed casts related to the switch of Atom to be a IntPtr

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

18 years agooops, forgot this file
Mike Kestner [Mon, 6 Feb 2006 23:00:18 +0000 (23:00 -0000)]
oops, forgot this file

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

18 years ago2006-02-06 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 6 Feb 2006 22:24:02 +0000 (22:24 -0000)]
2006-02-06  Miguel de Icaza  <miguel@novell.com>

* codegen.cs (EmitScopeInitFromBlock): check here the
capture_context, there is no need to make two calls to the
EmitContext.

* anonymous.cs: Add some debugging messages that might help me
track other instances of this problem in the future (the
regression of test 467).

* cs-parser.jay: track the variable block, as we need to initalize
any captured variables declared in this block for the "catch"
portion of the "Try" statement.

* statement.cs (Try.Emit): If the "Catch" has a VarBlock, emit any
scope initialization for captured variables.

Also, move the emit for the variables after the block location has
been marked.

Also in gmcs case, backport the const change from Marek.

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

18 years ago2006-02-06 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 6 Feb 2006 21:49:04 +0000 (21:49 -0000)]
2006-02-06  Mike Kestner  <mkestner@novell.com>

* XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the
method signatures in the import region.  There may still be some
lingering struct marshaling issues, as I didn't drill down into those.
Yet.

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

18 years ago* XmlSchemaDatatypeTests.cs: Marked TestAnyType NotDotNet on 2.0 profile
Gert Driesen [Mon, 6 Feb 2006 21:13:15 +0000 (21:13 -0000)]
* XmlSchemaDatatypeTests.cs: Marked TestAnyType NotDotNet on 2.0 profile
instead of marking it NotWorking. No longer derive from Assertion.

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

18 years agoremoved classes not in MS API
Gonzalo Paniagua Javier [Mon, 6 Feb 2006 21:01:47 +0000 (21:01 -0000)]
removed classes not in MS API

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

18 years ago2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 6 Feb 2006 21:00:42 +0000 (21:00 -0000)]
2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* DefaultHttpHandler.cs: New file.

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

18 years ago * ComboBox.cs: Dont manually set the top_item, this is computed
Jackson Harper [Mon, 6 Feb 2006 20:18:08 +0000 (20:18 -0000)]
    * ComboBox.cs: Dont manually set the top_item, this is computed
        when the scrollbar position is set.

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

18 years agoforgot
Gonzalo Paniagua Javier [Mon, 6 Feb 2006 19:53:42 +0000 (19:53 -0000)]
forgot

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

18 years ago2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 6 Feb 2006 19:53:15 +0000 (19:53 -0000)]
2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* IgnoreFileBuildProvider.cs: it's not public.
* BuildProvider.cs: mostly implemented.

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

18 years ago2006-02-06 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Mon, 6 Feb 2006 18:40:58 +0000 (18:40 -0000)]
2006-02-06  Marek Safar  <marek.safar@seznam.cz>

* ecore.cs (PropertyExpr.FindAccessors): Just made flags const.

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

18 years ago2006-02-06 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 6 Feb 2006 18:06:14 +0000 (18:06 -0000)]
2006-02-06  Mike Kestner  <mkestner@novell.com>

* XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
startup crashes on amd64.  There's other fixes needed.  All pinvoke
usage of Atom needs to be mapped to IntPtr for example.  And there are
likely other int/long issues to be addressed.

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

18 years ago2006-02-06 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 6 Feb 2006 16:58:07 +0000 (16:58 -0000)]
2006-02-06  Martin Baulig  <martin@ximian.com>

* class.cs (TypeContainer.DefineType): If we're a struct, pass
`TypeManager.value_type' as parent type to
ModuleBuilder.DefineType().  Fixes #77358.

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

18 years ago2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 6 Feb 2006 15:14:54 +0000 (15:14 -0000)]
2006-02-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs : ReadTextReader() is now assured to have current
  node content, except for Text, CDATA and Comment. ReadName() does
  not use nameBuffer and reuse peekChars.

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

18 years ago2006-02-06 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 6 Feb 2006 14:54:14 +0000 (14:54 -0000)]
2006-02-06  Lluis Sanchez Gual  <lluis@novell.com>

* LogicalCallContext.cs, MethodCall.cs, ReturnMessage.cs,
  MethodResponse.cs: Create a new LogicalCallContext for
  every message. Fixes #77364 again.

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

18 years agoMon Feb 6 09:01:24 EST 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 6 Feb 2006 14:05:05 +0000 (14:05 -0000)]
Mon Feb 6 09:01:24 EST 2006 Paolo Molaro <lupus@ximian.com>

* mini-ppc.c: fix handling of exceptions in large methods (bug #74932).

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

18 years agofixing solution configurations
Konstantin Triger [Mon, 6 Feb 2006 13:44:05 +0000 (13:44 -0000)]
fixing solution configurations

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

18 years agoremove ClearCase binding
Konstantin Triger [Mon, 6 Feb 2006 13:09:43 +0000 (13:09 -0000)]
remove ClearCase binding

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

18 years agoapplying jldap patch, cvs revision 1.13
Konstantin Triger [Mon, 6 Feb 2006 12:34:31 +0000 (12:34 -0000)]
applying jldap patch, cvs revision 1.13

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

18 years ago2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 6 Feb 2006 11:31:30 +0000 (11:31 -0000)]
2006-02-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
  now once read as PI and then re-parsed from Value. DTD internal
  subset is now parsed as usual "value".

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

18 years ago* DeserializeTests.cs: Use Assert instead of deprecated Assertion. Renumbered
Gert Driesen [Mon, 6 Feb 2006 10:39:27 +0000 (10:39 -0000)]
* DeserializeTests.cs: Use Assert instead of deprecated Assertion. Renumbered
tests. Fixed line endings.

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

18 years agoperformance refactoring
Konstantin Triger [Mon, 6 Feb 2006 09:38:32 +0000 (09:38 -0000)]
performance refactoring

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

18 years ago2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 6 Feb 2006 08:42:07 +0000 (08:42 -0000)]
2006-02-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs : Expect() could be written inline and it could
  provide better information. ReadEndTag() could use Expect() instead
  of costy ReadName().

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

18 years agouse correct properties
Konstantin Triger [Sun, 5 Feb 2006 14:04:41 +0000 (14:04 -0000)]
use correct properties

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