mono.git
15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 16:51:47 +0000 (16:51 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeWin32Classic.cs: Implemented minimized window border width properly,
in ManagedWindowBorderWidth.

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

15 years agoFixes #326182
Veerapuram Varadhan [Thu, 10 Jul 2008 16:46:48 +0000 (16:46 -0000)]
Fixes #326182

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 15:46:21 +0000 (15:46 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* InternalWindowManager.cs: Change MouseMove to take a point, so
we can use the same point later on.
* MdiWindowManager.cs: Store point sent to MouseMove so we can
later reset to it.  On Windows, the Cursor.Position had already
changed by the time we were resetting to it.
[Fixes bug #363239]

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 15:18:49 +0000 (15:18 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
are inactive.
* ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
user requested it.
[Fixes bug #398686]

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

15 years ago2008-07-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 10 Jul 2008 15:13:54 +0000 (15:13 -0000)]
2008-07-10  Jonathan Pobst  <monkey@jpobst.com>

* MdiWindowManager.cs: Double-clicking on the title bar should not
maximize a MDI form if MaximizeBox = false.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 14:56:52 +0000 (14:56 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Fixed a warning.

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

15 years agoNew test.
Marek Safar [Thu, 10 Jul 2008 14:48:26 +0000 (14:48 -0000)]
New test.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 14:46:36 +0000 (14:46 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Fixed warnings and formatted.
* GtkPlus.cs: Fixed warnings and formatted.

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

15 years agoNew tests.
Marek Safar [Thu, 10 Jul 2008 14:45:59 +0000 (14:45 -0000)]
New tests.

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 14:45:43 +0000 (14:45 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

A fix for bug #369670
* linq.cs, statement.cs: Use explicit block for query expressions variables.

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 14:38:47 +0000 (14:38 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

* report.cs, ecore.cs: Flush recorder only when silent mode is off.

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

15 years ago2008-07-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Jul 2008 14:32:47 +0000 (14:32 -0000)]
2008-07-10  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSerializationWriter.cs : more helpful error message.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 14:11:55 +0000 (14:11 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* FormTest.cs: Enabled the MinimizedWindowSize test and made it "NotWorking".

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

15 years agoFix bug #314902
Raja R Harinath [Thu, 10 Jul 2008 13:33:49 +0000 (13:33 -0000)]
Fix bug #314902
* mcs/cs-tokenizer.cs (is_punct): If a generic lookahead is looking
only one '>', and finds a '>>', abort the generic lookahead.
* tests/gtest-402.cs: New test from #314903.

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

15 years agoChange behavior of HyperLinkField bound field key should be case insensitive.
Roei Erez [Thu, 10 Jul 2008 13:14:58 +0000 (13:14 -0000)]
Change behavior of HyperLinkField bound field key should be case insensitive.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 12:56:32 +0000 (12:56 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
implementation produces a better result.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 12:41:57 +0000 (12:41 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
windows.

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

15 years agoNew tests.
Marek Safar [Thu, 10 Jul 2008 11:27:23 +0000 (11:27 -0000)]
New tests.

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 11:25:54 +0000 (11:25 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

A fix for bug #319902
* cs-tokenizer.cs: Always look-ahed for `>='  when tokenizing `>'.

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

15 years agoDifferentiate between IPostBackEventHandler that was registered by the user, and...
Roei Erez [Thu, 10 Jul 2008 11:17:42 +0000 (11:17 -0000)]
Differentiate between IPostBackEventHandler that was registered by the user, and one that was given as post parameter, so that in case ther post data may trigger both IPostBackEventHandler and IPostBackDataHandler, only the IPostBackDataHandler is actually triggered

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

15 years ago2008-07-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 10 Jul 2008 10:25:17 +0000 (10:25 -0000)]
2008-07-10  Marek Safar  <marek.safar@gmail.com>

A fix for bug #406371
* statement.cs: Moved EmitSymbolInfo to Block.

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

15 years ago2008-07-10 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 10 Jul 2008 07:53:11 +0000 (07:53 -0000)]
2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>

* Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
cannot be used from the ThemeEngine constructor.
* ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
Application.VisualStylesEnabled because it does not work on X11.
* ThemeElements.cs: Changed the XplatUI.ThemesEnabled check to
Application.VisualStylesEnabled because it does not work on X11.
* GtkPlus.cs, VisualStylesGtkPlus.cs: Implemented check box
size. Extended check box painting to allow all cases.
* VisualStyleElement.cs: Added some constants.
* VisualStylesEngine.cs: Now requires environment variable
MONO_VISUAL_STYLES to be set to GtkPlus in order to select the GTK+
implementation.

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

15 years ago * DataBinder.cs (GetDataItem): Commited stupid code.
Rodrigo Kumpera [Thu, 10 Jul 2008 01:53:17 +0000 (01:53 -0000)]
* DataBinder.cs (GetDataItem): Commited stupid code.

2008-07-09  Rodrigo Kumpera  <rkumpera@novell.com>

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

15 years ago2008-07-09 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 10 Jul 2008 01:52:47 +0000 (01:52 -0000)]
2008-07-09  Rodrigo Kumpera  <rkumpera@novell.com>

* DataBinder.cs (GetDataItem): Use a per-thread cache for
property lookup.

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

15 years ago2008-07-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 10 Jul 2008 00:53:32 +0000 (00:53 -0000)]
2008-07-10  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c: Get rid of whitespace in the generated assembly file to
speed up the assembler.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 21:56:15 +0000 (21:56 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.h tramp-arm.c exceptions-arm.c aot-compiler.c: Beginnings of aot-only
support.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 21:47:16 +0000 (21:47 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* scripts/patch-quiet.sh: Another try to fix this on osx.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 21:38:44 +0000 (21:38 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c: Move the soft float handling macros a bit earlier, add
NEW_TEMPSTORE_SOFT_FLOAT macro, fix warnings, add soft-float support in one
place.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 20:28:26 +0000 (20:28 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Add prototype for mono_arch_fixup_jinfo.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 20:22:43 +0000 (20:22 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* scripts/patch-quiet.sh: Use \\t to encode \t.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 19:57:29 +0000 (19:57 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* scripts/patch-quiet.sh: Remove a stray \t.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 19:31:58 +0000 (19:31 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mono-codeman.c (mono_code_manager_new): Initialize the read-only field.

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

15 years ago* configure.in (mono_cv_sizeof_sunpath): Rename cacheval from
Raja R Harinath [Wed, 9 Jul 2008 18:49:40 +0000 (18:49 -0000)]
* configure.in (mono_cv_sizeof_sunpath): Rename cacheval from
'cv_mono_sizeof_sunpath' to placate autoconf.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 18:37:38 +0000 (18:37 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): In aot-only mode, set the root domain code manager to
read-only to help catch code allocation requests.

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

15 years ago2008-07-09 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 9 Jul 2008 18:36:32 +0000 (18:36 -0000)]
2008-07-09  Jonathan Pobst  <monkey@jpobst.com>

* StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
that we did not always check for, as well as fixes to the IList
implementations.  [Fixes bug #402703]

2008-07-09  Jonathan Pobst  <monkey@jpobst.com>

* StatusBarTest.cs: Tests from Andy Hume for StatusBarPanelCollection.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 18:36:10 +0000 (18:36 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mono-codeman.c (mono_code_manager_set_read_only): New helper function to
set the code manager to read-only status.
(mono_code_manager_reserve_align): Assert if the code manager is read only.

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

15 years ago* configure.in (enable_quiet_build): Work better on a non-srcdir build.
Raja R Harinath [Wed, 9 Jul 2008 18:35:13 +0000 (18:35 -0000)]
* configure.in (enable_quiet_build): Work better on a non-srcdir build.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 18:26:06 +0000 (18:26 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c inssel.brg aot-compiler.c: Make the use of IMT runtime configurable,
and turn it off when using --aot-only or when compiling with --aot=full.

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

15 years ago2008-07-09 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 9 Jul 2008 17:20:29 +0000 (17:20 -0000)]
2008-07-09  Marek Habersack  <mhabersack@novell.com>

* ConfigurationManager.cs: implemented a work-around for
OpenExeConfiguration ("") not working with ASP.NET apps properly.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 16:21:11 +0000 (16:21 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_resolve_patch_target): In aot-only mode, allocate the
jump table for switches from the normal domain mempool, not the code
manager.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 16:08:38 +0000 (16:08 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (get_unbox_trampoline): New function to return an
unbox trampoline which handles aot-only mode too.

* aot-runtime.c (mono_aot_get_unbox_trampoline): New function to lookup
an AOTed unbox trampoline.

* aot-compiler.c (emit_trampolines): Emit unbox trampolines.

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

15 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 15:53:30 +0000 (15:53 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* IDeviceContext.cs: Added Dispose.

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

15 years agoRemove stray Console.WriteLine
Veerapuram Varadhan [Wed, 9 Jul 2008 15:45:53 +0000 (15:45 -0000)]
Remove stray Console.WriteLine

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

15 years ago2008-07-09 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 9 Jul 2008 15:43:38 +0000 (15:43 -0000)]
2008-07-09  Bill Holmes  <billholmes54@gmail.com>

* wapihandles.c: Fixing MSVC builds.  Include statement changed from <> to ""

Contributed under MIT/X11 license.

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

15 years ago2008-07-09 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 9 Jul 2008 15:39:38 +0000 (15:39 -0000)]
2008-07-09  Bill Holmes  <billholmes54@gmail.com>

* mini.c (mono_codegen):  Allocate space at the end of the code block and store
  the unwind information for the method at the end of the allocated block.

* mini-amd64.h: Added declarations for the unwind routines and adding field to
  MonoCompileArch to hold the unwind info for SEH on Winx64

* mini-amd64.c (mono_arch_emit_prolog): Calls to the unwind routines added to store
  frame pointer info for the method being compiled.

* exceptions-amd64.c (mono_arch_get_throw_corlib_exception): Added a stack adjustment before
  the call to mono_exception_from_token.

* exceptions-amd64.c: Added mono_arch_unwindinfo* implementations.  This code is responsible
  storing the method prolog information in a format that the Winx64 SEH can understand.  This
  information is stored a the end of the method block because it is all 32-bit offset based.

Contributed under MIT/X11 license.

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

15 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 15:38:21 +0000 (15:38 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* Control.cs: Added OnSizeInitializedOrChanged.
* Form.cs: OnLoadInternal: Added a call to
Control.OnSizeInitializedOrChanged.
* InternalWindowManager.cs:
 * HandleTitleBarMouseMove: No longer invalidates the parent window.
 * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
 * TitleButton: Added Entered.
 * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
* MdiWindowManager.cs:
 * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
 move over the maximized title buttons causes a change.
 * IsActive: Can now be called before the window is added to a MDI parent.
* Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
* ThemeVisualStyles.cs: Implemented proper managed window rendering.
* ThemeWin32Classic.cs:
 * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
 * DrawTitleButton takes a new form parameter.
 * Added ManagedWindowTitleButtonHasHotElementStyle,
 ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.

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

15 years agoFixes ##407208 - Validate for IP before calling DNS.GetHostEntry()
Veerapuram Varadhan [Wed, 9 Jul 2008 14:36:11 +0000 (14:36 -0000)]
Fixes ##407208 - Validate for IP before calling DNS.GetHostEntry()

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 14:00:28 +0000 (14:00 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Remove duplicate definitions of the mini_wapi_ functions.

* wapihandles.c: Fix warnings.

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

15 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 12:00:46 +0000 (12:00 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (load_aot_module): Add a missing error message in aot-only
mode.

* mini-trampolines.c (mono_create_jit_trampoline_in_domain): Avoid calling
mono_jit_compile_method in aot-only mode since that calls the type
initializer.

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

15 years agoNew tests.
Marek Safar [Wed, 9 Jul 2008 11:46:19 +0000 (11:46 -0000)]
New tests.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 11:46:07 +0000 (11:46 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* ecore.cs: Report better error for extension method overload failures.

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

15 years ago2008-07-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Jul 2008 10:52:10 +0000 (10:52 -0000)]
2008-07-09  Atsushi Enomoto  <atsushi@ximian.com>

* MapCodeGenerator.cs : use explicit element name for explicitly added
  XmlElementAttribute. (exposed by some product from some company.)

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 10:33:58 +0000 (10:33 -0000)]
New test.

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 10:33:23 +0000 (10:33 -0000)]
New test.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 10:33:12 +0000 (10:33 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* expression.cs (Is): No need to box reference values.

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

15 years agoNew tests.
Marek Safar [Wed, 9 Jul 2008 09:36:29 +0000 (09:36 -0000)]
New tests.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 09:35:43 +0000 (09:35 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

* class.cs: Use event resolve context when initializing CreateEmitContext.

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

15 years agoNew test.
Marek Safar [Wed, 9 Jul 2008 08:29:49 +0000 (08:29 -0000)]
New test.

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

15 years ago2008-07-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 9 Jul 2008 08:29:28 +0000 (08:29 -0000)]
2008-07-09  Marek Safar  <marek.safar@gmail.com>

A fix for bug #394436
* anonymous.cs, class.cs, expression.cs, lambda.cs: Emit correctly extension
method used inside expression trees. Added more LINQ to expression tree
conversions.

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

16 years ago2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 9 Jul 2008 07:19:02 +0000 (07:19 -0000)]
2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeEngine.cs: ThemeVisualStyles is now selected if
Application.EnableVisualStyles has been called, even if the current system
configuration does not support rendering with Visual Styles.
* ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
Styles should not be used.
* ThemeElements.cs: ThemeElementsVisualStyles is now selected if
Application.EnableVisualStyles has been called, even if the current system
configuration does not support rendering with Visual Styles.
* TabControlPainter.cs, ToolStripPainter.cs: Now falls back to the default
implementation when Visual Styles should not be used.

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

16 years ago2008-07-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 9 Jul 2008 00:29:12 +0000 (00:29 -0000)]
2008-07-09  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_create_delegate_trampoline): Avoid calling
get_delegate_invoke_impl in aot-only mode.

* mini.c (mono_global_codeman_reserve): Reenable the aot-only check.

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

16 years ago2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Tue, 8 Jul 2008 22:07:07 +0000 (22:07 -0000)]
2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>

* FormTest.cs: Disabled the MinimizedWindowSize test.

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

16 years ago2008-07-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 8 Jul 2008 21:53:05 +0000 (21:53 -0000)]
2008-07-08  Jonathan Pobst  <monkey@jpobst.com>

* ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
ComboBox in FormsTest.

2008-07-08  Jonathan Pobst  <monkey@jpobst.com>

* ComboBoxTest.cs: Test showing PreferredHeight is independent of
ItemHeight.

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

16 years ago2008-07-08 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 8 Jul 2008 21:29:06 +0000 (21:29 -0000)]
2008-07-08  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* Char.cs: Remove obsolete lamespecs (it implements IConvertible), small formatting

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 21:13:57 +0000 (21:13 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* trace.c (mono_trace_enter_method): Fix printing of Type instances.

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

16 years ago2008-07-08 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Tue, 8 Jul 2008 21:00:26 +0000 (21:00 -0000)]
2008-07-08  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* Char.cs: Optimize some Is* checks

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 20:07:51 +0000 (20:07 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (compile_method): Disable the check for GSHARED since it
is on by default.

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:58:34 +0000 (19:58 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* inssel-long.brg (reg): Add a rule for LCALL_REG (OP_I8CONST).

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:58:06 +0000 (19:58 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
init trampoline from the AOT file as well.

* mini-amd64.c (mono_arch_register_lowlevel_calls): Register
mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
code.

* mini.c (mini_init): Move the call to mono_exceptions_init () after
mono_init.

* exceptions-amd64.c: Add _full variants for the remaining exception code
creation functions as well, allow emission of relocatable code, remove
caching since that is now done by the caller.

* mini-exceptions.c: Add _full variants for the remaining exception code
creation functions as well, add aot-only support.

* aot-compiler.c (compile_method): Allow calls to methods of constructed types
if we can determine a proper token for them.
(add_wrappers): Add a few more wrappers.
(emit_method_code): Remove some dead code.
(emit_trampolines): Emit exception code too.

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 19:57:52 +0000 (19:57 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
init trampoline from the AOT file as well.

* mini-amd64.c (mono_arch_register_lowlevel_calls): Register
mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
code.

* mini.c (mini_init): Move the call to mono_exceptions_init () after
mono_init.

* exceptions-amd64.c: Add _full variants for the remaining exception code
creation functions as well, allow emission of relocatable code, remove
caching since that is now done by the caller.

* mini-exceptions.c: Add _full variants for the remaining exception code
creation functions as well, add aot-only support.

* aot-compiler.c (compile_method): Allow calls to methods of constructed types
if we can determine a proper token for them.
(add_wrappers): Add a few more wrappers.
(emit_method_code): Remove some dead code.
(emit_trampolines): Emit exception code too.

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 18:35:57 +0000 (18:35 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Call mono_array_new_2 if possible.

* jit-icalls.c (mono_array_new_2): New jit icall, specialized version of
mono_array_new_va which avoids varargs.

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

16 years ago2008-07-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 8 Jul 2008 16:48:44 +0000 (16:48 -0000)]
2008-07-08 Rodrigo Kumpera  <rkumpera@novell.com>

* object.c (mono_string_to_utf8): Avoid allocating a temp array.

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

16 years ago2008-07-08 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 8 Jul 2008 16:26:21 +0000 (16:26 -0000)]
2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>

* ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only
for fixed toolwindows.

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

16 years ago2008-07-08 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Tue, 8 Jul 2008 15:19:37 +0000 (15:19 -0000)]
2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>

* Form.cs: SetBoundsCore: Added minimum size for minimized windows.
* FormTest.cs: Added the MinimizedWindowSize test.

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

16 years agoNew tests.
Marek Safar [Tue, 8 Jul 2008 14:57:53 +0000 (14:57 -0000)]
New tests.

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

16 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 14:56:46 +0000 (14:56 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #378189, #370577
* lambda.cs, ecore.cs: Implemented 3.0 enhancement to better conversion
from expression.

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

16 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 14:28:29 +0000 (14:28 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs, class.cs, decl.cs: Emit CompilerGenerated attribute
hierarchically.

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

16 years agoRevert
Marek Safar [Tue, 8 Jul 2008 10:52:46 +0000 (10:52 -0000)]
Revert

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

16 years agoNew tests.
Marek Safar [Tue, 8 Jul 2008 10:38:50 +0000 (10:38 -0000)]
New tests.

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

16 years ago2008-07-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 8 Jul 2008 10:38:15 +0000 (10:38 -0000)]
2008-07-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #406702
* anonymous.cs: Always park anonymous method in the nearest parent storey.

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

16 years agoFixed few warnings
Marek Safar [Tue, 8 Jul 2008 10:34:18 +0000 (10:34 -0000)]
Fixed few warnings

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 04:36:46 +0000 (04:36 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_exceptions_init): Fix the ppc build.

* mini-trampolines.c: Call mono_create_specific_trampoline () instead of
mono_arch_create_specific_trampoline () in all places.

* aot-compiler.c aot-runtime.c: Refactor the trampoline emitting/loading code
a bit so it can be used for other things as well.

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 8 Jul 2008 00:26:47 +0000 (00:26 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_exceptions_init): Initialize throw_exception_by_name
on demand as well.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 23:02:23 +0000 (23:02 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: CreateControl just returns if the Control is diposed
and doesn't throw ObjectDisposedException.
* ControlTest.cs: Add tests for the Dispose behavior.
[Fixes bug #406566]

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:53:30 +0000 (22:53 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: Do not create the control if the parent isn't created
yet, e.g in the case of a parented form on which .Show is called.
It will be created when the parent is made visible/created.
Improves #402446.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:49:22 +0000 (22:49 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs: Avoid recursively calling OnSizeChanged due to recursive
WM_WINDOWPOSCHANGED caused by the layouting code on win32.
[Fixes bug #406786]

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:45:35 +0000 (22:45 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs: When disposed set owner to null. Improves #402446.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:42:55 +0000 (22:42 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize
use children's PreferredSize if in AutoSize mode and ExplicitBounds
if not.
* Form.cs: Take the Padding into account for the PreferredSize.
[Fixes bug #402849]

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 22:42:08 +0000 (22:42 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c: Change the signature of the exception code creation
functions to allow the creation of relocatable code later.

* mini-exceptions.c: Add a set of functions to query the various
runtime-generated exception functions.

* mini.c mini-exceptions.c: Use the newly added functions instead of the
mono_arch_.. () functions.

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

16 years ago2008-07-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 22:41:46 +0000 (22:41 -0000)]
2008-07-08  Zoltan Varga  <vargaz@gmail.com>

* exceptions-amd64.c: Change the signature of the exception code creation
functions to allow the creation of relocatable code later.

* mini-exceptions.c: Add a set of functions to query the various
runtime-generated exception functions.

* mini.c mini-exceptions.c: Use the newly added functions instead of the
mono_arch_.. () functions.

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

16 years ago2008-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 7 Jul 2008 22:31:52 +0000 (22:31 -0000)]
2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TabControl.cs: Since we don't support more than one direction in
TabControl rows alignment (this is, the row becomes the
bottom row when selected), make Direction return always 1. This way
the layout doesn't get confused about a bad calculation.
Fixes #399582.

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:31:47 +0000 (22:31 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* TableLayout.cs: Controls bounds should be taken into account regardless
of their Dock and Anchor states.
* TableLayoutTest.cs: Add test for bug #402651
[Fixes bug #402651]

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

16 years ago2008-07-07 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 7 Jul 2008 22:29:35 +0000 (22:29 -0000)]
2008-07-07  Rodrigo Kumpera  <rkumpera@novell.com>

* ConfigurationManager.cs: Return the right path if the calling assembly is
not null. This happens when ConfigurationSession::GetRuntimeObject() is
called, SectionHandler != null and the handler itself calls
OpenExeConfigurationInternal ("").

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

16 years ago * ConfigurationManager.cs: Reaply the patch from Gert.
Rodrigo Kumpera [Mon, 7 Jul 2008 22:25:55 +0000 (22:25 -0000)]
* ConfigurationManager.cs: Reaply the patch from Gert.
This change doesn't contain any fix to to not clutter
the commit history.

2008-07-07  Rodrigo Kumpera  <rkumpera@novell.com>

* ClientConfigurationSystem.cs:

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

16 years ago2008-07-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 7 Jul 2008 22:19:45 +0000 (22:19 -0000)]
2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>

* XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages,
so that the wparam is properly set.
Fixes form moving in the test case in bug 402446.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 20:53:14 +0000 (20:53 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_aot_get_trampoline_code): Removed, no longer used.

* aot-runtime.c aot-compiler.c: AOT the generic trampolines in aot-only mode.

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

16 years ago2008-07-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 7 Jul 2008 20:50:29 +0000 (20:50 -0000)]
2008-07-07  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_imt_trampoline): Call mono_create_specific_trampoline ().
(mini_get_vtable_trampoline): Ditto.

* tramp-amd64.c (mono_arch_create_trampoline_code_full): Create relocatable
code in the AOT case by returning the code size and a list of relocations to
the caller.

* mini-trampolines.c (mono_create_specific_trampoline): New helper function.

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

16 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 20:44:44 +0000 (20:44 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>
* libtest.c, winx64structs.cs :
  Adding tests to exercise bug 404729 on Winx64.

Contributed under MIT/X11 license.

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

16 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 20:44:21 +0000 (20:44 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* mini-amd64.c:  On Winx64 the calling convention always requires the caller to
  clean the stack.

Contributed under MIT/X11 license.

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

16 years ago2008-07-07 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 7 Jul 2008 17:03:30 +0000 (17:03 -0000)]
2008-07-07  Bill Holmes  <billholmes54@gmail.com>

* ThreadTest.cs : Tests added for Thread.Interrupt.

Code is contributed under MIT/X11 license.

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