mono.git
22 years agoadded top_srcdir to includes.
Daniel Stodden [Mon, 27 May 2002 22:56:20 +0000 (22:56 -0000)]
added top_srcdir to includes.
fixes vpath-builds wrt inclusion of mono/os/util.h

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

22 years agoUpdated copyright headers to the standard template
Miguel de Icaza [Mon, 27 May 2002 22:56:15 +0000 (22:56 -0000)]
Updated copyright headers to the standard template

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

22 years agoMoved public API documentation from the source files into the
Jonathan Pryor [Mon, 27 May 2002 22:00:30 +0000 (22:00 -0000)]
Moved public API documentation from the source files into the
/mcs/docs/apidocs/xml/en/System.Diagnostics/<class>.xml files.

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

22 years agoMoved public API documentation from source code into the appropriate XML
Jonathan Pryor [Mon, 27 May 2002 21:57:03 +0000 (21:57 -0000)]
Moved public API documentation from source code into the appropriate XML
files.

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

22 years agoWhen will I ever remember to add my new files before committing?
Jason Diamond [Mon, 27 May 2002 19:18:16 +0000 (19:18 -0000)]
When will I ever remember to add my new files before committing?

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

22 years agoIn System.Xml:
Jason Diamond [Mon, 27 May 2002 19:17:13 +0000 (19:17 -0000)]
In System.Xml:

* XmlDocumentNavigator.cs: Added file to directory.

* XmlNode.cs (CreateNavigator): Implemented.
(InnerText): Implemented.

* XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
throwing exception.
(Load(XmlReader)): Allow for namespace qualified attributes.

* XmlElement.cs: Implemented GetAttribute(string, string) and both
GetAttributeNode overloads.
(SetAttributeNode(XmlAttribute)): Implemented.

* XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
and RemoveNamedItem(string, string).

* XmlLinkedNode.cs (PreviousSibling): Implemented.

* XmlTextReader.cs: Added code to maintain the order of attributes as
they're parsed. XML doesn't require this but Microsoft's parser does it and
matching them makes testing easier so now we have it, too.

In Test:

* XPathNavigatorTests.cs: Added file to directory.

* AllTests.cs: Added XPathNavigatorTests to suite.

* XmlTextReaderTests.cs: Added test to make sure attributes are ordered
like Microsoft's parser does it.

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

22 years ago * Uri.cs: Implemented ctor UriTest (baseUri, relativeUri)
Lawrence Pit [Mon, 27 May 2002 18:40:54 +0000 (18:40 -0000)]
* Uri.cs: Implemented ctor UriTest (baseUri, relativeUri)
* Uri.cs: Fixed bug in internal method GetSchemeDelimiter

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

22 years agoadd something after windows link
Johannes Roith [Mon, 27 May 2002 17:08:36 +0000 (17:08 -0000)]
add something after windows link

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

22 years agoadd some windows bits to faq.
Johannes Roith [Mon, 27 May 2002 17:06:57 +0000 (17:06 -0000)]
add some windows bits to faq.

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

22 years ago2002-05-27 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 27 May 2002 15:24:27 +0000 (15:24 -0000)]
2002-05-27  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (Invocation.Emit): Only emit calls to
System.Diagnostics.Debug and System.Diagnostics.Trace if the
TRACE and DEBUG defines are passed on the command line.

* rootcontext.cs: Global settings for tracing and debugging.

* cs-tokenizer.cs (define): New utility function to track
defines.   Set the global settings for TRACE and DEBUG if found.

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

22 years agoUpdate web page
Miguel de Icaza [Mon, 27 May 2002 15:21:24 +0000 (15:21 -0000)]
Update web page

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

22 years ago2002-05-27 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 27 May 2002 13:05:10 +0000 (13:05 -0000)]
2002-05-27  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (mono_cfg_new): reserve additional space to store ESP when
calling finally handlers.

* exception.c (arch_get_call_finally): save ESP before calling
finally handler.

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

22 years ago2002-05-27 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 27 May 2002 10:59:00 +0000 (10:59 -0000)]
2002-05-27  Nick Drochak  <ndrochak@gol.com>

* ArrayListTest.cs (TestLastIndexOf): Add try-catch block to report
where we are throwing.

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

22 years ago2002-05-27 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 27 May 2002 10:56:56 +0000 (10:56 -0000)]
2002-05-27  Nick Drochak  <ndrochak@gol.com>

* ArrayList.cs (LastIndexOf): Return -1 if searching for null, also
fix check of parameters sent to make sure we don't search beyond the
beginning of the list.
(ListWrapper): Throw exception if called with null.
We now pass all unit tests.

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

22 years ago2002-05-27 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Mon, 27 May 2002 10:00:28 +0000 (10:00 -0000)]
2002-05-27  Daniel Morgan <danmorg@sc.rr.com>

* System.Data.SqlClient/SqlCommand.cs: typo
should be CommandBehavior.KeyInfo

* Test/SqlSharpCli.cs: refactored and added a few more
features.

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

22 years ago2002-05-27 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 27 May 2002 06:33:10 +0000 (06:33 -0000)]
2002-05-27  Dietmar Maurer  <dietmar@ximian.com>

* helpers.c (map_arg_type): move some generic helper function into
this file.

* mono.c (usage): new option --breakonex

* exception.c (arch_exc_is_caught): only return FALSE if really
unhandled.

* jit.c (mono_thread_abort): free jit_tls

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

22 years agojust an small icon
Rafael Teixeira [Mon, 27 May 2002 01:45:07 +0000 (01:45 -0000)]
just an small icon

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

22 years agoMerged latest mcs files
Rafael Teixeira [Mon, 27 May 2002 01:40:40 +0000 (01:40 -0000)]
Merged latest mcs files

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

22 years agoFew updates
Miguel de Icaza [Sun, 26 May 2002 23:25:58 +0000 (23:25 -0000)]
Few updates

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

22 years ago2002-05-27 Tim Coleman <tim@timcoleman.com>
Tim Coleman [Sun, 26 May 2002 23:14:10 +0000 (23:14 -0000)]
2002-05-27  Tim Coleman <tim@timcoleman.com>
        * list: update to compile properly (add missing
        files and switch path delimiter from '\' to '/').

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

22 years ago2002-05-27 Tim Coleman <tim@timcoleman.com>
Tim Coleman [Sun, 26 May 2002 23:08:20 +0000 (23:08 -0000)]
2002-05-27  Tim Coleman <tim@timcoleman.com>
        * TestSqlDataAdapter.cs: remove explicit opening of connection.
        This should occur implicitly now.

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

22 years agoAdd new files to maintain the RSS feed
Miguel de Icaza [Sun, 26 May 2002 23:00:19 +0000 (23:00 -0000)]
Add new files to maintain the RSS feed

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

22 years agoupdate fixes
Miguel de Icaza [Sun, 26 May 2002 22:43:31 +0000 (22:43 -0000)]
update fixes

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

22 years agoFix up makefile to exclude test-124 as it requires a -r System.Drawing to work correctly
Ravi Pratap M [Sun, 26 May 2002 18:28:33 +0000 (18:28 -0000)]
Fix up makefile to exclude test-124 as it requires a -r System.Drawing to work correctly

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

22 years agoRemove conflict marker
Ravi Pratap M [Sun, 26 May 2002 18:21:36 +0000 (18:21 -0000)]
Remove conflict marker

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

22 years ago2002-05-25 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 26 May 2002 18:20:25 +0000 (18:20 -0000)]
2002-05-25  Ravi Pratap  <ravi@ximian.com>

* interface.cs (Populate*): Pass in the TypeContainer as well as
the DeclSpace as parameters so that we can create EmitContexts and
then use that to apply attributes etc.

(PopulateMethod, PopulateEvent, PopulateProperty)
(PopulateIndexer): Apply attributes everywhere.

* attribute.cs (CheckAttribute): Include InterfaceMethod, InterfaceEvent
etc.

(ApplyAttributes): Update accordingly.

We now apply interface attributes for all members too.

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

22 years agoFlush changes
Ravi Pratap M [Sun, 26 May 2002 18:19:34 +0000 (18:19 -0000)]
Flush changes

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

22 years ago2002-05-26 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Sun, 26 May 2002 12:21:18 +0000 (12:21 -0000)]
2002-05-26  Daniel Morgan <danmorg@sc.rr.com>

* System.Data/DataRow.cs
* System.Data.Common/DbDataAdapter.cs: fix to
get Test/TestSqlDataAdapter.cs to work again

* Test/TestSqlDataAdapter.cs: removed comment
about SqlDataReader:NextResult() not being implemented; it
bas been implemented

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

22 years ago2002-05-26 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Sun, 26 May 2002 11:57:30 +0000 (11:57 -0000)]
2002-05-26  Daniel Morgan <danmorg@sc.rr.com>

* System.Data/DataRow.cs: modified
support setting of DBNull.Value
using the Item indexer this[DataColumn]

* System.Data.SqlClient/SqlCommand.cs: modified
tweaks to show TODO's for other CommandBehavior.
Set AllowDBNull column to true for IsKey row
in schema DataTable.

* System.Data.SqlClient/SqlConnection.cs: modified
if transaction is in progress when a Close() is called,
do a transaction Rollback.

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

22 years agoHousekeeping!!!
Rafael Teixeira [Sun, 26 May 2002 10:29:03 +0000 (10:29 -0000)]
Housekeeping!!!

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

22 years ago2002-05-26 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Sun, 26 May 2002 07:26:52 +0000 (07:26 -0000)]
2002-05-26  Daniel Morgan <danmorg@sc.rr.com>

* Test/SqlSharpCli.cs: added file
My new toy.  SQL# is a command-line tool to enter
SQL commands and queries using Mono System.Data.
It also serves as a test for Mono System.Data.

* System.Data.SqlClient/SqlCommand.cs: modified
- ExecuteNonQuery(), ExecuteScalar(), and ExecuteReader()
should handle the results from SQL Commands and Queries.
- Internal class SqlResult should not create schema Table
for the result from a SQL Command.  Also, set the RecordsRetrieved
property for SqlDataReader.
- Closing the SqlDataReader should Close() the SqlConnection for
a CommandBehavior.CloseConnection.
- Set defaults for SqlResult

* System.Data.SqlClient/SqlConnection.cs: modified -
when SqlDataReader is Close()
should Close() the SqlConnection for
a CommandBehavior.CloseConnection.  Changed internal Property
from OpenReader get/set to IsReaderOpen get and created
internal methods OpenReader()/CloseReader() for SqlCommand to call.
SqlConnection needs to be prevented from doing while SqlDataReader
is being used.

* System.Data.SqlClient/SqlDataReader.cs: modified -
call SqlCommand's OpenReader() internal method.  get
RecordsRetrieved from SqlResult.  set/reset default
values for SqlDataReader.

* Test/PostgresTest.cs
* Test/TestExecuteScalar.cs
* Test/TestSqlDataReader.cs: modified
for the Execute...() methods in SqlCommand
to test SQL Queries and Commands

* Test/System.Data_test.build: modified
exclude new file Test/SqlSharpCli.cs from
test build

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

22 years agoUpdated list
Miguel de Icaza [Sun, 26 May 2002 03:01:24 +0000 (03:01 -0000)]
Updated list

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

22 years agoAdd small stub to allow for the assembly to compile
Miguel de Icaza [Sun, 26 May 2002 03:01:15 +0000 (03:01 -0000)]
Add small stub to allow for the assembly to compile

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

22 years agoMajor fixes. We can now compile the System.Web assembly with MCS!
Miguel de Icaza [Sun, 26 May 2002 02:57:16 +0000 (02:57 -0000)]
Major fixes.  We can now compile the System.Web assembly with MCS!
Wooooohooo!

2002-05-26  Miguel de Icaza  <miguel@ximian.com>

* class.cs (Indexer.Define); Correctly check if we are explicit
implementation (instead of checking the Name for a ".", we
directly look up if the InterfaceType was specified).

Delay the creation of the PropertyBuilder.

Only create the PropertyBuilder if we are not an explicit
interface implementation.   This means that explicit interface
implementation members do not participate in regular function
lookups, and hence fixes another major ambiguity problem in
overload resolution (that was the visible effect).

(DefineMethod): Return whether we are doing an interface
implementation.

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

22 years ago2002-05-26 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 26 May 2002 02:15:52 +0000 (02:15 -0000)]
2002-05-26  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs: Temporary hack until we get attributes in
interfaces (Ravi is working on that) and we get IndexerName
support in interfaces.

* interface.cs: Register the indexers as properties.

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

22 years agoDocument error
Miguel de Icaza [Sun, 26 May 2002 01:48:01 +0000 (01:48 -0000)]
Document error

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

22 years ago2002-05-26 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 26 May 2002 01:47:55 +0000 (01:47 -0000)]
2002-05-26  Miguel de Icaza  <miguel@ximian.com>

* attribute.cs (Attribute.Resolve): Catch the error, and emit a
warning, I have verified that this is a bug in the .NET runtime
(JavaScript suffers of the same problem).

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

22 years ago2002-05-26 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 26 May 2002 00:55:25 +0000 (00:55 -0000)]
2002-05-26  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs (MemberLookup): When looking up members for
interfaces, the parent of an interface is the implicit
System.Object (so we succeed in searches of Object methods in an
interface method invocation.  Example:  IEnumerable x;  x.ToString
())

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

22 years agoAdd new test
Miguel de Icaza [Sun, 26 May 2002 00:47:45 +0000 (00:47 -0000)]
Add new test

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

22 years ago2002-05-26 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 26 May 2002 00:40:13 +0000 (00:40 -0000)]
2002-05-26  Miguel de Icaza  <miguel@ximian.com>

* XmlDocument.cs: Implement the Save methods.

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

22 years agoAdded list for MCS debugging purposes
Miguel de Icaza [Sat, 25 May 2002 18:30:51 +0000 (18:30 -0000)]
Added list for MCS debugging purposes

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

22 years ago2002-05-25 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 25 May 2002 18:29:58 +0000 (18:29 -0000)]
2002-05-25  Miguel de Icaza  <miguel@ximian.com>

* class.cs (Event): Events should also register if they do
implement the methods that an interface requires.

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

22 years ago2002-05-25 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 25 May 2002 18:23:06 +0000 (18:23 -0000)]
2002-05-25  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs (MemberLookup); use the new GetInterfaces
method.

(GetInterfaces): The code used to lookup interfaces for a type is
used in more than one place, factor it here.

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

22 years ago2002-05-25 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 25 May 2002 17:07:20 +0000 (17:07 -0000)]
2002-05-25  Miguel de Icaza  <miguel@ximian.com>

* driver.cs: Track the errors at the bottom of the file, we kept
on going.

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

22 years ago2002-05-25 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 25 May 2002 16:59:17 +0000 (16:59 -0000)]
2002-05-25  Miguel de Icaza  <miguel@ximian.com>

* delegate.cs (NewDelegate.Emit): We have to emit a null as the
instance if the method we are calling is static!

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

22 years ago2002-05-24 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 25 May 2002 00:49:17 +0000 (00:49 -0000)]
2002-05-24  Miguel de Icaza  <miguel@ximian.com>

* attribute.cs (ApplyAttributes): Make this function filter out
the IndexerName attribute (as that attribute in reality is never
applied) and return the string constant for the IndexerName

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

22 years ago2002-05-25 Dwivedi, Ajay kumar <adwiv@yahoo.com>
Ajay kumar Dwivedi [Sat, 25 May 2002 00:02:55 +0000 (00:02 -0000)]
2002-05-25  Dwivedi, Ajay kumar <adwiv@yahoo.com>
* BUGS.txt: New file to keep track of bugs

* ALL: All classes are initialized exactly as in .NET except
       1. inclusion of language attribute in schema
       2. ComplexContent's Particle is initialized to null whereas .NET
          to some internal implementation. IMO Null is more appropriate

* ALL: Changed the Compile methods to return the count of errors.

* ALL: Complile methods are almost complete. Pass 1453 of 3061 tests.
       This number should shoot up if we write a parser to read the
       Schema instead of using reflection (which is slower too)

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

22 years ago2002-05-25 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 21:59:22 +0000 (21:59 -0000)]
2002-05-25  Martin Baulig  <martin@gnome.org>

* debug-symfile.c
(ves_icall_Debugger_DwarfFileWriter_get_type_token): Removed.

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

22 years ago2002-05-25 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 21:58:11 +0000 (21:58 -0000)]
2002-05-25  Martin Baulig  <martin@gnome.org>

* TypeBuilder.cs (TypeToken): Implemented.

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

22 years ago2002-05-25 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 21:55:00 +0000 (21:55 -0000)]
2002-05-25  Martin Baulig  <martin@gnome.org>

* DwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays.

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

22 years agoNew error test
Miguel de Icaza [Fri, 24 May 2002 21:43:18 +0000 (21:43 -0000)]
New error test

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

22 years agoLots of work to compiler System.Xml; A lot of bugs uncovered in IndexerName
Miguel de Icaza [Fri, 24 May 2002 21:43:01 +0000 (21:43 -0000)]
Lots of work to compiler System.Xml;  A lot of bugs uncovered in IndexerName
handling.  Now we should support it (modulo interfaces, which are being
worked on now by Ravi).

2002-05-24  Miguel de Icaza  <miguel@ximian.com>

* attribute.cs (ApplyAttributes): Make this function filter out
the IndexerName attribute (as that attribute in reality is never
applied) and return the string constant for the IndexerName
attribute.

* class.cs (TypeContainer.Emit): Validate that all the indexers
have the same IndexerName attribute, and if so, set the
DefaultName attribute on the class.

* typemanager.cs: The return value might contain other stuff (not
only methods).  For instance, consider a method with an "Item"
property and an Item method.

* class.cs: If there is a problem with the parameter types,
return.

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

22 years agoImprove test
Miguel de Icaza [Fri, 24 May 2002 20:55:29 +0000 (20:55 -0000)]
Improve test

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

22 years ago2002-05-24 Duncan Mak <duncan@ximian.com>
Duncan Mak [Fri, 24 May 2002 20:34:04 +0000 (20:34 -0000)]
2002-05-24  Duncan Mak  <duncan@ximian.com>

* DataGridItem.cs (SetItemType): Changed function signature to
match 1.0 spec.

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

22 years ago2002-05-24 Duncan Mak <duncan@ximian.com>
Duncan Mak [Fri, 24 May 2002 20:27:24 +0000 (20:27 -0000)]
2002-05-24  Duncan Mak  <duncan@ximian.com>

* ListItemCollection.cs (this): Changes the visibility level of
the indexer.

* TemplateControl.cs (SetStringResourcePointer): Fixed typo.

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

22 years ago2002-05-24 Duncan Mak <duncan@ximian.com>
Duncan Mak [Fri, 24 May 2002 19:46:06 +0000 (19:46 -0000)]
2002-05-24  Duncan Mak  <duncan@ximian.com>

* Repeater.cs (OnItemCommand):
(OnItemCreated):
(OnItemDataBound): Added necessary casts.

* StateBag.cs (Item): Changed the visibility level of the this
[object] indexer.

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

22 years ago2002-05-24 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 24 May 2002 19:29:33 +0000 (19:29 -0000)]
2002-05-24  Ravi Pratap  <ravi@ximian.com>

* test-124.cs, test-125.cs : Add.

* makefile : update.

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

22 years ago2002-05-24 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 24 May 2002 19:17:52 +0000 (19:17 -0000)]
2002-05-24  Ravi Pratap  <ravi@ximian.com>

* ecore.cs (ImplicitConversionExists): Wrapper function which also
looks at user defined conversion after making a call to
StandardConversionExists - we need this for overload resolution.

* expression.cs : Update accordingly the various method calls.

This fixes 2 bugs filed against implicit user defined conversions

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

22 years agoUpdate makefile
Ravi Pratap M [Fri, 24 May 2002 19:16:43 +0000 (19:16 -0000)]
Update makefile

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

22 years ago Add.
Ravi Pratap M [Fri, 24 May 2002 19:15:44 +0000 (19:15 -0000)]
 Add.

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

22 years ago2002-05-24 Duncan Mak <duncan@ximian.com>
Duncan Mak [Fri, 24 May 2002 18:28:50 +0000 (18:28 -0000)]
2002-05-24  Duncan Mak  <duncan@ximian.com>

* DataBinder.cs (Eval)
(GetIndexedPropertyValue)
(GetPropertyValue): Fixed return types.

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

22 years ago2002-05-24 Tim Coleman <tim@timcoleman.com>
Tim Coleman [Fri, 24 May 2002 17:42:12 +0000 (17:42 -0000)]
2002-05-24  Tim Coleman <tim@timcoleman.com>
        * System.Data.Common/DbDataAdapter.cs: remove IDbCommands, except
        for get accessors.  These should be implemented in derived classes.  See
        SqlDataAdapter for clues.
        * System.Data.SqlClient/SqlDataAdapter.cs: implement IDbDataAdapter
        * System.Data.Common/DataAdapter.cs:
        * System.Data.Common/DataTableMappingCollection.cs:
        * System.Data.Common/DataTableMapping.cs:
        * System.Data.Common/DataColumnMappingCollection.cs:
        * System.Data.Common/DataColumnMapping.cs:
        Properly (I hope!) implement all of the appropriate interfaces
        for these classes.

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

22 years agoAdd new files
Miguel de Icaza [Fri, 24 May 2002 16:29:58 +0000 (16:29 -0000)]
Add new files

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

22 years agoGet this bad boy to compile standalone
Miguel de Icaza [Fri, 24 May 2002 16:29:31 +0000 (16:29 -0000)]
Get this bad boy to compile standalone

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

22 years ago2002-05-24 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 13:23:55 +0000 (13:23 -0000)]
2002-05-24  Martin Baulig  <martin@gnome.org>

* debug-symfile.c
(ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig): Removed.
(ves_icall_Debugger_MonoSymbolWriter_method_from_token): Renamed to
`ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token'.

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

22 years ago2002-05-24 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 13:20:52 +0000 (13:20 -0000)]
2002-05-24  Martin Baulig  <martin@gnome.org>

* ModuleBuilder.cs (symwriter_define_local): New private variable.
(GetSymbolWriter): Look for a custom version of "DefineLocalVariable"
and store it in `symwriter_define_local'.
(SymWriter_DefineLocalVariable): New internal method to call the
symbol writer's custom DefineLocalVariable() method.  It is safe to
call this method if there's no symbol writer.

* LocalBuilder.cs (SetLocalSymInfo): Use the MethodBuilder'snew
SymWriter_DefineLocalVariable().

* MethodBuilder.cs (GetParameters): Implemented.

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

22 years ago2002-05-24 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 13:15:48 +0000 (13:15 -0000)]
2002-05-24  Martin Baulig  <martin@gnome.org>

* ParameterInfo.cs: Added internal constructor.

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

22 years ago2002-05-24 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 13:14:31 +0000 (13:14 -0000)]
2002-05-24  Martin Baulig  <martin@gnome.org>

* IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
(ITypeHandle): New interface.

* DwarfFileWriter.cs: Largely reorganized the type writing code.  Types are
now represented by ITypeHandle objects which are stored in a per-dwarf-writer
hash table.  At the moment, all types still need to be in one compile unit due
to lacking support in gdb - but this new type code here already supports this.

* MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
public, cleaned up the code, put everything into one compile unit.
(DefineLocalVariable): Added a version of this function which takes useful args.

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

22 years ago2002-05-24 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 24 May 2002 10:18:16 +0000 (10:18 -0000)]
2002-05-24  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (mono_analyze_stack): moved const. folding from x86.brg

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

22 years agoFri May 24 15:33:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 24 May 2002 09:47:13 +0000 (09:47 -0000)]
Fri May 24 15:33:50 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: added partial async delegate and remoting support.

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

22 years agofixed typo pointed out by Richard Torkar
Dietmar Maurer [Fri, 24 May 2002 07:20:02 +0000 (07:20 -0000)]
fixed typo pointed out by Richard Torkar

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

22 years ago2002-05-24 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 24 May 2002 07:05:59 +0000 (07:05 -0000)]
2002-05-24  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg: CPBLK impl.

* emit-x86.c (tree_emit): modified to support 3 nonterminals per
rule (used for CPBLK).

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

22 years ago2002-05-23 Tim Coleman <tim@timcoleman.com>
Tim Coleman [Thu, 23 May 2002 21:04:04 +0000 (21:04 -0000)]
2002-05-23  Tim Coleman <tim@timcoleman.com>
        * System.Data.SqlClient/SqlCommand.cs: include
        the BaseColumnName in the schema table.  Was missed before.
        * System.Data.Common/DbDataAdapter.cs: Use DataTable
        mappings so that the DataSet and DataTable are more closely tied.
        Get schema information from the DataTable using GetSchemaTable ()
        Various other little fixes
        * System.Data.Common/DataColumnMappingCollection.cs:
        * System.Data.Common/DataTableMapping.cs:
        * System.Data.Common/DataTableMappingCollection.cs: Some
        implementation, enough to be used by DbDataAdapter.

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

22 years ago2002-05-23 Duncan Mak <duncan@ximian.com>
Duncan Mak [Thu, 23 May 2002 20:22:24 +0000 (20:22 -0000)]
2002-05-23  Duncan Mak  <duncan@ximian.com>

* ArrayList.cs (Wrapper): Preliminary implementation of
ArrayList.Wrapper (IList).

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

22 years ago2002-05-23 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Thu, 23 May 2002 17:21:03 +0000 (17:21 -0000)]
2002-05-23  Daniel Morgan <danmorg@sc.rr.com>

* TestSqlParameters.cs: read and display the schema columns
correctly

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

22 years agoSome small updates and a new test for CreateInstance().
Paolo Molaro [Thu, 23 May 2002 13:03:04 +0000 (13:03 -0000)]
Some small updates and a new test for CreateInstance().

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

22 years agoThu May 23 18:43:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 13:01:32 +0000 (13:01 -0000)]
Thu May 23 18:43:07 CEST 2002 Paolo Molaro <lupus@ximian.com>

* mono.c: remove generated code from hash when benchmarking/testing
method compilation.
* invoke.cs: special case string ctors.

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

22 years agoThu May 23 18:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 13:00:46 +0000 (13:00 -0000)]
Thu May 23 18:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: special case string ctors in invoke.
Handle null object in throw. Misc integer type mismatch fixes.

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

22 years agoThu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 13:00:19 +0000 (13:00 -0000)]
Thu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>

* object.c: special case string ctros in invoke.
* gc.c: silly whitespace changes.

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

22 years ago2002-05-23 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 23 May 2002 11:52:23 +0000 (11:52 -0000)]
2002-05-23  Dietmar Maurer  <dietmar@ximian.com>

* *.c: code cleanups - tried to separate architecture dependent things.

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

22 years agoThu May 23 17:18:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 11:32:05 +0000 (11:32 -0000)]
Thu May 23 17:18:46 CEST 2002 Paolo Molaro <lupus@ximian.com>

* Assembly.cs: implemented CreateInstance ().

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

22 years agoThu May 23 17:17:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 11:31:05 +0000 (11:31 -0000)]
Thu May 23 17:17:28 CEST 2002 Paolo Molaro <lupus@ximian.com>

* Activator.cs: implemented CreateInstance ().

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

22 years agoCommented out debugging message.
Martin Baulig [Thu, 23 May 2002 08:53:26 +0000 (08:53 -0000)]
Commented out debugging message.

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

22 years agocode cleanups
Dietmar Maurer [Thu, 23 May 2002 08:52:44 +0000 (08:52 -0000)]
code cleanups

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

22 years ago2002-05-23 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 23 May 2002 08:52:06 +0000 (08:52 -0000)]
2002-05-23  Martin Baulig  <martin@gnome.org>

* debug.c (mono_debug_open): Don't call mono_debug_add_image().
(mono_debug_write_symbols): Only recreate the symbol file if
necessary.

* debug-private.h (MonoDebugHandle): Added `dirty' flag.

* mono.c (main): Call mono_debug_add_image() here.

* jit.c (mono_thread_abort): If we have debugging support, call
mono_debug_make_symbols() and G_BREAKPOINT().

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

22 years ago2002-05-23 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 23 May 2002 08:33:09 +0000 (08:33 -0000)]
2002-05-23  Martin Baulig  <martin@gnome.org>

* exception.c (arch_handle_exception): Don't G_BREAKPOINT() if we get
an unhandled exception.

* jit.c (mono_thread_abort): G_BREAKPOINT() immediately before the
ExitThread().

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

22 years ago2002-05-23 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 23 May 2002 07:44:00 +0000 (07:44 -0000)]
2002-05-23  Dietmar Maurer  <dietmar@ximian.com>

* delegate.c: move the thread pool to metadata/threadpool.c, code
cleanup.

* threadpool.[ch]: impl. a threadpool that can
be used by mint and mono.

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

22 years agomake path handling better for windows
Johannes Roith [Thu, 23 May 2002 06:48:23 +0000 (06:48 -0000)]
make path handling better for windows

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

22 years ago2002-05-23 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Thu, 23 May 2002 00:28:02 +0000 (00:28 -0000)]
2002-05-23  Daniel Morgan <danmorg@sc.rr.com>

* System.Data.SqlClient/SqlCommand.cs: set
the "ProviderType" to the PostgreSQL type oid

* System.Data.SqlClient/SqlDataReader.cs: fix
for various properties and methods that
return meta data: Item indexers this[name] and this[index],
GetFieldType, GetName, and GetOrdinal.  SqlDataAdapter
should work again.

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

22 years ago2002-05-22 Duncan Mak <duncan@ximian.com>
Duncan Mak [Thu, 23 May 2002 00:12:56 +0000 (00:12 -0000)]
2002-05-22  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ConvertFromBase): Added additional test for
checking if the digits are valid. Thanks to Miguel for coming
up with this test.

This fixes bug 25071.

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

22 years ago2002-05-22 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 22 May 2002 22:29:26 +0000 (22:29 -0000)]
2002-05-22  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ConvertToBase): Add new 64bit version.
(BuildConvertedString64): New 64bit version of
BuildConvertedString.

This fixes bug 25068.

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

22 years ago2002-05-21 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 22 May 2002 19:59:35 +0000 (19:59 -0000)]
2002-05-21  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToType): Rearranged to fit the new layout of
conversionTable.

(conversionTable): Rearranged to fit the layout of the
System.TypeCode enum.

This should fix bug 25075.

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

22 years ago2002-05-22 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 22 May 2002 19:33:52 +0000 (19:33 -0000)]
2002-05-22  Miguel de Icaza  <miguel@ximian.com>

* statement.cs: Track the result of the assignment.

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

22 years ago * Uri.cs: implemented MakeRelative, improved GetLeftPart
Lawrence Pit [Wed, 22 May 2002 18:57:49 +0000 (18:57 -0000)]
* Uri.cs: implemented MakeRelative, improved GetLeftPart
* UriBuilder.cs: removed Serializable attribute
* UriHostNameType.cs: added Basic

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

22 years ago2002-05-22 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Wed, 22 May 2002 17:59:12 +0000 (17:59 -0000)]
2002-05-22  Daniel Morgan <danmorg@sc.rr.com>

* System.Data/DataRow.cs: change suggested
by tim: in Item indexer, do an EndEdit()

* System.Data.SqlClient/SqlCommand.cs: more
fixes to SqlResult.  After setting each item in
the DataRow, do an AcceptChanges() to commit
the changes in the DataRow.  For DataType, use a Type
of System.String since System.Type nor System.Object
seems to work.

* Test/TestSqlDataReader.cs
* Test/PostgresTest.cs: updated to to be on
the way schema table is suppose to work

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

22 years agoReflected latest symbol writer changes.
Martin Baulig [Wed, 22 May 2002 17:09:21 +0000 (17:09 -0000)]
Reflected latest symbol writer changes.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 17:07:10 +0000 (17:07 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
properties.

* MonoDwarfFileWriter.cs (WriteSymbolTable): New public method.  Moved the
code that writes the "mono_line_numbers" section here from the LineNumberEngine.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:28:18 +0000 (16:28 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* reflection.h (MonoArrayList): New typedef.
(MonoReflectionAssemblyBuilder): Added `table_indexes' and `methods'.

* debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
The first argument is now a `MonoReflectionModuleBuilder *', the return
value is a `MonoReflectionModuleBuilder *'.  Use the AssemblyBuilder's
`methods' field to get the method builder.  The `token' argument is the
unfixed token.

* unicode.c (iconv_get_length, iconv_convert): Silently ignore all
invalid characters instead of g_assert_not_reached()ing.  This seems
to be the behaviour of mscorlib.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:22:43 +0000 (16:22 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.

* MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
ModuleBuilder argument.
(OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
from the token, then store the MethodBase instead of the token.  The token may
still change during the metadata library's fixup process.
(DoFixups): When the image has been written to disk, call the GetToken () method
on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:17:11 +0000 (16:17 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* ModuleBuilder.cs (GetSymbolWriter): Pass the this pointer to the
symbol writer's constructor.

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