mono.git
18 years agomerge -r 53370:58178
Konstantin Triger [Mon, 20 Mar 2006 13:31:41 +0000 (13:31 -0000)]
merge -r 53370:58178

svn path=/branches/mainsoft/gh1.7/mcs/; revision=58179

18 years agoFix spelling
Boris Kirzner [Mon, 20 Mar 2006 07:49:05 +0000 (07:49 -0000)]
Fix spelling

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

18 years ago2006-03-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 20 Mar 2006 06:56:57 +0000 (06:56 -0000)]
2006-03-20  Atsushi Enomoto  <atsushi@ximian.com>

* HebrewCalrndar.cs : removed commented obsolete code.

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

18 years agoadd requestLengthDiskThreshold to <httpRuntime>
Gonzalo Paniagua Javier [Sun, 19 Mar 2006 23:18:01 +0000 (23:18 -0000)]
add requestLengthDiskThreshold to <httpRuntime>

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

18 years ago2006-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sun, 19 Mar 2006 23:16:17 +0000 (23:16 -0000)]
2006-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web/TempFileStream.cs: a FileStream that removes the file once
it is disposed.
* System.Web/HttpRequest.cs: support for writing request data to on-disk
files if the request is longer than the threshold specified in the
configuration files. In mono this will work for 1.x and 2.0, while with
MS this only works for 2.0.
* System.Web.dll.sources: add TempFileStream.cs
* System.Web.Configuration/HttpRuntimeConfigurationHandler.cs: removed
a bunch of useless stuff for 1.x.

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

18 years agomanually synchronized with 56802
Marek Safar [Sun, 19 Mar 2006 22:04:20 +0000 (22:04 -0000)]
manually synchronized with 56802

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

18 years agoAdd README
Miguel de Icaza [Sun, 19 Mar 2006 20:09:27 +0000 (20:09 -0000)]
Add README

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

18 years ago2006-03-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 19 Mar 2006 19:28:22 +0000 (19:28 -0000)]
2006-03-19  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_print_method_from_ip): Recognize JIT trampolines as well.
(can_access_internals): Fix a warning.

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

18 years ago2006-03-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 19 Mar 2006 19:01:46 +0000 (19:01 -0000)]
2006-03-19  Zoltan Varga  <vargaz@gmail.com>

* mini.c (print_method_from_ip): Rename this to
mono_print_method_from_ip so it gets exported.

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

18 years ago* HtmlAnchor.cs: fixed RenderAttributes, if target attribute is empty it shouldn...
Vladimir Krasnov [Sun, 19 Mar 2006 17:16:09 +0000 (17:16 -0000)]
* HtmlAnchor.cs: fixed RenderAttributes, if target attribute is empty it shouldn't be rendered
* HtmlForm.cs: fixed Method, default method "post" should be added if its value null or empty string
* HtmlInputImage.cs: fixed SetAtt, it removes attributes if it has null value, the fix is to remove attributes with empty string value too

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

18 years ago2006-03-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 19 Mar 2006 17:14:08 +0000 (17:14 -0000)]
2006-03-19  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Disable the setting of GC_stackbottom on ia64. Hopefully
fixes #77787.

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

18 years agoNew test.
Marek Safar [Sun, 19 Mar 2006 16:37:21 +0000 (16:37 -0000)]
New test.

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

18 years agomanually synchronized with 56802
Marek Safar [Sun, 19 Mar 2006 16:33:09 +0000 (16:33 -0000)]
manually synchronized with 56802

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

18 years agoIfdef code that is not supposed to pass in TARGET_JVM by now
Boris Kirzner [Sun, 19 Mar 2006 16:32:53 +0000 (16:32 -0000)]
Ifdef code that is not supposed to pass in TARGET_JVM by now

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

18 years agoFixes to nunit results xslt transform
Boris Kirzner [Sun, 19 Mar 2006 16:00:47 +0000 (16:00 -0000)]
Fixes to nunit results xslt transform

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

18 years ago2006-03-18 Robert Jordan <robertj@gmx.net>
Robert Jordan [Sun, 19 Mar 2006 15:15:15 +0000 (15:15 -0000)]
2006-03-18  Robert Jordan  <robertj@gmx.net>

* OutputCacheModule.cs: invoke the validation callbacks of
HttpCachePolicy. Fixes bug #77825.

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

18 years ago2006-03-18 Robert Jordan <robertj@gmx.net>
Robert Jordan [Sun, 19 Mar 2006 15:14:47 +0000 (15:14 -0000)]
2006-03-18  Robert Jordan  <robertj@gmx.net>

* HttpCachePolicy.cs: expose the validation callbacks.
Fixes bug #77825.

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

18 years ago2006-03-19 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sun, 19 Mar 2006 13:21:16 +0000 (13:21 -0000)]
2006-03-19  Marek Safar  <marek.safar@seznam.cz>

* Nullable.cs (Compare, Equals): Added constrain as gmcs now correctly
reports an error here.

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

18 years ago2006-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sun, 19 Mar 2006 09:21:18 +0000 (09:21 -0000)]
2006-03-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * BuildPropertyGroup.cs, Expression.cs: Coding style fixed.

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

18 years ago2006-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 18 Mar 2006 21:34:32 +0000 (21:34 -0000)]
2006-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpApplication.cs: fix upper bound when iterating through the module
collection.

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

18 years ago2006-03-18 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 18 Mar 2006 21:21:14 +0000 (21:21 -0000)]
2006-03-18  Marek Safar  <marek.safar@seznam.cz>

* codegen.cs (EmitContext.TestObsoleteMethodUsage): Removed as it become
obsolete.

* class.cs: Updated.

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

18 years ago2006-03-18 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 18 Mar 2006 17:10:43 +0000 (17:10 -0000)]
2006-03-18  Marek Safar  <marek.safar@seznam.cz>

* cs-parser.jay.cs: __arglist is not allowed for delegates.

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

18 years ago2006-03-18 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 18 Mar 2006 15:50:35 +0000 (15:50 -0000)]
2006-03-18  Marek Safar  <marek.safar@seznam.cz>

A fix for #77822.

* expression.cs(VerifyArgumentsCompat): Reverted to double error
reporting, it's more tricky than I thought.

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

18 years ago2006-03-18 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 18 Mar 2006 15:25:20 +0000 (15:25 -0000)]
2006-03-18  Marek Safar  <marek.safar@seznam.cz>

A fix for #77816.

* anonymous.cs.cs (AnonymousMethod): Add host to allow access to
host container.
(AnonymousMethod.ImplicitStandardConversionExists): New method.
(AnonymousMethod.Compatible): Moved parameter resolving to DoResolve.
Add more error reporting; Fixed issue with params.

* convert.cs (ImplicitStandardConversionExists): Returned conversion check.

* cs-parser.jay: AnonymousMethod requires host container.

* delegate.cs (NewDelegate.DoResolve): Updated after Compatible changes.

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

18 years agoFixed a typo.
Marek Sieradzki [Sat, 18 Mar 2006 12:34:32 +0000 (12:34 -0000)]
Fixed a typo.

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

18 years ago2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 18 Mar 2006 12:20:57 +0000 (12:20 -0000)]
2006-03-18  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * InternalLoggerExceptionTest.cs, InvalidProjectFileExceptionTest.cs,
        EngineTest.cs, ProjectTest.cs: Added new tests.
        * BuildItemTest.cs: Added.
        * Microsoft.Build.Engine.Test.sln, Microsoft.Build.Engine.Test.csproj:
        Added VS 2005/SD2 solution.

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

18 years ago2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 18 Mar 2006 12:07:38 +0000 (12:07 -0000)]
2006-03-18  Marek Sieradzki  <marek.sieradzki@gmail.com>

* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallersAttribute.

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

18 years ago2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 18 Mar 2006 12:07:04 +0000 (12:07 -0000)]
2006-03-18  Marek Sieradzki  <marek.sieradzki@gmail.com>

* ManagedCompiler.cs: Fixed a typo.
* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallersAttribute.

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

18 years ago2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 18 Mar 2006 12:05:27 +0000 (12:05 -0000)]
2006-03-18  Marek Sieradzki  <marek.sieradzki@gmail.com>

* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallersAttribute.

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

18 years ago2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 18 Mar 2006 12:03:52 +0000 (12:03 -0000)]
2006-03-18  Marek Sieradzki  <marek.sieradzki@gmail.com>

* Engine.cs: API cleanup.

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

18 years ago2006-03-18 Crestez Leonard <cdleonard@gmail.com>
Marek Sieradzki [Sat, 18 Mar 2006 12:03:06 +0000 (12:03 -0000)]
2006-03-18  Crestez Leonard  <cdleonard@gmail.com>

* Project.cs: Cleaned up add.
* Expression.cs: Hacked to transform \ and / to path separators.
* BuildPropertyGroup.cs: Small cleanup.
* BuildTask.cs, TaskEngine.cs: Fix TaskEngine not getting a Project
reference.

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

18 years ago2006-03-18 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 18 Mar 2006 12:01:44 +0000 (12:01 -0000)]
2006-03-18  Marek Sieradzki  <marek.sieradzki@gmail.com>

* Project.cs: Added new tests.

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

18 years ago* class.cs: Change 'TypeContainer ds' constructor argument to
Raja R Harinath [Sat, 18 Mar 2006 07:07:50 +0000 (07:07 -0000)]
* class.cs: Change 'TypeContainer ds' constructor argument to
'DeclSpace parent'.  Some classes were missed below due to
different naming convention.

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

18 years ago* XmlSchemaExporterTests.cs: Enabled tests for bug #77111.
Gert Driesen [Sat, 18 Mar 2006 06:30:13 +0000 (06:30 -0000)]
* XmlSchemaExporterTests.cs: Enabled tests for bug #77111.
* XmlSchemaExporter.cs: Import namespace of schema generated for
non-xsd primitive. Do not set zero-length TargetNamespace to avoid
emitting empty targetNamespace attribute in generated schema.
* XmlReflectionImporter.cs: Use WSDL types namespace for non-xsd
primitives.

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

18 years ago2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Sat, 18 Mar 2006 01:17:27 +0000 (01:17 -0000)]
2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>

* CreateParams.cs: Added internal menu field
* Control.cs:
  - Switched call order for UpdateBounds; now we always call
    the one that also takes ClientSize, and we're calculating the
    client size via driver method in the others. The previous
    method of tracking client size by difference wasn't working
    for forms where even the starting client size wouldn't match
    the overall form size (due to borders) (Part of fix for #77729)
  - CreateParams(): Do not use parent.Handle unless the handle is
    already created. Causes havoc with Nexxia and throws off our
    creation of controls
* XplatUIX11.cs:
  - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
  - Switched handling of ConfigureNotify over to new PerformNCCalc
    method (consolidates code)
  - Changed RequestNCRecalc to use new PerformNCCalc method
  - Added calls to RequestNCRecalc when menus and borders are changed
    to allow app to set NC size. (Part of fix for #77729) This matches
    when MS send a WM_NCRECALC on Win32 windows.
  - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
    (Part of fix for #77729). This matches what MS does, they also
    send that message when the form is made visible.
  - XException.GetMessage: Improved usability of X errors by including
    a translation of the window into Hwnd and Control class
  - Improved debug info for window creation, reparenting and destruction
  - Created helper method WindowIsMapped() [Currently not used]
* XplatUIWin32.cs: Added ToString() debug helper to RECT structure
* Form.cs:
  - CreateParams: Now setting our menu on the new internal menu field
  - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
    avoid calculating the same property twice
* Hwnd.cs:
  - Improved usability of ToString() for debugging purposes
  - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
    determine the height of the menu, instead of just the font. This
    required to also create a graphics context and to keep a bmp
    around (for performance reasons)

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

18 years ago* class.cs (MemberCore.Parent): Delete. This makes the
Raja R Harinath [Fri, 17 Mar 2006 20:44:49 +0000 (20:44 -0000)]
* class.cs (MemberCore.Parent): Delete.  This makes the
ParentContainer changes below enforceable by the compiler.

Of course, this was the my first change, and the previous patches in the
series were the fallout.  However, I applied the changes in reverse order
to make the re-factoring clearer.

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

18 years agoTreat pointers to enclosing declaration space as 'DeclSpace', not
Raja R Harinath [Fri, 17 Mar 2006 20:36:03 +0000 (20:36 -0000)]
Treat pointers to enclosing declaration space as 'DeclSpace', not
'TypeContainer'.
* class.cs, const.cs, delegate.cs, enum.cs, iterator.cs: Change
'TypeContainer parent' constructor argument to 'DeclSpace parent'.

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

18 years ago* statement.cs (LocalInfo..ctor): Use DeclSpace argument instead
Raja R Harinath [Fri, 17 Mar 2006 20:11:14 +0000 (20:11 -0000)]
* statement.cs (LocalInfo..ctor): Use DeclSpace argument instead
of TypeContainer.
(Block.AddThisVariable): Likewise.
* class.cs (MethodData.Define, MethodData.Emit): Likewise.
(AbstractPropertyEventMethod.Emit): Likewise.
(AbstractPropertyEventMethod.EmitMethod): Likewise.
(GetMethod.Define, SetMethod.Define): Likewise.
(PropertyMethod.Define, DelegateMethod.Define): Likewise.
(DelegateMethod.EmitMethod): Likewise.

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

18 years agoIn mcs:
Raja R Harinath [Fri, 17 Mar 2006 19:50:00 +0000 (19:50 -0000)]
In mcs:
Fix regression test-partial-13.cs.
Rationalize use of PartialContainer.  Ensure that the partial
class semantics can be tied to type-correctness, i.e., any
violation will cause a compile error.
* class.cs, const.cs: Access all fields that belong to class
TypeContainer via ParentContainer.  Arguments of EmitContexts and
Resolve()-like functions still use 'Parent'.

In tests:
* test-partial-13.cs: New test for partial classes.

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

18 years ago2006-03-17 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 17 Mar 2006 19:39:59 +0000 (19:39 -0000)]
2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>

* MenuAPI.cs: Added OnMouseUp method
* Form.cs:
  - Now remembering the requested client size, avoids size errors
  - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
    instead of base if the menu is active. This is required due to
    control now capturing and releasing on down/up and it would
    prematurely release our menu capture

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

18 years ago* class.cs (SourceMethod): Use DeclSpace, not TypeContainer.
Raja R Harinath [Fri, 17 Mar 2006 19:14:19 +0000 (19:14 -0000)]
* class.cs (SourceMethod): Use DeclSpace, not TypeContainer.
(*.CreateEmitContext): Change TypeContainer argument to DeclSpace.
(PropertyMethod.CheckModifiers): Remove unused argument.
* codegen.cs (EmitContext..ctor): Change TypeContainer argument to DeclSpace.

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

18 years agoMake semantics of PartialContainer simpler.
Raja R Harinath [Fri, 17 Mar 2006 18:49:25 +0000 (18:49 -0000)]
Make semantics of PartialContainer simpler.
* decl.cs (DeclSpace.IsPartial): Remove.
* class.cs (TypeContainer.IsPartial): Likewise.
(TypeContainer..ctor): Set PartialContainer to point to self.
(TypeContainer.GetClsCompliantAttributeValue): Don't use IsPartial.
(TypeContainer.FindNestedType): Likewise.
(MemberCore.ParentContainer): Simplify.  Remove deprecation.

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

18 years ago2006-03-17 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Fri, 17 Mar 2006 18:42:37 +0000 (18:42 -0000)]
2006-03-17  Marek Safar  <marek.safar@seznam.cz>

* typemanager.cs.cs (GetInterfaces): Don't recreate 0-sized arrays.

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

18 years agoRe-enable tests
Raja R Harinath [Fri, 17 Mar 2006 18:39:42 +0000 (18:39 -0000)]
Re-enable tests

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

18 years agoFri Mar 17 18:06:06 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 17 Mar 2006 17:10:06 +0000 (17:10 -0000)]
Fri Mar 17 18:06:06 CET 2006 Paolo Molaro <lupus@ximian.com>

* object.h, object.c, icall.c: added functions to deal with
storing valuetypes that contain references in managed objects.
* reflection.c, string-icalls.c, threads.c, marshal.c: small
fixes and comments around uses of mono_array_addr ().

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

18 years agoAdded sample valgrind suppression file.
Paolo Molaro [Fri, 17 Mar 2006 16:43:39 +0000 (16:43 -0000)]
Added sample valgrind suppression file.

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

18 years agoMatrix.cs: Add missing checks to methods (and fix unit tests).
Sebastien Pouliot [Fri, 17 Mar 2006 16:03:55 +0000 (16:03 -0000)]
Matrix.cs: Add missing checks to methods (and fix unit tests).

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

18 years agofix build
Sebastien Pouliot [Fri, 17 Mar 2006 14:58:04 +0000 (14:58 -0000)]
fix build

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

18 years ago2006-03-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Mar 2006 14:51:32 +0000 (14:51 -0000)]
2006-03-17  Zoltan Varga  <vargaz@gmail.com>

* libmono.vcproj: Remove os/win32/util.h.

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

18 years ago * KeyboardLayouts.cs: Add the czech layouts.
Jackson Harper [Fri, 17 Mar 2006 13:45:57 +0000 (13:45 -0000)]
    * KeyboardLayouts.cs: Add the czech layouts.

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

18 years ago* ProjectData.cs (Finalize): Change into a destructor.
Raja R Harinath [Fri, 17 Mar 2006 13:32:26 +0000 (13:32 -0000)]
* ProjectData.cs (Finalize): Change into a destructor.

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

18 years ago - Use Implicit scrollbars on the datagrid so they arent
Jackson Harper [Fri, 17 Mar 2006 07:44:59 +0000 (07:44 -0000)]
    - Use Implicit scrollbars on the datagrid so they arent
        selectable.

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

18 years ago * DataGrid.cs: Bind the cached_currencymgr_events to the
Jackson Harper [Fri, 17 Mar 2006 07:33:22 +0000 (07:33 -0000)]
            * DataGrid.cs: Bind the cached_currencymgr_events to the
                * real data
                source, otherwise when rows are added they are added to the
                'fake'
                datasource and we will crash when trying to set the position in
                those rows.

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

18 years ago * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
Jackson Harper [Fri, 17 Mar 2006 06:58:19 +0000 (06:58 -0000)]
    * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
        of ManagerEntrys.
        - Handle creating BindingManagers for null data sources.

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

18 years ago * Control.cs: Use the viewport space when sizing not the
Jackson Harper [Fri, 17 Mar 2006 00:55:03 +0000 (00:55 -0000)]
    * Control.cs: Use the viewport space when sizing not the
        * controls
        client size, so things like ScrollableControl that effect the
        viewport size (when scrollbars are added) are computed
correctly.

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

18 years ago2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 16 Mar 2006 23:57:21 +0000 (23:57 -0000)]
2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpRequest.cs: use the provided content encoding to decode the file
name. Fixes bug #77714.

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

18 years ago * Binding.cs:
Jackson Harper [Thu, 16 Mar 2006 23:49:40 +0000 (23:49 -0000)]
    * Binding.cs:
        * InternalWindowManager.cs:
        * MdiWindowManager.cs:
        * X11Keyboard.cs: I really want Mike to love me again (fix
        compiler warnings).

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

18 years ago2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 16 Mar 2006 23:39:26 +0000 (23:39 -0000)]
2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>

* DataGrid.cs:
  - OnMouseDown: Switch to editing mode when clicking on the cell
                 even if we're clicking on the cell that's currently
                 selected
  - ProcessGridKey: Left/Right now wrap like MS.Net does
  - ProcessGridKey: Tab now knows to add a new row when tab is
                    pressed in the cell of the last column of the
                    last row
  - ProcessGridKey: Enter now adds another row  if pressed in the last
                    row and selectes the new row, same column cell
  - ProcessGridKey: Home/End navigate columns, not rows, like
                    originally implemented
  - Broke ProcessKeyPreview code out into an extra Internal method
    so it can be called from the edit code
* DataGridTextBox.cs (ProcessKeyMessage):
  - Switched to accept Tab keypresses
  - Added F2 handling to allow jumping to the end of the edited cell
  - Added logic to allow moving caret left/right inside edited cell
    and making the edited cell jump when the caret hits cell borders
  - Tab and Enter are now passed to the datagrid after being handled
* TextBoxBase.cs:
  - Removed capture code now that Control handles it
  - set_SelectionStart now ensures caret is visible

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

18 years ago * TrackBar.cs: Debackwards the increment/decrement for handling
Jackson Harper [Thu, 16 Mar 2006 23:35:44 +0000 (23:35 -0000)]
    * TrackBar.cs: Debackwards the increment/decrement for handling
        mouse clicks on the bar with vertical trackbars.
        * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
        bottom to match MS.

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

18 years ago2006-03-16 Mike Kestner <mkestner@novell.com>
Mike Kestner [Thu, 16 Mar 2006 23:20:35 +0000 (23:20 -0000)]
2006-03-16  Mike Kestner  <mkestner@novell.com>

* ListView.cs: make shift/ctrl keyboard and mouse selection
consistent with the MS control. Fix a bug in
SelectedListViewItemCollection.Clear that was pissing me off for the
better part of a day because the collection was being altered
underneath us as we walked the list.

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

18 years ago2006-03-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Mar 2006 22:45:30 +0000 (22:45 -0000)]
2006-03-16  Atsushi Enomoto  <atsushi@ximian.com>

* TextInfo.cs : (ToUpper/ToLower) use InternalAllocateStr() and
  pointers rather than StringBuilder.

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

18 years ago* mini-s390.c: Remove OP_X86_TEST_NULL.
Neale Ferguson [Thu, 16 Mar 2006 20:04:53 +0000 (20:04 -0000)]
* mini-s390.c: Remove OP_X86_TEST_NULL.

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

18 years ago2006-03-16 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 16 Mar 2006 19:33:34 +0000 (19:33 -0000)]
2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs: Not sure how we could miss this so long, but it seems
  that MS.Net has Capture set all the way from before calling
  OnMouseDown through sending the mouse events until after
  OnMouseUp. This will fix DataGrid's selection being set to end
  at the location of the MouseUp.

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

18 years ago2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 16 Mar 2006 19:26:03 +0000 (19:26 -0000)]
2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebConnectionStream.cs: avoid Begin/EndWrite when the body length is
zero.

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

18 years ago2006-03-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 16 Mar 2006 19:03:15 +0000 (19:03 -0000)]
2006-03-16  Zoltan Varga  <vargaz@gmail.com>

* monobitset.c: Guard inline asm with #ifdef __GNUC__.

* monobitset.c (mono_bitset_find_first): Turn a g_return_val_if_fail
into an assert.

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

18 years agoAdded SqlClient automated tests for TARGET_JVM
Boris Kirzner [Thu, 16 Mar 2006 18:17:07 +0000 (18:17 -0000)]
Added SqlClient automated tests for TARGET_JVM

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

18 years agoNew test.
Martin Baulig [Thu, 16 Mar 2006 17:26:23 +0000 (17:26 -0000)]
New test.

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

18 years ago2006-03-16 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 16 Mar 2006 17:18:05 +0000 (17:18 -0000)]
2006-03-16  Martin Baulig  <martin@ximian.com>

* generic.cs
(ConstraintChecker.HasDefaultConstructor): If we're a TypeBuilder
and don't have any instance constructors, also lookup in the base class.
(TypeManager.IsNullableValueType): New public method.

* typemanager.cs (TypeManager.MemberLookup_FindMembers): Clear the
`BindingFlags.DeclaredOnly' flag and set `used_cache'.
(TypeManager.TryGetBaseDefinition): Use DropGenericMethodArguments().

* expression.cs (Unary.DoResolve): Use TypeManager.IsNullableValueType()
instead of just TypeManager.IsNullableType() to determine whether
a lifted operator exists.
(UnaryMutator.DoResolve): Likewise.
(Conditional.DoResolve): Likewise.
(Binary.DoResolve): A lifted operator only exists if both operands
are valuetypes and at least one of them is a nullable type.

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

18 years agoIn class/corlib/System.Collections.Generic:
Ankit Jain [Thu, 16 Mar 2006 17:04:44 +0000 (17:04 -0000)]
In class/corlib/System.Collections.Generic:

* List.cs (CheckIndex): Check for -ve indices and allow index == size.
(Insert): Use CheckIndex.

In class/corlib/Test/System.Collections.Generic:

* ListTest.cs: Add some tests for InsertRange.

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

18 years ago2006-03-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 16 Mar 2006 17:02:45 +0000 (17:02 -0000)]
2006-03-16  Atsushi Enomoto  <atsushi@ximian.com>

* Double.cs : (Parse) reject String.Empty.

* DoubleTest.cs : added ParseEmptyString().

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

18 years agoThu Mar 16 17:27:46 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 16 Mar 2006 16:28:48 +0000 (16:28 -0000)]
Thu Mar 16 17:27:46 CET 2006 Paolo Molaro <lupus@ximian.com>

* serial.c: removed useless serial.h file (it was also
breaking the build).

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

18 years agoThu Mar 16 17:19:04 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 16 Mar 2006 16:19:58 +0000 (16:19 -0000)]
Thu Mar 16 17:19:04 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: use the correct GetHashCode() for the moving collector.

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

18 years agoThu Mar 16 17:16:45 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 16 Mar 2006 16:18:43 +0000 (16:18 -0000)]
Thu Mar 16 17:16:45 CET 2006 Paolo Molaro <lupus@ximian.com>

* object.h, icall.c, monitor.c: object.GetHashCode ()
implementation that supports the moving garbage collector.

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

18 years ago2006-03-16 Massimiliano Mantione <massi@ximian.com>
Massimiliano Mantione [Thu, 16 Mar 2006 15:30:57 +0000 (15:30 -0000)]
2006-03-16  Massimiliano Mantione  <massi@ximian.com>

        * liveness.c: Regalloc spill cost tuning.

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

18 years ago2006-03-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 16 Mar 2006 14:06:29 +0000 (14:06 -0000)]
2006-03-16  Zoltan Varga  <vargaz@gmail.com>

* mono-compiler.h (MONO_INTERNAL): Disable this on the VC build.

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

18 years agoFix test scripts for TARGET_JVM
Boris Kirzner [Thu, 16 Mar 2006 13:09:24 +0000 (13:09 -0000)]
Fix test scripts for TARGET_JVM

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

18 years agoFix testing scripts for TARGET_JVM
Boris Kirzner [Thu, 16 Mar 2006 13:01:06 +0000 (13:01 -0000)]
Fix testing scripts for TARGET_JVM

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

18 years ago Oops last second 'cleanup' broke something. We need to allow
Jackson Harper [Thu, 16 Mar 2006 06:14:12 +0000 (06:14 -0000)]
    Oops last second 'cleanup' broke something.  We need to allow
creating null members in data sets.

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

18 years ago * BindingContext.cs: Check the binding after its added so that
Jackson Harper [Thu, 16 Mar 2006 06:05:18 +0000 (06:05 -0000)]
    * BindingContext.cs: Check the binding after its added so that
        * it
        can initialize the binding managers and hookup to events.
        * Binding.cs: Data members seem to sometimes include rows/cols
        * in
        the format Row.Column we now take this into account.
        - Hookup to the position changed event so we can update the
        control when the position has changed in the data set.
        * CurrencyManager.cs: Take into account the row/col naming
        convention when creating dataset tables.
        * BindingContext.cs: Using a newer better way of storing
        datasource/datamember pairs.  Hopefully this better matches MS
for
        looking up binding managers.

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

18 years agoWe want JIT on s390 by default
Miguel de Icaza [Thu, 16 Mar 2006 00:00:27 +0000 (00:00 -0000)]
We want JIT on s390 by default

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

18 years ago2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 15 Mar 2006 23:57:25 +0000 (23:57 -0000)]
2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpResponse.cs: allow setting a Cache-Control header through
AppendHeader. Fixes bug #77775.

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

18 years ago2006-03-15 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 15 Mar 2006 22:59:31 +0000 (22:59 -0000)]
2006-03-15  Marek Safar  <marek.safar@seznam.cz>

* class.cs (FieldMember.Emit): ParentContainer is real parent for partial
classes.

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

18 years ago2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 15 Mar 2006 21:47:57 +0000 (21:47 -0000)]
2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* SessionSQLServerHandler.cs: if the connection to the DB is lost, retry
the select/update/insert/delete commands after reconnecting.
Fixes bug #77785.

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

18 years ago * BindingContext.cs: The currency manager needs the data member
Jackson Harper [Wed, 15 Mar 2006 21:31:35 +0000 (21:31 -0000)]
    * BindingContext.cs: The currency manager needs the data member
        name, if the member is a data set we use the name to find the
        correct table.
        * CurrencyManager.cs: When creating the list prefer an IList
        * over
        an IListSource.
        - Attempt to create a DataTable from a DataSet (TODO: might need
        some better error checking here, although MS doesn't seem to
have much)
        - If we have a DataTable create a view and use it as our list.

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

18 years ago2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 15 Mar 2006 21:25:33 +0000 (21:25 -0000)]
2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CompareValidator.cs: when searching for the control to compare, use
NamingContainer instead of Page. Fixes bug #77793.

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

18 years ago* mini-s390x.h: Correct S390_LONG macro.
Neale Ferguson [Wed, 15 Mar 2006 21:08:30 +0000 (21:08 -0000)]
* mini-s390x.h: Correct S390_LONG macro.
* mini-s390x.c: Cleanup unused code.

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

18 years ago2006-03-15 Hector E. Gomez Morales <hectorgm@ciencias.unam.mx>
Hector E. Gomez Morales [Wed, 15 Mar 2006 20:57:48 +0000 (20:57 -0000)]
2006-03-15  Hector E. Gomez Morales  <hectorgm@ciencias.unam.mx>

        * secutil.cs: Print an error when asked to display the strong name
of an assembly that doesn't have an associated key.

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

18 years ago2006-03-15 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 15 Mar 2006 20:39:26 +0000 (20:39 -0000)]
2006-03-15  Marek Safar  <marek.safar@seznam.cz>

* class.cs (Operator.Define): An error for base conversion was not
reported correctly.

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

18 years agomanually synchronized with 56802
Marek Safar [Wed, 15 Mar 2006 20:17:25 +0000 (20:17 -0000)]
manually synchronized with 56802

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

18 years ago * SiteMapPath.cs (InitializeItem): in the Current and Root node
Chris Toshok [Wed, 15 Mar 2006 19:54:46 +0000 (19:54 -0000)]
* SiteMapPath.cs (InitializeItem): in the Current and Root node
cases, apply the NodeTemplate if it exists and there isn't a
CurrentNodeTemplate or RootNodeTemplate, respectively.

2006-03-15  Chris Toshok  <toshok@ximian.com>

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

18 years ago2006-03-15 Miguel de Icaza <miguel@gnome.org>
Miguel de Icaza [Wed, 15 Mar 2006 18:23:15 +0000 (18:23 -0000)]
2006-03-15  Miguel de Icaza  <miguel@gnome.org>

* SerialPort.cs: We will do detection of systems differently as we
discussed over email.  Drop malloc/free/uname calls.

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

18 years ago2006-03-15 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 15 Mar 2006 17:48:20 +0000 (17:48 -0000)]
2006-03-15  Chris Toshok  <toshok@ximian.com>

* SiteMapDataSourceView.cs (OnDataSourceViewChanged): override.

* SiteMapDataSource.cs (StartingNodeOffset): new property.
(GetStartNode): add code to handle StartNodeOffset < 0.

* CompositeControl.cs
(ICompositeControlDesignerAccessor.RecreateChildControls): just
call the non-iface method.

* DataBoundControl.cs (GetDataSource): this is likely wrong, but
traverse up the naming container tree looking for our datasource
if we're bound using a DataSourceID.  This fixes things in the
sitemap1 test, which uses a mixture of templates and
ContentPlaceholders with the sitemapdatasource and sitemappath at
different levels in the naming container tree (let along the
itemnode template.)

* SiteMapPath.cs (DataBind): implement this by chaining up to
base.DataBind, then by looping over our children, emitting
OnItemDataBound for each SiteMapNodeItem.
(AddAttributesToRender): remove.
(CreateChildControls): call DataBind as the final step here..  I
have, of course, no idea if this is right.
(CreateControlHierarchy): don't databind our children here, as
they need to be in the Controls collection before we do.
(RenderContents): render our accessibility/screenreader stuff
here, if SkipLinkText != "".

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

18 years ago * XmlSiteMapProvider.cs (RemoveProvider): oops, no override.
Chris Toshok [Wed, 15 Mar 2006 17:47:15 +0000 (17:47 -0000)]
* XmlSiteMapProvider.cs (RemoveProvider): oops, no override.

* StaticSiteMapProvider.cs (AddNode): call MapUrl.
(FindSiteMapNode): same.

2006-03-15  Chris Toshok  <toshok@ximian.com>

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

18 years ago2006-03-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 15 Mar 2006 17:31:34 +0000 (17:31 -0000)]
2006-03-15  Miguel de Icaza  <miguel@novell.com>

* mono.1: Document MONO_XEXCEPTIONS and MONO_XSYNC, create new
section, sort the previous enviornment section.

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

18 years ago2006-03-15 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 15 Mar 2006 17:28:39 +0000 (17:28 -0000)]
2006-03-15  Chris Toshok  <toshok@ximian.com>

* SiteMapProvider.cs (ReturnNodeIfAccessible): new function,
either return the node or throw InvalidOperationException.
(get_RootNode): use ReturnNodeIfAccessible.
(IsAccessibleToUser): flesh this out a bit, and add comments on
how the rest of the implementation should be written.
(FindSiteMapNodeFromKey): implement to match MS behavior, docs be
damned.

* XmlSiteMapProvider.cs: corcompare work.

* StaticSiteMapProvider.cs (AddNode): Add a check to see if node
== RootNode.  Not sure if this is actually correct, but it's
required given our implementation of XmlSiteMapProvider.  without
this check, we end up assigning RootNode.ParentNode == RootNode,
which makes for an infinite loop when we traverse up the tree.

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

18 years ago2006-03-15 Mike Kestner <mkestner@novell.com>
Mike Kestner [Wed, 15 Mar 2006 16:58:09 +0000 (16:58 -0000)]
2006-03-15  Mike Kestner  <mkestner@novell.com>

* ListView.cs: keep a matrix of the icon mode layout to facilitate
keyboard navigation. Support Up/Down/Left/Right selection correctly
for all 4 View modes.
* ListViewItem.cs: add internal row/col fields for icon layouts.

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

18 years agoIn .:
Chris Toshok [Wed, 15 Mar 2006 16:47:03 +0000 (16:47 -0000)]
In .:
2006-03-15  Chris Toshok  <toshok@ximian.com>

* Makefile (RESOURCE_FILES_2): add transarent.gif.

In Assembly:
2006-03-15  Chris Toshok  <toshok@ximian.com>

* AssemblyInfo.cs: add a WebResource for transparent.gif.

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

18 years ago* DataSourceResolver.cs: corrected exceptions type in ResolveDataSource
Vladimir Krasnov [Wed, 15 Mar 2006 15:42:39 +0000 (15:42 -0000)]
* DataSourceResolver.cs: corrected exceptions type in  ResolveDataSource

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

18 years agoWed Mar 15 16:35:13 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 15 Mar 2006 15:39:20 +0000 (15:39 -0000)]
Wed Mar 15 16:35:13 CET 2006 Paolo Molaro <lupus@ximian.com>

* Context.cs: update for LocalDataStoreSlot changes.

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

18 years agoWed Mar 15 16:35:49 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 15 Mar 2006 15:38:52 +0000 (15:38 -0000)]
Wed Mar 15 16:35:49 CET 2006 Paolo Molaro <lupus@ximian.com>

* Thread.cs: updates for LocalDataStoreSlot: we use an array as
storage for the slots now so that LocalDataStoreSlot objects an be
garbage collected if the user doesn't keep a reference to them.

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