mono.git
20 years ago * monitor.c: In mono_monitor_exit(), don't throw an exception if the owner
Lluis Sanchez [Mon, 29 Mar 2004 12:03:10 +0000 (12:03 -0000)]
* monitor.c: In mono_monitor_exit(), don't throw an exception if the owner
of the lock is not the current thread. MS.NET don't do it, in spite of
what the documentation says. See bug #56157.

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

20 years agoadded missing methods and properties to a few classes and fixes
Jordi Mas i Hernandez [Mon, 29 Mar 2004 11:32:22 +0000 (11:32 -0000)]
added missing methods and properties to a few classes and fixes

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

20 years ago * CollectionBase.cs: Renamed internal arraylist member to match MS.NET
Lluis Sanchez [Mon, 29 Mar 2004 10:16:32 +0000 (10:16 -0000)]
* CollectionBase.cs: Renamed internal arraylist member to match MS.NET
  (to allow serialization interoperability).

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

20 years ago2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
Juraj Skripsky [Mon, 29 Mar 2004 07:56:47 +0000 (07:56 -0000)]
2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>

* System.Data.dll.sources : added classes in Mono.Data.SqlExpressions
* Makefile : add jay-target for Mono.Data.SqlExpressions/Parser.cs

* ExpressionElements.cs : remove
* DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
Integration of new Mono.Data.SqlExpressions classes used in
DataTable.{Select, Compute}.
Fixes bug #55503 and lots of failures in DataTableTest.cs.

* DataTableTest.cs : add test case for bug #55503,
comment out meaningless test cases.

* Initial implementation of Mono.Data.SqlExpressions.

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

20 years ago * ILParser.jay: Fix typo.
Jackson Harper [Mon, 29 Mar 2004 05:18:33 +0000 (05:18 -0000)]
    * ILParser.jay: Fix typo.

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

20 years agorevert -- breaks build
Ben Maurer [Mon, 29 Mar 2004 05:13:03 +0000 (05:13 -0000)]
revert -- breaks build

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

20 years agoNew test.
Martin Baulig [Mon, 29 Mar 2004 01:58:26 +0000 (01:58 -0000)]
New test.

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

20 years ago2004-03-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 01:57:45 +0000 (01:57 -0000)]
2004-03-28  Martin Baulig  <martin@ximian.com>

* mini.c (mmono_method_to_ir): In CEE_STELEM, do a handle_stobj()
if neccessary.

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

20 years ago2004-03-28 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Mon, 29 Mar 2004 01:35:41 +0000 (01:35 -0000)]
2004-03-28 Ben Maurer  <bmaurer@users.sourceforge.net>

* expression.cs: cs0213, cant fix a fixed expression.
fixes 50231.

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

20 years agomore test
Ben Maurer [Mon, 29 Mar 2004 01:18:06 +0000 (01:18 -0000)]
more test

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

20 years ago2004-03-28 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Mon, 29 Mar 2004 01:16:29 +0000 (01:16 -0000)]
2004-03-28 Ben Maurer  <bmaurer@users.sourceforge.net>

* cs-parser.jay: detect invalid embeded statements gracefully.
bug #51113.

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

20 years agotest case
Ben Maurer [Mon, 29 Mar 2004 01:14:22 +0000 (01:14 -0000)]
test case

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

20 years ago2004-03-28 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Mon, 29 Mar 2004 01:09:06 +0000 (01:09 -0000)]
2004-03-28 Ben Maurer  <bmaurer@users.sourceforge.net>

* ecore.cs, typemanager.cs: Correct impl of cs1540 check.
As a regex:
s/
the invocation type may not be a subclass of the tye of the item/
The type of the item must be a subclass of the invocation item.
/g

Fixes bug #50820.

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

20 years ago2004-03-28 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
Francisco Figueiredo Jr. [Mon, 29 Mar 2004 00:01:19 +0000 (00:01 -0000)]
2004-03-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
        * Npgsql/NpgsqlTransaction.cs: Fixed a bug where rollback was being called when disposing NpgsqlTransaction objects even when transaction was sucessfully commited. Fixes bug 725 in gborg. Thanks melkor (melkor@adinet.com.uy) for spotting that.

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

20 years ago * PeapiTypeRef.cs: Check for null bounds in bound arrays. Patch by
Jackson Harper [Sun, 28 Mar 2004 20:56:50 +0000 (20:56 -0000)]
      * PeapiTypeRef.cs: Check for null bounds in bound arrays. Patch by
Vladimir Vukicevic.
* ModifiablyType.cs: Set names properly for bound arrays.

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

20 years agoupdating mbas text a bit
Rafael Teixeira [Sun, 28 Mar 2004 19:43:01 +0000 (19:43 -0000)]
updating mbas text a bit

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

20 years agoBug fixes ....
Martin Baulig [Sun, 28 Mar 2004 19:28:13 +0000 (19:28 -0000)]
Bug fixes ....

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

20 years ago * ILParser.jay: Set true and false literals properly. Add instance
Jackson Harper [Sun, 28 Mar 2004 19:27:39 +0000 (19:27 -0000)]
    * ILParser.jay: Set true and false literals properly. Add instance
property attribute.

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

20 years ago2004-03-28 Martin Baulig <martin@ximian.com>
Martin Baulig [Sun, 28 Mar 2004 19:26:40 +0000 (19:26 -0000)]
2004-03-28  Martin Baulig  <martin@ximian.com>

* class.c (mono_class_init): Don't call init_properties() and
init_events() for generic instances; set `prop->parent' when
inflating properties.

* reflection.c (mono_generic_inst_get_object): Call
`mono_class_init (ginst->klass)'.
(mono_type_get_object): Only create a MonoGenericInst if your
generic type is a TypeBuilder.
(do_mono_reflection_bind_generic_parameters): Only set
`ginst->is_dynamic' if our generic type is a TypeBuilder.

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

20 years agoDon't crash here ;-)
Martin Baulig [Sun, 28 Mar 2004 19:24:50 +0000 (19:24 -0000)]
Don't crash here ;-)

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

20 years ago2004-02-20 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Sun, 28 Mar 2004 19:20:34 +0000 (19:20 -0000)]
2004-02-20  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* Utils.cs:
Spacing corrections

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

20 years ago * get.c (get_constant): output bool consts as bool(true) or
Jackson Harper [Sun, 28 Mar 2004 18:30:48 +0000 (18:30 -0000)]
    * get.c (get_constant): output bool consts as bool(true) or
       bool(false)  (to be same as ildasm, also what mono and ms
       ilasm expect). Patch by Vladimir Vukicevic.

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

20 years ago2004-03-28 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
Francisco Figueiredo Jr. [Sun, 28 Mar 2004 18:27:08 +0000 (18:27 -0000)]
2004-03-28  Francisco Figueiredo Jr.  <fxjrlists@yahoo.com.br>
        * Npgsql/NpgsqlConnection.cs: Implemented IClonable interface in NpgsqlConnection class. Thanks Juliano Barbosa for pointing it out.

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

20 years ago2004-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 28 Mar 2004 17:16:54 +0000 (17:16 -0000)]
2004-03-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c (mono_arch_patch_code): Fix warnings.

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

20 years ago2004-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 28 Mar 2004 17:08:57 +0000 (17:08 -0000)]
2004-03-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if
dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
remove unused conv_u4 opcode.

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

20 years ago2004-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 28 Mar 2004 16:15:17 +0000 (16:15 -0000)]
2004-03-28  Zoltan Varga  <vargaz@freemail.hu>

* appdomain.c (unload_thread_main): Do not clear proxy_vtable_hash.
Fixes #56091.

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

20 years ago2004-03-28 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sun, 28 Mar 2004 16:12:42 +0000 (16:12 -0000)]
2004-03-28  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c: Remove valgrind workaround since it slows down things
even when mono is not run under valgrind.

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

20 years agoThis fixes bugs #56129 and #56014.
Juraj Skripsky [Sun, 28 Mar 2004 11:43:28 +0000 (11:43 -0000)]
This fixes bugs #56129 and #56014.

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

20 years agoRemove OpenModeTypes
Duncan Mak [Sun, 28 Mar 2004 06:06:31 +0000 (06:06 -0000)]
Remove OpenModeTypes

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 22:33:16 +0000 (22:33 -0000)]
2004-03-27  Atsushi Enomoto  <atsushi@ximian.com>

* ScriptCompilerInfo.cs : #line directive now holds dummy filename
  when BaseURI for msxsl:script node is not available. This fixes
  bug #56070.
  Don't output line number in the error message, when it is 0.

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 22:14:43 +0000 (22:14 -0000)]
2004-03-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlReader.cs : ReadInnerXml() should progress reader when it is on
  an empty element. This fixes bug #56064.

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 22:00:44 +0000 (22:00 -0000)]
2004-03-27  Atsushi Enomoto <atsushi@ximian.com>

* DTDReader.cs : In some places sequential parameter entity was
  incorrectly skipped (and caused invalid result).

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 20:21:53 +0000 (20:21 -0000)]
2004-03-27  Atsushi Enomoto  <atsushi@ximian.com>

* Compiler.cs : Supply NameTable to base ctor() of XPathNavigatorNsm.

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 20:21:18 +0000 (20:21 -0000)]
2004-03-27  Atsushi Enomoto  <atsushi@ximian.com>

* XsltContext.cs : Supply NameTable to base ctor().

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 19:59:31 +0000 (19:59 -0000)]
2004-03-27  Atsushi Enomoto <atsushi@ximian.com>

* SignedXml.cs : namespace nodes also should be supplied for enveloped
  objects.
* KeyInfoRetrievalMethod.cs : Keep input element as well as others.

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 19:46:40 +0000 (19:46 -0000)]
2004-03-27  Atsushi Enomoto <atsushi@ximian.com>

* SignedXml.cs : XPath transformation output is not type of Stream.
  Fix to support them by canonicalizing it.

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 19:21:31 +0000 (19:21 -0000)]
2004-03-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlDsigXsltTransform.cs : GetOutput() now just returns
  transformation output.

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

20 years ago2004-03-27 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 27 Mar 2004 18:48:10 +0000 (18:48 -0000)]
2004-03-27  Sebastien Pouliot  <sebastien@ximian.com>

* xmldsig.cs: Added (manual) certificates for Phaos tests using
Manifests.

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

20 years ago2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 27 Mar 2004 18:13:50 +0000 (18:13 -0000)]
2004-03-27  Atsushi Enomoto <atsushi@ximian.com>

* SignedXml.cs : Added xmlns support for Manifest.

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

20 years ago2004-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 27 Mar 2004 13:19:57 +0000 (13:19 -0000)]
2004-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
Now the posted file content does not have the boundaries and headers
included.

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

20 years ago* ForEachEnum.cs:
Duncan Mak [Sat, 27 Mar 2004 06:07:16 +0000 (06:07 -0000)]
* ForEachEnum.cs:
* OpenModeTypes.cs: Implemented according to the
Mainsoft Java implementation.

* Globals.cs:
* VBFixedArrayAttribute.cs:
* VBFixedStringAttribute: Changes made by Dennis Hayes
<dennish@raytek.com> from
 studying the Mainsoft implementation.

* Utils.cs (GetResourceString): Added stub for easing the port
from the Mainsoft Java implementation.

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

20 years agoRemove Changelog, it's ChangeLog now
Duncan Mak [Sat, 27 Mar 2004 06:04:24 +0000 (06:04 -0000)]
Remove Changelog, it's ChangeLog now

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

20 years agoFix the filename
Duncan Mak [Sat, 27 Mar 2004 06:03:18 +0000 (06:03 -0000)]
Fix the filename

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

20 years ago2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 26 Mar 2004 21:16:36 +0000 (21:16 -0000)]
2004-03-26  Sebastien Pouliot  <sebastien@ximian.com>

* System.Security.dll.sources: Added internal class Manifest.

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

20 years ago2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 26 Mar 2004 21:14:07 +0000 (21:14 -0000)]
2004-03-26  Sebastien Pouliot  <sebastien@ximian.com>

* XmlSignature.cs: Added constants for Manifest element and URI.

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

20 years ago2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 26 Mar 2004 21:10:40 +0000 (21:10 -0000)]
2004-03-26  Sebastien Pouliot  <sebastien@ximian.com>

* Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
This should help us to validate more tests from the Phaos suite.
Note: Microsoft doesn't support this and we only support it for
verification (not signature generation).
* SignedXml.cs: Added support for Manifest, including recursive
manifests. Made some changes to reuse existing code as much as
possible. Better support for local/remote files - but requires
catching an Uri exception for local files :-(.

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

20 years ago2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 26 Mar 2004 20:58:04 +0000 (20:58 -0000)]
2004-03-26  Sebastien Pouliot  <sebastien@ximian.com>

* xmldsig.cs: Reactivated <Manifest> tests as support for them will be
present in Mono. Changed directory for Phaos tests because of some
documents' references.

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

20 years ago2004-03-26 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Fri, 26 Mar 2004 18:39:17 +0000 (18:39 -0000)]
2004-03-26 Ben Maurer  <bmaurer@users.sourceforge.net>

* do-tests.pl: i think this fixes the problem with
tests that have comp options alway passing
* mcs-expect*: update for above.

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

20 years agoadded missing members and complete the wrapper
Jordi Mas i Hernandez [Fri, 26 Mar 2004 17:53:51 +0000 (17:53 -0000)]
added missing members and complete the wrapper

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

20 years ago2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 26 Mar 2004 16:24:04 +0000 (16:24 -0000)]
2004-03-26  Atsushi Enomoto <atsushi@ximian.com>

* System.Security_test.dll.sources :
  Added XmlDsigEnvelopedSignatureTest.cs.

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

20 years ago2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 26 Mar 2004 16:22:39 +0000 (16:22 -0000)]
2004-03-26  Atsushi Enomoto  <atsushi@ximian.com>

* Added XmlDsigEnvelopedSignatureTransformTest.cs.
* SignedXmlTest.cs : Added some KeyInfo and error handling repro.

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

20 years ago2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 26 Mar 2004 16:18:06 +0000 (16:18 -0000)]
2004-03-26  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : Use alias for mcs and mono and debuginfo.

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

20 years ago2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 26 Mar 2004 16:12:40 +0000 (16:12 -0000)]
2004-03-26  Atsushi Enomoto <atsushi@ximian.com>

* XmlCanonicalizer.cs :
  Don't output &#xD; for Whitespace node.
  To filter every kind of nodes, make sure node.Attributes isnot null.
  This makes some phaos tests passed.

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

20 years ago2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 26 Mar 2004 16:08:47 +0000 (16:08 -0000)]
2004-03-26  Atsushi Enomoto <atsushi@ximian.com>

* SignedXml.cs :
  - Use specified (or default) XmlResolver to get external resource,
    instead of using WebRequest directly. Also modified it easier.
  - ApplyTransform() : Clone only when it is required. Handle
    transformation output other than Stream.
  - Even if applicable key was not found in GetHash(), don't throw
    crypto exception every time and just return false (MS does it).
    Throw an exception only when no key was specified as KeyInfo.
* XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
  incorrectly set InputTypes internally.
* XmlDsigXPathTransform.cs : Context namespace nodes in loaded
  transform parameter (i.e. <XPath>..</XPath>) should be registered
  to XsltContext. Otherwise prefix binding error occurs.
  Just filter attribute node, instead of filtering attribute children.

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

20 years ago2004-03-26 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 26 Mar 2004 15:30:23 +0000 (15:30 -0000)]
2004-03-26  Zoltan Varga  <vargaz@freemail.hu>

* mini-sparc.c: Update status.

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

20 years ago2004-03-26 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 26 Mar 2004 15:27:57 +0000 (15:27 -0000)]
2004-03-26  Zoltan Varga  <vargaz@freemail.hu>

* inssel-sparc.brg: Add some optimizations.

* inssel-sparc.brg mini-sparc.c: Rework branch instructions to allow
future delay slot filling. Add support for varargs, tail calls and JMP.

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

20 years ago2004-03-26 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 26 Mar 2004 15:24:16 +0000 (15:24 -0000)]
2004-03-26  Zoltan Varga  <vargaz@freemail.hu>

* inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.

* inssel.brg: Fix register allocation in OP_ARGLIST.

* inssel.brg: Fix warnings.

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

20 years agodos2unix and some cosmatic changes.
Ravindra [Fri, 26 Mar 2004 13:48:00 +0000 (13:48 -0000)]
dos2unix and some cosmatic changes.

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

20 years agoFixed wrapmode enum values.
Ravindra [Fri, 26 Mar 2004 13:33:58 +0000 (13:33 -0000)]
Fixed wrapmode enum values.

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

20 years ago2004-03-26 Umadevi S (sumadevi@novell.com)
Umadevi S [Fri, 26 Mar 2004 05:05:21 +0000 (05:05 -0000)]
2004-03-26 Umadevi S (sumadevi@novell.com)
* Changed SqlClientPermission Attribute to fix a build issue using csc

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

20 years agoremoved debugging output
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:54:57 +0000 (23:54 -0000)]
removed debugging output

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

20 years ago2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:52:50 +0000 (23:52 -0000)]
2004-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* SearchPattern.cs: small improvement for files with no wildcard.

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

20 years ago2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:45:44 +0000 (23:45 -0000)]
2004-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Process.cs: use the ISynchronizeInvoke object to invoke the event.
Implemented Close, CloseMainWindow and Kill.

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

20 years ago2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:45:40 +0000 (23:45 -0000)]
2004-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* io-layer/daemon-messages.h: added kill structs.

* io-layer/daemon.c: implemented process_process_kill.
* io-layer/handles-private.h:  define process_process_kill.
* io-layer/handles.c: implemented _wapi_handle_process_kill.
* io-layer/processes.[ch]: implemented TerminateProcess.
* metadata/icall.c: added Kill_internal icall.
* metadata/process.[ch]: added Kill_internal icall.

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

20 years agobuild fix for 1.2 prof
Ben Maurer [Thu, 25 Mar 2004 23:00:27 +0000 (23:00 -0000)]
build fix for 1.2 prof

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 22:50:04 +0000 (22:50 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* class.h (MonoStats): Added `generic_instance_count',
`inflated_method_count', `inflated_type_count' and
`generics_metadata_size'.

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

20 years ago2004-03-25 Bernie Solomon <bernard@ugsolutions.com>
Bernie Solomon [Thu, 25 Mar 2004 22:14:54 +0000 (22:14 -0000)]
2004-03-25  Bernie Solomon  <bernard@ugsolutions.com>

* daemon.c (rem_fd): On solaris you seem to get an
error even after removing the input source so don't
try and rem_fd it twice.

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

20 years agoOooops.
Martin Baulig [Thu, 25 Mar 2004 22:09:06 +0000 (22:09 -0000)]
Oooops.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 22:06:32 +0000 (22:06 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* interp.c (stackval_from_data): Added MONO_TYPE_GENERICINST.
(stackval_to_data): Added MONO_TYPE_GENERICINST.
(calc_offsets): Use mono_class_get_full() and mono_get_method_full().
(ves_exec_method_with_context): Likewise.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 22:06:20 +0000 (22:06 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* mini.c (inflate_generic_field): Removed.
(mini_get_method): Removed, use mono_get_method_full(),
(mini_get_class): Removed, use mono_class_get_full().
(mono_method_to_ir): Pass our generic context to
mono_field_from_token().

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 22:06:07 +0000 (22:06 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* class.c (mono_class_get_full): New public function; does a
mono_class_get(), but also takes a `MonoGenericContext *'.

* loader.c (mono_field_from_memberref): Renamed to
`field_from_memberref', made static and added `MonoGenericContext *'
argument.
(mono_field_from_token): Added `MonoGenericInst *' argument.
(method_from_memberef): Likewise.
(mono_get_method_from_token): Likewise.
(mono_get_method_full): New public function; does a
mono_get_method(), but also takes a `MonoGenericContext *'.

* verify.c (mono_method_verify): Get the method's generic context
and pass it to mono_field_from_token(), mono_get_method_full() and
mono_class_get_full().

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 21:04:28 +0000 (21:04 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* mcs-expect-no-errors: Removed cs1548 and cs1458-2.cs (fixed #55364).

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

20 years ago2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 21:01:00 +0000 (21:01 -0000)]
2004-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* reflection.c: no warnings now.

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 20:31:32 +0000 (20:31 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyBuilder.cs: Changed strongname support to match MS
implementation (i.e. attributes are used by the compiler - not by
AssemblyBuilder).

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 20:29:43 +0000 (20:29 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* attribute.cs: Added methods to get a string and a bool from an
attribute. Required to information from AssemblyKeyFileAttribute,
AttributeKeyNameAttribute (string) and AssemblyDelaySign (bool).
* codegen.cs: Modified AssemblyName creation to include support for
strongnames. Catch additional exceptions to report them as CS1548.
* compiler.csproj: Updated include CryptoConvert.cs.
* compiler.csproj.user: Removed file - user specific configuration.
* CryptoConvert.cs: New. A COPY of the class CryptoConvert from
Mono.Security assembly. The original class is maintained and tested in
/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoConvert.cs.
* drivers.cs: Added support for /keyfile, /keycontainer and /delaysign
like CSC 8.0 (C# v2) supports.
* Makefile: Added CryptoConvert.cs to mcs sources.
* rootcontext.cs: Added new options for strongnames.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 20:15:56 +0000 (20:15 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* class.c (mono_class_inflate_generic_type): Take a
`MonoGenericContext *' instead of a `MonoGenericInst *' and a
`MonoGenericMethod *'.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 19:55:13 +0000 (19:55 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* mini.c (mini_get_class): Take a `MonoGenericContext *' instead
of a `MonoMethod *'.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 19:51:03 +0000 (19:51 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* mini.c (mini_get_method): Take a `MonoGenericContext *' instead
of a `MonoGenericMethod *'.
(TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
a new local variable called `generic_context' which holds the
current `MonoGenericContext *'; use it to lookup things.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 19:50:48 +0000 (19:50 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* loader.h (MonoMethodInflated): Store the MonoGenericContext
instead of the MonoGenericMethod here.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 19:00:17 +0000 (19:00 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* class.h (MonoGenericInst): Added `MonoGenericContext *context';
each time we create a new MonoGenericInst, we also create a new
context which points back to us.

* class.c (inflate_method): Use `ginst->context' instead of
creating a new context.

* loader.c (method_from_memberref): Use
`klass->generic_inst->context' instead of creating a new context.

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

20 years ago * gacutil.cs: Add culture to assemblies version string.
Jackson Harper [Thu, 25 Mar 2004 18:56:33 +0000 (18:56 -0000)]
    * gacutil.cs: Add culture to assemblies version string.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 18:52:25 +0000 (18:52 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* class.h (MonoGenericContext): New struct.
(MonoGenericMethod): Removed `generic_inst'.

* class.c (mono_class_inflate_generic_method): Take a
`MonoGenericContext *' instead of a `MonoGenericMethod *'.

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

20 years ago2004-03-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 25 Mar 2004 18:26:11 +0000 (18:26 -0000)]
2004-03-25  Martin Baulig  <martin@ximian.com>

* loader.h (MonoMethodInflated): New typedef.

* metadata.h (MonoMethodSignature): Removed `gen_method', make
`generic_param_count' consume just 30 bits, added `is_inflated'
and `has_type_parameters' flags (one bit each).

* class.c (mono_class_inflate_generic_method): Create a
MonoMethodInflated instead of a MonoMethodNormal and set
`is_inflated' in the method signature.

* class.h (MonoGenericMethod): Removed `generic_method'.

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 18:01:12 +0000 (18:01 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
-retrieval-method.xml in the Phaos test suite.

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 18:00:13 +0000 (18:00 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* xmldsig.cs: Some of the Phaos test files uses <Manifest> with having
*manifest* in their name. Manually load certificates for Phaos tests
that requires it (as RetrievalMethod isn't support automatically).

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

20 years ago2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Thu, 25 Mar 2004 17:29:52 +0000 (17:29 -0000)]
2004-03-25 Ben Maurer  <bmaurer@users.sourceforge.net>

* cs1510-2.cs: test for 56016.
* cs0154-2.cs: test for 55780.
* cs0246-6.cs: test for 55770.

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

20 years ago2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Thu, 25 Mar 2004 16:49:33 +0000 (16:49 -0000)]
2004-03-25 Ben Maurer  <bmaurer@users.sourceforge.net>

* cs1510-2.cs: test for 56016.

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

20 years ago2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Thu, 25 Mar 2004 16:41:52 +0000 (16:41 -0000)]
2004-03-25 Ben Maurer  <bmaurer@users.sourceforge.net>

* cs0122-4.cs: test for bug 55970.

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

20 years ago * soapsuds.cs: Execute the tool from a new domain that has the current
Lluis Sanchez [Thu, 25 Mar 2004 15:54:38 +0000 (15:54 -0000)]
* soapsuds.cs: Execute the tool from a new domain that has the current
  directory as application base for locating assemblies. This fixes #55586.

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

20 years agofix the build on windows
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 15:18:16 +0000 (15:18 -0000)]
fix the build on windows

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 15:11:49 +0000 (15:11 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* cs1548.cs: More descriptive comment  (missing file).
* cs1548-2.cs: New. Invalid strongname file (content).
* mcs-expect-no-errors: Added cs1458-2.cs.

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

20 years agoAdded a sample for TextureBrush wrapmodes.
Ravindra [Thu, 25 Mar 2004 14:37:35 +0000 (14:37 -0000)]
Added a sample for TextureBrush wrapmodes.

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

20 years ago * FileStream.cs: ReadByte(): when buffering is disabled, read the byte with
Lluis Sanchez [Thu, 25 Mar 2004 14:35:31 +0000 (14:35 -0000)]
* FileStream.cs: ReadByte(): when buffering is disabled, read the byte with
  a direct call to ReadData. In InitBuffer(), if buffering is disabled,
  create a buffer of one byte, to be used in ReadByte.
  This fixes bug #52361.

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

20 years agoAdded ChangeLog and a bmp for samples.
Ravindra [Thu, 25 Mar 2004 14:31:20 +0000 (14:31 -0000)]
Added ChangeLog and a bmp for samples.

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 14:09:45 +0000 (14:09 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* xmldsig.cs: Added code to automagically ajust for presence of
HMAC-MD5 and ExC14N in the framework and to manualy skip signatures
containing <Manifest> (not supported).

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 13:03:06 +0000 (13:03 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* xmldsig.cs: Added code to ignore tests using HMAC-MD5 (1 in Phaos
suite) as it is unsupported in Fx 1.0/1.1.

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

20 years ago2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 25 Mar 2004 12:46:03 +0000 (12:46 -0000)]
2004-03-25  Sebastien Pouliot  <sebastien@ximian.com>

* mcs.1: Added documentation for the new options /delaysign[+|-],
/keyfile and /keycontainer to the man page.

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

20 years ago * daemon.c: in process_post_mortem, If the child terminated due to the
Lluis Sanchez [Thu, 25 Mar 2004 12:34:03 +0000 (12:34 -0000)]
* daemon.c: in process_post_mortem, If the child terminated due to the
receipt of a signal, the exit status must be based on WTERMSIG, since
WEXITSTATUS returns 0 in this case.

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

20 years agofix ValidateCookieCollection() to prevent InvalidCastException.
Alon Gazit [Thu, 25 Mar 2004 12:30:25 +0000 (12:30 -0000)]
fix ValidateCookieCollection() to prevent InvalidCastException.

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

20 years ago * Path.cs: In GetDirectoryName, fixed check for volumeSeparator. This
Lluis Sanchez [Thu, 25 Mar 2004 11:44:40 +0000 (11:44 -0000)]
* Path.cs: In GetDirectoryName, fixed check for volumeSeparator. This
  fixes bug #53892.

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