Gaurav Vaish [Sat, 1 Dec 2001 05:15:43 +0000 (05:15 -0000)]
2001-12-01 Gaurav Vaish <gvaish@iitk.ac.in>
* ListControl.cs --- Finished it. And also understood what DataBinding is all about. :)))
svn path=/trunk/mcs/; revision=1496
Gaurav Vaish [Sat, 1 Dec 2001 05:14:58 +0000 (05:14 -0000)]
2001-12-01 Gaurav Vaish <gvaish@iitk.ac.in>
* ChangeLog -- ListControl Finished man!
svn path=/trunk/mcs/; revision=1495
Gaurav Vaish [Sat, 1 Dec 2001 04:56:03 +0000 (04:56 -0000)]
2001-12-01 Gaurav Vaish <gvaish@iitk.ac.in>
* ListControl.cs --- Pretty descent. Looks complete.
svn path=/trunk/mcs/; revision=1494
Dietmar Maurer [Fri, 30 Nov 2001 12:39:30 +0000 (12:39 -0000)]
2001-11-30 Dietmar Maurer <dietmar@ximian.com>
* emit-x86.c (tree_preallocate_regs): improved register allocation
* x86.brg: impl. ISINST, CASTCLASS
* class.c (mono_install_runtime_class_init): impl.
(mono_class_init): renamed mono_class_metadata_init to
mono_class_init, also removed the metadata_inited flag
* object.c (mono_object_isinst): use faster algorithm
svn path=/trunk/mono/; revision=1493
Radek Doulik [Fri, 30 Nov 2001 11:17:31 +0000 (11:17 -0000)]
2001-11-30 Radek Doulik <rodo@ximian.com>
* configure.in: remove ACCESS_UNALIGNED="no" from ppc
svn path=/trunk/mono/; revision=1492
Radek Doulik [Fri, 30 Nov 2001 11:09:16 +0000 (11:09 -0000)]
reverted my last changes, fixed unaligned access to make it work
2001-11-30 Radek Doulik <rodo@ximian.com>
* mono-endian.h: reverted last change
added function prototypes
* Makefile.am (libmetadata_a_SOURCES): reverted my last change and
add mono-endian.c back
* mono-endian.c: returned back, as Paolo pointed out, it's needed
for unaligned access, I've mistaked it with endianess. I am
sorry.
(mono_read16): fix reverted endianess
(mono_read64): ditto
(mono_read32): ditto
svn path=/trunk/mono/; revision=1491
Dick Porter [Fri, 30 Nov 2001 09:11:56 +0000 (09:11 -0000)]
2001-11-30 Dick Porter <dick@ximian.com>
* exception.c: Implement mono_exception_from_name()
2001-11-30 Dick Porter <dick@ximian.com>
* interp.c: Replace get_named_exception() with
mono_exception_from_name()
svn path=/trunk/mono/; revision=1490
Gaurav Vaish [Fri, 30 Nov 2001 07:26:11 +0000 (07:26 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* class.xml --- Current status for System.Web.UI.WebControls namespace
svn path=/trunk/mono/; revision=1489
Paolo Molaro [Fri, 30 Nov 2001 07:20:41 +0000 (07:20 -0000)]
Fri Nov 30 12:01:02 CET 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, metadata.c: remove params_size and locals_size and their
calculation from the metadata code: they are only usefult to the
interp.
Fri Nov 30 12:02:24 CET 2001 Paolo Molaro <lupus@ximian.com>
* x86.brg: rearrange fields to reduce struct size.
* jit.c: use signature->param_count, not signature->params_size.
* debug.c: off-by-one error fix.
Fri Nov 30 12:05:21 CET 2001 Paolo Molaro <lupus@ximian.com>
* interp.c: calculate locals and args offsets only once
per method call. Cache trampoline code as well.
svn path=/trunk/mono/; revision=1488
Gaurav Vaish [Fri, 30 Nov 2001 03:47:01 +0000 (03:47 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceHelper.cs, UrlUtils.cs -- Moved to proper places
* ChangeLog's --- Properly updated
svn path=/trunk/mcs/; revision=1487
Gaurav Vaish [Fri, 30 Nov 2001 03:43:45 +0000 (03:43 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
Important changes:
* System.Web.WebUtils removed... renamed to System.Web.Utils based on some hacking done.
* AdRotator.cs --- Updated to use Utils
* BaseDataList.cs --- Removing rubbishness
* CheckBox.cs --- Working
* CheckBoxList.cs --- Finalized?
* ListControl.cs --- Initital Implementation
svn path=/trunk/mcs/; revision=1486
Gaurav Vaish [Fri, 30 Nov 2001 02:07:03 +0000 (02:07 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceHelper --- Corrected the function name to GetResolvedDataSource(...)
svn path=/trunk/mcs/; revision=1485
Gaurav Vaish [Fri, 30 Nov 2001 01:58:12 +0000 (01:58 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceHelper.cs --- Renamed the class DataSourceUtils to DataSourceHelper (an internal class)
* ChangeLog --- Properly updated
svn path=/trunk/mcs/; revision=1484
Gaurav Vaish [Fri, 30 Nov 2001 01:53:33 +0000 (01:53 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* DataSourceUtils.cs -- Internal class. Does the job of resolving data from the source based on a member element.
----- This function is required during the OnDataBinding(EventArgs) method in several of the UI.*, UI.WebControtrols.* classes
svn path=/trunk/mcs/; revision=1483
Radek Doulik [Thu, 29 Nov 2001 21:23:53 +0000 (21:23 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* ppc/tramp.c: use r12 which is volatile instead of non-volatile
r14 to avoid saving
svn path=/trunk/mono/; revision=1482
Radek Doulik [Thu, 29 Nov 2001 20:20:45 +0000 (20:20 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* configure.in (ACCESS_UNALIGNED): uncommented and modified
powerpc-*-linux*
generate mono/arch/ppc/Makefile
svn path=/trunk/mono/; revision=1481
Radek Doulik [Thu, 29 Nov 2001 20:20:18 +0000 (20:20 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* object.c (mono_ldstr): swap bytes here, it's probably not the
best place, but works for me now, I'll redo it once I know mono
better, also note that I add PROT_WRITE and don't reset back, also
note that it's only affects big endians, so x86 should be OK
* mono-endian.h (read16): use just glib macros for both endians
* mono-endian.c: removed as glib macros are used in in
mono-endian.h so we don't need to care about endianess for read
macros as glib does that for us already
svn path=/trunk/mono/; revision=1480
Radek Doulik [Thu, 29 Nov 2001 20:19:32 +0000 (20:19 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* Makefile.am: build mono only for X86 architecture, compilation
fails for ppc now because of accessing registers in sigcontext
structure
svn path=/trunk/mono/; revision=1479
Radek Doulik [Thu, 29 Nov 2001 20:19:00 +0000 (20:19 -0000)]
2001-11-29 Radek Doulik <rodo@ximian.com>
* Makefile.am (libmonoarch_la_LIBADD): added ppc to DIST_SUBDIRS
generate libmonoarch for ppc
svn path=/trunk/mono/; revision=1478
Radek Doulik [Thu, 29 Nov 2001 19:32:48 +0000 (19:32 -0000)]
added test
svn path=/trunk/mono/; revision=1477
Radek Doulik [Thu, 29 Nov 2001 19:32:19 +0000 (19:32 -0000)]
added files for initial ppc support
svn path=/trunk/mono/; revision=1476
Gaurav Vaish [Thu, 29 Nov 2001 18:11:51 +0000 (18:11 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBoxList.cs --- Wanted to go for this class.
* ListControl.cs --- But ended up taking up this one.
svn path=/trunk/mcs/; revision=1475
Gaurav Vaish [Thu, 29 Nov 2001 18:09:44 +0000 (18:09 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs --- Initial Implementation
* ChangeLog --- Updated with latest information. I think so, at least.
svn path=/trunk/mcs/; revision=1474
Gaurav Vaish [Thu, 29 Nov 2001 15:48:48 +0000 (15:48 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs --- Oops! I forgot OnPreRender. The last method left, well, still supposedly. Looks pretty fine now.
svn path=/trunk/mcs/; revision=1473
Paolo Molaro [Thu, 29 Nov 2001 15:31:08 +0000 (15:31 -0000)]
Reformat to reduce line length.
svn path=/trunk/mono/; revision=1472
Gaurav Vaish [Thu, 29 Nov 2001 14:38:12 +0000 (14:38 -0000)]
2001-11-30 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs -- Huh! Completed another class. Looks to be at least. :))
* ChangeLog -- Notified others
svn path=/trunk/mcs/; revision=1471
Gaurav Vaish [Thu, 29 Nov 2001 14:32:17 +0000 (14:32 -0000)]
2001-11-29 Gaurav Vaish <gvaish@iitk.ac.in>
* CheckBox.cs -- Can now do Render-ing and LoadPostData-ing.
* ChangeLog -- Made proper updates
svn path=/trunk/mcs/; revision=1470
Paolo Molaro [Thu, 29 Nov 2001 13:39:08 +0000 (13:39 -0000)]
Thu Nov 29 18:20:58 CET 2001 Paolo Molaro <lupus@ximian.com>
* class.h, class.h: take minimum alignment into consideration so
that the fields of a class remain aligned also when in an array.
svn path=/trunk/mono/; revision=1469
Gaurav Vaish [Thu, 29 Nov 2001 13:27:07 +0000 (13:27 -0000)]
2001-11-29 Gaurav Vaish <gvaish@iitk.ac.in>
* ChangeLog -- When did I add System.Web.WebUtils?
svn path=/trunk/mcs/; revision=1468
Daniel Weber [Thu, 29 Nov 2001 10:49:39 +0000 (10:49 -0000)]
* XmlAttribute.cs re-arrange source file to put attributes first. Implement
value, modify constructor
* XmlAttributeCollection.cs - Fix bug on owner document check, add TODO - Make
insert operations match XmlNode insertion on null pointer refNode.
* XmlDeclaration.cs - Add copyright info to top of file
* XmlDocument.cs - implement localName, Name
* XmlDocumentFragment.cs : first cut at implementation. Implement name,
localName
* XmlElement.cs - implement value, modify constructor
* XmlNames_1_0.cs - add IsXmlName function, fix bug in IsXmlChar()
* XmlNode.cs - implement BaseURI and value, add more comments
* XmlWriter.cs - begin stubbing out methods
* Added XmlUtil.cs - Internal class. Contains static utility methods that are non-Xml version
specific, mostly character encoding conversions
* Added XmlInputSource.cs - internal class to handle streaming Xml input.
* Added DomEncodingType.cs - internal enueration class to detail supported encodings
(ISO-8859-n, UTF-8/UTF-16, eg)
svn path=/trunk/mcs/; revision=1467
Dietmar Maurer [Thu, 29 Nov 2001 10:46:40 +0000 (10:46 -0000)]
bug fixes, code cleanup
svn path=/trunk/mono/; revision=1466
Paolo Molaro [Thu, 29 Nov 2001 07:42:04 +0000 (07:42 -0000)]
Thu Nov 29 12:32:01 CET 2001 Paolo Molaro <lupus@ximian.com>
* debug.c: fix type handling. Position function position at start of
IL code. Output more fine-grained stepping information.
svn path=/trunk/mono/; revision=1465
Dietmar Maurer [Thu, 29 Nov 2001 05:51:04 +0000 (05:51 -0000)]
documentation
svn path=/trunk/mono/; revision=1464
Miguel de Icaza [Wed, 28 Nov 2001 18:18:32 +0000 (18:18 -0000)]
2001-11-28 Miguel de Icaza <miguel@ximian.com>
* UInt64.cs: ditto.
* UInt32.cs: ditto.
* Int32.cs (Int32.CompareTo): Fix because we can not just
substract the values.
Return possitive value if the object is null.
* Boolean.cs: (Boolean.CompareTo): ditto.
* Int16.cs (Int16.CompareTo): ditto.
* Byte.cs (Byte.CompareTo): ditto.
* SByte.cs (SByte.CompareTo): ditto.
* Char.cs (Char.CompareTo): ditto.
* Decimal.cs (Decimal.CompareTo): ditto.
* Int64.cs (Int64.CompareTo): ditto.
* Single.cs: Ditto.
* UInt16.cs: Ditto.
svn path=/trunk/mcs/; revision=1463
Miguel de Icaza [Wed, 28 Nov 2001 18:15:16 +0000 (18:15 -0000)]
Add more error tests
svn path=/trunk/mcs/; revision=1462
Miguel de Icaza [Wed, 28 Nov 2001 18:14:13 +0000 (18:14 -0000)]
Add test for switch
svn path=/trunk/mcs/; revision=1461
Miguel de Icaza [Wed, 28 Nov 2001 17:51:00 +0000 (17:51 -0000)]
2001-11-27 Miguel de Icaza <miguel@ximian.com>
* expression.cs (This): Fix prototype for DoResolveLValue to
override the base class DoResolveLValue.
* cs-parser.cs: Report errors cs574 and cs575 (destructor
declarations)
* ecore.cs (FieldExpr.EmitAssign): Handle value types specially
(we need to load the address of the field here). This fixes
test-22.
(FieldExpr.DoResolveLValue): Call the DoResolve
function to initialize the Instance expression.
* statement.cs (Foreach.Emit): Fix the bug where we did not invoke
correctly the GetEnumerator operation on a value type.
* cs-parser.jay: Add more simple parsing error catches.
* statement.cs (Switch): Add support for string switches.
Handle null specially.
* literal.cs (NullLiteral): Make NullLiteral objects singletons.
svn path=/trunk/mcs/; revision=1460
Miguel de Icaza [Wed, 28 Nov 2001 17:26:34 +0000 (17:26 -0000)]
Updates
svn path=/trunk/mono/; revision=1459
Ravi Pratap M [Wed, 28 Nov 2001 17:16:40 +0000 (17:16 -0000)]
2001-11-28 Ravi Pratap <ravi@ximian.com>
* cs-parser.jay (local_constant_declaration): Use declare_local_constant.
(declare_local_constant): New helper function.
* statement.cs (AddConstant): Keep a separate record of constants
(IsConstant): Implement to determine if a variable is a constant.
(GetConstantExpression): Implement.
* expression.cs (LocalVariableReference): Handle the case when it is a constant.
* statement.cs (IsVariableDefined): Re-write.
2001-11-27 Ravi Pratap <ravi@ximian.com>
* class.cs (TypeContainer::FindMembers): Look for constants
in the case when we are looking for MemberTypes.Field
* expression.cs (MemberAccess::DoResolve): Check that in the
case we are a FieldExpr and a Literal, we are not being accessed
by an instance reference.
* cs-parser.jay (local_constant_declaration): Implement.
(declaration_statement): Implement for constant declarations.
svn path=/trunk/mcs/; revision=1458
Ravi Pratap M [Wed, 28 Nov 2001 17:12:19 +0000 (17:12 -0000)]
2001-11-28 Ravi Pratap <ravi@ximian.com>
* test-48.cs : Add for constant emission tests.
* makefile : Update for the above as it passes nicely :-)
svn path=/trunk/mcs/; revision=1457
Dietmar Maurer [Wed, 28 Nov 2001 14:14:56 +0000 (14:14 -0000)]
2001-11-28 Dietmar Maurer <dietmar@ximian.com>
* x86.brg (LDIND_I1, LDIND_I2): use x86_widen_ instead of x86_mov_
* jit.c (sigsegv_signal_handler): translate sigsegv into "Internal error"
exception.
svn path=/trunk/mono/; revision=1456
Nick Drochak [Wed, 28 Nov 2001 09:18:02 +0000 (09:18 -0000)]
2001-11-28 Nick Drochak <ndrochak@gol.com>
* Byte.cs: Throw NotImplementedException for Parse.
svn path=/trunk/mcs/; revision=1455
Dietmar Maurer [Wed, 28 Nov 2001 05:01:41 +0000 (05:01 -0000)]
don't print debug infos
svn path=/trunk/mono/; revision=1454
Dietmar Maurer [Wed, 28 Nov 2001 04:58:54 +0000 (04:58 -0000)]
*** empty log message ***
svn path=/trunk/mono/; revision=1453
Dietmar Maurer [Wed, 28 Nov 2001 04:55:06 +0000 (04:55 -0000)]
2001-11-28 Dietmar Maurer <dietmar@ximian.com>
* jit.c (mono_analyze_stack): record the cli_address for later use
with gdb.
svn path=/trunk/mono/; revision=1452
Nick Drochak [Tue, 27 Nov 2001 19:34:13 +0000 (19:34 -0000)]
2001-11-28 Nick Drochak <ndrochak@gol.com>
* Int16Test.cs Int32Test.cs SByteTest.cs: Surgically removed tests that
rely on culture of system. These need to be crafted a bit differently.
svn path=/trunk/mcs/; revision=1451
Paolo Molaro [Tue, 27 Nov 2001 11:46:56 +0000 (11:46 -0000)]
Dum de dum, missing files.
svn path=/trunk/mono/; revision=1450
Paolo Molaro [Tue, 27 Nov 2001 11:46:11 +0000 (11:46 -0000)]
Tue Nov 27 16:31:52 CET 2001 Paolo Molaro <lupus@ximian.com>
* main.c: output a marker for method (used in debug support).
Tue Nov 27 16:32:41 CET 2001 Paolo Molaro <lupus@ximian.com>
* debug.c, debug.h: added support for generating stabs.
Stabs can be compiled with as and the resulting object file can be
loaded in a gdb session with add-symbol-file object.o.
* jit.c, jit.h: add --stabs and --debug command line arguments. Keep track
where locals and arguments are stored in the stack. Add support for
passing command line arguments to CLR programs.
* emit-x86.c: insert a breakpoint at method invocation if needed.
Tue Nov 27 16:39:01 CET 2001 Paolo Molaro <lupus@ximian.com>
* loader.h, loader.c: add mono_method_get_param_names().
* class.c: 0-init class fields.
svn path=/trunk/mono/; revision=1449
Derek Holden [Tue, 27 Nov 2001 10:44:53 +0000 (10:44 -0000)]
2001-11-27 Derek Holden <dholden@draper.com>
* IntegerFormatter.cs: Formatting of type "Number" was not
using NumberFormatInfo.NumberNegativePattern.
svn path=/trunk/mcs/; revision=1448
Paolo Molaro [Tue, 27 Nov 2001 10:30:39 +0000 (10:30 -0000)]
Tue Nov 27 15:24:07 CET 2001 Paolo Molaro <lupus@ximian.com>
* x96/x86-codegen.c: x86_lea_memindex() added.
svn path=/trunk/mono/; revision=1447
Dietmar Maurer [Tue, 27 Nov 2001 10:05:14 +0000 (10:05 -0000)]
etmar Maurer <dietmar@ximian.com>
* jit.c: exception support
* emit-x86.c (arch_emit_epilogue): bug fix: restore the regs in
the right order.
* mono/tests/exception3.cs: modified the test to show a bug in the
current exception handling implementation.
svn path=/trunk/mono/; revision=1446
Nick Drochak [Tue, 27 Nov 2001 08:35:03 +0000 (08:35 -0000)]
2001-11-27 Nick Drochak <ndrochak@gol.com>
* SByteTest.cs: Add messages to Assert()'s so we can tell where the tests fail.
* ChangeLog: Added
svn path=/trunk/mcs/; revision=1445
Miguel de Icaza [Tue, 27 Nov 2001 01:55:25 +0000 (01:55 -0000)]
Update TODO
svn path=/trunk/mcs/; revision=1444
Miguel de Icaza [Mon, 26 Nov 2001 22:22:21 +0000 (22:22 -0000)]
Switch statement implementation
svn path=/trunk/mcs/; revision=1443
Miguel de Icaza [Mon, 26 Nov 2001 22:20:57 +0000 (22:20 -0000)]
Update Visual Studio Project
svn path=/trunk/mcs/; revision=1442
Dick Porter [Mon, 26 Nov 2001 13:17:57 +0000 (13:17 -0000)]
2001-11-26 Dick Porter <dick@ximian.com>
* Thread.cs: DataSlot uses a single system TLS slot, and a
hashtable per thread. Some minor changes to reflect the new
internal calls using the new IO library, and the newly-supported
bool returns from internal calls.
* Monitor.cs: Use bool returns from internal calls now they are
supported by the runtime. Coalesce enter with the try_enter
internal call.
2001-11-26 Dick Porter <dick@ximian.com>
* LocalDataStoreSlot.cs: No need to delete a system TLS slot in
the finalise routine any more
svn path=/trunk/mcs/; revision=1441
Dick Porter [Mon, 26 Nov 2001 13:10:18 +0000 (13:10 -0000)]
2001-11-26 Dick Porter <dick@ximian.com>
* icall.c:
* threads-types.h:
* threads.c: New file that handles System.Threading on all platforms
* object.c:
* object.h: Remove the synchronisation struct from MonoObject,
replace it with a pointer that gets initialised on demand
* Makefile.am: Replace all the system-specific threading code with
a single file that uses the new wrapper library
2001-11-26 Dick Porter <dick@ximian.com>
* critical-sections.c:
* events.c:
* handles.c:
* io.c:
* mutexes.c:
* semaphores.c:
* threads.c:
* timed-thread.c:
* wait.c: turn off DEBUG messages
2001-11-26 Dick Porter <dick@ximian.com>
* Makefile.am (mono_LDADD): Add io-layer library
svn path=/trunk/mono/; revision=1440
Phillip Pearson [Mon, 26 Nov 2001 05:52:53 +0000 (05:52 -0000)]
* TcpClient.cs: common_constructor() changed to Init() to match coding
style elsewhere in class libraries. Comments added.
* TcpListener.cs: Same
* Socket.cs: Filled out methods and properties and commented most of
them.
svn path=/trunk/mcs/; revision=1439
Ravi Pratap M [Sat, 24 Nov 2001 12:37:18 +0000 (12:37 -0000)]
2001-11-24 Ravi Pratap <ravi@ximian.com>
* expression.cs (ArrayCreation): Get rid of ArrayExprs : we save
some memory.
(EmitDynamicInitializers): Cope with the above since we extract data
directly from ArrayData now.
(ExpectInitializers): Keep track of whether initializers are mandatory
or not.
(Bounds): Make it a hashtable to prevent the same dimension being
recorded for every element in that dimension.
(EmitDynamicInitializers): Fix bug which prevented the Set array method
from being found.
Also fix bug which was causing the indices to be emitted in the reverse
order.
svn path=/trunk/mcs/; revision=1436
Ravi Pratap M [Sat, 24 Nov 2001 12:36:10 +0000 (12:36 -0000)]
2001-11-24 Ravi Pratap <ravi@ximian.com>
* test-45.cs : Update further.
svn path=/trunk/mcs/; revision=1435
Miguel de Icaza [Sat, 24 Nov 2001 04:03:47 +0000 (04:03 -0000)]
2001-11-24 Miguel de Icaza <miguel@ximian.com>
* expression.cs (ArrayCreation): Implement the bits that Ravi left
unfinished. They do not work, because the underlying code is
sloppy.
2001-11-22 Miguel de Icaza <miguel@ximian.com>
* cs-parser.jay: Remove bogus fixme.
* statement.cs (Switch, SwitchSection, SwithLabel): Started work
on Switch statement.
svn path=/trunk/mcs/; revision=1434
Daniel Weber [Sat, 24 Nov 2001 01:09:37 +0000 (01:09 -0000)]
Internal class to handle Xml 1.0 character/name validation
svn path=/trunk/mcs/; revision=1433
Miguel de Icaza [Fri, 23 Nov 2001 21:11:33 +0000 (21:11 -0000)]
Update
svn path=/trunk/mono/; revision=1432
Miguel de Icaza [Fri, 23 Nov 2001 21:07:52 +0000 (21:07 -0000)]
Add TcpClient and TcpListener from Phillip Pearson
svn path=/trunk/mcs/; revision=1431
Ravi Pratap M [Fri, 23 Nov 2001 17:15:00 +0000 (17:15 -0000)]
2001-11-23 Ravi Pratap <ravi@ximian.com>
* expression.cs (ArrayCreation::Emit): Handle string initialization separately.
(MakeByteBlob): Handle types more correctly.
* expression.cs (ArrayCreation:Emit): Write preliminary code to do
initialization from expressions but it is incomplete because I am a complete
Dodo :-|
svn path=/trunk/mcs/; revision=1430
Ravi Pratap M [Fri, 23 Nov 2001 17:05:00 +0000 (17:05 -0000)]
Update various tests
svn path=/trunk/mcs/; revision=1429
Ravi Pratap M [Fri, 23 Nov 2001 09:08:53 +0000 (09:08 -0000)]
2001-11-23 Ravi Pratap <ravi@ximian.com>
* typemanager.cs (IsDelegateType, IsEnumType): Fix logic to determine
the same.
* expression.cs (ArrayCreation::CheckIndices): Get rid of the require_constant
parameter. Apparently, any expression is allowed.
(ValidateInitializers): Update accordingly.
(CheckIndices): Fix some tricky bugs thanks to recursion.
* delegate.cs (NewDelegate::DoResolve): Re-write large portions as
I was being completely brain-dead.
(VerifyMethod, VerifyApplicability, VerifyDelegate): Make static
and re-write acordingly.
(DelegateInvocation): Re-write accordingly.
svn path=/trunk/mcs/; revision=1428
Miguel de Icaza [Thu, 22 Nov 2001 20:36:17 +0000 (20:36 -0000)]
2001-11-22 Miguel de Icaza <miguel@ximian.com>
* statement.cs (If.Emit): Fix a bug that generated incorrect code
on If. Basically, we have to return `true' (ie, we do return to
our caller) only if both branches of the if return.
* expression.cs (Binary.Emit): LogicalOr and LogicalAnd are
short-circuit operators, handle them as short circuit operators.
svn path=/trunk/mcs/; revision=1427
Miguel de Icaza [Thu, 22 Nov 2001 19:11:20 +0000 (19:11 -0000)]
Add more testage
svn path=/trunk/mcs/; revision=1426
Miguel de Icaza [Thu, 22 Nov 2001 18:55:00 +0000 (18:55 -0000)]
2001-11-22 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Cast.DoResolve): Resolve type.
(Cast.Cast): Take an expression as the target type.
* cs-parser.jay (cast_expression): Remove old hack that only
allowed a limited set of types to be handled. Now we take a
unary_expression and we resolve to a type during semantic
analysis.
Use the grammar productions from Rhys to handle casts (this is
not complete like Rhys syntax yet, we fail to handle that corner
case that C# has regarding (-x), but we will get there.
svn path=/trunk/mcs/; revision=1425
Ravi Pratap M [Thu, 22 Nov 2001 16:34:02 +0000 (16:34 -0000)]
2001-11-22 Ravi Pratap <ravi@ximian.com>
* ecore.cs : The error message was correct, it's the variable's names that
were misleading ;-) Make the code more readable.
(MemberAccess::DoResolve): Fix the code which handles Enum literals to set
the correct type etc.
(ConvertExplicit): Handle Enum types by examining the underlying type.
svn path=/trunk/mcs/; revision=1424
Dick Porter [Thu, 22 Nov 2001 13:31:13 +0000 (13:31 -0000)]
2001-11-22 Dick Porter <dick@ximian.com>
* handles.c (SignalObjectAndWait): Implement
* wait.c (WaitForSingleObject): Fix case where timeout == 0
* threads.c:
* semaphores.c:
* mutexes.c:
* io.c:
* events.c: Support for SignalObjectAndWait
svn path=/trunk/mono/; revision=1423
Ravi Pratap M [Thu, 22 Nov 2001 12:26:30 +0000 (12:26 -0000)]
2001-11-22 Ravi Pratap <ravi@ximian.com>
* cs-parser.jay (for_statement): Update for array initialization while
declaring variables.
svn path=/trunk/mcs/; revision=1422
Ravi Pratap M [Thu, 22 Nov 2001 12:18:59 +0000 (12:18 -0000)]
2001-11-22 Ravi Pratap <ravi@ximian.com>
* typemanager.cs (MakeKey): Implement.
(everywhere): Use the above appropriately.
svn path=/trunk/mcs/; revision=1421
Dietmar Maurer [Thu, 22 Nov 2001 09:25:32 +0000 (09:25 -0000)]
another test for exceptions
svn path=/trunk/mono/; revision=1420
Ravi Pratap M [Thu, 22 Nov 2001 07:05:45 +0000 (07:05 -0000)]
2001-11-22 Ravi Pratap <ravi@ximian.com>
* class.cs (EmitFieldInitializer): Take care of the case when we have a
field which is an array type.
* cs-parser.jay (declare_local_variables): Support array initialization too.
svn path=/trunk/mcs/; revision=1419
Ravi Pratap M [Thu, 22 Nov 2001 06:58:36 +0000 (06:58 -0000)]
2001-11-22 Ravi Pratap <ravi@ximian.com>
* test-45.cs : Augment some more to test shorthand declaration
of variables/fields that are array types.
svn path=/trunk/mcs/; revision=1418
Miguel de Icaza [Thu, 22 Nov 2001 03:13:04 +0000 (03:13 -0000)]
2001-11-22 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Binary.ResolveOperator): Update the values of `l'
and `r' after calling DoNumericPromotions.
* ecore.cs: Fix error message (the types were in the wrong order).
* statement.cs (Foreach.ProbeCollectionType): Need to pass
BindingFlags.Instance as well
svn path=/trunk/mcs/; revision=1417
Daniel Weber [Thu, 22 Nov 2001 03:00:06 +0000 (03:00 -0000)]
Add summary information to enumerations.
svn path=/trunk/mcs/; revision=1416
Daniel Weber [Thu, 22 Nov 2001 02:54:19 +0000 (02:54 -0000)]
Add descriptions to enumerations
svn path=/trunk/mcs/; revision=1415
Daniel Weber [Thu, 22 Nov 2001 02:42:31 +0000 (02:42 -0000)]
Implement basic functionality, still missing CloneNode, WriteTo, innerXml, outerXml
svn path=/trunk/mcs/; revision=1414
Miguel de Icaza [Thu, 22 Nov 2001 02:02:06 +0000 (02:02 -0000)]
2001-11-22 Miguel de Icaza <miguel@ximian.com>
* ecore.cs (Expression.TryImplicitIntConversion): Wrap the result
implicit int literal conversion in an empty cast so that we
propagate the right type upstream.
svn path=/trunk/mcs/; revision=1413
Miguel de Icaza [Thu, 22 Nov 2001 01:44:08 +0000 (01:44 -0000)]
2001-11-22 Miguel de Icaza <miguel@ximian.com>
* ecore.cs (UnboxCast): new class used to unbox value types.
(Expression.ConvertExplicit): Add explicit type conversions done
by unboxing.
(Expression.ImplicitNumericConversion): Oops, forgot to test for
the target type before applying the implicit LongLiterals to ULong
literal cast.
svn path=/trunk/mcs/; revision=1412
Daniel Weber [Thu, 22 Nov 2001 01:19:33 +0000 (01:19 -0000)]
Add copyright information
svn path=/trunk/mcs/; revision=1411
Daniel Weber [Thu, 22 Nov 2001 01:18:36 +0000 (01:18 -0000)]
Initial implementation of XmlException
svn path=/trunk/mcs/; revision=1410
Daniel Weber [Thu, 22 Nov 2001 00:46:55 +0000 (00:46 -0000)]
Implement NextSibling, PreviousSibling, RemoveAll, InsertBefore(), InsertAfter, prepend, append in XmlNode.cs
Override RemoveAll in XmlElement
svn path=/trunk/mcs/; revision=1409
Miguel de Icaza [Wed, 21 Nov 2001 21:17:53 +0000 (21:17 -0000)]
2001-11-21 Miguel de Icaza <miguel@ximian.com>
* cs-parser.jay (for_statement): Reworked the way For works: now
we declare manually any variables that are introduced in
for_initializer to solve the problem of having out-of-band code
emition (that is what got for broken).
(declaration_statement): Perform the actual variable declaration
that used to be done in local_variable_declaration here.
(local_variable_declaration): Do not declare anything, just pass
the information on a DictionaryEntry
svn path=/trunk/mcs/; revision=1408
Nick Drochak [Wed, 21 Nov 2001 18:49:08 +0000 (18:49 -0000)]
2001-11-22 Nick Drochak <ndrochak@gol.com>
* IPAddress.cs: Fix constructor bug, properly name Address property,
and use triple-slash for comments.
svn path=/trunk/mcs/; revision=1407
Miguel de Icaza [Wed, 21 Nov 2001 18:12:11 +0000 (18:12 -0000)]
2001-11-21 Miguel de Icaza <miguel@ximian.com>
* ApplicationException.cs: internationalize by adding calls to
Locale.GetText (). And throw NotImplementedExceptions on calls
that we have to implement.
* Version.cs: Ditto.
* ValueType.cs: ditto.
* UnauthorizedAccessException.cs: ditto.
* UInt32.cs: ditto.
* UInt64.cs: ditto.
* UInt16.cs: ditto.
* TypeLoadException.cs: ditto
* TypeInitializationException.cs: ditto.
* Type.cs: ditto.
* TimeSpan.cs: ditto.
* SystemException.cs: ditto.
* String.cs: ditto.
* StackOverflowException.cs: ditto.x
* Single.cs: ditto.
* SByte.cs: ditto.
* RuntimeTypeHandle.cs: ditto.
* RuntimeMethodHandle.cs: ditto.
* RuntimeFieldHandle.cs: ditto.
* Random.cs: ditto.
* OutOfMemoryException.cs: ditto.
* OperatingSystem.cs: ditto.
* ObjectDisposedException.cs: ditto.
* NullReferenceException.cs: ditto.
* NotImplementedException.cs: ditto.
* NotFiniteNumberException.cs: ditto.o
* MulticastNotSupportedException.cs: ditto.
* MissingMethodException.cs: ditto.
* MemberAccessException.cs: ditto.
* Math.cs: ditto.
* InvalidCastException.cs: ditto.
* IntegerFormatter.cs: ditto.
* Int32.cs: ditto.
* Int16.cs: ditto.
* IndexOutOfRangeException.cs: ditto.
* Environment.cs: ditto
* Enum.cs: ditto.
* DuplicateWaitObjectException.cs: ditto.
* DivideByZeroException.cs: ditto.
* Delegate.cs: ditto
* DecimalFormatter.cs: ditto.
* Decimal.cs: ditto.
* DateTime.cs: ditto.
* Convert.cs: ditto.
* Char.cs: ditto.
* Byte.cs: ditto.
* Boolean.cs: ditto.
* ArrayTypeMismatchException.cs: ditto.
* ArithmeticException.cs: ditto.
* ArgumentOutOfRangeException.cs: ditto.
* ArgumentNullException.cs: ditto.
* Enum.cs: Make it derive from ValueType, add CompareTo method.
* Attribute.cs: Reformat.
svn path=/trunk/mcs/; revision=1406
Dick Porter [Wed, 21 Nov 2001 12:50:12 +0000 (12:50 -0000)]
2001-11-21 Dick Porter <dick@ximian.com>
* events.c:
* handles.c:
* mutexes.c:
* semaphores.c:
* threads.c:
* wait.c: Reliable method of returning which handle was signalled
on return from WaitForMultipleObjects().
svn path=/trunk/mono/; revision=1405
Dick Porter [Wed, 21 Nov 2001 10:21:22 +0000 (10:21 -0000)]
2001-11-21 Dick Porter <dick@ximian.com>
* events.c: Implement events
svn path=/trunk/mono/; revision=1404
Ravi Pratap M [Wed, 21 Nov 2001 05:04:52 +0000 (05:04 -0000)]
Fix up to do double-dimension array access too !
svn path=/trunk/mcs/; revision=1403
Daniel Weber [Tue, 20 Nov 2001 23:26:03 +0000 (23:26 -0000)]
Fix build bug on XPathNavigator
svn path=/trunk/mcs/; revision=1402
Daniel Weber [Tue, 20 Nov 2001 22:46:32 +0000 (22:46 -0000)]
Move XPath classes to their own directory (System.Xml.XPath)
svn path=/trunk/mcs/; revision=1401
Daniel Weber [Tue, 20 Nov 2001 22:43:26 +0000 (22:43 -0000)]
Fix constructors
svn path=/trunk/mcs/; revision=1400
Daniel Weber [Tue, 20 Nov 2001 22:36:43 +0000 (22:36 -0000)]
Add constructor
svn path=/trunk/mcs/; revision=1399
Daniel Weber [Tue, 20 Nov 2001 22:36:03 +0000 (22:36 -0000)]
Implement events, add constructors
svn path=/trunk/mcs/; revision=1398
Daniel Weber [Tue, 20 Nov 2001 22:35:11 +0000 (22:35 -0000)]
Correct System.Xml.XPath error, implement InsertAfter
svn path=/trunk/mcs/; revision=1397
Daniel Weber [Tue, 20 Nov 2001 19:02:06 +0000 (19:02 -0000)]
*** empty log message ***
svn path=/trunk/mcs/; revision=1396
Ravi Pratap M [Tue, 20 Nov 2001 17:37:54 +0000 (17:37 -0000)]
2001-11-20 Ravi Pratap <ravi@ximian.com>
* expression.cs (ArrayCreation::CheckIndices): The story continues :-) Complete
re-write of the logic to now make it recursive.
(UpdateIndices): Re-write accordingly.
Store element data in a separate ArrayData list in the above methods.
(MakeByteBlob): Implement to dump the array data into a byte array.
2001-11-19 Ravi Pratap <ravi@ximian.com>
* expression.cs (ArrayCreation): Factor out some code from ValidateInitializers
into CheckIndices.
* constant.cs (Define): Implement.
(EmitConstant): Re-write fully.
Pass in location info.
* class.cs (Populate, Emit): Call Constant::Define and Constant::EmitConstant
respectively.
* cs-parser.jay (constant_declarator): Use VariableDeclaration instead of
DictionaryEntry since we need location info too.
(constant_declaration): Update accordingly.
* expression.cs (ArrayCreation): Make ValidateInitializers simpler by factoring
code into another method : UpdateIndices.
svn path=/trunk/mcs/; revision=1395