mono.git
18 years ago2006-01-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 25 Jan 2006 17:58:20 +0000 (17:58 -0000)]
2006-01-25  Chris Toshok  <toshok@ximian.com>

* AuthorizationRule.cs (CheckUser): handle * and ?, and use
String.Compare instead of ==.
(CheckVerb): use String.Compare instead of ==.

* AuthorizationSection.cs (IsValidUser): return false for a null
user.

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

18 years ago2006-01-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 25 Jan 2006 16:58:04 +0000 (16:58 -0000)]
2006-01-25  Chris Toshok  <toshok@ximian.com>

* KeyValueInternalCollection.cs: don't use a nested collection,
just defer to our base class.  This fixes usage of
ConfigurationManager.AppSettings.Keys.

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

18 years ago2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Jan 2006 15:36:37 +0000 (15:36 -0000)]
2006-01-26  Atsushi Enomoto <atsushi@ximian.com>

* XmlWriter.cs : Dispose() is protected.

* XmlSchemaValidationException.cs : fixed .ctor() signatures.

* XPathNavigator.cs : fixed IsNode signature found by updated
  corcompare.

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

18 years ago2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Jan 2006 15:34:17 +0000 (15:34 -0000)]
2006-01-25  Atsushi Enomoto  <atsushi@ximian.com>

* XsltContext.cs : fixed method signatures found by updated
  corcompare.

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

18 years ago* get.c (stringify_double): New. Fix printing of float/doubles to enable
Ankit Jain [Wed, 25 Jan 2006 14:59:46 +0000 (14:59 -0000)]
* get.c (stringify_double): New. Fix printing of float/doubles to enable
roundtripping.
* get.h (stringify_double): Add new function.
(get_constant): Use stringify_double.
* dis-cil.c (disassemble_cil): Likewise.

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

18 years ago2006-01-25 Massimiliano Mantione <massi@ximian.com>
Massimiliano Mantione [Wed, 25 Jan 2006 14:48:17 +0000 (14:48 -0000)]
2006-01-25  Massimiliano Mantione  <massi@ximian.com>

        * aliasing.c: Fixed aliasing issue on 64 bit archs.

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

18 years ago* metadata.c (mono_type_create_from_typespec_full): Fix caching of types.
Raja R Harinath [Wed, 25 Jan 2006 14:31:08 +0000 (14:31 -0000)]
* metadata.c (mono_type_create_from_typespec_full): Fix caching of types.

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

18 years ago* metadata-internals.h (mono_generic_params_with_ambiguous_names): Add declaration and
Ankit Jain [Wed, 25 Jan 2006 10:45:46 +0000 (10:45 -0000)]
* metadata-internals.h (mono_generic_params_with_ambiguous_names): Add declaration and
move definition to ..
* metadata.c (mono_generic_params_with_ambiguous_names): .. here.

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

18 years agoIn mono/dis:
Ankit Jain [Wed, 25 Jan 2006 10:13:30 +0000 (10:13 -0000)]
In mono/dis:

* get.c (dis_stringify_type): For MVAR/VAR, print number if the generic param
is in the mono_generic_params_with_ambiguous_names table.

In mono/metadata:

* metadata-internals.h (mono_generic_params_with_ambiguous_names): New.
* metadata.c (mono_metadata_load_generic_params): Fill mono_generic_params_with_ambiguous_names
as necessary.

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

18 years agoRemove test checks.
Paolo Molaro [Wed, 25 Jan 2006 09:19:24 +0000 (09:19 -0000)]
Remove test checks.

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

18 years agoredo improved r55895
Konstantin Triger [Wed, 25 Jan 2006 08:36:07 +0000 (08:36 -0000)]
redo improved r55895

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

18 years agorefactoring for ColorFormatter Read/Write
Konstantin Triger [Wed, 25 Jan 2006 08:32:05 +0000 (08:32 -0000)]
refactoring for ColorFormatter Read/Write

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

18 years ago2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Jan 2006 07:23:45 +0000 (07:23 -0000)]
2006-01-25  Atsushi Enomoto  <atsushi@ximian.com>

* CultureInfo.cs : Clone() attempted to clone number and date time
  formats, thus failed. Fixed bug #77347.

* CultureInfoTest.cs : added test for bug #77347.

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

18 years ago2006-01-25 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Wed, 25 Jan 2006 06:01:23 +0000 (06:01 -0000)]
2006-01-25  Cesar Lopez Nataren  <cnataren@novell.com>

* FunctionExpression.cs: Set the prefix at resolve time not at
constructor time. Solves a bug related to the use of nested
FunctionExpression's.

2006-01-24  Cesar Lopez Nataren  <cnataren@novell.com>

* ast.cs (Function.set_prefix): use InFunction and
GetContainerFunction for retrieving the container function.

* Statement.cs (Return): Implement ICanModifyContext as can return
a FunctionExpression.

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

18 years ago2006-01-24 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Wed, 25 Jan 2006 05:49:17 +0000 (05:49 -0000)]
2006-01-24  Cesar Lopez Nataren  <cnataren@novell.com>

* FunctionDeclaration.cs: Erase unused method Init.

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

18 years ago2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Jan 2006 04:06:28 +0000 (04:06 -0000)]
2006-01-25  Atsushi Enomoto <atsushi@ximian.com>

* XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
  Joshua Tauberer for the hint.

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

18 years ago2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Jan 2006 03:36:13 +0000 (03:36 -0000)]
2006-01-25  Atsushi Enomoto <atsushi@ximian.com>

* XmlConvert.cs : ToString(TimeSpan) should return valid duration
  for TimeSpan.Zero, rather than "P". Fixed bug #77350

* XmlConvertTests.cs : added test for bug #77350.

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

18 years ago2006-01-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 25 Jan 2006 01:45:21 +0000 (01:45 -0000)]
2006-01-24  Sebastien Pouliot  <sebastien@ximian.com>

* PKCS12Test.cs: Add a test case where the password is String.Empty
when no password is required to decrypt the structures.

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

18 years ago2006-01-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 25 Jan 2006 01:44:00 +0000 (01:44 -0000)]
2006-01-24  Sebastien Pouliot  <sebastien@ximian.com>

* PKCS12.cs: Consider String.Empty as a null password (e.g. don't
throw an IndexOutOfRangeException). Fix part of bug #77342.

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

18 years ago2006-01-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 25 Jan 2006 01:43:43 +0000 (01:43 -0000)]
2006-01-25  Martin Baulig  <martin@ximian.com>

* debug-debugger.c: Moved the `MonoDebuggerManager' and
`MonoDebuggerThread' typedefs here from mono-debug-debugger.h and
started to cleanup this file a little bit.

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

18 years ago * ComboBox.cs: Clamp the max value set for the vertical
Jackson Harper [Wed, 25 Jan 2006 00:04:39 +0000 (00:04 -0000)]
    * ComboBox.cs: Clamp the max value set for the vertical
        * scrollbar
        when we have a MaxDropItems lower then the selected index.

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

18 years ago * UnixMarshal.cs (StringToHeap): Return IntPtr.Zero if `s' is null.
Jonathan Pryor [Tue, 24 Jan 2006 23:46:17 +0000 (23:46 -0000)]
  * UnixMarshal.cs (StringToHeap): Return IntPtr.Zero if `s' is null.

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

18 years ago * UnixMarshal.cs (StringToHeap): Check for null arguments.
Jonathan Pryor [Tue, 24 Jan 2006 23:37:33 +0000 (23:37 -0000)]
  * UnixMarshal.cs (StringToHeap): Check for null arguments.

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

18 years agoFix error number
Miguel de Icaza [Tue, 24 Jan 2006 22:03:30 +0000 (22:03 -0000)]
Fix error number

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

18 years ago2006-01-23 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 24 Jan 2006 22:02:09 +0000 (22:02 -0000)]
2006-01-23  Miguel de Icaza  <miguel@novell.com>

A fix for bug: #76597

* iterators.cs (MoveNextMethod.CreateMethodHost): call
ComputeMethodHost before creating the method, this is a new
requirement.

* anonymous.cs (AnonymousContainer): Now we track all the scopes
that this method references (RegisterScope).  The actual scope
where the method is hosted is computed with the ComputeMethodHost
before we create the method.

Moved the Deepest routine here.

(AnonymousContainer.ComputeMethodHost): New routine used to
compute the proper ScopeInfo that will host the anonymous method.

(ScopeInfo): Deal with multiple roots.  The problem was that we
did not have a unique root where all ScopeInfos could be hanged
from.   Remove `topmost' ScopeInfo, and instead keep an arraylist
of roots.

Remove AdjustMethodScope which is now computed at the end.  Remove
LinkScope which did a partial link, instead link all ScopeInfos
before code generation from the new "LinkScopes" routine.

Simplify all the Add* routines as they no longer need to maintain
the tree, they just need to record that they are using variables
from a ScopeInfo.

(IsAncestor, GetAncestorScopes, GetParentScope, LinkScope): New
routines to produce the forest of ScopeInfo trees.

* class.cs (TypeContainer.AppendMethod): This is just like
AddMethod, but ensures that an interface implementation method
(IEnumerable.XXX) is not inserted at the beginning of the queue of
methods, but at the end.

We use this functionality to ensure that the generated MoveNext
method in the iterator class is resolved/emitted before the
enumerator methods created.

This is required because the MoveNext method computes the right
ScopeInfo for the method.  And the other methods will eventually
need to resolve and fetch information computed from the anonymous
method.

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

18 years ago2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 24 Jan 2006 21:54:40 +0000 (21:54 -0000)]
2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* ListControl.cs: bound checking for Items when loading the control
state, as the number might have been changed on the fly. Patch by
Elliott Draper.

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

18 years ago2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 24 Jan 2006 21:26:19 +0000 (21:26 -0000)]
2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpRequest.cs: fixed the file path when RewritePath is used. Also
add the PathInfo to the Url. Fixes bug #77291.

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 20:38:37 +0000 (20:38 -0000)]
2006-01-24  Atsushi Enomoto <atsushi@ximian.com>

* XmlNameEntryCache.cs XmlNameEntry.cs :
  Made name entry fields as not read-only. Added Update() to reset
  members. Its semantics of Equals() is changed.
  Now entry cache is based on Hashtable rather than ArrayList.
  It saves heavy iteration in ArrayList.

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

18 years ago * Control.cs: Don't allow selection of non visible controls,
Jackson Harper [Tue, 24 Jan 2006 20:10:40 +0000 (20:10 -0000)]
    * Control.cs: Don't allow selection of non visible controls,
        * allow
        selection of controls without parents.

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

18 years agoApply patch from Mike Glenn\n2006-01-24 Mike Glenn <mglenn@zoominternet.net>
Miguel de Icaza [Tue, 24 Jan 2006 20:04:42 +0000 (20:04 -0000)]
Apply patch from Mike Glenn\n2006-01-24  Mike Glenn <mglenn@zoominternet.net>

* StringBuilder.cs: Avoid computing computation for the string
length twice.

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

18 years agoTue Jan 24 18:57:46 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 24 Jan 2006 17:58:25 +0000 (17:58 -0000)]
Tue Jan 24 18:57:46 CET 2006 Paolo Molaro <lupus@ximian.com>

* monograph.c: misc fixes and parent depth stats.

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

18 years agoTue Jan 24 18:53:35 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 24 Jan 2006 17:54:15 +0000 (17:54 -0000)]
Tue Jan 24 18:53:35 CET 2006 Paolo Molaro <lupus@ximian.com>

* profiler.c: fix printing of data.

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

18 years agoTue Jan 24 18:24:00 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 24 Jan 2006 17:24:54 +0000 (17:24 -0000)]
Tue Jan 24 18:24:00 CET 2006 Paolo Molaro <lupus@ximian.com>

* BitArray.cs: optimize bit access by removing expensive
div/rem ops.

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

18 years agoTue Jan 24 18:22:54 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 24 Jan 2006 17:23:23 +0000 (17:23 -0000)]
Tue Jan 24 18:22:54 CET 2006 Paolo Molaro <lupus@ximian.com>

* Dictionary.cs: avoid long reminder operations.

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

18 years agoTue Jan 24 18:20:48 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 24 Jan 2006 17:21:53 +0000 (17:21 -0000)]
Tue Jan 24 18:20:48 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: optimize a codepath frequently happening in generics code.

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

18 years agorefactoring
Konstantin Triger [Tue, 24 Jan 2006 16:59:48 +0000 (16:59 -0000)]
refactoring

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 16:04:06 +0000 (16:04 -0000)]
2006-01-24  Atsushi Enomoto  <atsushi@ximian.com>

* UTF8Encoding.cs : reverted the previous change. Looks like it broke
  the build.

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

18 years agorefactoring for RunHooksEnumerator class
Konstantin Triger [Tue, 24 Jan 2006 15:34:18 +0000 (15:34 -0000)]
refactoring for RunHooksEnumerator class

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

18 years agoconvert .invoke requests to PathInfo, remove ToUpper usage
Konstantin Triger [Tue, 24 Jan 2006 15:30:14 +0000 (15:30 -0000)]
convert .invoke requests to PathInfo, remove ToUpper usage

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

18 years ago2006-01-24 Jordi Mas i Hernandez <jordimash@gmail.com>
Jordi Mas i Hernandez [Tue, 24 Jan 2006 15:28:58 +0000 (15:28 -0000)]
2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>

* ThemeWin32Classic.cs: Fixes Datagrid drawing issues
* DataGridDrawingLogic.cs: Add editing row only when is necessary

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 13:49:01 +0000 (13:49 -0000)]
2006-01-24  Atsushi Enomoto  <atsushi@ximian.com>

* UTF8Encoding.cs : InternalGetCharCount() optimization: fast path
  for ASCII range.

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

18 years ago* ReadOnlyCollection.cs (Items): Return underlying list.
Raja R Harinath [Tue, 24 Jan 2006 12:36:13 +0000 (12:36 -0000)]
* ReadOnlyCollection.cs (Items): Return underlying list.

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

18 years agoTue Jan 24 12:34:06 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 24 Jan 2006 11:37:10 +0000 (11:37 -0000)]
Tue Jan 24 12:34:06 CET 2006 Paolo Molaro <lupus@ximian.com>

* *: update from upstream changes.

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 10:28:20 +0000 (10:28 -0000)]
2006-01-24  Atsushi Enomoto  <atsushi@ximian.com>

* object.c, marshal.c : Fixed runtime part of bug #77315. Reject
  invalid surrogate in UTF7/UTF8 bytes and don't return NULL.

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 10:11:16 +0000 (10:11 -0000)]
2006-01-24  Atsushi Enomoto <atsushi@ximian.com>

* table.sh, table_from.cs, table_to.cs : imported a set of useful
  tool from bug #77325 (thanks to Bruno Haible).

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 10:05:36 +0000 (10:05 -0000)]
2006-01-24  Atsushi Enomoto  <atsushi@ximian.com>

Fixed bug #77325.
* windows-28596-2000.ucm : new file. Copied IBM ICU data from
  http://dev.icu-project.org/cgi-bin/viewcvs.cgi/charset/data/ucm/windows-28596-2000.ucm (revision 1.2)
* CP28596.cs : regenerated source file (and made some manual
  changes) to replace mapping source from old ibm-1089.ucm to above.

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

18 years agouse static container
Konstantin Triger [Tue, 24 Jan 2006 09:44:41 +0000 (09:44 -0000)]
use static container

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

18 years agoTue Jan 24 09:56:16 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 24 Jan 2006 08:57:01 +0000 (08:57 -0000)]
Tue Jan 24 09:56:16 CET 2006 Paolo Molaro <lupus@ximian.com>

* object.c: fix deadlock related to string interning.

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 07:53:12 +0000 (07:53 -0000)]
2006-01-24  Atsushi Enomoto  <atsushi@ximian.com>

* UTF7Encoding.cs UTF8Encoding.cs :
  Fixed bug #77315 (Patch by pawel.sakowski@mind-breeze.com).
  Make strict check for invalid surrogate.

* UTF7EncodingTest.cs : added test for bug #77315.
* UTF8EncodingTest.cs : added test for bug #77315. Also, now a
  bunch of tests are working (while they are marked as NotDotNet
  under 1.1 profile).

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

18 years ago2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 24 Jan 2006 05:42:16 +0000 (05:42 -0000)]
2006-01-24  Atsushi Enomoto <atsushi@ximian.com>

* XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
  Add Hash field to find name entry quickly.
  In XmlNameEntryCache make use of name table (it is totally
  unused there though).

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

18 years ago * UpDownBase.cs: Make the textbox handle all the selection and
Jackson Harper [Tue, 24 Jan 2006 05:38:39 +0000 (05:38 -0000)]
    * UpDownBase.cs: Make the textbox handle all the selection and
        tabbing. This fixes tabing to updown controls.

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

18 years ago flush
Jackson Harper [Tue, 24 Jan 2006 05:29:48 +0000 (05:29 -0000)]
    flush

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

18 years agofixes exception thown the object was null
Jordi Mas i Hernandez [Mon, 23 Jan 2006 23:32:26 +0000 (23:32 -0000)]
fixes exception thown the object was null

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

18 years ago2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 23 Jan 2006 20:26:55 +0000 (20:26 -0000)]
2006-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* AspGenerator.cs: ignore 'thead'. Fixes bug #77326.

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

18 years ago * ComboBox.cs:
Jackson Harper [Mon, 23 Jan 2006 20:06:48 +0000 (20:06 -0000)]
    * ComboBox.cs:
        * TrackBar.cs:
        * MonthCalendar.cs: Lets let the base set as much of the
        createparams as possible so we don't have duplicate code all
over
        the place.

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

18 years ago * ButtonBase.cs: Just use the base CreateParams. They set
Jackson Harper [Mon, 23 Jan 2006 19:28:11 +0000 (19:28 -0000)]
    * ButtonBase.cs: Just use the base CreateParams. They set
        visibility and enabled correctly.

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 17:17:23 +0000 (17:17 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

* DbcsConvert.cs ISO2022JP.cs CP950.cs CP932.cs: author lines.
  Monoized CP932.cs which is too deeply indented to read (and
  anyways no one other than myself is taking care of it).

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 17:04:03 +0000 (17:04 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

* KSConvert.cs Big5Convert.cs Gb2312Convert.cs: removed. They could
  just be DbcsConvert instances.
* I18N.CJK.dll.sources : removed above.
* DbcsConvert.cs : added static fields: Big5 and KS.
* CP949.cs CP950.cs : use DbcsConvert class directly.

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 16:58:44 +0000 (16:58 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

* MonoEncoding.cs :
  Added abstract GetByteCountImpl() in MonoEncoding and MonoEncoder.
  GetByteCount() is now based on the method above.
* ByteEncoding.cs : so GetByteCount() became GetByteCountImpl() and
  is based on char*.

* CP57002.cs : Added GetByteCountImpl().

* CP936.cs, CP949.cs, CP950.cs :
  Added GetByteCountImpl() (there weren't GetByteCount() override
  in those classes, so they also save extra byte[] allocation).
* CP932.cs, CP51932.cs, GB18030Encoding.cs, ISO2022JP.cs :
  GetByteCount() -> GetByteCountImpl().
  Fixed ISO2022JPEncoder/Decoder to hold different "shifted_in" flags
  for GetByteCountImpl() and GetBytesImpl().

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

18 years ago2006-01-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 23 Jan 2006 15:58:55 +0000 (15:58 -0000)]
2006-01-23  Martin Baulig  <martin@ximian.com>

* configure.in: Added configure check whether the Mono Debugger is
supported on this platform; AC_DEFINE(MONO_DEBUGGER_SUPPORTED) and
also added a `MONO_DEBUGGER_SUPPORTED' automake conditional.

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

18 years agoIn System.Collections.Generic:
Raja R Harinath [Mon, 23 Jan 2006 15:21:09 +0000 (15:21 -0000)]
In System.Collections.Generic:
Speed up remove.  Use 'dict[k]=v' as a self-tuning hint.
* Dictionary.cs (GetSlot): Move data-structure traversal to ...
(GetPrev): ... this.  Returns the slot prior to the place we're
looking for, or null if that place is the head of the chain.
(Remove): Use it.
(this.set): Use it.  Implement move-to-front on set.

* Dictionary.cs (ToTKey, ToTValue): New helpers to convert from
type 'object'.
(IDictionary.this, IDictionary.Add): Use them.
(IDictionary.Contains, IDictionary.Remove): If the types don't
match, do nothing.

In Test/System.Collections.Generic:
* DictionaryTest.cs (IDictionary_*): Add a few tests for the
IDictionary explicit implementation.

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

18 years ago2006-01-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 23 Jan 2006 15:09:24 +0000 (15:09 -0000)]
2006-01-23  Martin Baulig  <martin@ximian.com>

* mono-debug.h: Moved the prototypes of some functions which are
used by the JIT here from mono-debug-debugger.h.

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

18 years agoMove negative tests from ilasm/tests to ilasm/errors.
Ankit Jain [Mon, 23 Jan 2006 14:49:35 +0000 (14:49 -0000)]
Move negative tests from ilasm/tests to ilasm/errors.

In tests:
* err-*.il, test-perm_fail*.il: Move negative tests from here to errors/ .

In errors:
* err-*.il, test-perm_fail*.il: Move negative tests from tests/ to here.

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

18 years ago2006-01-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 23 Jan 2006 14:32:30 +0000 (14:32 -0000)]
2006-01-23  Martin Baulig  <martin@ximian.com>

* debug-debugger.c: Only enable this on platforms where the Mono
Debugger is working (x86 and x86_64).

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

18 years ago* TypeDef.cs (TypeDef.AddFieldDef): Throw exception if duplicate field being
Ankit Jain [Mon, 23 Jan 2006 13:33:06 +0000 (13:33 -0000)]
* TypeDef.cs (TypeDef.AddFieldDef): Throw exception if duplicate field being
added.

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

18 years agoTests refactoring for TARGET_JVM.
Boris Kirzner [Mon, 23 Jan 2006 13:25:57 +0000 (13:25 -0000)]
Tests refactoring for TARGET_JVM.

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

18 years agoImprove implementation of section 14.4.2.2 (Better function member).
Raja R Harinath [Mon, 23 Jan 2006 11:08:18 +0000 (11:08 -0000)]
Improve implementation of section 14.4.2.2 (Better function member).
* expression.cs (Invocation.MoreSpecific): Compare all type
arguments before deciding if one type is more specific than
another.  Handle array types too.  Return the more specific type.
(Invocation.BetterFunction): Add more tie-breaking rules from
section 14.4.2.2.  Perform "more specific" check after
other tie-breaking rules.  Compare all parameter types before
choosing the "more specific" method.

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 11:04:27 +0000 (11:04 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

* ISO2022JP.cs GB18030Encoding.cs CP936.cs CP51932.cs:
  fix warnings.

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 10:52:01 +0000 (10:52 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

* CP950.cs :
  This was the last one encoding which needed incomplete byte
  handling.
* DbcsEncoding.cs, GB18030Encoding.cs, CP950.cs, CP932.cs,
  CP936.cs, CP51932.cs, CP949.cs (all):
  Made GetCharCount() and GetChars() in DbcsDecoder as different
  internal CheckRange() methods (it is bad design to have those
  methods as base methods). Use CheckRange() everywhere.

* I18N.CJK.Test.cs :
  added Decoder950Refresh() and Decoder950NoRefresh().

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

18 years ago*** merged revision from mcs: 55859
Raja R Harinath [Mon, 23 Jan 2006 10:11:37 +0000 (10:11 -0000)]
*** merged revision from mcs: 55859

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 09:56:40 +0000 (09:56 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

* CP949.cs :
  handle incomplete byte (thus conversion implementation went into
  CP949Decoder like other DBCS encodings).

* I18N.CJK.Test.cs :
  added Decoder949Refresh() and Decoder949NoRefresh().

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 09:19:13 +0000 (09:19 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

* CP936.cs :
  handle incomplete byte (thus conversion implementation went into
  CP936Decoder like other DBCS encodings).

* I18N.CJK.Test.cs :
  added Decoder936Refresh() and Decoder936NoRefresh().

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

18 years agoensure invariant culture
Konstantin Triger [Mon, 23 Jan 2006 08:32:21 +0000 (08:32 -0000)]
ensure invariant culture

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

18 years ago* XmlReflectionImporterTests.cs: Marked tests NotWorking until fixes have
Gert Driesen [Mon, 23 Jan 2006 07:17:04 +0000 (07:17 -0000)]
* XmlReflectionImporterTests.cs: Marked tests NotWorking until fixes have
landed in svn.
* SoapReflectionImporterTests.cs: Added numerous tests.
* XmlSchemaImporterTests.cs: Added numerous tests.
* XmlSchemaExporterTests.cs: Added numerous tests.
* SoapSchemaExporterTests.cs: Added numerous tests.
* XmlSerializerTestClasses.cs: Added test classes for
XmlSchemaExporter. Fixed line endings (to CRLF).

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

18 years ago2006-01-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Jan 2006 04:06:37 +0000 (04:06 -0000)]
2006-01-23  Atsushi Enomoto  <atsushi@ximian.com>

        * EncoderFallbackException.cs EncoderExceptionFallback.cs
          DecoderFallbackBuffer.cs EncoderReplacementFallback.cs
          EncoderFallbackBuffer.cs DecoderExceptionFallbackBuffer.cs
          EncoderFallback.cs DecoderReplacementFallbackBuffer.cs
          DecoderFallbackException.cs DecoderExceptionFallback.cs
          DecoderReplacementFallback.cs
EncoderExceptionFallbackBuffer.cs
          EncoderReplacementFallbackBuffer.cs :
          include them in net_2_0bootstrap build.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 23 Jan 2006 02:16:58 +0000 (02:16 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* RootBuilder.cs (.cctor): use a 2.0 friendly hashtable ctor to
quiet mcs.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 23 Jan 2006 02:15:09 +0000 (02:15 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* System.Web.dll.sources: add IgnoreFileBuildProvider.cs and
IInternalConfigWebHost.cs

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 23 Jan 2006 02:14:27 +0000 (02:14 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* IgnoreFileBuildProvider.cs: build provider which does nothing.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 21:15:47 +0000 (21:15 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* DesignerSerializationVisibilityAttribute.cs: in the 2.0 case,
this attribute is valid on fields and events as well.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 21:00:41 +0000 (21:00 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* RootBuilder.cs (.cctor): use a 2.0 friendly hashtable ctor to
quiet mcs.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 20:59:41 +0000 (20:59 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* HtmlInputButton.cs:
s/GetPostBackClientEvent/GetPostBackEventReference.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 20:58:37 +0000 (20:58 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* CheckBox.cs: s/GetPostBackClientEvent/GetPostBackEventReference.

* MultiView.cs (OnBubbleEvent): case the rhs to a string to get
the intended comparison right and quiet mcs.

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

18 years agooops. fix build.
Chris Toshok [Sun, 22 Jan 2006 20:48:14 +0000 (20:48 -0000)]
oops.  fix build.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 20:45:53 +0000 (20:45 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
Hashtable ctor to silence a couple of warning.
(CompoundFoundry.ctor): same

* Directive.cs (InitHash): use a 2.0 friendly form of the
Hashtable ctor to silence a couple of warning.

* TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
Hashtable ctor to silence a warning.
(GetDictionary): same.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 20:09:58 +0000 (20:09 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* GlobalizationSection.cs (VerifyData): quiet mcs.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 20:05:32 +0000 (20:05 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* PageParser.cs (ProcessMainAttributes): i missed a
CONFIGURATION_2_0 block.

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

18 years agoRevert this patch, it has a big performance penalty
Miguel de Icaza [Sun, 22 Jan 2006 19:25:14 +0000 (19:25 -0000)]
Revert this patch, it has a big performance penalty

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 19:24:24 +0000 (19:24 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* BoundPropertyEntry.cs (.ctor): mark as internal to fix
corcompare.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 19:18:58 +0000 (19:18 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* HttpRequest.cs (ReadBoundary): remove two unused variables to
quiet mcs.
(IsBoundary): remove unused method.

* MimeTypes.cs (.cctor): use a 2.0 friendly form of the Hashtable
ctor to silence a warning.

* HttpCacheVaryByHeaders.cs (.ctor): same.

* HttpCacheVaryByParams.cs (.ctor): same.

* StaticSiteMapProvider.cs (UrlToNode): same.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 18:46:10 +0000 (18:46 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* AppSettingsExpressionBuilder.cs: implement this, patterning it
after an example on msdn.  Also, enable the ExpressionEditor
attribute, but use the string rather than the Type overload so we
won't have yet another circular dep.

* ConnectionStringsExpressionBuilder.cs: partial implementation.
Same deal with the ExpressionEditor attribute.

* ResourceExpressionBuilder.cs: same deal with the
ExpressionEditor attribute.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 18:29:55 +0000 (18:29 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* IInternalConfigWebHost.cs: new 2.0 interface.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 18:02:04 +0000 (18:02 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* System.Design.dll.sources: add in all the stubbed/partially
implemented stuff.

* Makefile (LIB_MCS_FLAGS): in the 2.0 case include a reference to
System.Configuration.dll.

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

18 years ago2006-01-22 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sun, 22 Jan 2006 18:01:40 +0000 (18:01 -0000)]
2006-01-22  Chris Toshok  <toshok@ximian.com>

* IProjectItem.cs: new interface.
* IWebApplication.cs: new interface.

* ExpressionEditorSheet.cs: stubbed.
* ExpressionEditor.cs: stubbed.
* AppSettingsExpressionEditor.cs: stubbed.
* ResourceExpressionEditor.cs: stubbed.

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

18 years agoAdd semicolon after client script if does not exist
Konstantin Triger [Sun, 22 Jan 2006 17:34:15 +0000 (17:34 -0000)]
Add semicolon after client script if does not exist

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

18 years ago2006-01-22 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Sun, 22 Jan 2006 15:07:54 +0000 (15:07 -0000)]
2006-01-22  Alexander Olk  <alex.olk@googlemail.com>

* ThemeGtk.cs: Added TrackBar and some experimental code to
  get double buffering back

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

18 years agoTests refactoring with NotWorking.
Boris Kirzner [Sun, 22 Jan 2006 11:54:05 +0000 (11:54 -0000)]
Tests refactoring with NotWorking.

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

18 years agoensure case insensitivity in header search
Konstantin Triger [Sun, 22 Jan 2006 09:52:02 +0000 (09:52 -0000)]
ensure case insensitivity in header search

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

18 years ago2006-01-21 Jordi Mas i Hernandez <jordimash@gmail.com>
Jordi Mas i Hernandez [Sat, 21 Jan 2006 21:13:33 +0000 (21:13 -0000)]
2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>

* DataGrid.cs: Allows row number set internally higher than the last
when creating a new row. Restores the editing functionality.

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

18 years agoDon't install libgc-mono-debugger.h and mono-debug-debugger.h
Martin Baulig [Sat, 21 Jan 2006 19:42:44 +0000 (19:42 -0000)]
Don't install libgc-mono-debugger.h and mono-debug-debugger.h

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

18 years ago2006-01-21 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 21 Jan 2006 15:44:50 +0000 (15:44 -0000)]
2006-01-21  Martin Baulig  <martin@ximian.com>

The Mono Debugger is now using the normal `mono' instead of the
`mono-debugger-mini-wrapper' when executing managed code.

* debug-debugger.c: New file; previously known as
debugger/wrapper/wrapper.c.

* debug-mini.c (mono_init_debugger): Removed.

* driver.c (mono_main): Added new `--inside-mdb' command line
argument which is used when running inside the debugger.

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