mono.git
22 years agoAdded piles of new enumerations from Sergey.
Miguel de Icaza [Sun, 2 Sep 2001 17:50:38 +0000 (17:50 -0000)]
Added piles of new enumerations from Sergey.
Updates the enumerations to contain [Flags] (Sergey)
Updated enumerations to have the same values as ECMA (Sergey).
Added various new methods to Type.cs
Added all the classes that were not being compiled in the past to the build.
Fix various small typos to get things compiling

Miguel

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

22 years agoImplemented SerializableAttribute
Miguel de Icaza [Sun, 2 Sep 2001 16:28:03 +0000 (16:28 -0000)]
Implemented SerializableAttribute

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

22 years agoUpdate
Miguel de Icaza [Sun, 2 Sep 2001 16:23:55 +0000 (16:23 -0000)]
Update

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

22 years ago2001-09-02 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 2 Sep 2001 16:03:53 +0000 (16:03 -0000)]
2001-09-02  Ravi Pratap  <ravi@ximian.com>

* class.cs (TypeContainer::AddDelegate): New method to add a delegate.
(TypeContainer.delegates): New member to hold list of delegates.

* cs-parser.jay (delegate_declaration): Implement the action correctly
this time as I seem to be on crack ;-)

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

22 years ago2001-09-02 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 2 Sep 2001 15:49:21 +0000 (15:49 -0000)]
2001-09-02  Miguel de Icaza  <miguel@ximian.com>

* rootcontext.cs (RootContext::IsNamespace): new function, used to
tell whether an identifier represents a namespace.

* expression.cs (NamespaceExpr): A namespace expression, used only
temporarly during expression resolution.
(Expression::ResolveSimpleName, ::ResolvePrimary, ::ResolveName):
utility functions to resolve names on expressions.

2001-09-01  Miguel de Icaza  <miguel@ximian.com>

* codegen.cs: Add hook for StatementExpressions.

* class.cs: Fix inverted test for static flag in methods.

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

22 years agoActually add mcs/delegate.cs which I forgot to last time ;-)
Ravi Pratap M [Sun, 2 Sep 2001 15:39:52 +0000 (15:39 -0000)]
Actually add mcs/delegate.cs which I forgot to last time ;-)

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

22 years ago2001-09-02 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 2 Sep 2001 15:37:11 +0000 (15:37 -0000)]
2001-09-02  Ravi Pratap  <ravi@ximian.com>

* class.cs (Operator::CheckUnaryOperator): Correct error number used
to make it coincide with MS' number.
(Operator::CheckBinaryOperator): Ditto.

* ../errors/errors.txt : Remove error numbers added earlier.

* ../errors/cs1019.cs : Test case for error # 1019

* ../errros/cs1020.cs : Test case for error # 1020

* cs-parser.jay : Clean out commented cruft.
(dimension_separators, dimension_separator): Comment out. Ostensibly not
used anywhere - non-reducing rule.
(namespace_declarations): Non-reducing rule - comment out.

* enum.cs (Enum::AddEnum): Rename to AddEnumMember as I was getting confused
with TypeContainer::AddEnum.

* delegate.cs : New file for delegate handling classes.
(Delegate): Class for declaring delegates.

* makefile : Update.

* cs-parser.jay (delegate_declaration): Implement.

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

22 years agoInitial implementation
Gleb Novodran [Sat, 1 Sep 2001 12:50:26 +0000 (12:50 -0000)]
Initial implementation

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

22 years ago2001-09-01 Ravi Pratap <ravi@che.iitm.ac.in>
Ravi Pratap M [Sat, 1 Sep 2001 06:39:06 +0000 (06:39 -0000)]
2001-09-01  Ravi Pratap  <ravi@che.iitm.ac.in>

* class.cs (Event::Define): Implement.
(Event.EventBuilder): New member.

* class.cs (TypeContainer::Populate): Update to define all enums and events
we have.
(Events): New property for the events arraylist we hold. Shouldn't we move to using
readonly fields for all these cases ?

2001-08-31  Ravi Pratap  <ravi@che.iitm.ac.in>

* class.cs (Property): Revamp to use the convention of making fields readonly.
Accordingly modify code elsewhere.

* class.cs : Apply patch from Mr. Mandar <go_mono@hotmail.com> for implementing
the Define method of the Property class.

* class.cs : Clean up applied patch and update references to variables etc. Fix
trivial bug.
(TypeContainer::Populate): Update to define all the properties we have. Also
define all enumerations.

* enum.cs (Define): Implement.

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

22 years ago2001-09-01 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sat, 1 Sep 2001 05:39:46 +0000 (05:39 -0000)]
2001-09-01  Nick Drochak  <ndrochak@gol.com>
* Added NUnitConsole.exe

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

22 years ago2001-09-01 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sat, 1 Sep 2001 05:38:32 +0000 (05:38 -0000)]
2001-09-01  Nick Drochak <ndrochak@gol.com>
* added NunitCore.dll

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

22 years ago * verifier.cs: Fixed bug in AbstractTypeStuff::operator ==;
Sergey Chaban [Sat, 1 Sep 2001 05:30:52 +0000 (05:30 -0000)]
 * verifier.cs: Fixed bug in AbstractTypeStuff::operator ==;
   Added support for enums;
   Removed duplicated checks in Compare.Parameters;
   Now has option to ignore missing types instead of reporting fatal-erros;

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

22 years agoChanged enum value for first mono platform to allow growth for windows systems
Jim Richardson [Fri, 31 Aug 2001 08:57:30 +0000 (08:57 -0000)]
Changed enum value for first mono platform to allow growth for windows systems

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

22 years agoAdded CheckArgument.cs and CheckPermission.cs to common.src
Jim Richardson [Fri, 31 Aug 2001 08:56:12 +0000 (08:56 -0000)]
Added CheckArgument.cs and CheckPermission.cs to common.src

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

22 years ago2001-08-31 Ravi Pratap <ravi@che.iitm.ac.in>
Ravi Pratap M [Fri, 31 Aug 2001 03:35:11 +0000 (03:35 -0000)]
2001-08-31  Ravi Pratap  <ravi@che.iitm.ac.in>

* cs-parser.jay (overloadable_operator): The semantic value is an
enum of the Operator class.
(operator_declarator): Implement actions.
(operator_declaration): Implement.

* class.cs (Operator::CheckUnaryOperator): New static method to help in checking
validity of definitions.
(Operator::CheckBinaryOperator): Static method to check for binary operators
(TypeContainer::AddOperator): New method to add an operator to a type.

* cs-parser.jay (indexer_declaration): Added line to actually call the
AddIndexer method so it gets added ;-)

* ../errors/errors.txt : Update to include new error numbers. Are these numbers
already taken care of by the MS compiler ?

2001-08-29  Ravi Pratap  <ravi@che.iitm.ac.in>

* class.cs (Operator): New class for operator declarations.
(Operator::OpType): Enum for the various operators.

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

22 years ago*** empty log message ***
Bob Smith [Thu, 30 Aug 2001 20:45:44 +0000 (20:45 -0000)]
*** empty log message ***

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

22 years agoMore implementation/stubbing.
Bob Smith [Thu, 30 Aug 2001 20:41:15 +0000 (20:41 -0000)]
More implementation/stubbing.

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

22 years agoremove libffi
Dietmar Maurer [Thu, 30 Aug 2001 13:04:52 +0000 (13:04 -0000)]
remove libffi

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

22 years ago2001-08-30 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 30 Aug 2001 13:01:42 +0000 (13:01 -0000)]
2001-08-30  Dietmar Maurer  <dietmar@ximian.com>

* *: removed the libffi dependency, mono now compiles on cygwin

* mono/wrapper/build-dll: new file.

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

22 years agoAdded Files.
Christopher Podurgiel [Thu, 30 Aug 2001 08:03:12 +0000 (08:03 -0000)]
Added Files.

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

22 years agoAdded [Flags] attribute to enums.
Jim Richardson [Thu, 30 Aug 2001 02:06:35 +0000 (02:06 -0000)]
Added [Flags] attribute to enums.

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

22 years agoAdditional implementation
Jim Richardson [Thu, 30 Aug 2001 02:03:50 +0000 (02:03 -0000)]
Additional implementation

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

22 years agoAdditional implemenation
Jim Richardson [Thu, 30 Aug 2001 01:59:49 +0000 (01:59 -0000)]
Additional implemenation

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

22 years agoAdded two utility classes for argument and permission checks that
Jim Richardson [Thu, 30 Aug 2001 01:52:03 +0000 (01:52 -0000)]
Added two utility classes for argument and permission checks that
required throughout the System.IO namespace

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

22 years agoFlush
Miguel de Icaza [Wed, 29 Aug 2001 20:11:29 +0000 (20:11 -0000)]
Flush

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

22 years agoAdded targets to build and run tests
Alexander Klyubin [Wed, 29 Aug 2001 13:58:55 +0000 (13:58 -0000)]
Added targets to build and run tests

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

22 years agoFixed 'clean' target
Alexander Klyubin [Wed, 29 Aug 2001 13:58:37 +0000 (13:58 -0000)]
Fixed 'clean' target

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

22 years agoAdded 'clean' target to make files
Alexander Klyubin [Wed, 29 Aug 2001 13:21:03 +0000 (13:21 -0000)]
Added 'clean' target to make files

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

22 years ago2001-08-29 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Wed, 29 Aug 2001 11:04:59 +0000 (11:04 -0000)]
2001-08-29  Dietmar Maurer  <dietmar@ximian.com>

* loader.c (mono_get_method): use pinvoke for internal call

* icall.c: use pinvoke for internal call

* loader.c (method_from_memberref): set the method name

* interp.c (ves_array_set): moved from icall.c
(ves_array_get): moved from icall.c

* icall.c: moved to metadata/icall.c

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

22 years agoWed Aug 29 12:46:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 29 Aug 2001 06:53:31 +0000 (06:53 -0000)]
Wed Aug 29 12:46:06 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: some small optimizations. Fixes to do signed
compares when needed. Change C++ comments into C.
Implemented cgt, clt. Added --opcode-count cmdline switch.

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

22 years agoWed Aug 29 12:43:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 29 Aug 2001 06:45:55 +0000 (06:45 -0000)]
Wed Aug 29 12:43:41 CEST 2001 Paolo Molaro <lupus@ximian.com>

* metadata.c: help the compiler generate better code for
mono_class_from_mono_type ().

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

22 years agoFixed invalid format in class status
Alexander Klyubin [Wed, 29 Aug 2001 06:14:33 +0000 (06:14 -0000)]
Fixed invalid format in class status

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

22 years agoUpdated status of System.Diagnostics.StackFrame and System.Diagnostics.StackTrace
Alexander Klyubin [Wed, 29 Aug 2001 05:59:48 +0000 (05:59 -0000)]
Updated status of System.Diagnostics.StackFrame and System.Diagnostics.StackTrace

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

22 years agoAdded tests for System.Diagnostics.StackFrame and System.Diagnostics.StackTrace
Alexander Klyubin [Wed, 29 Aug 2001 05:53:35 +0000 (05:53 -0000)]
Added tests for System.Diagnostics.StackFrame and System.Diagnostics.StackTrace

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

22 years agoAdded skeletal implementation of StackFrame and StackTrace
Alexander Klyubin [Wed, 29 Aug 2001 05:50:17 +0000 (05:50 -0000)]
Added skeletal implementation of StackFrame and StackTrace

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

22 years ago2001-08-29 Ravi Pratap <ravi@che.iitm.ac.in>
Ravi Pratap M [Wed, 29 Aug 2001 04:35:25 +0000 (04:35 -0000)]
2001-08-29  Ravi Pratap  <ravi@che.iitm.ac.in>

* class.cs (TypeContainer::AddIndexer): Remove FIXME comment. We
ostensibly handle this in semantic analysis.

* cs-parser.jay (general_catch_clause): Comment out
(specific_catch_clauses, specific_catch_clause): Ditto.
(opt_general_catch_clause, opt_specific_catch_clauses): Ditto
(catch_args, opt_catch_args): New productions.
(catch_clause): Rewrite to use the new productions above
(catch_clauses): Modify accordingly.
(opt_catch_clauses): New production to use in try_statement
(try_statement): Revamp. Basically, we get rid of one unnecessary rule
and re-write the code in the actions to extract the specific and
general catch clauses by being a little smart ;-)

* ../tests/try.cs : Fix. It's not 'finalize' my friend, it's 'finally' !
Hooray, try and catch statements parse fine !

2001-08-28  Ravi Pratap  <ravi@che.iitm.ac.in>

* statement.cs (Block::GetVariableType): Fix logic to extract the type
string from the hashtable of variables.

* cs-parser.jay (event_accessor_declarations): Trivial fix. Man, how did
I end up making that mistake ;-)
(catch_clauses): Fixed gross error which made Key and Value of the
DictionaryEntry the same : $1 !!

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

22 years ago*** empty log message ***
Bob Smith [Wed, 29 Aug 2001 03:57:20 +0000 (03:57 -0000)]
*** empty log message ***

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

22 years agoHttpWorkerRequest.cs: Partial Implementation.
Bob Smith [Wed, 29 Aug 2001 03:55:44 +0000 (03:55 -0000)]
HttpWorkerRequest.cs: Partial Implementation.

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

22 years ago2001-08-24 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 29 Aug 2001 01:17:18 +0000 (01:17 -0000)]
2001-08-24  Nick Drochak  <ndrochak@gol.com>
        * NameObjectCollectionBase.cs: Add stub implementation
        * common.src: Add NameObjectCollectionBase to the build
        * NameValueCollection.cs: add 'override' to CopyTo().  Maybe
                this code actually belongs in the superclass.

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

22 years agoChristopher Podurgiel <cpodurgiel@msn.com>
Christopher Podurgiel [Tue, 28 Aug 2001 22:38:08 +0000 (22:38 -0000)]
Christopher Podurgiel <cpodurgiel@msn.com>
Updated last activity dates for System.Configuration

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

22 years ago2001-08-28 Christopher Podurgiel <cpodurgiel@msn.com>
Christopher Podurgiel [Tue, 28 Aug 2001 22:30:10 +0000 (22:30 -0000)]
2001-08-28  Christopher Podurgiel <cpodurgiel@msn.com>
* IConfigurationSectionHandler.cs: Added reference to System.Xml.

* SingleTagSectionHandler.cs: Added Implementation of Create() method.

* NameValueSectionHandler.cs: Added Implementation of Create() method.

* ConfigurationException.cs: Now returns proper message rather than "System Exception".

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

22 years agoNow returns proper message rather than "System Exception".
Christopher Podurgiel [Tue, 28 Aug 2001 22:29:13 +0000 (22:29 -0000)]
Now returns proper message rather than "System Exception".

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

22 years agoAdded reference to System.Xml.
Christopher Podurgiel [Tue, 28 Aug 2001 22:28:43 +0000 (22:28 -0000)]
Added reference to System.Xml.

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

22 years agoAdded Implementation of Create() method.
Christopher Podurgiel [Tue, 28 Aug 2001 22:28:27 +0000 (22:28 -0000)]
Added Implementation of Create() method.

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

22 years agoControl.cs: Figured out some undocumented API.
Bob Smith [Tue, 28 Aug 2001 20:50:33 +0000 (20:50 -0000)]
Control.cs: Figured out some undocumented API.

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

22 years ago2001-08-28 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 28 Aug 2001 13:26:34 +0000 (13:26 -0000)]
2001-08-28  Dietmar Maurer  <dietmar@ximian.com>

* TextReader.cs: implemented the Read method

* StreamReader.cs: impl. stubs

* Console.cs: implemented the stdin stuff

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

22 years agoAdd more details to the compiler documentation
Miguel de Icaza [Tue, 28 Aug 2001 12:36:19 +0000 (12:36 -0000)]
Add more details to the compiler documentation

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

22 years ago2001-08-28 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 28 Aug 2001 10:47:36 +0000 (10:47 -0000)]
2001-08-28  Dietmar Maurer  <dietmar@ximian.com>

* interp.c (ves_exec_method): better check for value types (get
the class to detect if we have a value type), implemented CEE_CONV_U1,
CEE_CONV_U2, CEE_CEQ

* class.c (mono_class_metadata_init): delayed computing of the
class size to mono_class_metadata_init ()

* mono/tests/console.cs: impl.

* mono/tests/box.cs: impl.

* mono/tests/stream-writer.cs: impl.

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

22 years ago2001-08-28 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 28 Aug 2001 10:37:08 +0000 (10:37 -0000)]
2001-08-28  Dietmar Maurer  <dietmar@ximian.com>

* Console.cs: impl. (write only)

* Int32.cs: impl. real op_Equal

* UTF8Encoding.cs: impl. clumsy GetBytes

* StreamWriter.cs: impl.

* TextWriter.cs: implemented Write and WriteLine methods

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

22 years agoTue Aug 28 15:54:45 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 28 Aug 2001 09:59:38 +0000 (09:59 -0000)]
Tue Aug 28 15:54:45 CEST 2001 Paolo Molaro <lupus@ximian.com>

* main.c, dump.c, dump.h, get.c: added dump_table_interfaceimpl ().
Output info about interfaces when disassembling a type. Many small
changes to make the output correct assembler.

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

22 years agoTue Aug 28 15:47:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 28 Aug 2001 09:55:41 +0000 (09:55 -0000)]
Tue Aug 28 15:47:15 CEST 2001 Paolo Molaro <lupus@ximian.com>

* class.c, class.h: add an interfaces member to MonoClass.
* image.c, image.h: add assembly_name field to MonoImage
from the assembly table.
* metadata.c, metadata.h: add mono_metadata_interfaces_from_typedef ().

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

22 years ago2001-08-28 Ravi Pratap <ravi@che.iitm.ac.in>
Ravi Pratap M [Tue, 28 Aug 2001 06:45:13 +0000 (06:45 -0000)]
2001-08-28  Ravi Pratap  <ravi@che.iitm.ac.in>

* cs-tokenizer.cs (initTokens): Add keywords 'add' and 'remove'

* cs-parser.jay (event_declaration): Correct to remove the semicolon
when the add and remove accessors are specified.

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

22 years ago2001-08-28 Ravi Pratap <ravi@che.iitm.ac.in>
Ravi Pratap M [Tue, 28 Aug 2001 06:17:23 +0000 (06:17 -0000)]
2001-08-28  Ravi Pratap  <ravi@che.iitm.ac.in>

* cs-parser.jay (IndexerDeclaration): New helper class to hold
information about indexer_declarator.
(indexer_declarator): Implement actions.
(parsing_indexer): New local boolean used to keep track of whether
we are parsing indexers or properties. This is necessary because
implicit_parameters come into picture even for the get accessor in the
case of an indexer.
(get_accessor_declaration, set_accessor_declaration): Correspondingly modified.

* class.cs (Indexer): New class for indexer declarations.
(TypeContainer::AddIndexer): New method to add an indexer to a type.
(TypeContainer::indexers): New member to hold list of indexers for the
type.

2001-08-27  Ravi Pratap  <ravi@che.iitm.ac.in>

* cs-parser.jay (add_accessor_declaration): Implement action.
(remove_accessor_declaration): Implement action.
(event_accessors_declaration): Implement
(variable_declarators): swap statements for first rule - trivial.

* class.cs (Event): New class to hold information about event
declarations.
(TypeContainer::AddEvent): New method to add an event to a type
(TypeContainer::events): New member to hold list of events.

* cs-parser.jay (event_declaration): Implement actions.

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

22 years ago*** empty log message ***
Bob Smith [Tue, 28 Aug 2001 03:50:08 +0000 (03:50 -0000)]
*** empty log message ***

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

22 years agoLots of implementations.
Bob Smith [Tue, 28 Aug 2001 03:43:43 +0000 (03:43 -0000)]
Lots of implementations.

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

22 years agoControl.cs: Bug fixes and implementations.
Bob Smith [Mon, 27 Aug 2001 20:09:30 +0000 (20:09 -0000)]
Control.cs: Bug fixes and implementations.

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

22 years agoMon Aug 27 21:30:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 15:33:36 +0000 (15:33 -0000)]
Mon Aug 27 21:30:30 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: warn and exit when Main () expects the cmdline arguments
instead of creashing.

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

22 years agoMon Aug 27 20:24:26 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 14:26:43 +0000 (14:26 -0000)]
Mon Aug 27 20:24:26 CEST 2001 Paolo Molaro <lupus@ximian.com>

* mono/tests/*: New test cases, mostly for virtual method dispatch.
Use make testb for the slow benchmarking programs,
make test for the usual regression test checks.

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

22 years agoMon Aug 27 20:16:37 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 14:23:41 +0000 (14:23 -0000)]
Mon Aug 27 20:16:37 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: merge isinst/castclass handling. Hopefully implement
the right semantics for handling callvirt correctly (changes
here and there to support it). Integrate bugfix from Dietmar quickly
so he needs to handle the cvs conflict:-)

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

22 years agoMon Aug 27 20:13:49 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 14:17:37 +0000 (14:17 -0000)]
Mon Aug 27 20:13:49 CEST 2001 Paolo Molaro <lupus@ximian.com>

* dis-cil.c, get.c: some endian fixes.
* main.c: colon-separate version numbers. Print also namespace
when outputting class information.

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

22 years agoMon Aug 27 20:12:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 14:14:53 +0000 (14:14 -0000)]
Mon Aug 27 20:12:01 CEST 2001 Paolo Molaro <lupus@ximian.com>

* class.c: Handle Array in mono_class_from_mono_type ().
* metadata.c, pedump.c: some endian fixes.

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

22 years ago* OpCode.cs, OpCodes.cs: Initial check-in;
Sergey Chaban [Mon, 27 Aug 2001 12:47:25 +0000 (12:47 -0000)]
* OpCode.cs, OpCodes.cs: Initial check-in;

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

22 years agoMon Aug 27 15:23:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 09:26:47 +0000 (09:26 -0000)]
Mon Aug 27 15:23:23 CEST 2001 Paolo Molaro <lupus@ximian.com>

* class.c, loader.c, loader.h: More types handled in mono_class_from_mono_type ().
* metadata.c: fix small problem introduced with the latest commit.

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

22 years agoMon Aug 27 12:17:17 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 06:25:25 +0000 (06:25 -0000)]
Mon Aug 27 12:17:17 CEST 2001 Paolo Molaro <lupus@ximian.com>

* loader.c, metadata.c, metadata.h: Export mono_metadata_type_equal().
We don't need a MonoMetadata pointer anymore to compare signatures in
mono_metadata_signature_equal (), update callers.
Reduced memory usage an number of allocations for MonoMethodHeader and
MonoMethodSignature.

Mon Aug 27 12:20:32 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: fix compilation and updates for changes in metadata/.

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

22 years agoadded better GetHashCode() implementation
stefan [Mon, 27 Aug 2001 05:06:50 +0000 (05:06 -0000)]
added better GetHashCode() implementation

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

22 years ago2001-08-27 Ravi Pratap <ravi@che.iitm.ac.in>
Ravi Pratap M [Mon, 27 Aug 2001 04:37:08 +0000 (04:37 -0000)]
2001-08-27  Ravi Pratap  <ravi@che.iitm.ac.in>

* cs-parser.jay (dim_separators): Implement. Make it a string
concatenating all the commas together, just as they appear.
(opt_dim_separators): Modify accordingly
(rank_specifiers): Update accordingly. Basically do the same
thing - instead, collect the brackets here.
(opt_rank_sepcifiers): Modify accordingly.
(array_type): Modify to actually return the complete type string
instead of ignoring the rank_specifiers.
(expression_list): Implement to collect the expressions
(variable_initializer): Implement. We make it a list of expressions
essentially so that we can handle the array_initializer case neatly too.
(variable_initializer_list): Implement.
(array_initializer): Make it a list of variable_initializers
(opt_array_initializer): Modify accordingly.

* expression.cs (New::NType): Add enumeration to help us
keep track of whether we have an object/delegate creation
or an array creation.
(New:NewType, New::Rank, New::Indices, New::Initializers): New
members to hold data about array creation.
(New:New): Modify to update NewType
(New:New): New Overloaded contructor for the array creation
case.

* cs-parser.jay (array_creation_expression): Implement to call
the overloaded New constructor.

2001-08-26  Ravi Pratap  <ravi@che.iitm.ac.in>

* class.cs (TypeContainer::Constructors): Return member
constructors instead of returning null.

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

22 years agoMon Aug 27 09:29:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 27 Aug 2001 03:43:09 +0000 (03:43 -0000)]
Mon Aug 27 09:29:00 CEST 2001 Paolo Molaro <lupus@ximian.com>

* x86/x86-codegen.h: fix x86_call_code (). x86_mov_regp_reg () added.

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

22 years agoAdd a couple of new errors and a compiler roadmap.
Miguel de Icaza [Mon, 27 Aug 2001 02:42:30 +0000 (02:42 -0000)]
Add a couple of new errors and a compiler roadmap.

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

22 years ago2001-08-26 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 26 Aug 2001 23:52:03 +0000 (23:52 -0000)]
2001-08-26  Miguel de Icaza  <miguel@ximian.com>

* interp.c (main): Add option handling for the interpreter,
support the `--trace' option.

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

22 years agoNo longer references the NameValueSectionHandler directly. Instead it uses System...
Christopher Podurgiel [Sun, 26 Aug 2001 22:42:24 +0000 (22:42 -0000)]
No longer references the NameValueSectionHandler directly.  Instead it uses System.Reflection to call the Create() method for the appropriate SectionHandler as defined in the .config file.

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

22 years ago2001-08-26 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sun, 26 Aug 2001 22:36:41 +0000 (22:36 -0000)]
2001-08-26  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs (InitCoreTypes): Initialize the various core
types after we have populated the type manager with the user
defined types (this distinction will be important later while
compiling corlib.dll)

* expression.cs, literal.cs, assign.cs, constant.cs: Started work
on Expression Classification.  Now all expressions have a method
`Resolve' and a method `Emit'.

* codegen.cs, cs-parser.jay: Fixed the bug that stopped code
generation from working.     Also add some temporary debugging
code.

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

22 years agoExpand stream.cs to cover read and write testing.
Paolo Molaro [Sun, 26 Aug 2001 17:14:15 +0000 (17:14 -0000)]
Expand stream.cs to cover read and write testing.
I should work now, with an updated corlib.

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

22 years agoSun Aug 26 23:04:46 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sun, 26 Aug 2001 17:13:14 +0000 (17:13 -0000)]
Sun Aug 26 23:04:46 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: get in a dummy virtual method dispatch.
Added support for int64, native int and native uint as arguments.
Added debug enter/leave for icall and pinvoke methods, too.
Implement opcodes conv.i, conv.i8, ldelema.

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

22 years agoSun Aug 26 23:03:09 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sun, 26 Aug 2001 17:05:51 +0000 (17:05 -0000)]
Sun Aug 26 23:03:09 CEST 2001 Paolo Molaro <lupus@ximian.com>

* metadata.c: added compare for szarray.

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

22 years agoSun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sun, 26 Aug 2001 17:04:13 +0000 (17:04 -0000)]
Sun Aug 26 23:01:41 CEST 2001 Paolo Molaro <lupus@ximian.com>

* FileAccess.cs, FileMode.cs: change values to be compatible with
the ms ones.

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

22 years agoConfigurationSettings.cs: No longer references the NameValueSectionHandler directly...
Christopher Podurgiel [Sun, 26 Aug 2001 15:19:48 +0000 (15:19 -0000)]
ConfigurationSettings.cs: No longer references the NameValueSectionHandler directly.  Instead it uses System.Reflection to call the Create() method for the appropriate SectionHandler as defined in the .config file.

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

22 years ago* verifier.cs: fixed bug in AssemblyLoader::LoadFrom in ReflectionTypeLoadException...
Sergey Chaban [Sun, 26 Aug 2001 13:12:31 +0000 (13:12 -0000)]
* verifier.cs: fixed bug in AssemblyLoader::LoadFrom in ReflectionTypeLoadException handler;

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

22 years agoAdd System.IO.IOException info.
Paolo Molaro [Sun, 26 Aug 2001 05:52:47 +0000 (05:52 -0000)]
Add System.IO.IOException info.

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

22 years agoSun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sun, 26 Aug 2001 05:51:23 +0000 (05:51 -0000)]
Sun Aug 26 11:47:56 CEST 2001 Paolo Molaro <lupus@ximian.com>

* IoException.cs: Implemented System.IO.Exception.

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

22 years agoSun Aug 26 11:37:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sun, 26 Aug 2001 05:43:56 +0000 (05:43 -0000)]
Sun Aug 26 11:37:30 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.h, interp.c: load also a MonoClass pointer when we load
an address on the stack. Implemented conv.i1, conv.i2, con.i4,
conv.u4, conv.r4, conv.r8. Print the arguments in the stack trace
and the name of the exception.

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

22 years agoSun Aug 26 11:34:24 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sun, 26 Aug 2001 05:37:47 +0000 (05:37 -0000)]
Sun Aug 26 11:34:24 CEST 2001 Paolo Molaro <lupus@ximian.com>

* class.h, class.c, loader.h, loader.c: export mono_class_from_mono_type ()
and add a couple more types to it and mono_defaults. Give an hint on
classes that need implementing in our corlib and are referenced
in mscorlib.

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

22 years agoAdded the [Flags] attribute to the enumeration
Jim Richardson [Sat, 25 Aug 2001 11:04:53 +0000 (11:04 -0000)]
Added the [Flags] attribute to the enumeration

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

22 years agoSat Aug 25 15:56:03 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 25 Aug 2001 09:59:51 +0000 (09:59 -0000)]
Sat Aug 25 15:56:03 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: Implemented some opcodes: starg.s, ldobj, isinst,
ldarg, starg, ldloc, ldloca, stloc, initobj, cpblk, sizeof.

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

22 years agoSat Aug 25 12:57:36 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 25 Aug 2001 07:00:28 +0000 (07:00 -0000)]
Sat Aug 25 12:57:36 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.c: handle enumerations specially (not as valuetypes).

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

22 years agoSat Aug 25 12:52:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Sat, 25 Aug 2001 06:56:32 +0000 (06:56 -0000)]
Sat Aug 25 12:52:54 CEST 2001 Paolo Molaro <lupus@ximian.com>

* class.h, class.c: keep track if a class is also an Enum.
* loader.c: Implement a couple more types for use in libffi
marshalling. Gives better diagnostics when failing to dlopen
a library. Set method->klass for P/Invoke methods, too.

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

22 years ago* added support for fields;
Sergey Chaban [Sat, 25 Aug 2001 04:27:39 +0000 (04:27 -0000)]
* added support for fields;
* added support for non-public types;
* fixed types comparison bug,
  types must be compared by-hand, Equals won't work;
* now methods also compared by their access modifiers and inheritance options;
* more extensive error reporting;
* minor internal changes;

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

22 years ago2001-08-24 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 24 Aug 2001 22:10:10 +0000 (22:10 -0000)]
2001-08-24  Miguel de Icaza  <miguel@ximian.com>

* codegen.cs: Lots of code generation pieces.  This is only the
beginning, will continue tomorrow with more touches of polish.  We
handle the fundamentals of if, while, do, for, return.  Others are
trickier and I need to start working on invocations soon.

* gen-treedump.cs: Bug fix, use s.Increment here instead of
s.InitStatement.

* codegen.cs (EmitContext): New struct, used during code
emission to keep a context.   Most of the code generation will be
here.

* cs-parser.jay: Add embedded blocks to the list of statements of
this block.  So code generation proceeds in a top down fashion.

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

22 years agoAdd new file
Miguel de Icaza [Fri, 24 Aug 2001 21:29:09 +0000 (21:29 -0000)]
Add new file

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

22 years agoupdated System.Drawing.Drawing2D.* class entries
stefan [Fri, 24 Aug 2001 18:53:40 +0000 (18:53 -0000)]
updated System.Drawing.Drawing2D.* class entries

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

22 years agoAdd back IAsyncResult to the build
Miguel de Icaza [Fri, 24 Aug 2001 17:32:06 +0000 (17:32 -0000)]
Add back IAsyncResult to the build

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

22 years agoUpdated class.xml
Michael Lambert [Fri, 24 Aug 2001 16:38:11 +0000 (16:38 -0000)]
Updated class.xml

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

22 years ago2001-08-23 Michael Lambert <michaellambert@email.com>
Michael Lambert [Fri, 24 Aug 2001 16:16:21 +0000 (16:16 -0000)]
2001-08-23  Michael Lambert <michaellambert@email.com>

* IAsyncResult.cs: Added

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

22 years ago2001-08-24 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 24 Aug 2001 16:07:04 +0000 (16:07 -0000)]
2001-08-24  Miguel de Icaza  <miguel@ximian.com>

* (common.src): Removed IAsyncResult as it is not on CVS yet.

* UIntPtr.cs: Removed CLSCompliant attribute before the namespace,
as it breaks the build.

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

22 years agoRemove IASyncResult to get the build going
Miguel de Icaza [Fri, 24 Aug 2001 15:59:51 +0000 (15:59 -0000)]
Remove IASyncResult to get the build going

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

22 years agoAdd System.Drawing.Drawing2D
Miguel de Icaza [Fri, 24 Aug 2001 15:54:40 +0000 (15:54 -0000)]
Add System.Drawing.Drawing2D

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

22 years agoControl.cs: Bug fixes.
Bob Smith [Fri, 24 Aug 2001 15:04:13 +0000 (15:04 -0000)]
Control.cs: Bug fixes.

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

22 years ago*** empty log message ***
Michael Lambert [Fri, 24 Aug 2001 14:20:03 +0000 (14:20 -0000)]
*** empty log message ***

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

22 years ago*** empty log message ***
Michael Lambert [Fri, 24 Aug 2001 13:56:21 +0000 (13:56 -0000)]
*** empty log message ***

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

22 years agoEnhanced test for valuetypes.
Paolo Molaro [Fri, 24 Aug 2001 13:39:12 +0000 (13:39 -0000)]
Enhanced test for valuetypes.

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

22 years agoFri Aug 24 19:30:25 CEST 2001 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 24 Aug 2001 13:38:27 +0000 (13:38 -0000)]
Fri Aug 24 19:30:25 CEST 2001 Paolo Molaro <lupus@ximian.com>

* class.c, class.h: add a MonoType this_arg to MonoClass that
represents a pointer to an object of the class' type that
can be used by the interpreter and later the type cache.
Add best guess alignment info for valuetype objects.

Fri Aug 24 19:34:04 CEST 2001 Paolo Molaro <lupus@ximian.com>

* interp.h, interp.c: add support for valuetypes.

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