mono.git
19 years ago2004-03-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Mar 2005 14:36:25 +0000 (14:36 -0000)]
2004-03-11  Atsushi Enomoto  <atsushi@ximian.com>

* Expression.cs, DefaultContext.cs : more Peer overrides.

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

19 years agoMake 'cs1041.cs' a "no error" test. Remove it from mcs-expect-no-error now that...
Raja R Harinath [Fri, 11 Mar 2005 13:30:20 +0000 (13:30 -0000)]
Make 'cs1041.cs' a "no error" test.  Remove it from mcs-expect-no-error now that it's fixed.

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

19 years ago2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Fri, 11 Mar 2005 13:26:21 +0000 (13:26 -0000)]
2005-03-11  Lluis Sanchez Gual <lluis@novell.com>

* Makefile: Added new resource file: GridView.js.
* System.Web.dll.sources: Added more files to the build:
System.Web.UI.WebControls/ButtonFieldBase.cs
System.Web.UI.WebControls/CommandField.cs
System.Web.UI.WebControls/DataControlButton.cs

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

19 years ago2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Fri, 11 Mar 2005 13:25:55 +0000 (13:25 -0000)]
2005-03-11  Lluis Sanchez Gual <lluis@novell.com>

* webform.js: ClientSubmit option set to true means submit
performed by asp.net, not by the browser.

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

19 years ago2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Fri, 11 Mar 2005 13:25:26 +0000 (13:25 -0000)]
2005-03-11  Lluis Sanchez Gual <lluis@novell.com>

* Button.cs, ImageButton.cs: Interpret PostBackOptions.ClientSubmit
  correctly.
* CommandField.cs: Mostly implemented.
* Menu.cs: Use callback methods moved to ClientScriptManager.
* DataControlButton.cs: Internal control used to implement buttons
  for navigating in data bound controls.
* DataControlField.cs, PagerSettings.cs: Use the new DataControlButton
  to render the column headers.
* CheckBox.cs, RadioButton.cs, BulletedList.cs, TextBox.cs
  DropDownList.cs, Calendar.cs, ListBox.cs, LinkButton.cs, TreeView.cs:
  Don't use Page.GetPostBackClientEvent
  since it is deprecated in 2.0.
* GridView.cs: Implemented some several interfaces.
  Implemented support client sorting and page navigation (using callbacks).
  Implemented the autogenerated command column using the new CommandField
  class.
* ButtonFieldBase.cs: Implemented.
* GridView.js: New helper script to support client side sorting and
  paging in the grid view.

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

19 years ago2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Fri, 11 Mar 2005 13:24:59 +0000 (13:24 -0000)]
2005-03-11  Lluis Sanchez Gual <lluis@novell.com>

* HtmlInputButton.cs, HtmlAnchor.cs, HtmlButton.cs: Don't use
Page.GetPostBackClientEvent since it is deprecated in 2.0.

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

19 years ago2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Fri, 11 Mar 2005 13:24:44 +0000 (13:24 -0000)]
2005-03-11  Lluis Sanchez Gual <lluis@novell.com>

* Utils.cs, Control.cs: Don't use Page.GetPostBackClientEvent
since it is deprecated in 2.0.
* Page.cs: Deprecated GetPostBackClientEvent and similar methods
in 2.0. Moved callback management methods to ClientScriptManager.
* ClientScriptManager.cs: Moved here deprecated methods from Page.
In GetPostBackEventReference (PostBackOptions), don't use the
WebForm_DoPostback script if the post can be done with a simple
__doPostBack call.
* PostBackOptions.cs: Fixed default values for some properties.

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

19 years ago2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Fri, 11 Mar 2005 13:23:59 +0000 (13:23 -0000)]
2005-03-11  Lluis Sanchez Gual <lluis@novell.com>

* AssemblyInfo.cs: Registered GridView.js script.

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

19 years ago2005-03-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 11 Mar 2005 13:22:30 +0000 (13:22 -0000)]
2005-03-11  Zoltan Varga  <vargaz@freemail.hu>

* object.c (compute_class_bitmap): Add support for generics. Fixes
#73527.

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

19 years ago2005-03-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 11 Mar 2005 13:14:14 +0000 (13:14 -0000)]
2005-03-11  Sebastien Pouliot  <sebastien@ximian.com>

* Makefile: This makefiles calls all CAS tests (in subdirectories)
that shouldn't fail in SVN. It can be called to see if any regressions
occured that affects the security manager.

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

19 years ago2005-03-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 11 Mar 2005 13:10:43 +0000 (13:10 -0000)]
2005-03-11  Sebastien Pouliot  <sebastien@ximian.com>

* MonoMethod.cs: Promote a LinkDemand (if present) to a full Demand
(i.e. stack walk) when reflection is being used to invoke a method.

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

19 years ago2005-03-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 11 Mar 2005 13:09:04 +0000 (13:09 -0000)]
2005-03-11  Sebastien Pouliot  <sebastien@ximian.com>

* MonoType.cs: When the security manager is active, constructors and
methods will return null if a linkdemand fails during reflection
query.

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

19 years ago2005-03-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 11 Mar 2005 13:06:15 +0000 (13:06 -0000)]
2005-03-11  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityManager.cs: Added methods to support reflection query and
invoke for LinkDemand and InheritanceDemand. Added method to do a
stack walk (demand) when a p/invoking (called by JIT generated code).

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

19 years ago2004-03-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Mar 2005 12:25:19 +0000 (12:25 -0000)]
2004-03-11  Atsushi Enomoto  <atsushi@ximian.com>

* cs1041.cs : option -doc was missing.

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

19 years agoDisable these for now
Raja R Harinath [Fri, 11 Mar 2005 12:11:26 +0000 (12:11 -0000)]
Disable these for now

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

19 years ago2004-03-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Mar 2005 11:33:30 +0000 (11:33 -0000)]
2004-03-11  Atsushi Enomoto  <atsushi@ximian.com>

* Expression.cs,
  DefaultContext.cs : Removed unused NeedAbsoluteMatching.
  Added Peer and Subtree (for "peer & subtree optimization. See:
  http://idealliance.org/papers/dx_xmle04/papers/02-03-02/02-03-02.html
  Fixed some ToString() that caused NullReferenceException.

* Iterator.cs : Predicate does not affect on RequireSorting.
  Added SimpleSlashIterator for peer & subtree optimization.

  Added PreserveWhitespace() consideration in BaseIterator.MoveNext().

* XslKey.cs : removed unused NeedAbsoluteMatching.
* XslFunctions.cs : Added Peer (for peer & subtree optimization).
  Added some missing ToString() overrides.

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

19 years ago2005-03-11 Ritvik Mayank <mritvik@novell.com>
Ritvik Mayank [Fri, 11 Mar 2005 11:18:08 +0000 (11:18 -0000)]
2005-03-11 Ritvik Mayank <mritvik@novell.com>
* ConditionalStatementsC22.vb
* ConditionalCompilationC10.vb
* ConditionalCompilationC7.vb
* ConditionalStatementsC4.vb
* ExceptionHandlingC1.vb
changed the LineNo. and removed spurious errors.

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

19 years agoFixes related to displaying correct line number,error message and handle End of blocks
Manjula GHM [Fri, 11 Mar 2005 11:17:59 +0000 (11:17 -0000)]
Fixes related to displaying correct line number,error message and handle End of blocks

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

19 years ago2005-03-11 Ritvik Mayank <mritvik@novell.com>
Ritvik Mayank [Fri, 11 Mar 2005 11:05:17 +0000 (11:05 -0000)]
2005-03-11 Ritvik Mayank <mritvik@novell.com>
* Modified the Following Test Cases:
* teststack.vb
* test.vb
* testdate.vb
* testdecimal.vb
* Impwork.vb

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

19 years agoReverting previous checkin as it was wrong file
Manjula GHM [Fri, 11 Mar 2005 09:21:28 +0000 (09:21 -0000)]
Reverting previous checkin as it was wrong file

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

19 years ago Minor fix in the LoopStatement test case
Manjula GHM [Fri, 11 Mar 2005 09:12:54 +0000 (09:12 -0000)]
 Minor fix in the LoopStatement test case

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

19 years ago2005-03-11 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 11 Mar 2005 09:09:47 +0000 (09:09 -0000)]
2005-03-11  Peter Bartok  <pbartok@novell.com>

* Form.cs:
  - Rudimentary Mdi support
  - Removed outdated FormParent code
  - Implemented lots of missing properties and methods, still missing
    transparency support
  - Added missing attributes
  - Implemented support for MaximumBounds
  - Added firing of various events
* XplatUI.cs: Added SetIcon() method
* XplatUIDriver.cs: Added SetIcon() abstract
* XplatUIOSX.cs: Stubbed out SetIcon() method
* XplatUIX11.cs:
  - Implemented SetIcon() support
  - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
  - Switched to unix line endings
* XplatUIWin32.cs:
  - Made POINT internal so for can access it as part of MINMAX
  - Implemented SetIcon() support
  - Implemented support for CLIENTCREATESTRUCT (but might have to drop
    native Mdi support again, might have to go managed)
* Control.cs: Now fires the StyleChanged event
* MdiClient.cs: Added; still mostly empty

2005-03-11  Peter Bartok  <pbartok@novell.com>

* System.Windows.Forms.dll.sources: Added MdiClient.cs

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

19 years ago* expression.cs :
Satya Sudha K [Fri, 11 Mar 2005 08:42:39 +0000 (08:42 -0000)]
* expression.cs :
  Support for 'Nothing' with all operators.
  A few fixes to the 'DoNumericPromotions' method
* ecore.cs      :
  Fixed Boolean constant conversions
  Supported conversion of 'nothing' to value types

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

19 years agoIn System.Data.ProviderBase:
Sureshkumar T [Fri, 11 Mar 2005 07:36:58 +0000 (07:36 -0000)]
In System.Data.ProviderBase:
2005-03-11  Sureshkumar T  <tsureshkumar@novell.com>

* DbConnectionBase.cs : Implemented OnStateChange.

In System.Data.Odbc:
NET_2_0 uses base class's OnStateChange handler.

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

19 years ago2005-03-11 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Fri, 11 Mar 2005 07:25:22 +0000 (07:25 -0000)]
2005-03-11  Sureshkumar T  <tsureshkumar@novell.com>

* OdbcConnection.cs : notify state change through event. clean up
handles in case any exception while opening a connection.

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

19 years ago2004-03-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 11 Mar 2005 07:08:20 +0000 (07:08 -0000)]
2004-03-11  Atsushi Enomoto  <atsushi@ximian.com>

* doc.cs : just eliminate the latest change.

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

19 years ago2005-03-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 11 Mar 2005 06:02:22 +0000 (06:02 -0000)]
2005-03-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FormsAuthenticationModule.cs: fix for bug 73545, which caused
authentication not to work when the cookie was not persistent.
Patch by Ilya Kharmatsky (Mainsoft).

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

19 years ago(Parse): Re-org. Resolve unreachable code.
Sureshkumar T [Fri, 11 Mar 2005 05:06:51 +0000 (05:06 -0000)]
(Parse): Re-org. Resolve unreachable code.

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

19 years ago2005-03-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 11 Mar 2005 01:17:37 +0000 (01:17 -0000)]
2005-03-10  Sebastien Pouliot  <sebastien@ximian.com>

* pinvoke1-3.cs: New. Tests that P/Invoking unmanaged methods provoke
a stack walk (Demand) for SecurityPermissionFlag.UnmanagedCode.
* sucs1-4.cs: New. Tests that [SuppressUnmanagedCodeSecurity] removes
the stack walk when present on either the p/invoked definition or on
it's class.
* Makefile: New. Build/execute new tests.
* README: New. Instruction and details about the tests.

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

19 years ago2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 10 Mar 2005 23:29:30 +0000 (23:29 -0000)]
2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpWebResponse.cs: moved cookie parsing into its own class.
* WebHeaderCollection.cs: remove (probably bogus) GetMultipleValues
call.
* HttpWebRequest.cs: don't let exception raised in the ctor of
HttpWebResponse vanish.

Fixes bug #73275.

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

19 years ago2005-03-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 23:27:18 +0000 (23:27 -0000)]
2005-03-11  Zoltan Varga  <vargaz@freemail.hu>

* aot.c (mono_aot_load_method): Get rid of bogus make_writable call.

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

19 years ago2005-03-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 22:55:01 +0000 (22:55 -0000)]
2005-03-11  Zoltan Varga  <vargaz@freemail.hu>

* Array.cs (Sort): Bail out early if length <= 1. Fixes #72721.

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

19 years ago- Oops, that's not supposed to be in yet
Peter Dennis Bartok [Thu, 10 Mar 2005 20:43:29 +0000 (20:43 -0000)]
- Oops, that's not supposed to be in yet

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

19 years ago- Added SaveFileDialog.cs
Peter Dennis Bartok [Thu, 10 Mar 2005 20:40:04 +0000 (20:40 -0000)]
- Added SaveFileDialog.cs

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

19 years ago2004-03-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Mar 2005 20:06:54 +0000 (20:06 -0000)]
2004-03-10  Atsushi Enomoto  <atsushi@ximian.com>

* doc.cs : commented out the latest change. It breaks xml-030.cs

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

19 years ago2004-03-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Mar 2005 18:54:56 +0000 (18:54 -0000)]
2004-03-10  Atsushi Enomoto  <atsushi@ximian.com>

* doc.cs : When TypeBuilder did not create Type yet, GetEvents() will
  fail. So invoke CreateType() in FindDocumentedType().

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 17:58:35 +0000 (17:58 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_reflection_create_runtime_class): Fix 2.0 build.

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

19 years ago2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 10 Mar 2005 17:44:18 +0000 (17:44 -0000)]
2005-03-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* filewatcher.c: commented out the code for windows watcher, as we don't
use it (we use the managed implementation instead).

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:32:00 +0000 (16:32 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* dataslot.cs: Add tests for #65414.

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:26:56 +0000 (16:26 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* object-internals.h (MonoThread): Remove 'unused1' field.

* appdomain.c: Bump corlib version.

* marshal.c: Remove calls to Reset/RestoreDataStoreStatus ().

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:25:01 +0000 (16:25 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* Environment.cs: Bump corlib version.

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:24:28 +0000 (16:24 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* CrossAppDomainChannel.cs: Remove call to ResetDataStoreStatus ().

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 16:23:50 +0000 (16:23 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.

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

19 years ago2004-03-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 10 Mar 2005 16:10:50 +0000 (16:10 -0000)]
2004-03-10  Atsushi Enomoto  <atsushi@ximian.com>

in mcs:
* cs-tokenizer.cs : added IsKeyword().
* doc.cs : Detect keyword incorrectly used as identifier.
  Allow identifiers prefixed by @.

in tests:
* xml-036.cs, xml-036-ref.xml, Makefile : added test for bug #73384.

in errors:
* cs1041.cs : added test for bug #73385.

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

19 years ago2005-03-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 10 Mar 2005 15:19:01 +0000 (15:19 -0000)]
2005-03-10  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_reflection_create_runtime_class): Remove the
AssemblyBuilder.Save optimization since it causes too many problems.

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

19 years ago2005-03-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 10 Mar 2005 13:25:35 +0000 (13:25 -0000)]
2005-03-10  Sebastien Pouliot  <sebastien@ximian.com>

* exception.c|h: Added mono_get_exception_reflection_type_load to
create a ReflectionTypeLoadException object.
* icall.c: Updated ves_icall_System_Reflection_Assembly_InternalGetType
to return NULL is a InheritanceDemand fails during reflection. Updated
ves_icall_System_Reflection_Assembly_GetTypes to throw a
ReflectionTypeLoadException if an InheritanceDemand fails during
reflection. Added icall mapping for GetLinkDemandSecurity.
* security-manager.c|h: Added ves_icall_System_Security_
SecurityManager_GetLinkDemandSecurity internal call to return the
class and methods permissions set for a LinkDemand. Removed unused
fields in MonoSecurityManager.

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

19 years agoupdate Provider Factory status.
Sureshkumar T [Thu, 10 Mar 2005 12:55:11 +0000 (12:55 -0000)]
update Provider Factory status.

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

19 years agoIn .:
Sureshkumar T [Thu, 10 Mar 2005 12:48:43 +0000 (12:48 -0000)]
In .:
2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>

* System.Data.dll.sources: Added
System.Data.Odbc/OdbcConnectionFactory.cs.
System.Data.Odbc/OdbcFactory.cs.

In System.Data.Odbc:
2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>

Migrated core classes to derive from ProviderBase instead of
implementing IDb* interfaces. Most part of these files have been
branched with #if NET_2_0/ONLY_1_1. Make sure any changes works
with both the profiles.

* OdbcFactory.cs: Concrete Factory for DbProviderFactory. Factory
to generate Connection,Command,etc.

* OdbcConnectionFactory.cs: Concrete factory for DbConnectionFactory.

* OdbcTransaction.cs: migration and overrides.
* OdbcCommandBuilder.cs: migration and overrides.
* OdbcDataReader.cs: --do--. no command behavior member as it will
be maintained in base provider class.
* OdbcParameterCollection.cs: --do--. Now, local ArrayList is not
maintained here, instead it is in base class. Most of the methods
which operated on this list are not needed in NET_2_0.
* OdbcConnection.cs: Migration. connectionString is maintained in
DbConnectionBase class.
* OdbcParameter.cs: Migration. Many of the local members like
value,sourceColumn are maintained in DbParameterBase.
* OdbcCommand.cs: Migration. commandText,timeout and
commandTimeOut are maintained in DbCommandBase class.

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

19 years agoA minor fix for the previous checkin
Satya Sudha K [Thu, 10 Mar 2005 12:34:43 +0000 (12:34 -0000)]
A minor fix for the previous checkin

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

19 years agoIn .:
Sureshkumar T [Thu, 10 Mar 2005 09:13:45 +0000 (09:13 -0000)]
In .:
2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>

* System.Data.dll.sources: Added
System.Data.Odbc/OdbcTypeConverter.

In System.Data.Odbc:
2005-03-10  Sureshkumar T  <tsureshkumar@novell.com>

* OdbcType.cs: Added enums for SQL_TYPE & SQL_C_TYPE.

* libodbc.cs: Accept SQL_C_TYPE for driver
parameters. SQLBindParameter takes two parameters SQL_TYPE and
SQL_C_TYPE. This caused the whole lot of changes done in this
revision.

* OdbcParameter.cs: Set default values of OdbcType & DbType. Pass
mapped SQL_TYPE and SQL_C_TYPE to SQLBindParameter. Increase
buffer size by 2 for additional ' chars.

* OdbcTypeConverter.cs: Added class to convert between OdbcType,
SQL_TYPE, SQL_C_TYPE.

* OdbcColumn.cs: Added private members for SQL_TYPE and
SQL_C_TYPE. conversion from/to odbctype to/from SQL_TYPE is done
through OdbcTypeConverter class.

* OdbcDataReader.cs: use OdbcColumn's SQL_C_TYPE member. It keeps
track of default mapping between odbctype, SQL_TYPE and
SQL_C_TYPE. Move dataTableSchema.AcceptChanges inside if condition
to avoid null reference exception.

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

19 years ago2005-03-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Mar 2005 08:59:37 +0000 (08:59 -0000)]
2005-03-10 Marek Safar <marek.safar@seznam.cz>

* TestRunner.cs: New fast test runner.

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

19 years ago2005-03-10 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Thu, 10 Mar 2005 08:52:34 +0000 (08:52 -0000)]
2005-03-10  Marek Safar  <marek.safar@seznam.cz>

* attributes.cs (Attributes.Emit): Continue after CheckTargets.
It caused exception in namespace resolving (again!).

* class.cs (Class.ctor): Removed exit.
(PropertyMethod.ctor): ditto.

* codegen.cs (Codegen.Reset): Reset static data.
(Codegen.ResolveTopBlock): Forward error status from ResolveMeta.

* cs-tokenizer.cs (Cleanup): Removed.

* driver.cs (GetSystemDir): Rewrote to one line command.
It caused problem with unloaded dynamic modules.
(UnixParseOption): Removed Exit.
(CompilerCallableEntryPoint.InvokeCompiler): Make static.
(CompilerCallableEntryPoint.Reset): Reset suitable static data.
Now can be mcs used as library.

* ecore.cs (Expression.ResolveBoolean): Use Location.Null for
empty location.

* location.cs (Reset): Reset static data.

* namespace.cs (Reset): Reset static data.

* report.cs (Report.Reset): Reset static data.

* rootcontext.cs (RootContext.Reset): Reset static data.

* tree.cs (RootTypes.ctor): Use Location.Null

* typemanager.cs (TypeManager.Reset): Reset static data.
(CoreLookupType): Removed Exit.
(TypeHandle.Reset): Reset static data.

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

19 years agooops.
Raja R Harinath [Thu, 10 Mar 2005 08:42:48 +0000 (08:42 -0000)]
oops.

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

19 years agoFix #73516.
Raja R Harinath [Thu, 10 Mar 2005 08:39:16 +0000 (08:39 -0000)]
Fix #73516.
* mcs/typemanager.cs (ComputeNamespaces): Import namespaces from
referenced modules too.
* tests/mtest-7-exe.cs, tests/mtest-7-dll.cs: New test from #73516.
* tests/Makefile (DISTFILES): Add test-353-2.cs.

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

19 years ago Support 'Is' for all reference types
Manjula GHM [Thu, 10 Mar 2005 06:46:29 +0000 (06:46 -0000)]
 Support 'Is' for all reference types

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

19 years ago2005-03-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Mar 2005 06:40:51 +0000 (06:40 -0000)]
2005-03-10  Martin Baulig  <martin@ximian.com>

* Nullable.cs (Nullable<T>.ToString): Return an empty string if
we're null.

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

19 years agosvn propset svn:eol-style native
Raja R Harinath [Thu, 10 Mar 2005 05:55:34 +0000 (05:55 -0000)]
svn propset svn:eol-style native
svn propdel svn:executable

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

19 years agoRemoved a '\r' character from the end of a line (as it was breaking
Satya Sudha K [Thu, 10 Mar 2005 05:24:32 +0000 (05:24 -0000)]
Removed a '\r' character from the end of a line (as it was breaking
'make dist') - as pointed out by Sudharsan V

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

19 years agoEnable the nullable tests.
Martin Baulig [Thu, 10 Mar 2005 04:36:08 +0000 (04:36 -0000)]
Enable the nullable tests.

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

19 years ago2005-03-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Mar 2005 04:32:26 +0000 (04:32 -0000)]
2005-03-10  Martin Baulig  <martin@ximian.com>

* class.c (mono_bounded_array_class_get): Initialize `eclass' if
it's a generic instance.

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

19 years ago2005-03-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 10 Mar 2005 04:31:53 +0000 (04:31 -0000)]
2005-03-10  Martin Baulig  <martin@ximian.com>

* expression.cs
(ArrayAccess.EmitDynamicInitializers): Use `etype.IsValueType'
rather than `etype.IsSubclassOf (TypeManager.value_type)'.

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

19 years agoSupport for 'AndAlso' and 'OrElse' operators
Satya Sudha K [Thu, 10 Mar 2005 04:07:51 +0000 (04:07 -0000)]
Support for 'AndAlso' and 'OrElse' operators

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

19 years agooops
Gonzalo Paniagua Javier [Wed, 9 Mar 2005 23:27:05 +0000 (23:27 -0000)]
oops

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

19 years ago2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 9 Mar 2005 23:19:52 +0000 (23:19 -0000)]
2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Control.cs: in FindControl, throw if there's more than one control
with the same ID. Fixes bug #73479.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 23:18:18 +0000 (23:18 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslText.cs : whitespace nodes should be written at any time, once
  they constructed this instance.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 22:52:38 +0000 (22:52 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslStylesheet.cs, XslCompiledContext.cs : Fixed PreserveWhitespace()
  to work fine with xsl:*-space attributes as expected.
* XslTransformProcessor.cs : PreserveWhitespace() in this file is
  actually nothing. It should not use XsltContext.PreserveWhitespace()
  because this method is used to control output, while the referenced
  method is used to control source document.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 22:46:17 +0000 (22:46 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslTemplate.cs : First non-element content were incorrectly ignored.

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

19 years ago2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 9 Mar 2005 21:40:53 +0000 (21:40 -0000)]
2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpRequest.cs: correctly store the value cookies in Params. Fixes
bug #73345.

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

19 years ago2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 20:06:59 +0000 (20:06 -0000)]
2004-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* Expression.cs,
  Iterator.cs, :
  SlashIterator is now constructed with requireSorting parameter
  that thus just use RequireSorting from both left/right Expressions,
  not iterators.
  When attribute axis is on the left expression, the result needs to
  be sorted.

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

19 years agough, the patch was changing different ChangeLog :(
Atsushi Eno [Wed, 9 Mar 2005 19:57:21 +0000 (19:57 -0000)]
ugh, the patch was changing different ChangeLog :(

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

19 years ago2005-03-09 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 9 Mar 2005 19:51:26 +0000 (19:51 -0000)]
2005-03-09  Dick Porter  <dick@ximian.com>

        * MonoIOError.cs:
        * MonoIO.cs: Add a few more exception messages

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

19 years ago2005-03-09 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 9 Mar 2005 19:51:04 +0000 (19:51 -0000)]
2005-03-09  Dick Porter  <dick@ximian.com>

        * error.c (_wapi_get_win32_file_error): ENFILE and EMFILE should
        map to ERROR_TOO_MANY_OPEN_FILES, not ERROR_NO_MORE_FILES.  Fixes
        bug 72671.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 18:21:10 +0000 (18:21 -0000)]
2005-03-09  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
  surrogate calculations. This fixes bug #73513. Patch by
  Andrew Skiba.

* XmlTextReaderTests.cs : added SurrogatePair() based on bug #73513.

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

19 years ago2005-03-09 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 9 Mar 2005 18:15:50 +0000 (18:15 -0000)]
2005-03-09  Ben Maurer  <bmaurer@ximian.com>

* mini.c (mono_codegen): Don't leak here, to help people running
monogrind.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 17:53:30 +0000 (17:53 -0000)]
2005-03-09  Atsushi Enomoto <atsushi@ximian.com>

* XmlParserInput.cs : silly mixed line endings :(

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 16:42:26 +0000 (16:42 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (mono_get_object_from_blob): Applied patch from
Ankit Jain (radical@gmail.com). Fix enum default values. Fixes #73457.

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

19 years agochmod +x monogrind.pl
Ben Maurer [Wed, 9 Mar 2005 15:54:02 +0000 (15:54 -0000)]
chmod +x monogrind.pl

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

19 years ago2005-03-09 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 9 Mar 2005 15:51:30 +0000 (15:51 -0000)]
2005-03-09  Ben Maurer  <bmaurer@ximian.com>

* monogrind.pl: Renamed valgrind-monofunc.pl to this, per
Nat. Updated with Nat's fixes.

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

19 years ago* class.cs (TypeContainer.AddToMemberContainer): Use "." rather than '.'.
Raja R Harinath [Wed, 9 Mar 2005 14:23:25 +0000 (14:23 -0000)]
* class.cs (TypeContainer.AddToMemberContainer): Use "." rather than '.'.

Oh no, I'm channelling BenM ;-)  This cheesy little patch allocated 400KB less
on a corlib build !!!

  w/o patch: 119389 KB
  w/  patch: 118964 KB

in the before, we had:
     163 KB Mono.CSharp.TypeContainer::AddToMemberContainer(MemberCore)
              163 KB    16713 System.Char
     261 KB System.Char::ToString()
              261 KB    16716 System.String

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

19 years ago* decl.cs (DeclSpace.LookupType): Don't loop but recurse into
Raja R Harinath [Wed, 9 Mar 2005 14:05:25 +0000 (14:05 -0000)]
* decl.cs (DeclSpace.LookupType): Don't loop but recurse into
enclosing DeclSpace.  This ensures that a name-lookup populates
more caches and there are fewer 'TypeExpression's.  Carve out
nested type lookup into ...
(LookupNestedTypeInHierarchy): ... this.

Turns out that this saves a teensy amount of memory when compiling corlib.
So, given the IMHO improved readability, this is a no-brainer ;-)

  w/o patch: 119433 KB
  w/  patch: 119389 KB

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 13:32:43 +0000 (13:32 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Reenable last test.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 12:32:07 +0000 (12:32 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* TypeTest.cs: Add tests for bug #73432.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 12:29:24 +0000 (12:29 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* Activator.cs MonoType.cs: Applied patch from Carlos Alberto Cortez
(carlos@unixmexico.org). Allow creation of valuetypes with no ctor.
Fixes #73432.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 11:52:07 +0000 (11:52 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* solaris_threads.c (GC_thread_is_registered): Add this for solaris
too.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 11:00:00 +0000 (11:00 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* pthread_support.c (GC_thread_is_registered): Move this outside of
the #ifdef THREAD_LOCAL_ALLOC.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 9 Mar 2005 10:50:37 +0000 (10:50 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* class.c (mono_class_is_assignable_from): Another try at fixing
#73469 without breaking anything.

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 10:11:52 +0000 (10:11 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XslVariable.cs : clone stored XPathNavigator items before storing.
* XslAttribute.cs : tiny code reduction.

* Iterator.cs : Now for most of iterator types, Current property always
  returns the same instance. It results in huge memory reduction.

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

19 years agoClean up a few partial-class semantics.
Raja R Harinath [Wed, 9 Mar 2005 10:04:11 +0000 (10:04 -0000)]
Clean up a few partial-class semantics.
Fixes test-357.cs and cs1618-2.cs.
* cs-parser.jay (struct_declaration): Use 'current_class' as
parent of newly-created struct.  Remove call to Register ().
Use 'pop_current_class' to complete handing the current struct.
(interface_declaration): Likewise.
(class_declaration): Likewise.
(enum_declaration): Use 'current_class' as parent of newly created
enum.
(delegate_declaration): Likewise.
(pop_current_class): New function.  This is used to handle closing
up the 'current_class' and 'current_container', and pointing them
to the enclosing class/container.
(CSharpParser): Initialize 'current_class' too.
 decl.cs (MemberCore): Add check for invariant: a partial
container is not a parsed entity, and thus does not enclose any
parsed members.
(DeclSpace.TypeResolveEmitContext): Expose 'type_resolve_ec'.
(DeclSpace.BaseTypeExpr): Use it.
(DeclSpace.LookupType): Add check for invariant.
* class.cs (TypeContainer): Add check for invariant: a nested
class should have the same NamespaceEntry as its enclosing class.
(TypeContainer.EmitFieldInitializers): Make virtual.
(TypeContainer.DefineDefaultConstructor): Adhere to invariant in
MemberCore.
(TypeContainer.Register): Remove.
(TypeContainer.DefineType): Set the 'ec' of a PartialContainer to
null.  Use TypeResolveEmitContext for resolving base types and
interfaces.  Move initialization of Parts.TypeBuilder here from
...
(TypeContainer.DefineNestedTypes): ... here.
(PartialContainer): Take a Namespace not a NamespaceEntry.
(PartialContainer.Create): Don't use Register.  Call the
appropriate Add... function directly.
(ClassPart): Take both the PartialContainer and the enclosing
class as constructor arguments.
(ClassPart.EmitFieldInitializers): Override.
(ClassPart.PartFindNestedTypes): Remove.
(FieldBase.GetInitializerExpression): Resolve the initializer
expression in the emit context of the enclosing class.
* tree.cs (RootTypes): Remove Register ().

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

19 years ago2005-03-09 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 9 Mar 2005 09:38:44 +0000 (09:38 -0000)]
2005-03-09  Dick Porter  <dick@ximian.com>

        * daemon.c (process_process_fork): Initialise the handle data
        before using it in the error case.  This is probably the error
        we're working around in the previous change.  Spotted by Taru Jain
        <tjain@novell.com> and Hemanth Yamijala <YHemanth@novell.com>.

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

19 years agoSupport 'Is' Expression
Manjula GHM [Wed, 9 Mar 2005 09:18:13 +0000 (09:18 -0000)]
Support 'Is' Expression

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

19 years ago2005-03-09 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 9 Mar 2005 08:28:31 +0000 (08:28 -0000)]
2005-03-09  Marek Safar  <marek.safar@seznam.cz>

* ILGenerator.cs (DeclareLocal): Throw an exception for null argument.

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

19 years ago2005-03-08 Peter Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 9 Mar 2005 06:41:37 +0000 (06:41 -0000)]
2005-03-08  Peter Bartok  <pbartok@novell.com>

* Control.cs: Fixed bug #73190; now invokes CreateControl (which
  in turn triggers OnCreateContro) when creating a handle for the
  first time.
* TextControl.cs: Fixed endless loop in certain cases when
  replacing the current selection

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

19 years agoFixed conflicting class names - (as pointed out by Sudharsan V)
Satya Sudha K [Wed, 9 Mar 2005 06:06:18 +0000 (06:06 -0000)]
Fixed conflicting class names - (as pointed out by Sudharsan V)

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

19 years ago2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 9 Mar 2005 05:17:39 +0000 (05:17 -0000)]
2005-03-09  Atsushi Enomoto  <atsushi@ximian.com>

* XsltContext.cs : removed GetNsm() from IStaticXsltContext and added
  LookupNamespace() instead.
* BUGS-MS.txt : more bug info.

* XslFunctions.cs, Compiler.cs : Eliminated XPathNavigatorNsm class
  to reduce references to stylesheet XPathNavigator. To accomplish it,
  IStaticXsltContext does not declare GetNsm() anymore. All xslt
  function types now directly hold IStaticXsltContext.
* XslStylesheet.cs : removed "Compiler c" field.
  Removed unused properties.

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

19 years ago2005-03-08 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 9 Mar 2005 03:45:04 +0000 (03:45 -0000)]
2005-03-08  Ben Maurer  <bmaurer@ximian.com>

* valgrind-monofunc.pl: Add this wonderful script from Nat.

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

19 years agoUpdated.
Martin Baulig [Wed, 9 Mar 2005 02:21:03 +0000 (02:21 -0000)]
Updated.

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

19 years ago2005-03-09 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 23:37:30 +0000 (23:37 -0000)]
2005-03-09  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Disable last test since the fix is reverted.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 17:22:19 +0000 (17:22 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* class.c: (mono_class_is_assignable_from): Revert the last changes
since they don't work with generics.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 16:31:40 +0000 (16:31 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* class.c (mono_class_is_assignable_from): Fix build bustage.

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

19 years ago2005-03-08 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 8 Mar 2005 14:22:15 +0000 (14:22 -0000)]
2005-03-08  Zoltan Varga  <vargaz@freemail.hu>

* TypeBuilderTest.cs: Add new test.

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