mono.git
18 years ago* threads.c: Define G_GSIZE_FORMAT for systems with glib < 2.6
Wade Berrier [Fri, 12 May 2006 17:05:06 +0000 (17:05 -0000)]
* threads.c: Define G_GSIZE_FORMAT for systems with glib < 2.6

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

18 years agoremove cwl, damnit
Mike Kestner [Fri, 12 May 2006 16:57:58 +0000 (16:57 -0000)]
remove cwl, damnit

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

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

* ListBox.cs: avoid invalidations for focus when the collection is
empty.

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

18 years ago * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
Chris Toshok [Fri, 12 May 2006 16:07:25 +0000 (16:07 -0000)]
* ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
invalidate the entire thumb area.  Call InvalidateDirty which
limits the redraw to the thumb itself and surrounding pixels.

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

18 years ago2006-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 12 May 2006 15:46:33 +0000 (15:46 -0000)]
2006-05-12  Zoltan Varga  <vargaz@gmail.com>

* make_store_test.sh make_obj_store_test.sh make_stack_merge_test.sh: Make
valuetypes sealed to fix ilasm warnings.

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

18 years ago * XplatUIX11.cs (ScrollWindow): optimize copying.
Chris Toshok [Fri, 12 May 2006 15:11:23 +0000 (15:11 -0000)]
* XplatUIX11.cs (ScrollWindow): optimize copying.

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

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

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

* DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
Figure out the positioning/layout in a single pass instead of
multiple recursive invocations.  Speeds up the initial display of
the data grid.  Also, make many things private that were
originally public but unused outside this class.

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

18 years ago2006-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 12 May 2006 15:01:42 +0000 (15:01 -0000)]
2006-05-12  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_fnptr_class_get): Set class->image to corlib for now, since other
functions try to allocate from the image mempool.

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

18 years ago2006-05-12 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 12 May 2006 10:38:20 +0000 (10:38 -0000)]
2006-05-12  Dick Porter  <dick@ximian.com>

        * threads.c: Implement pseudo handles, making GetCurrentThread()
        match MS behaviour.  Notice when attached threads exit, and unref
        the handle.  Fix usage of GetCurrentThread() in other places.

        * handles.c (DuplicateHandle): Implement a basic form of
        DuplicateHandle().

        * wait.c: Fix usage of GetCurrentThread() throughout, and cope
        with pseudo handles.

2006-05-12  Dick Porter  <dick@ximian.com>

        * threads.c (mono_thread_attach): Fix usage of GetCurrentThread().

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

18 years ago2006-05-12 Lluis Sanchez <lluis@ximian.com>
Lluis Sanchez [Fri, 12 May 2006 10:07:28 +0000 (10:07 -0000)]
2006-05-12  Lluis Sanchez  <lluis@ximian.com>

* object.c: The FieldGetter and FieldSetter methods require the full
name of the class, not only the name. Fixes bug #78277.

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

18 years ago2006-05-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 12 May 2006 09:54:22 +0000 (09:54 -0000)]
2006-05-12  Atsushi Enomoto  <atsushi@ximian.com>

* Configuration.cs : configPath is null for machine.config, so don't
  use it. Use streamName instead. To my understanding, this should
  fix bug #78372.

* ConfigurationManagerTest.cs :
  added test for OpenMachineConfiguration().

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

18 years ago * MdiClient.cs: Improved layout code.
Jackson Harper [Thu, 11 May 2006 23:24:57 +0000 (23:24 -0000)]
    * MdiClient.cs: Improved layout code.

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

18 years ago2006-05-11 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Thu, 11 May 2006 22:50:39 +0000 (22:50 -0000)]
2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>

* PropertyGrid.cs : Only check GetPropertiesSupported for properties,
  not SelectedObject.

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

18 years ago2006-05-11 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 11 May 2006 21:34:46 +0000 (21:34 -0000)]
2006-05-11  Peter Dennis Bartok  <pbartok@novell.com>

* Icon.cs: Don't require width/height to be non-0 when creating from
  serialized data, just require them to be square

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

18 years agowe still need a guard here, for invalid_list.Count == 0
Chris Toshok [Thu, 11 May 2006 20:10:00 +0000 (20:10 -0000)]
we still need a guard here, for invalid_list.Count == 0

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

18 years ago2006-05-11 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 11 May 2006 20:01:30 +0000 (20:01 -0000)]
2006-05-11  Chris Toshok  <toshok@ximian.com>

* Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
union of that will always be {0,0,width,height}.

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

18 years ago * Form.cs: Match MS's DefaultSize for forms (they must have
Jackson Harper [Thu, 11 May 2006 19:12:46 +0000 (19:12 -0000)]
    * Form.cs: Match MS's DefaultSize for forms (they must have
        changed the size in sp2).

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

18 years ago2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 11 May 2006 17:25:29 +0000 (17:25 -0000)]
2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>

* ReflectionPropertyDescriptor.cs,
  DerivedPropertyDescriptor.cs : invoke OnValueChanged() when
  the value was successfully changed. It is needed to have
  MWF PropertyGrid change properties successfully.

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

18 years ago2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 11 May 2006 15:59:23 +0000 (15:59 -0000)]
2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>

* TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.

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

18 years ago2006-05-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 11 May 2006 15:57:17 +0000 (15:57 -0000)]
2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>

* TextControl.cs : Fixed bug #78109. This incorrect position
  comparison caused crash on automatic line split.
* TextBoxBase.cs : reduce duplicate code.

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

18 years ago* get.c (get_custom_mod): Fix printing of custom modifiers.
Ankit Jain [Thu, 11 May 2006 14:36:04 +0000 (14:36 -0000)]
* get.c (get_custom_mod): Fix printing of custom modifiers.
(dis_stringify_type): Likewise.
(get_field_signature): Likewise.
(get_ret_type): Likewise.
(get_param): Likewise.

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

18 years agoIn ilasm/tests:
Ankit Jain [Thu, 11 May 2006 13:45:29 +0000 (13:45 -0000)]
In ilasm/tests:

* test-modifiers.il: New. Test for custom modifiers, modreq & modopt.

In ilasm/parser:

* ILParser.jay (type |type MODREQ ..): Use CustomModifier.modreq .

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

18 years agoThis check is unnecessary
Andrew Skiba [Thu, 11 May 2006 13:22:12 +0000 (13:22 -0000)]
This check is unnecessary

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

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

* mini.c (mini_init): Call pthread_attr_destroy () to fix a small memory leak.

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

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

* assembly.c (mono_assembly_load_from_full): Fix a bunch of warnings.
(mono_assembly_close): Null out assembly->image->references after freeing it.

* image.c (mono_image_close): Free image->references.

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

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

* reflection.c (mono_image_basic_init): Fix a small memory leak.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Thu, 11 May 2006 11:32:20 +0000 (11:32 -0000)]
In ilasm/codegen:
* CodeGen.cs (CodeGen.AddDataDef): Use Report.Error for consistent error
reporting.
* MethodDef.cs (MethodDef.AddLabel): Likewise.

In ilasm:

* Report.cs (Report.Error): Add 2 new overloads.
(ILAsmException.ctor): Add 2 new overloads, with location and file_path
params.
(ILAsmException.Location):
(ILAsmException.FilePath): New properties.
(ILAsmException.ToString): Return formatted error message.
* Driver.cs (DriverMain.ProcessFile): Improve error message display.
(DriverMain.Run): Use ILAsmException.ToString ().

In ilasm/scanner:

* ILTokenizingExpcetion.cs (Location): Remove. Already inherited from
ILAsmException.

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

18 years agoLoad all referenced asseblies in parent domain before copying assemblies to new domain.
Andrew Skiba [Thu, 11 May 2006 11:24:47 +0000 (11:24 -0000)]
Load all referenced asseblies in parent domain before copying assemblies to new domain.

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

18 years agoIn mcs:
Raja R Harinath [Thu, 11 May 2006 10:47:15 +0000 (10:47 -0000)]
In mcs:
* flowanalysis.cs (UsageVector.MergeJumpOrigins): Kill.
(FlowBranchingBlock.Label): Use UsageVector.MergeOrigins.
(FlowBranchingException.Label): Likewise.

In gmcs:
* flowanalysis.cs (UsageVector.MergeJumpOrigins): Kill.
(FlowBranchingBlock.Label): Use UsageVector.MergeOrigins.
(FlowBranchingException.Label): Likewise.

In tests:
* test-154.cs (test39): Move buggy testcase to errors/cs0177-7.cs.
Fix it and move ...
* test-510.cs: ... here.

In errors:
* cs0177-7.cs: Taken from erroneous sub-test in tests/test-154.cs.

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

18 years ago* mcs/flowanalysis.cs (MyBitVector.SetAll): New. Sets all bits to the
Raja R Harinath [Thu, 11 May 2006 09:26:07 +0000 (09:26 -0000)]
* mcs/flowanalysis.cs (MyBitVector.SetAll): New.  Sets all bits to the
given value.
(MyBitVector.Or): Use it to avoid losing information (Count).
(FlowBranching.MergeOrigins): Likewise.
* gmcs/flowanalysis.cs: Likewise.

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

18 years ago* mcs/flowanalysis.cs (UsageVector.IsDirty): Remove.
Raja R Harinath [Thu, 11 May 2006 09:12:09 +0000 (09:12 -0000)]
* mcs/flowanalysis.cs (UsageVector.IsDirty): Remove.
(UsageVector.Parameters, UsageVector.ParameterVector): Likewise.
(UsageVector.Locals, UsageVector.LocalVector): Likewise.
(UsageVector.ToString): Simplify.
(UsageVector.MergeSiblings): Move here from ...
(FlowBranching.Merge): ... here.
(FlowBranchingToplevel.CheckOutParameters): Take an UsageVector,
not a MyBitVector.
* gmcs/flowanalysis.cs: Likewise.

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

18 years agorefactory CopyAssembly, make Helper accessible from web context, fallback for user...
Andrew Skiba [Thu, 11 May 2006 08:42:50 +0000 (08:42 -0000)]
refactory CopyAssembly, make Helper accessible from web context, fallback for user exceptions

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

18 years ago* MethodDef.cs (MethodDef.AddLabel): Fix exception message.
Ankit Jain [Thu, 11 May 2006 08:32:47 +0000 (08:32 -0000)]
* MethodDef.cs (MethodDef.AddLabel): Fix exception message.

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

18 years agouse LinkedStyleSheets from the PageTheme and from StyleSheetPageTheme to insert links...
Andrew Skiba [Thu, 11 May 2006 07:11:37 +0000 (07:11 -0000)]
use LinkedStyleSheets from the PageTheme and from StyleSheetPageTheme to insert links in page header.

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

18 years ago* get.c (dis_stringify_method_signature): Rename to ..
Ankit Jain [Thu, 11 May 2006 07:06:08 +0000 (07:06 -0000)]
* get.c (dis_stringify_method_signature): Rename to ..
(dis_stringify_method_signature_full): .. this. Add 'with_marshal_info'
param.
* get.h (dis_stringify_method_signature_full): Add new function.
* main.c (dis_property_methods): Update to use
dis_stringify_method_signature_full.
(dis_event_methods): Likewise.

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

18 years ago * MdiClient.cs: Active form is only sent to the back when using
Jackson Harper [Thu, 11 May 2006 05:19:42 +0000 (05:19 -0000)]
    * MdiClient.cs: Active form is only sent to the back when using
        the Next form functionality, when a form is clicked the current
        active shouldn't be sent to the back.
        - Layout the mdi windows when the container is first made
          visible.
        * Form.cs: Give the MdiClient a ref to the containing form when
        * we
        create it.

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

18 years ago* mcs/flowanalysis.cs (UsageVector.MergeOrigins): Simplify, now that a
Raja R Harinath [Thu, 11 May 2006 03:28:37 +0000 (03:28 -0000)]
* mcs/flowanalysis.cs (UsageVector.MergeOrigins): Simplify, now that a
null bitvector is treated as all-true.
* gmcs/flowanalysis.cs: Likewise.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 21:54:02 +0000 (21:54 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* LinkLabel.cs : link_font could be uninitialized, so populate one
  before actual use. Fixed bug #78340.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 21:05:50 +0000 (21:05 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

        * XplatUIX11.cs : clipboard format native value is IntPtr.
          Fixed bug #78283.

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

18 years ago2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 10 May 2006 20:57:01 +0000 (20:57 -0000)]
2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs:
  - Instead of showing context menus directly we send WM_CONTEXTMENU,
    which is passed up the parent chain by DefWndProc
  - We now handle WM_CONTEXTMENU to display any menu, or pass it
    to DefWndProc (#77956)
* XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc

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

18 years ago * MdiClient.cs: We need to remove the controls from the mdi
Jackson Harper [Wed, 10 May 2006 20:23:39 +0000 (20:23 -0000)]
    * MdiClient.cs: We need to remove the controls from the mdi
        collection, when we close the window.
        * MdiWindowManager.cs: Special handling of closing mdi windows.
        * InternalWindowManager.cs: Make the close method virtual so the
        mdi window manager can handle it specially.

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

18 years ago2006-05-10 Jordi Mas i Hernandez <jordimash@gmail.com>
Jordi Mas i Hernandez [Wed, 10 May 2006 20:16:44 +0000 (20:16 -0000)]
2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>

* DataGrid.cs:
  - Recalculate grid when the data source has changed
  - Matches styles provided by user from all data sources types
* DataGridTableStyle.cs: For columns that provided by the user set the
with the preferred value is there was unassigned.
* CurrencyManager.cs: throw OnItemChanged event

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

18 years ago2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 10 May 2006 19:52:29 +0000 (19:52 -0000)]
2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>

* PictureBox.cs: Don't animate until handle is created. Start animation
  when handle is created.

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

18 years ago * XEventQueue.cs: We don't need to provide the extra info
Peter Dennis Bartok [Wed, 10 May 2006 19:47:48 +0000 (19:47 -0000)]
* XEventQueue.cs: We don't need to provide the extra info

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

18 years ago2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 10 May 2006 19:42:38 +0000 (19:42 -0000)]
2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
  current codebase.

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

18 years agoadd test for LinkedStyleSheet support with themes
Chris Toshok [Wed, 10 May 2006 19:34:58 +0000 (19:34 -0000)]
add test for LinkedStyleSheet support with themes

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

18 years ago * MdiClient.cs: If the mdi clients parent form has a background
Jackson Harper [Wed, 10 May 2006 19:19:30 +0000 (19:19 -0000)]
    * MdiClient.cs: If the mdi clients parent form has a background
        image set, we draw that background image for the mdi area's
        background.

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

18 years ago2006-05-10 Mike Kestner <mkestner@novell.com>
Mike Kestner [Wed, 10 May 2006 19:08:37 +0000 (19:08 -0000)]
2006-05-10  Mike Kestner  <mkestner@novell.com>

* ToolBar.cs: fix some text padding issues with ButtonSize
calculation. Update the default size to match MS documentation.
* ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
button size. Fixes #78296.

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

18 years ago2006-05-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 10 May 2006 18:57:03 +0000 (18:57 -0000)]
2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>

* TextBoxBase.cs: Set IBeam cursor (#78347)

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

18 years ago2006-05-10 Mike Kestner <mkestner@novell.com>
Mike Kestner [Wed, 10 May 2006 18:45:26 +0000 (18:45 -0000)]
2006-05-10  Mike Kestner  <mkestner@novell.com>

* ListBox.cs: use is_visible for scrollbar positioning in case the
control isn't on screen yet.  Fix off by one with Right vs Width
usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.

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

18 years ago2006-05-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 10 May 2006 18:31:15 +0000 (18:31 -0000)]
2006-05-10  Sebastien Pouliot  <sebastien@ximian.com>

* marshal.c: In function mono_mb_add_local don't use the mb pointer
before checking if it's NULL (g_assert).

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

18 years ago * X11Dnd.cs: Drop to a control with another control on top of
Jackson Harper [Wed, 10 May 2006 18:00:56 +0000 (18:00 -0000)]
    * X11Dnd.cs: Drop to a control with another control on top of
        * it.
        * ToolBar.cs: Work on a copy of the buttons list, so that it can
        be modified in click handlers. TODO: Look for similar problems
in
        other controls.

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

18 years ago2006-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 10 May 2006 17:54:09 +0000 (17:54 -0000)]
2006-05-10  Zoltan Varga  <vargaz@gmail.com>

* MonoType.cs (GetMethodImpl): Fix a warning.

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

18 years ago2006-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 10 May 2006 17:53:39 +0000 (17:53 -0000)]
2006-05-10  Zoltan Varga  <vargaz@gmail.com>

* Module.cs (GetMethod): Update after the changes to Type.GetMethod ().

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

18 years agoNew test.
Martin Baulig [Wed, 10 May 2006 17:52:35 +0000 (17:52 -0000)]
New test.

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

18 years ago2006-05-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 10 May 2006 17:47:30 +0000 (17:47 -0000)]
2006-05-10  Martin Baulig  <martin@ximian.com>

* metadata.c (mono_type_size): Kill the g_assert() in MONO_TYPE_GENERICINST;
I thought I already killed that two months ago, but now it somehow reappeared.

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

18 years ago2006-05-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 10 May 2006 17:29:28 +0000 (17:29 -0000)]
2006-05-10  Sebastien Pouliot  <sebastien@ximian.com>

* PathGradientBrush.cs: Added MonoTODO to warn about the lack of
support, for most cases, when using libgdiplus.

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

18 years ago * X11Dnd.cs: Drop to a control with another control on top of
Jackson Harper [Wed, 10 May 2006 17:29:05 +0000 (17:29 -0000)]
    * X11Dnd.cs: Drop to a control with another control on top of
        * it.

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

18 years ago2006-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 10 May 2006 17:22:42 +0000 (17:22 -0000)]
2006-05-10  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_instrument_epilog): Fix handling of
MONO_TYPE_GENERICINST.

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

18 years ago2006-05-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 10 May 2006 17:14:48 +0000 (17:14 -0000)]
2006-05-10  Martin Baulig  <martin@ximian.com>

* mono-debug.c (mono_debug_add_method): Allow instantiated generic methods.

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

18 years ago2006-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 10 May 2006 16:32:25 +0000 (16:32 -0000)]
2006-05-10  Zoltan Varga  <vargaz@gmail.com>

* reflection.c: Allocate memory for dynamically created methods in the image
mempools.

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

18 years ago2006-05-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 10 May 2006 15:39:48 +0000 (15:39 -0000)]
2006-05-10  Sebastien Pouliot  <sebastien@ximian.com>

* appdomain.c: In ves_icall_System_AppDomain_[Get|Set]Data functions,
don't use the ad pointer before checking if it's NULL (g_assert).

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 15:10:54 +0000 (15:10 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* ConnectionStringSettings.cs : it seems that "name" property
  could be null i.e. there is no StringValidator.
* StringValidator.cs : allow null.

* StringValidatorTest.cs : added NullZero().

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

18 years ago2006-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 10 May 2006 14:52:19 +0000 (14:52 -0000)]
2006-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpUtility.cs: get rid of TryParseHexa.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 14:50:31 +0000 (14:50 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* ConfigurationManager.cs : use GetCallingAssembly() instead of
  GetEntryAssembly() which possibly returns null (e.g. nunit) in
  OpenExeConfiguration(). Several nunit test failures are gone.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 14:48:14 +0000 (14:48 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* t36.cs, t36-lib.cs, t36.exe.config, t36.exe.expected :
  new test for bug #77236.
* Makefile : added a trick for building this test.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 12:28:59 +0000 (12:28 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* ConnectionStringSettings.cs : oops, this API fix broke standalone
  test.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 12:14:14 +0000 (12:14 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* ObjectType.cs :
  getObjTstToInt64() always returned 0. Fixed bug #75386.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 11:49:53 +0000 (11:49 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* ConfigurationElement.cs,
  ConfigurationErrorsException.cs,
  ConfigurationUserLevel.cs,
  ConfigurationPropertyOptions.cs,
  ConnectionStringSettings.cs : assorted minor corcompare fixes.

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

18 years ago* mcs/flowanalysis.cs (MyBitVector.And, MyBitVector.Or): Make lazier.
Raja R Harinath [Wed, 10 May 2006 11:35:01 +0000 (11:35 -0000)]
* mcs/flowanalysis.cs (MyBitVector.And, MyBitVector.Or): Make lazier.
(MyBitVector): Rationalize invariants.  'vector != null' implies
that we have our own copy of the bitvector.  Otherwise,
'InheritsFrom == null' implies all inherited bits are true.
* gmcs/flowanalysis.cs: Likewise.

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

18 years agoIn ilasm/parser:
Ankit Jain [Wed, 10 May 2006 11:32:59 +0000 (11:32 -0000)]
In ilasm/parser:
* ILParser.jay (native_type | K_ERROR): Use NativeType.Error for the
value.
(native_type | K_LPSTRUCT): Likewise for K_LPSTRUCT.

In class/PEAPI:

* Metadata.cs (NativeType): Add LPStruct and Error.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 11:29:13 +0000 (11:29 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* Configuration.cs : some kind of refactoring is absolutely needed
  here. Reuse RawXml from parentSection when data was not available
  on current section. This should fix bug #78353.

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

18 years ago* get.c (init_key_table): Add keyword 'switch'.
Ankit Jain [Wed, 10 May 2006 11:19:49 +0000 (11:19 -0000)]
* get.c (init_key_table): Add keyword 'switch'.

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

18 years ago* get.c (init_key_table): Add keyword 'property'.
Ankit Jain [Wed, 10 May 2006 08:41:07 +0000 (08:41 -0000)]
* get.c (init_key_table): Add keyword 'property'.

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

18 years agoIn ilasm/scanner:
Ankit Jain [Wed, 10 May 2006 07:56:36 +0000 (07:56 -0000)]
In ilasm/scanner:

* ILTables.cs (keywords): Add 'property' for NET_2_0.

In ilasm/parser:

* ILParser.jay: Add K_PROPERTY.

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

18 years agosurround file name with quotes
Andrew Skiba [Wed, 10 May 2006 06:18:58 +0000 (06:18 -0000)]
surround file name with quotes

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

18 years agokeep the internal exception
Andrew Skiba [Wed, 10 May 2006 06:04:54 +0000 (06:04 -0000)]
keep the internal exception

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

18 years agoand let new status pages show up.
Atsushi Eno [Wed, 10 May 2006 05:26:19 +0000 (05:26 -0000)]
and let new status pages show up.

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

18 years agohandle 2.0 with simply "make PROFILE=net_2_0".
Atsushi Eno [Wed, 10 May 2006 05:25:40 +0000 (05:25 -0000)]
handle 2.0 with simply "make PROFILE=net_2_0".

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 05:00:13 +0000 (05:00 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* test-enum-indstoreil.il : removed duplicate label.
  Fixed test-runtime.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 03:43:30 +0000 (03:43 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* data/net_2_0/machine.config : updated webRequestModules,
  defaultProxy and connectionManagement handlers.

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

18 years agotsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 03:42:53 +0000 (03:42 -0000)]
tsushi Enomoto  <atsushi@ximian.com>

* System_test.dll.sources : added ConnectionManagementSectionTest.cs
  and WebRequestModulesSectionTest.cs.

* ConnectionManagementSectionTest.cs,
  WebRequestModulesSectionTest.cs : new tests.

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

18 years ago2006-05-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 May 2006 03:39:56 +0000 (03:39 -0000)]
2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : add -r:System.Configuration under net_2_0.

* ConfigurationSettings.cs : use ConfigurationManager.GetConfig()
  in its GetConfig(). No need to change AppSettings and
  Default.GetConfig() behavior here.

* t35.cs, t35.exe.config, t35.exe.expected :
  new test, largely from bug #78337.

* ConfigurationManagerTest.cs :
  added GetSectionReturnsNativeObject().

* ConfigurationElement.cs,
  DefaultSection.cs :
  in some cases RawXml was set null string, so skip such cases.
* Configuration.cs : support IConfigurationSectionHandler here.
* ConfigurationManager.cs : GetSection() now returns name value
  collection, not a section.
* ConfigurationSection.cs : added SectionHandler for
  IConfigurationSectionHandler support, and use its Create() in
  GetRuntimeObject().
* ClientConfigurationSystem.cs :
  use GetRuntimeObject() in GetSection(). Thus now
  ConfigurationManager.GetSection() returns a runtime object.
  Fixed bug #78337.

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

18 years agonunit.mocks.dll.csproj does not exist. Fix make dist.
Atsushi Eno [Wed, 10 May 2006 03:18:10 +0000 (03:18 -0000)]
nunit.mocks.dll.csproj does not exist. Fix make dist.

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

18 years ago2006-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 10 May 2006 00:31:38 +0000 (00:31 -0000)]
2006-05-10  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Disable usage of visibility(hidden) on solaris x86.

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

18 years ago * Form.cs: Window managers need the old window state when
Jackson Harper [Tue, 9 May 2006 23:22:22 +0000 (23:22 -0000)]
    * Form.cs: Window managers need the old window state when
        * setting
        window state now.
        * InternalWindowManager.cs: Allow the base mdi window manager to
        handle more of the MDI only stuff (like maximize buttons).
        * MdiWindowManager.cs: Fix some snafus in changing the window
        state.  Add all the menu functionality, for both popup and
        maximized menus.
        * MdiClient.cs: When a new form is selected the currently
        activated form is sent to the back, this matches MS.
        - Implement a new method to activate the next mdi child window.

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

18 years ago * Form.cs: Window managers need the old window state when
Jackson Harper [Tue, 9 May 2006 23:18:20 +0000 (23:18 -0000)]
    * Form.cs: Window managers need the old window state when
        * setting
        window state now.
        * InternalWindowManager.cs: Allow the base mdi window manager to
        handle more of the MDI only stuff (like maximize buttons).
        * MdiWindowManager.cs: Fix some snafus in changing the window
        state.  Add all the menu functionality, for both popup and
        maximized menus.
        * MdiClient.cs: When a new form is selected the currently
        activated form is sent to the back, this matches MS.
        - Implement a new method to activate the next mdi child window.

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

18 years agoGet reliable builds
Miguel de Icaza [Tue, 9 May 2006 22:51:12 +0000 (22:51 -0000)]
Get reliable builds

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

18 years ago2006-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 9 May 2006 22:06:33 +0000 (22:06 -0000)]
2006-05-10  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_instrument_epilog): Fix handling of
MONO_TYPE_GENERICINST.

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

18 years ago2006-05-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 9 May 2006 21:20:32 +0000 (21:20 -0000)]
2006-05-09  Sebastien Pouliot  <sebastien@ximian.com>

* System.Drawing_test.dll.sources: Added unit tests for
PathGradientBrush.

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

18 years ago2006-05-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 9 May 2006 21:19:23 +0000 (21:19 -0000)]
2006-05-09  Sebastien Pouliot  <sebastien@ximian.com>

* PathGradientBrushTest.cs: New. Unit tests (mostly) based on the test
cases created for LinearGradientBrush.

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

18 years ago2006-05-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 9 May 2006 21:17:42 +0000 (21:17 -0000)]
2006-05-09  Sebastien Pouliot  <sebastien@ximian.com>

* PathGradientBrush.cs: Added missing checks before calling libgdiplus
(or GDI+).

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

18 years ago2006-05-09 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Tue, 9 May 2006 21:04:46 +0000 (21:04 -0000)]
2006-05-09  Marek Safar  <marek.safar@seznam.cz>

* statement.cs (LocalInfo): Add IsConstant.
(LocalInfo.DeclareLocal): Moved from EmitMeta and changed to don't emit
local variable for constants.

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

18 years agoSmall comment, for those using Coverity
Miguel de Icaza [Tue, 9 May 2006 19:07:18 +0000 (19:07 -0000)]
Small comment, for those using Coverity

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

18 years ago2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 9 May 2006 18:56:23 +0000 (18:56 -0000)]
2006-05-09  Atsushi Enomoto  <atsushi@ximian.com>

        * mocks, Makefile : added nunit.mocks.dll due to the request
          in bug #78275. Patch by Matt Hargett.

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

18 years ago2006-05-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 9 May 2006 18:51:55 +0000 (18:51 -0000)]
2006-05-09  Miguel de Icaza  <miguel@novell.com>

* object.c (mono_load_remote_field): The code used to provide a
temporary variable for returning results if the user did not
provide a result pointer.  But our temporary variable was allocted
on the satck.

Fix calling code to always pass a result area.   Coverity ID 103.

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

18 years ago2006-05-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 9 May 2006 18:49:19 +0000 (18:49 -0000)]
2006-05-09  Miguel de Icaza  <miguel@novell.com>

* interp.c (ves_exec_method_with_context): Pass a temporary to the
mono_load_remote_field routine, instead of passing a NULL.

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

18 years ago2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 9 May 2006 18:27:48 +0000 (18:27 -0000)]
2006-05-09  Atsushi Enomoto  <atsushi@ximian.com>

        * ServicePointManager.cs : oops, CONFIGURATION_DEP.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Tue, 9 May 2006 17:46:56 +0000 (17:46 -0000)]
In ilasm/codegen:

* MethodDef.cs (MethodDef.AddLabel): Throw exception for duplicate
labels.

In ilasm/errors:
* err-dup-label.il: New.

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

18 years ago2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 9 May 2006 17:36:51 +0000 (17:36 -0000)]
2006-05-09  Atsushi Enomoto  <atsushi@ximian.com>

* GlobalProxySelection.cs : if corresponding config section is
  DefaultProxySection then use it.

* DefaultProxySection.cs :
  remove NotImpl from PostDeserialize() and Reset().

  (ditto).

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