mono.git
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

18 years ago2006-05-03 Jb Evain <jbevain@gmail.com>
Jb Evain [Wed, 3 May 2006 10:14:48 +0000 (10:14 -0000)]
2006-05-03  Jb Evain  <jbevain@gmail.com>

* MonoField.cs (GetValue,SetValue): throw a TargetException
when the field is non static and the target is null.

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

18 years ago2006-05-03 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 3 May 2006 09:24:04 +0000 (09:24 -0000)]
2006-05-03  Lluis Sanchez Gual  <lluis@novell.com>

* SerializationCodeGenerator.cs: Allow generating serializer for
  reading an XmlElement or XmlDocument as root element.
  Properly generate jagged array creation.

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

18 years agoIn mcs:
Raja R Harinath [Wed, 3 May 2006 09:13:05 +0000 (09:13 -0000)]
In mcs:
Fix test-503.cs
* statement.cs (Break.Resolve): Simplify.  Move responsibility for
error reporting to ...
* flowanalysis.cs (FlowBranching.AddBreakOrigin) ... this.
Rename from 'AddBreakVector'.  Add new location argument.  Return
a bool indicating whether the 'break' crosses an unwind-protect.
(FlowBranchingException.AddBreakOrigin): Add.
(FlowBranchingException.Merge): Propagate 'break's to surrounding
flowbranching after updating with the effects of the 'finally'
clause.
(FlowBranchingBreakable): New common base class for
FlowBranchingLoop and FlowBranchingSwitch.

In gmcs:
Fix test-503.cs
* statement.cs (Break.Resolve): Simplify.  Move responsibility for
error reporting to ...
* flowanalysis.cs (FlowBranching.AddBreakOrigin) ... this.
Rename from 'AddBreakVector'.  Add new location argument.  Return
a bool indicating whether the 'break' crosses an unwind-protect.
(FlowBranchingException.AddBreakOrigin): Add.
(FlowBranchingException.Merge): Propagate 'break's to surrounding
flowbranching after updating with the effects of the 'finally'
clause.
(FlowBranchingBreakable): New common base class for
FlowBranchingLoop and FlowBranchingSwitch.

In tests:
* test-503.cs: Distilled from System.Web.Hosting/ApplicationHost.cs.

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

18 years ago* mcs/statement.cs (Foreach.ArrayForeach.Resolve): Set barrier after
Raja R Harinath [Wed, 3 May 2006 07:34:11 +0000 (07:34 -0000)]
* mcs/statement.cs (Foreach.ArrayForeach.Resolve): Set barrier after
embedded statement.
(Foreach.CollectionForeach.Resolve): Remove extraneous flowbranching.
* gmcs/statement.cs: Likewise.

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

18 years ago2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Wed, 3 May 2006 03:50:12 +0000 (03:50 -0000)]
2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>

* TextBox.cs: Add MWFCategoryAttributes
* TextBoxBase.cs: Add MWFCategoryAttributes
* Form.cs: Add MWFCategoryAttributes

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

18 years ago2006-05-03 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Wed, 3 May 2006 03:34:38 +0000 (03:34 -0000)]
2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>

* Control.cs: Add MWFCategoryAttributes
* ScrollableControl.cs: Add MWFCategoryAttributes

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

18 years ago2006-05-02 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Wed, 3 May 2006 02:57:39 +0000 (02:57 -0000)]
2006-05-02  Jonathan Chambers  <jonathan.chambers@ansys.com>

* Marshal.cs: Implement BSTR methods

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

18 years agoAdded ChangeLog entries and license info (MIT X11)
Jonathan Chambers [Wed, 3 May 2006 02:56:40 +0000 (02:56 -0000)]
Added ChangeLog entries and license info (MIT X11)

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

18 years agoAdded BSTR support for Win32
Jonathan Chambers [Wed, 3 May 2006 02:54:45 +0000 (02:54 -0000)]
Added BSTR support for Win32

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

18 years ago2006-05-03 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Wed, 3 May 2006 01:12:13 +0000 (01:12 -0000)]
2006-05-03  Alexander Olk  <alex.olk@googlemail.com>

* ThemeWin32Classic.cs: Draw the ToolBar top border only if
  Divider is true. Fix a little glitch in PropertyToolBar
  drawing code

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

18 years ago2006-05-02 Robert Jordan <robertj@gmx.net>
Robert Jordan [Tue, 2 May 2006 23:00:47 +0000 (23:00 -0000)]
2006-05-02  Robert Jordan  <robertj@gmx.net>

* monoresgen.cs (TxtResourceReader/Writer): Support escapes
(\n, \r, \t, \\) in input and output. Fixes bug #78270 and
an internal TODO.

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

18 years ago2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 2 May 2006 22:19:18 +0000 (22:19 -0000)]
2006-05-02  Peter Dennis Bartok  <pbartok@novell.com>

* FontConverter.cs (ConvertFrom): Implemented it properly. Fixes #78269

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

18 years ago2006-05-02 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 2 May 2006 19:41:25 +0000 (19:41 -0000)]
2006-05-02  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs:
  - Dispose: Call base.Dispose, this causes the disposed event
    to be fired (and probably other, more important stuff)
  - SetVisibleCore: Set is_visible to true after creating the
    window so that the window still gets created invisible (if
    WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
    to generate a WM_ACTIVE message
* Form.cs: Call Dispose when we want to destroy the window, instead of
  just destroying the handle (Dispose will do that for us)
* XplatUIX11.cs:
  - RootWindow also needs a queue, so we can properly process the
    property change events from RootWindow (like Activate)
  - Generatic synthetic WM_ACTIVE message when the active window is
    being destroyed

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

18 years ago2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 2 May 2006 19:11:16 +0000 (19:11 -0000)]
2006-05-02  Sebastien Pouliot  <sebastien@ximian.com>

* PointF.cs: Add operators + and - between PointF and SizeF in the
2.0 profile (CSC 8.x can compile that, but sadly it doesn't show in as
missing in corcompare results).

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

18 years ago2006-05-02 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 2 May 2006 18:09:49 +0000 (18:09 -0000)]
2006-05-02  Chris Toshok  <toshok@ximian.com>

* SqlMembershipProvider.cs: 85% complete, maybe more.  The major
functionality should work.  Password retrieval (and encrypted
passwords in general) is untested.

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

18 years agoadd standalone test for sqlmembershipprovider
Chris Toshok [Tue, 2 May 2006 17:59:40 +0000 (17:59 -0000)]
add standalone test for sqlmembershipprovider

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

18 years ago2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 2 May 2006 15:35:00 +0000 (15:35 -0000)]
2006-05-02  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Added new test cases for [Begin|End]Container and
for Save and Restore methods.

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

18 years ago2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 2 May 2006 15:25:47 +0000 (15:25 -0000)]
2006-05-02  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsContainer.cs: Change the state from int to uint to match the
Save/Restore methods (and code). Removed unrequired stuff.

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

18 years ago2006-05-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 2 May 2006 15:25:34 +0000 (15:25 -0000)]
2006-05-02  Sebastien Pouliot  <sebastien@ximian.com>

* gdipFunctions.cs: Fixed wrappers for Gdip[Begin|End]Container[2][I]
* Graphics.cs: Fixed usage of fixed API ;-) Added MonoTODO on
BeginContainer methods that use rectangles and on TextContrast property
(all aren't currently supported in libgdiplus).

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

18 years agoIn mcs:
Raja R Harinath [Tue, 2 May 2006 14:39:12 +0000 (14:39 -0000)]
In mcs:
* statement.cs (Do.Resolve): If the loop is infinite, set the
barrier.
(While.Resolve, For.Resolve): Set a barrier after the embedded
statement.  There's no direct control flow that goes from the end
of the embedded statement to the end of the loop.
* flowanalysis.cs (FlowBranching.Infinite): Remove.
(FlowBranchingLoop.Merge): Don't look at 'Infinite'.  The changes
above ensure that the reachability is correctly computed.

In gmcs:
* statement.cs (Do.Resolve): If the loop is infinite, set the
barrier.
(While.Resolve, For.Resolve): Set a barrier after the embedded
statement.  There's no direct control flow that goes from the end
of the embedded statement to the end of the loop.
* flowanalysis.cs (FlowBranching.Infinite): Remove.
(FlowBranchingLoop.Merge): Don't look at 'Infinite'.  The changes
above ensure that the reachability is correctly computed.

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

18 years ago2006-05-02 Zac Bowling <zac@zacbowling.com>
Zac Bowling [Tue, 2 May 2006 14:05:18 +0000 (14:05 -0000)]
2006-05-02  Zac Bowling  <zac@zacbowling.com>

        * Mono.Cairo/Surface.cs: string should be byte[]
        * Mono.Cairo/Cairo.cs: string should be byte[]
        (Patch from Philipp Baer <phbaer@npw.net>)

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

18 years ago* mcs/flowanalysis.cs (Reachability.ResetBarrier): Remove.
Raja R Harinath [Tue, 2 May 2006 13:25:51 +0000 (13:25 -0000)]
* mcs/flowanalysis.cs (Reachability.ResetBarrier): Remove.
(UsageVector.MergeBreakOrigins): If the current path is
unreachable, treat it as if all parameters/locals are initialized.
(FlowBranchingLoop.Merge): Don't clear any barriers.  Handle
infinite loops before merging-in break origins.
* gmcs/flowanalysis.cs: Likewise.

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

18 years ago2006-05-02 Senganal T <tsenganal@novell.com>
Senganal T [Tue, 2 May 2006 13:25:26 +0000 (13:25 -0000)]
2006-05-02  Senganal T <tsenganal@novell.com>

* Test/System.Data/DataColumnTest2.cs : Test if IsNull (expr1,expr2) is parsed
correctly and if expr2 is returned when expr1 evaluates to null
* Mono.Data.SqlExpressions/Parser.jay : fix the rule for IsNull. Fixes bug #78254
* Mono.Data.SqlExpressions/Functions.cs :
- IsNullFunction.Eval : If expr evaluates to null or DBNull.Value, return the
default expression value.

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

18 years ago* mcs/flowanalysis.cs (Reachability.Meet): Simplify code handling 'returns'.
Raja R Harinath [Tue, 2 May 2006 11:53:27 +0000 (11:53 -0000)]
* mcs/flowanalysis.cs (Reachability.Meet): Simplify code handling 'returns'.
(Reachability.Reachable): Split part into ...
(Reachability.Unreachable): ... this.  Simplify.
(Reachability.IsUnreachable): Use 'Unreachable' instead.
* gmcs/flowanalysis.cs: Likewise.

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

18 years agoIn mcs:
Raja R Harinath [Tue, 2 May 2006 11:12:40 +0000 (11:12 -0000)]
In mcs:
* flowanalysis.cs (Reachability.SetReturnsSometimes): Remove.
(Reachability.SetThrowsSometimes): Likewise.
(FlowBranchingBlock.MergeTopBlock): Don't compare against
TriState.Always, use corresponding property.
* statement.cs (Lock.Resolve, Try.Resolve, Using.Resolve): Likewise.
(Block.Resolve): Likewise.  Remove some redundant checks.

In gmcs:
* flowanalysis.cs (Reachability.SetReturnsSometimes): Remove.
(Reachability.SetThrowsSometimes): Likewise.
(FlowBranchingBlock.MergeTopBlock): Don't compare against
TriState.Always, use corresponding property.
* statement.cs (Lock.Resolve, Try.Resolve, Using.Resolve): Likewise.
(Block.Resolve): Likewise.  Remove some redundant checks.

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

18 years ago* mcs/flowanalysis.cs (UsageVector.Throw): Set barrier too.
Raja R Harinath [Tue, 2 May 2006 05:23:18 +0000 (05:23 -0000)]
* mcs/flowanalysis.cs (UsageVector.Throw): Set barrier too.
(Reachability.Meet): Don't bother checking AlwaysThrows --
barrier is always set.
(FlowBranchingBlock.Merge): Likewise.

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

18 years ago2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 2 May 2006 02:40:07 +0000 (02:40 -0000)]
2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>

* LinkLabel.cs: Trigger a recalc of our label dimensions when
  bounds are changed

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

18 years agoudate monodoc command
Wade Berrier [Tue, 2 May 2006 02:34:42 +0000 (02:34 -0000)]
udate monodoc command

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

18 years ago(C) update
Miguel de Icaza [Tue, 2 May 2006 01:39:01 +0000 (01:39 -0000)]
(C) update

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

18 years agoSome profiler documentation
Miguel de Icaza [Tue, 2 May 2006 01:08:12 +0000 (01:08 -0000)]
Some profiler documentation

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

18 years agoSome more documentation
Miguel de Icaza [Tue, 2 May 2006 01:07:46 +0000 (01:07 -0000)]
Some more documentation

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

18 years agoAuthor headers
Miguel de Icaza [Tue, 2 May 2006 00:21:45 +0000 (00:21 -0000)]
Author headers

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

18 years ago2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 1 May 2006 23:21:07 +0000 (23:21 -0000)]
2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>

* ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
  for determining width and height (image might not be assigned if
  we're drawing an imagelist)

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

18 years ago2006-05-01 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Mon, 1 May 2006 22:06:39 +0000 (22:06 -0000)]
2006-05-01  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* attribute.cs: fixed_buffer_cache is declared only if  NET_2_0 is
defined, so it's references should also compile only for NET_2_0
(as occurs in mcs version)

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

18 years ago2006-05-01 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 1 May 2006 21:29:43 +0000 (21:29 -0000)]
2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
* XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
  height from system
* Theme.cs: No longer returns hardcoded menu height, instead calls
  new driver method
* Form.cs (OnLoad): Scaling happens before triggering Load events
  on MS (# 78257)

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

18 years agoRemove AOT docs
Miguel de Icaza [Mon, 1 May 2006 21:06:03 +0000 (21:06 -0000)]
Remove AOT docs

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

18 years agoMore documentation work, only a few more methods missing
Miguel de Icaza [Mon, 1 May 2006 21:01:49 +0000 (21:01 -0000)]
More documentation work, only a few more methods missing

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

18 years agoRevert this one
Miguel de Icaza [Mon, 1 May 2006 20:35:48 +0000 (20:35 -0000)]
Revert this one

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

18 years agoRemove from here
Miguel de Icaza [Mon, 1 May 2006 20:33:52 +0000 (20:33 -0000)]
Remove from here

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

18 years agoHide some more methods
Miguel de Icaza [Mon, 1 May 2006 20:32:46 +0000 (20:32 -0000)]
Hide some more methods

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

18 years agoHide mono_unlink_bblock as its not used anywhere else
Miguel de Icaza [Mon, 1 May 2006 20:07:40 +0000 (20:07 -0000)]
Hide mono_unlink_bblock as its not used anywhere else

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

18 years agohide another static one
Miguel de Icaza [Mon, 1 May 2006 19:51:13 +0000 (19:51 -0000)]
hide another static one

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

18 years agoRemove from header files
Miguel de Icaza [Mon, 1 May 2006 19:48:49 +0000 (19:48 -0000)]
Remove from header files

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

18 years agoMissed two uses
Miguel de Icaza [Mon, 1 May 2006 19:47:53 +0000 (19:47 -0000)]
Missed two uses

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

18 years agoCleanup namespace of published methods
Miguel de Icaza [Mon, 1 May 2006 19:45:23 +0000 (19:45 -0000)]
Cleanup namespace of published methods

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