Rafael Teixeira [Sat, 15 Jun 2002 22:56:17 +0000 (22:56 -0000)]
2002-06-15 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* oops merged expression.cs from mcs/mcs is breaking my make
* driver.cs, assemblyinfo.cs wasn�t ready for prime time (offending lines were commented out)
svn path=/trunk/mcs/; revision=5285
Rafael Teixeira [Sat, 15 Jun 2002 22:48:08 +0000 (22:48 -0000)]
2002-06-15 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged expression.cs from mcs/mcs
svn path=/trunk/mcs/; revision=5284
Gonzalo Paniagua Javier [Sat, 15 Jun 2002 14:04:59 +0000 (14:04 -0000)]
2002-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System/System.build: referenced System.Drawing.dll.
* System/System.ComponentModel/TypeConverter.cs:
* System/System.ComponentModel/ITypeDescriptorContext.cs:
* System/System.ComponentModel/TypeDescriptor.cs:
* System.Drawing/System.Drawing/ColorConverter.cs: implemented minimal
set of features needed by xsp, which uses ColorConverter.
svn path=/trunk/mcs/; revision=5283
Rachel Hestilow [Sat, 15 Jun 2002 13:37:31 +0000 (13:37 -0000)]
2002-06-14 Rachel Hestilow <hestilow@ximian.com>
* expression.cs (Unary.ResolveOperator): Use TypeManager
to resolve the type.
svn path=/trunk/mcs/; revision=5282
Ajay kumar Dwivedi [Fri, 14 Jun 2002 10:42:02 +0000 (10:42 -0000)]
2002-06-14 Dwivedi, Ajay kumar <adwiv@yahoo.com>
* General: Fixed a few more Bugs
svn path=/trunk/mcs/; revision=5280
Paolo Molaro [Fri, 14 Jun 2002 10:39:25 +0000 (10:39 -0000)]
Fri Jun 14 16:24:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.h, reflection.c: handle field and param marshal
information.
svn path=/trunk/mono/; revision=5279
Paolo Molaro [Fri, 14 Jun 2002 10:39:20 +0000 (10:39 -0000)]
Fri Jun 14 16:21:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
* CustomAttributeBuilder.cs: added custom attribute related internal
helper methods.
* FieldBuilder.cs, ParameterBuilder.cs: handle MarshalAs attribute.
* UnmanagedMarshal.cs: implemented.
svn path=/trunk/mcs/; revision=5278
Paolo Molaro [Fri, 14 Jun 2002 10:34:33 +0000 (10:34 -0000)]
Fri Jun 14 16:18:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
* UnmanagedType.cs, Marshal.cs: minor fixes.
svn path=/trunk/mcs/; revision=5277
Rafael Teixeira [Fri, 14 Jun 2002 10:12:11 +0000 (10:12 -0000)]
Housekeeping
svn path=/trunk/mcs/; revision=5276
Duncan Mak [Fri, 14 Jun 2002 02:37:52 +0000 (02:37 -0000)]
2002-06-14 Duncan Mak <duncan@ximian.com>
* XmlConvert.cs: Added CLSCompliant attributes to methods.
svn path=/trunk/mcs/; revision=5275
Nick Drochak [Thu, 13 Jun 2002 22:05:33 +0000 (22:05 -0000)]
2002/06/14 Nick Drochak <ndrochak@gol.com>
* AllTests.cs: Disable ResourceReaderTest for now. The class is not
ready yet.
svn path=/trunk/mcs/; revision=5274
Nick Drochak [Thu, 13 Jun 2002 21:32:10 +0000 (21:32 -0000)]
2002/06/14 Nick Drochak <ndrochak@gol.com>
* Int64Test.cs: Make currency symbol test more culturally sensitive.
svn path=/trunk/mcs/; revision=5273
Miguel de Icaza [Thu, 13 Jun 2002 15:23:21 +0000 (15:23 -0000)]
Typo fix
svn path=/trunk/mono/; revision=5272
Ravi Pratap M [Thu, 13 Jun 2002 13:09:18 +0000 (13:09 -0000)]
2002-06-13 Ravi Pratap <ravi@ximian.com>
* cs-parser.jay (enum_member_declaration): Pass in the attributes
attached.
* enum.cs (AddEnumMember): Add support to store the attributes associated
with each member too.
* attribute.cs (CheckAttribute, ApplyAttributes): Update to handle
field builders too - this takes care of the enum member case.
svn path=/trunk/mcs/; revision=5271
Ravi Pratap M [Thu, 13 Jun 2002 13:07:53 +0000 (13:07 -0000)]
2002-06-13 Ravi Pratap <ravi@ximian.com>
* test-131.cs : Add to test enum member attribute application.
svn path=/trunk/mcs/; revision=5270
Nick Drochak [Thu, 13 Jun 2002 11:22:17 +0000 (11:22 -0000)]
2002-06-14 Nick Drochak <ndrochak@gol.com>
* DateTimeTest.cs: Make some of the tests a bit more timezone neutral.
svn path=/trunk/mcs/; revision=5269
Nick Drochak [Thu, 13 Jun 2002 09:57:48 +0000 (09:57 -0000)]
2002-06-13 Nick Drochak <ndrochak@gol.com>
* DateTime.cs: (Parse): Accept dates that have no hour,min,sec. in the
sortable format(s), e.g. "2002-02-25"
svn path=/trunk/mcs/; revision=5268
Piers Haken [Thu, 13 Jun 2002 01:04:08 +0000 (01:04 -0000)]
fix index.rss dependancy
svn path=/trunk/mono/; revision=5267
Miguel de Icaza [Thu, 13 Jun 2002 00:16:03 +0000 (00:16 -0000)]
Ooops. No wonder people complained I never fixed this, I never flushed
this patch in the first place ;-)
* typemanager.cs (MethodFlags): returns the method flags
(Obsolete/ShouldIgnore) that control warning emission and whether
the invocation should be made, or ignored.
* expression.cs (Invocation.Emit): Remove previous hack, we should
not do this on matching a base type, we should do this based on an attribute
Only emit calls to System.Diagnostics.Debug and
System.Diagnostics.Trace if the TRACE and DEBUG defines are passed
on the command line.
svn path=/trunk/mcs/; revision=5266
Miguel de Icaza [Wed, 12 Jun 2002 23:44:34 +0000 (23:44 -0000)]
Add new test
svn path=/trunk/mcs/; revision=5265
Gonzalo Paniagua Javier [Wed, 12 Jun 2002 20:59:37 +0000 (20:59 -0000)]
2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* RadioButton.cs: mono-stylized and some little fixes.
* TextBox.cs: mono-stylized.
(MaxLength): fixed typo.
(AddAttributesToRender): don't render the text between the tags for
SingleLine, use value attribute for it. Don't render the text for
Password.
(OnPreRender): don't throw exception and call base.OnPreRender.
(Render): for MultiLine, render the text between the opening and
closing tags encoded as HTML.
svn path=/trunk/mcs/; revision=5263
Rafael Teixeira [Wed, 12 Jun 2002 20:31:50 +0000 (20:31 -0000)]
2002-06-12 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* corrected Module.TypeAttr property getter in module.cs
svn path=/trunk/mcs/; revision=5262
Miguel de Icaza [Wed, 12 Jun 2002 20:21:16 +0000 (20:21 -0000)]
Doc updates
svn path=/trunk/mono/; revision=5261
Gonzalo Paniagua Javier [Wed, 12 Jun 2002 16:34:14 +0000 (16:34 -0000)]
2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ImageButton.cs:
(AddAttributesToRender): fixer another stack overflow.
* WebControl.cs:
(TagName): modified to use TagKey instead of tagKey as the property
can be overriden.
svn path=/trunk/mcs/; revision=5258
Gonzalo Paniagua Javier [Wed, 12 Jun 2002 15:45:07 +0000 (15:45 -0000)]
2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web.UI/Page.cs:
(Validators): if the collection is null, create one.
(GetPostBackEventReference 2): don't throw exception.
(GetPostBackClientEvent): return a string with containing the method
name, the control name and the argument.
* System.Web.UI.WebControls/LinkButton.cs: mono-stylized.
(AddParsedSubObject):
(RenderControls): little fixes.
* System.Web.UI.WebControls/WebControl.cs:
(AddAttributesToRender): fixed usage of IEnumerator.
svn path=/trunk/mcs/; revision=5256
Dick Porter [Wed, 12 Jun 2002 15:25:18 +0000 (15:25 -0000)]
2002-06-12 Dick Porter <dick@ximian.com>
* daemon.c:
* daemon-messages.c: Handle SIGPIPE in a non-stupid way in the
daemon, if MSG_NOSIGNAL isn't available. Thanks to Jaroslaw
Kowalski <jarek@atm.com.pl> for pointing out the bogosity.
svn path=/trunk/mono/; revision=5255
Rafael Teixeira [Wed, 12 Jun 2002 13:41:45 +0000 (13:41 -0000)]
2002-06-12 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged typemanager.cs from mcs/mcs
svn path=/trunk/mcs/; revision=5254
Gonzalo Paniagua Javier [Wed, 12 Jun 2002 13:02:52 +0000 (13:02 -0000)]
2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web.UI/Page.cs: SetPage is now called SetDefaults and also
sets a default ID for controls that don't have one yet.
* System.Web.UI.WebControls/Literal.cs: beautified.
svn path=/trunk/mcs/; revision=5252
Dick Porter [Wed, 12 Jun 2002 12:29:57 +0000 (12:29 -0000)]
2002-06-10 Jaroslaw Kowalski <jarek@atm.com.pl>
* configure.in: added checks for MSG_NOSIGNAL
2002-06-10 Jaroslaw Kowalski <jarek@atm.com.pl>
* sockets.c, daemon-messages.c: Prevent SIGPIPE from being raised
when writing to a closed socket.
svn path=/trunk/mono/; revision=5251
Gonzalo Paniagua Javier [Wed, 12 Jun 2002 12:10:40 +0000 (12:10 -0000)]
2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Label.cs: beautified and fixed a couple of 'classic' bugs.
* WebControl.cs: use Span as default tag when no other provided in
constructor. That is what MS renders.
svn path=/trunk/mcs/; revision=5249
Nick Drochak [Wed, 12 Jun 2002 11:05:59 +0000 (11:05 -0000)]
2002-06-12 Nick Drochak <ndrochak@gol.com>
* ConvertTest.cs: Punt bug in DateTime.Parse() over to that test.
* DateTimeTest.cs: Add test for date format of yyyy-mm-dd which mono
doesn't handle automagically like ms.net does. This smells like a
LAMESPEC, however.
svn path=/trunk/mcs/; revision=5248
Nick Drochak [Wed, 12 Jun 2002 11:02:53 +0000 (11:02 -0000)]
2002-06-12 Nick Drochak <ndrochak@gol.com>
* DateTimeFormatInfo.cs: Reformat.
svn path=/trunk/mcs/; revision=5247
Paolo Molaro [Wed, 12 Jun 2002 10:49:21 +0000 (10:49 -0000)]
Missing file from previous commit.
svn path=/trunk/mcs/; revision=5246
Paolo Molaro [Wed, 12 Jun 2002 10:48:30 +0000 (10:48 -0000)]
Wed Jun 12 16:32:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
* Marshal.c: stubbed out all the methods and filled in some
implementation.
* BINDPTR.cs, ComMemberType.cs, DESCKIND.cs, DISPPARAMS.cs,
EXCEPINFO.cs, INVOKEKIND.cs, TYPEKIND.cs, UCOMTypeInfo.cs,
UCOMTypeLib.cs: enums, interfaces and structs needed in Marshal class.
svn path=/trunk/mcs/; revision=5245
Paolo Molaro [Wed, 12 Jun 2002 10:48:27 +0000 (10:48 -0000)]
Wed Jun 12 16:30:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c, marshal.c marshal.h: more Marshal class implementation.
svn path=/trunk/mono/; revision=5244
Johannes Roith [Wed, 12 Jun 2002 10:48:14 +0000 (10:48 -0000)]
change version number from 0.11 to 0.12
svn path=/trunk/mono/; revision=5243
Duncan Mak [Wed, 12 Jun 2002 01:37:47 +0000 (01:37 -0000)]
2002-06-12 Duncan Mak <duncan@ximian.com>
* XmlCharacterData.cs (Value): Throw an ArgumentException in the
set block if the node is read-only.
svn path=/trunk/mcs/; revision=5242
Duncan Mak [Wed, 12 Jun 2002 01:26:40 +0000 (01:26 -0000)]
2002-06-12 Duncan Mak <duncan@ximian.com>
* XmlCharacterData.cs (Value): Throw an ArgumentException if the
node is read-only.
svn path=/trunk/mcs/; revision=5241
Gonzalo Paniagua Javier [Wed, 12 Jun 2002 00:17:16 +0000 (00:17 -0000)]
2002-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web.UI/Page.cs:
(GetPostBackClient):
(RegisterRequiresPostBack): don't throw NotImplementedException to
keep going.
(ProcessRequest): set the current page as the Page property for *all*
the controls, not just the direct children of the page.
* System.Web.UI.WebControls/Button.cs:
(AddAttributesToRender): fixed (classic) stack overflow.
* System.Web.UI.WebControls/CheckBox.cs: mono-stylized.
(AutoPostBack): fixed stack overflow.
(Render): fixed alignment issues. Also set the For attribute always
for the label.
svn path=/trunk/mcs/; revision=5239
Nick Drochak [Tue, 11 Jun 2002 22:21:49 +0000 (22:21 -0000)]
2002/06/12 Nick Drochak <ndrochak@gol.com>
* Random.cs (Next): Fix math error. Return a number within the range.
svn path=/trunk/mcs/; revision=5238
Nick Drochak [Tue, 11 Jun 2002 22:19:51 +0000 (22:19 -0000)]
2002/06/12 Nick Drochak <ndrochak@gol.com>
* RandomTest.cs: Exercise Next(min,max) a little more, especially
boundary conditions.
svn path=/trunk/mcs/; revision=5237
Dennis Hayes [Tue, 11 Jun 2002 21:58:54 +0000 (21:58 -0000)]
2002-6-5 DennisHayes <dennish@raytek.com>
* Checked in for Jackson Harper (jackson@latitudegeo.com)
* ToolBar.cs
* ToolBarButton.cs
* ToolTip.cs
* TrackBar.cs
* TreeNode.cs
* TreeNodeCollection.cs
* TreeNodeConverter.cs
* TreeView.cs
* TreeViewCancelEventArgs.cs
* TreeViewEventArgs.cs
* TreeViewImageIndexConverter.cs
* Just stubbs
* New files added, work in progress cleanup and mono style needed.
svn path=/trunk/mcs/; revision=5236
Dennis Hayes [Tue, 11 Jun 2002 21:57:12 +0000 (21:57 -0000)]
2002-6-5 DennisHayes <dennish@raytek.com>
* checked in for Stefan Warnke (StefanW@POBox.com)
* UICuesEventArgs.cs
* UpDownBase.cs
* Just stubbs
* New files, work in progress, needs cleanup and mono style
svn path=/trunk/mcs/; revision=5235
Gonzalo Paniagua Javier [Tue, 11 Jun 2002 21:50:37 +0000 (21:50 -0000)]
Updated to reflect current status, roadmap and how to help
svn path=/trunk/mono/; revision=5234
Gonzalo Paniagua Javier [Tue, 11 Jun 2002 20:51:32 +0000 (20:51 -0000)]
2002-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Directory.cs: fixed bug #26133 and also test if the directory exist
before performing the search.
svn path=/trunk/mcs/; revision=5233
Gonzalo Paniagua Javier [Tue, 11 Jun 2002 19:37:03 +0000 (19:37 -0000)]
2002-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web.Caching/CacheDependency.cs: fixed a couple of typos and
don't throw NotImplementedException in constructors.
* System.Web.UI/Control.cs:
(MapPathSecure): until security is implemented, return the same path
received as argument.
(RenderControl): call OnPreRender before rendering the control. So
AdRotator can read its configuration file.Is there any other place
where this should be done?
* System.Web.UI/HtmlTextWriter.cs:
(AddAttribute): fixed. Now it really stores attributes.
(RenderBeginTag): fixed a couple of bugs (little ones but hard to find).
* System.Web.UI.WebControls/AdRotator.cs: GetData does not work as it
should, but now it returns useful data (only the first ad in the file).
Set the NavigateUrl property in the hyperlink if available.
* System.Web.UI.WebControls/HyperLink.cs: fixed constructor and a
couple of stack overflows.
* System.Web.UI.WebControls/Image.cs: added an attribute and fixed
stack overflow.
* System.Web.UI.WebControls/WebControl.cs:
(RenderBeginTag): fixed.
(TagName): don't call Enum.IsDefined twice.
svn path=/trunk/mcs/; revision=5230
Rachel Hestilow [Tue, 11 Jun 2002 15:54:23 +0000 (15:54 -0000)]
2002-06-10 Rachel Hestilow <hestilow@ximian.com>
* typemanager.cs (TypeManager.VerifyUnManaged): Allow
address-of operator on both value types and pointers.
svn path=/trunk/mcs/; revision=5229
Paolo Molaro [Tue, 11 Jun 2002 11:44:17 +0000 (11:44 -0000)]
Tue Jun 11 17:29:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: fix call convention.
svn path=/trunk/mono/; revision=5228
Nick Drochak [Tue, 11 Jun 2002 11:25:44 +0000 (11:25 -0000)]
2002-06-12 Nick Drochak <ndrochak@gol.com>
* StringReaderTest.cs: Regression test for a bug that we had were
ReadLine() was not returning null when the string ended with newline.
svn path=/trunk/mcs/; revision=5227
Nick Drochak [Tue, 11 Jun 2002 11:23:36 +0000 (11:23 -0000)]
2002-06-11 Nick Drochak <ndrochak@gol.com>
* StringTest.cs: Check for "end of string" conditions for IndexOf() and
Substring().
svn path=/trunk/mcs/; revision=5226
Nick Drochak [Tue, 11 Jun 2002 11:20:03 +0000 (11:20 -0000)]
2002-06-12 Nick Drochak <ndrochak@gol.com>
* StringReader.cs (ReadLine): Return null when we get to end of the
string.
svn path=/trunk/mcs/; revision=5225
Nick Drochak [Tue, 11 Jun 2002 11:18:21 +0000 (11:18 -0000)]
2002-06-12 Nick Drochak <ndrochak@gol.com>
* String.cs (IndexOf): Return -1 if start index is equal to string
length.
svn path=/trunk/mcs/; revision=5224
Paolo Molaro [Tue, 11 Jun 2002 11:07:34 +0000 (11:07 -0000)]
Tue Jun 11 16:52:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.h, reflection.c: mono_image_get_memberref_token()
takes a type instead of a class, now. Added
mono_image_get_array_token() to create tokens for the special
multi-dim array methods.
svn path=/trunk/mono/; revision=5223
Nick Drochak [Tue, 11 Jun 2002 10:17:43 +0000 (10:17 -0000)]
2002-06-11 Nick Drochak <ndrochak@gol.com>
* DoubleTest.cs: Add some more detail to failure message.
* Int64Test.cs: Add some details, and fix a copy-paste error.
* UInt32Test.cs: Fix currency symbol/culture issues
* UInt64Test.cs: Fix currency symbol/culture issues
svn path=/trunk/mcs/; revision=5222
Paolo Molaro [Tue, 11 Jun 2002 08:25:42 +0000 (08:25 -0000)]
Tue Jun 11 14:11:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
* get.c: handle modulerefs.
* main.c: fix --mscorlib argument handling.
svn path=/trunk/mono/; revision=5221
Paolo Molaro [Tue, 11 Jun 2002 08:24:16 +0000 (08:24 -0000)]
Tue Jun 11 13:21:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
* assembly.c: handle modules (no assembly table). Split
loading references in its own function.
* class.c: handle moduleref resolution scope.
* image.c, image.h: cache module name in image.
svn path=/trunk/mono/; revision=5220
Duncan Mak [Tue, 11 Jun 2002 00:38:28 +0000 (00:38 -0000)]
2002-06-10 Duncan Mak <duncan@ximian.com>
* HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
svn path=/trunk/mcs/; revision=5219
Nick Drochak [Mon, 10 Jun 2002 22:10:32 +0000 (22:10 -0000)]
2002/06/11 Nick Drochak <ndrochak@gol.com>
* DateTimeTest.cs: Remove RunTest override and put culture manipulation
in SetUp and TearDown like the other tests.
* TimeZoneTest.cs: Same.
svn path=/trunk/mcs/; revision=5218
Duncan Mak [Mon, 10 Jun 2002 21:45:23 +0000 (21:45 -0000)]
2002-06-10 Duncan Mak <duncan@ximian.com>
* IMembershipCondition.cs (Equals): Add missing methods.
svn path=/trunk/mcs/; revision=5217
Duncan Mak [Mon, 10 Jun 2002 21:30:43 +0000 (21:30 -0000)]
2002-06-10 Duncan Mak <duncan@ximian.com>
* IEvidenceFactory.cs (Evidence): Added missing method.
svn path=/trunk/mcs/; revision=5216
Duncan Mak [Mon, 10 Jun 2002 21:24:40 +0000 (21:24 -0000)]
2002-06-10 Duncan Mak <duncan@ximian.com>
* IEvidenceFactory.cs (Evidence): Added missing method.
* SuppressUnmanagedCodeSecurityAttribute.cs:
* UnverifiableCodeAttribute.cs: Added missing
AttributeUsage attribute.
svn path=/trunk/mcs/; revision=5215
Dennis Hayes [Mon, 10 Jun 2002 21:24:07 +0000 (21:24 -0000)]
2002-6-5 DennisHayes <dennish@raytek.com>
* removed, code moved to main class files, Form.cs, ImageList.cs, LinkLabel.cs,
* ListBox.cs, ListView.cs, ListViewItem.cs, Menu.cs, MonthCalendar.cs, ScrollableControl.cs
* Form.ControlCollectison.cs
* ImageList.ImageCollection.c
* LinkLabel.LinkCollection.cs
* ListBox.ObjectCollection.cs
* ListBox.SelectedIndexCollection.cs
* ListBox.SelectedObjectCollection.cs
* ListView.CheckedListViewItemCollection.cs
* ListView.CheckedIndexCollection.cs
* ListView.ColumnHeaderCollection.cs
* ListView.ListViewItemCollection.cs
* ListView.SelectedIndexCollection.cs
* ListView.SelectedListViewItemCollection.cs
* ListViewItem.ListViewSubItem.cs
* ListViewItem.ListViewSubItemCollection.cs
* Menu.MenuItemCollection.cs
* MonthCalendar.HitTestInfo.cs
* ScrollableControl.DockPaddingEdges.cs
svn path=/trunk/mcs/; revision=5214
Duncan Mak [Mon, 10 Jun 2002 19:30:48 +0000 (19:30 -0000)]
2002-06-10 Duncan Mak <duncan@ximian.com>
* Formatter.cs: Addd to CVS.
* FormatterConverter.cs: Added to CVS.
* SerializationInfo.cs (AddValue): Removed extra CLSCompliant attribute.
svn path=/trunk/mcs/; revision=5213
Rodrigo Moya [Mon, 10 Jun 2002 19:21:12 +0000 (19:21 -0000)]
Some fixes, thanks to duncan
svn path=/trunk/mcs/; revision=5212
Duncan Mak [Mon, 10 Jun 2002 15:53:12 +0000 (15:53 -0000)]
2002-06-10 Duncan Mak <duncan@ximian.com>
* Convert.cs (ToType): Added null field in conversionTable to avoid
IndexOutOfRangeException. Changed what exceptions we throw to match
the spec.
svn path=/trunk/mcs/; revision=5211
Rafael Teixeira [Mon, 10 Jun 2002 14:40:43 +0000 (14:40 -0000)]
2002-06-10 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged expression.cs and interface.cs from mcs/mcs
svn path=/trunk/mcs/; revision=5210
Duncan Mak [Mon, 10 Jun 2002 13:20:06 +0000 (13:20 -0000)]
2002-06-10 Duncan Mak <duncan@ximian.com>
* Convert.cs (ToDouble): Remove rounding in ToDouble (float).
svn path=/trunk/mcs/; revision=5209
Paolo Molaro [Mon, 10 Jun 2002 13:12:50 +0000 (13:12 -0000)]
Mon Jun 10 18:58:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
* PropertyBuilder.cs: implemented ReflectedType and DeclaringType
properties.
svn path=/trunk/mcs/; revision=5208
Nick Drochak [Mon, 10 Jun 2002 12:32:35 +0000 (12:32 -0000)]
2002-06-11 Nick Drochak <ndrochak@gol.com>
* Int64.cs (Parse): Added unique strings to the messages where we throw
a FormatException. Needed these to debug, so just left them in since
they might be useful later. Fixed Currency parsing where we weren't
looking at CurrencyDecimalSeparator, etc.
svn path=/trunk/mcs/; revision=5204
Nick Drochak [Mon, 10 Jun 2002 11:35:18 +0000 (11:35 -0000)]
2002-06-11 Nick Drochak <ndrochak@gol.com>
* SecurityElementTest.cs: Catch and report unexpected exceptions.
svn path=/trunk/mcs/; revision=5203
Nick Drochak [Mon, 10 Jun 2002 11:34:07 +0000 (11:34 -0000)]
2002-06-11 Nick Drochak <ndrochak@gol.com>
* Int64Test.cs: Set the culture to en-US for testing.
* MathTest.cs: mono is more precise in Log2, so change test to compare
values within a slightly larger margin of error.
svn path=/trunk/mcs/; revision=5202
Nick Drochak [Mon, 10 Jun 2002 11:28:58 +0000 (11:28 -0000)]
2002-06-11 Nick Drochak <ndrochak@gol.com>
* NumberFormatInfo.cs: Make NumberNegativePattern = 1 for the ctor
svn path=/trunk/mcs/; revision=5201
Ajay kumar Dwivedi [Mon, 10 Jun 2002 08:36:16 +0000 (08:36 -0000)]
2002-06-10 Dwivedi, Ajay kumar <adwiv@yahoo.com>
* XmlSchemaReader: A Wrapper class around XmlReader with customized
methods to suit reading a schema.
* General: Implemented Read() method for the schema. There are only
a few minor bugs remaining.
svn path=/trunk/mcs/; revision=5200
Martin Baulig [Mon, 10 Jun 2002 08:34:32 +0000 (08:34 -0000)]
2002-06-10 Martin Baulig <martin@gnome.org>
* interface.cs (Interface.PopulateIndexer): Add the indexer's
PropertyBuilder to the `property_builders' list.
* expression.cs (Indexers.GetIndexersForTypeOrInterface): New private method.
(Indexers.GetIndexersForType): Call GetIndexersForTypeOrInterface() on the
`lookup_type' and all its interfaces. Unfortunately, Type.FindMembers() won't
find any indexers which are inherited from an interface.
svn path=/trunk/mcs/; revision=5199
Ajay kumar Dwivedi [Mon, 10 Jun 2002 02:20:46 +0000 (02:20 -0000)]
2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
* XmlConstruct.cs : New Internal class with Helper methods for
Checking XmlConstructs
* XmlConvert.cs: Implemented most of the methods
svn path=/trunk/mcs/; revision=5198
Nick Drochak [Mon, 10 Jun 2002 01:39:21 +0000 (01:39 -0000)]
2002/06/10 Nick Drochak <ndrochak@gol.com>
* DecimalTest.cs: More culture indepenence. Fixes the problems we were
having with tests failing against MS.NET.
* Int64Test.cs: Same plus some formatting fixes.
* RandomTest.cs: Split Assert into two to figure out which one part is
failing.
svn path=/trunk/mcs/; revision=5197
Rafael Teixeira [Sun, 9 Jun 2002 19:46:29 +0000 (19:46 -0000)]
2002-06-07 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged const.cs, enum.cs, expression.cs and typemanager.cs from mcs/mcs
* comments on module.cs
svn path=/trunk/mcs/; revision=5195
Gonzalo Paniagua Javier [Sun, 9 Jun 2002 19:28:27 +0000 (19:28 -0000)]
2002-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web.UI/ControlCollection.cs:
(AddAt): if index is -1 behave as a plain Add.
* System.Web.UI.HtmlControls/HtmlSelect.cs:
(RenderAttributes): new -> override and fixes stack overflow.
(RenderChildren): only 1 option can be selected at any given time
except when Multiple property is true.
(Multiple): the attribute value is either "true" or "false", not
"multiple".
* System.Web.UI.HtmlControls/HtmlTable.cs:
(Add):
(AddAt): allow HtmlTableRow as children, not HtmlTableCell.
* System.Web.UI.HtmlControls/HtmlTableCell.cs:
(RenderEndTag): new -> override.
* System.Web.UI.HtmlControls/HtmlTableRow.cs:
(RenderChildren): fixed another stack overflow.
(RenderEndTag): new -> override.
* System.Web.UI.HtmlControls/HtmlTextArea.cs:
(RenderAttributes): new -> override.
svn path=/trunk/mcs/; revision=5193
Jonathan Pryor [Sun, 9 Jun 2002 18:11:16 +0000 (18:11 -0000)]
* class.xml: Added entries for the following classes from System.Diagnostics:
- EntryWrittenEventArgs
- EntryWrittenEventHandler
- EventLog
- EventLogEntryCollection
- EventLogEntry
- EventLogEntryType
- EventLogInstaller
- EventLogPermissionAccess
- EventLogPermissionAttribute
- EventLogPermission
- EventLogPermissionEntryCollection
- EventLogPermissionEntry
- EventLogTraceListener
svn path=/trunk/mono/; revision=5192
Jonathan Pryor [Sun, 9 Jun 2002 18:06:07 +0000 (18:06 -0000)]
* EntryWrittenEventArgs.cs: Implemented
* EntryWrittenEventHandler.cs: Implemented
* EventLog.cs: Stubbed out
* EventLogEntry.cs: Stubbed out
* EventLogEntryCOllection.cs: Implemented.
* EventLogEntryType.cs: Implemented
* EventLogInstaller.cs: Stubbed out
* EventLogPermission.cs: Stubbed out
* EventLogPermissionAccess.cs: Implemented
* EventLogPermissionAttribute.cs: Stubbed out
* EventLogPermissionEntry.cs: Stubbed out
* EventLogPermissionEntryCollection.cs: Stubbed out
* EventLogTraceListener.cs: Stubbed out
svn path=/trunk/mcs/; revision=5191
Martin Baulig [Sun, 9 Jun 2002 15:55:51 +0000 (15:55 -0000)]
2002-06-09 Martin Baulig <martin@gnome.org>
* debug.c (mono_debug_open_image): For MONO_DEBUG_FORMAT_DWARF2_PLUS,
the `%s-debug.s' file is in the same directory than its assembly.
svn path=/trunk/mono/; revision=5190
Martin Baulig [Sun, 9 Jun 2002 15:17:57 +0000 (15:17 -0000)]
2002-06-09 Martin Baulig <martin@gnome.org>
* const.cs (Const.LookupConstantValue): Convert `Expr' to a literal of
the same type as the constant if necessary. There's also a test-130.cs
for this.
* enum.cs (Enum.ChangeEnumType): Moved to typemanager.cs and made public.
* typemanager.cs (TypeManager.ChangeType): Previously known as
Enum.ChangeEnumType().
svn path=/trunk/mcs/; revision=5189
Martin Baulig [Sun, 9 Jun 2002 15:14:34 +0000 (15:14 -0000)]
2002-06-09 Martin Baulig <martin@gnome.org>
* test-130.cs: New test for constants and casts.
svn path=/trunk/mcs/; revision=5188
Martin Baulig [Sun, 9 Jun 2002 12:32:06 +0000 (12:32 -0000)]
2002-06-09 Martin Baulig <martin@gnome.org>
* expression.cs (Cast.TryReduce): Added support for consts.
svn path=/trunk/mcs/; revision=5185
Martin Baulig [Sun, 9 Jun 2002 10:31:54 +0000 (10:31 -0000)]
2002-06-09 Martin Baulig <martin@gnome.org>
* test-129.cs: New test for unary minus.
svn path=/trunk/mcs/; revision=5184
Lawrence Pit [Sun, 9 Jun 2002 08:03:04 +0000 (08:03 -0000)]
* DateTime.cs: fixes to pass tests M0 to M6:
if yy pattern then year values >= 30 are in 20th century
rfc1123 pattern is always in GMT, therefor useutc must be false
made GetNow() internal static so it can be called from TimeZone.
svn path=/trunk/mcs/; revision=5183
Lawrence Pit [Sun, 9 Jun 2002 05:54:24 +0000 (05:54 -0000)]
* TimeZone.cs: removed dependency on year 2002 from initialization of
current timezone.
* DateTimeTest.cs: Making tests culture independent
svn path=/trunk/mcs/; revision=5182
Duncan Mak [Sun, 9 Jun 2002 03:50:49 +0000 (03:50 -0000)]
2002-06-09 Duncan Mak <duncan@ximian.com>
* Convert.cs (ToType): Rearranged what Exceptions we throw to
match MS behavior.
svn path=/trunk/mcs/; revision=5181
Duncan Mak [Sat, 8 Jun 2002 21:52:08 +0000 (21:52 -0000)]
2002-06-08 Duncan Mak <duncan@ximian.com>
* XmlDocument.cs (Load):
Added bits to Load (string) for BaseURI support.
* XmlAttribute.cs (BaseURI):
* XmlDocument.cs (BaseURI):
* XmlEntity.cs (BaseURI):
* XmlNode.cs (BaseURI): Implemented.
svn path=/trunk/mcs/; revision=5180
Duncan Mak [Sat, 8 Jun 2002 20:58:48 +0000 (20:58 -0000)]
2002-06-08 Duncan Mak <duncan@ximian.com>
* Decimal.cs: Added support for the IConvertible interface.
svn path=/trunk/mcs/; revision=5179
Rafael Teixeira [Sat, 8 Jun 2002 18:57:58 +0000 (18:57 -0000)]
2002-06-07 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged class.cs, attribute.cs from mcs/mcs
svn path=/trunk/mcs/; revision=5178
Jeffrey Stedfast [Sat, 8 Jun 2002 17:57:49 +0000 (17:57 -0000)]
2002-06-08 Jeffrey Stedfast <fejj@ximian.com>
* mono-mutex.c (mono_once): New convenience function for my
previous fix.
* handles.c:
* error.c:
* critical-sections.c:
* threads.c:
* sockets.c:
* semaphores.c:
* processes.c:
* mutexes.c:
* io.c:
* events.c:
* atomic.c: Use mono_once() rather than pthread_once().
2002-06-06 Jeffrey Stedfast <fejj@ximian.com>
* handles.c (_wapi_handle_new): pthread_once() is not atomic, so
if multiple threads all try to call _wapi_handle_new() before the
shared data has been initialized, it is possible that we could get
into a condition where shared_init() is being executed and later
threads will pass by pthread_once() due to the fact that it has
already been called and so therefor will attempt to use the shared
data before it has been completely initialized. If we instead use
a standard mutex locking mechanism around shared_init(), we can
avoid the situation entirely. By wrapping the mutex locking in a
check to see if we've already initialized the data, we can even
avoid wasting resources by having to lock/unlock the mutex in any
later calls (the only time we'd have to worry about
locking/unlocking is the initial race to call shared_init() at
startup).
svn path=/trunk/mono/; revision=5177
Ravi Pratap M [Sat, 8 Jun 2002 17:29:47 +0000 (17:29 -0000)]
2002-06-08 Ravi Pratap <ravi@ximian.com>
* class.cs (Accessor): Hold attributes information so we can pass
it along.
* cs-parser.jay (get_accessor_declaration, set_accessor_declaration):
Modify to pass in attributes attached to the methods.
(add_accessor_declaration, remove_accessor_declaration): Ditto.
* attribute.cs (ApplyAttributes, CheckAttribute): Update accordingly
to handle the Accessor kind :-)
* class.cs (Property.Emit, Event.Emit): Apply attributes to the accessors
svn path=/trunk/mcs/; revision=5176
Ravi Pratap M [Sat, 8 Jun 2002 17:27:07 +0000 (17:27 -0000)]
2002-06-08 Ravi Pratap <ravi@ximian.com>
* test-128.cs : Add. This ensures we apply attributes to accessors
of events and properties.
svn path=/trunk/mcs/; revision=5175
Rafael Teixeira [Sat, 8 Jun 2002 15:34:46 +0000 (15:34 -0000)]
2002-06-07 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged class.cs, enum.cs, expression.cs, interface.cs, rootcontext.cs and typemanager.cs from mcs/mcs
* added module.cs (class Mono.MonoBASIC.Module - derived from Mono.CSharp.Class)
* added System.XML and Microsoft.VisualBasic to the default config (driver.cs)
svn path=/trunk/mcs/; revision=5174
Martin Baulig [Sat, 8 Jun 2002 13:39:30 +0000 (13:39 -0000)]
2002-06-08 Martin Baulig <martin@gnome.org>
* expression.cs (Unary.TryReduceNegative): Added support for
ULongConstants.
svn path=/trunk/mcs/; revision=5173
Martin Baulig [Sat, 8 Jun 2002 13:37:53 +0000 (13:37 -0000)]
2002-06-08 Martin Baulig <martin@gnome.org>
* enum.cs (Enum.LookupEnumValue): Don't report an error if the
name can't be found in the `defined_names' - the caller will do a
MemberLookup in this case and thus find methods in System.Enum
such as Enum.IsDefined().
svn path=/trunk/mcs/; revision=5172
Martin Baulig [Sat, 8 Jun 2002 12:47:02 +0000 (12:47 -0000)]
2002-06-08 Martin Baulig <martin@gnome.org>
* test-127.cs: New test for Enum.IsDefined().
svn path=/trunk/mcs/; revision=5171
Martin Baulig [Sat, 8 Jun 2002 12:41:54 +0000 (12:41 -0000)]
2002-06-08 Martin Baulig <martin@gnome.org>
* Enum.cs (IsDefined): `value' may be of the enum's type itself, it
doesn't necessarily need to be of the enum's underlying type.
svn path=/trunk/mcs/; revision=5170
Martin Baulig [Sat, 8 Jun 2002 11:55:32 +0000 (11:55 -0000)]
2002-06-08 Martin Baulig <martin@gnome.org>
* enum.cs (Enum.ChangeEnumType): This is a custom version of
Convert.ChangeType() which works with TypeBuilder created types.
(Enum.LookupEnumValue, Enum.Define): Use it here.
* class.cs (TypeContainer.RegisterRequiredImplementations): Added
`TypeBuilder.BaseType != null' check.
(TypeContainer.FindMembers): Only lookup parent members if we
actually have a parent.
(Method.EmitDestructor): Added `ec.ContainerType.BaseType != null' check.
(ConstructorInitializer.Resolve): Likewise.
* interface.cs (Interface.FindMembers): Added
`TypeBuilder.BaseType != null' check.
* rootcontext.cs (RootContext.ResolveCore): Added
"System.Runtime.CompilerServices.IndexerNameAttribute" to
classes_second_stage.
* typemanager.cs (TypeManager.InitCoreTypes): Don't initialize
debug_type and trace_type when compiling with --nostdlib.
svn path=/trunk/mcs/; revision=5169