mono.git
16 years agowe pass ArrayIndex tests
Jb Evain [Thu, 17 Jan 2008 13:04:41 +0000 (13:04 -0000)]
we pass ArrayIndex tests

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

16 years ago2008-01-17 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 17 Jan 2008 13:04:32 +0000 (13:04 -0000)]
2008-01-17  Jb Evain  <jbevain@novell.com>

* Expression.cs, ExpressionPrinter.cs, BinaryExpression.cs:
implement ArrayIndex.

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

16 years ago2008-01-17 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 17 Jan 2008 12:33:01 +0000 (12:33 -0000)]
2008-01-17  Jb Evain  <jbevain@novell.com>

* Expression.cs: Use TypeCode for IsInt and IsNumber.

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 11:45:30 +0000 (11:45 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* HttpWebRequestTest.cs: Disable #353495 since it fails on the 2.0 profile.

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 11:22:20 +0000 (11:22 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Use the no-spilling optimization for CEE_CALLI
as well.

* mini-amd64.c (mono_arch_emit_prolog): Save an instruction if the LMF is at
offset 0.

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 10:55:24 +0000 (10:55 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* method-builder.c (mono_mb_emit_native_call): Get rid of the unused
save_lmf/restore_lmf opcodes.

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 10:43:53 +0000 (10:43 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.h (MONO_ARCH_HAVE_NOTIFY_PENDING_EXC): Turn on this for amd64.

* exceptions-amd64.c (mono_arch_notify_pending_exc): New function to
process async exceptions received while in unmanaged code.

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 10:42:00 +0000 (10:42 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Install a callback with the runtime which will be called
when a thread receives an async exception while in unmanaged code.

* mini.c driver.c: Update after mono_get_native_wrapper () signature change.

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 10:41:39 +0000 (10:41 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Install a callback with the runtime which will be called
when a thread receives an async exception while in unmanaged code.

* mini.c driver.c: Update after mono_get_native_wrapper () signature change.

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

16 years agoRemove TARGET_JVM directive
Roei Erez [Thu, 17 Jan 2008 10:38:22 +0000 (10:38 -0000)]
Remove TARGET_JVM directive

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 10:38:10 +0000 (10:38 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* threads.c (mono_threads_install_notify_pending_exc): New function to
install a callback notifying the JIT there is a pending exception on a thread.
(mono_thread_request_interruption): Call the new callback.
(mono_thread_get_and_clear_pending_exception): New function to return the
exception pending on a thread.

* marshal.c (mono_marshal_get_icall_wrapper): Add a check_exceptions argument
to turn off checking for pending exceptions.
(mono_marshal_get_native_wrapper): Ditto.

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

16 years ago2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 17 Jan 2008 09:56:59 +0000 (09:56 -0000)]
2008-01-17 Igor Zelmanovich  <igorz@mainsoft.com>

* HtmlSelect.cs: refactoring.

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

16 years ago2008-01-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Jan 2008 09:55:34 +0000 (09:55 -0000)]
2008-01-17  Zoltan Varga  <vargaz@gmail.com>

* mini-s390x.c (mono_arch_output_basic_block): Fix s390x build.

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

16 years ago2008-01-17 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 17 Jan 2008 09:47:54 +0000 (09:47 -0000)]
2008-01-17 Igor Zelmanovich  <igorz@mainsoft.com>

* HtmlSelect.cs: fix databinding (only 2.0), state management.

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

16 years ago2008-01-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Jan 2008 07:16:11 +0000 (07:16 -0000)]
2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>

        * XplatUIStructs.cs, X11Keyboard.cs :
          added some more VK_* keys to be handled.

        * create-keyboard.cs : added some more VK_OEM_* keys.
        * keyboards.resx : regenerated.

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

16 years ago2008-01-16 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 17 Jan 2008 04:03:31 +0000 (04:03 -0000)]
2008-01-16  Miguel de Icaza  <miguel@novell.com>

* Expression.cs: Add support for user-defined operators.

Put back various binary operator tests.

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

16 years ago * cpu-g4.md:
Wade Berrier [Thu, 17 Jan 2008 03:35:55 +0000 (03:35 -0000)]
   * cpu-g4.md:
       * cpu-arm.md:
       * cpu-s390x.md:
       fix build

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

16 years ago* Control.cs: Check if there is a container before setting or getting
Andreia Gaita [Wed, 16 Jan 2008 23:31:29 +0000 (23:31 -0000)]
* Control.cs: Check if there is a container before setting or getting
the validation flag.

2008-01-16  Andreia Gaita <avidigal@novell.com>

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

16 years ago* ContainerControl.cs: Add flag to track if a control cancels validation,
Andreia Gaita [Wed, 16 Jan 2008 21:59:46 +0000 (21:59 -0000)]
* ContainerControl.cs: Add flag to track if a control cancels validation,
so we don't fire click events.

* Control.cs:
- (HandleClick) Check if validation was cancelled before  firing the click
events (doubleclicks are fired, but not clicks)
- (WmLButtonDown) Reset validation flag. The flag is normally reset on
ContainerControl.set_ActiveControl, but in the case of non-selectable
controls, like a Label, activecontrol is not set.

* ButtonBase.cs: Only fire clicks if validation passes.

Fixes #353310

2008-01-16  Andreia Gaita <avidigal@novell.com>

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

16 years agoIn .:
Geoff Norton [Wed, 16 Jan 2008 21:27:02 +0000 (21:27 -0000)]
In .:
2008-01-16  Geoff Norton  <gnorton@novell.com>

* XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
trunk

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 20:25:23 +0000 (20:25 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_output_basic_block): Remove some gccism which prevents
compilation with sun cc.

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

16 years agoIn .:
Geoff Norton [Wed, 16 Jan 2008 20:01:46 +0000 (20:01 -0000)]
In .:
* XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
AddExpose instead of trusting apples compositing manager which doesn't
work for our use case.  Remove some dead code causing warnings and
redecorate some other code to prevent warnings.

2008-01-16  Geoff Norton  <gnorton@novell.com>

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 19:59:10 +0000 (19:59 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* threads-types.h: Get rid of the unnecessary extern declarations.

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

16 years agoIn .:
Geoff Norton [Wed, 16 Jan 2008 19:56:29 +0000 (19:56 -0000)]
In .:
2008-01-06  Geoff Norton  <gnorton@novell.com>

* ControlHandler.cs:  Flicker be gone!  Generate our messages in
AddExpose instead of trusting apples compositing manager which doesn't
work for our use case.

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

16 years ago2008-01-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 16 Jan 2008 19:12:33 +0000 (19:12 -0000)]
2008-01-16  Jonathan Pobst  <monkey@jpobst.com>

* FolderBrowserDialog.cs: If we cannot interpret the user's requested
SelectedPath, just display the default dialog instead of crashing.
[Fixes bug #348989]

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

16 years ago* TypeBuilder.cs (GetConstructorImpl): Use GetConstructor on created
Gert Driesen [Wed, 16 Jan 2008 19:00:34 +0000 (19:00 -0000)]
* TypeBuilder.cs (GetConstructorImpl): Use GetConstructor on created
type. Original implementation did not take into account the binding
flags and failed with a NotSupportedException if the default binder
checked if a ParamArrayAttribute was defined. It also does not make
sense to return a ConstructorBuilder once the type is emitted.
(GetConstructors): When the type is emitted, use GetConstructors
on the created type.
(GetFields): Removed duplicate code.
(GetMethodsByName): Fixed matching of methods in the parent class
depending on their accessibility:
- Private: never include private methods of parent
- Public: ignore if Public flag is not set
- Assembly: ignore if NonPublic is not set or when on the 1.0 profile
- Rest (Family, FamANDAssem, FamORAssem): ignore if NonPublic flag is
not set
Static methods of the parent are ignored unless the FlattenHierarchy
flag is set.
(GetProperties): When the type is emitted, use GetProperties on the
created type as the TypeBuilder implementation itself does not include
properties from the parent class.
* TypeBuilderTest.cs: Enabled tests for bug #322762.

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

16 years ago* icall.c (ves_icall_Type_GetField): if NonPublic flag is set, only
Gert Driesen [Wed, 16 Jan 2008 19:00:19 +0000 (19:00 -0000)]
* icall.c (ves_icall_Type_GetField): if NonPublic flag is set, only
return field from parent class if not private.
(ves_icall_Type_GetFields_internal): if NonPublic flag is set, only
returns fields from parent class if they are not private.
(method_nonpublic): added function to determine if a given method
should be considered non-public. Returns false for private methods
on parent class, and internal methods from parent on the 1.0 profile.
(ves_icall_Type_GetMethodsByName): if NonPublic flag is set, then
use method_nonpublic function to determine whether method should be
returned.
(property_accessor_public): use newly introduced method_nonpublic
function to determine whether accessor is non-public.
(ves_icall_MonoType_GetEvent): If NonPublic flag is set, only return
event from parent class if not private. Only return static event if
Static flag is set, and only return static event from parent class if
FlattenHierarchy flag is set.
(ves_icall_Type_GetEvents_internal): If NonPublic flag is set, only
include non-private events from parent class.

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 18:21:36 +0000 (18:21 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_NumberFormatter_GetFormatterTables): Fix a
warning.

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

16 years ago* CodeGeneratorFromCompileUnitTest.cs: Avoid using "", and use
Gert Driesen [Wed, 16 Jan 2008 18:15:25 +0000 (18:15 -0000)]
* CodeGeneratorFromCompileUnitTest.cs: Avoid using "", and use
Assert instead of Assertion.
* CodeGeneratorFromNamespaceTest.cs: Added tests for type parameters.
* CodeGeneratorFromNamespaceTest.cs: Added tests for type parameters.
* CSharpCodeGenerator.cs: Cosmetic changes to the code emitted for
type constraints. Allows our unit tests to pass on both Mono and MS.
* VBCodeGenerator.cs: Implement support for type parameters.

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 18:06:57 +0000 (18:06 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* cpu-*.md: Fix the build.

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

16 years ago2008-01-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 16 Jan 2008 18:03:40 +0000 (18:03 -0000)]
2008-01-14  Marek Safar  <marek.safar@gmail.com>

  * generic.cs, typemanager.cs, lambda.cs, parameter.cs, ecore.cs, constant.cs,
  expression.cs: Implemented Add, And, AndAlso, and ArrayIndex (without unary
  operator yet).

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 17:57:35 +0000 (17:57 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* cpu-x86.md: Fix the length of some load membase opcodes. Fixes #354241.

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 17:47:25 +0000 (17:47 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* statement.cs: Avoid declaring an IL variable for this_variable since it is
not accessed from the generated IL.

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

16 years agoIn .:
Geoff Norton [Wed, 16 Jan 2008 17:30:55 +0000 (17:30 -0000)]
In .:
* ControlHandler.cs:  Dont send another invalidate when carbon
already knows that the control is dirty.

2008-01-16  Geoff Norton  <gnorton@novell.com>

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

16 years agoIn .:
Geoff Norton [Wed, 16 Jan 2008 17:29:01 +0000 (17:29 -0000)]
In .:
2008-01-16  Geoff Norton  <gnorton@novell.com>

* XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
carbon signals us to redraw.  Fixes another portion of the flickering bug

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

16 years ago2008-01-16 Wade Berrier <wberrier@novell.com>
Wade Berrier [Wed, 16 Jan 2008 17:14:51 +0000 (17:14 -0000)]
2008-01-16  Wade Berrier <wberrier@novell.com>

       * security.c: Add assembly.h header to appease some warnings

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 17:02:59 +0000 (17:02 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.h: Add some comments to the MonoLMF structure.

* mini-ops.h cpu-amd64.c: Add a OP_AMD64_SAVE_SP_TO_LMF opcode.

* mini-amd64.c exceptions-amd64.c tramp-amd64.c: Avoid setting the rip field
in the LMF structure if possible. This saves two instructions in the
managed->native wrappers.

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 15:58:41 +0000 (15:58 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* BinaryReader.cs: Fix ReadCharBytes method to avoid non-linear behavior.
Fixes #352184.

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 15:48:56 +0000 (15:48 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* DateTimeOffset.cs: Fix warnings.

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

16 years ago2008-01-16 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 16 Jan 2008 15:08:23 +0000 (15:08 -0000)]
2008-01-16  Dick Porter  <dick@ximian.com>

* threads.c (_wapi_thread_set_termination_details): Move the
thread abandonment to outside the shared handle lock.  Fixes bug
349680.

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

16 years agoNewline at end of file
Marek Safar [Wed, 16 Jan 2008 14:58:17 +0000 (14:58 -0000)]
Newline at end of file

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

16 years ago2008-01-16 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Wed, 16 Jan 2008 14:46:49 +0000 (14:46 -0000)]
2008-01-16 Igor Zelmanovich <igorz@mainsoft.com>

* Wizard.cs:
manage history state on "MovePrevious" action.

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

16 years ago2008-01-16 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 16 Jan 2008 14:38:32 +0000 (14:38 -0000)]
2008-01-16  Dick Porter  <dick@ximian.com>

* versioninfo.c (VerQueryValue): Include trailing null in returned
string length, for MS compatibility.

2008-01-16  Dick Porter  <dick@ximian.com>

* process.c (process_module_string_read): Remove trailing null
when saving string.

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

16 years ago2008-01-16 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Wed, 16 Jan 2008 14:27:44 +0000 (14:27 -0000)]
2008-01-16  Juraj Skripsky  <js@hotfeet.ch>

* HttpRequest.cs (get_UrlReferrer): Handle case when headers contain
invalid Url for referer.

2008-01-16  Juraj Skripsky  <js@hotfeet.ch>

* HttpCookieCollection.cs (AllKeys): Use Keys.CopyTo().

2008-01-16  Juraj Skripsky  <js@hotfeet.ch>

* HttpRequestTest.cs (TestReferer): added test for invalid referer url.

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

16 years ago2008-01-16 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 16 Jan 2008 14:14:08 +0000 (14:14 -0000)]
2008-01-16  Jb Evain  <jbevain@novell.com>

* Expression.cs, ExpressionPrinter.cs: fix call for static methods.

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

16 years ago2008-01-16 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 16 Jan 2008 14:12:55 +0000 (14:12 -0000)]
2008-01-16  Jb Evain  <jbevain@novell.com>

* ExpressionTest_CallWithExpression.cs: test for static method.

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 13:48:18 +0000 (13:48 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h *.md: Make some opcodes names uniform by removing the op_ prefix.

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

16 years ago * TypeTest.cs: Added test for GetConstructor (Type []).
Gert Driesen [Wed, 16 Jan 2008 13:44:10 +0000 (13:44 -0000)]
 * TypeTest.cs: Added test for GetConstructor (Type []).

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

16 years agoTARGET_JVM: must clean up form when resetting HttpWorkerRequest
Konstantin Triger [Wed, 16 Jan 2008 13:32:41 +0000 (13:32 -0000)]
TARGET_JVM: must clean up form when resetting HttpWorkerRequest

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

16 years ago2008-01-16 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Wed, 16 Jan 2008 13:32:39 +0000 (13:32 -0000)]
2008-01-16 Igor Zelmanovich <igorz@mainsoft.com>

* BulletedList.cs:
resolve BulletImageUrl,
register for event validation.

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

16 years agofixed GenerateScriptTypes feature
Igor Zelmanovich [Wed, 16 Jan 2008 13:07:34 +0000 (13:07 -0000)]
fixed GenerateScriptTypes feature
consider generics types.

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

16 years ago2008-01-16 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 16 Jan 2008 10:36:33 +0000 (10:36 -0000)]
2008-01-16  Mark Probst  <mark.probst@gmail.com>

* class-internals.h: A new data structure describing the layout of
a runtime generic context (MonoRuntimeGenericContextTemplate).

* metadata-internals.h: Added a hash table to MonoDomain that maps
from open generic classes to their runtime generic context
templates.

* object.c: Building of the runtime generic context, including
proper handling of generic type arguments of superclasses.
Building of the runtime generic context according to the template.

2008-01-16  Mark Probst  <mark.probst@gmail.com>

* generic-sharing.c: New type argument lookup code which uses the
runtime generic context template.

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

16 years agoregister namespaces for script types if need
Igor Zelmanovich [Wed, 16 Jan 2008 10:25:40 +0000 (10:25 -0000)]
register namespaces for script types if need

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

16 years ago2008-01-16 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 16 Jan 2008 09:44:43 +0000 (09:44 -0000)]
2008-01-16  Everaldo Canuto  <ecanuto@novell.com>

* Form.cs: Prevent the MdiParent property to be set when value is the same
as value already set. Fixes bug #328019.

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

16 years ago2008-01-16 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 16 Jan 2008 09:27:35 +0000 (09:27 -0000)]
2008-01-16  Everaldo Canuto  <ecanuto@novell.com>

* Form.cs: Don't set mdi_parent as null when mdi window close is prevented,
it prevents NRE when closing mdi child windows. Fixes bug #325211.

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

16 years ago2008-01-16 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 16 Jan 2008 09:14:20 +0000 (09:14 -0000)]
2008-01-16  Everaldo Canuto  <ecanuto@novell.com>

* InternalWindowManager.cs: Invalidade close button after mouse up when
mdi form is prevented to close.

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

16 years agofixed resolving relative path for services
Igor Zelmanovich [Wed, 16 Jan 2008 09:09:27 +0000 (09:09 -0000)]
fixed resolving relative path for services

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

16 years agomerge with r91828, fix of 9542
Vladimir Krasnov [Wed, 16 Jan 2008 09:02:04 +0000 (09:02 -0000)]
merge with r91828, fix of 9542

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

16 years ago2008-01-16 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 16 Jan 2008 09:01:12 +0000 (09:01 -0000)]
2008-01-16  Everaldo Canuto  <ecanuto@novell.com>

* MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
thanks to Andy Hume. Fixes bug #325433.

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

16 years ago2008-01-16 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Wed, 16 Jan 2008 07:09:16 +0000 (07:09 -0000)]
2008-01-16  Juraj Skripsky  <js@hotfeet.ch>

* CSharpCodeGenerator.cs (GenerateGenericsConstraints): Take
solitary constructor constraints into account. Fixes bug #353921.

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

16 years agoTests for 2.0 GetDeleteCommand, GetUpdateCommand and GetInsertCommand
Veerapuram Varadhan [Wed, 16 Jan 2008 06:08:48 +0000 (06:08 -0000)]
Tests for 2.0 GetDeleteCommand, GetUpdateCommand and GetInsertCommand
APIs

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

16 years agoMissing 2.0 APIs
Veerapuram Varadhan [Wed, 16 Jan 2008 06:03:17 +0000 (06:03 -0000)]
Missing 2.0 APIs

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

16 years agoIn .:
Geoff Norton [Wed, 16 Jan 2008 04:24:06 +0000 (04:24 -0000)]
In .:
2008-01-16  Geoff Norton  <gnorton@novell.com>

* KeyboardHandler.cs: Track the control key(s) as well and put them
into KeyboardModifiers as toggled.
* MouseHandler.cs: Support simulating right click on single-button
mouse macintoshs with the standard Control+Click usage pattern.

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

16 years ago2008-01-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 16 Jan 2008 01:31:44 +0000 (01:31 -0000)]
2008-01-15  Miguel de Icaza  <miguel@novell.com>

* Expression.cs: Do validation on the method parameters and use
the return type if provided.

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

16 years agoIn .:
Geoff Norton [Wed, 16 Jan 2008 00:34:01 +0000 (00:34 -0000)]
In .:
* ControlHandler.cs:  Only mark the dirty area as dirty when we are
told to expose by the subsystem.

2008-01-15  Geoff Norton  <gnorton@novell.com>

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 00:21:09 +0000 (00:21 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* ConfigurationElement.cs: Allow non-public constructors. Fixes #353554.

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Jan 2008 00:17:22 +0000 (00:17 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* PropertyInformation.cs: Allow non-public constructors. Fixes #353557.

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

16 years ago* LinkLabel.cs: Reset focused_index when resellecting the control.
Andreia Gaita [Tue, 15 Jan 2008 23:55:13 +0000 (23:55 -0000)]
* LinkLabel.cs: Reset focused_index when resellecting the control.
Fixes #323190

2008-01-16  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 15 Jan 2008 23:47:01 +0000 (23:47 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* ConfigurationElement.cs: Consider non-public properties as well. Fixes
#353553.

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

16 years agoIn .:
Geoff Norton [Tue, 15 Jan 2008 23:09:34 +0000 (23:09 -0000)]
In .:
* MouseHandler.cs: Avoid a NRE if we dont know the window the event
came in on.

2008-01-15  Geoff Norton  <gnorton@novell.com>

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

16 years ago2008-01-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 15 Jan 2008 23:01:05 +0000 (23:01 -0000)]
2008-01-16  Zoltan Varga  <vargaz@gmail.com>

* CSharpCodeCompiler.cs: Avoid setting results.CompiledAssembly since it might
be a netmodule. Fixes #353536.

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

16 years agoIn .:
Geoff Norton [Tue, 15 Jan 2008 22:46:52 +0000 (22:46 -0000)]
In .:
2008-01-15  Geoff Norton  <gnorton@novell.com>

* ApplicationHandler.cs:  Fix the Grab declaration.
* MouseHandler.cs: Fix the grab declaration and a minor optimization.

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

16 years ago2008-01-15 Geoff Norton <gnorton@novell.com>
Geoff Norton [Tue, 15 Jan 2008 22:45:28 +0000 (22:45 -0000)]
2008-01-15  Geoff Norton  <gnorton@novell.com>

        * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed
        messages.

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

16 years agoupdate csproj
Jb Evain [Tue, 15 Jan 2008 22:13:48 +0000 (22:13 -0000)]
update csproj

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

16 years ago2008-01-15 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Tue, 15 Jan 2008 22:02:38 +0000 (22:02 -0000)]
2008-01-15  Andreas Faerber  <andreas.faerber@web.de>

* configure.ac: Add default G_BREAKPOINT implementation.
Fix typo in breakpoint CPU output.

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

16 years agoadd CallWithExpression tests
Jb Evain [Tue, 15 Jan 2008 21:58:28 +0000 (21:58 -0000)]
add CallWithExpression tests

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

16 years ago2008-01-15 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 15 Jan 2008 21:57:27 +0000 (21:57 -0000)]
2008-01-15  Jb Evain  <jbevain@novell.com>

* ExpressionTest_CallWithExpression.cs: tests
for Call (Expression, ...)

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

16 years ago2008-01-15 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 15 Jan 2008 21:57:07 +0000 (21:57 -0000)]
2008-01-15  Jb Evain  <jbevain@novell.com>

* MethodCallExpression.cs, Expression.cs
ExpressionPrinter.cs: Implement Call (Expression, ...)

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

16 years ago2008-01-15 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 15 Jan 2008 21:54:44 +0000 (21:54 -0000)]
2008-01-15  Jb Evain  <jbevain@novell.com>

* Enumerable.cs: clean the ToReadOnlyCollection extension
method.

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

16 years ago2008-01-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 15 Jan 2008 21:44:59 +0000 (21:44 -0000)]
2008-01-15  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_setup_fields): Set field.count for generic instances.
Fixes #350856.

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

16 years agorename the specialized Call test fixture
Jb Evain [Tue, 15 Jan 2008 21:38:15 +0000 (21:38 -0000)]
rename the specialized Call test fixture

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

16 years ago2008-01-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 15 Jan 2008 20:13:05 +0000 (20:13 -0000)]
2008-01-15  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Avoid emitting a write barrier when storing NULL.

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

16 years ago2008-01-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 15 Jan 2008 19:27:08 +0000 (19:27 -0000)]
2008-01-15  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (add_general): Fix arm eabi parameter passing.
(mono_arch_output_basic_block): Fix localloc implementation.

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

16 years ago* XmlParserContextTests.cs: Added ctor tests.
Gert Driesen [Tue, 15 Jan 2008 17:40:34 +0000 (17:40 -0000)]
* XmlParserContextTests.cs: Added ctor tests.
* System.Xml_test.dll.sources: added XmlParserContextTests.cs.

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

16 years ago2008-01-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 15 Jan 2008 17:35:04 +0000 (17:35 -0000)]
2008-01-15  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
of truncate.

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

16 years ago2008-01-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 15 Jan 2008 17:32:10 +0000 (17:32 -0000)]
2008-01-15  Zoltan Varga  <vargaz@gmail.com>

* image.c (do_mono_image_open): Pass TRUE as last_exists to
mono_portability_find_file (). Fixes #325466.
(mono_image_get_public_key): Fix a warning.

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

16 years agofixed GenerateScriptTypes feature
Igor Zelmanovich [Tue, 15 Jan 2008 17:04:38 +0000 (17:04 -0000)]
fixed GenerateScriptTypes feature

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

16 years agoadded TARGET_J2EE ifdef
Igor Zelmanovich [Tue, 15 Jan 2008 17:00:48 +0000 (17:00 -0000)]
added TARGET_J2EE ifdef

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

16 years agoconsider args correctly
Igor Zelmanovich [Tue, 15 Jan 2008 16:59:37 +0000 (16:59 -0000)]
consider args correctly

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

16 years ago2008-01-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 15 Jan 2008 15:35:29 +0000 (15:35 -0000)]
2008-01-15  Jonathan Pobst  <monkey@jpobst.com>

* ContainerControl.cs: Setting AutoScaleMode to anything should set
Form.AutoScale to false.
* Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
AutoScaleBaseSize should be changed on Font change unless it has been
explicitly set.
[Fixes bug #353827]

2008-01-15  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Add test for bug #353827.

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

16 years agosvn path=/trunk/mcs/; revision=92957
Everaldo Canuto [Tue, 15 Jan 2008 15:28:54 +0000 (15:28 -0000)]
svn path=/trunk/mcs/; revision=92957

16 years ago * MenuAPI.cs: On instance of MenuTracker check if source control is
Everaldo Canuto [Tue, 15 Jan 2008 15:20:33 +0000 (15:20 -0000)]
* MenuAPI.cs: On instance of MenuTracker check if source control is
ToolStripOverflow and use properly method to find form.
[Fixes bug #338511]

2008-01-15  Everaldo Canuto  <ecanuto@novell.com>

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

16 years agoadd new .ctor
Jb Evain [Tue, 15 Jan 2008 14:51:19 +0000 (14:51 -0000)]
add new .ctor

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

16 years ago2008-01-15 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Tue, 15 Jan 2008 14:47:33 +0000 (14:47 -0000)]
2008-01-15  Everaldo Canuto  <ecanuto@novell.com>

[Fixes bug #323241 Transparent toolbar support]

* ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
is flat.

* Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
defined in control style to mimic win32 behavior.

* ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar,
it will be transparent.

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

16 years agocondition tests passes
Jb Evain [Tue, 15 Jan 2008 14:21:58 +0000 (14:21 -0000)]
condition tests passes

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

16 years ago2008-01-15 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 15 Jan 2008 14:21:33 +0000 (14:21 -0000)]
2008-01-15  Jb Evain  <jbevain@novell.com>

* ExpressionTest_Condition.cs: add tests for Expression.Condition.

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

16 years ago2008-01-15 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 15 Jan 2008 14:20:35 +0000 (14:20 -0000)]
2008-01-15  Jb Evain  <jbevain@novell.com>

* Expression.cs, ConditionalExpressionExpression.cs
ExpressionPrinter.cs : implement Expression.Condition.

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

16 years agowhat a wonderful place to use the null coalescing operator
Jb Evain [Tue, 15 Jan 2008 14:00:06 +0000 (14:00 -0000)]
what a wonderful place to use the null coalescing operator

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

16 years ago2008-01-15 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 15 Jan 2008 13:55:15 +0000 (13:55 -0000)]
2008-01-15  Jb Evain  <jbevain@novell.com>

* ExpressionTest.cs: tests for Expression.Parameter

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

16 years ago2008-01-15 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 15 Jan 2008 13:55:05 +0000 (13:55 -0000)]
2008-01-15  Jb Evain  <jbevain@novell.com>

* Expression.cs,
ParameterExpression.cs,
ExpressionPrinter.cs: implement Expression.Parameter

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