mono.git
22 years ago2002-01-16 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 16 Jan 2002 19:18:45 +0000 (19:18 -0000)]
2002-01-16  Duncan Mak  <duncan@ximian.com>

    * ResourceManager.cs: After reading the tutorial from the SDK,
      finished all the ResourceManager constructors and removed those
      MonoTODO tags. Updated fields after reading the new docs from the
      final SDK.

    * ResXFileRef.cs, ResXResourceReader.cs: Removed. They are part of
      Windows.Forms and require System.Xml, which we don't have access to.

2002-01-13  Duncan Mak  <duncan@ximian.com>

    * ResourceManager.cs: Added more MonoTODOs and cleaned up some
      indenting.

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

22 years ago2002-01-16 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 16 Jan 2002 18:53:16 +0000 (18:53 -0000)]
2002-01-16  Miguel de Icaza  <miguel@ximian.com>

* driver.cs: Allow negative numbers as an error code to flag.

* cs-parser.jay: Handle 1551.

* namespace.cs: Add 1537 checking (repeated using alias namespaces).

2002-01-15  Miguel de Icaza  <miguel@ximian.com>

* cs-parser.jay: Report 1518 (type declaration can only contain
class, struct, interface, enum or delegate)

(switch_label): Report 1523 (keywords `case' or `default' must
preced code)

(opt_switch_sections): Report 1522 (empty switch)

* driver.cs: Report 1515 (response file specified multiple times)
Report 1516 (Source file specified multiple times).

* expression.cs (Argument.Resolve): Signal 1510

(BaseAccess.Resolve, BaseIndexer.Resolve): Signal 1511 (base
access not allowed in static code)

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

22 years agoadd new bug
Miguel de Icaza [Wed, 16 Jan 2002 18:52:44 +0000 (18:52 -0000)]
add new bug

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

22 years ago2002-01-17 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Wed, 16 Jan 2002 17:13:32 +0000 (17:13 -0000)]
2002-01-17    Gaurav Vaish <gvaish@iitk.ac.in>

* Button.cs  -- Bug fix for CommandName { set; } , thanks to Alex.

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

22 years agoBuild new tool for linux target too.
Nick Drochak [Wed, 16 Jan 2002 12:18:14 +0000 (12:18 -0000)]
Build new tool for linux target too.

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

22 years ago2002-01-17 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 16 Jan 2002 12:16:07 +0000 (12:16 -0000)]
2002-01-17  Nick Drochak  <ndrochak@gol.com>

* IFaceDisco.cs, XMLUtil.cs: Added new files for interface discovery tool.
* makefile: added target for IFaceDisco.exe and added to clean target for same

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

22 years ago2002-01-16 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Wed, 16 Jan 2002 09:05:25 +0000 (09:05 -0000)]
2002-01-16  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (main): install the trampoline before we start to create
objects.

* x86.brg: impl. CLT_UN, CGT_UN

* emit-x86.c (leave_method): added check for null object
(enter_method): consider byref arguments

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

22 years ago2002-01-11 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Wed, 16 Jan 2002 02:30:46 +0000 (02:30 -0000)]
2002-01-11  Ravi Pratap  <ravi@ximian.com>

* typemanager.cs (IsPointerType): Utility method which we are going
to need a lot.

* ecore.cs (ImplicitReferenceConversion): A pointer type cannot be cast to
the object type, so we take care of that.

* expression.cs (FullMethodDesc): Also include the return type in descriptions.

* support.cs (ParameterDesc): Fix minor bug which was causing params tags to be
added to non-params parameters :-)

* typemanager.cs (CSharpName): Include 'void' type too.

(void_ptr_type): Include in the set of core types.

* ecore.cs (ConvertImplicit): Make use of ConvertImplicitStandard instead of
duplicating code.

(ConvertImplicitStandard): Handle standard implicit pointer conversions when we have
an unsafe context.

* cs-parser.jay (local_variable_pointer_type): Add support for 'void *' as I had
completely forgotten about it.

2002-01-10  Ravi Pratap  <ravi@ximian.com>

* cs-parser.jay (pointer_type): Add. This begins our implementation
of parsing rules for unsafe code.

(unsafe_statement): Implement.

(embedded_statement): Modify to include the above.

* statement.cs (Unsafe): Implement new class for unsafe blocks.

* codegen.cs (EmitContext.InUnsafe): Add. This determines
if the current context is an unsafe one.

* cs-parser.jay (local_variable_pointer_type): Since local variable types
are handled differently, we need separate rules for them.

(local_variable_declaration): Update to use local_variable_pointer_type
to allow variable declarations of unmanaged pointer types.

* expression.cs (Unary.ResolveOperator): Ensure that the '&' operator is used only
in unsafe contexts.

* ../errors/cs0214.cs : Add.

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

22 years agoAdd more errors that we handle now
Miguel de Icaza [Wed, 16 Jan 2002 01:38:39 +0000 (01:38 -0000)]
Add more errors that we handle now

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

22 years ago2002-01-16 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Wed, 16 Jan 2002 00:43:43 +0000 (00:43 -0000)]
2002-01-16  Nick Drochak  <ndrochak@gol.com>

* makefile: remove 'response' file when cleaning.

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

22 years ago2002-01-15 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 15 Jan 2002 18:35:28 +0000 (18:35 -0000)]
2002-01-15  Duncan Mak  <duncan@ximian.com>

    * CultureInfo.cs: Convert it to unix text.

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

22 years ago2002-01-15 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 15 Jan 2002 18:06:08 +0000 (18:06 -0000)]
2002-01-15  Miguel de Icaza  <miguel@ximian.com>

* cs-parser.jay: Report 1524.

2002-01-14  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs (RegisterMethod): drop checking if we have

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

22 years agoTue Jan 15 22:47:57 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 15 Jan 2002 18:03:25 +0000 (18:03 -0000)]
Tue Jan 15 22:47:57 CET 2002 Paolo Molaro <lupus@ximian.com>

* metaparse.h: removed unused file.
* reflection.c, reflection.h: added stream_data_align () function
to align data in streams and keep stream aligned. Add support for
exception support in method headers.

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

22 years agoTue Jan 15 22:46:21 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 15 Jan 2002 18:03:21 +0000 (18:03 -0000)]
Tue Jan 15 22:46:21 CET 2002 Paolo Molaro <lupus@ximian.com>

* ILGenerator.cs: implement some of the exception support methods.

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

22 years agoTue Jan 15 19:42:50 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 15 Jan 2002 14:54:08 +0000 (14:54 -0000)]
Tue Jan 15 19:42:50 CET 2002 Paolo Molaro <lupus@ximian.com>

* unicode.c: make iconv_convert () return the number of bytess written
in the output buffer.

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

22 years ago2002-01-15 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 15 Jan 2002 13:28:41 +0000 (13:28 -0000)]
2002-01-15  Dick Porter  <dick@ximian.com>

* WaitHandle.cs:
* Thread.cs: Make the runtime's idea of infinite timeouts coincide
with the class library's

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

22 years ago2002-01-15 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 15 Jan 2002 13:26:57 +0000 (13:26 -0000)]
2002-01-15  Dick Porter  <dick@ximian.com>

* threads.c: Make the runtime's idea of infinite timeouts coincide
with the class library's

Fix a particularly egregious bug in mono_thread_cleanup(). That
code was so utterly bogus it must have been written on a Monday.

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

22 years ago2002-01-15 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 15 Jan 2002 11:17:54 +0000 (11:17 -0000)]
2002-01-15  Nick Drochak  <ndrochak@gol.com>

* ResolveEventArgs.cs: class should derive from EventArgs.

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

22 years agoAdded initial build file, which is most likely broken.
John Barnette [Tue, 15 Jan 2002 00:15:55 +0000 (00:15 -0000)]
Added initial build file, which is most likely broken.

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

22 years agoBroke status XML generation into a functional class and a driver.
John Barnette [Tue, 15 Jan 2002 00:04:19 +0000 (00:04 -0000)]
Broke status XML generation into a functional class and a driver.

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

22 years agoUseless enum removed.
John Barnette [Tue, 15 Jan 2002 00:00:55 +0000 (00:00 -0000)]
Useless enum removed.

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

22 years agoRemoved useless enum.
John Barnette [Mon, 14 Jan 2002 23:59:55 +0000 (23:59 -0000)]
Removed useless enum.

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

22 years agoBack out my change
Miguel de Icaza [Mon, 14 Jan 2002 18:57:56 +0000 (18:57 -0000)]
Back out my change

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

22 years agoFlush csproj
Miguel de Icaza [Mon, 14 Jan 2002 14:45:38 +0000 (14:45 -0000)]
Flush csproj

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

22 years agofix build
Miguel de Icaza [Mon, 14 Jan 2002 14:40:29 +0000 (14:40 -0000)]
fix build

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

22 years ago2002-01-14 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 14 Jan 2002 13:58:48 +0000 (13:58 -0000)]
2002-01-14  Miguel de Icaza  <miguel@ximian.com>

* String.cs (System): Use DefaultMemberName for the String class.

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

22 years agoMake each test return a different error code.
Paolo Molaro [Mon, 14 Jan 2002 12:24:34 +0000 (12:24 -0000)]
Make each test return a different error code.

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

22 years agoMon Jan 14 17:00:23 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 14 Jan 2002 12:19:11 +0000 (12:19 -0000)]
Mon Jan 14 17:00:23 CET 2002 Paolo Molaro <lupus@ximian.com>

* dump.c: more info in method table dump.

Mon Jan 14 17:01:03 CET 2002 Paolo Molaro <lupus@ximian.com>

* reflection.h: add subtypes field to TypeBuilder.
* reflection.c: encode constants for literal fields.
Handle subtypes. Fix user string token (and add a zero byte)
at the end.

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

22 years agoMon Jan 14 17:06:40 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 14 Jan 2002 12:19:11 +0000 (12:19 -0000)]
Mon Jan 14 17:06:40 CET 2002 Paolo Molaro <lupus@ximian.com>

* String.cs: use IndexerName in index char accessor.

Mon Jan 14 17:07:32 CET 2002 Paolo Molaro <lupus@ximian.com>

* ModulerBuilder.cs: search also for subtypes in GetTypes().
* TypeBuilder.cs: bugfix in FullName. Implemented DefineNestedType().

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

22 years ago* x86.brg (EMIT_COND_EXCEPTION): added signed flag, impl. more _OVF opcodes
Dietmar Maurer [Mon, 14 Jan 2002 11:33:27 +0000 (11:33 -0000)]
* x86.brg (EMIT_COND_EXCEPTION): added signed flag, impl. more _OVF opcodes

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

22 years ago* mono/tests/exception6.cs: added tests for SUB_OVF, SUB_OVF_UN
Dietmar Maurer [Mon, 14 Jan 2002 10:06:05 +0000 (10:06 -0000)]
* mono/tests/exception6.cs: added tests for SUB_OVF, SUB_OVF_UN
* x86.brg: impl. ADD_OVF_UN, SUB_OVF, SUB_OVF_UN

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

22 years agoadded exception6.cs
Dietmar Maurer [Mon, 14 Jan 2002 09:11:45 +0000 (09:11 -0000)]
added exception6.cs

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

22 years ago2002-01-14 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 14 Jan 2002 09:10:09 +0000 (09:10 -0000)]
2002-01-14  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg: bug fix in CONV_OVF_I1_UN
impl. ADD_OVF, MUL_OVF

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

22 years ago2002-01-14 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 14 Jan 2002 08:32:43 +0000 (08:32 -0000)]
2002-01-14  Nick Drochak  <ndrochak@gol.com>

* class.xml: Added classes I implemented.

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

22 years ago2002-01-14 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 14 Jan 2002 08:29:09 +0000 (08:29 -0000)]
2002-01-14  Nick Drochak  <ndrochak@gol.com>

* FileIOPermission.cs: New file.  Implemented.

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

22 years ago2002-01-14 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 14 Jan 2002 08:27:34 +0000 (08:27 -0000)]
2002-01-14  Nick Drochak  <ndrochak@gol.com>

* FileIOPermissionTest.cs: New File.
* AllTests.cs: New File.

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

22 years ago2002-01-14 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 14 Jan 2002 08:26:19 +0000 (08:26 -0000)]
2002-01-14  Nick Drochak  <ndrochak@gol.com>

* AllTests.cs: Add System.Security.Permissions.AllTests.Suite

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

22 years agoMon Jan 14 11:50:16 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 14 Jan 2002 07:00:24 +0000 (07:00 -0000)]
Mon Jan 14 11:50:16 CET 2002 Paolo Molaro <lupus@ximian.com>

* x86/x86-codegen.c: added overflow condition code and some aliases
for the other ccs.

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

22 years ago2002-01-14 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Mon, 14 Jan 2002 05:48:45 +0000 (05:48 -0000)]
2002-01-14  Dietmar Maurer  <dietmar@ximian.com>

* class.c (mono_class_init): bug fix: assign slot numbers for
abstract methods.

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

22 years agoRevert last patch
Ravi Pratap M [Sun, 13 Jan 2002 01:22:48 +0000 (01:22 -0000)]
Revert last patch

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

22 years ago2002-01-11 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 13 Jan 2002 01:19:10 +0000 (01:19 -0000)]
2002-01-11  Ravi Pratap  <ravi@ximian.com>

* typemanager.cs (IsPointerType): Utility method which we are going
to need a lot.

* ecore.cs (ImplicitReferenceConversion): A pointer type cannot be cast to
the object type, so we take care of that.

* expression.cs (FullMethodDesc): Also include the return type in descriptions.

* support.cs (ParameterDesc): Fix minor bug which was causing params tags to be
added to non-params parameters :-)

* typemanager.cs (CSharpName): Include 'void' type too.

(void_ptr_type): Include in the set of core types.

* ecore.cs (ConvertImplicit): Make use of ConvertImplicitStandard instead of
duplicating code.

(ConvertImplicitStandard): Handle standard implicit pointer conversions when we have
an unsafe context.

* cs-parser.jay (local_variable_pointer_type): Add support for 'void *' as I had
completely forgotten about it.

2002-01-10  Ravi Pratap  <ravi@ximian.com>

* cs-parser.jay (pointer_type): Add. This begins our implementation
of parsing rules for unsafe code.

(unsafe_statement): Implement.

(embedded_statement): Modify to include the above.

* statement.cs (Unsafe): Implement new class for unsafe blocks.

* codegen.cs (EmitContext.InUnsafe): Add. This determines
if the current context is an unsafe one.

* cs-parser.jay (local_variable_pointer_type): Since local variable types
are handled differently, we need separate rules for them.

(local_variable_declaration): Update to use local_variable_pointer_type
to allow variable declarations of unmanaged pointer types.

* expression.cs (Unary.ResolveOperator): Ensure that the '&' operator is used only
in unsafe contexts.

* ../errors/cs0214.cs : Add.

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

22 years ago2002-01-13 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sun, 13 Jan 2002 01:16:51 +0000 (01:16 -0000)]
2002-01-13  Ravi Pratap  <ravi@ximian.com>

* test-58.cs : Since it was a duplicate, replace with unsafe
code testing.

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

22 years agoAdd error
Miguel de Icaza [Sun, 13 Jan 2002 00:35:59 +0000 (00:35 -0000)]
Add error

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

22 years ago2002-01-12 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 12 Jan 2002 14:40:31 +0000 (14:40 -0000)]
2002-01-12  Miguel de Icaza  <miguel@ximian.com>

* class.cs (Method.EmitDestructor): Implement calling our base
destructor.

* statement.cs (Try.Emit): Fix to reset the InFinally to the old
value of InFinally.

* codegen.cs (EmitContext.EmitTopBlock): Destructors will call
this routine and will wrap the call in a try/catch block.  Deal
with the case.

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

22 years agoRenamed TESTS var so make distcheck works with the new automake.
Paolo Molaro [Sat, 12 Jan 2002 11:05:29 +0000 (11:05 -0000)]
Renamed TESTS var so make distcheck works with the new automake.

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

22 years ago2002-01-11 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 11 Jan 2002 18:57:07 +0000 (18:57 -0000)]
2002-01-11  Miguel de Icaza  <miguel@ximian.com>

(FieldExpr): Added partial support for volatile fields.  This does
not work for volatile fields exposed from assemblies, as I can not
figure out how to extract the modreq from it.

Updated all the source files to use this.

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

22 years agoFri Jan 11 20:06:22 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 11 Jan 2002 15:16:31 +0000 (15:16 -0000)]
Fri Jan 11 20:06:22 CET 2002 Paolo Molaro <lupus@ximian.com>

* jit.c: implement stloc, ldloc, ldloca.

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

22 years agoFri Jan 11 18:54:42 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 11 Jan 2002 14:13:13 +0000 (14:13 -0000)]
Fri Jan 11 18:54:42 CET 2002 Paolo Molaro <lupus@ximian.com>

* reflection.c: don't try to output a code RVA for abstract methods.
Small fixes for method header format. Output parameter info to the
ParamDef table. Save method overriding info to MethodImpl table.
Fix property support. Allow typedef.extends to be a type in the
building assembly.
* verify.c: fix off-by-one error.

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

22 years agoFri Jan 11 19:00:29 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 11 Jan 2002 14:12:54 +0000 (14:12 -0000)]
Fri Jan 11 19:00:29 CET 2002 Paolo Molaro <lupus@ximian.com>

* MethodBuilder.cs, ConstructorBuilder.cs: save parameter info.

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

22 years ago2002-01-11 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 11 Jan 2002 10:19:48 +0000 (10:19 -0000)]
2002-01-11  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (mono_analyze_stack): fixed calculation of last_instr

* x86.brg
(RET, RET_VOID, RET_OBJ, ...): fixed jump to epilog

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

22 years ago2002-01-11 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 11 Jan 2002 07:22:53 +0000 (07:22 -0000)]
2002-01-11  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg (LDLEN): emit null_reference exception
(BLE_UN): bug fix.

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

22 years agoAdd.
Ravi Pratap M [Fri, 11 Jan 2002 02:37:24 +0000 (02:37 -0000)]
Add.

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

22 years ago2002-01-11 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 11 Jan 2002 02:29:59 +0000 (02:29 -0000)]
2002-01-11  Miguel de Icaza  <miguel@ximian.com>

* ecore.cs (Expression.MemberLookup): instead of taking a
parameter `same_type' that was used to tell whether we could
access private members we compute our containing type from the
EmitContext.

Updated all the source files to use this.

* codegen.cs (EmitContext): Compute ContainerType ahead of time,
because it is referenced by MemberLookup very often.

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

22 years agoThu Jan 10 21:07:54 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 10 Jan 2002 16:17:53 +0000 (16:17 -0000)]
Thu Jan 10 21:07:54 CET 2002 Paolo Molaro <lupus@ximian.com>

* ILGenerator.cs: handle type tokens (used for box opcode).

Thu Jan 10 21:05:23 CET 2002 Paolo Molaro <lupus@ximian.com>

* MonoType.cs: add rank to MonoTypeInfo and implement GetArrayRank.
* String.c: eliminate 64k+ method calls in search.
* Type.cs: handle byref and array types in ToString ().

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

22 years agoThu Jan 10 19:36:27 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 10 Jan 2002 16:13:26 +0000 (16:13 -0000)]
Thu Jan 10 19:36:27 CET 2002 Paolo Molaro <lupus@ximian.com>

* class.c: fix mono_class_from_mono_type () for szarray types.
Remove unused cache check in mono_class_from_type_spec().
* icall.c: *type_from_name () functions handle simple arrays and byref.
* reflection.c: handle byref and szarray types. Handle methods without
body (gets P/Invoke compilation working). Handle types and fields in
get_token ().
* reflection.h: add rank to MonoTypeInfo.

Thu Jan 10 20:59:59 CET 2002 Paolo Molaro <lupus@ximian.com>

* interp.c, interp.h: add a flag to mono_create_trampoline ()
to handle runtime methods.

Thu Jan 10 21:01:08 CET 2002 Paolo Molaro <lupus@ximian.com>

* x86/tramp.c: mono_create_trampoline (): the runtime argument is
needed to handle correctly delegates, the previous change in handling
the string return type broke them.

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

22 years agoThu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>
Matt Kimball [Thu, 10 Jan 2002 15:16:17 +0000 (15:16 -0000)]
Thu Jan 10 12:06:46 MST 2002 Matt Kimball <matt@kimball.net>

* BufferedStream.cs: Initial implemenation.  The synchronous
methods for both reading and writing are implemented.  I'll do the
asynchronous methods in a bit.

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

22 years ago2002-01-10 Aaron Weber <aaron@ximian.com>
Aaron Weber [Thu, 10 Jan 2002 14:02:40 +0000 (14:02 -0000)]
2002-01-10  Aaron Weber  <aaron@ximian.com>

* doc/rationale: corrected linkrot: new link to bonobo whitepaper
at developer.ximian.com

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

22 years ago2002-01-10 Gaurav Vaish <gvaish@iitk.ac.in>
Gaurav Vaish [Thu, 10 Jan 2002 13:41:08 +0000 (13:41 -0000)]
2002-01-10   Gaurav Vaish <gvaish@iitk.ac.in>

* HyperLinkControlBuilder.cs, Table.cs, TableCell.cs, TableCellControlBuilder.cs, TableRowCollection.cs, TableCellCollection.cs --- Completed all except one. Don't recall which one. See TODO for details.

* HyperLinkColumn.cs, ButtonColumn.cs -- *Columns and *ControlBuilder are proving to be rather simple classes to be implemented. :))

* TODO  -- Updated

* ChangeLog -- Oops! Not here.. Will update it :(

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

22 years agoFix memory leak
Dick Porter [Thu, 10 Jan 2002 11:03:10 +0000 (11:03 -0000)]
Fix memory leak

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

22 years ago2002-01-10 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 10 Jan 2002 11:00:19 +0000 (11:00 -0000)]
2002-01-10  Dick Porter  <dick@ximian.com>

* threads.c: Implemented WaitAll(), WaitAny() and WaitOne()
internal calls

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

22 years ago2002-01-10 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 10 Jan 2002 10:59:44 +0000 (10:59 -0000)]
2002-01-10  Dick Porter  <dick@ximian.com>

* WaitHandle.cs: Added checks for too many handles and null
handles in WaitAll() and WaitAny

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

22 years ago*** empty log message ***
Dietmar Maurer [Thu, 10 Jan 2002 09:21:21 +0000 (09:21 -0000)]
*** empty log message ***

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

22 years ago2002-01-04 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 10 Jan 2002 09:20:09 +0000 (09:20 -0000)]
2002-01-04  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg: bug fix in CASTCLASS

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

22 years ago small bug fix
Dietmar Maurer [Thu, 10 Jan 2002 08:51:48 +0000 (08:51 -0000)]
 small bug fix

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

22 years ago2002-01-09 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Thu, 10 Jan 2002 03:27:51 +0000 (03:27 -0000)]
2002-01-09  Ravi Pratap  <ravi@ximian.com>

* typemanager.cs (IndexerPropertyName): If we have a TypeBuilder, use
TypeBuilder.GetCustomAttributes to retrieve what we need.

Get rid of redundant default_member_attr_type as this is the same as
default_member_type which already exists.

* interface.cs, attribute.cs : Update accordingly.

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

22 years agoUpdate errors
Miguel de Icaza [Wed, 9 Jan 2002 21:50:06 +0000 (21:50 -0000)]
Update errors

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

22 years agoUpdate
Miguel de Icaza [Wed, 9 Jan 2002 21:46:22 +0000 (21:46 -0000)]
Update

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

22 years agoAdded MonoTODO to InternalGetResourceSet(). I forgot to save before my last
Duncan Mak [Wed, 9 Jan 2002 20:18:10 +0000 (20:18 -0000)]
Added MonoTODO to InternalGetResourceSet(). I forgot to save before my last
commit.

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

22 years ago * ResourceManager.cs: Removed MonoTODO attribute on GetString
Duncan Mak [Wed, 9 Jan 2002 20:16:23 +0000 (20:16 -0000)]
* ResourceManager.cs: Removed MonoTODO attribute on GetString
  (string), as I believe it's correct. However, GetString
  (string, CultureInfo) is definitely broken, so I'm marking it with
  MonoTODO there. I also added MonoTODO to IntenalGetResourceSet().

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

22 years ago2002-01-09 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 9 Jan 2002 20:02:45 +0000 (20:02 -0000)]
2002-01-09  Duncan Mak  <duncan@ximian.com>

    * ResourceManager.cs: Fixed the GetSatelliteContractVersion()
      method. It was missing a cast before. Removed MonoTODO
      attribute. ;-) It was tested by John Barn, so this shouldn't
      break the build.

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

22 years agoWed Jan 9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>
Matt Kimball [Wed, 9 Jan 2002 19:13:42 +0000 (19:13 -0000)]
Wed Jan  9 16:04:39 MST 2002 Matt Kimball <matt@kimball.net>

* BinaryWriter.cs: Initial implementation.  And it's all there.

* BinaryReader.cs: The constructor now uses the passed in encoding,
not UTF8 always.

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

22 years agoCreated Guid.cs
Duco Fijma [Wed, 9 Jan 2002 19:02:59 +0000 (19:02 -0000)]
Created Guid.cs

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

22 years agoWed Jan 9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>
Matt Kimball [Wed, 9 Jan 2002 17:03:08 +0000 (17:03 -0000)]
Wed Jan  9 13:54:28 MST 2002 Matt Kimball <matt@kimbal.net>

* BinaryReader.cs: Initial implementation.  I think it's complete.

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

22 years agoWed Jan 9 19:37:55 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 9 Jan 2002 14:49:44 +0000 (14:49 -0000)]
Wed Jan 9 19:37:55 CET 2002 Paolo Molaro <lupus@ximian.com>

* ILGenerator.cs: emit float and doubles.
* ModuleBuilder.cs: off-by-one error fix and GetType()
implementations.
* TypeBuilder.cs: AttributesImpl added.
* UnmanagedMarshal.cs: stubbed out class.

Wed Jan 9 19:37:14 CET 2002 Paolo Molaro <lupus@ximian.com>

* MonoMethod.cs: ToString () implementation.

Wed Jan 9 19:35:07 CET 2002 Paolo Molaro <lupus@ximian.com>

* MulticastDelegate.cs: add == and != operator stubs.
* String.cs: check for null in == operator.
* Type.cs: use a virtual method to get TypeAttributes.

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

22 years agoWed Jan 9 19:27:13 CET 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 9 Jan 2002 14:41:59 +0000 (14:41 -0000)]
Wed Jan 9 19:27:13 CET 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: initialize class in type_from_handle ().
Loop also in parent classes for get_method ().
* reflection.c: properly encode class and valuetype types.
Start on encoding TypeBuilder types. Handle fieldrefs.
Use correct length when registering a user string.
Handle ConstructorBuilder and MonoMethod in get_token ().
Make mono_type_get_object () aware of cached types.
* object.c: back out change to mono_string_new ().

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

22 years agoInitial import.
John Barnette [Wed, 9 Jan 2002 08:36:37 +0000 (08:36 -0000)]
Initial import.

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

22 years agoMinor error message change.
John Barnette [Wed, 9 Jan 2002 08:34:46 +0000 (08:34 -0000)]
Minor error message change.

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

22 years agoTue Jan 8 23:30:19 EST 2002 Matt Kimball <matt@kimball.net>
Matt Kimball [Wed, 9 Jan 2002 02:39:30 +0000 (02:39 -0000)]
Tue Jan  8 23:30:19 EST 2002 Matt Kimball <matt@kimball.net>
* String.cs: Fixed several off-by-one errors in LastIndexOf* methods

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

22 years agoRemove old fixmes that were fixed
Miguel de Icaza [Wed, 9 Jan 2002 02:27:11 +0000 (02:27 -0000)]
Remove old fixmes that were fixed

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

22 years agoTue Jan 8 22:47:44 EST 2002 Matt Kimball <matt@kimball.net>
Matt Kimball [Wed, 9 Jan 2002 01:56:59 +0000 (01:56 -0000)]
Tue Jan 8 22:47:44 EST 2002 Matt Kimball <matt@kimball.net>
* object.c: mono_string_new should return a NULL when the string
passed in is NULL -- not try to deference it.

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

22 years agoTue Jan 8 22:38:41 MST 2002 Matt Kimball <matt@kimball.net>
Matt Kimball [Wed, 9 Jan 2002 01:49:12 +0000 (01:49 -0000)]
Tue Jan  8 22:38:41 MST 2002 Matt Kimball <matt@kimball.net>

* x86/tramp.c: handle strings returned from functions in external
libraries by converting to a Mono string object after the pinvoke'd
function returns

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

22 years agoFlush
Miguel de Icaza [Tue, 8 Jan 2002 22:12:51 +0000 (22:12 -0000)]
Flush

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

22 years ago2002-01-08 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 8 Jan 2002 21:54:24 +0000 (21:54 -0000)]
2002-01-08  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs: Enable IndexerPropertyName again.  It does not
work for TYpeBuilders though.  Ravi, can you please fix this?

* cs-tokenizer.cs: Accept _ as a name in pp-expressions.

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

22 years ago2002-01-08 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 8 Jan 2002 19:52:32 +0000 (19:52 -0000)]
2002-01-08  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (Argument.Emit): Handle the case of ref objects
being passed to ref functions;

(ParameterReference.EmitLoad): Loads the content of the pointer
without dereferencing.

2002-01-07  Miguel de Icaza  <miguel@ximian.com>

* cs-tokenizer.cs: Implemented the pre-processing expressions.

This also includes Matt Kimball's patch for LookupType.

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

22 years agoAdd BitConverter from Matt Kimball
Miguel de Icaza [Tue, 8 Jan 2002 16:07:03 +0000 (16:07 -0000)]
Add BitConverter from Matt Kimball

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

22 years agoRevert patch
Miguel de Icaza [Tue, 8 Jan 2002 15:48:29 +0000 (15:48 -0000)]
Revert patch

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

22 years agoADD: Initial import for some of the utility classes shared by all the
John Barnette [Tue, 8 Jan 2002 15:28:01 +0000 (15:28 -0000)]
ADD: Initial import for some of the utility classes shared by all the
documentation generators.

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

22 years agoAlready obsoleted, and should have never been added to CVS in the first
John Barnette [Tue, 8 Jan 2002 15:19:25 +0000 (15:19 -0000)]
Already obsoleted, and should have never been added to CVS in the first
place.  Mea culpa.

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

22 years agoUpdated email address
Miguel de Icaza [Tue, 8 Jan 2002 15:15:40 +0000 (15:15 -0000)]
Updated email address

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

22 years agoRemoved the todo utility, as it is being obsoleted by tools in ../docutils
John Barnette [Tue, 8 Jan 2002 14:57:18 +0000 (14:57 -0000)]
Removed the todo utility, as it is being obsoleted by tools in ../docutils

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

22 years ago2002-01-08 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Tue, 8 Jan 2002 14:08:57 +0000 (14:08 -0000)]
2002-01-08  Ravi Pratap  <ravi@ximian.com>

* class.cs (Indexer.DefineMethod): Incorporate the interface
type in the name of the method if we are doing explicit interface
implementation.

* expression.cs (ConversionExists): Remove as it is completely obsolete.

(BetterConversion): Fix extremely trivial bug where we were referring to
ConversionExists instead of StandardConversionExists ! Hooray, things are fine
again !

* ../errors/bug16.cs : Add although we have fixed it.

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

22 years agoAdd although we have just fixed it :-)
Ravi Pratap M [Tue, 8 Jan 2002 13:15:33 +0000 (13:15 -0000)]
Add although we have just fixed it :-)

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

22 years ago2002-01-08 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 8 Jan 2002 11:33:32 +0000 (11:33 -0000)]
2002-01-08  Nick Drochak  <ndrochak@gol.com>

* CodeAccessSecurityAttribute.cs, SecurityAttribute.cs,
SecurityPermissionAttribute.cs: New Files

* SecurityPermissionFlag.cs: Add missing enum values

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

22 years ago2002-01-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 8 Jan 2002 11:31:24 +0000 (11:31 -0000)]
2002-01-09  Nick Drochak  <ndrochak@gol.com>

* corlib.build: Exclude Security Attribute classes that need mcs
magic to get them to compile.

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

22 years ago2002-01-09 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 8 Jan 2002 11:28:14 +0000 (11:28 -0000)]
2002-01-09  Nick Drochak  <ndrochak@gol.com>

* Environment.cs: Comment out Security attribute and put a MonoTODO
there as a reminder.  We need mcs magic to handle security attributes in
corlib.

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

22 years agoCompilation Patch from Matt Kimball
Miguel de Icaza [Tue, 8 Jan 2002 01:49:35 +0000 (01:49 -0000)]
Compilation Patch from Matt Kimball

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

22 years agoAdd new tests
Miguel de Icaza [Tue, 8 Jan 2002 01:43:56 +0000 (01:43 -0000)]
Add new tests

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

22 years ago2002-01-07 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 7 Jan 2002 22:47:03 +0000 (22:47 -0000)]
2002-01-07  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (BaseIndexer): Begin implementation.

* class.cs (TypeContainer.IsInterfaceMethod): Bug fix.

* cs-parser.jay (indexer_declarator): Use qualified_identifier
production directly to remove a shift/reduce, and implement
explicit interface implementation.

* cs-tokenizer.cs: Fix tokenizer, it was consuming one extra char
after a floating point suffix.

* expression.cs (DoNumericPromotions): Improved the conversion for
uint/uint.  If we have a constant, we avoid doing a typecast to a
larger type.

* class.cs (Indexer): Implement explicit interface implementation
for indexers.

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

22 years agoAdded some MonoTODO attributes
Duco Fijma [Mon, 7 Jan 2002 18:28:58 +0000 (18:28 -0000)]
Added some MonoTODO attributes

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

22 years agoCreated INormalizeForIsolatedStorage
Duco Fijma [Mon, 7 Jan 2002 17:59:34 +0000 (17:59 -0000)]
Created INormalizeForIsolatedStorage

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