mono.git
16 years ago2007-06-15 Wade Berrier <wberrier@novell.com>
Wade Berrier [Sat, 16 Jun 2007 00:20:26 +0000 (00:20 -0000)]
2007-06-15  Wade Berrier  <wberrier@novell.com>

        * scripts/mono-find-requires.in: revert back to using package names
        for .config file dep scanning.  This is because noarch packages can be
        built on either 32 or 64 bit arches, depending on either a 32bit or 64bit
        library, which is wrong.

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

16 years ago * invalid_dup_maxstack.il: the test wasn't generating the failing condition
Rodrigo Kumpera [Sat, 16 Jun 2007 00:11:02 +0000 (00:11 -0000)]
* invalid_dup_maxstack.il: the test wasn't generating the failing condition
* make_tests.sh: fixed the generation of stack merge tests and a typo on the return coercion tests
* unverifiable_ldfld_initonly.il: add assembly manifest (so it tests the right thing)
* invalid_stack_2_ret.il: fix the entry point

2007-06-14  Rodrigo Kumpera  <kumpera@gmail.com>

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

16 years agoRemoved gcs0733, interesting how tiny discrepancy can expose big problem
Marek Safar [Fri, 15 Jun 2007 22:02:06 +0000 (22:02 -0000)]
Removed gcs0733, interesting how tiny discrepancy can expose big problem

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

16 years agoMore tests.
Marek Safar [Fri, 15 Jun 2007 21:58:13 +0000 (21:58 -0000)]
More tests.

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

16 years ago2007-06-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 15 Jun 2007 21:57:49 +0000 (21:57 -0000)]
2007-06-15  Marek Safar  <marek.safar@gmail.com>

* decl.cs (MemberName): Moved all Unbound stuff to parser.

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

16 years ago2007-06-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 15 Jun 2007 21:57:14 +0000 (21:57 -0000)]
2007-06-15  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay: Correctly split generic arguments and generic
 parameters. Correctly implemented typeof of generic unbound types.

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

16 years ago2007-06-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 15 Jun 2007 20:20:46 +0000 (20:20 -0000)]
2007-06-15  Jonathan Pobst  <monkey@jpobst.com>

* UserControl.cs: Implement AutoSize.

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

16 years ago* ObjectStateFormatter.cs: Avoid NRE in Serialize. Fixes bug #81851.
Gert Driesen [Fri, 15 Jun 2007 20:11:35 +0000 (20:11 -0000)]
* ObjectStateFormatter.cs: Avoid NRE in Serialize. Fixes bug #81851.
* LosFormatterTest.cs: Added tests for LosFormatter.
* System.Web_test.dll.sources: Added LosFormatterTest.cs.

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

16 years ago2007-06-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 15 Jun 2007 18:14:47 +0000 (18:14 -0000)]
2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DrawListViewItemEventArgs.cs:
* ListView.cs:
* ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
ListView.

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

16 years ago2007-06-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 15 Jun 2007 15:05:15 +0000 (15:05 -0000)]
2007-06-15  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripDropDownItemAccessibleObject.cs: Added.
* ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
ToolStripTextBox.cs: corcompare work.

2007-06-15  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms.dll.sources: Add ToolStripDropDownItemAccessibleObject.cs.

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

16 years agoAvoid allocating 'MonoGenericContext' on the heap.
Raja R Harinath [Fri, 15 Jun 2007 14:11:17 +0000 (14:11 -0000)]
Avoid allocating 'MonoGenericContext' on the heap.
* class-internals (_MonoMethodInflated::context): Make field
inline, not a pointer.
* loader.c (method_from_methodspec): Allocate 'new_context' on the
stack.  Use the context embedded within the inflated method as the
hash key, rather than 'new_context'.
* class.c (inflate_generic_context): Simplify.  Return a struct
rather than allocating on the heap.
(mono_class_inflate_generic_method_full): Update to changes.  Now,
doesn't salt away a copy of the context -- simplifying the
lifetime rules of a 'MonoGenericContext *'.
(mono_method_get_context): Return pointer to embedded context.
(setup_generic_array_ifaces): Allocate temporary context on stack.
* reflection.c (inflate_mono_method): Likewise.
(mono_reflection_bind_generic_method_parameters): Likewise.
Use the context embedded within the inflated method as the hash key.

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

16 years agoIn dis:
Raja R Harinath [Fri, 15 Jun 2007 11:38:53 +0000 (11:38 -0000)]
In dis:
* get.c (dis_stringify_object_with_class): Update to changes in
MonoGenericClass.
(dis_stringify_type): Likewise.

In metadata:
Avoid a source of allocation of 'MonoGenericContext'.
* class-internals.h (_MonoGenericClass::context): Combine 'inst'
and 'cached_context' fields into embedded 'MonoGenericContext' field.
* class.c: Update to changes.
(mono_generic_class_get_context): Simplify drastically.  Now just
returns a pointer to the field.
* metadata-internals.h (mono_metadata_generic_context_hash): Mark
argument as a const pointer.
(mono_metadata_generic_context_equal): Likewise.
* metadata.c, loader.c, icall.c, reflection.c, verify.c:
Update to changes.

In mini:
* jit-icalls.c (mono_helper_compile_generic_method): Update to
changes in MonoGenericClass.

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

16 years ago2007-06-14 Rodrigo Kumpera <kumpera@gmail.com>
Rodrigo Kumpera [Fri, 15 Jun 2007 01:43:23 +0000 (01:43 -0000)]
2007-06-14  Rodrigo Kumpera  <kumpera@gmail.com>

* invalid_call_empty_stack.il: added assembly manifest (so it tests the right thing)
* invalid_ldsfld_nonstatic_fld.il: same
* invalid_dup_maxstack.il: same
* invalid_ldsfld_no_fld.il: same
* unverifiable_call_private.il: same
* invalid_backward_branch.il: same
* make_unary_test.sh: same
* invalid_ldloc_no_local.il: same
* make_obj_store_test.sh: added static field to have stsfld tests
* make_store_test.sh: fixed the entrypoint
* make_tests.sh: fixed tests to be faithfull to the spec

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

16 years agoTemporary disabled, the test exposed bigger issue
Marek Safar [Thu, 14 Jun 2007 22:51:42 +0000 (22:51 -0000)]
Temporary disabled, the test exposed bigger issue

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

16 years ago2007-06-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 14 Jun 2007 21:37:31 +0000 (21:37 -0000)]
2007-06-14  Jonathan Pobst  <monkey@jpobst.com>

* OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
corcompare.

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

16 years agoWrong test filename
Marek Safar [Thu, 14 Jun 2007 21:26:54 +0000 (21:26 -0000)]
Wrong test filename

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

16 years agoNew test.
Marek Safar [Thu, 14 Jun 2007 20:53:08 +0000 (20:53 -0000)]
New test.

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

16 years agoNew test.
Marek Safar [Thu, 14 Jun 2007 20:52:12 +0000 (20:52 -0000)]
New test.

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

16 years ago2007-06-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Jun 2007 20:51:51 +0000 (20:51 -0000)]
2007-06-14  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay: Assembly and module attributes must precede all other
elements except using clauses and extern alias declarations.

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

16 years ago2007-06-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Jun 2007 20:51:05 +0000 (20:51 -0000)]
2007-06-14  Marek Safar  <marek.safar@gmail.com>

A fix for bugs #81855 and #76274
* attribute.cs (AttachTo): Always set owner for global attributes to
prefined owner.

* ecore.cs (Error_TypeDoesNotContainDefinition): A type location can be
usefull too.

* cs-parser.jay: Assembly and module attributes must precede all other
elements except using clauses and extern alias declarations.

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

16 years agoUpdated --help output
Marek Safar [Thu, 14 Jun 2007 20:47:46 +0000 (20:47 -0000)]
Updated --help output

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

16 years ago2007-06-14 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 14 Jun 2007 19:28:25 +0000 (19:28 -0000)]
2007-06-14  Jonathan Pobst  <monkey@jpobst.com>

* OSFeature.cs: Add IsPresent.
* PrintPreviewControl.cs: Add RightToLeft.
* SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
* SplitterPanel.cs: Add AutoSizeMode.

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

16 years ago2007-06-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 14 Jun 2007 19:17:51 +0000 (19:17 -0000)]
2007-06-14  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_opcode_to_type): Fix ia64 build.

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

16 years ago2007-06-14 Rodrigo Kumpera <kumpera@gmail.com>
Rodrigo Kumpera [Thu, 14 Jun 2007 17:12:44 +0000 (17:12 -0000)]
2007-06-14  Rodrigo Kumpera  <kumpera@gmail.com>

* verify.c improved the handling of brtrue/brfalse, factored out common code

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

16 years ago2007-06-14 Rodrigo Kumpera <kumpera@gmail.com>
Rodrigo Kumpera [Thu, 14 Jun 2007 17:04:17 +0000 (17:04 -0000)]
2007-06-14  Rodrigo Kumpera  <kumpera@gmail.com>
*Changelog: fixed the dates of my commits
2007-06-14  Rodrigo Kumpera  <kumpera@gmail.com>

2007-06-12  Rodrigo Kumpera  <kumpera@gmail.com>
2007-06-06  Rodrigo Kumpera  <kumpera@gmail.com>

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

16 years agoIn metadata:
Raja R Harinath [Thu, 14 Jun 2007 14:29:24 +0000 (14:29 -0000)]
In metadata:
Kill MonoGenericMethod.
* class-internals.h (MonoGenericContext::method_inst): Rename from
'gmethod' and convert to a MonoGenericInst.
(MonoGenericMethod): Remove.
* metadata.h (MonoGenericMethod): Note that the name is obsolete.
* loader.c (method_from_methodspec): Update to changes.  Use a
MonoGenericContext as the key to the hashtable.
* metadata.c (mono_metadata_generic_context_equal): Rename from
'mono_metadata_generic_method_equal' and take MonoGenericContext.
(mono_metadata_generic_context_hash): Likewise from
'mono_metadata_generic_method_hash'.  Change hash function.
(mono_metadata_load_generic_params): Update to changes.
(mono_get_shared_generic_method): Remove.
* metadata-internals.h (mono_get_shared_generic_method): Remove.
* class.c (inflate_generic_type) [MONO_TYPE_MVAR]: Update to changes.
(inflate_generic_context): Likewise.
(mono_class_inflate_generic_method_full): Likewise.
(setup_generic_array_ifaces): Likewise.
(mono_class_create_from_typespec): Likewise.
* reflection.c (encode_generic_method_sig): Take a MonoGenericContext.
(method_encode_methodspec): Update callsite.
(reflection_methodbuilder_to_mono_method): Update to changes.
(mono_reflection_bind_generic_method_parameters): Likewise.  Use a
MonoGenericContext as the key to the hashtable.
(inflate_mono_method): Update to changes.

In mini:
* jit-icalls.c (mono_helper_compile_generic_method): Update to
removal of MonoGenericMethod.

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

16 years ago2007-05-14 Rodrigo Kumpera <kumpera@gmail.com>
Rodrigo Kumpera [Thu, 14 Jun 2007 13:32:02 +0000 (13:32 -0000)]
2007-05-14  Rodrigo Kumpera  <kumpera@gmail.com>

*make_load_test.sh: Fixed the entrypoint to generate valid code
*make_ret_test.sh: Fixed the entrypoint to generate valid code. Removed invalid generics classes
*make_tests.sh: Fixed the testsuite to not generate wrong tests
*Makefile: split the clean step as it was failing due to the huge file list
 (it might need further tweaking as the testsuite grows)

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

16 years ago* class-internals.h (MonoGenericMethod::container): Remove.
Raja R Harinath [Thu, 14 Jun 2007 12:05:33 +0000 (12:05 -0000)]
* class-internals.h (MonoGenericMethod::container): Remove.
* class.c, loader.c, metadata.c, reflection.c: Update to changes.

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

16 years agoThu Jun 14 12:42:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Jun 2007 10:31:48 +0000 (10:31 -0000)]
Thu Jun 14 12:42:04 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-exceptions.c: hooks for the exception events profiling API.

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

16 years agoThu Jun 14 12:40:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Jun 2007 10:30:49 +0000 (10:30 -0000)]
Thu Jun 14 12:40:05 CEST 2007 Paolo Molaro <lupus@ximian.com>

* profiler-private.h, profiler.c, profiler.h: added API to profile
exception events.

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

16 years ago2007-06-14 Randolph Chung <tausq@debian.org>
Paolo Molaro [Thu, 14 Jun 2007 09:49:21 +0000 (09:49 -0000)]
2007-06-14  Randolph Chung  <tausq@debian.org>

* Makefile.ma: Add hppa target.
* mini-arch.h: Include mini-hppa.h
* cpu-hppa.md, exceptions-hppa.c, inssel-hppa.brg, mini-hppa.c,
mini-hppa.h, tramp-hppa.c: New files for 32-bit HPPA port.
Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).

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

16 years ago2007-06-13 Randolph Chung <tausq@debian.org>
Paolo Molaro [Thu, 14 Jun 2007 09:46:14 +0000 (09:46 -0000)]
2007-06-13  Randolph Chung  <tausq@debian.org>

* configure.in: Add hppa-linux target.
Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).

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

16 years ago2007-06-14 Randolph Chung <tausq@debian.org>
Paolo Molaro [Thu, 14 Jun 2007 09:20:34 +0000 (09:20 -0000)]
2007-06-14  Randolph Chung  <tausq@debian.org>

* inssel.brg: Add rules for "chained" compare-branch operations so that
a single compare op can affect multiple branches.  Adjust cost for
OP_CEQ/OP_CGT/OP_CGT_UN/OP_CLT/OP_CLT_UN.
* inssel-long32.brg: Update rules to use compare-branch macros.  Adjust
cost for some rules so that they can more easily be overridden by
per-arch rules (with fixes from lupus).
Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).

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

16 years ago2007-06-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 13 Jun 2007 22:04:22 +0000 (22:04 -0000)]
2007-06-13  Jonathan Pobst  <monkey@jpobst.com>

* LayoutEventArgs.cs: Add 2.0 AffectedComponent.
* MdiClient.cs: Add 2.0 ScaleControl.
* NativeWindow.cs: Implement 2.0 interface IWin32Window.
* NumericUpDownAccelerationCollection.cs: Add [ListBinding].

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 13 Jun 2007 21:51:09 +0000 (21:51 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Add tests for ScaleControl and GetScaledBounds.

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

16 years ago2007-06-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 13 Jun 2007 21:31:34 +0000 (21:31 -0000)]
2007-06-13  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Implement some scaling methods, stub some RTL methods,
corcompare work.

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

16 years ago2007-06-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 13 Jun 2007 19:21:46 +0000 (19:21 -0000)]
2007-06-13  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: corcompare work.
* FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.

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

16 years ago2007-06-13 Randolph Chung <tausq@debian.org>
Paolo Molaro [Wed, 13 Jun 2007 18:42:34 +0000 (18:42 -0000)]
2007-06-13  Randolph Chung  <tausq@debian.org>

* mini-ops.h: Reorder branch ops so that they match the order of the
corresponding CEE_* ops.  The code expects them this way.
Add new ops for HPPA target.
Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).

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

16 years ago2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 Jun 2007 18:35:58 +0000 (18:35 -0000)]
2007-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* CustomizableLocalFileSettingsProvider.cs :
  - added extern alias to avoid reference and I could enable
    Initialize() again.
  - Copied default user config path stuff (Company/Product/Version)
    from MWF Application.cs.
  - SaveProperties() and SavePropertiesNoRoaming() are unified, and
    mostly rewritten to create userSettings, set value correctly, etc.
  - GetPropertyValues() should collect default values as well.

  It is not enabled yet, as Configuration.Save() seems to do wrong
  and could overwrite application exe.config.

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

16 years ago2007-06-13 Randolph Chung <tausq@debian.org>
Paolo Molaro [Wed, 13 Jun 2007 18:02:47 +0000 (18:02 -0000)]
2007-06-13  Randolph Chung  <tausq@debian.org>

* mini-exceptions.c: Handle cases where the stack grows towards
larger addresses.
Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).

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

16 years ago2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 Jun 2007 17:52:43 +0000 (17:52 -0000)]
2007-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* ConfigurationElement.cs : SerializeToXmlElement() should be
  called regardless of HasValues() return value, especially since
  it could be overriden (e.g. in SettingsValueElement).

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

16 years ago2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 Jun 2007 17:50:52 +0000 (17:50 -0000)]
2007-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* SettingsContext.cs : add internal CurrentSettings property to
  make current ApplicationSettingsBase accessible.
* ApplicationSettingsBase.cs : use above.
* SettingValueElement.cs : implement SerializeToXmlElement().

* SettingElementTest.cs : test initial Value.

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

16 years ago2007-06-13 Randolph Chung <tausq@debian.org>
Paolo Molaro [Wed, 13 Jun 2007 17:41:53 +0000 (17:41 -0000)]
2007-06-13  Randolph Chung  <tausq@debian.org>

* hppa/hppa-codegen.h: Update with more instructions.
* hppa/tramp.c: Disable for linux since we don't support the
interpreter.

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

16 years ago2007-06-13 Randolph Chung <tausq@debian.org>
Paolo Molaro [Wed, 13 Jun 2007 17:40:05 +0000 (17:40 -0000)]
2007-06-13  Randolph Chung  <tausq@debian.org>

* atomic.h: Enable for all hppa targets.
* Makefile.am: rename hppa_atomic.s to hppa_atomic.S so the preprocessor
can handle the file.
* hppa_atomic.s: Renamed to ...
* hppa_atomic.S: ... and updated to work on both HPUX and Linux.

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

16 years ago2007-06-13 Randolph Chung <tausq@debian.org>
Paolo Molaro [Wed, 13 Jun 2007 17:38:19 +0000 (17:38 -0000)]
2007-06-13  Randolph Chung  <tausq@debian.org>

* configure.in: Add AM_PROG_AS, needed for handling assembly file
targets.

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

16 years ago2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 Jun 2007 17:29:58 +0000 (17:29 -0000)]
2007-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
  but since XmlDocumentFragment does not override this property
  it must be handled here).

* XmlDocumentFragmentTests.cs : added InnerText().
* XmlWriterSettingsTests.cs : replace \r\n with \n to make it pass
  on windows.

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

16 years ago2007-06-13 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Wed, 13 Jun 2007 17:13:05 +0000 (17:13 -0000)]
2007-06-13  Jonathan Chambers <joncham@gmail.com>

* src/gunicode.c: Add g_unichar_isxdigit and g_unichar_xdigit_value.
* src/gmisc.c: Add g_win32_getlocale stub.
* src/glib.h: Add declarations of above functions,
GFreeFunc typedef, and CLAMP, GUINT_TO_LE, and threading
macros.

* test/string-util.c: Fix warning.
* test/utf8.c: Add test for g_unichar_xdigit_value.

Contribution is licensed as MIT/X11.

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

16 years agoWed Jun 13 19:13:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 13 Jun 2007 17:01:22 +0000 (17:01 -0000)]
Wed Jun 13 19:13:23 CEST 2007 Paolo Molaro <lupus@ximian.com>

* jit-icalls.c, mini.h, mini.c: added virtual generic invoke
counter.
* driver.c: explain where a non-matching corlib is found.

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

16 years ago2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 Jun 2007 16:14:09 +0000 (16:14 -0000)]
2007-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* ConfigurationSectionGroup.cs
  Configuration.cs : ConfigurationSectionGroup must be initialized
  at least when being added to a collection.

* ConfigurationSectionGroupTest.cs : new (my change is with tests.)

* System.Configuration_test.dll.sources :
  added ConfigurationSectionGroupTest.cs.

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

16 years agoTry temporarily turning on /labels for SWF tests.
Jonathan Pobst [Wed, 13 Jun 2007 14:17:52 +0000 (14:17 -0000)]
Try temporarily turning on /labels for SWF tests.

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

16 years ago2007-06-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 13 Jun 2007 14:16:04 +0000 (14:16 -0000)]
2007-06-13  Jonathan Pobst  <monkey@jpobst.com>

* ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
ControlPaint 2.0 stuffs.

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

16 years ago * verify.c: Fixed pointer type handling, some code and message formating and two...
Rodrigo Kumpera [Wed, 13 Jun 2007 13:56:45 +0000 (13:56 -0000)]
* verify.c: Fixed pointer type handling, some code and message formating and two invalid assigments

2007-06-13  Rodrigo Kumpera  <kumpera@gmail.com>

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

16 years ago2007-06-13 Rodrigo Kumpera <kumpera@gmail.com>
Rodrigo Kumpera [Wed, 13 Jun 2007 12:41:37 +0000 (12:41 -0000)]
2007-06-13  Rodrigo Kumpera  <kumpera@gmail.com>

* verify.c: method invocation is now validated, now we verify parameter types on stack.
Fixed overflow and underflow not aborting the verification process.

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

16 years agoNew test.
Marek Safar [Wed, 13 Jun 2007 12:17:08 +0000 (12:17 -0000)]
New test.

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

16 years agoFixed wrongly saved file
Marek Safar [Wed, 13 Jun 2007 10:19:39 +0000 (10:19 -0000)]
Fixed wrongly saved file

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

16 years agoNew tests.
Marek Safar [Wed, 13 Jun 2007 09:54:49 +0000 (09:54 -0000)]
New tests.

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

16 years ago2007-06-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 13 Jun 2007 09:46:45 +0000 (09:46 -0000)]
2007-06-13  Marek Safar  <marek.safar@gmail.com>

A fix for bug #81748
* cs-tokenizer.cs,
* expression.cs: More checks for non ISO-1 features.

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

16 years ago2007-06-13 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 13 Jun 2007 09:15:08 +0000 (09:15 -0000)]
2007-06-13  Dick Porter  <dick@ximian.com>

* handles.c (timedwait_signal_wait_cond): Alertable waits on
private handles are now interrupted by signalling the same
condition that would end the wait if the handle became signalled,
rather than polling.  (Shared handles still have to poll.)

* threads.c (_wapi_thread_queue_apc): Interrupt the thread if it's
waiting on a handle

* handles-private.h (_wapi_handle_current_thread_set_waiting_on):
Helper functions to inform the APC queuing functions when threads
are waiting for handles, and to interrupt the wait.

* wait.c (WaitForMultipleObjectsEx): Need to tell the handle
waiting functions if any of the handles in question are shared

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

16 years ago2007-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 13 Jun 2007 08:03:09 +0000 (08:03 -0000)]
2007-06-13  Mark Probst  <mark.probst@gmail.com>

* class-internals.h (MonoStats): Added stats entries for dynamic
code allocations.

2007-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c (print_jit_stats): Output dynamic code allocation stats.

2007-06-13  Mark Probst  <mark.probst@gmail.com>

* mono-codeman.c (mono_code_manager_reserve): Gather dynamic code
allocation stats.

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

16 years ago2007-06-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 12 Jun 2007 22:26:08 +0000 (22:26 -0000)]
2007-06-13  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: make sure control has a writable
TemplateControl property prior to assigning values to it.

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 22:11:27 +0000 (22:11 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* TableLayout.cs: When we come across a Dock=Fill control, use the
ExplicitSize to calculate an AutoSize row/column from.
[Fixes bug #81843]

2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutTest.cs: Add test for bug #81843.

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

16 years ago2007-06-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 Jun 2007 21:19:54 +0000 (21:19 -0000)]
2007-06-12  Zoltan Varga  <vargaz@gmail.com>

* loader.c (mono_free_method): Free header->locals and header->clauses.

* marshal.c (mono_mb_create_method): Make a copy of the locals as well in the
dynamic case.

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

16 years ago2007-06-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 Jun 2007 21:18:26 +0000 (21:18 -0000)]
2007-06-12  Zoltan Varga  <vargaz@gmail.com>

* pinvoke2.cs: Add test for instance delegates.

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

16 years ago2007-05-12 Rodrigo Kumpera <kumpera@gmail.com>
Rodrigo Kumpera [Tue, 12 Jun 2007 20:30:19 +0000 (20:30 -0000)]
2007-05-12  Rodrigo Kumpera  <kumpera@gmail.com>

* make_tests.sh: New boolean branch tests
* make_bool_branch_test.sh: Test the stack value that boolean branches use (brfalse / brtrue)
* make_ret_test.sh: removed unused variable from sed expression

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 20:11:30 +0000 (20:11 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* ThreadExceptionDialog.cs: Add 2.0 stuffs.

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 19:55:09 +0000 (19:55 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* UpDownBase.cs: Add 2.0 stuffs.

2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* UpDownBaseTest.cs: Test for Min/Max size.

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

16 years agoNew test inspired by #81807
Marek Safar [Tue, 12 Jun 2007 19:13:42 +0000 (19:13 -0000)]
New test inspired by #81807

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

16 years ago2007-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Jun 2007 19:12:46 +0000 (19:12 -0000)]
2007-06-12  Marek Safar  <marek.safar@gmail.com>

A fix for bug #81807
* statement.cs(Switch.TableSwitchEmit): Define null label when it's not
present inside switch statement and it is required by nullable check.

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

16 years ago2007-06-12 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 12 Jun 2007 18:46:41 +0000 (18:46 -0000)]
2007-06-12  Jonathan Chambers <joncham@gmail.com>

* libmono.vcproj: Add missing files to fix VS build.

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

16 years ago2007-06-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 Jun 2007 17:19:48 +0000 (17:19 -0000)]
2007-06-12  Zoltan Varga  <vargaz@gmail.com>

* threads.c (mono_thread_get_stack_bounds): Fix memory leak.

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

16 years ago2007-06-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 Jun 2007 17:11:16 +0000 (17:11 -0000)]
2007-06-12  Zoltan Varga  <vargaz@gmail.com>

* class.c (setup_interface_offsets): Allocate memory from the image mempool.

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

16 years ago2007-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Jun 2007 16:59:23 +0000 (16:59 -0000)]
2007-06-12  Marek Safar <marek.safar@gmail.com>

* Makefile: Check only major framework version to do 2.x build.

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

16 years ago2007-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Jun 2007 16:58:42 +0000 (16:58 -0000)]
2007-06-12  Marek Safar <marek.safar@gmail.com>

* Makefile: Check only major framework version to do 2.x build.

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

16 years ago2007-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Jun 2007 16:53:55 +0000 (16:53 -0000)]
2007-06-12  Marek Safar  <marek.safar@gmail.com>

* rules.make: Added FRAMEWORK_VERSION_MAJOR.

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 16:09:06 +0000 (16:09 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* NumericUpDown.cs: Add 2.0 stuffs.

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 16:00:09 +0000 (16:00 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 15:35:19 +0000 (15:35 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* Added image-missing.png, image-x-generic.png for PictureBox.

2007-06-08  Jonathan Pobst  <monkey@jpobst.com>

* Makefile, System.Windows.Forms.dll.resources: Added image-missing.png,
image-x-generic.png for PictureBox.

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

16 years ago2007-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Jun 2007 15:34:58 +0000 (15:34 -0000)]
2007-06-12  Marek Safar  <marek.safar@gmail.com>

* Consts.cs.in: Add NET_2_1 constants.

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 15:05:47 +0000 (15:05 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* ErrorProvider.cs: Implement 2.0 stuffs.

2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* ErrorProvider.cs: Test for Clear method.

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

16 years ago2007-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Jun 2007 14:58:56 +0000 (14:58 -0000)]
2007-06-12  Marek Safar  <marek.safar@gmail.com>

A fix for bug #81840
* ecore.cs (SimpleName.ResolveAsTypeStep): Look for non-generic type
when type matching fails.

* namespace.cs: Tiny error message change.

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

16 years agoNew test, updates.
Marek Safar [Tue, 12 Jun 2007 14:56:46 +0000 (14:56 -0000)]
New test, updates.

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

16 years agoadd tests for JSON serializer
Konstantin Triger [Tue, 12 Jun 2007 14:50:59 +0000 (14:50 -0000)]
add tests for JSON serializer

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

16 years agoAdd System.Web.Extensions.csproj file
Konstantin Triger [Tue, 12 Jun 2007 14:48:26 +0000 (14:48 -0000)]
Add System.Web.Extensions.csproj file

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

16 years agoInitial JavaScriptSerializer implementation
Konstantin Triger [Tue, 12 Jun 2007 14:39:43 +0000 (14:39 -0000)]
Initial JavaScriptSerializer implementation

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

16 years agoAdd JSON serialization support based on Json.NET (http://www.newtonsoft.com)
Konstantin Triger [Tue, 12 Jun 2007 14:37:40 +0000 (14:37 -0000)]
Add JSON serialization support based on Json.NET (newtonsoft.com)

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 14:33:37 +0000 (14:33 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* DomainUpDown.cs: Implement 2.0 stuffs.

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

16 years agoadd James Newton-King's JSON serializer LICENSE and grant text
Konstantin Triger [Tue, 12 Jun 2007 14:31:19 +0000 (14:31 -0000)]
add James Newton-King's JSON serializer LICENSE and grant text

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

16 years ago* ConfigurationElement.cs: refactored GetKeyProperties and GetDefaultCollection metho...
Vladimir Krasnov [Tue, 12 Jun 2007 14:21:54 +0000 (14:21 -0000)]
* ConfigurationElement.cs: refactored GetKeyProperties and GetDefaultCollection methods, map should not be used here, Properties will do instead.
Refactored ElementMap class
* ConfigurationElementCollection.cs: fixed InitFromProperty, GetMap() should not be called here
* ElementInformation.cs: fixed Properties, moved to ctor to be thread safe
* PropertyInformation.cs: members assigned readonly modifier

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

16 years ago* System.Web20.csproj: added CompilationSection.cs
Vladimir Krasnov [Tue, 12 Jun 2007 14:01:48 +0000 (14:01 -0000)]
* System.Web20.csproj: added CompilationSection.cs

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

16 years agosvn path=/trunk/mcs/; revision=79263
Jonathan Pobst [Tue, 12 Jun 2007 13:49:51 +0000 (13:49 -0000)]
svn path=/trunk/mcs/; revision=79263

16 years ago* CompilationSection.cs: TARGET_JVM on not supported features
Vladimir Krasnov [Tue, 12 Jun 2007 13:48:18 +0000 (13:48 -0000)]
* CompilationSection.cs: TARGET_JVM on not supported features
* HttpModulesSection.cs: ctor should be static

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

16 years agoWrong error code.
Marek Safar [Tue, 12 Jun 2007 13:42:42 +0000 (13:42 -0000)]
Wrong error code.

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

16 years ago2007-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 12 Jun 2007 13:41:08 +0000 (13:41 -0000)]
2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* PictureBox.cs: Implement 2.0 stuffs.

2007-06-12  Jonathan Pobst  <monkey@jpobst.com>

* PictureBoxTests.cs: Test for 2.0 field defaults.

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

16 years ago* SettingValueElement.cs: fixed stub Properties property for System.Configuration...
Vladimir Krasnov [Tue, 12 Jun 2007 13:39:37 +0000 (13:39 -0000)]
* SettingValueElement.cs: fixed stub Properties property for System.Configuration fixes

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

16 years agoAdd new test, updates
Marek Safar [Tue, 12 Jun 2007 13:00:41 +0000 (13:00 -0000)]
Add new test, updates

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

16 years ago2007-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Jun 2007 12:57:27 +0000 (12:57 -0000)]
2007-06-12  Marek Safar  <marek.safar@gmail.com>

* decl.cs (CheckAbstractAndExtern): Moved to MemberCore for easier error
reporting. Added automatic property check.

* class.cs: Updated after CheckAbstractAndExtern relocation.
(AEventPropertyAccessor.GetSignatureForError): Customized.

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

16 years ago* TabControl.cs: Check if there are tabpages before checking
Andreia Gaita [Tue, 12 Jun 2007 12:02:40 +0000 (12:02 -0000)]
* TabControl.cs: Check if there are tabpages before checking
the selected index - fix #81802 (font changes raise a ResizeTabs
call on controls.add, which blew up nicely with no tabpages)

* Test/System.Windows.Forms/TabControlTest.cs: Add test

2007-06-12  Andreia Gaita  <avidigal@novell.com>

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

16 years agoQuick fix
Raja R Harinath [Tue, 12 Jun 2007 08:53:17 +0000 (08:53 -0000)]
Quick fix
* verify.c (TYPE_MAX): Set it to 8 to match the dimensions of all the tables.

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

16 years ago* ListViewCollectionsTest.cs (SelectedIndexCollectionTest_IndexOfTest):
Raja R Harinath [Tue, 12 Jun 2007 08:02:23 +0000 (08:02 -0000)]
* ListViewCollectionsTest.cs (SelectedIndexCollectionTest_IndexOfTest):
Move to NET_2_0 profile.

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

16 years ago * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
Carlos Alberto Cortez [Tue, 12 Jun 2007 01:52:24 +0000 (01:52 -0000)]
* ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.

2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs:

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