mono.git
18 years ago2006-05-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 7 May 2006 14:25:55 +0000 (14:25 -0000)]
2006-05-07  Zoltan Varga  <vargaz@gmail.com>

* data/mono.supp: Applied patch from Matt Hargett (matt@use.net).
Generalize path to the mono executable.

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

18 years agoAdded XmlHelper.cs to TARGET_JVM project
Boris Kirzner [Sun, 7 May 2006 12:09:23 +0000 (12:09 -0000)]
Added XmlHelper.cs to TARGET_JVM project

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

18 years agomerge -r 60375:60376
Boris Kirzner [Sun, 7 May 2006 12:03:36 +0000 (12:03 -0000)]
merge -r 60375:60376

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

18 years ago2006-05-07 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sun, 7 May 2006 11:32:47 +0000 (11:32 -0000)]
2006-05-07  Marek Safar  <marek.safar@seznam.cz>

* expression.cs (QualifiedAliasMember.ResolveAsTypeStep): Pass location
to newly introduced ctor.

* namespace.cs (Namespace.Error_NamespaceDoesNotExist): Moved an error
message to one place.
(GlobalRootNamespace.Error_NamespaceDoesNotExist): Custom message for
global namespace.

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

18 years ago2006-05-07 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sun, 7 May 2006 10:14:57 +0000 (10:14 -0000)]
2006-05-07  Marek Safar  <marek.safar@seznam.cz>

* const.cs (Const.Error_ExpressionMustBeConstant): Better error message.

* ecore.cs (Expression.ResolveAsConstant): Updated.

* statement.cs (ResolveMeta): Updated.

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

18 years agoread default theme and styleSheetTheme from web.config.
Andrew Skiba [Sun, 7 May 2006 07:19:44 +0000 (07:19 -0000)]
read default theme and styleSheetTheme from web.config.

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

18 years ago2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 7 May 2006 00:59:11 +0000 (00:59 -0000)]
2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* System.dll.sources: Added new System.IO.Ports/ISerialStream.cs
file.

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

18 years ago2005-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 7 May 2006 00:57:07 +0000 (00:57 -0000)]
2005-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ISerialStream.cs:
* SerialPortStream.cs:
* SerialPort.cs:
* SerialSignal.cs:
Some changes to make SerialPorStream implement ISerialInterface,
and be able to have OS-depending backends.

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

18 years agoPublic vs internal interface
Miguel de Icaza [Sat, 6 May 2006 21:29:09 +0000 (21:29 -0000)]
Public vs internal interface

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

18 years ago2006-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 6 May 2006 20:46:07 +0000 (20:46 -0000)]
2006-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* ResponseStream.cs:
* HttpListenerResponse.cs: allow 0 length POST. Patch by Horst Reiterer.
Closes bug #78316.

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

18 years agoRemove conflict marker
Miguel de Icaza [Sat, 6 May 2006 18:08:51 +0000 (18:08 -0000)]
Remove conflict marker

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 6 May 2006 18:06:39 +0000 (18:06 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_cleanup): Applied patch from Joachim Ante (joe@otee.dk). Call
mono_trace_cleanup ().

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 6 May 2006 17:34:49 +0000 (17:34 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* iltests.il: Fix problem with the newly added test.

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 6 May 2006 17:21:50 +0000 (17:21 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_local_regalloc): When changing the dreg of an instruction
due to register constraints, free up the previous hreg. Fixes #78314.

* iltests.il: Add new test for #78314.

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 6 May 2006 16:26:29 +0000 (16:26 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_get_inst_for_method): Use OP_ATOMIC_ADD_NEW_I4 for
Interlocked.Add. Fixes #78312.

* mini-amd64.c (mono_arch_get_inst_for_method): Ditto.

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 6 May 2006 16:25:01 +0000 (16:25 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* threads.c (ves_icall_System_Threading_Interlocked_Add_Int): Return the new
value, not the old. Fixes #78312.
(ves_icall_System_Threading_Interlocked_Add_Long): Ditto.

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 6 May 2006 16:23:55 +0000 (16:23 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (TEST_CS2_SRC): Add interlocked-2.2.cs and fix compiling of net 2.0
tests.

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 6 May 2006 16:20:36 +0000 (16:20 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* interlocked-2.2.cs: New tests for the net 2.0 Interlocked methods.

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

18 years agoSome more updates
Miguel de Icaza [Sat, 6 May 2006 16:04:29 +0000 (16:04 -0000)]
Some more updates

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

18 years agoUpdate documentation format to match docscript setup
Miguel de Icaza [Sat, 6 May 2006 16:01:48 +0000 (16:01 -0000)]
Update documentation format to match docscript setup

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

18 years agoUpdate docs
Miguel de Icaza [Sat, 6 May 2006 15:43:06 +0000 (15:43 -0000)]
Update docs

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

18 years ago2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 6 May 2006 15:37:48 +0000 (15:37 -0000)]
2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ISerialStream.cs: New internal interface used for
accessing the backend streams functionality.

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

18 years ago2006-05-06 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 6 May 2006 15:00:57 +0000 (15:00 -0000)]
2006-05-06  Marek Safar  <marek.safar@seznam.cz>

* cs-parser.jay: __arglist cannot be used in initializer.

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

18 years ago2006-05-06 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 6 May 2006 10:10:11 +0000 (10:10 -0000)]
2006-05-06  Marek Safar  <marek.safar@seznam.cz>

A fix for #77879
* namespace.cs (LocalAliasEntry.DoResolve): Don't allow to access nested
private types.

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

18 years ago2006-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 5 May 2006 22:25:04 +0000 (22:25 -0000)]
2006-05-06  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_bounded_array_class_get): Allocate data from the image mempool.
(mono_ptr_class_get): Ditto. Also change the cache from a global one to a
per-image cache.

* assembly.c (mono_assembly_close): Free image->references.

* assembly.c (mono_assembly_names_equal): Fix a warning.
(mono_assemblies_cleanup): Cleanup more global data.

* metadata-internals.h (MonoImage): Add 'ptr_cache'.

* image.c (mono_image_close): Free up the contents of 'array_cache', free up
ptr_cache and image->modules.

* image.c (mono_image_init): Allocate array_cache lazily.

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

18 years ago2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 5 May 2006 21:36:24 +0000 (21:36 -0000)]
2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CredentialCache.cs: added DefaultNetworkCredentials.

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

18 years agoremoved ^Ms
Gonzalo Paniagua Javier [Fri, 5 May 2006 21:30:27 +0000 (21:30 -0000)]
removed ^Ms

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

18 years ago2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 5 May 2006 21:23:04 +0000 (21:23 -0000)]
2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* NetworkCredential.cs: implement ICredentialsByHost interface.

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

18 years ago * LocalFileSettingsProvider.cs (IsUserSetting): more
Chris Toshok [Fri, 5 May 2006 20:46:02 +0000 (20:46 -0000)]
* LocalFileSettingsProvider.cs (IsUserSetting): more
CONFIGURATION_DEP crap.

2006-05-05  Chris Toshok  <toshok@ximian.com>

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

18 years ago2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 5 May 2006 20:45:02 +0000 (20:45 -0000)]
2006-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* assembly.c: use GetCurrentThreadId for the hash, as GetCurrentThread
behavior was changed recently and has bad side effects.

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

18 years ago2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 May 2006 20:06:18 +0000 (20:06 -0000)]
2006-05-05  Sebastien Pouliot  <sebastien@ximian.com>

* IToolboxService.cs: corcompare fix. Added [ComImport] for 2.0.
* ToolboxItem.cs: corcompare fix. Added new overload for
CreateComponentsCore in 2.0
* UITypeEditor.cs: corcompare fix. Added new IsDropDownResizable
property for 2.0.

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

18 years ago2006-05-05 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Fri, 5 May 2006 20:05:32 +0000 (20:05 -0000)]
2006-05-05  Alexander Olk  <alex.olk@googlemail.com>

* MimeIcon.cs: for is faster than foreach for strings.

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

18 years ago2006-05-05 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 5 May 2006 19:57:14 +0000 (19:57 -0000)]
2006-05-05  Chris Toshok  <toshok@ximian.com>

* ProviderBase.cs (Initialize): don't die if config == null.

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

18 years agofix up the System.Configuration unit tests.
Chris Toshok [Fri, 5 May 2006 19:55:30 +0000 (19:55 -0000)]
fix up the System.Configuration unit tests.

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

18 years ago2006-05-05 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 5 May 2006 19:55:12 +0000 (19:55 -0000)]
2006-05-05  Chris Toshok  <toshok@ximian.com>

* ApplicationSettingsBase.cs (CacheValuesByProvider): emit
SettingsLoaded after we load the property values.
(set_Item[string]): fill in settingClass in the
SettingChangingEventArgs properly.
(get_Properties): don't depend on setting_attrs[0] being either
UserScoped- or ApplicationScopedSettingAttribute.  Also, call
Initialize on any providers we create here.

* LocalFileSettingsProvider.cs (GetPropertyValues): add a naive
implementation, leave a MonoTODO.
(Initialize): fill in name properly, and deal with null values.

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

18 years ago2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 May 2006 19:51:02 +0000 (19:51 -0000)]
2006-05-05  Sebastien Pouliot  <sebastien@ximian.com>

* PaletteFlags.cs: corcompare fixes for 2.0. Add [Flags] and remove
[Serializable]

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

18 years ago2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 May 2006 19:46:45 +0000 (19:46 -0000)]
2006-05-05  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPathTest.cs: Added more test cases for GetBounds and found
out the results are very imprecise when curves are used (hence
difficult to test but much easier to implement ;-)

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

18 years ago2006-05-05 Mike Kestner <mkestner@novell.com>
Mike Kestner [Fri, 5 May 2006 19:14:09 +0000 (19:14 -0000)]
2006-05-05  Mike Kestner  <mkestner@novell.com>

* CheckedListBox.cs: update check handling code to not use selected.
* ListBox.cs: rewrite of mouse selection handling to correspond to MS
behavior for visual feedback, motion response, shift/ctrl handling,
and properly deal with all 4 selection modes. Updates to bounds
handling logic.  Add scroll wheel support. [Fixes #77842]

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

18 years ago2006-05-05 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Fri, 5 May 2006 18:52:31 +0000 (18:52 -0000)]
2006-05-05  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ExpressionCollection.cs, BuildItemGroup.cs, BuildItem.cs,
        ItemReference.cs, PropertyReference.cs: Changed name of *Reference
        methods converting reference to string from ToString () to
        ConvertToString () to avoid mistakes like using ToString () provided
        by default.

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

18 years ago2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 5 May 2006 18:45:54 +0000 (18:45 -0000)]
2006-05-05  Peter Dennis Bartok  <pbartok@novell.com>

* ListView.cs:
  - Moved adding of Implicit controls into .ctor. That way, subsequent
    creation of the controls will not cause them to think they are
    toplevel windows (fixes #78200 header problem)
  - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
  - Switched visibility setting of header control to use internal field
    to avoid triggering handle creation
  - Now checking if handle is created before causing a refresh when items
    are added (This makes us now match handle creation time with MS)
* Splitter.cs: Removed loading of private splitter cursor, switched to
  Cursors version now that that is loading the right ones
* Cursors.cs: Load proper splitter cursors from resources
* Cursor.cs: Added second method of loading resource cursors for the
  VS.Net users amongst us

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

18 years ago2006-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 5 May 2006 17:48:30 +0000 (17:48 -0000)]
2006-05-05  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (mono_assembly_open_full): Add a missing mono_image_close ().

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

18 years ago2006-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 5 May 2006 17:43:03 +0000 (17:43 -0000)]
2006-05-05  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (mono_assembly_close): Remove a debug printf.

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

18 years ago2006-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 5 May 2006 17:18:30 +0000 (17:18 -0000)]
2006-05-05  Zoltan Varga  <vargaz@gmail.com>

* profiler.c (create_profiler): Use mono_aligned_addr_hash.

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

18 years ago2006-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 5 May 2006 17:17:49 +0000 (17:17 -0000)]
2006-05-05  Zoltan Varga  <vargaz@gmail.com>

* metadata-internals.h image.c assembly.c: Change the reference counting scheme
to also allow for temporary references between mono_image_open ()/close ().

* domain.c (get_runtimes_from_exe): Add a FIXME.

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

18 years ago2006-05-05 Mike Kestner <mkestner@novell.com>
Mike Kestner [Fri, 5 May 2006 17:13:26 +0000 (17:13 -0000)]
2006-05-05  Mike Kestner  <mkestner@novell.com>

* ListView.cs: give header_control a minimum size based on the
ListView size.

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

18 years ago2006-05-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 5 May 2006 17:13:05 +0000 (17:13 -0000)]
2006-05-05  Zoltan Varga  <vargaz@gmail.com>

* inssel.brg (mini_emit_virtual_call): Fix a warning.

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

18 years agoremove a cwl
Mike Kestner [Fri, 5 May 2006 16:55:21 +0000 (16:55 -0000)]
remove a cwl

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

18 years ago2006-05-05 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 5 May 2006 16:49:50 +0000 (16:49 -0000)]
2006-05-05  Martin Baulig  <martin@ximian.com>

* debug-mini.c (mono_debug_open_block): New method.

* mini-amd64.c
(mono_arch_output_basic_block): Call mono_debug_open_block() at
the beginning of each basic block.

* mini-x86.c
(mono_arch_output_basic_block): Call mono_debug_open_block() at
the beginning of each basic block.

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

18 years ago2006-05-05 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 5 May 2006 16:48:08 +0000 (16:48 -0000)]
2006-05-05  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
  window seems to do that with metacity, so set that type. (#78120)

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

18 years ago2006-05-05 Mike Kestner <mkestner@novell.com>
Mike Kestner [Fri, 5 May 2006 16:42:38 +0000 (16:42 -0000)]
2006-05-05  Mike Kestner  <mkestner@novell.com>

* ListViewItem.cs: fix Details mode checkbox layout bug.
* ThemeWin32Classic.cs: draw a ListView column header for unused space
at the end of the header, if it exists. [Fixes for #78200]

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

18 years ago * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
Massimiliano Mantione [Fri, 5 May 2006 15:26:03 +0000 (15:26 -0000)]
* driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
default until I understand why they break the build on amd64.

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

18 years ago2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 5 May 2006 15:20:47 +0000 (15:20 -0000)]
2006-05-05  Sebastien Pouliot  <sebastien@ximian.com>

* ExecutionContext.cs: Don't capture the compressed stack unless the
security manager is active (this wasn't ready to be called in
production code).

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

18 years agoIn mcs:
Raja R Harinath [Fri, 5 May 2006 12:31:24 +0000 (12:31 -0000)]
In mcs:
* statement.cs (EmptyStatement.ResolveUnreachable): Override.
(LabeledStatement): Add 'name' parameter.
(LabeledStatement.Name, LabeledStatement.JumpOrigins): New.
(Block.AddLabel): Update to changes.
* cs-parser.jay (labeled_statement): Likewise.

In gmcs:
* statement.cs (EmptyStatement.ResolveUnreachable): Override.
(LabeledStatement): Add 'name' parameter.
(LabeledStatement.Name, LabeledStatement.JumpOrigins): New.
(Block.AddLabel): Update to changes.
* cs-parser.jay (labeled_statement): Likewise.

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

18 years agoIn mcs:
Raja R Harinath [Fri, 5 May 2006 11:55:44 +0000 (11:55 -0000)]
In mcs:
* flowanalysis.cs (BranchingType.Labeled): New.
(UsageVector.MergeOrigins): Remove unused 'branching' argument.
(FlowBranchingLabeled): New.  Does nothing for now, but will
eventually handle 'goto' flows.
* codegen.cs (StartFlowBranching): Add new LabeledStatement variant.
* statement.cs (LabeledStatement.Resolve): Create a FlowBranching
that's terminated ...
(Block.Resolve): ... here.

In gmcs:
* flowanalysis.cs (BranchingType.Labeled): New.
(UsageVector.MergeOrigins): Remove unused 'branching' argument.
(FlowBranchingLabeled): New.  Does nothing for now, but will
eventually handle 'goto' flows.
* codegen.cs (StartFlowBranching): Add new LabeledStatement variant.
* statement.cs (LabeledStatement.Resolve): Create a FlowBranching
that's terminated ...
(Block.Resolve): ... here.

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

18 years ago* mcs/flowanalysis.cs (UsageVector.MergeFinally): Remove.
Raja R Harinath [Fri, 5 May 2006 09:19:00 +0000 (09:19 -0000)]
* mcs/flowanalysis.cs (UsageVector.MergeFinally): Remove.
(UsageVector.MergeFinallyOrigins): Likewise.
(FlowBranching.InTryOrCatch): Likewise.
(FlowBranching.AddFinallyVector): Likewise.
(FlowBranchingException): Update to changes.
* gmcs/flowanalysis.cs: Likewise.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 22:33:41 +0000 (22:33 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* marshal.c: Fix support for dynamic methods.

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

18 years ago * MdiClient.cs: Add a helper property to get the container form.
Jackson Harper [Thu, 4 May 2006 21:50:31 +0000 (21:50 -0000)]
    * MdiClient.cs: Add a helper property to get the container form.
        * MdiWindowManager.cs: We have to make sure to use the menu
        * origin
        when drawing the icons and buttons, this fixes maximized window
        icons/buttons on win32.
        * InternalWindowManager.cs: Reset the restore captions when a
        window goes from Maximized to Minimized and vice versa. Move the
        DrawMaximizedButtons into the MdiWindowManager source, tool
        windows can't be maximized. NOTE: This could use a little
        refactoring if time ever permits.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 21:14:19 +0000 (21:14 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_cleanup): Call mono_cleanup ().

* mini.c (UNVERIFIED): New macro to make it easier to track down verification
errors.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 21:11:44 +0000 (21:11 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (mono_runtime_cleanup): Call mono_marshal_cleanup ().

* marshal.c (mono_marshal_cleanup): New cleanup function.

* marshal.c: Rewrite the wrapper code to allocate most of its memory from the
image mempools.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 20:46:18 +0000 (20:46 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_init): Fix leaking class->nested_classes.

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

18 years ago2006-05-04 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 4 May 2006 20:45:14 +0000 (20:45 -0000)]
2006-05-04  Marek Safar  <marek.safar@seznam.cz>

A fix for #76122
* class.cs (TypeContainer.FindMembers): Includes event method in the method
filter.

It's still 05/04 here ;-)

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

18 years ago2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 4 May 2006 20:13:22 +0000 (20:13 -0000)]
2006-05-04  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Re-introduce the removed check :)

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 19:36:16 +0000 (19:36 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* metadata-internals.h (MonoImage): Add a couple of new wrapper caches.

* image.c (mono_image_init): Initialize the new cashes.

* image.c (mono_image_close): Destroy the new cashes.

* marshal.c: Get rid of most of the static caches in favor of per-image caches.

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

18 years agoIn mcs:
Raja R Harinath [Thu, 4 May 2006 19:31:54 +0000 (19:31 -0000)]
In mcs:
Fix #78290
* statement.cs (Return.Resolve): Move error checking to ...
* flowbranching.cs (FlowBranching.AddReturnOrigin): ... this.
(FlowBranchingException): Handle return origins like break and
continue origins.
(FlowBranching.UsageVector.CheckOutParameters): Remove.

In gmcs:
Fix #78290
* statement.cs (Return.Resolve): Move error checking to ...
* flowbranching.cs (FlowBranching.AddReturnOrigin): ... this.
(FlowBranchingException): Handle return origins like break and
continue origins.
(FlowBranching.UsageVector.CheckOutParameters): Remove.

In tests:
* test-508.cs: New test -- didn't fail earlier, but include to
catch any regressions.

In errors:
* cs0177-5.cs, cs0177-6.cs: New tests based on #78290.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 19:17:24 +0000 (19:17 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* mempool.c (mono_mempool_strdup): New helper function.

* class-internals.h: Add prototype for mono_loader_unlock ().

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

18 years agoadd tests for bug 78256
Chris Toshok [Thu, 4 May 2006 19:08:10 +0000 (19:08 -0000)]
add tests for bug 78256

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

18 years ago2006-05-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 4 May 2006 19:02:05 +0000 (19:02 -0000)]
2006-05-04  Chris Toshok  <toshok@ximian.com>

[ Fixes bug #78256 ]

* WebConfigurationHost.cs (GetConfigType): add a MonoTODO about
how we should use the build provider machinery to get types.
(MapPath): add rudimentary mapping in the case where we don't have
a request, basically handle the case where the url begins with (or
is) HttpRuntime.AppDomainAppVirtualPath.

* WebConfigurationManager.cs (GetSection): if we don't have a
valid request, open the web configuration corresponding to
HttpRuntime.AppDomainAppVirtualPath.
(GetBasePath): comment this a little, and make it work in the case
where we don't have an HttpRequest.

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

18 years agoAdd more tests
Marek Safar [Thu, 4 May 2006 18:14:34 +0000 (18:14 -0000)]
Add more tests

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 18:05:59 +0000 (18:05 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* rawbuffer.h rawbuffer.c metadata-internals.h metadata.c class-internals.h
class.c loader.c image.h image.c assembly.h assembly.c: Add init () and cleanup ()
functions to these modules.

* domain-internals.h domain (mono_cleanup): New internal method to cleanup most
metadata modules.

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

18 years ago2006-05-04 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 4 May 2006 18:01:59 +0000 (18:01 -0000)]
2006-05-04  Marek Safar  <marek.safar@seznam.cz>

A fix for #77543
* class.cs (MethodData.Define): Do public accessor check only when method
implements an interface.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 17:28:31 +0000 (17:28 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_free_bstr): Fix a warning.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 16:00:46 +0000 (16:00 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (mono_assembly_open_full): Fix another small leak.

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

18 years ago2006-05-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 4 May 2006 15:36:28 +0000 (15:36 -0000)]
2006-05-04  Zoltan Varga  <vargaz@gmail.com>

* object.c: Fix some unload leaks in the remoting code.

* object-internals.h object-internal.c (mono_string_to_utf8_mp): New helper
function.

* assembly.c (mono_assembly_close): Fix a leak when unloading dynamic assemblies.

* reflection.c: Fix some unload leaks in dynamic assemblies.

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

18 years ago2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 4 May 2006 15:32:33 +0000 (15:32 -0000)]
2006-05-04  Sebastien Pouliot  <sebastien@ximian.com>

* Graphics.cs: Chaned DrawIcon methods to dispose the temporary bitmap
on it's drawn.

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

18 years ago2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 4 May 2006 14:48:05 +0000 (14:48 -0000)]
2006-05-04  Sebastien Pouliot  <sebastien@ximian.com>

* Graphics.cs: Added a MonoTODO to PixelOffsetMode property so it shows
(in the class status library) a note that this isn't supported with
libgdiplus.

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

18 years ago2006-05-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 4 May 2006 14:46:41 +0000 (14:46 -0000)]
2006-05-04  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Temporarily remove the checks for the transform in
containers. This allows libgdiplus to get better visual results until
the matrix issue is fixed correctly (instead of returning the "right"
matrix and displaying wrong data).

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

18 years agoRemove special handling of 'break'
Raja R Harinath [Thu, 4 May 2006 13:21:38 +0000 (13:21 -0000)]
Remove special handling of 'break'
* mcs/flowanalysis.cs (Reachability): Remove all mention of 'breaks'.
(Reachability.Meet): Simplify.  Remove 'do_breaks' argument.
(UsageVector.Break): Remove.
(FlowBranching.Merge): Use 'Reachable.IsUnreachable' to determine
reachability.
(FlowBranchingBreakable.Merge): Don't ResetBreaks.
* gmcs/flowanalysis.cs: Likewise.

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

18 years ago2006-05-03 Senganal T <tsenganal@novell.com>
Senganal T [Thu, 4 May 2006 12:48:28 +0000 (12:48 -0000)]
2006-05-03  Senganal T  <tsenganal@novell.com>

* Tds.cs :
- SetCharset () : Fix to set the Charset correctly.
Patch from Andrzej Kurzeja

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

18 years ago* mcs/statement.cs (Break.Resolve): Call UsageVector.Goto (), not
Raja R Harinath [Thu, 4 May 2006 12:04:43 +0000 (12:04 -0000)]
* mcs/statement.cs (Break.Resolve): Call UsageVector.Goto (), not
UsageVector.Breaks ().  Don't set NeedsReturnLabel.
* gmcs/statement.cs (Break.Resolve): Call UsageVector.Goto (), not
UsageVector.Breaks ().  Don't set NeedsReturnLabel.

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

18 years ago2006-05-04 LLuis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Thu, 4 May 2006 12:03:35 +0000 (12:03 -0000)]
2006-05-04  LLuis Sanchez Gual  <lluis@novell.com>

* TempFileCollection.cs: Make sure generated file names
  are unique. Fixes bug #76125 and #78230.

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

18 years ago2006-05-04 Lluis Sanchez <lluis@novell.com>
Lluis Sanchez [Thu, 4 May 2006 10:16:49 +0000 (10:16 -0000)]
2006-05-04  Lluis Sanchez  <lluis@novell.com>

* BoundField.cs: Added missing throw kyword. Patch by Marek Habersack.

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

18 years ago * aliasing.c: Fixed shameful cut&paste error that caused JIT crashes.
Massimiliano Mantione [Thu, 4 May 2006 10:04:22 +0000 (10:04 -0000)]
* aliasing.c: Fixed shameful cut&paste error that caused JIT crashes.
* driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
default since all known bugs are fixed, and I cannot reproduce bug
77944... I'm asking Matt Hargett to test again after this commit.

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

18 years agoAdded SiteMapDataSourceTest.cs
Yoni Klain [Thu, 4 May 2006 09:57:04 +0000 (09:57 -0000)]
Added SiteMapDataSourceTest.cs

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

18 years agoFix format of ChangeLog entries. Fix formatting in codegen.cs
Raja R Harinath [Thu, 4 May 2006 05:32:15 +0000 (05:32 -0000)]
Fix format of ChangeLog entries.  Fix formatting in codegen.cs

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

18 years ago2006-05-03 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 3 May 2006 22:31:36 +0000 (22:31 -0000)]
2006-05-03  Marek Safar  <marek.safar@seznam.cz>

A fix for #75726
* pending.cs (PendingImplementation.BaseImplements): A found member cannot
be the interface member.

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

18 years ago2006-05-03 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 3 May 2006 22:14:51 +0000 (22:14 -0000)]
2006-05-03  Chris Toshok  <toshok@ximian.com>

* SqlMembershipProvider.cs (GetAlg): move this here for the time
being, as it's the only class that uses it.
(HashAndBase64Encode): nuke.
(EncryptAndBase64Encode): nuke.
(Base64DecodeAndDecrypt): nuke.
(DecryptPassword): new function.
(EncryptPassword): new function.
(ChangePassword): replace the switch with a call to
EncodePassword.
(ChangePasswordQuestionAndAnswer): same.
(CreateUser): same.
(ResetPassword): same.
(ValidateUsingPassword): same.
(ValidateUsingPasswordAnswer): same.
(GetPassword): same, and throw MembershipPasswordException if the
password answer is incorrect.

* MembershipProvider.cs (InitVector): nuke this.  it's actually
the salt from the database (for the sql provider, anyway).
(EncodePassword): based on the password format, password, and
salt, encode it.  Makes use of EncryptPassword.
(DecodePassword): likewise for decoding, makes use of
DecryptPassword.
(DecryptPassword): revert this to throwing
NotImplementedException, as the sql provideroverrides it to
perform the actual decryption.
(EncryptPassword): same.

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

18 years agoreally fix this
Chris Toshok [Wed, 3 May 2006 22:04:01 +0000 (22:04 -0000)]
really fix this

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

18 years agoget encrypted passwords working
Chris Toshok [Wed, 3 May 2006 22:01:47 +0000 (22:01 -0000)]
get encrypted passwords working

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

18 years ago2006-05-03 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 3 May 2006 18:43:26 +0000 (18:43 -0000)]
2006-05-03  Marek Safar  <marek.safar@seznam.cz>

A fix for #60069
*constant.cs (LongConstant.EmitLong): Fixed to catch also negative values
for emitting small (int) values.

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

18 years ago2006-05-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 3 May 2006 18:01:36 +0000 (18:01 -0000)]
2006-05-03  Sebastien Pouliot  <sebastien@ximian.com>

* LinearGradientBrushTest.cs: Added new test case for #78185 (from
Bill Holmes).

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

18 years agoFix #59427
Raja R Harinath [Wed, 3 May 2006 14:32:47 +0000 (14:32 -0000)]
Fix #59427
* mcs/flowanalysis.cs (FlowBranchingException.Merge): Ensure
control-flow passes through the 'finally' after merging-in all the
control-flows from 'try' and the 'catch' clauses.
* gmcs/flowanalysis.cs: Likewise.
* tests/test-505.cs: New test from #59427.

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

18 years agoIn mcs:
Raja R Harinath [Wed, 3 May 2006 13:55:44 +0000 (13:55 -0000)]
In mcs:
* flowanalysis.cs (FlowBranching.IsLoop): Remove.
(FlowBranching.IsTryOrCatch): Remove 'is_return' parameter.  It's
always true at the only non-recursive entry point.
(FlowBranching.CreateBranching) [BranchingType.Loop]: Return a
FlowBranchingBreakable.
(FlowBranchingLoop): Remove.
* statement.cs (Return.DoResolve): Update to changes.

In gmcs:
* flowanalysis.cs (FlowBranching.IsLoop): Remove.
(FlowBranching.IsTryOrCatch): Remove 'is_return' parameter.  It's
always true at the only non-recursive entry point.
(FlowBranching.CreateBranching) [BranchingType.Loop]: Return a
FlowBranchingBreakable.
(FlowBranchingLoop): Remove.
* statement.cs (Return.DoResolve): Update to changes.

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

18 years agoIn mcs:
Raja R Harinath [Wed, 3 May 2006 13:11:05 +0000 (13:11 -0000)]
In mcs:
Fix #76471, #76665
* flowanalysis.cs (FlowBranching.BranchingType.Embedded): New.
(FlowBranching.CreateBranching): Handle it: create a
FlowBranchingContinuable.
(FlowBranching.BreakCrossesExceptionBoundary): Remove.
(FlowBranching.AddContinueOrigin): Similar to AddBreakOrigin,
except that it handles the 'continue' command.
(FlowBranching.UsageVector.MergeOrigins): Rename from
MergeBreakOrigins.
(FlowBranchingContinuable): Similar to FlowBranchingBreakable,
except that it overrides AddContinueOrigin.
(FlowBranchingException): Override AddContinueOrigin, similar to
AddBreakOrigin.
* statement.cs (While.Resolve, Foreach.ArrayForeach.Resolve):
Create a new branching around the embedded statement.
(Do.Resolve, For.Resolve): Likewise.  Do reachability analysis for
control flow after the embedded statement.
(Continue.Resolve): Move all error checking to AddContinueOrigin.

In gmcs:
Fix #76471, #76665
* flowanalysis.cs (FlowBranching.BranchingType.Embedded): New.
(FlowBranching.CreateBranching): Handle it: create a
FlowBranchingContinuable.
(FlowBranching.BreakCrossesExceptionBoundary): Remove.
(FlowBranching.AddContinueOrigin): Similar to AddBreakOrigin,
except that it handles the 'continue' command.
(FlowBranching.UsageVector.MergeOrigins): Rename from
MergeBreakOrigins.
(FlowBranchingContinuable): Similar to FlowBranchingBreakable,
except that it overrides AddContinueOrigin.
(FlowBranchingException): Override AddContinueOrigin, similar to
AddBreakOrigin.
* statement.cs (While.Resolve, Foreach.ArrayForeach.Resolve):
Create a new branching around the embedded statement.
(Do.Resolve, For.Resolve): Likewise.  Do reachability analysis for
control flow after the embedded statement.
(Continue.Resolve): Move all error checking to AddContinueOrigin.

In tests:
* test-504.cs: New test from #76471.

In errors:
* cs0162-5.cs: New test from #76665.

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

18 years agoIn class/System.Web.Services/Test/System.Web.Services.Description:
Ankit Jain [Wed, 3 May 2006 11:04:36 +0000 (11:04 -0000)]
In class/System.Web.Services/Test/System.Web.Services.Description:

* ServiceDescriptionTest.cs (Extensions) New test.
(CheckExtensions):
(CheckXmlElement): New. Helper methods.
* test.wsdl: Test wsdl.

In class/System.Web.Services/System.Web.Services.Description:

* wsdl.genxs: Call ReadExtension for all unknown elements.
* ServiceDescription.cs (ServiceDescription.ReadExtension): Add
XmlDocument param. For NET_2_0, add any elements with no corresponding
extensions to the DocumentableItem.Extensions property.
(ServiceDescriptionSerializer.Serialize): Use
WriteRoot_ServiceDescription instead of WriteTree.
(ServiceDescriptionSerializer.Deserialize): Use
ReadRoot_ServiceDescription instead of ReadTree.
* ServiceDescriptionSerializerBase.cs: Regenerate.

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

18 years ago* mcs/flowanalysis.cs (FlowBranching.IsSwitch): Remove.
Raja R Harinath [Wed, 3 May 2006 10:53:41 +0000 (10:53 -0000)]
* mcs/flowanalysis.cs (FlowBranching.IsSwitch): Remove.
(FlowBranching.CreateBranching) [BranchingType.Switch]: Create a
FlowBranchingBreakable.
(FlowBranchingSwitch): Remove.
* gmcs/flowanalysis.cs: Likewise.

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

18 years ago2006-05-03 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 3 May 2006 10:46:13 +0000 (10:46 -0000)]
2006-05-03  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ProjectTest.cs, EngineTest.cs: Corrected BinPath once more.

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

18 years ago2006-05-03 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 3 May 2006 10:44:05 +0000 (10:44 -0000)]
2006-05-03  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Target.cs, TaskEngine.cs, BuildItemGroup.cs, MetadataReference.cs,
        Import.cs, ItemReference.cs, BuildItem.cs, BatchingImpl.cs,
        PropertyReference.cs, BuildProperty.cs: Changed Expression to
        OldExpression and changed To* functions to one ConvertTo ().
        * TaskEngine.cs: Fixed PublishOutput ().
        * OldExpression.cs: Added. It will be temporarily used before
        LiteralExpression will be written using Tokenizer.
        * Tokenizer.cs, Token.cs, ExpressionCollection.cs,
        ExpressionParseException.cs, LiteralExpression.cs: Added.

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

18 years ago2006-05-03 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 3 May 2006 10:29:05 +0000 (10:29 -0000)]
2006-05-03  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * MakeDir.cs: Removed warning.
        * Exec.cs: Fixed commmand execution.
        * ReadLinesFromFile.cs: Formatting.

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

18 years ago2006-05-03 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 3 May 2006 10:26:11 +0000 (10:26 -0000)]
2006-05-03  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ErrorTest.cs: Added.

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

18 years ago2006-05-03 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 3 May 2006 10:19:21 +0000 (10:19 -0000)]
2006-05-03  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ToolTask.cs: Fixed exit code.

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