mono.git
16 years agoUse the ResumableStatement infrastructure for MoveNext ()
Raja R Harinath [Sat, 5 Apr 2008 18:50:25 +0000 (18:50 -0000)]
Use the ResumableStatement infrastructure for MoveNext ()

* iterators.cs (Iterator.EmitMoveNext_NoResumePoints): New.
(Iterator.EmitMoveNext): Use 'resume_points'.  Get rid of
'old_resume_points'.  Move dispatcher upfront.
(Iterator.MarkYield): Mark the 'resume_point' of a Yield.
* statement.cs (ExceptionStatement.DoEmit): Emit a dispatcher if
in an enumerator.  This encodes the main fix in this patch series
-- we can only jump into the first instruction of a try from the
outside, but we want to emit try/finally regions in iterators and
resume in the middle of them.

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

16 years ago* statement.cs (ExceptionStatement.ResolveFinally): Move setting
Raja R Harinath [Sat, 5 Apr 2008 18:49:09 +0000 (18:49 -0000)]
* statement.cs (ExceptionStatement.ResolveFinally): Move setting
of NeedReturnLabel here.

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

16 years agoIntroduce a common point for emitting try/finally to IL
Raja R Harinath [Sat, 5 Apr 2008 14:56:08 +0000 (14:56 -0000)]
Introduce a common point for emitting try/finally to IL

* statement.cs (ExceptionStatement.DoEmit): New.  Combines all the
features of the various subclasses, which are now driven by ...
(ExceptionStatement.EmitPreTryBody): ... this and ...
(ExceptionStatement.EmitTryBody): ... this and the original EmitFinallyBody.
(TryFinally, Lock, Using, UsingTemporary, DisposableWrapper):
Remove DoEmit and update to follow above protocol.

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

16 years agoA cute little optimization to the generated Dispose method
Raja R Harinath [Sat, 5 Apr 2008 14:55:38 +0000 (14:55 -0000)]
A cute little optimization to the generated Dispose method

* statement.cs (ExceptionStatement.EmitForDispose): If all labels
of the dispatcher are the same, skip emitting the 'switch'.
* iterator.cs (Iterator.EmitDispose): Update to changes.

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

16 years agoClean up handling of 'using' statement
Raja R Harinath [Sat, 5 Apr 2008 14:55:06 +0000 (14:55 -0000)]
Clean up handling of 'using' statement

* statement.cs (UsingTemporary): New.  Carved out of ...
(Using): ... this.  Simplify drastically.  Handle exactly one variable.
* cs-parser.jay (using_statement): Split.  Create UsingTemporary
or Using as appropriate.  If there are multiple variable declared,
create nested Using statements.
(resource_acquisition): Kill.

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

16 years ago2008-04-05 Jordi Mas i Hernandez <jordimash@gmail.com>
Jordi Mas i Hernandez [Sat, 5 Apr 2008 14:19:40 +0000 (14:19 -0000)]
2008-04-05 Jordi Mas i Hernandez <jordimash@gmail.com>

* ScaledFont.cs: Adds class to encapsulate scaled font API
* Mono.Cairo.dll.sources: Adds new class
* Context.cs: Access to Scaled Fonts
* NativeMethods.cs: Add some missing scale_font APIs and fixes

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

16 years ago2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 5 Apr 2008 14:16:56 +0000 (14:16 -0000)]
2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridTextBox.cs: Fix background color of the buttons.
* PropertyGridView.cs: Make the entry less jumpy.

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

16 years ago2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 5 Apr 2008 13:41:00 +0000 (13:41 -0000)]
2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGrid.cs: Fix unused variable warnings.

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

16 years ago2008-04-05 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 5 Apr 2008 13:23:53 +0000 (13:23 -0000)]
2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridView.cs: Fix expansion via [+] misbehavior on
double-click. It expanded it once in the mouse down and then
again in the double-click handler.

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

16 years ago* statement.cs (ExceptionStatement.EmitForDispose): Use
Raja R Harinath [Sat, 5 Apr 2008 10:04:13 +0000 (10:04 -0000)]
* statement.cs (ExceptionStatement.EmitForDispose): Use
EmitFinallyBody, not EmitFinally.

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

16 years ago* flowanalysis.cs (FlowBranching.StealFinallyClauses): Remove.
Raja R Harinath [Sat, 5 Apr 2008 08:50:38 +0000 (08:50 -0000)]
* flowanalysis.cs (FlowBranching.StealFinallyClauses): Remove.
* iterator.cs: Update to changes.

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

16 years agoStart using the ResumableStatement infrastructure
Raja R Harinath [Sat, 5 Apr 2008 08:07:35 +0000 (08:07 -0000)]
Start using the ResumableStatement infrastructure

* statement.cs (ResumeableStatement.PrepareForDispose): New.
(ResumableStatement.EmitForDispose): New.
(ExceptionStatement): Override them.
* iterators.cs (Iterator.EmitDispose): Use PrepareForDispose and
EmitForDispose to create the body of the Dispose method.  Don't
use OldResumePoint.

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

16 years agoSome more refactoring to move resume-point collection into the Iterator
Raja R Harinath [Sat, 5 Apr 2008 08:07:08 +0000 (08:07 -0000)]
Some more refactoring to move resume-point collection into the Iterator

* iterator.cs (Iterator.AddResumePoint): Move here from ...
* statement.cs (Toplevel.AddResumePoint): ... here.
(Toplevel.MoveNextStatement.Resolve): Create FlowBranchingIterator.
* flowanalysis.cs (FlowBranchingIterator): New.
* codegen.cs (EmitContext): Update to changes.

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

16 years ago* mono-api-diff.cs: Output type for extra classes, to allow it to
Gert Driesen [Sat, 5 Apr 2008 07:31:37 +0000 (07:31 -0000)]
* mono-api-diff.cs: Output type for extra classes, to allow it to
show up on class status pages.

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

16 years ago* cormissing.css: Allow nested enums and parameters to be collapsed.
Gert Driesen [Sat, 5 Apr 2008 07:19:13 +0000 (07:19 -0000)]
* cormissing.css: Allow nested enums and parameters to be collapsed.

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

16 years ago2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 4 Apr 2008 22:52:17 +0000 (22:52 -0000)]
2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner,
TypeConverter and UITypeEditors.

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

16 years ago2008-04-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Apr 2008 22:17:19 +0000 (22:17 -0000)]
2008-04-05  Zoltan Varga  <vargaz@gmail.com>

* mini.c (check_for_method_verify): Remove the mscorlib comment since it is no
longer valid.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 21:59:42 +0000 (21:59 -0000)]
2008-04-04  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (check_for_method_verify): Enabling verification of
corlib if mono_verify_all is set. Bugs in the verifier preventing that
have been fixed.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 21:47:31 +0000 (21:47 -0000)]
2008-04-04 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_conversion): Improved error message to something
more meanfull.

* verify.c (check_is_valid_type_for_field_ops): Fix to work
with primitive types.

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

16 years agoMinor cleanups
Raja R Harinath [Fri, 4 Apr 2008 20:18:30 +0000 (20:18 -0000)]
Minor cleanups

* iterators.cs (Iterator.OldResumePoint): Rename from ResumePoint.
(Iterator.old_resume_points): Rename from 'resume_points'.
(Iterator.MoveNextStatement): Remove unused class.

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

16 years agoNew infrastructure for try/finally in iterators (still unused)
Raja R Harinath [Fri, 4 Apr 2008 20:18:03 +0000 (20:18 -0000)]
New infrastructure for try/finally in iterators (still unused)

* flowanalysis.cs (FlowBranching.AddResumePoint): New.
(FlowBranchingToplevel.AddResumePoint): Hook into
ToplevelBlock.AddResumePoint.
(FlowBranchingTryCatch): Move CS01626 and CS01631 checks here.
(FlowBranchingException): Hook into ExceptionBlock.AddResumePoint.
* statement.cs (ToplevelBlock.AddResumePoint): New.  Collect
resume points and assign program-counter values.
(ExceptionBlock.AddResumePoint): Collect resume points for
de-muxer at the top of try block.
* iterators.cs (Yield.CheckContext): Simplify.
(Yield.Resolve): Use FlowBranching.AddResumePoint.

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

16 years agoSome more refactoring
Raja R Harinath [Fri, 4 Apr 2008 20:17:36 +0000 (20:17 -0000)]
Some more refactoring

* flowanalysis.cs (FlowBranching.AddReturnOrigin): Change Location
argument to an ExitStatement.
(FlowBranchingException): Refactor saved origins code.
* statement.cs (ExitStatement): Update to cahges.
* iterator.cs (YieldBreak): Likewise.

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

16 years agoSome simple refactoring
Raja R Harinath [Fri, 4 Apr 2008 20:17:10 +0000 (20:17 -0000)]
Some simple refactoring

* statement.cs (ResumableStatement): New.  Common base class for
YieldReturn and ExceptionStatement.
(ExitStatement): New.  Common base class for Return and YieldBreak.
(Return): Update to changes.
* iterator.cs (YieldBreak): Likewise.
* lambda.cs (ContextualReturn): Likewise.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 19:02:56 +0000 (19:02 -0000)]
2008-04-04 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Added tail prefix checking. Marked icall
as unverifible.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 19:01:42 +0000 (19:01 -0000)]
2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>

* make_tail_call_test.sh: New test generator for
tail prefix.

* make_test.sh: Added tests using the new generator.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 18:32:59 +0000 (18:32 -0000)]
2008-04-04 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Fix the detection of branches to the middle
of an instruction.

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

16 years ago2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 4 Apr 2008 18:32:15 +0000 (18:32 -0000)]
2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>

* invalid_branch_middle_of_instruction.il: Recent
work on prefixes broke the verification for branching
in the middle of an instruction.

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

16 years ago* Mono.Mozilla/DOM/Element.cs,
Andreia Gaita [Fri, 4 Apr 2008 18:27:32 +0000 (18:27 -0000)]
* Mono.Mozilla/DOM/Element.cs,
* Mono.Mozilla/DOM/HTMLElement.cs,
* Mono.WebBrowser/DOM/IElement.cs: Implement ClientWidth, ClientHeight,
ScrollWidth, ScrollHeight, ScrollLeft, ScrollTop, OffsetHeight,
OffsetWidth, OffsetLeft, OffsetTop, OffsetParent, Disabled.

2008-04-04  Andreia Gaita <avidigal@novell.com>

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

16 years ago* Mono.Mozilla/DOM/Document.cs: Differentiate between html and non-html
Andreia Gaita [Fri, 4 Apr 2008 18:22:05 +0000 (18:22 -0000)]
* Mono.Mozilla/DOM/Document.cs: Differentiate between html and non-html
elements when creating the wrapper object for the active element, as
certain properties are only implemented in html elements.

2008-04-04  Andreia Gaita <avidigal@novell.com>

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

16 years ago* Mono.Mozilla/AsciiString.cs, Mono.Mozilla/UniString.cs: Fix for string
Andreia Gaita [Fri, 4 Apr 2008 18:19:11 +0000 (18:19 -0000)]
* Mono.Mozilla/AsciiString.cs, Mono.Mozilla/UniString.cs: Fix for string
getter cache, always mark the string as dirty when fetching the handle.

2008-04-04  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-04-04 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 4 Apr 2008 18:08:03 +0000 (18:08 -0000)]
2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: Visibility should be set synchronously,
so we must also redraw once it is and not rely on layouting or
other code to repaint.
[Fixes bug #339898]

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 17:18:47 +0000 (17:18 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* File.cs: Pretty up the file share exception with the path name.

2008-04-04  Dick Porter  <dick@ximian.com>

* FileTest.cs: Test moving a file when the access mode disallows
it.  Test from Eric Albright <albright@wesay.org>, see bug 377049.

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 17:17:32 +0000 (17:17 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* io.c (MoveFile): Check file shares before moving a file.  Fixes
bug 377049.

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 16:24:23 +0000 (16:24 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* error.c (errno_to_WSA): handle ENODEV.  Fixes the reopened part
of bug 324035.

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

16 years ago2008-04-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Apr 2008 15:42:28 +0000 (15:42 -0000)]
2008-04-04  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c (throw_exception): Unify the win32/non-win32 cases, save
caller saved registers as well.

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

16 years ago2008-04-04 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 4 Apr 2008 14:48:39 +0000 (14:48 -0000)]
2008-04-04  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewCell.cs: Respect DataGridView.GridColor.

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

16 years agoShut gcc up
Dick Porter [Fri, 4 Apr 2008 14:41:05 +0000 (14:41 -0000)]
Shut gcc up

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

16 years ago2008-04-04 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 4 Apr 2008 14:20:59 +0000 (14:20 -0000)]
2008-04-04  Dick Porter  <dick@ximian.com>

* processes.c (GetModuleInformation):
* versioninfo.h:
* versioninfo.c: 64bit fixes

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

16 years ago2008-04-04 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Fri, 4 Apr 2008 13:56:07 +0000 (13:56 -0000)]
2008-04-04  Bill Holmes  <billholmes54@gmail.com>

* runburg.bat, runmdesc.bat:  Reverting back to r97888.  The PATH was correct before.

Contributed under MIT/X11 license.

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

16 years agoFix #377028
Raja R Harinath [Fri, 4 Apr 2008 10:55:58 +0000 (10:55 -0000)]
Fix #377028

* ecore.cs (Expression.ResolveAsTypeStep): If '!silent' attempt to
emit a meaningful error message.

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

16 years agoremove gcs0019-9.cs
Raja R Harinath [Fri, 4 Apr 2008 10:55:40 +0000 (10:55 -0000)]
remove gcs0019-9.cs

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

16 years ago2008-04-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Apr 2008 10:26:38 +0000 (10:26 -0000)]
2008-04-04  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c (mono_arch_get_restore_context): Restore most caller
saved registers as well.

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

16 years agoFix #324765, #319508
Raja R Harinath [Fri, 4 Apr 2008 08:19:51 +0000 (08:19 -0000)]
Fix #324765, #319508

* flowanalysis.cs (VariableInfo.IsEverAssigned): New.
(VariableInfo.SetAssigned): Set it.
* statement.cs (Block.UsageWarning): Use 'IsEverAssigned' to
determine if CS0219 or CS0168 is appropriate.  Don't use
flow-analysis information.
(Block.Resolve): Use ec.EndFlowBranching, not ec.DoEndFlowBranching.
* codegen.cs (EmitContext.DoEndFlowBranching): Kill.  Inline into ...
(EmitContext.EndFlowBranching): ... this.

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

16 years agoadd gtest-380.cs
Raja R Harinath [Fri, 4 Apr 2008 08:19:33 +0000 (08:19 -0000)]
add gtest-380.cs

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

16 years agoFix nunit failures
Raja R Harinath [Fri, 4 Apr 2008 08:19:11 +0000 (08:19 -0000)]
Fix nunit failures

* String.cs (EndsWith) [CultureInfo variant]: Handle null 'culture'.
(StartsWith, EndsWith, IndexOf, LastIndexOf) [StringComparison variant]:
Throw exception on invalid StringComparison.

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 23:04:24 +0000 (23:04 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Invalidate when the alpha channel is less than 255,
not only when control is transparent.

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 22:44:42 +0000 (22:44 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
Implement some painting convenience methods that threw NIEX.

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

16 years ago2008-04-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 3 Apr 2008 21:11:56 +0000 (21:11 -0000)]
2008-04-03 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Implemented verification of volatile. and
unaligned. prefix. Check if a type is valid after retrieving it.

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 21:04:29 +0000 (21:04 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
* DataGridViewLinkCell.cs: Implement.

2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewLinkCellTest.cs: Add.

2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms_test.dll.sources: Add DataGridViewLinkCellTest.cs.

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 18:34:54 +0000 (18:34 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* CollectionEditor.cs:
  - Handle removing multiple items at once.
  - Select the previous item after removal of other(s).

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 17:38:52 +0000 (17:38 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Report the conversion exception error description.
[Fixes bug #375792]

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

16 years ago2008-04-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 3 Apr 2008 16:52:08 +0000 (16:52 -0000)]
2008-04-03  Jonathan Pobst  <monkey@jpobst.com>

* TimerTest.cs: Disable a finicky test that occasionally fails.

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 16:50:15 +0000 (16:50 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridView.cs: Do not scroll to item on resize.
[Fixes bug #375789]

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

16 years ago2008-04-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Apr 2008 16:39:18 +0000 (16:39 -0000)]
2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>

* CollectionEditor.cs: The display name of an object in the
list is not static. It can dynamically change when the object
get's modified.
[Fixes bug #375786]

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

16 years ago2008-04-03 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Thu, 3 Apr 2008 15:27:00 +0000 (15:27 -0000)]
2008-04-03  Juraj Skripsky  <js@hotfeet.ch>

* Attachment.cs (InitName): Use Path.GetFileName instead of Substring hack.
Fixes bug #366947.

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

16 years ago2008-04-03 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 3 Apr 2008 15:26:53 +0000 (15:26 -0000)]
2008-04-03  Dick Porter  <dick@ximian.com>

* DirectoryTest.cs: Enable tests now that bug 346123 is fixed.

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

16 years ago2008-04-03 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 3 Apr 2008 15:25:38 +0000 (15:25 -0000)]
2008-04-03  Dick Porter  <dick@ximian.com>

* io-portability.c (_wapi_basename, _wapi_dirname): Only turn \
into / when MONO_IOMAP is in effect.  Fixes bug 346123.

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

16 years agoNew test.
Marek Safar [Thu, 3 Apr 2008 14:49:06 +0000 (14:49 -0000)]
New test.

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

16 years ago2008-04-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 3 Apr 2008 14:48:56 +0000 (14:48 -0000)]
2008-04-03  Marek Safar  <marek.safar@gmail.com>

* class.cs, typemanager.cs: Emit volatile field with IsVolatile modifier.

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

16 years agoTARGET_JVM: Add msbuild project files & test scripts.
Sasha Kogan [Thu, 3 Apr 2008 14:28:08 +0000 (14:28 -0000)]
TARGET_JVM: Add msbuild project files & test scripts.

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

16 years agoFix minor IL regression
Raja R Harinath [Thu, 3 Apr 2008 14:22:26 +0000 (14:22 -0000)]
Fix minor IL regression

* statement.cs (TryCatch..ctor): Add 'inside_try_finally' argument.
(TryCatch.DoEmit): Use it to avoid creating another ExceptionBlock.
* cs-parser.jay (try_statement): Update to changes.

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

16 years ago2008-04-03 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 3 Apr 2008 13:22:47 +0000 (13:22 -0000)]
2008-04-03  Dick Porter  <dick@ximian.com>

* timefuncs.c (GetTickCount): Use mono_msec_ticks(), see bug
347476.

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

16 years agoNew test.
Marek Safar [Thu, 3 Apr 2008 10:42:56 +0000 (10:42 -0000)]
New test.

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

16 years ago2008-04-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 3 Apr 2008 10:42:43 +0000 (10:42 -0000)]
2008-04-03  Marek Safar  <marek.safar@gmail.com>

A fix for bug #376508
* convert.cs, expression.cs: Fixed difference between ImplicitConversion and
ImplicitConversionExists.

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

16 years agoMore tests.
Marek Safar [Thu, 3 Apr 2008 10:06:18 +0000 (10:06 -0000)]
More tests.

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

16 years agoNew test.
Marek Safar [Thu, 3 Apr 2008 10:05:31 +0000 (10:05 -0000)]
New test.

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

16 years ago2008-04-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 3 Apr 2008 10:05:05 +0000 (10:05 -0000)]
2008-04-03  Marek Safar  <marek.safar@gmail.com>

* expression.cs (Binary): Added remaining binary operators to expression
tree builder.

* nullable.cs: Optimize shift with null argument.

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

16 years agoMD reformating issues
Marek Safar [Thu, 3 Apr 2008 10:01:13 +0000 (10:01 -0000)]
MD reformating issues

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

16 years ago * BindingContextTest.cs: New test for ICurrencyManagerProvider
Carlos Alberto Cortez [Thu, 3 Apr 2008 01:33:12 +0000 (01:33 -0000)]
* BindingContextTest.cs: New test for ICurrencyManagerProvider
instances passed as data sources.

2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago * BindingContext.cs: When retrieving a BindingManagerBase, if the
Carlos Alberto Cortez [Thu, 3 Apr 2008 01:32:16 +0000 (01:32 -0000)]
* BindingContext.cs: When retrieving a BindingManagerBase, if the
dataSource parameter is ICurrencyManagerProvider, then return
ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
instead of creating a new one.

2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years agoForgot to disable the font dependent tests before committing.
Jonathan Pobst [Wed, 2 Apr 2008 23:54:15 +0000 (23:54 -0000)]
Forgot to disable the font dependent tests before committing.

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

16 years ago2008-04-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Apr 2008 23:35:37 +0000 (23:35 -0000)]
2008-04-02  Rodrigo Kumpera <rkumpera@novell.com>

* mono-profiler-logging.c: Fix the arm build. G_BREAKPOINT() does
a "raise(SIGTRAL)" and in some platforms <signal.h> must be included.

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

16 years agoMake easier to track
Miguel de Icaza [Wed, 2 Apr 2008 23:24:08 +0000 (23:24 -0000)]
Make easier to track

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

16 years agoAdd uncommited patch
Miguel de Icaza [Wed, 2 Apr 2008 23:23:43 +0000 (23:23 -0000)]
Add uncommited patch

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

16 years agoRevert this patch, it regressed the compiler and System.Web
Miguel de Icaza [Wed, 2 Apr 2008 23:21:34 +0000 (23:21 -0000)]
Revert this patch, it regressed the compiler and System.Web

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

16 years ago2008-04-03 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 2 Apr 2008 22:53:23 +0000 (22:53 -0000)]
2008-04-03  Marek Habersack  <mhabersack@novell.com>

* DataListTest.cs: added test for bug #376519
(SelectedValue_SelectedIndex

2008-04-03  Marek Habersack  <mhabersack@novell.com>

* DataList.cs: use the value of SelectedIndex, not selectedIndex,
to return the key value in the SelectedValue property. Fixes bug
#376519. Patch from Sergey Kuleshov <svyatogor@gmail.com>, thanks

2008-04-03  Marek Habersack  <mhabersack@novell.com>

* HtmlFormTest.cs: indirect test for bug #376352 is 2.0+ only.

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

16 years ago2008-04-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Apr 2008 22:26:03 +0000 (22:26 -0000)]
2008-04-02 Rodrigo Kumpera <rkumpera@novell.com>

* make_prefix_test.sh: New test generator for
instruction prefix.

* make_testS: Added tests using the new generator.

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

16 years ago2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 2 Apr 2008 21:48:22 +0000 (21:48 -0000)]
2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSourceTest.cs: New test for type instances as data sources.

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

16 years ago2008-04-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 2 Apr 2008 21:46:30 +0000 (21:46 -0000)]
2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Implement support for Type instances as
DataSource.

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

16 years ago2008-04-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 2 Apr 2008 21:29:36 +0000 (21:29 -0000)]
2008-04-02  Marek Habersack  <mhabersack@novell.com>

* HtmlFormTest.cs: added an indirect test for bug #376352
(HttpRequest.QueryStringRaw internal property) - Mono only.

2008-04-02  Marek Habersack  <mhabersack@novell.com>

* Page.cs: make SetContext internal (used from tests).

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

16 years ago* statement.cs (TryFinally.need_exc_block): Delete.
Raja R Harinath [Wed, 2 Apr 2008 20:37:13 +0000 (20:37 -0000)]
* statement.cs (TryFinally.need_exc_block): Delete.
(TryFinally): Update to changes.

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

16 years ago2008-04-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 2 Apr 2008 20:16:37 +0000 (20:16 -0000)]
2008-04-02  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Minor cleanups and call CellMouseUp.
* DataGridViewCell.cs: Make some painting routines internally virtual.
* DataGridViewButtonCell.cs: Implement.

2008-04-02  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewButtonCellTest.cs: Add.

2008-04-02  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms_test.dll.sources: Add DataGridViewButtonCellTest.cs.

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

16 years ago2008-04-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Apr 2008 20:01:31 +0000 (20:01 -0000)]
2008-04-02  Atsushi Enomoto <atsushi@ximian.com>

* XsdParticleValidationState.cs : a choice with only empty particle
  children is emptiable. Fixed bug #376395.

* XsdValidatingReaderTests.cs : added test for bug #376395.

* 376395.xml, 376395.xsd : new test files.

* Makefile : extra distfiles (376395.xml, 376395.xsd).

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

16 years agoNow all ExceptionStatements are unconditional
Raja R Harinath [Wed, 2 Apr 2008 19:49:55 +0000 (19:49 -0000)]
Now all ExceptionStatements are unconditional

* statement.cs (CollectionForeach.DisposableWrapper): New.
Extract out the try/finally code into a new wrapper.
(CollectionForeach.Resolve): Use it to simplify the code.

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

16 years agoStart at simplifying ExceptionStatement semantics a bit
Raja R Harinath [Wed, 2 Apr 2008 19:49:11 +0000 (19:49 -0000)]
Start at simplifying ExceptionStatement semantics a bit

* statement.cs (TryCatch, TryFinally): Split 'Try' into two pieces.
* cs-parser.jay (try_statement): Update to changes.
(opt_catch_clauses): Remove.
* flowanalysis.cs: Update to changes.
(FlowBranching.BranchingType.TryCatch): New.
(FlowBranchingTryCatch): New.

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

16 years agoMinor cleanups in flowanalysis.cs
Raja R Harinath [Wed, 2 Apr 2008 19:48:29 +0000 (19:48 -0000)]
Minor cleanups in flowanalysis.cs

* flowanalysis.cs (FlowBranching.BranchingType.SwitchSection): Kill.
(FlowBranching.CreateBranching): Update to changes.
(FlowBranchingBlock.AddSibling): Add sanity check.
* codegen.cs (EmitContext.StartFlowBranching) <Block variant>:
Update to changes.

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

16 years ago* iterators.cs (Iterator.MarkFinally): Remove.
Raja R Harinath [Wed, 2 Apr 2008 19:47:46 +0000 (19:47 -0000)]
* iterators.cs (Iterator.MarkFinally): Remove.
* statement.cs (ExceptionStatement): Update to changes.

This introduces a slight regression into already broken semantics.
This will be fixed properly when the final fix for #324708 is applied.

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

16 years agoAdd support for skipping over finally blocks at runtime. First
Raja R Harinath [Wed, 2 Apr 2008 19:47:07 +0000 (19:47 -0000)]
Add support for skipping over finally blocks at runtime.  First
in a series to fix #324708

* iterators.cs (Iterator.SkipFinally): New LocalBuilder.
(Iterator.EmitMoveNext): Initialize it.
* statement.cs (ExceptionStatement.EmitFinally): Use it to emit a
branch over the body of the 'finally' clause.

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

16 years agoAvoid lopsided use of Foo/DoFoo names
Raja R Harinath [Wed, 2 Apr 2008 19:46:29 +0000 (19:46 -0000)]
Avoid lopsided use of Foo/DoFoo names

* statement.cs (ExpressionStatement.EmitFinallyBody):
Rename from EmitFinally.
(ExpressionStatement.EmitFinally): Rename from DoEmitFinally.
* iterator.cs: Update to changes.

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

16 years ago* String.cs (IndexOfOrdinalUnchecked): Fix crasher.
Raja R Harinath [Wed, 2 Apr 2008 17:53:55 +0000 (17:53 -0000)]
* String.cs (IndexOfOrdinalUnchecked): Fix crasher.

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

16 years ago2008-04-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Apr 2008 17:26:39 +0000 (17:26 -0000)]
2008-04-02 Rodrigo Kumpera <rkumpera@novell.com>

* make_type_constraint_test.sh: New test generator for
constraints on generic type arguments.

* make_testS: Added tests using the new generator.

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

16 years ago2008-04-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 2 Apr 2008 17:18:10 +0000 (17:18 -0000)]
2008-04-02  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: make sure QueryStringRaw is always returned with
a leading '?' and that we return something meaningful even if the
url components weren't collected before. Fixes bug #376352

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:11:25 +0000 (17:11 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ProxyAttribute.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:10:51 +0000 (17:10 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ClientSponsor.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:10:19 +0000 (17:10 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* IEnumVARIANT.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:09:39 +0000 (17:09 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* _EventInfo.cs
* _FieldInfo.cs
  * _MemberInfo.cs
* _MethodBase.cs
* _MethodInfo.cs
* _PropertyInfo.cs
* _Type.cs
* ArrayWithOffset.cs
* BestFitMappingAttribute.cs
* Marshal.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:07:49 +0000 (17:07 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* ReliabilityContractAttribute.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:07:17 +0000 (17:07 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* IndexerNameAttribute.cs
* MethodImplAttribute.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:06:33 +0000 (17:06 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* IReflect.cs
* MethodInfo.cs: Fix parameter names

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

16 years ago2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Wed, 2 Apr 2008 17:05:37 +0000 (17:05 -0000)]
2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>

* SymbolToken.cs: Fix parameter names

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