mono.git
18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 15:28:16 +0000 (15:28 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* icall.c (mono_register_jit_icall_wrapper): Register the argument, not
info->wrapper.

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

18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 15:26:44 +0000 (15:26 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_icall_get_wrapper): Fix an ia64 bug introduced by the
lazy icall wrapper changes.

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

18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 13:32:33 +0000 (13:32 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* dominators.c: Replace all the dominator algorithms with faster
ones from the linear-il branch.

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

18 years agoSqliteClient: Use the working HGlobal String-to-Ptr functions rather than CoTaskMem.
Joshua Tauberer [Sat, 11 Mar 2006 12:51:41 +0000 (12:51 -0000)]
SqliteClient: Use the working HGlobal String-to-Ptr functions rather than CoTaskMem.

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

18 years ago* TypeDescriptorTests.cs: Added test for bug #76686.
Gert Driesen [Sat, 11 Mar 2006 09:07:00 +0000 (09:07 -0000)]
* TypeDescriptorTests.cs: Added test for bug #76686.

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

18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 01:44:46 +0000 (01:44 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* inssel-*.brg: Allocate call->out_ireg_args and call->out_freg_args from
the mempool.

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

18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 01:10:19 +0000 (01:10 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
common cases are done first.

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

18 years ago * MdiWindowManager.cs: Recalc the NC area when a window is
Jackson Harper [Sat, 11 Mar 2006 01:08:53 +0000 (01:08 -0000)]
    * MdiWindowManager.cs: Recalc the NC area when a window is
        maximized/restored so that the menu area is drawn on forms that
        don't have a menu.

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

18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 01:06:56 +0000 (01:06 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c: Fix some warnings.

* mini-codegen.c mini-*.c: Allocate call->out_ireg_args and call->out_freg_args
from the mempool.

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

18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 00:51:56 +0000 (00:51 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_compile_method_with_opt): Fix a race in the newly
added code.

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

18 years ago2006-03-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 11 Mar 2006 00:45:30 +0000 (00:45 -0000)]
2006-03-11  Zoltan Varga  <vargaz@gmail.com>

* mini.h: Add a missing prototype.

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

18 years ago2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Sat, 11 Mar 2006 00:37:04 +0000 (00:37 -0000)]
2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
  XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
  us to force a WM_NCCALCRESIZE message being sent. This is needed
  for MDI maximizing.

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

18 years ago * Form.cs: Fix nullref when the window manager hasn't been created yet.
Jackson Harper [Fri, 10 Mar 2006 23:51:24 +0000 (23:51 -0000)]
    * Form.cs: Fix nullref when the window manager hasn't been created yet.
        * Control.cs: Fix nullref when we try to bring a control to the
        front that has no parent.

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

18 years ago - Add a dummy item to the maximized menu so it always has the
Jackson Harper [Fri, 10 Mar 2006 23:34:55 +0000 (23:34 -0000)]
    - Add a dummy item to the maximized menu so it always has the
        correct height. Otherwise when there are no menus we don't get
our
        icon and buttons.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 22:40:03 +0000 (22:40 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* mini.c: Compile icall wrappers lazily.

* mini-codegen.c: Use printf instead of g_print since its much faster.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 22:14:25 +0000 (22:14 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* icall.c (mono_register_jit_icall): Allocate the structure using g_new0

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 22:08:32 +0000 (22:08 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* class-internals.h (MonoJitICallInfo): Add 'trampoline' field used by the JIT.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 21:47:21 +0000 (21:47 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* reader.c (copy_action): Applied patch from Axel T Schreiner (ats@cs.rit.edu).
Fixes a small bug.

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

18 years ago * Form.cs: We need to use the ActiveMenu when calculating menu
Jackson Harper [Fri, 10 Mar 2006 21:34:53 +0000 (21:34 -0000)]
    * Form.cs: We need to use the ActiveMenu when calculating menu
        height.
        * MdiWindowManager.cs: Use the MaximizedMenu for calculating
        height.

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

18 years ago * Form.cs: Make the window_state internal so the window managers
Jackson Harper [Fri, 10 Mar 2006 21:13:49 +0000 (21:13 -0000)]
    * Form.cs: Make the window_state internal so the window managers
        can track it.
        - When an MDI child is maximized let its window manager create
          the
        main menu (so it can add its icon).
        - Notify the window managers of state changes
        - Let the window manager paint its buttons and handle button
        clicks on the menu when it is maximized.
        * InternalWindowManager.cs: Move the prev_bounds into the mdi
        window manager, since tool windows don't use it, only mdi
windows.
        - Tell the main form that we don't want it to handle NCPAINT
        itself to avoid extra painting.
        - Handle clicks on a maximized windows menu.
        - Handle window state changes
        - Handle minimize/maximize clicks correctly by setting the
          window state.
        * MdiWindowManager.cs: Add an icon menu that (the menu you get
        when clicking on the forms icon).
        - New method to create a forms maximized menu. This is its
          normal
        menu + an icon.
        - Handle window state changes.
        - Handle sizing of maximized windows.  Maximized windows are
          just
        drawn bigger then the parent visible area. All controls are
still
        there, they are just outside the visible area (this matches
windows).
        * MdiClient.cs: No scrollbars when a child window is maximized.
        - Let the children windows figure out how big they should be
          when
        sizing maximized windows.
        - Implement a version of ArrangeIconicWindows somewhat similar
          to
        Windows version.  There are some little differences, but I don't
        think any app will rely on the layout of minimized mdi windows.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 21:06:56 +0000 (21:06 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* monobitset.h monobitset.c: Merge lots of optimizations from the linear-il
branch.

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

18 years ago flush
Jackson Harper [Fri, 10 Mar 2006 20:57:09 +0000 (20:57 -0000)]
    flush

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

18 years ago * MenuAPI.cs: Make this available elsewhere. I need it in some
Jackson Harper [Fri, 10 Mar 2006 20:43:56 +0000 (20:43 -0000)]
    * MenuAPI.cs: Make this available elsewhere. I need it in some
        * MDI stuff.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 20:32:41 +0000 (20:32 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* mini.h (mono_bitset_foreach_bit): Use the faster mono_bitset_find_start ()
function.

* mini.c (optimize_branches): Cache the negative result from
remove_block_if_useless ().

* mini.c (optimize_branches): Avoid restarting the iteration after each change.
Also fix some bblock linking issues.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 20:13:33 +0000 (20:13 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* mempool.c (mono_mempool_alloc): Speed this up a bit.
(mono_mempool_alloc0): Ditto.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 10 Mar 2006 20:10:30 +0000 (20:10 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* helpers.c (mono_disassemble_code): Reduce the size of the temporary
assembly files.

* mini.h: Define G_LIKELY/G_UNLIKELY macros for older glib versions.

* mini.h (MonoBasicBlock): Reorganize the fields, putting more frequently
accessed fields first, for better cache behavior.

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

18 years ago2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 20:03:13 +0000 (20:03 -0000)]
2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>

* Padding.cs: Several fixes to allow compiling with csc 2.0

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

18 years ago * StaticSiteMapProvider.cs (UrlToNode): this entire file is #if
Chris Toshok [Fri, 10 Mar 2006 18:44:19 +0000 (18:44 -0000)]
* StaticSiteMapProvider.cs (UrlToNode): this entire file is #if
NET_2_0, no need to embed another #if NET_2_0.

* SiteMapProvider.cs (AddNode): throw NotImplementedException.
(FindSiteMapNode): with null context, return null.  don't throw
ArgumentNullException.
(RemoveNode): throw NotImplementedException.
(IsAccessibleToUser): check arguments to make test pass.  still
lacking the method's actual functionality.
(ResourceKey): add missing property.

2006-03-10  Chris Toshok  <toshok@ximian.com>

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

18 years agoenable these tests on MS, and remove the expected exception.
Chris Toshok [Fri, 10 Mar 2006 18:40:09 +0000 (18:40 -0000)]
enable these tests on MS, and remove the expected exception.

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

18 years ago * HttpRequest.cs (CheckString): add back in the check for \xff1c
Chris Toshok [Fri, 10 Mar 2006 18:35:09 +0000 (18:35 -0000)]
* HttpRequest.cs (CheckString): add back in the check for \xff1c
that i took out.  oops.

2006-03-10  Chris Toshok  <toshok@ximian.com>

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

18 years ago2006-03-10 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 10 Mar 2006 17:58:31 +0000 (17:58 -0000)]
2006-03-10  Chris Toshok  <toshok@ximian.com>

* StaticSiteMapProviderTest.cs: new tests.

* SiteMapProviderTest.cs: new tests.

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

18 years ago2006-03-10 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 10 Mar 2006 17:55:28 +0000 (17:55 -0000)]
2006-03-10  Chris Toshok  <toshok@ximian.com>

* HttpRequest.cs (CheckString): implement as described in
Shackow's "Professional ASP.NET 2.0 Security, Membership, and Role
Management", page 310.

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

18 years agoFri Mar 10 18:21:41 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 10 Mar 2006 17:22:37 +0000 (17:22 -0000)]
Fri Mar 10 18:21:41 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: speedup IList<T> array accesses.

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

18 years agoSorry about that
Miguel de Icaza [Fri, 10 Mar 2006 16:09:37 +0000 (16:09 -0000)]
Sorry about that

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

18 years agoAdded, sorry about that
Miguel de Icaza [Fri, 10 Mar 2006 15:37:47 +0000 (15:37 -0000)]
Added, sorry about that

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

18 years agoUpdate
Raja R Harinath [Fri, 10 Mar 2006 14:08:00 +0000 (14:08 -0000)]
Update

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

18 years ago* ecore.cs (Expression.ResolveAsTypeStep): Remove 1-argument wrapper.
Raja R Harinath [Fri, 10 Mar 2006 13:58:26 +0000 (13:58 -0000)]
* ecore.cs (Expression.ResolveAsTypeStep): Remove 1-argument wrapper.
(Expression.ResolveAsTypeTerminal): Likewise.
* class.cs, decl.cs, delegate.cs, ecore.cs: Update to changes.
* expression.cs, generic.cs, iterators.cs: Likewise.
* parameter.cs, statement.cs, typemanager.cs: Likewise.

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

18 years agoIn System/System.ComponentModel.Design.Serialization:
Raja R Harinath [Fri, 10 Mar 2006 11:51:08 +0000 (11:51 -0000)]
In System/System.ComponentModel.Design.Serialization:
* CodeDomSerializerException.cs: Move to System.Design.dll.

In System.Design:
* System.ComponentModel.Design.Serialization/CodeDomSerializerException.cs:
Moved new-ish implementation here from System.dll.

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

18 years agominor readability improvements
Raja R Harinath [Fri, 10 Mar 2006 11:46:46 +0000 (11:46 -0000)]
minor readability improvements

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

18 years ago not needed anymore
Jackson Harper [Fri, 10 Mar 2006 09:46:27 +0000 (09:46 -0000)]
    not needed anymore

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

18 years ago flush
Jackson Harper [Fri, 10 Mar 2006 09:45:45 +0000 (09:45 -0000)]
    flush

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

18 years agoUnbreak the build -- files weren't committed
Raja R Harinath [Fri, 10 Mar 2006 09:39:36 +0000 (09:39 -0000)]
Unbreak the build -- files weren't committed

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

18 years ago2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 09:18:38 +0000 (09:18 -0000)]
2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>

* ThemeWin32Classic.cs:
  - CheckBox_DrawText: Added logic to not wrap if not enough space
    is available (Fix for bug #77727)
  - RadioButton_DrawText: Added logic not to wrap if not enough
    space is available (Fix for bug #77727). Also removed some
    duplicate code, DrawString always drawing the regular text
    before hitting the if statement.

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

18 years ago2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 08:30:31 +0000 (08:30 -0000)]
2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs: Handle an unmapped window state in SetWindowState

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

18 years ago2006-03-10 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 08:19:54 +0000 (08:19 -0000)]
2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>

* PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
* ContainerControl.cs: Partial implementation of some 2.0 scaling
  methods. Moved the new 2.0 properties into alphabetical order with
  other properties and added MonoTODO tags

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 07:11:44 +0000 (07:11 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* AutoScaleMode.cs: Added. Fix build.

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 06:52:29 +0000 (06:52 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
  XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
  and was requiring premature handle creation for calls from above
* Form.cs, Control.cs: Removed handle arguments from calls to
  CalculateClientRect()

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 06:36:27 +0000 (06:36 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* ListView.cs (HeaderMouseMove): Fix csc compilation.
  drag_column.column_rect is MarshalByRef and can't be used that way

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

18 years ago * System.Windows.Forms/AutoScaleMode.cs: Added new file for
Jonathan Gilbert [Fri, 10 Mar 2006 05:36:37 +0000 (05:36 -0000)]
    * System.Windows.Forms/AutoScaleMode.cs: Added new file for
          the 2.0 enumeration.
        * System.Windows.Forms/ContainerControl.cs: Added stub for
          AutoScaleMode property; outputs a message to stderr to
          encourage people familiar with its behaviour to implement
          it. :-)
        * System.Windows.Forms/Control.cs: Added stub for AutoScale;
          outputs a message just like ContainerControl::AutoScaleMode.
        * System.Windows.Forms.dll.sources: Added AutoScaleMode.cs to
          the list of files to build.

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

18 years ago2006-03-10 Senganal T <tsenganal@novell.com>
Senganal T [Fri, 10 Mar 2006 05:24:51 +0000 (05:24 -0000)]
2006-03-10  Senganal T  <tsenganal@novell.com>

* System.Data.OracleClient.Oci/OciStatementHandle.cs : Get StatementType as a ushort value.
* System.Data.OracleClient.Oci/OciParameterDescriptor.cs : Get DataType as a ushort value.

Fixes bug #71318.

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

18 years ago* DeserializeTests.cs: Enabled tests for bug #77530.
Gert Driesen [Fri, 10 Mar 2006 04:37:54 +0000 (04:37 -0000)]
* DeserializeTests.cs: Enabled tests for bug #77530.
* XmlSerializerTests.cs: Enabled tests for bug #77530.
* XmlTypeMapping.cs: EnumMapMember now also stores value for enums.
Modified EnumMapping.GetXmlName to use XmlCustomFormatter to support
serialization of integral value to enum constant name, and made sure
the exceptions we throw match those of MSFT. In EnumMapping.GetEnumName
throw InvalidOperationException if no matching enum constant exists.
In EnumMap ctor, initialize arrays holding XML names, enum names and
enum values.
* XmlSerializationReaderInterpreter.cs: Pass full type name to
EnumMapping.GetEnumName for construction of exception message.
* XmlSerializer.cs: In Deserialize, wrap InvalidOperationException
and InvalidCastException in another InvalidOperationException to match
MSFT. In Serialize, wrap InvalidOperationException, InvalidCastException
and the inner exception for a TargetInvocationException in an
InvalidOperationException to match MSFT.
* SerializationCodeGenerator.cs: In GenerateGetXmlEnumValue, use
XmlCustomFormatter.FromEnum in order to also support serialization
integral value to enum constant name. In 2.0 profile, throw
InvalidOperationException if numeric value cannot be serialized into
an enum constant value. In GenerateSingleEnumValue, no longer attempt
to parse unknown constant value but instead report it as
InvalidOperationException. Use string.Length instead of "" comparison
to check whether a string is empty. Fixed compiler warnings in
generated code (possible empty statement).
* XmlSerializationWriterInterpreter.cs: Pass full type name to
EnumMap.GetXmlName.
* XmlSchemaImporter.cs: Pass full type name to EnumMap.GetEnumName
to allow it to be used in exception messag* XmlReflectionImporter.cs.
Use FieldInfo instead of MemberInfo for enum fields. Use IsDefined
instead of GetCustomAttributes for checking if a certain attribute
 is defined. Use integral value of enum constant in EnumMapMember ctor.
* SoapReflectionImporter.cs: Use FieldInfo instead of MemberInfo for
enum fields. Use IsDefined instead of GetCustomAttributes for checking
if a certain attribute is defined. Use integral value of enum constant
in EnumMapMember ctor.
es.

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 02:34:31 +0000 (02:34 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* AxHost.cs: Added deserialization constructor for
  AxHost+State (fixes 77743)

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

18 years agocorcompare fixes
Miguel de Icaza [Fri, 10 Mar 2006 00:40:46 +0000 (00:40 -0000)]
corcompare fixes

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 10 Mar 2006 00:16:27 +0000 (00:16 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* gdipFunctions.cs: Removed XCloseDisplay call from Gdi+ shutdown,
  it was causing crashes in the finalizers (bug #77464)

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

18 years ago2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 9 Mar 2006 23:43:53 +0000 (23:43 -0000)]
2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Socket.cs: pass something not empty to the unixep ctor.

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

18 years ago2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 9 Mar 2006 23:40:42 +0000 (23:40 -0000)]
2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* socket-io.c:
(create_object_from_sockaddr): it was allocating 4 extra bytes
for the AF_UNIX data. Fixes bug #77747.

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

18 years ago2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 9 Mar 2006 23:37:54 +0000 (23:37 -0000)]
2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* UnixEndPoint.cs: synch'ed with the one in Mono.Unix.

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

18 years ago2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 9 Mar 2006 23:37:12 +0000 (23:37 -0000)]
2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* UnixEndPoint.cs: added GetHashCode/Equals.

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

18 years ago2006-03-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Mar 2006 23:25:34 +0000 (23:25 -0000)]
2006-03-10  Zoltan Varga  <vargaz@gmail.com>

* MonoCustomAttrs.cs (IsDefined): Avoid a runtime assert if a type
overwrites GetCustomAttributes () but not IsDefined ().

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

18 years agonew test case
Marek Safar [Thu, 9 Mar 2006 23:11:09 +0000 (23:11 -0000)]
new test case

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

18 years ago2006-03-09 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 9 Mar 2006 23:09:45 +0000 (23:09 -0000)]
2006-03-09  Marek Safar  <marek.safar@seznam.cz>

* anonymous.cs (AnonymousMethod.Compatible): Don't crash when parameters
were not resolved

* delegate.cs (Delegate.GetInvokeMethod): Use emitcontext free MemberLookup.
(DelegateCreation.ImplicitStandardConversionExists): New method for just
conversion test.

*ecore.cs (Expression.MemberLookup): Don't ask for emitcontext when it's
not needed.

* assign.cs, constant.cs, convert.cs, delegate.cs, expression.cs:
Updated after another emitcontext usage was clean up. It should help us to
synchronize with gmcs easier.

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

18 years ago * Menu.cs:
Jackson Harper [Thu, 9 Mar 2006 22:01:24 +0000 (22:01 -0000)]
    * Menu.cs:
        * MenuItem.cs: Cheap hack so we can add items to the list
        * without
        the events being raised.  This allows adding mdi items during
        drawing. TODO: Should probably find a better time to add the
items.

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

18 years ago2006-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Mar 2006 21:10:14 +0000 (21:10 -0000)]
2006-03-09  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Handle large methods overflowing the
inline_costs counter. Fixes #77190.

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

18 years ago2006-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Mar 2006 19:23:21 +0000 (19:23 -0000)]
2006-03-09  Zoltan Varga  <vargaz@gmail.com>

* Encoding.cs: Add stub for net 2.0 GetEncodings () method.

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

18 years ago2006-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Mar 2006 19:10:21 +0000 (19:10 -0000)]
2006-03-09  Zoltan Varga  <vargaz@gmail.com>

* CodeDomSerializerException.cs: New file.

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

18 years ago2006-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Mar 2006 18:31:52 +0000 (18:31 -0000)]
2006-03-09  Zoltan Varga  <vargaz@gmail.com>

* MethodInfoTest.cs: Add test for #77668.

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

18 years ago2006-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Mar 2006 18:31:06 +0000 (18:31 -0000)]
2006-03-09  Zoltan Varga  <vargaz@gmail.com>

* MonoMethod.cs (ReturnTypeCustomAttributes): Compute the marshalAs attribute
for the return type as well. Fixes #77668.

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

18 years ago2006-03-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 9 Mar 2006 18:28:55 +0000 (18:28 -0000)]
2006-03-09  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_MonoMethodInfo_get_retval_marshal): New icall.

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

18 years ago* System.Web.vmwcsproj: grasshopper project file fix, added PageParser.jvm.cs, WebSer...
Vladimir Krasnov [Thu, 9 Mar 2006 17:31:40 +0000 (17:31 -0000)]
* System.Web.vmwcsproj: grasshopper project file fix, added PageParser.jvm.cs, WebServiceParser.jvm.cs
* Added System.Web.UI/PageParser.jvm.cs, System.Web.UI/WebServiceParser.jvm.cs

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

18 years ago* DataList.cs: fixed DoItemInLoop method that fixes itemIndex of separator item.
Vladimir Krasnov [Thu, 9 Mar 2006 17:09:45 +0000 (17:09 -0000)]
* DataList.cs: fixed DoItemInLoop method that fixes itemIndex of separator item.
fixed CreateControlStyle to set correct cellspacing of table style
fixed InitializeItem to correct applying template to selected and edit items.

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

18 years ago* Added data/net_1_1/DefaultWsdlHelpGenerator.jvm.aspx with removed proxy class gener...
Vladimir Krasnov [Thu, 9 Mar 2006 16:53:08 +0000 (16:53 -0000)]
* Added data/net_1_1/DefaultWsdlHelpGenerator.jvm.aspx with removed proxy class generation for Grasshopper

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

18 years ago2006-03-09 Mike Kestner <mkestner@novell.com>
Mike Kestner [Thu, 9 Mar 2006 15:01:24 +0000 (15:01 -0000)]
2006-03-09  Mike Kestner  <mkestner@novell.com>

* ListView.cs:
- Added column drag reordering for details view.
- fixed behavior when mouse is dragged off column and
AllowColumnReorder is false.
* ColumnHeader.cs: clone the format too in Clone.
* Theme.cs: add DrawListViewHeaderDragDetails method.
* ThemeWin32Classic.cs:
- impl new method for drawing drag column shadows and targets.
- support column offset for details mode in DrawListViewItem.

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

18 years ago2006-03-09 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 9 Mar 2006 14:27:01 +0000 (14:27 -0000)]
2006-03-09  Dick Porter  <dick@ximian.com>

        * file-io.c (get_file_attributes): Use S_ISLNK not "& S_IFLNK".
        Fixes bug 76966 again.

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

18 years ago2006-03-09 Senganal T <tsenganal@novell.com>
Senganal T [Thu, 9 Mar 2006 13:00:43 +0000 (13:00 -0000)]
2006-03-09  Senganal T  <tsenganal@novell.com>

* Test/System.Data/DataRowCollectionTest2.cs :
* Test/System.Data/DataTableTest2.cs :
- Fixed NotWorking tests.
* System.Data.Common/Index.cs :
- Update () : Add the new record in the correct position
* System.Data/DataRow.cs :
- RejectChanges () :  Add the row to index, if it was in deleted state and
Update the index if in Modified State.
- AcceptChanges () : Do not update the Indexes.
- EndEdit () : Update the indexes even if BeginLoadData has been called
on the table. Ideally, indexes should not be maintained during DataLoad,
but this needs to handled in multiple places correctly. For now, just maintain
the index to ensure correct operation.

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

18 years ago2006-03-09 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 9 Mar 2006 12:06:22 +0000 (12:06 -0000)]
2006-03-09  Martin Baulig  <martin@ximian.com>

* generic.cs (ConstraintChecker.HasDefaultConstructor): Call
TypeManager.DropGenericTypeArguments() on the `atype'; fixes #77548.

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 9 Mar 2006 11:51:58 +0000 (11:51 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* TextControl.cs: Reset the char_count when the document is cleared
  (Fixes bug reported on mono-winforms mailing list)

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

18 years agoAdd back Mono.C5 (it was temporarily disabled by me in r56939).
Martin Baulig [Thu, 9 Mar 2006 11:06:31 +0000 (11:06 -0000)]
Add back Mono.C5 (it was temporarily disabled by me in r56939).

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 9 Mar 2006 11:00:21 +0000 (11:00 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
  of calling base we simply process the key ourselves, since both
  DefWindowProc and the handled method would set m.Result.
  (Fixes #77732)

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

18 years ago2006-03-09 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 9 Mar 2006 10:04:23 +0000 (10:04 -0000)]
2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>

* Form.cs(ScaleCore): No longer calling base.ScaleCore since that
  method also moves the window; instead implemented a copy of
  Control.ScaleCore (Part of fix for #77456)
* TextBoxBase.cs:
  - Created new CreateGraphicsInternal method to allow providing
    a graphics context when no handle is created without triggering
    handle creation. (Part of fix for #77456)
  - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
* TextControl.cs:
  - Switched Constructor to require TextBoxBase instead of Control (to
    allow uncast access to CreateGraphicsInternal)
  - Safeguarded use of owner.Handle property. No longer accessing it
    unless the handle is already created.
  - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
  - Now triggering a recalc when owning control becomes visible
* TextBox.cs, RichTextBox.cs: Switched to use new internal
  TextBoxBase.CreateGraphicsInternal() method to avoid triggering
  premature handle creation (Part of fix for #77456)
* Control.cs:
  - We now only destroy our double-buffering buffers when the
    control is resized or disposed, but not when visibility
    changes. (The code even re-created them twice every time)
  - Now requiring a redraw of the buffer on visibility changes
    (fixes bug 77654 part 2)
  - Not passing OnParentVisibleChanged up unless the control
    is visible
  - CanFocus: Fixed to match MS documentation
  - Focus: Fixed to return actual focus state and to check if
    setting focus is legal before setting it

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

18 years ago2006-03-09 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 9 Mar 2006 09:54:16 +0000 (09:54 -0000)]
2006-03-09  Martin Baulig  <martin@ximian.com>

* ecore.cs (FieldExpr.AddressOf): Don't emit the instance if the
`prepared' flag is set.

* generic.cs (LiftedBinaryOperator): Don't allow `||' or `&&' anymore.
(LiftedBinaryOperator, LiftedUnaryMutator): Fix a few nullable
issues; see gtest-254.cs.

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

18 years ago2006-03-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 9 Mar 2006 08:42:07 +0000 (08:42 -0000)]
2006-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* serial.c: Fix a pair of wrong or incomplete assignations
in set_attributes.

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

18 years ago2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 9 Mar 2006 00:58:31 +0000 (00:58 -0000)]
2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs:
  - We now only destroy our double-buffering buffers when the
    control is resized or disposed, but not when visibility
    changes. (The code even re-created them twice every time)
  - Now requiring a redraw of the buffer on visibility changes
    (fixes bug 77654 part 2)
  - Not passing OnParentVisibleChanged up unless the control
    is visible
  - CanFocus: Fixed to match MS documentation
  - Focus: Fixed to return actual focus state and to check if
    setting focus is legal before setting it
* ThemeWin32Classic.cs: TabPages cannot have focus. Determine
  when to draw focus rectangle by looking at parent focus and
  selected state instead. This fixes TabPages on Linux sometimes
  having none or multiple focus rectangles.
* XplatUIX11.cs (SetFocus):
  - Don't set the focus if the same window already has focus
  - Use SendMessage instead of PostMessage (like it's Win32
    equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
    to match MS behaviour
* TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
  are not selectable.

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

18 years ago2006-03-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 8 Mar 2006 23:48:47 +0000 (23:48 -0000)]
2006-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* SerialPort.cs:
* SerialPortStream.cs: Small advance/cleanups.

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

18 years ago2006-03-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 8 Mar 2006 18:23:00 +0000 (18:23 -0000)]
2006-03-08  Chris Toshok  <toshok@ximian.com>

* data/net_2_0/web.config: add a default siteMap section with the
AspNetXmlSiteMapProvider provider.

* data/net_2_0/machine.config: add system.web/siteMap section
info.

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

18 years agoIn System.Web.Configuration_2.0:
Chris Toshok [Wed, 8 Mar 2006 18:21:02 +0000 (18:21 -0000)]
In System.Web.Configuration_2.0:
2006-03-08  Chris Toshok  <toshok@ximian.com>

* ProvidersHelper.cs: implement this static class properly.

* SiteMapSection.cs (ProvidersInternal): add internal property to
get the actual SiteMapProviderCollection from here.

In System.Web:
2006-03-08  Chris Toshok  <toshok@ximian.com>

* SiteMap.cs: clean this up a bunch.  use the SiteMapSection to
initialize the provider collection, and don't add a provider.
web.config handles that for us.  Also, don't always return true
from get_Enabled.

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

18 years ago2006-03-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 8 Mar 2006 17:29:22 +0000 (17:29 -0000)]
2006-03-08  Chris Toshok  <toshok@ximian.com>

* SiteMapSectionTest.cs: test defaults.

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

18 years ago2006-03-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 8 Mar 2006 17:19:45 +0000 (17:19 -0000)]
2006-03-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* wait.c: speed up WaitFor* when the timeout is 0.

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

18 years agoUpdate
Miguel de Icaza [Wed, 8 Mar 2006 17:09:45 +0000 (17:09 -0000)]
Update

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

18 years agothis is not an exe
Gonzalo Paniagua Javier [Wed, 8 Mar 2006 16:45:59 +0000 (16:45 -0000)]
this is not an exe

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

18 years agoadd some theme tests
Chris Toshok [Wed, 8 Mar 2006 16:34:59 +0000 (16:34 -0000)]
add some theme tests

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

18 years ago2006-03-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 8 Mar 2006 16:12:10 +0000 (16:12 -0000)]
2006-03-08  Chris Toshok  <toshok@ximian.com>

* SiteMapNodeType.cs: nuke.

* BorderStyle.cs, ButtonColumnType.cs, CalendarSelectionMode.cs,
DayNameFormat.cs, ListItemType.cs, ListSelectionMode.cs,
NextPrevFormat.cs, PagerMode.cs, PagerPosition.cs,
RepeatDirection.cs, RepeatLayout.cs, TableRowSection.cs,
TextAlign.cs, TextBoxMode.cs, TitleFormat.cs,
ValidationCompareOperator.cs, ValidationDataType.cs,
ValidationSummaryDisplayMode.cs, ValidatorDisplay.cs: remove
[Serializable] in 2.0.

* DayNameFormat.cs: add "Shortest".

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

18 years ago2006-03-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 8 Mar 2006 12:33:01 +0000 (12:33 -0000)]
2006-03-08  Atsushi Enomoto <atsushi@ximian.com>

* XmlReader.cs: ReadContentAsXXX() just stops at start element,
  without rejecting it as an error.
  ReadElementContentAsXXX() rejects child element nodes.

* XmlReaderCommonTests.cs : Added tests for ReadContentAsString() and
  ReadElementContentAsString().

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

18 years ago2006-03-08 Senganal T <tsenganal@novell.com>
Senganal T [Wed, 8 Mar 2006 11:01:37 +0000 (11:01 -0000)]
2006-03-08  Senganal T  <tsenganal@novell.com>

* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs :
- ProcessColumnInfo () : Set IsAutoIncrement Value for the column.
* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs :
- Added testcase to verify UpdateCommand created with AutoIncrement
columns.
* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Added a test to verify if AutoIncrement
value is set in the SchemaTable.

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

18 years ago2006-03-07 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 8 Mar 2006 09:43:44 +0000 (09:43 -0000)]
2006-03-07  Lluis Sanchez Gual  <lluis@novell.com>

* XmlReflectionImporter.cs: Ignore the element namespace if
  the schema form is set to Unqualified. Fixes bug #75019.

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

18 years ago* LinkButton.cs: fixed AddAttributesToRender, removed not needed language attribute
Vladimir Krasnov [Wed, 8 Mar 2006 09:42:38 +0000 (09:42 -0000)]
* LinkButton.cs: fixed AddAttributesToRender, removed not needed language attribute

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

18 years ago* TextBox.cs: fixed missing value validations,
Vladimir Krasnov [Wed, 8 Mar 2006 09:27:04 +0000 (09:27 -0000)]
* TextBox.cs: fixed missing value validations,
fixed rendering of empty value attribute

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

18 years ago2006-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 8 Mar 2006 07:15:05 +0000 (07:15 -0000)]
2006-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* SslStream.cs, NegotiateStream.cs: Override CanTimeout,
ReadTimeout and WriteTimeout properties, to avoid warnings.

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

18 years ago2006-03-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 8 Mar 2006 07:03:33 +0000 (07:03 -0000)]
2006-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Stream.cs: Add 2.0 members to Stream.cs (CanTimeout,
ReadTimeout and WriteTimeout).

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

18 years ago * gdipFunctions.cs: Rewrote the StreamSeekImpl function to
Jonathan Gilbert [Wed, 8 Mar 2006 05:08:54 +0000 (05:08 -0000)]
   * gdipFunctions.cs: Rewrote the StreamSeekImpl function to
         invalidate the start_buf cached bytes whenever Seek() is
         actually called. If Seek is not called (an invalid 'whence'
         value), then the buffer is not invalidated. This fixes a bug
         with TIFF loading.

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

18 years ago * PictureBox.cs: Revert line I accidently committed last week.
Jackson Harper [Wed, 8 Mar 2006 00:57:36 +0000 (00:57 -0000)]
    * PictureBox.cs: Revert line I accidently committed last week.

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