mono.git
17 years ago2006-06-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Jun 2006 17:39:15 +0000 (17:39 -0000)]
2006-06-15  Zoltan Varga  <vargaz@gmail.com>

* pinvoke-2.cs: Rename to pinvoke-2.2.cs.

* Makefile.am (TEST_CS2_SRC): Add pinvoke-2.2.cs

* pinvoke-2.2.cs libtest.c: Add Marshal.GetDelegateForFunctionPointer () tests.

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

17 years ago* atomic.h: More tinkering with InterlockedExchange/InterlockedCompareExchange
Neale Ferguson [Thu, 15 Jun 2006 17:37:18 +0000 (17:37 -0000)]
* atomic.h: More tinkering with InterlockedExchange/InterlockedCompareExchange
for s390/s390x.

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

17 years ago2006-06-15 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Thu, 15 Jun 2006 15:08:41 +0000 (15:08 -0000)]
2006-06-15 Juraj Skripsky <js@hotfeet.ch>

* AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
Don't allow an attribute value to contain the same quote characters
as the ones used for delimiting the value itself. Add a token
NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.

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

17 years agoThu Jun 15 16:59:36 CEST 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 15 Jun 2006 15:00:59 +0000 (15:00 -0000)]
Thu Jun 15 16:59:36 CEST 2006 Paolo Molaro <lupus@ximian.com>

* ppc/ppc-codegen.h: reduce noisy build warnings by
casting to the more commonly used unsigned char type
(from johannes@sipsolutions.net (Johannes Berg)).

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

17 years agoThu Jun 15 16:52:46 CEST 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 15 Jun 2006 14:56:09 +0000 (14:56 -0000)]
Thu Jun 15 16:52:46 CEST 2006 Paolo Molaro <lupus@ximian.com>

* tramp-ppc.c: don't use malloc () for trampoline code, sometimes
it can end up using non executable memory on ppc64 systems
running ppc32 userspace (fix from Johannes Berg).

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

17 years ago2006-06-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 15 Jun 2006 13:49:09 +0000 (13:49 -0000)]
2006-06-15  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityContext.cs: Don't call CompressedStack.Run if we don't have
a compressed stack in the context (which can now happen because of
#78652). This should fix MWF bug #78652 (BeginInvoke under 2.0).

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

17 years ago2006-06-15 Senganal T <tsenganal@novell.com>
Senganal T [Thu, 15 Jun 2006 12:02:57 +0000 (12:02 -0000)]
2006-06-15  Senganal T <tsenganal@novell.com>

* Test/System.Data/DataTableTest2.cs :
- Test if the Sort Order is correct when Sort String is not
explicitly set.
- Test if EvaluateException is raised if filter is not a
boolean expression.
- Test if expression is evaluated corrected when the filter
is a boolean column.
* Mono.Data.SqlExpressions/Expression.cs :
- EvalBoolean : throw EvaluateException unless overridden.
- UnaryExpression.EvalBoolean : override EvalBoolean
* Mono.Data.SqlExpressions/Like.cs, In.cs, ColumnReference.cs : override EvalBoolean
* System.Data/DataTable.cs :
- Select : If Sort String is not provided, sort the result
DataRows in Ascending Order of the Columns used in the filter

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

17 years agooops. 'make distcheck' takes too long
Raja R Harinath [Thu, 15 Jun 2006 11:31:44 +0000 (11:31 -0000)]
oops.  'make distcheck' takes too long

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

17 years ago* Makefile (EXTRA_DISTFILES): Rename from DISTFILES.
Raja R Harinath [Thu, 15 Jun 2006 11:00:17 +0000 (11:00 -0000)]
* Makefile (EXTRA_DISTFILES): Rename from DISTFILES.

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

17 years ago2006-06-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Jun 2006 09:51:44 +0000 (09:51 -0000)]
2006-06-15  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_ftnptr_to_delegate): Avoid allocating signature from mempool
and later freeing it. Fixes #78638.

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

17 years ago2006-06-15 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Thu, 15 Jun 2006 09:31:09 +0000 (09:31 -0000)]
2006-06-15  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * UpdateUnit.cs, AssemblyReferenceType.cs, OutputMessageType.cs,
        AssemblyIdentity.cs: Fixed enums order.
        * DeployManifest.cs, Manifest.cs, FileReferenceCollection.cs: Added
        missing abstract/sealed.

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

17 years agoSet svn:eol-style=native
Raja R Harinath [Thu, 15 Jun 2006 09:21:06 +0000 (09:21 -0000)]
Set svn:eol-style=native

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

17 years agoAdd more files to the tarball.
Raja R Harinath [Thu, 15 Jun 2006 09:16:16 +0000 (09:16 -0000)]
Add more files to the tarball.

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

17 years ago* Makefile (EXTRA_DISTFILES): Add Test/XmlFiles/nvdl.rng.
Raja R Harinath [Thu, 15 Jun 2006 09:02:36 +0000 (09:02 -0000)]
* Makefile (EXTRA_DISTFILES): Add Test/XmlFiles/nvdl.rng.

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

17 years agosome more stealth whitespace
Raja R Harinath [Thu, 15 Jun 2006 07:27:43 +0000 (07:27 -0000)]
some more stealth whitespace

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

17 years agoremove stealth whitespace
Raja R Harinath [Thu, 15 Jun 2006 07:19:48 +0000 (07:19 -0000)]
remove stealth whitespace

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

17 years ago2006-06-15 Senganal T <tsenganal@novell.com>
Senganal T [Thu, 15 Jun 2006 06:56:16 +0000 (06:56 -0000)]
2006-06-15  Senganal T <tsenganal@novell.com>

* Test/System.Data/DataSetTest2.cs : Test the behavior of EnforceConstraints
* Test/System.Data/DataViewTest_IBindingList.cs : Test to ensure the correct index is
used for comparision
* Test/System.Data/DataRowTest2.cs : Test to ensure the RowErrors and ColumnErrors are
filled correctly.

* System.Data.Common/Key.cs :
-Equals : Check for Equality of Sort Order too.

* System.Data/DataSet.cs :
- InternalEnforceConstraints : Check if any null constraints
are violated. Throw ConstraintException only after all the errors
are filled.
* System.Data/DataTable.cs :
- EnforceConstraints : Move away the logic to check for
NullConstraintViolation.
- AssertNotNullConstraint : Checks for Null Constraint
Violation.
- EndLoadData : Do not throw any exceptions here. All the
errors have to be found and RowErrors set before throwing the
exception.
* System.Data/DataRow.cs :
- ImportRecrod : Check the values of the row for any null
values.
- SetColumnError : If the error for column is already set,
do not add a new error but edit the existing error.
- CheckValue : Set the NullConstraintViolation flag if either
table is being loaded or if EnforceConstraints is set to
false.
* System.Data/Constraint.cs : Do not throw exception when EnforceConstraints is
set to false or table is being loaded.
* System.Data/UniqueConstraint.cs : Correct the error message. Set ColumnErrors
along with the RowError.

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

17 years agoFix a few other missing files
Miguel de Icaza [Thu, 15 Jun 2006 05:16:38 +0000 (05:16 -0000)]
Fix a few other missing files

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

17 years agoAdd missing files to get the XML tests running
Miguel de Icaza [Thu, 15 Jun 2006 05:13:06 +0000 (05:13 -0000)]
Add missing files to get the XML tests running

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

17 years agoAdd missing files to distribution
Miguel de Icaza [Thu, 15 Jun 2006 05:07:45 +0000 (05:07 -0000)]
Add missing files to distribution

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

17 years agoFix the build
Miguel de Icaza [Thu, 15 Jun 2006 05:03:58 +0000 (05:03 -0000)]
Fix the build

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

17 years ago2006-06-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 15 Jun 2006 04:44:47 +0000 (04:44 -0000)]
2006-06-15  Miguel de Icaza  <miguel@novell.com>

* icall.c (mono_class_get_throw): Revert over-zealous error
throwing, the caller for mono_class_get_throw will cope with
errors when classes are not properly initialized already.

The code still copes with loader exceptions though.

Fixes the regression in reftype1 and reftype3 from the CAS tests.

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

17 years ago2006-06-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 15 Jun 2006 03:01:27 +0000 (03:01 -0000)]
2006-06-14  Miguel de Icaza  <miguel@novell.com>

* metadata.c (mono_metadata_interfaces_from_typedef_full): Return
FALSE on class loading failure instead of returning true.

* class.c (mono_class_create_from_typedef): It is possible for
mono_metadata_interfaces_from_typedef_full to fail if a class is
not found, cope with this.

2006-06-14  Dick Porter  <dick@ximian.com>

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

17 years ago- Fix build
Peter Dennis Bartok [Thu, 15 Jun 2006 01:00:22 +0000 (01:00 -0000)]
- Fix build

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

17 years ago2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 15 Jun 2006 00:26:17 +0000 (00:26 -0000)]
2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TemplateControlParser.cs: fix compilation caching when more than one
@control is compiled from source. Closes bug #78626.

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

17 years ago2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 14 Jun 2006 22:13:28 +0000 (22:13 -0000)]
2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Page.cs: add the 2.0 Items property. Fixes bug #78467.

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

17 years agonew test
Gonzalo Paniagua Javier [Wed, 14 Jun 2006 22:08:15 +0000 (22:08 -0000)]
new test

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

17 years ago2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 14 Jun 2006 22:08:02 +0000 (22:08 -0000)]
2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Button.cs: do something in PostBackUrl.
* Repeater.cs: when creating the RepeaterItemCollection, initialize
'items' if it hasn't been done yet. Fixes bug #78417.

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

17 years ago2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 14 Jun 2006 22:05:19 +0000 (22:05 -0000)]
2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* RepeaterItemCollectionTest.cs: New file.

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

17 years ago2006-06-14 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 14 Jun 2006 21:48:09 +0000 (21:48 -0000)]
2006-06-14  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * UsingTask.cs: Changed properties to return null on empty attribute.
        * UsingTaskCollection.cs: Added object to SyncRoot.
        * BuildPropertyGroup.cs: Added NotImplementedException throwing.

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

17 years ago2006-06-14 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 14 Jun 2006 21:44:49 +0000 (21:44 -0000)]
2006-06-14  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * BuildPropertyGroupTest.cs: Added some tests.
        * UsingTaskCollectionTest.cs: Added very simple test.
        * UsingTaskTest.cs: Added test that's loading SimpleTask.dll task from
        Test/resources/. Test/resources/SimpleTask.cs should be compiled
        before running tests. I need to find out how to add it to Makefile.

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

17 years ago2006-06-14 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 14 Jun 2006 21:34:47 +0000 (21:34 -0000)]
2006-06-14  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ApplicationIdentity.cs, ProxyStub.cs, OutputMessageCollection.cs,
        UpdateUnit.cs, DeployManifest.cs, UpdateMode.cs, BaseReference.cs,
        ManifestReader.cs, AssemblyIdentity.cs, ApplicationManifest.cs,
        TrustInfo.cs, WindowClass.cs, AssemblyReference.cs, FileReference.cs,
        AssemblyReferenceType.cs, ManifestWriter.cs, SecurityUtilities.cs,
        ComClass.cs, OutputMessage.cs, Manifest.cs, AssemblyManifest.cs,
        OutputMessageType.cs, TypeLib.cs, AssemblyReferenceCollection.cs,
        FileReferenceCollection.cs: Added stubs.

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

17 years ago2006-06-14 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 14 Jun 2006 20:08:16 +0000 (20:08 -0000)]
2006-06-14  Peter Dennis Bartok  <pbartok@novell.com>

* AccessibleObject.cs: Remove dependence on Control.is_selected;
  instead properly track control states internally (allows us to
  remove is_selected from Control)

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

17 years ago2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 14 Jun 2006 19:16:58 +0000 (19:16 -0000)]
2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Page.cs: use the new internal LosFormatter.SerializeToBase64.
* LosFormatter.cs: always work on base 64 strings even if the
input/output is on a Stream. Fixes bug #78640.

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

17 years ago2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 14 Jun 2006 17:57:02 +0000 (17:57 -0000)]
2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* ImageListStreamer.cs: correctly generate the 1bpp mask for images
whose width is not a multiple of 8.

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

17 years ago I wanted to confirm these values, so I started a
Jackson Harper [Wed, 14 Jun 2006 17:55:00 +0000 (17:55 -0000)]
    I wanted to confirm these values, so I started a
SystemInformation unit test.

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

17 years ago* atomic.h: Fix atomic exchange pointer operations for s390x - these
Neale Ferguson [Wed, 14 Jun 2006 16:38:05 +0000 (16:38 -0000)]
* atomic.h: Fix atomic exchange pointer operations for s390x - these
were broken as they used 32-bit instructions rather than their 64-bit
versions.

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

17 years agoBaseDataList.cs: added ConnectToDataSource method that called from OnLoad, fixed...
Vladimir Krasnov [Wed, 14 Jun 2006 16:37:50 +0000 (16:37 -0000)]
BaseDataList.cs: added ConnectToDataSource method that called from OnLoad, fixed GetData method
Wizard.cs: fixed bug when called MoveTo after that control hierarchy has been created

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

17 years ago2006-06-14 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 14 Jun 2006 16:24:20 +0000 (16:24 -0000)]
2006-06-14  Dick Porter  <dick@ximian.com>

        * processes.c: Don't run the atexit handlers when bailing out
        of a fork/exec.

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

17 years ago2006-06-14 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 14 Jun 2006 16:17:01 +0000 (16:17 -0000)]
2006-06-14  Dick Porter  <dick@ximian.com>

        * socket-io.c:
        * process.c: Fix a bunch of signed/unsigned warnings from gcc
        4.1.1

2006-06-14  Dick Porter  <dick@ximian.com>

        * wait.c: Fix stupid typo shown up by gcc 4.1.1, = not ==

        * handles-private.h:
        * shared.c:
        * io.c:
        * processes.c:
        * mono-spinlock.h:
        * handles.c:
        * collection.c: Fix a bunch of signed/unsigned warnings from gcc
        4.1.1

2006-06-14  Dick Porter  <dick@ximian.com>

        * wapihandles.c: Fix a bunch of signed/unsigned warnings from
        * gcc
        4.1.1

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

17 years ago2006-06-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Jun 2006 15:54:54 +0000 (15:54 -0000)]
2006-06-14  Sebastien Pouliot  <sebastien@ximian.com>

* README.vsnet: Make it clear that building Mono under cygwin is a
pre-requirement to using the VS.NET solution (with the supplied
instructions).

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

17 years ago2006-06-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Jun 2006 15:29:00 +0000 (15:29 -0000)]
2006-06-14  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Update copyright notice.
* signcode.cs: Add support for -x (delayed timestamp) to fix bug
#78614. Now the tool is more useful in real-life scenarios.
* TESTS: New. Instructions on how to test any changes related to
Authenticode.

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

17 years ago2006-06-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Jun 2006 15:28:24 +0000 (15:28 -0000)]
2006-06-14  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeBase.cs: Fix destination offset. Note that this works
under MS but not under Mono.
* AuthenticodeDeformatter.cs: Report a more useful error if the file
hash doesn't match the signed hash.

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

17 years ago2006-06-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Jun 2006 15:27:32 +0000 (15:27 -0000)]
2006-06-14  Sebastien Pouliot  <sebastien@ximian.com>

* ASN1.cs: Switch condition not to use the cached data if there is a
collection being used. Skip extra 0 at the end of the byte[] buffer.

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

17 years ago2006-06-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Jun 2006 15:26:34 +0000 (15:26 -0000)]
2006-06-14  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeBase.cs: Fix destination offset. Note that this works
under MS but not under Mono.
* AuthenticodeDeformatter.cs: Report a more useful error if the file
hash doesn't match the signed hash.
* AuthenticodeFormatter.cs: Implemented support for Timestamp method.

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

17 years ago2006-06-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Jun 2006 15:22:57 +0000 (15:22 -0000)]
2006-06-14  Sebastien Pouliot  <sebastien@ximian.com>

* ASN1.cs: Switch condition not to use the cached data if there is a
collection being used. Skip extra 0 at the end of the byte[] buffer.

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

17 years ago2006-06-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Jun 2006 13:35:19 +0000 (13:35 -0000)]
2006-06-14  Sebastien Pouliot  <sebastien@ximian.com>

* ExecutionContextTest.cs: Changed Run test to execute only under
CAS until bug #78306 (CompressedStack) is fixed.

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

17 years agoAdd the value of Menu.CssClass to the table class
Andrew Skiba [Wed, 14 Jun 2006 06:51:10 +0000 (06:51 -0000)]
Add the value of Menu.CssClass to the table class

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

17 years ago2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Jun 2006 02:12:53 +0000 (02:12 -0000)]
2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* DateTime.cs :
  Another lame win32 dependent pattern. Fixed bug #78618.

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

17 years ago * MdiClient.cs: Only maximize the next child if the current one
Jackson Harper [Tue, 13 Jun 2006 22:53:08 +0000 (22:53 -0000)]
    * MdiClient.cs:  Only maximize the next child if the current one
        is maximized.

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

17 years ago * test-inline-call-stack.cs: Test also that the order in which
Massimiliano Mantione [Tue, 13 Jun 2006 21:00:57 +0000 (21:00 -0000)]
* test-inline-call-stack.cs: Test also that the order in which
.cctors are run is essentially the same regardless of the status of
"beforefieldinit", because too many apps depend on this behavior
(which seems to be also the one of the MS CLR).

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

17 years ago * mini.c: Made so that inline is locally disabled if it would
Massimiliano Mantione [Tue, 13 Jun 2006 21:00:22 +0000 (21:00 -0000)]
* mini.c: Made so that inline is locally disabled if it would
trigger a .cctor, because too many apps depend on this behavior
(which seems to be also the one of the MS CLR).

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

17 years ago2006-06-13 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Tue, 13 Jun 2006 20:48:11 +0000 (20:48 -0000)]
2006-06-13 Juraj Skripsky <js@hotfeet.ch>

* CalendarTest.cs (SelectDateProperty): Make sure SelectedDate is
automatically "rounded" to the same date with time set to 12:00am.

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

17 years ago2006-06-13 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Tue, 13 Jun 2006 20:35:11 +0000 (20:35 -0000)]
2006-06-13 Juraj Skripsky <js@hotfeet.ch>

* Calendar.cs: Make sure WebControls.Enabled is respected.
* SelectedDatesCollection.cs: Set time for all DateTime object passed in
to 12:00am as MS.NET does the same.
Fixes bug #71251.

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

17 years agoThe regression is now fixed.
Martin Baulig [Tue, 13 Jun 2006 20:09:44 +0000 (20:09 -0000)]
The regression is now fixed.

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

17 years agooops
Chris Toshok [Tue, 13 Jun 2006 20:02:09 +0000 (20:02 -0000)]
oops

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

17 years ago2006-06-13 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 13 Jun 2006 20:01:43 +0000 (20:01 -0000)]
2006-06-13  Chris Toshok  <toshok@ximian.com>

* DataGridColumnStyle.cs: Invalidate the column when HeaderText is
modified.  Also, guard against grid or grid_drawing being null in
Invalidate.

* DataGrid.cs: Reformat tons of getters/setters.  In the
DataMember setter, just call SetNewDataSource instead of
duplicating some of its functionality.  In SetNewDataSource, don't
check ListManager for null, since the property getter creates the
object if needed.

* DataGridTableStyle.cs: don't set TableStyle or call
SetDataGridInternal on the column here, it's done in
GridColumnStylesCollection.Add.

* GridColumnStylesCollection.cs: fix all the explicit interface
implementations to just call our methods.  Nuke AddInternal() and
move the body of it to Add().  Also, add a call to
column.SetDataGridInternal to Add().

* DataGridTextBoxColumn.cs (.ctors): call this() instead of
base()+duplicate code.  Also, use the Format property instead of
format to generate an Invalidate ala MS.  Lastly, create the
textbox here, unconditionally.
(set_Format): call Invalidate.
(get_TextBox): no need to call EnsureTextBox.
(Commit): remove the message box.
(Edit) remove the call to EnsureTextBox.
(EndEdit): call HideEditBox instead of ReleaseHostedControl.
(EnterNullValue): no need to check textbox for null.
(HideEditBox): no need to check textbox for null.
(SetDataGridInColumn): add the textbox to the grid's controls.
(EnsureTextBox): nuke.

>>>>>>> .r61675

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

17 years ago2006-06-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Jun 2006 19:12:42 +0000 (19:12 -0000)]
2006-06-13  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_emit_stack_alloc): Fix initialization of localloc'ed memory.
No idea why this worked before.

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

17 years ago * MdiWindowManager.cs: Hook up to the maximized menus paint
Jackson Harper [Tue, 13 Jun 2006 18:42:08 +0000 (18:42 -0000)]
    * MdiWindowManager.cs: Hook up to the maximized menus paint
        * event
        and redraw the buttons when needed. Unhook when the window is
        unmaximized.
        * MainMenu.cs: Add an internal Paint event, the mdi window
        * manager
        needs this so that it can redraw its buttons when the menu is
        repainted.
        * InternalWindowManager.cs:
        * Form.cs: The method order has changed for
        * DrawMaximizedButtons,
        so that it can be a PaintEventHandler.

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

17 years agoByteEncoding.cs: Use unsafe code in GetString() that results in significant performan...
Kornél Pál [Tue, 13 Jun 2006 18:31:27 +0000 (18:31 -0000)]
ByteEncoding.cs: Use unsafe code in GetString() that results in significant performance improvement.

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

17 years ago Open up CreateButtons to base classes
Jackson Harper [Tue, 13 Jun 2006 17:56:02 +0000 (17:56 -0000)]
    Open up CreateButtons to base classes
        so they can recreate the buttons on state changes.

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

17 years ago - When a new window is activated repaint the decorations of the
Jackson Harper [Tue, 13 Jun 2006 17:21:36 +0000 (17:21 -0000)]
    - When  a new window is activated repaint the decorations of the
        old one, so that it no longer has the Active "look" (the blue
        titlebar).

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

17 years ago * MdiClient.cs: When we close a maximized mdi window, the next
Jackson Harper [Tue, 13 Jun 2006 16:55:17 +0000 (16:55 -0000)]
    * MdiClient.cs: When we close a maximized mdi window, the next
        * mdi
        window is activated and maximized, even if it wasn't before.
        * InternalWindowManager.cs: Open up CreateButtons to base
        * classes
        so they can recreate the buttons on state changes.
        - If a window is maximized give it all three buttons
        * MdiWindowManager.cs: Create the titlebar buttons when the
        * state
        is changed, this is needed because a toolwindow will not have
all
        three buttons until it is maximized.

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

17 years ago2006-06-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Jun 2006 15:59:47 +0000 (15:59 -0000)]
2006-06-13  Zoltan Varga  <vargaz@gmail.com>

* branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
which branch to outer exception clauses since they could skip the
inner finally clauses. Fixes #78633.

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

17 years ago2006-06-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Jun 2006 15:52:59 +0000 (15:52 -0000)]
2006-06-13  Zoltan Varga  <vargaz@gmail.com>

* branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
which branch to outer exception clauses since they could skip the
inner finally clauses. Fixes #78633.

* exceptions.cs: Add a test for the above.

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

17 years ago2006-06-13 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 13 Jun 2006 15:51:36 +0000 (15:51 -0000)]
2006-06-13  Martin Baulig  <martin@ximian.com>

* ecore.cs (SimpleName.DoSimpleNameResolve): Check whether we have
type arguments and create a ConstructedType if necessary.  Fixes #78400.

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

17 years agoRevert last change. It broke the build.
Gonzalo Paniagua Javier [Tue, 13 Jun 2006 14:57:04 +0000 (14:57 -0000)]
Revert last change. It broke the build.

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

17 years agoBaseDataList.cs: added ConnectToDataSource method that called from OnLoad, fixed...
Vladimir Krasnov [Tue, 13 Jun 2006 13:08:48 +0000 (13:08 -0000)]
BaseDataList.cs: added ConnectToDataSource method that called from OnLoad, fixed GetData method

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

17 years ago2006-06-13 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 13 Jun 2006 13:06:55 +0000 (13:06 -0000)]
2006-06-13  Martin Baulig  <martin@ximian.com>

* known-issuses-mcs, known-issues-gmcs: Disable test-408.cs.

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

17 years ago2006-06-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Jun 2006 12:57:54 +0000 (12:57 -0000)]
2006-06-13  Zoltan Varga  <vargaz@gmail.com>

* mini.c (merge_basic_blocks): Nullify the branch at the end of the first bb.
Fixes #78629.

* iltests.il: Add a test for the above.

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

17 years agoRepeater.cs: fixed ConnectToDataSource method, subscribed to DataSourceViewChanged...
Vladimir Krasnov [Tue, 13 Jun 2006 12:55:51 +0000 (12:55 -0000)]
Repeater.cs: fixed ConnectToDataSource method, subscribed to DataSourceViewChanged, looks for a datasource in its parent control
fixed GetData method, should not get data if datasource is null

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

17 years agoraise OnDataSourceViewChanged events when data changes
Konstantin Triger [Tue, 13 Jun 2006 08:22:09 +0000 (08:22 -0000)]
raise OnDataSourceViewChanged events when data changes

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

17 years ago2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 12 Jun 2006 23:26:54 +0000 (23:26 -0000)]
2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
  Fixed bug #78609.

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

17 years ago* Makefile: Update for dialog-question3.png -> dialog-question.png rename
Wade Berrier [Mon, 12 Jun 2006 22:52:14 +0000 (22:52 -0000)]
* Makefile: Update for dialog-question3.png -> dialog-question.png rename
to fix 'make dist'

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

17 years ago2006-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 12 Jun 2006 22:51:32 +0000 (22:51 -0000)]
2006-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TestBitmap.cs: add test for stride with 1bpp indexed bitmap.

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

17 years ago * KeysConverter.cs: Make sure we handle the Ctrl special case
Jackson Harper [Mon, 12 Jun 2006 22:46:42 +0000 (22:46 -0000)]
    * KeysConverter.cs: Make sure we handle the Ctrl special case
        if its the only key.

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

17 years ago * Theme.cs: Add a method to get the size of a managed window
Jackson Harper [Mon, 12 Jun 2006 22:17:15 +0000 (22:17 -0000)]
    * Theme.cs: Add a method to get the size of a managed window
        toolbar button.
        * InternalWindowManager.cs: Remove the ButtonSize property, this
        should be retrieved from the theme.
        * MdiWindowManager.cs: Get the button size from the theme
        * ThemeWin32Classic.cs: Make the method to get the managed
        * window
        titlebar button size public.
        - Handle the different button sizes of maximized toolwindows
        (should match any maximized window).
        - Get the titlebar height from the theme, not the WM (which gets
        it from the theme).

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

17 years agoCorrect typo
Miguel de Icaza [Mon, 12 Jun 2006 22:12:24 +0000 (22:12 -0000)]
Correct typo

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

17 years ago - When doing PointToClient contain it in the workable desktop
Jackson Harper [Mon, 12 Jun 2006 20:25:15 +0000 (20:25 -0000)]
    - When doing PointToClient contain it in the workable desktop
        area, this prevents windows from changing size when the cursor
is
        pulled outside of the working area while sizing.

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

17 years ago * InternalWindowManager.cs: Handle NC Double Clicks, passing the
Jackson Harper [Mon, 12 Jun 2006 19:02:55 +0000 (19:02 -0000)]
    * InternalWindowManager.cs: Handle NC Double Clicks, passing the
        event down to the mdi window manager.
        - Expose some extra stuff to base classes
        - Make sure to end the Capture on an NC Mouse up, so that we can
        get double clicks properly, and the sizing doens't stick.
        * MdiWindowManager.cs: When we get a double click maximize the
        window.
        - Reset the cursor after handling mode changes.

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

17 years ago2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 12 Jun 2006 18:03:36 +0000 (18:03 -0000)]
2006-06-12  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs (WorkingArea): Read the actual workarea for the
  current desktop, instead of just assuming a 0, 0 origin. This
  is needed for our internal window manager, to know the top
  margin of the desktop

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

17 years ago * DataGrid.cs (set_CurrentCell): concede focus as we move around.
Chris Toshok [Mon, 12 Jun 2006 16:29:36 +0000 (16:29 -0000)]
* DataGrid.cs (set_CurrentCell): concede focus as we move around.
we need this to get rid of the selected background in the bool
column.
(CancelEditing): move the ConcedeFocus call to above the Abort
call.  Also, set is_changing to false and invalidate the row
header if we were changing before.
(ProcessKeyPreviewInternal): remove, since noone outside this
class calls it anymore.  Roll the code into ProcessKeyPreview.
(EndEdit): remove the internal version.
(InvalidateCurrentRowHeader): make private.

* DataGridBoolColumn.cs: simplify this class a bunch.  remove the
Keys.Escape handling (and with it the last call to
DataGrid.EndEdit from outside the class.)

2006-06-12  Chris Toshok  <toshok@ximian.com>

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

17 years ago * DataGridTextBox.cs (.ctor): isedit defaults to false.
Chris Toshok [Mon, 12 Jun 2006 15:42:06 +0000 (15:42 -0000)]
* DataGridTextBox.cs (.ctor): isedit defaults to false.
(OnKeyPress): set isedit to true.
(ProcessKeyMessage): remove Keys.Enter handling from here.  it's
already handled by the grid.

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

17 years ago2006-06-12 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 12 Jun 2006 15:35:20 +0000 (15:35 -0000)]
2006-06-12  Chris Toshok  <toshok@ximian.com>

* DataGrid.cs (set_CurrentCell): more work here.  it's still not
right.  ugh.
(set_DataSource): SetDataSource always returns true, so stop
putting it in an if statement.
(EndEdit): get rid of some {}'s
(ProcessGridKey): return true in case Keys.Escape.
(ProcessKeyPreviewInternal): only handle KEYDOWN messages.
(ConnectListManagerEvents,DisconnectListManagerEvents): connect to
PositionChanged, stopped connecting to CurrentChanged.
(GetDataSource): simplify this a bunch.
(SetDataSource): change return type from bool to void.
(OnListManagerPositionChanged): rename OnListManagerCurrentChanged
to this, and make sure we don't set ListManager.Position inside
set_CurrentCell.
(OnListManagerItemChanged): if we're passed an actual index,
redraw that row.

* CurrencyManager.cs (set_Position): don't call PullData here.

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

17 years ago2006-06-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 12 Jun 2006 14:16:59 +0000 (14:16 -0000)]
2006-06-12  Zoltan Varga  <vargaz@gmail.com>

* mini.c (remove_block_if_useless): Do not remove the bblock immediately
after the end of a try bblock, to prevent asserts in mini_method_compile ().

* iltests.il: Add a test for the above.

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

17 years ago2006-06-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 12 Jun 2006 08:38:50 +0000 (08:38 -0000)]
2006-06-12  Atsushi Enomoto  <atsushi@ximian.com>

* culture-info-table.h : oops, forgot to make it nsync with r61548.

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

17 years agoadd an overload for RunUrl method with no delegates
Andrew Skiba [Mon, 12 Jun 2006 07:53:52 +0000 (07:53 -0000)]
add an overload for RunUrl method with no delegates

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

17 years agoFix for building mono in VS, and implement reading/writing USER/MACHINE level environ...
Jonathan Chambers [Mon, 12 Jun 2006 00:54:02 +0000 (00:54 -0000)]
Fix for building mono in VS, and implement reading/writing USER/MACHINE level environment variables.

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

17 years agoFix for building mono in VS, and implement reading/writing USER/MACHINE level environ...
Jonathan Chambers [Mon, 12 Jun 2006 00:53:44 +0000 (00:53 -0000)]
Fix for building mono in VS, and implement reading/writing USER/MACHINE level environment variables.

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

17 years agoset the row index from GridRowView if CommandArgument does not contain this information
Konstantin Triger [Sun, 11 Jun 2006 07:53:47 +0000 (07:53 -0000)]
set the row index from GridRowView if CommandArgument does not contain this information

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

17 years agoreturn documented default for OldValuesParameterFormatString
Konstantin Triger [Sun, 11 Jun 2006 07:44:32 +0000 (07:44 -0000)]
return documented default for OldValuesParameterFormatString

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

17 years ago2006-06-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 10 Jun 2006 13:34:28 +0000 (13:34 -0000)]
2006-06-10  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_lowering_pass): Remove some code duplication.

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

17 years ago2006-06-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 10 Jun 2006 13:26:58 +0000 (13:26 -0000)]
2006-06-10  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c inssel-ia64.brg: Implement the new net 2.0 Interlocked.Add
methods as instrinsics.

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

17 years ago2006-06-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 10 Jun 2006 13:25:10 +0000 (13:25 -0000)]
2006-06-10  Zoltan Varga  <vargaz@gmail.com>

* interlocked-2.2.cs: Make the return values positive.

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

17 years ago2006-06-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 10 Jun 2006 06:44:22 +0000 (06:44 -0000)]
2006-06-10  Atsushi Enomoto  <atsushi@ximian.com>

* SectionGroupInfo.cs : skip <dllmap> in configuration.

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

17 years ago* Makefile.am: Fix sources list for svn rename so that make dist succeeds
Wade Berrier [Fri, 9 Jun 2006 21:02:44 +0000 (21:02 -0000)]
* Makefile.am: Fix sources list for svn rename so that make dist succeeds
(simple-cee-ops.h ssapre-mini-ops.h)

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

17 years ago - Don't need an internal constructor anymore.
Jackson Harper [Fri, 9 Jun 2006 20:27:18 +0000 (20:27 -0000)]
    - Don't need an internal constructor anymore.

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

17 years ago * Form.cs: Layout the MDI child windows when creating the parent
Jackson Harper [Fri, 9 Jun 2006 20:13:23 +0000 (20:13 -0000)]
    * Form.cs: Layout the MDI child windows when creating the parent
        * form.
        * MdiClient.cs: use the parent form width/height (if available)
        when laying out the child windows, we do this because the
        mdiclient isn't docked yet when the initial layout is done.

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

17 years ago* mono/mini/mini-s390.c: Correct ATOMIC operations (incorrect register for CS
Neale Ferguson [Fri, 9 Jun 2006 19:53:21 +0000 (19:53 -0000)]
* mono/mini/mini-s390.c: Correct ATOMIC operations (incorrect register for CS
instruction).
* mono/mini/mini-s390.h: Simplify MCONTEXT_GET_BP.
* mono/io-layer/ChangeLog: Move comment from mono/mini
* mono/mini/ChangeLog: Correct comments

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

17 years ago* mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
Neale Ferguson [Fri, 9 Jun 2006 19:08:15 +0000 (19:08 -0000)]
* mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
* mono/io-layer/atomic.h: Fix atomic operations for s390x (not really broken
but changed to use full 64-bit opcodes).
* mono/mini/mini-s390x.c: Correct ATOMIC operations (incorrect register for CS
instruction).
* mono/mini/mini-s390x.h: Simplify MCONTEXT_GET_BP.
* mono/mini/cpu-s390x.md: Fix max. length values for a couple of instructions.

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