mono.git
19 years agoFix #74060.
Raja R Harinath [Tue, 29 Mar 2005 12:51:22 +0000 (12:51 -0000)]
Fix #74060.
* expression.cs (MemberAccess.ResolveMemberAccess): Allow the
internal field "value__" of an enum be private.  The examples for
"value__" that I found on MSDN all used FieldAttributes.Private.

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

19 years agoHopefully, third time's the charm.
Raja R Harinath [Tue, 29 Mar 2005 12:38:55 +0000 (12:38 -0000)]
Hopefully, third time's the charm.

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 29 Mar 2005 12:36:14 +0000 (12:36 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* config.guess config.sub ltmain.sh: Update these files with more
up-to-date versions. Fixes #74071.

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

19 years ago* decl.cs (MemberCache.AddMethods): Use C# terminology in warning.
Raja R Harinath [Tue, 29 Mar 2005 12:35:20 +0000 (12:35 -0000)]
* decl.cs (MemberCache.AddMethods): Use C# terminology in warning.
Don't mention IL method attribute names.

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

19 years agoIn mcs:
Raja R Harinath [Tue, 29 Mar 2005 12:27:05 +0000 (12:27 -0000)]
In mcs:
Fix #47991.  Remove a TODO.
* statement.cs (Block.Toplevel): Make into a field.
(Block.Parameters): Move into ToplevelBlock.
(Block.known_variables): Rename from child_variable_names.
(Block.Block): Remove variants that take Parameters.  Initialize
'Toplevel' with the immediately surrounding toplevel block.
(Block.AddKnownVariable): Rename from AddChildVariableName.  Add a
LocalInfo parameter.
(Block.GetKnownVariableInfo): New.
(Block.IsVariableNameUsedInChildBlock): Update.
(Block.IsVariableNameUsedInBlock): New.  Checks if a name is used in
the block, even though it may not be in scope.
(Block.AddVariable): Remove Parameters parameter.  Use
Toplevel.Parameters instead.
(Block.AddConstant): Remove Parameters parameter.
(Block.GetParameterReference): Update to use Toplevel.Parameters.
(Block.IsParamaterReference): Likewise.
(Block.IsLocalParameter): Likewise.  Simplify a lot.
(ToplevelBlock.Parameters): New.  Moved from Block.
(ToplevelBlock.ToplevelBlock): Update to changes.  Always
initialize Parameters to a non-null value.
* cs-parser.jay: Update to changes.
* ecore.cs (SimpleName.SimpleNameResolve): Emit cs0136 error for
simple names that mean different things in the same block.  Use
Block.IsVariableNameUsedInBlock.

In errors:
* cs0136-3.cs, cs0136-4.cs: New tests from #47991.

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

19 years ago2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 29 Mar 2005 11:42:18 +0000 (11:42 -0000)]
2005-03-29  Lluis Sanchez Gual  <lluis@novell.com>

* XmlSerializerTests.cs:
* DeserializeTests.cs:
* XmlSerializerTestClasses.cs: Added some tests for xml node serialization.

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

19 years ago2005-03-29 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Tue, 29 Mar 2005 11:41:57 +0000 (11:41 -0000)]
2005-03-29  Lluis Sanchez Gual  <lluis@novell.com>

* XmlReflectionImporter.cs: Added support for subclasses of XmlNode.
This fixes bug #73901 and should fix #70384.
* XmlSerializationReader.cs: When reading an object element, return
an Object instance if the element has no children. This fixes bug #73974.
* XmlSerializationWriter.cs: Support writing XmlNode[] as a primitive
type (it is written as an element with those nodes as children).

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

19 years agoTue Mar 29 11:47:19 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 29 Mar 2005 09:20:57 +0000 (09:20 -0000)]
Tue Mar 29 11:47:19 CEST 2005 Paolo Molaro <lupus@ximian.com>

* Delegate.cs: allow IronPython 0.7 to compile.

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

19 years agoTue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 29 Mar 2005 09:18:15 +0000 (09:18 -0000)]
Tue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>

* inssel.brg, arrays.cs: fix long stabding 64 bit issue in access to
klass->interface_offsets (will likely fix bug#74073).

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

19 years ago Disallow New Date assignment with types other than date and object type
Manjula GHM [Tue, 29 Mar 2005 07:55:38 +0000 (07:55 -0000)]
 Disallow New Date assignment with types other than date and object type

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

19 years agoTestcases for Array Creation expressions - by Sudharsan V
Satya Sudha K [Tue, 29 Mar 2005 04:15:58 +0000 (04:15 -0000)]
Testcases for Array Creation expressions - by Sudharsan V

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

19 years ago2005-03-29 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Mar 2005 22:02:09 +0000 (22:02 -0000)]
2005-03-29  Zoltan Varga  <vargaz@freemail.hu>

* mini-amd64.c (mono_arch_is_int_overflow): Fix rex handling.

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

19 years ago2005-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Mar 2005 21:10:26 +0000 (21:10 -0000)]
2005-03-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-amd64.c (mono_arch_output_basic_block): Fix order of parameters
to amd64_div_reg_size ().

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

19 years ago2005-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 28 Mar 2005 21:09:11 +0000 (21:09 -0000)]
2005-03-28  Zoltan Varga  <vargaz@freemail.hu>

* amd64/amd64-codegen.h: Avoid emitting a rex in some places.

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

19 years ago* Information.cs(RGB): Change colour ordering, its BGR not RGB
Jambunathan K [Mon, 28 Mar 2005 19:33:34 +0000 (19:33 -0000)]
* Information.cs(RGB): Change colour ordering, its BGR not RGB

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

19 years ago * Mono.Posix_test.dll.sources: Added Test/Mono.Unix/StdioFileStreamTest.cs.
Jonathan Pryor [Mon, 28 Mar 2005 17:28:54 +0000 (17:28 -0000)]
  * Mono.Posix_test.dll.sources: Added Test/Mono.Unix/StdioFileStreamTest.cs.
  * Mono.Unix/UnixConvert.cs: Add ToFopenMode() methods, which convert
    FileMode/FileAccess into an fopen(3) mode string.  ToOpenFlags() should
    throw ArgumentOutOfRangeException for argument violations.
  * Mono.Unix/StdioFileStream.cs: Add constructor overloads accepting filename
    and FileMode/FileAccess overloads; Compatibility fixes with regression tests;
    remove IDisposable implementation since System.IO.Stream already
    implements it (which calls Close() for us).
  * Test/Mono.Unix/StdioFileStreamTest.cs: Added; based on
    MonoTests.System.IO.FileStreamTest.

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

19 years ago * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
Alexander Olk [Mon, 28 Mar 2005 16:46:23 +0000 (16:46 -0000)]
* FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:

  - Added ReadOnly CheckBox
  - Further refactoring: moved some code from Open-/SaveFileDialog
    to FileDialog

2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>

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

19 years agodelete unneeded dependency
César Natarén [Mon, 28 Mar 2005 15:46:19 +0000 (15:46 -0000)]
delete unneeded dependency

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

19 years ago* DirectoryEntries.cs :
Boris Kirzner [Mon, 28 Mar 2005 14:37:23 +0000 (14:37 -0000)]
* DirectoryEntries.cs :
- Removed unnecessary console output.
* SearchResult.cs :
- Initialize Path property in constructor.
- Removed unnecessary console output.

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

19 years agoImprove warning slightly.
Raja R Harinath [Mon, 28 Mar 2005 11:00:19 +0000 (11:00 -0000)]
Improve warning slightly.

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

19 years ago2005-03-28 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Mon, 28 Mar 2005 10:45:48 +0000 (10:45 -0000)]
2005-03-28  Sureshkumar T  <tsureshkumar@novell.com>

* SqlCommand.cs: Execute: Add a semicolon at the end of
CommandText. Multiple semicolon's are not being complained.

fixes bug #74134.

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

19 years agoSome changes based on Martin's request to make it easier to merge into gmcs.
Raja R Harinath [Mon, 28 Mar 2005 10:43:07 +0000 (10:43 -0000)]
Some changes based on Martin's request to make it easier to merge into gmcs.

* typemanager.cs (TypeHandle.BaseType): Make into an IMemberContainer.
(TypeHandle.TypeHandle): Use LookupMemberCache rather than
GetTypeHandle.  It is possible for a reflected type to derive from
a TypeBuilder (e.g., int[] derives from the TypeBuilder
System.Array during mscorlib compilation).
* decl.cs (MemberCache.MemberCache): If the base cache doesn't
contain a method_hash, don't create one either.  Don't create a
deep copy of the base cache's method_hash.
(MemberCache.SetupCache): Rename back from DeepCopy.
(MemberCache.AddMethods): Rewrite, now that method_hash isn't
already initialized.  If we see an override function, add its
underlying base virtual function to the member_hash too.

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

19 years ago2005-03-28 Alexander Olk <xenomorph2@onlinehome.de>
Alexander Olk [Mon, 28 Mar 2005 10:30:17 +0000 (10:30 -0000)]
2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>

* OpenFileDialog.cs: Fixed CheckFileExists
* FileDialog.cs:
  Moved FileView and DirComboBox outside FileDialog class.
  They can now be used outside FileDialog

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

19 years ago* enum.cs (Enum.LookupEnumValue): Remove debugging code.
Raja R Harinath [Mon, 28 Mar 2005 07:20:57 +0000 (07:20 -0000)]
* enum.cs (Enum.LookupEnumValue): Remove debugging code.

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

19 years ago2005-03-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 Mar 2005 06:48:47 +0000 (06:48 -0000)]
2005-03-28  Atsushi Enomoto <atsushi@ximian.com>

* RncTokenizer.cs : check names strictly.
* RncParser.jay : quick workaround that "datatype" is rejected as
  top level content. We should fix the problem that annotation
  elements are not accepted instead of datatype later.

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

19 years ago2005-03-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 Mar 2005 04:28:53 +0000 (04:28 -0000)]
2005-03-28  Atsushi Enomoto <atsushi@ximian.com>

* Commons.Xml.Relaxnf.dll.sources : added XmlChar.cs

* XmlChar.cs : copied from system.xml.
* RncTokenizer.cs : check character validity.
  Handle \-prefixed keyword name more strictly.
  Simplify CName tokenization.
  Move location after successful advance().
* RncParser.jay : now there is no NCNameButKeyword.

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

19 years ago2005-03-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 Mar 2005 00:52:31 +0000 (00:52 -0000)]
2005-03-28  Atsushi Enomoto <atsushi@ximian.com>

* RncTokenizer.cs : oops, so stupid hex computation.

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

19 years ago2005-03-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 28 Mar 2005 00:44:44 +0000 (00:44 -0000)]
2005-03-28  Atsushi Enomoto <atsushi@ximian.com>

* RncTokenizer.cs :
  Handle hexadecimal escaping (\x{...}) and triple-quot/apos literals.
  Quote literal didn't handle '...' as expected.

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

19 years ago2005-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 27 Mar 2005 22:27:41 +0000 (22:27 -0000)]
2005-03-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-amd64.c (mono_arch_emit_exceptions): Emit a near call here too.

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

19 years ago2005-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 27 Mar 2005 22:07:51 +0000 (22:07 -0000)]
2005-03-28  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (mono_marshal_get_runtime_invoke): Emit the interruption
checkpoint before loading the arguments so they won't get spilled.

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

19 years ago2005-03-27 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 27 Mar 2005 18:04:05 +0000 (18:04 -0000)]
2005-03-27  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (mono_marshal_get_managed_wrapper): Fix bogus assert on
the 2.0 profile.

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

19 years ago * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
Alexander Olk [Sun, 27 Mar 2005 17:57:49 +0000 (17:57 -0000)]
* FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
* SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method

2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>

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

19 years ago2005-03-27 Alexander Olk <xenomorph2@onlinehome.de>
Alexander Olk [Sun, 27 Mar 2005 17:05:29 +0000 (17:05 -0000)]
2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>

* FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
  - Added missing CreatePrompt property in SaveDialog
  - Overall SaveDialog handling should be better now
  - Added non standard ShowHiddenFiles property
  - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
  - Added InitialDirectory and RestoreDirectory support

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

19 years ago2005-03-27 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 27 Mar 2005 14:39:29 +0000 (14:39 -0000)]
2005-03-27  Zoltan Varga  <vargaz@freemail.hu>

* cpu-amd64.md (store_membase_reg): Fix length of storer8 opcodes.

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

19 years ago* configure.in: Define mono_libdir using $(exec_prefix), seeing
Raja R Harinath [Sun, 27 Mar 2005 14:12:28 +0000 (14:12 -0000)]
* configure.in: Define mono_libdir using $(exec_prefix), seeing
that it uses .../lib.
* mono/metadata/Makefile.am (assembliesdir): Fix.  If it is arch-dependent
it has to be in $(exec_prefix).  $(prefix) is for arch-independent stuff,
and it would probably use $(prefix)/share rather than $(prefix)/lib.

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

19 years ago* constant.cs: Added conversions between various constants
Jambunathan K [Sun, 27 Mar 2005 12:05:37 +0000 (12:05 -0000)]
* constant.cs: Added conversions between various constants
* literal.cs: Added conversions from Nothing to various primitive constants

* convert.cs (NothingToPrimitiveConstants, WideningConstantconversions): Added

(TryWideningIntConversion): Removed C# specific constant
conversions. This functionality is now taken care of by
WideningConstantConversions.

(WideningReferenceConversion): Added support for conversions from Nothing to ValueTypes
(WideningNumericConversion): Call WideningConstantConversions

* ecore.cs (NullCast.Emit): Conversion from Nothing to ValueType

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

19 years agoUse mono_libdir to avoid confustion
Ben Maurer [Sat, 26 Mar 2005 23:50:33 +0000 (23:50 -0000)]
Use mono_libdir to avoid confustion

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

19 years ago * configure.in: Use mono_libdir rather than libdir in
Ben Maurer [Sat, 26 Mar 2005 23:48:22 +0000 (23:48 -0000)]
* configure.in: Use mono_libdir rather than libdir in
config.make. This fixes confusion for amd builds in buildbuddy.

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

19 years ago2005-03-26 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Sat, 26 Mar 2005 22:49:51 +0000 (22:49 -0000)]
2005-03-26  Ben Maurer  <bmaurer@ximian.com>

* configure.in, */Makefile.am: fix up lib/lib64 type stuff

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

19 years ago* ecore.cs (ImplicitInvocation): Set eclass and type to that of the child
Jambunathan K [Sat, 26 Mar 2005 18:19:12 +0000 (18:19 -0000)]
* ecore.cs (ImplicitInvocation): Set eclass and type to that of the child

* convert.cs (ImplicitVBConversion, ImplicitVBConversionRequired,
ExplicitVBConversion): Added
(WideningNumericConversion): Added support for converting an enum to
it's underlying numeric type or any type that it's underlyinmg
type has widening conversion to.

* assign.cs (DoAssign): Plugged in ImplicitVBConversionRequired.

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

19 years ago2005-03-26 Alexander Olk <xenomorph2@onlinehome.de>
Alexander Olk [Sat, 26 Mar 2005 16:52:06 +0000 (16:52 -0000)]
2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>

* FileDialog.cs: Made dirComboBox usable

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

19 years ago* expression.cs (Binary.Operator): Added Exponentiation,
Jambunathan K [Sat, 26 Mar 2005 08:43:08 +0000 (08:43 -0000)]
* expression.cs (Binary.Operator): Added Exponentiation,
Concatenation, Like, Is and IntegerDivision opeartors

* mb-parser.jay: Changes relating to the above changes.

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

19 years ago* expression.cs (Binary.Operator): Renamed LogicalAnd/LogicalOr to
Jambunathan K [Sat, 26 Mar 2005 07:55:44 +0000 (07:55 -0000)]
* expression.cs (Binary.Operator): Renamed LogicalAnd/LogicalOr to
LogicalAndAlso and LogicalOrElse.

* cfold.cs, gen-treedump.cs, generic.cs, mb-parser.jay: Changes
related to the above renaming.

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

19 years agoFixed spelling error in the ChangeLog file !
Jambunathan K [Fri, 25 Mar 2005 22:12:26 +0000 (22:12 -0000)]
Fixed spelling error in the ChangeLog file !

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

19 years ago* constant.cs (DateConstant): Added (Booroed from mbas)
Jambunathan K [Fri, 25 Mar 2005 22:05:29 +0000 (22:05 -0000)]
* constant.cs (DateConstant): Added (Booroed from mbas)
* literal.cs (DateLiteral): Added (Borrowed from mbas)
* mb-parser.jay: Added support for Date type. (Borrowed from mbas)
* typemanager.cs (void_datetime_ctor_ticks_arg):  Added (Borroed from mbas)
* mb-tokenizer.cs (ParseDateLiteral, GobbleWhitespaces): Added afresh

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

19 years agoFix #73038.
Raja R Harinath [Fri, 25 Mar 2005 18:28:59 +0000 (18:28 -0000)]
Fix #73038.
* assign.cs (Assign.DoResolve): When the RHS of an assignment
fails to resolve, ensure that the LHS is still resolved as an
lvalue.

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

19 years ago2005-03-25:3 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Fri, 25 Mar 2005 18:01:50 +0000 (18:01 -0000)]
2005-03-25:3 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* AssemblyInfo.cs: Small increment in the version number to publicize --codepage support

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

19 years ago* enum.cs (Enum.DefineType): Set ec.InEnumContext and ec.ContainerType.
Raja R Harinath [Fri, 25 Mar 2005 17:59:11 +0000 (17:59 -0000)]
* enum.cs (Enum.DefineType): Set ec.InEnumContext and ec.ContainerType.
(Enum.current_ec): Remove.
(Enum.LookupEnumValue): Remove EmitContext argument.
Just uses the one created during DefineType.
(Enum.FindMembers): Update.
* expression.cs (MemberAccess.DoResolve): Update.

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

19 years ago2004-03-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 Mar 2005 17:17:49 +0000 (17:17 -0000)]
2004-03-25  Atsushi Enomoto  <atsushi@ximian.com>

* XPathNavigator.cs : 2.0 build fix

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

19 years ago2005-03-25:2 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Fri, 25 Mar 2005 16:55:57 +0000 (16:55 -0000)]
2005-03-25:2 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* genericparser.cs: another static Parse overload to support specifying encoding when parsing from a file.
* driver.cs: obsoletes --tokenize, record currentEncoding for each source-file to be processed, call the new Parse overload
Implement support for a --codepage option similar to mcs. Example:
mono mbas.exe --codepage:1252 WindowsANSI.vb --codepage:utf8 UTF8.vb --codepage:reset currentcharset.vb

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

19 years ago* AssemblyInfo.cs: Set assembly version to 0.1
Jambunathan K [Fri, 25 Mar 2005 16:50:13 +0000 (16:50 -0000)]
* AssemblyInfo.cs: Set assembly version to 0.1

* literal.cs (NotDefinedAsPrimitiveType): New class. Unlike C#,
VB.NET doesn't understand "signed byte", "unsigned short",
"unsigned int" and "unsigned long" as primitive types. This class
has been introduced just to "accomodate" this fact. Now we can
retain most of the existing gmcs code that test against these
types for doing language defined conversions.

* typemanager.cs (sbyte_type, short_type, uint32_type,uint64_type):
Converted as static properties that return typeof(NotDefinedAsPrimitiveType).

The existing sbyte_type, short_type, uint32_type, uint64_type are
renamed as _sbyte_type, _short_type, _uint32_type,
_uint64_type. Their accessibility type is now private.

* convert.cs (NarrowingNumericConversion, WideningNumericConversion):
Reverted original gmcs code that handle byte type and unsigned
numeric types. Remember that all this code is a "nop" because
of the introduction of NotDefinedAsPrimitiveType class.

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

19 years ago2005-03-25 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Fri, 25 Mar 2005 15:22:30 +0000 (15:22 -0000)]
2005-03-25 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* genericparser.cs: another Parse overload to support specifying encoding when parsing from a file.
Preparing to implement support for a /codepage option similar to mcs

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

19 years ago2005-03-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 Mar 2005 11:37:19 +0000 (11:37 -0000)]
2005-03-25  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriterTests.cs : added more test case for xml:space.

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

19 years ago2004-03-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 Mar 2005 10:56:11 +0000 (10:56 -0000)]
2004-03-25  Atsushi Enomoto  <atsushi@ximian.com>

* Expression.cs : In ExprSLASH2, replace A//B with A/descendant::B if
  B is child axis test (thus peer&subtree optimization became possible)
  Fixed warning (incorrect variable let).

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

19 years ago2004-03-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 Mar 2005 05:35:58 +0000 (05:35 -0000)]
2004-03-25  Atsushi Enomoto  <atsushi@ximian.com>

* XPathNavigator.cs : reduced some Clone().
  Simplified ComparePosition().
* Iterator.cs : some iterators are not actually reverse axis.

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

19 years ago2005-03-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 25 Mar 2005 05:35:15 +0000 (05:35 -0000)]
2005-03-25  Atsushi Enomoto  <atsushi@ximian.com>

* XslKey.cs : the iterator does not require sorting (already sorted).
  Removed unused code.

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

19 years ago2005-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 25 Mar 2005 04:58:25 +0000 (04:58 -0000)]
2005-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* console-io.c: added 2 includes that might be missing.

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

19 years ago2005-03-24 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 25 Mar 2005 01:27:17 +0000 (01:27 -0000)]
2005-03-24  Miguel de Icaza  <miguel@novell.com>

* DynamicMethod.cs (CreateDelegate): Add second overload based on
the first one that allows for a `target' argument.

2005-03-24  Miguel de Icaza  <miguel@novell.com>

* Delegate.cs: Add CreateDelegate with a target option, currently
internal as it is not exposed by the framework yet.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 25 Mar 2005 00:35:30 +0000 (00:35 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* pinvoke1-3.cs: Changed RunningOnMono for RunningOnWindows as it's an
OS issue not a runtime issue being tested.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 20:56:47 +0000 (20:56 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* corlib_test.dll.sources : Added many new CAS unit tests to the build.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 20:53:40 +0000 (20:53 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* IsolatedStorageFileStreamCas.cs: Added reflection-based unit tests
to test LinkDemand on Handle and SafeFileHandle (2.0) properties.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 20:38:55 +0000 (20:38 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* MethodRentalCas.cs: New. CAS unit tests for MethodRental.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 20:38:04 +0000 (20:38 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* MethodRental.cs: Added Demand for UnmanagedCode on SwapMethodBody
method.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 19:59:50 +0000 (19:59 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* ModuleCas.cs: New. CAS unit tests for Module.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 19:59:39 +0000 (19:59 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* MemberInfo.cs: Add an InheritanceDemand for Unrestricted on class.
* Module.cs: Add a LinkDemand for SerializationFormatter on
GetObjectData method.

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

19 years ago2005-03-24 Alexander Olk <xenomorph2@onlinehome.de>
Alexander Olk [Thu, 24 Mar 2005 19:41:54 +0000 (19:41 -0000)]
2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>

* FileDialog.cs: Added Filter support (case sensitiv)

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 19:13:41 +0000 (19:13 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* X509CapiTest.cs: Enabled IntPtr test under Linux. Add IntPtr.Zero
tests (special case).
* X509CertificateCas.cs: New. CAS unit tests for X509Certificate.
* X509SpcTest.cs: Activate some tests (most only on Windows);

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 19:10:59 +0000 (19:10 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate.cs: Added Demand for UnmanagedCode to ctor(IntPtr).
Return "empty" certificate when IntPtr.Zero is used with ctor(IntPtr).
Don't wrap SecurityException inside COMException for Authenticode.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 18:37:02 +0000 (18:37 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeDeformatter.cs: Don't hide the SecurityException (e.g.
file access).

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

19 years ago2005-03-24 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Thu, 24 Mar 2005 18:35:59 +0000 (18:35 -0000)]
2005-03-24  Geoff Norton  <gnorton@customerdna.com>

        * macpack.1:
Update documentation to reflect Gtk#/X11 mode.

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

19 years ago2005-03-24 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Thu, 24 Mar 2005 18:35:15 +0000 (18:35 -0000)]
2005-03-24  Geoff Norton  <gnorton@customerdna.com>

        * MacPack.cs:
          LOADER:
                Add support for macpacking Gtk#/X11 applications.

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

19 years ago2005-03-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 24 Mar 2005 18:00:11 +0000 (18:00 -0000)]
2005-03-24  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (mono_marshal_get_managed_wrapper): Fix crashes in 2.0
profile.

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

19 years ago * TabControl.cs: Need a couple more pixels for the lines.
Jackson Harper [Thu, 24 Mar 2005 17:34:55 +0000 (17:34 -0000)]
* TabControl.cs: Need a couple more pixels for the lines.

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

19 years ago2005-03-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 24 Mar 2005 17:16:43 +0000 (17:16 -0000)]
2005-03-24  Zoltan Varga  <vargaz@freemail.hu>

* StringTest.cs: Added tests for new methods.

* ModuleHandleTest.cs: Fix warning.

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

19 years ago2005-03-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 24 Mar 2005 17:14:32 +0000 (17:14 -0000)]
2005-03-24  Zoltan Varga  <vargaz@freemail.hu>

* String.cs: Add some 2.0 methods.

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

19 years ago2005-03-24 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 24 Mar 2005 15:26:48 +0000 (15:26 -0000)]
2005-03-24  Sureshkumar T  <tsureshkumar@novell.com>
    Appasamy <appasamy@rediffmail.com>

* OdbcColumn.cs: IsStringType: OdbcType.Char is also of type
String.
* OdbcDataReader.cs: GetSchemaTable: Get Additional info using
SQLColAttribute. Don't pad with spaces in GetColAttributeStr.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 15:11:54 +0000 (15:11 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAccessPermission.cs: Fixed PermitOnly when used in a set. Added
an InheritanceDemand for ControlEvidence and ControlPolicy on the
class.
* PermissionSet.cs: Added an InheritanceDemand for MS public key on
class.
* SecurityException.cs: Moved PermissionType up in ToString as this
property isn't restricted (i.e. will be part of the output even if
the other properties can't make it).

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

19 years ago2005-03-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 24 Mar 2005 14:46:17 +0000 (14:46 -0000)]
2005-03-24  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (create_custom_attr): Allocate the params array using
alloca so it gets GC tracking.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 14:30:33 +0000 (14:30 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* FileIOPermission.cs: Now use InsecureGetFullPath to add paths to
it's lists (as GetFullPath is more restricted than the permission).
Removed unrequired use of GetFullPath in union and subset ops.
* IsolatedStoragePermission.cs: Added InheritanceDemand for
ControlEvidence and ControlPolicy on class.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 14:24:38 +0000 (14:24 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* IsolatedStorageFile.cs: Added an assert for unrestricted file access
to the class. This is "ok" as the user cannot control the base path
for isolated storage but will be updated to be more "precise" when
imperative assert are supported in the runtime.
* IsolatedStorageFileStream.cs: Changed constructors so the assert
for unrestricted file access is limited to constructors (not the whole
class). Added LinkDemand for UnmanagedCode to get Handle and
SafeFileHandle (2.0) properties.

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

19 years agoGetOrdinal: Perform case insensitive lookup if sensitive lookup fails.
Sureshkumar T [Thu, 24 Mar 2005 14:23:30 +0000 (14:23 -0000)]
GetOrdinal: Perform case insensitive lookup if sensitive lookup fails.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 14:18:23 +0000 (14:18 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* DirectoryCas.cs: Added partial trust unit tests.
* DirectoryTest.cs: Added missing [Test] attribute to
SetCreationTimeException1.
* FileStreamCas.cs: New. CAS unit tests for FileStream.
* PathCas.cs: New. CAS unit tests for Path.
* PathTest.cs: Splitted TestGetPathRoot test in two so the second part
could be re-used in partial trust tests.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 14:12:01 +0000 (14:12 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* Directory.cs: Added a Demand for Read/Write when creating a new
directory.
* FileSystemInfo.cs: Added an InheritanceDemand for Unrestricted on
the class.
* Path.cs: Added a Demand for PathDiscovery in GetFullPath method.
Added an Assert for unrestricted file access to GetTempFilename as
the method must create the (zero-length) file and can be called from
partially trusted code. Added a Demand for unrestricted environment
access to GetTempPath method.
* FileStream.cs: Added a Demand for UnmanagedCode for all constructors
accepting a file handle. Added LinkDemand and InheritanceDemand for
UnmanagedCode to get Handle and SafeFileHandle (2.0) properties.

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

19 years ago2005-03-24 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 24 Mar 2005 13:55:59 +0000 (13:55 -0000)]
2005-03-24  Sureshkumar T  <tsureshkumar@novell.com>

* OdbcDataReader.cs: Decode only outsize length for
SQL_C_TYPE.CHAR type in SQLGetData.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 13:53:21 +0000 (13:53 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* MutexCas.cs: New. CAS unit tests for Mutex.
* ThreadCas.cs: New. CAS unit tests for Thread.
* WaitHandleCas.cs: New. CAS unit tests for WaitHandle.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 13:50:32 +0000 (13:50 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* CompressedStack.cs: Added LinkDemand for UnmanagedCode and ECMA
public key on GetCompressedStack method.
* Mutex: Added LinkDemand for UnmanagedCode to create named (system
wide) mutexes.
* Thread.cs: Added LinkDemand for ECMA public key on [Get|Set]
CompressedStack methods.
* WaitHandle.cs: Added LinkDemand and InheritanceDemand for
UnmanagedCode on set Handle property.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 13:40:19 +0000 (13:40 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* ActivatorCas.cs: New. CAS unit tests for Activator.
* ConsoleCas.cs: New. CAS unit tests for Console.
* EnvironmentCas.cs: Added partial trust test cases.
* ExceptionCas.cs: Added partial trust test cases.
* MarshalByRefObjectCas.cs: New. CAS unit tests for MarshalByRefObject.
* RuntimeMethodHandleCas.cs: New. CAS unit tests RuntimeMethodHandle.
* TypedReferenceCas.cs: New. CAS unit tests for TypedReference.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 13:33:17 +0000 (13:33 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* Activator.cs: Now use the supplied evidences when loading
assemblies. Added LinkDemand for RemotingConfiguration on both
GetObject methods.
* Console.cs: Added Assert for UnmanagedCode on OpenStandard[Error|
Input|Output] as they use a handle on a FileStream (which is
restricted otherwise). Added Demand for UnmanagedCode for the
Set[Error|In|Out] methods.
* MarshalByRefObject.cs: Added LinkDemand for Infrastructure on
CreateObjRef, GetLifetimeService and InitializeLifetimeService.
* RuntimeMethodHandle.cs: Added Demand for UnmanagedCode on
GetFunctionPointer method.
* TypedReference.cs: Added LinkDemand for ReflectionPermission's
MemberAccess on MakeTypedReference.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 13:19:07 +0000 (13:19 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoConfigCas.cs: New. CAS unit tests for CryptoConfig.
* CryptoAPITransformCas.cs: New. CAS unit tests for CryptoAPITransform.

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

19 years ago2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 Mar 2005 13:16:29 +0000 (13:16 -0000)]
2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoConfig.cs: Added LinkDemand for unrestricted to CreateFromName
when used to create instance with object[] parameters.
* CryptoAPITransform.cs: Added Demand for UnmanagedCode to KeyHandle
property.

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

19 years ago2005-03-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 24 Mar 2005 12:43:57 +0000 (12:43 -0000)]
2005-03-24  Zoltan Varga  <vargaz@freemail.hu>

* driver.c: Turn off automatic command line globbing under windows. Fixes #73763.

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

19 years ago2005-03-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 24 Mar 2005 11:51:48 +0000 (11:51 -0000)]
2005-03-24  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Remove debugging stuff left in by mistake.

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

19 years ago2005-03-24 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 24 Mar 2005 11:39:06 +0000 (11:39 -0000)]
2005-03-24  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_precompile_assembly): Load and precompile referenced
assemblies as well. Fixes #74015.

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

19 years ago2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 24 Mar 2005 11:26:02 +0000 (11:26 -0000)]
2005-03-24  Atsushi Enomoto  <atsushi@ximian.com>

* XslTransformTests.cs : added (extra) test which verifies that
  XslTransform.Load() and .Transform() does not hold reference to
  stylesheet/instance XPathNavigator inside its internals.

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

19 years agoIn .:
Raja R Harinath [Thu, 24 Mar 2005 10:31:13 +0000 (10:31 -0000)]
In .:
2005-03-24  Muthu Kannan  <t.manki@gmail.com>

* Makefile (test-local): Create InstallerAssembly.dll for unit
tests.
* System.Configuration.Install_test.dll.sources: New file.

In System.Configuration.Install:
2005-03-24  Muthu Kannan  <t.manki@gmail.com>

Near-complete implementation of System.Configuration.Install.
* Installer.cs: Implement.
* AssemblyInstaller.cs: Likewise.
* TransactedInstaller.cs: Likewise.
* InstallContext.cs: Likewise.
* InstallerCollection.cs: Likewise.

In Test/System.Configuration.Install:
2005-03-24  Muthu Kannan  <t.manki@gmail.com>

* AssemblyInstallerTest.cs: New unit test.
* InstallContextTest.cs: Likewise.
* InstallerTest.cs: Likewise.
* InstallEventArgsTest.cs: Likewise.
* InstallerCollectionTest.cs: Likewise.
* TransactedInstallerTest.cs: Likewise.
* InstallerAssembly.cs: New.  Used by AssemblyInstallerTest.cs.

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

19 years ago2005-03-24 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 24 Mar 2005 09:29:28 +0000 (09:29 -0000)]
2005-03-24  Sureshkumar T  <tsureshkumar@novell.com>

* DbDataAdapter.cs: Update: If  SourceColumn is null, do not set
value for the parameter.

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

19 years agoTo fix parser error for ExternalSource Directives
Manjula GHM [Thu, 24 Mar 2005 09:18:37 +0000 (09:18 -0000)]
To fix parser error for ExternalSource Directives

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

19 years ago* Constant Arithmatic Fixes
Satya Sudha K [Thu, 24 Mar 2005 08:49:11 +0000 (08:49 -0000)]
* Constant Arithmatic Fixes
* Dictionary member access support
* Minor fixes for exponentiation in compound assignment

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

19 years agoMissed while checking in
Manjula GHM [Thu, 24 Mar 2005 07:40:19 +0000 (07:40 -0000)]
Missed while checking in

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

19 years ago Support 'End Statement' in parser and tokenizer file
Manjula GHM [Thu, 24 Mar 2005 07:38:05 +0000 (07:38 -0000)]
 Support 'End Statement' in parser and tokenizer file

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