Sean MacIsaac [Wed, 17 Oct 2001 17:36:04 +0000 (17:36 -0000)]
Got nunit tests running in windows. Reorganized Test case directories.
svn path=/trunk/mcs/; revision=1176
Ravi Pratap M [Wed, 17 Oct 2001 09:25:26 +0000 (09:25 -0000)]
2001-10-17 Ravi Pratap <ravi@ximian.com>
* expression.cs (New::DoResolve): Implement delegate creation fully
and according to the spec.
(New::DoEmit): Update to handle delegates differently.
(Invocation::FullMethodDesc): Fix major stupid bug thanks to me
because of which we were printing out arguments in reverse order !
* delegate.cs (VerifyMethod): Implement to check if the given method
matches the delegate.
(FullDelegateDesc): Implement.
(VerifyApplicability): Implement.
* expression.cs (Invocation::DoResolve): Update to accordingly handle
delegate invocations too.
(Invocation::Emit): Ditto.
* ../errors/cs1593.cs : Added.
* ../errors/cs1594.cs : Added.
* delegate.cs (InstanceExpression, TargetMethod): New properties.
2001-10-16 Ravi Pratap <ravi@ximian.com>
* typemanager.cs (intptr_type): Core type for System.IntPtr
(InitCoreTypes): Update for the same.
(iasyncresult_type, asynccallback_type): Ditto.
* delegate.cs (Populate): Fix to use System.Intptr as it is indeed
correct.
* typemanager.cs (AddDelegateType): Store a pointer to the Delegate class
too.
* delegate.cs (ConstructorBuilder, InvokeBuilder, ...): New members to hold
the builders for the 4 members of a delegate type :-)
(Populate): Define the BeginInvoke and EndInvoke methods on the delegate
type.
* expression.cs (New::DoResolve): Implement guts for delegate creation.
* ../errors/errors.txt : Update for an error (-11) which only we catch :-)
svn path=/trunk/mcs/; revision=1175
Ravi Pratap M [Wed, 17 Oct 2001 09:21:11 +0000 (09:21 -0000)]
2001-10-17 Ravi Pratap <ravi@ximian.com>
* test-26.cs : Added to demonstrate delegate support.
svn path=/trunk/mcs/; revision=1174
Ravi Pratap M [Wed, 17 Oct 2001 09:20:07 +0000 (09:20 -0000)]
Add files for delegate related errors.
svn path=/trunk/mcs/; revision=1173
Sean MacIsaac [Wed, 17 Oct 2001 03:58:33 +0000 (03:58 -0000)]
class.c (mono_class_create_from_typeref): added debugging output
to print class name when MonoDummy is returned instead of real class
svn path=/trunk/mono/; revision=1172
Sean MacIsaac [Wed, 17 Oct 2001 03:54:01 +0000 (03:54 -0000)]
Added stub classes/methods needed by compiler in an attempt to get it
to run in Linux.
svn path=/trunk/mcs/; revision=1171
Miguel de Icaza [Wed, 17 Oct 2001 01:51:30 +0000 (01:51 -0000)]
Add IndexerNameAttribute
svn path=/trunk/mcs/; revision=1170
Miguel de Icaza [Tue, 16 Oct 2001 00:57:41 +0000 (00:57 -0000)]
2001-10-15 Miguel de Icaza <miguel@ximian.com>
* statement.cs (Break::Emit): Implement.
(Continue::Emit): Implement.
(For::Emit): Track old being/end loops; Set Begin loop, ack end loop
(While::Emit): Track old being/end loops; Set Begin loop, ack end loop
(Do::Emit): Track old being/end loops; Set Begin loop, ack end loop
(Foreach::Emit): Track old being/end loops; Set Begin loop, ack
end loop
* codegen.cs (EmitContext::LoopEnd, EmitContext::LoopBegin): New
properties that track the label for the current loop (begin of the
loop and end of the loop).
svn path=/trunk/mcs/; revision=1169
Miguel de Icaza [Mon, 15 Oct 2001 22:03:43 +0000 (22:03 -0000)]
UPdated
svn path=/trunk/mono/; revision=1168
Ravi Pratap M [Mon, 15 Oct 2001 14:41:52 +0000 (14:41 -0000)]
2001-10-15 Ravi Pratap <ravi@ximian.com>
* delegate.cs (Emit): Get rid of it as there doesn't seem to be any ostensible
use of emitting anything at all.
* class.cs, rootcontext.cs : Get rid of calls to the same.
* delegate.cs (DefineDelegate): Make sure the class we define is also sealed.
(Populate): Define the constructor correctly and set the implementation
attributes.
* typemanager.cs (delegate_types): New hashtable to hold delegates that
have been defined.
(AddDelegateType): Implement.
(IsDelegateType): Implement helper method.
* delegate.cs (DefineDelegate): Use AddDelegateType instead of AddUserType.
* expression.cs (New::DoResolve): Check if we are trying to instantiate a delegate type
and accordingly handle it.
* delegate.cs (Populate): Take TypeContainer argument.
Implement bits to define the Invoke method. However, I still haven't figured out
how to take care of the native int bit :-(
* cs-parser.jay (delegate_declaration): Fixed the bug that I had introduced :-)
Qualify the name of the delegate, not its return type !
* expression.cs (ImplicitReferenceConversion): Implement guts of implicit array
conversion.
(StandardConversionExists): Checking for array types turns out to be recursive.
(ConvertReferenceExplicit): Implement array conversion.
(ExplicitReferenceConversionExists): New method to determine precisely that :-)
2001-10-12 Ravi Pratap <ravi@ximian.com>
* cs-parser.jay (delegate_declaration): Store the fully qualified
name as it is a type declaration.
* delegate.cs (ReturnType, Name): Rename members to these. Make them
readonly.
(DefineDelegate): Renamed from Define. Does the same thing essentially,
as TypeContainer::DefineType.
(Populate): Method in which all the definition of the various methods (Invoke)
etc is done.
(Emit): Emit any code, if necessary. I am not sure about this really, but let's
see.
(CloseDelegate): Finally creates the delegate.
* class.cs (TypeContainer::DefineType): Update to define delegates.
(Populate, Emit and CloseType): Do the same thing here too.
* rootcontext.cs (ResolveTree, PopulateTypes, EmitCode, CloseTypes): Include
delegates in all these operations.
svn path=/trunk/mcs/; revision=1167
Dietmar Maurer [Mon, 15 Oct 2001 09:50:03 +0000 (09:50 -0000)]
2001-10-15 Dietmar Maurer <dietmar@ximian.com>
* class.c (mono_class_metadata_init): interface offset table now
contains pointers into the vtable - this is more efficient for the jit
* class.c (mono_class_metadata_init): use a temporary vtable (the
old algorithm only worked for the interpreter, but not for the jit)
* loader.c (method_from_memberref): use mono_class_get to get the
class of an array instead of using System.Array directly.
(mono_get_method): also add MEMBERREF methods to the method cache
which usefull for arrays.
* pedump.c (arch_compile_method): added to compute vtable entry
* interp.c: removed newobj()
* interp.c (get_virtual_method): use the vtable
(arch_compile_method): added to compute vtable entry
* x86.brg: added some experimental code for CALL
instructions - still not found the optimal way to do it.
* testjit.c (map_stind_type): add support for value types with
a size of 1, 2 or 4 bytes, implemented CEE_UNBOX, CEE_LDOBJ,
CEE_LDSTR, CEE_LDFLD, CEE_LDFLDA, CEE_STFLD, CEE_NEWOBJ, CEE_CEQ
(ctree_create_newobj): impl.
* emit-x86.c (tree_allocate_regs): removed allocation code for
addr nonterminal.
(get_address): use a simple, but bug free search instead of the
buggy binary search.
* testjit.c: support virtual functions
svn path=/trunk/mono/; revision=1166
Miguel de Icaza [Mon, 15 Oct 2001 00:03:43 +0000 (00:03 -0000)]
2001-10-14 Miguel de Icaza <miguel@ximian.com>
* expression.cs: LocalTemporary: a new expression used to
reference a temporary that has been created.
* assign.cs: Handle PropertyAccess back here, so that we can
provide the proper semantic access to properties.
svn path=/trunk/mcs/; revision=1165
Miguel de Icaza [Sun, 14 Oct 2001 22:30:14 +0000 (22:30 -0000)]
2001-10-14 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Expression::ConvertReferenceExplicit): Implement
a few more explicit conversions.
* modifiers.cs: `NEW' modifier maps to HideBySig.
* expression.cs (PropertyExpr): Make this into an
ExpressionStatement, and support the EmitStatement code path.
Perform get/set error checking, clean up the interface.
* assign.cs: recognize PropertyExprs as targets, and if so, turn
them into toplevel access objects.
svn path=/trunk/mcs/; revision=1164
Martin Weindel [Sun, 14 Oct 2001 18:36:09 +0000 (18:36 -0000)]
added Martin Weindel
svn path=/trunk/mono/; revision=1163
Martin Weindel [Sun, 14 Oct 2001 18:35:06 +0000 (18:35 -0000)]
added entry for System.Decimal
svn path=/trunk/mono/; revision=1162
Martin Weindel [Sun, 14 Oct 2001 18:28:54 +0000 (18:28 -0000)]
Tests for System.Decimal
svn path=/trunk/mcs/; revision=1161
Martin Weindel [Sun, 14 Oct 2001 18:27:32 +0000 (18:27 -0000)]
*** empty log message ***
svn path=/trunk/mcs/; revision=1160
Martin Weindel [Sun, 14 Oct 2001 18:26:04 +0000 (18:26 -0000)]
added Decimal.cs and DecimalFormatter.cs
svn path=/trunk/mcs/; revision=1159
Miguel de Icaza [Fri, 12 Oct 2001 18:52:18 +0000 (18:52 -0000)]
2001-10-12 Miguel de Icaza <miguel@ximian.com>
* expression.cs: PropertyExpr::PropertyExpr: use work around the
SRE.
* typemanager.cs: Keep track here of our PropertyBuilders again to
work around lameness in SRE.
svn path=/trunk/mcs/; revision=1158
Miguel de Icaza [Fri, 12 Oct 2001 14:18:21 +0000 (14:18 -0000)]
2001-10-11 Miguel de Icaza <miguel@ximian.com>
* expression.cs (LValue::LValueResolve): New method in the
interface, used to perform a second resolution pass for LValues.
(This::DoResolve): Catch the use of this in static methods.
(This::LValueResolve): Implement.
(This::Store): Remove warning, assigning to `this' in structures
is
svn path=/trunk/mcs/; revision=1157
Miguel de Icaza [Fri, 12 Oct 2001 14:13:12 +0000 (14:13 -0000)]
Make it compile
svn path=/trunk/mcs/; revision=1156
Ravi Pratap M [Fri, 12 Oct 2001 11:28:02 +0000 (11:28 -0000)]
2001-10-12 Ravi Pratap <ravi@ximian.com>
* test-21.cs : Update to actually do some checking and return
an appropriate value.
svn path=/trunk/mcs/; revision=1155
Paolo Molaro [Fri, 12 Oct 2001 10:32:09 +0000 (10:32 -0000)]
Fixed test cases.
svn path=/trunk/mono/; revision=1154
Miguel de Icaza [Fri, 12 Oct 2001 01:24:02 +0000 (01:24 -0000)]
Add more tests
svn path=/trunk/mcs/; revision=1153
Jeffrey Stedfast [Thu, 11 Oct 2001 23:27:11 +0000 (23:27 -0000)]
added StringTest.cs
svn path=/trunk/mcs/; revision=1152
Jeffrey Stedfast [Thu, 11 Oct 2001 23:26:24 +0000 (23:26 -0000)]
2001-10-11 Jeffrey Stedfast <fejj@ximian.com>
* System/StringTest.cs: Added.
svn path=/trunk/mcs/; revision=1151
Mario Carrion [Thu, 11 Oct 2001 18:56:17 +0000 (18:56 -0000)]
Adding tests for the basic integer structs
svn path=/trunk/mcs/; revision=1150
Miguel de Icaza [Thu, 11 Oct 2001 18:21:25 +0000 (18:21 -0000)]
Initial import on the Mono BASIC patchs from Rafael
svn path=/trunk/mcs/; revision=1149
Miguel de Icaza [Thu, 11 Oct 2001 18:12:12 +0000 (18:12 -0000)]
Add files from MonoBASIC compiler
svn path=/trunk/mcs/; revision=1148
Miguel de Icaza [Thu, 11 Oct 2001 18:02:55 +0000 (18:02 -0000)]
2001-10-11 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Invocation::Emit): Deal with invocation of
methods on value types. We need to pass the address to structure
methods rather than the object itself. (The equivalent code to
emit "this" for structures leaves the entire structure on the
stack instead of a pointer to it).
(ParameterReference::DoResolve): Compute the real index for the
argument based on whether the method takes or not a `this' pointer
(ie, the method is static).
* codegen.cs (EmitContext::GetTemporaryStorage): Used to store
value types returned from functions when we need to invoke a
method on the sturcture.
svn path=/trunk/mcs/; revision=1147
Thomas Neidhart [Thu, 11 Oct 2001 17:00:20 +0000 (17:00 -0000)]
* added sorting support for ByMaintainer.xsl
and ByNamespace.xsl
svn path=/trunk/mono/; revision=1146
Ravi Pratap M [Thu, 11 Oct 2001 16:46:46 +0000 (16:46 -0000)]
2001-10-11 Ravi Pratap <ravi@ximian.com>
* class.cs (TypeContainer::DefineType): Method to actually do the business of
defining the type in the Modulebuilder or Typebuilder. This is to take
care of nested types which need to be defined on the TypeBuilder using
DefineNestedMethod.
(TypeContainer::GetClassBases): Implement. Essentially the code from the
methods in RootContext, only ported to be part of TypeContainer.
(TypeContainer::GetInterfaceOrClass): Ditto.
(TypeContainer::LookupInterfaceOrClass, ::MakeFQN): Ditto.
* interface.cs (Interface::DefineInterface): New method. Does exactly
what RootContext.CreateInterface did earlier, only it takes care of nested types
too.
(Interface::GetInterfaces): Move from RootContext here and port.
(Interface::GetInterfaceByName): Same here.
* rootcontext.cs (ResolveTree): Re-write.
(PopulateTypes): Re-write.
* class.cs (TypeContainer::Populate): Populate nested types too.
(TypeContainer::Emit): Emit nested members too.
* typemanager.cs (AddUserType): Do not make use of the FullName property,
instead just use the name argument passed in as it is already fully
qualified.
(FindMembers): Check in the Builders to TypeContainer mapping instead of the name
to TypeContainer mapping to see if a type is user-defined.
* class.cs (TypeContainer::CloseType): Implement.
(TypeContainer::DefineDefaultConstructor): Use Basename, not Name while creating
the default constructor.
(TypeContainer::Populate): Fix minor bug which led to creating default constructors
twice.
(Constructor::IsDefault): Fix up logic to determine if it is the default constructor
* interface.cs (CloseType): Create the type here.
* rootcontext.cs (CloseTypes): Re-write to recursively close types by running through
the hierarchy.
Remove all the methods which are now in TypeContainer.
2001-10-10 Ravi Pratap <ravi@ximian.com>
* delegate.cs (Define): Re-write bits to define the delegate
correctly.
svn path=/trunk/mcs/; revision=1145
Ravi Pratap M [Thu, 11 Oct 2001 16:39:44 +0000 (16:39 -0000)]
Actually add the file this time :-)
svn path=/trunk/mcs/; revision=1144
Ravi Pratap M [Thu, 11 Oct 2001 16:38:03 +0000 (16:38 -0000)]
2001-10-11 Ravi Pratap <ravi@ximian.com>
* test-21.cs : Add. This is a test for testing our support
for nested types
svn path=/trunk/mcs/; revision=1143
Thomas Neidhart [Thu, 11 Oct 2001 15:56:27 +0000 (15:56 -0000)]
* updated class status
svn path=/trunk/mono/; revision=1142
Thomas Neidhart [Thu, 11 Oct 2001 15:30:20 +0000 (15:30 -0000)]
* Initial versions of several classes, including
DSA base classes and CSP base classes
svn path=/trunk/mcs/; revision=1141
Thomas Neidhart [Thu, 11 Oct 2001 15:24:19 +0000 (15:24 -0000)]
* Convert.cs: added Base64 converting methods
svn path=/trunk/mcs/; revision=1140
Dietmar Maurer [Thu, 11 Oct 2001 04:25:07 +0000 (04:25 -0000)]
more documentation
svn path=/trunk/mono/; revision=1138
Derek Holden [Wed, 10 Oct 2001 19:03:41 +0000 (19:03 -0000)]
IntegerFormatter test
svn path=/trunk/mcs/; revision=1137
Derek Holden [Wed, 10 Oct 2001 19:02:42 +0000 (19:02 -0000)]
out of range error on FormatGeneral for uints
svn path=/trunk/mcs/; revision=1136
Thomas Neidhart [Wed, 10 Oct 2001 17:26:22 +0000 (17:26 -0000)]
* added directory Test/System.Security.Cryptography
* added TestSuite for all Crypto classes
* added tests for AsymmetricAlgorithm & SymmetricAlgorithm
svn path=/trunk/mcs/; revision=1135
Derek Holden [Wed, 10 Oct 2001 15:36:11 +0000 (15:36 -0000)]
percision -> precision in 446 places
svn path=/trunk/mcs/; revision=1134
Paolo Molaro [Wed, 10 Oct 2001 10:11:17 +0000 (10:11 -0000)]
Wed Oct 10 16:07:24 CEST 2001 Paolo Molaro <lupus@ximian.com>
* x86/x86-codegen.c: added x86_set_{reg,mem,membase}.
svn path=/trunk/mono/; revision=1133
Derek Holden [Wed, 10 Oct 2001 08:05:59 +0000 (08:05 -0000)]
updated
svn path=/trunk/mcs/; revision=1132
Derek Holden [Wed, 10 Oct 2001 08:00:30 +0000 (08:00 -0000)]
ToString's now using IntegerFormatter
svn path=/trunk/mcs/; revision=1131
Derek Holden [Wed, 10 Oct 2001 07:57:45 +0000 (07:57 -0000)]
ToString formatter for integral types
svn path=/trunk/mcs/; revision=1130
Dietmar Maurer [Wed, 10 Oct 2001 07:51:37 +0000 (07:51 -0000)]
*** empty log message ***
svn path=/trunk/mono/; revision=1129
Dietmar Maurer [Wed, 10 Oct 2001 07:47:05 +0000 (07:47 -0000)]
2001-10-10 Dietmar Maurer <dietmar@ximian.com>
* interp.c (get_virtual_method): use the vtable
* metadata.c (mono_metadata_interfaces_from_typedef): also return the
number of interfaces.
* class.h: merged MonoArrayClass into MonoClass
* class.c (mono_class_create_from_typedef): compute the vtable size and
allocate space to include the vtable inside MonoClass
(mono_class_metadata_init): initialize the vtable
svn path=/trunk/mono/; revision=1128
Ravi Pratap M [Wed, 10 Oct 2001 03:43:32 +0000 (03:43 -0000)]
Fix up test-7.cs to use a double instead of float for explicit
conversion testing. We don;t parse float literals yet so ...
All tests pass again.
svn path=/trunk/mcs/; revision=1127
Miguel de Icaza [Wed, 10 Oct 2001 02:36:47 +0000 (02:36 -0000)]
2001-10-10 Miguel de Icaza <miguel@ximian.com>
* makefile: Renamed the compiler to `mcs.exe' instead of compiler.exe
* expression.cs (ImplicitReferenceConversion): handle null as well
as a source to convert to any reference type.
* statement.cs (Return): Perform any implicit conversions to
expected return type.
Validate use of return statement.
* codegen.cs (EmitContext): Pass the expected return type here.
* class.cs (Method, Constructor, Property): Pass expected return
type to EmitContext.
2001-10-09 Miguel de Icaza <miguel@ximian.com>
* expression.cs: Make DoResolve take an EmitContext instead of a
TypeContainer.
Replaced `l' and `location' for `loc', for consistency.
(Error, Warning): Remove unneeded Tc argument.
* assign.cs, literal.cs, constant.cs: Update to new calling
convention.
* codegen.cs: EmitContext now contains a flag indicating whether
code is being generated in a static method or not.
* cs-parser.jay: DecomposeQI, new function that replaces the old
QualifiedIdentifier. Now we always decompose the assembled
strings from qualified_identifier productions into a group of
memberaccesses.
2001-10-08 Miguel de Icaza <miguel@ximian.com>
* rootcontext.cs: Deal with field-less struct types correctly now
by passing the size option to Define Type.
* class.cs: Removed hack that created one static field.
2001-10-07 Miguel de Icaza <miguel@ximian.com>
* statement.cs: Moved most of the code generation here.
svn path=/trunk/mcs/; revision=1126
Derek Holden [Tue, 9 Oct 2001 21:35:45 +0000 (21:35 -0000)]
Small typo in PercentPositivePattern and CurrencyPositivePattern
svn path=/trunk/mcs/; revision=1125
Paolo Molaro [Tue, 9 Oct 2001 10:28:29 +0000 (10:28 -0000)]
Missing file: this is what you get working on holidays :-(
svn path=/trunk/mono/; revision=1124
Ravi Pratap M [Tue, 9 Oct 2001 02:55:28 +0000 (02:55 -0000)]
2001-10-09 Ravi Pratap <ravi@ximian.com>
* expression.cs (New::DoResolve): Revert changes for array creation, doesn't
seem very right.
(ElementAccess): Remove useless bits for now - keep checks as the spec
says.
svn path=/trunk/mcs/; revision=1123
Paolo Molaro [Mon, 8 Oct 2001 14:33:48 +0000 (14:33 -0000)]
Mon Oct 8 20:27:50 CEST 2001 Paolo Molaro <lupus@ximian.com>
* configure.in: define NO_UNALIGNED_ACCESS for platforms that
can't read on unaligned boundaries
Mon Oct 8 16:12:38 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.c, metadata.h: use MonoArrayType to describe the shape of an array.
Guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux).
* image.c: endian fixes by Laurent Rioux.
* object.h, object.c: rename MonoStringObject to MonoString and
MonoArrayObject to MonoArray. Change some function names to conform to
the style mono_<object>_<action>. mono_string_new_utf16 () takes a
guint16* as first argument, so don't use char*.
Provide macros to do the interesting things on arrays in a portable way.
* threads-pthread.c: updates for the API changes and #include <sched.h>
(required for sched_yield()).
* icall.c: updates for the API changes above.
* Makefile.am, mono-endian.c. mono-endian.h: include unaligned read routines for
platforms that need them.
Mon Oct 8 16:13:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
* get.c, get.h: MonoArray changed in MonoArrayType.
* main.c: guard against calling bsearch with a NULL pointer
(pointed out by Laurent Rioux, smoux).
Mon Oct 8 16:13:07 CEST 2001 Paolo Molaro <lupus@ximian.com>
* x86/tramp.c: remove mono_get_ansi_string () and use
mono_string_to_utf8 () instead.
Mon Oct 8 16:14:40 CEST 2001 Paolo Molaro <lupus@ximian.com>
* interp.c: use the accessors provided in object.h to deal with
MonoArrays. Updates for API renames in metadata. Throw exception
in ldelema if index is out of bounds.
svn path=/trunk/mono/; revision=1122
Ravi Pratap M [Mon, 8 Oct 2001 13:02:52 +0000 (13:02 -0000)]
2001-10-07 Ravi Pratap <ravi@ximian.com>
* cs-parser.jay (type_suffix*): Remove - they are redundant. Use
rank_specifiers instead.
(rank_specifiers): Change the order in which the rank specifiers are stored
(local_variable_declaration): Use opt_rank_specifier instead of type_suffixes.
* expression.cs (ElementAccess): Implement the LValue interface too.
2001-10-06 Ravi Pratap <ravi@ximian.com>
* expression.cs (ConvertExplicitStandard): Add. Same as ConvertExplicit
except that user defined conversions are not included.
(UserDefinedConversion): Update to use the ConvertExplicitStandard to
perform the conversion of the return type, if necessary.
(New::DoResolve): Check whether we are creating an array or an object
and accordingly do the needful.
(New::Emit): Same here.
(New::DoResolve): Implement guts of array creation.
(New::FormLookupType): Helper function.
svn path=/trunk/mcs/; revision=1121
Paolo Molaro [Mon, 8 Oct 2001 12:02:19 +0000 (12:02 -0000)]
Added copyright notices.
svn path=/trunk/mcs/; revision=1120
Dick Porter [Mon, 8 Oct 2001 09:28:07 +0000 (09:28 -0000)]
Fixed syntax errors
svn path=/trunk/mcs/; revision=1119
Paolo Molaro [Mon, 8 Oct 2001 04:48:43 +0000 (04:48 -0000)]
Mon Oct 8 10:43:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.c: set the correct type for all the fundamental
type when loading the class.
Mon Oct 8 10:44:25 CEST 2001 Paolo Molaro <lupus@ximian.com>
* interp.c: fixes for changes in metadata.
svn path=/trunk/mono/; revision=1118
Miguel de Icaza [Sun, 7 Oct 2001 21:01:57 +0000 (21:01 -0000)]
2001-10-07 Miguel de Icaza <miguel@ximian.com>
* codegen.cs: Added support for try/catch/finalize and throw.
* cs-parser.jay: Added support for try/catch/finalize.
svn path=/trunk/mcs/; revision=1117
Miguel de Icaza [Sun, 7 Oct 2001 02:13:01 +0000 (02:13 -0000)]
Add AllTests file from Mario
svn path=/trunk/mcs/; revision=1115
Miguel de Icaza [Sun, 7 Oct 2001 01:54:54 +0000 (01:54 -0000)]
Make the build pass
svn path=/trunk/mcs/; revision=1114
Miguel de Icaza [Sun, 7 Oct 2001 01:39:01 +0000 (01:39 -0000)]
Some warning reduction:
2001-10-07 Miguel de Icaza <miguel@ximian.com>
* Exception.cs: Implement bits of serialization.
* RuntimeFieldHandle.cs: Implement Serialization features.
* Type.cs: Implement TypeHandle property.
2001-10-07 Miguel de Icaza <miguel@ximian.com>
* AssemblyBuilder.cs: Reformatted.
Added override keywords to those that needed them.
Removed methods that we do not override, but just inherit
2001-10-07 Miguel de Icaza <miguel@ximian.com>
* Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
UnicodeEncoding.cs: Corrected API.
* UTF8Encoding.cs: Checked in changes from Rafael.
svn path=/trunk/mcs/; revision=1113
Miguel de Icaza [Sun, 7 Oct 2001 00:36:47 +0000 (00:36 -0000)]
Added updated UTF8Encoding from Rafael
svn path=/trunk/mcs/; revision=1111
Miguel de Icaza [Sun, 7 Oct 2001 00:23:41 +0000 (00:23 -0000)]
Update TODO
svn path=/trunk/mcs/; revision=1110
Miguel de Icaza [Sun, 7 Oct 2001 00:12:49 +0000 (00:12 -0000)]
2001-10-07 Miguel de Icaza <miguel@ximian.com>
* expression.cs (UserCast): This user cast was not really doing
what it was supposed to do. Which is to be born in fully resolved
state. Parts of the resolution were being performed at Emit time!
Fixed this code.
svn path=/trunk/mcs/; revision=1109
Thomas Neidhart [Sat, 6 Oct 2001 19:04:22 +0000 (19:04 -0000)]
* updated status
svn path=/trunk/mono/; revision=1108
Thomas Neidhart [Sat, 6 Oct 2001 17:25:25 +0000 (17:25 -0000)]
* AsymmetricAlgorithm.cs: Initial version
* AsymmetricKeyExchangeDeformatter.cs: Initial version
* AsymmetricKeyExchangeFormatter.cs: Initial version
* AsymmetricSignatureDeformatter.cs: Initial version
* AsymmetricSignatureFormatter.cs: Initial version
* PaddingMode.cs: Added PaddingMode.None
* SignatureDescription.cs: Initial version
* SymmetricAlgorithm.cs: Implemented CreateDecryptor, CreateEncryptor and Create() methods
svn path=/trunk/mcs/; revision=1107
Dick Porter [Sat, 6 Oct 2001 06:14:04 +0000 (06:14 -0000)]
Fixed thinko in usec/nsec time compare in pthread_mutex_timedlock()
svn path=/trunk/mono/; revision=1106
Thomas Neidhart [Sat, 6 Oct 2001 05:40:36 +0000 (05:40 -0000)]
SymmetricAlgorithm.cs: Implemented CreateDecryptor and CreateEncryptor methods
CryptographicException.cs: Initial version
CryptographicUnknownOperationException.cs: Initial version
svn path=/trunk/mcs/; revision=1105
Miguel de Icaza [Fri, 5 Oct 2001 21:13:47 +0000 (21:13 -0000)]
Work to get foreach working and analyzed.
ChangeLog comming later
svn path=/trunk/mcs/; revision=1103
Miguel de Icaza [Fri, 5 Oct 2001 17:03:10 +0000 (17:03 -0000)]
2001-10-05 Miguel de Icaza <miguel@ximian.com>
* expression.cs: Implicity convert the result from UserCast.
Include the test from Ravi that exhibits the bug.
New classes from Toelen.
svn path=/trunk/mcs/; revision=1102
Miguel de Icaza [Fri, 5 Oct 2001 16:09:01 +0000 (16:09 -0000)]
More files from Toelen
svn path=/trunk/mcs/; revision=1101
Ravi Pratap M [Fri, 5 Oct 2001 15:46:29 +0000 (15:46 -0000)]
2001-10-05 Ravi Pratap <ravi@ximian.com>
* expression.cs (Expression::FindMostEncompassingType): Fix bug which
prevented it from working correctly.
(ConvertExplicit): Make the first try, a call to ConvertImplicitStandard, not
merely ConvertImplicit.
svn path=/trunk/mcs/; revision=1100
Ravi Pratap M [Fri, 5 Oct 2001 15:41:21 +0000 (15:41 -0000)]
2001-10-05 Ravi Pratap <ravi@ximian.com>
* test-16.cs : Update to exercise the code which selects the best
conversion operator based on "most encompassing/encompassed type"
* test-7.cs : Update here too.
svn path=/trunk/mcs/; revision=1099
Miguel de Icaza [Fri, 5 Oct 2001 15:01:37 +0000 (15:01 -0000)]
*** empty log message ***
svn path=/trunk/mcs/; revision=1098
Dick Porter [Fri, 5 Oct 2001 12:44:18 +0000 (12:44 -0000)]
Updated status
svn path=/trunk/mono/; revision=1097
Dick Porter [Fri, 5 Oct 2001 12:15:07 +0000 (12:15 -0000)]
2001-10-05 Dick Porter <dick@ximian.com>
* threads-pthread.c (pthread_mutex_timedlock): Simple
compatibility version for C libraries that lack this call.
svn path=/trunk/mono/; revision=1096
Miguel de Icaza [Fri, 5 Oct 2001 11:14:03 +0000 (11:14 -0000)]
Add new files from Chris Hynes
svn path=/trunk/mcs/; revision=1094
Miguel de Icaza [Fri, 5 Oct 2001 11:07:40 +0000 (11:07 -0000)]
Add new files from Chris Hynes
svn path=/trunk/mcs/; revision=1093
Miguel de Icaza [Fri, 5 Oct 2001 10:54:02 +0000 (10:54 -0000)]
More News Items
svn path=/trunk/mono/; revision=1092
Ravi Pratap M [Fri, 5 Oct 2001 08:39:39 +0000 (08:39 -0000)]
2001-10-05 Ravi Pratap <ravi@ximian.com>
* expression.cs (Expression::ImplicitUserConversion): Rename to
UserDefinedConversion.
(Expression::UserDefinedConversion): Take an extra argument specifying
whether we look for explicit user conversions too.
(Expression::ImplicitUserConversion): Make it a call to UserDefinedConversion.
(UserDefinedConversion): Incorporate support for user defined explicit conversions.
(ExplicitUserConversion): Make it a call to UserDefinedConversion
with the appropriate arguments.
* cs-parser.jay (cast_expression): Record location too.
* expression.cs (Cast): Record location info.
(Expression::ConvertExplicit): Take location argument.
(UserImplicitCast): Change name to UserCast. Take an extra constructor argument
to determine if we are doing explicit conversions.
(UserCast::Emit): Update accordingly.
(Expression::ConvertExplicit): Report an error if everything fails.
* ../errors/cs0030.cs : Add.
svn path=/trunk/mcs/; revision=1091
Ravi Pratap M [Fri, 5 Oct 2001 08:37:06 +0000 (08:37 -0000)]
2001-10-05 Ravi Pratap <ravi@ximian.com>
* test-7.cs : Update to do explicit conversion tests.
* makefile : small fix.
svn path=/trunk/mcs/; revision=1090
Ravi Pratap M [Fri, 5 Oct 2001 08:35:28 +0000 (08:35 -0000)]
Add a file for error CS0030
svn path=/trunk/mcs/; revision=1089
Dietmar Maurer [Fri, 5 Oct 2001 05:03:42 +0000 (05:03 -0000)]
more tests
svn path=/trunk/mono/; revision=1088
Miguel de Icaza [Fri, 5 Oct 2001 02:03:44 +0000 (02:03 -0000)]
Updated
svn path=/trunk/mono/; revision=1087
Miguel de Icaza [Fri, 5 Oct 2001 01:52:52 +0000 (01:52 -0000)]
More News Items
svn path=/trunk/mono/; revision=1086
Miguel de Icaza [Fri, 5 Oct 2001 01:49:16 +0000 (01:49 -0000)]
Added SymmetricAlgorithm from Thomas Neidhart
svn path=/trunk/mcs/; revision=1085
Miguel de Icaza [Thu, 4 Oct 2001 21:39:50 +0000 (21:39 -0000)]
2001-10-04 Miguel de Icaza <miguel@ximian.com>
* modifiers.cs: If the ABSTRACT keyword is present, also set the
virtual and newslot bits.
svn path=/trunk/mcs/; revision=1082
Miguel de Icaza [Thu, 4 Oct 2001 21:29:13 +0000 (21:29 -0000)]
Update todo
svn path=/trunk/mcs/; revision=1081
Miguel de Icaza [Thu, 4 Oct 2001 21:24:28 +0000 (21:24 -0000)]
2001-10-04 Miguel de Icaza <miguel@ximian.com>
* class.cs (TypeContainer::RegisterRequiredImplementations):
Record methods we need.
(TypeContainer::MakeKey): Helper function to make keys for
MethodBases, since the Methodbase key is useless.
(TypeContainer::Populate): Call RegisterRequiredImplementations
before defining the methods.
Create a mapping for method_builders_to_methods ahead of time
instead of inside a tight loop.
(::RequireMethods): Accept an object as the data to set into the
hashtable so we can report interface vs abstract method mismatch.
svn path=/trunk/mcs/; revision=1080
Miguel de Icaza [Thu, 4 Oct 2001 21:21:13 +0000 (21:21 -0000)]
Add more tests
svn path=/trunk/mcs/; revision=1079
Miguel de Icaza [Thu, 4 Oct 2001 20:34:02 +0000 (20:34 -0000)]
Add more errors, and fix some error tests
svn path=/trunk/mcs/; revision=1077
Miguel de Icaza [Thu, 4 Oct 2001 17:51:34 +0000 (17:51 -0000)]
Flush
svn path=/trunk/mcs/; revision=1075
Miguel de Icaza [Thu, 4 Oct 2001 17:47:44 +0000 (17:47 -0000)]
UPdate web page
svn path=/trunk/mono/; revision=1074
Dick Porter [Thu, 4 Oct 2001 14:27:02 +0000 (14:27 -0000)]
Temporary kludge to work around older linuxthreads implementations that
are missing pthread_mutex_timedlock()
svn path=/trunk/mono/; revision=1073
Paolo Molaro [Thu, 4 Oct 2001 13:34:37 +0000 (13:34 -0000)]
Updates and fixes.
svn path=/trunk/mcs/; revision=1072
Paolo Molaro [Thu, 4 Oct 2001 13:32:23 +0000 (13:32 -0000)]
Thu Oct 4 19:10:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.c: MonoTypes stored in MonoClass are stored as
fundamental MonoTypes when the class represents a
fundamental type (System.Int32, ...).
The TypeHandle return by ldtoken is a MonoType*.
* icall.c: ves_icall_get_data_chunk () write out all the
PE/COFF stuff. Implement ves_icall_define_method (),
ves_icall_set_method_body (), ves_icall_type_from_handle ().
* image.c: properly skip unknown streams.
* loader.h, loader.c: add type_class to mono_defaults.
* metadata.c, metadata.h: export compute_size () as
mono_metadata_compute_size () with a better interface.
Typo and C&P fixes.
* pedump.c: don't try to print the entry point RVA if there is no entry point.
* reflection.c, reflection.h: many cleanups, fixes, output method
signatures and headers, typedef and typeref info, compress the metadata
tables, output all the heap streams, cli header etc.
* row-indexes.h: typo fixes.
Thu Oct 4 19:09:13 CEST 2001 Paolo Molaro <lupus@ximian.com>
* x86/tramp.c: allow marshalling valuetypes if they are
4 bytes long.
Thu Oct 4 19:05:56 CEST 2001 Paolo Molaro <lupus@ximian.com>
* dis-cil.c: fix printing of exception stuff.
* dump.c: display some more info in the typedef table dump.
* main.c: typo fix and method list fix.
svn path=/trunk/mono/; revision=1071
Dick Porter [Thu, 4 Oct 2001 09:44:14 +0000 (09:44 -0000)]
2001-10-03 Dick Porter <dick@ximian.com>
* Monitor.cs: Implemented all methods except the two Wait()
methods that take boolean parameters
svn path=/trunk/mcs/; revision=1070
Dick Porter [Thu, 4 Oct 2001 09:43:37 +0000 (09:43 -0000)]
2001-10-04 Dick Porter <dick@ximian.com>
* configure.in: Do some deeper checks on pthreads for some of the
more interesting functions
2001-10-04 Dick Porter <dick@ximian.com>
* object.h: Add a synchronisation mutex struct to MonoObject
* object.c (mono_new_object): Initialise the object
synchronisation mutexes
* icall.c: System.Threading.Monitor internal calls
* threads-pthread.h:
* threads-pthread.c: System.Threading.Monitor internal calls
* threads-types.h: New file, includes the system-specific thread
structures
* threads-pthread-types.h:
* threads-pthread-types.c: New files, handle pthread-specific
synchronisation types
* threads-dummy-types.h:
* threads-dummy-types.c: New files of dummy support for
thread-specific types
* metadata.c:
* image.c:
* pedump.c: include mono-endian.h not endian.h
* Makefile.am: More threads files.
Name mono-endian.h not endian.h
2001-10-04 Dick Porter <dick@ximian.com>
* meta.h: include mono-endian.h not endian.h
2001-10-04 Dick Porter <dick@ximian.com>
* interp.c (ves_runtime_method): init_class() the
mono_defaults.delegate_class
Include mono-endian.h not endian.h
2001-10-04 Dick Porter <dick@ximian.com>
* testjit.c:
* emit-x86.c: include mono-endian.h not endian.h
svn path=/trunk/mono/; revision=1069
Miguel de Icaza [Wed, 3 Oct 2001 21:37:52 +0000 (21:37 -0000)]
Flush
svn path=/trunk/mcs/; revision=1068