Compare commits

...
3987 Commits
Author SHA1 Message Date
nobody c0ce58ee90 This commit was manufactured by cvs2svn to create tag 'MCS_1_0_4'.
svn path=/tags/MCS_1_0_4/mcs/; revision=35462
2004-10-29 15:00:19 +00:00
Gonzalo Paniagua Javier 616aa26986 from HEAD
svn path=/branches/mono-1-0/mcs/; revision=35425
2004-10-29 04:21:46 +00:00
Sanja Gupta 545ce9502d ChangeLog: Updated.
SmtpClient.cs: Backported fix for bug 68829.

svn path=/branches/mono-1-0/mcs/; revision=35387
2004-10-28 05:16:57 +00:00
Gonzalo Paniagua Javier bab24d1ce7 2004-10-27 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: don't fail if the request has already been sent
	when accessing ContentType setter. Fixes bug #68848.

svn path=/branches/mono-1-0/mcs/; revision=35367
2004-10-27 20:07:52 +00:00
Sebastien Pouliot 1b3f2c7dbd 2004-10-27 Sebastien Pouliot <[email protected]>
* signcode.cs: -i (url) and -n (description) parameters were inverted.

svn path=/branches/mono-1-0/mcs/; revision=35360
2004-10-27 19:09:14 +00:00
Gonzalo Paniagua Javier f5a8f39bed 2004-10-27 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: when compiling a single .cs file, add the file
	itself to dependencies. Fixes bug #68788.

svn path=/branches/mono-1-0/mcs/; revision=35359
2004-10-27 19:07:35 +00:00
Gonzalo Paniagua Javier 44de1fc242 2004-10-27 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: backported fixes related to SetupInformation in HEAD.
	Closes bug #68859.
	* AppDomainSetup.cs: added copy constructor.

svn path=/branches/mono-1-0/mcs/; revision=35355
2004-10-27 17:42:23 +00:00
Sebastien Pouliot e544a1caf9 2004-10-27 Sebastien Pouliot <[email protected]>
* AuthenticodeFormatter.cs: Fix NullReferenceException from signcode
	tool when no URL is specified on the command line.

svn path=/branches/mono-1-0/mcs/; revision=35354
2004-10-27 16:47:09 +00:00
Gonzalo Paniagua Javier 6a4e763a67 2004-10-26 Gonzalo Paniagua Javier <[email protected]>
* System.Design.dll.sources: added files in
	System.Web.UI.Design.WebControls.

svn path=/branches/mono-1-0/mcs/; revision=35347
2004-10-27 01:04:24 +00:00
Lluis Sanchez 59aa51ce13 * ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
	  code that reads the url from the config file, instead of doing it at
	  the moment of generation. This fixes bug #68795.

svn path=/branches/mono-1-0/mcs/; revision=35334
2004-10-26 15:40:35 +00:00
Zoltan Varga 3747fde416 2004-10-26 Zoltan Varga <[email protected]>
* mono-codeman.c: Fall back to malloc if MAP_ANON is not defined.

svn path=/branches/mono-1-0/mono/; revision=35328
2004-10-26 09:54:45 +00:00
Fawad Halim 3bab242b23 System.Environment.ExpandEnvironmentVariables: If an Environment variable value isn't found, leave the trailing % of the reference for further matches.
Add text between end of current lookup window and next % match if we just got a match, or add all text to the end if there are no further % matches.
This fixes bug #64995.

svn path=/branches/mono-1-0/mcs/; revision=35319
2004-10-26 02:19:26 +00:00
Gonzalo Paniagua Javier 4746610d93 2004-10-25 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs:
	(WantMore): we're not done until we get a 0 chunk size and the trailer.
	The 0 can be expressed as more than one character too (ie, 000000).

	* HttpWebRequest.cs: new argument in SetResponseError.
	* WebConnection.cs: added argument to HandleError as a hint for
	debugging.
	(Connect): make the chunked stream be in the expected state when
	reusing.

	* WebConnectionStream.cs: removed unused method (ResetWriteBuffer).

svn path=/branches/mono-1-0/mcs/; revision=35313
2004-10-25 21:27:59 +00:00
Zoltan Varga 7100587187 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=35309
2004-10-25 20:11:49 +00:00
Zoltan Varga d1b7ee7816 2004-10-25 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_parse_type_full): Fix parsing of custom
	modifiers.

svn path=/branches/mono-1-0/mono/; revision=35307
2004-10-25 18:05:07 +00:00
Sebastien Pouliot 285e851d2f 2004-10-25 Sebastien Pouliot <[email protected]>
* BigInteger.cs: Fix issue #68452 when Randomize was being called on a
	0 BigInteger (i.e. BitCount == 0).

svn path=/branches/mono-1-0/mcs/; revision=35306
2004-10-25 16:34:27 +00:00
Zoltan Varga 2372f9b33c 2004-10-25 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_ExecuteAssembly): Fix
	argument of mono_get_exception_file_not_found.

	* assembly.c (mono_assembly_names_equal): Compare the cultures as well,
	so multiple satellite assemblies for the same name can be loaded.
	Fixes #68259.

	* appdomain.c (mono_domain_assembly_preload): Actually return the loaded assembly,
	not NULL.

svn path=/branches/mono-1-0/mono/; revision=35305
2004-10-25 14:53:50 +00:00
Zoltan Varga cabb02a5af 2004-10-25 Zoltan Varga <[email protected]>
* icall.c (ves_icall_type_is_subtype_of): Fix this for byref types.
	(ves_icall_type_is_assignable_from): Ditto. Fixes #68582.

svn path=/branches/mono-1-0/mono/; revision=35300
2004-10-25 13:51:10 +00:00
Gonzalo Paniagua Javier 470ef6e7b0 2004-10-25 Gonzalo Paniagua Javier <[email protected]>
* ListItemCollection.cs: fixed bug when indexing changed elements in
	LoadViewState. Patch from Alois B��la��ka.

svn path=/branches/mono-1-0/mcs/; revision=35298
2004-10-25 13:02:46 +00:00
Zoltan Varga 214dbb1353 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=35293
2004-10-25 11:15:08 +00:00
Joerg Rosenkranz 35a5b8b671 2004-10-21 Joerg Rosenkranz <[email protected]>
* regex.cs: Fixed a bug introduced with the last patch which
      prevented any replacements when a postive count is given.
      This also happens in all overloads without count parameter.

svn path=/branches/mono-1-0/mcs/; revision=35237
2004-10-22 05:34:19 +00:00
Atsushi Eno 723c07bbc1 2004-10-19 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : When namespace is an empty string,
	  XmlTextWriter.LookupPrefix() will raise an error. Just skip it in
	  such case.

svn path=/branches/mono-1-0/mcs/; revision=35147
2004-10-19 22:13:24 +00:00
Lluis Sanchez 6ab6acf3c6 * MarshalByRefObject.cs: Field _identity is not serializable.
This fixes bug #68567.

svn path=/branches/mono-1-0/mcs/; revision=35145
2004-10-19 21:59:06 +00:00
Gonzalo Paniagua Javier 47cb910839 2004-10-18 Gonzalo Paniagua Javier <[email protected]>
* System.Text.RegularExpressions/regex.cs: in Replace, when count is
	negative, replacement continues to the end of the string.

	* Test/System.Text.RegularExpressions/RegexBugs.cs: added test for this
	fix.

	Fixes bug #68398. Patch by Jon Larimer.

svn path=/branches/mono-1-0/mcs/; revision=35111
2004-10-18 22:14:50 +00:00
Atsushi Eno 089731f3fd 2004-10-18 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs :
	  Normalization check is also required for ReadText(). This fixes
	  bug #68449.

svn path=/branches/mono-1-0/mcs/; revision=35086
2004-10-18 15:37:21 +00:00
Atsushi Eno 92ca036733 2004-10-15 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
	  is regatded as invalid. This fixes bug #68410. (Error message was
	  also not correct.)

svn path=/branches/mono-1-0/mcs/; revision=35045
2004-10-15 22:04:38 +00:00
Atsushi Eno 8a9873f5a5 2004-10-15 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Inside DTD, '<' character inside XML comment
	  is regatded as invalid. This fixes bug #68410. (Error message was
	  also not correct.)

svn path=/branches/mono-1-0/mcs/; revision=35046
2004-10-15 22:04:38 +00:00
Atsushi Eno 3a132aaa09 2004-10-15 Atsushi Enomoto <[email protected]>
* DataSet.cs : Also clear UnhandledAttributes ArrayList before
	  generating next attribute column schema. This fixes bug #68432.

svn path=/branches/mono-1-0/mcs/; revision=35044
2004-10-15 18:39:54 +00:00
Geoff Norton ea3de14477 * mini-ppc.c (calculate_sizes): Marshal valuetypes for pinvoke
methods as their native size, fixed bug #57543, #57545.
        * mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
        This saves a temporary register and mullw call down into 1 (minor perf
        increase for cases like sum = sum * 5;

svn path=/branches/mono-1-0/mono/; revision=35040
2004-10-15 15:50:11 +00:00
Zoltan Varga 51f5800c2d Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=35015
2004-10-14 23:21:44 +00:00
Joe Shaw e415b219de 2004-10-14 Joe Shaw <[email protected]>
* man/mono.1: Fix the syntax of the M: trace syntax

svn path=/branches/mono-1-0/mono/; revision=35011
2004-10-14 19:56:00 +00:00
Miguel de Icaza 4494256ec0 2004-10-14 Miguel de Icaza <[email protected]>
* TextInfo.cs: Fix ToTitleCase to do title case for each word on
	the string per the spec.

svn path=/branches/mono-1-0/mcs/; revision=35009
2004-10-14 19:50:36 +00:00
Atsushi Eno c07a622943 2004-10-14 Atsushi Enomoto <[email protected]>
* Iterator.cs :
	  - Added WrapperIterator to return BaseIterator in such case that
	    variable reference is resolved to XPathNodeIterator. This fixes
	    bug #68267.
	  - Path ".." is reverse axis (actually no effect).
	  - Fixed DescendantIterator.Clone() that missed "_finished" field.
	* Expression.cs :
	  In ExprVariable.Evaluate(), use WrapperIterator() for custom
	  XPathNodeIterator.

svn path=/branches/mono-1-0/mcs/; revision=34997
2004-10-14 15:12:57 +00:00
Dick Porter da5a46c004 2004-10-14 Dick Porter <[email protected]>
* SocketTest.cs: Test the blocking status of accepted sockets

svn path=/branches/mono-1-0/mcs/; revision=34990
2004-10-14 13:05:42 +00:00
Dick Porter 348cd083ec 2004-10-14 Dick Porter <[email protected]>
* Socket.cs (Sockets ): Set Accept()ed socket blocking status to
	be the same as the listening socket.  This follows MS behaviour.

svn path=/branches/mono-1-0/mcs/; revision=34988
2004-10-14 12:13:55 +00:00
Dick Porter e0c2a2e0e6 2004-10-14 Dick Porter <[email protected]>
* sockets.c (_wapi_accept): Revert the previous change.  We now
	set the accepted socket to have the same blocking status as the
	listening socket in managed code.  This follows MS behaviour.

svn path=/branches/mono-1-0/mono/; revision=34986
2004-10-14 12:13:09 +00:00
Dick Porter 53c44fa7df 2004-10-14 Dick Porter <[email protected]>
* sockets.c (_wapi_accept): On Darwin, make sure a newly
	accept()ed socket is blocking.  Fixes bug 67355, patch by
	[email protected].

svn path=/branches/mono-1-0/mono/; revision=34981
2004-10-14 09:00:58 +00:00
Atsushi Eno 12b04f647a 2004-10-13 Atsushi Enomoto <[email protected]>
* DataSet.cs : clear UnhandledAttributes ArrayList before generating
	  next element column schema. This fixes bug #68256.

svn path=/branches/mono-1-0/mcs/; revision=34960
2004-10-13 21:17:40 +00:00
Paolo Molaro 07e1b9c1ee Wed Oct 13 15:12:17 CEST 2004 Paolo Molaro <[email protected]>
* System.Resources/ResXResourceReader.cs: patch by
	 [email protected] (joel) to handle CDATA sections.

svn path=/branches/mono-1-0/mcs/; revision=34950
2004-10-13 11:56:40 +00:00
Atsushi Eno 5d5253742b wrote incorrect filename :(
svn path=/branches/mono-1-0/mcs/; revision=34914
2004-10-12 14:55:02 +00:00
Atsushi Eno d3cab14bd8 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSetTest.cs : now xs:schema contains xmlns="".

svn path=/branches/mono-1-0/mcs/; revision=34913
2004-10-12 14:54:18 +00:00
Atsushi Eno 05296f4cd9 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs : now xs:schema contains xmlns="".
	  This fixes bug #68008.

svn path=/branches/mono-1-0/mcs/; revision=34912
2004-10-12 14:53:00 +00:00
Atsushi Eno 665a15e27a 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs : DBNull attribute column should not be written as
	  empty attribute. This fixes bug #68007.

svn path=/branches/mono-1-0/mcs/; revision=34908
2004-10-12 13:27:34 +00:00
Atsushi Eno b1e6fbe143 2004-10-12 Atsushi Enomoto <[email protected]>
* DataSet.cs, XmlConstant.cs, XmlSchemaDataImporter.cs:
	  DataColumn.ReadOnly was not handled. This fixes bug #68005.
	  Attribute defaultValue was not handled too.

svn path=/branches/mono-1-0/mcs/; revision=34906
2004-10-12 13:11:36 +00:00
Lluis Sanchez e3f65e1443 * Methods.cs: Use the service namespace as the base for the soap action.
This fixes bug #60379.

svn path=/branches/mono-1-0/mcs/; revision=34860
2004-10-11 09:15:56 +00:00
David Sheldon 5b33c10f15 2004-10-11 David Sheldon <[email protected]>
* HttpWebRequest.cs: Use RemoveAndAdd for AddRange. Fixes unittest.

svn path=/branches/mono-1-0/mcs/; revision=34859
2004-10-11 07:19:39 +00:00
Zoltan Varga dc367754b8 Merge from HEAD
svn path=/branches/mono-1-0/mono/; revision=34846
2004-10-10 16:27:53 +00:00
Gonzalo Paniagua Javier f85f5d54fc 2004-10-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: don't cast to Page is the handler it's
	not a page.

	* System.Web.Configuration/WebConfigurationSettings.cs: use
	CurrentExecutionFilePath instead of FilePath. Fixes bug #67982.

svn path=/branches/mono-1-0/mcs/; revision=34842
2004-10-10 13:37:01 +00:00
Miguel de Icaza 227a439658 1.0.3
svn path=/branches/mono-1-0/mono/; revision=34824
2004-10-08 18:04:19 +00:00
Zoltan Varga 1b368ec2c9 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=34823
2004-10-08 18:03:55 +00:00
Zoltan Varga cf6e3f73af 2004-10-08 Zoltan Varga <[email protected]>
* Convert.cs (ToType): Throw an exception when converting null to a
	valuetype. Fixes #67780.

svn path=/branches/mono-1-0/mcs/; revision=34813
2004-10-08 15:25:35 +00:00
Atsushi Eno 1013f7ad07 2004-10-08 Atsushi Enomoto <[email protected]>
* DataSet.cs : Yesterday's fix was different and broke the build :(

svn path=/branches/mono-1-0/mcs/; revision=34802
2004-10-08 11:35:14 +00:00
Atsushi Eno f784af0a89 2004-10-08 Atsushi Enomoto <[email protected]>
* DateTime.cs : Removed incorrectly injected HEAD fix.

svn path=/branches/mono-1-0/mcs/; revision=34794
2004-10-08 02:22:13 +00:00
Atsushi Eno 3f57ad30b6 2004-10-07 Atsushi Enomoto <[email protected]>
* DataSet.cs :
	  - When AllowDBNull is false on attribute DataColumn, its schema
	    should contain use="required". This fixes bug #66792.
	  - If MaxLength is set on attribute DataColumn, the mapped schema
	    type should contain maxLength facet. This fixes bug #66793.

svn path=/branches/mono-1-0/mcs/; revision=34793
2004-10-07 22:17:33 +00:00
Jackson Harper 3e535bd542 * culture-info-tables.h: regenerate file.
svn path=/branches/mono-1-0/mono/; revision=34790
2004-10-07 17:21:58 +00:00
Jackson Harper a7d64001e4 * pt.xml: We need a space after R$. Is there a better way to do
this? I should know...
	* pt_BR.xml: Fix currency format.

svn path=/branches/mono-1-0/mono/; revision=34786
2004-10-07 16:51:25 +00:00
nobody 7f449e7aff This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mono/; revision=34785
2004-10-07 16:51:25 +00:00
Atsushi Eno 0bfc11990a 2004-10-08 Atsushi Enomoto <[email protected]>
* DateTime.cs : When it it not exact parse, 'Z' is allowed as a suffix
	  of m/s/t/z. This fixes bug 66723.

svn path=/branches/mono-1-0/mcs/; revision=34781
2004-10-07 15:15:12 +00:00
Zoltan Varga 05e78aac87 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=34777
2004-10-07 13:12:29 +00:00
Jackson Harper 10fe51d67b * pt.xml: We need a space after R$. Is there a better way to do
this? I should know...
	* pt_BR.xml: Fix currency format.

svn path=/trunk/mono/; revision=34771
2004-10-07 03:51:07 +00:00
Gonzalo Paniagua Javier eb59dab15d 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: if the file is removed between reading the
	directory and filling the file info, catch the exception and ignore the
	file. Fixes bug #59482.

svn path=/branches/mono-1-0/mcs/; revision=34768
2004-10-07 00:46:54 +00:00
Gonzalo Paniagua Javier c995669093 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: if the file is removed between reading the
	directory and filling the file info, catch the exception and ignore the
	file. Fixes bug #59482.

svn path=/trunk/mcs/; revision=34767
2004-10-07 00:44:12 +00:00
Gonzalo Paniagua Javier f978d1c957 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
	pattern has no wildcards. Fixes bug #67447.

svn path=/branches/mono-1-0/mcs/; revision=34766
2004-10-07 00:30:03 +00:00
Gonzalo Paniagua Javier 0556ad0e07 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
	pattern has no wildcards. Fixes bug #67447.

svn path=/trunk/mcs/; revision=34765
2004-10-07 00:29:30 +00:00
John Luke 882f5bfa49 2004-10-05 John Luke <[email protected]>
* cs-parser.jay: add location to error CS0175

svn path=/trunk/mcs/; revision=34764
2004-10-06 17:25:26 +00:00
Zoltan Varga 44bfd4ea8d 2004-10-06 Zoltan Varga <[email protected]>
* TypeTest.cs: Add tests for GetInterfaces ().

svn path=/trunk/mcs/; revision=34762
2004-10-06 14:35:24 +00:00
Zoltan Varga 0b57ed8147 2004-10-06 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetInterfaces): Include interfaces
	implemented by other interfaces in the result. Fixes #65764.

svn path=/trunk/mono/; revision=34761
2004-10-06 14:33:09 +00:00
Sanja Gupta a1819f33c8 ChangeLog: Updated ChangeLog.
IButtonControl.cs: Corrected property name.

svn path=/trunk/mcs/; revision=34760
2004-10-06 12:57:24 +00:00
Jordi Mas i Hernandez b89b37c7e0 removes warnings from compilation
svn path=/trunk/mcs/; revision=34758
2004-10-06 09:59:05 +00:00
Paolo Molaro b67d64bf1b Wed Oct 6 12:40:28 CEST 2004 Paolo Molaro <[email protected]>
* inssel-ppc.brg: added a couple of speedup rules.

svn path=/trunk/mono/; revision=34757
2004-10-06 09:25:03 +00:00
Paolo Molaro 46773fcd43 Wed Oct 6 12:37:54 CEST 2004 Paolo Molaro <[email protected]>
* String.cs: make GetHashCode() managed.

svn path=/trunk/mcs/; revision=34756
2004-10-06 09:22:06 +00:00
Anirban Bhattacharjee 73975d58ce 2004-10-06 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Added support for Call keyword in invocation statement

svn path=/trunk/mcs/; revision=34755
2004-10-06 09:15:26 +00:00
Jordi Mas i Hernandez 17ebcc38dc insert line break
svn path=/trunk/mcs/; revision=34754
2004-10-06 08:43:37 +00:00
Zoltan Varga 7fc7f6f8e6 Merge from HEAD
svn path=/branches/mono-1-0/mcs/; revision=34753
2004-10-06 08:22:41 +00:00
Zoltan Varga 705efbacab 2004-10-06 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (GetTypes): Fix length of returned array. Fixes
	#65931.

svn path=/trunk/mcs/; revision=34752
2004-10-06 08:19:49 +00:00
Gonzalo Paniagua Javier 4ef99e858b 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: error code is 403 and the message different when
	trace is enabled but not for remote clients.

svn path=/branches/mono-1-0/mcs/; revision=34751
2004-10-06 05:47:21 +00:00
Gonzalo Paniagua Javier 2c0860c663 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: error code is 403 and the message different when
	trace is enabled but not for remote clients.

svn path=/trunk/mcs/; revision=34750
2004-10-06 05:46:02 +00:00
Gonzalo Paniagua Javier 1aed6001de 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
	changes when Transfer or Execute are used, not FilePath.

	* System.Web/HttpServerUtility.cs: moved form saving/restoring from
	Transfer to Execute, as it's needed there too. the query string is
	correctly set now. Fixes bug #67388.

	* System.Web/HttpContext.cs:
	* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
	instead of SetFilePath.

svn path=/branches/mono-1-0/mcs/; revision=34749
2004-10-06 04:50:46 +00:00
Gonzalo Paniagua Javier 6ed6c3f05f forgotten
svn path=/trunk/mcs/; revision=34748
2004-10-06 04:48:57 +00:00
Gonzalo Paniagua Javier 50e3e9fef4 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: CurrentExecutionFilePath is the one that
	changes when Transfer or Execute are used, not FilePath.

	* System.Web/HttpServerUtility.cs: moved form saving/restoring from
	Transfer to Execute, as it's needed there too. the query string is
	correctly set now. Fixes bug #67388.

	* System.Web/HttpContext.cs:
	* System.Web.SessionState/SessionStateModule.cs: use SetCurrentExePath
	instead of SetFilePath.

svn path=/trunk/mcs/; revision=34747
2004-10-06 04:48:39 +00:00
César Natarén 9b713bba27 2004-10-06 Cesar Lopez Nataren <[email protected]>
* expression.cs: added support for function calls. Handle case of
	print where no args are supplied.

svn path=/trunk/mcs/; revision=34746
2004-10-06 04:34:01 +00:00
Umadevi S ffda989f3e 2004-10-06 Umadevi S <[email protected]>
* System.Data.dll.sources : Added ISqlNotificationReceiver, SqlNotifcationType,
                SqlNotificationInfo, SqlNotificationSource

svn path=/trunk/mcs/; revision=34745
2004-10-06 04:24:01 +00:00
Umadevi S 8de1969f14 2004-10-06 Umadevi S <[email protected]>
* ISqlNoticationReceiver.cs - changed namespace
        * Added files SqlNotificationType.cs, SqlNotificationInfo.cs, SqlNotificationSource.cs

svn path=/trunk/mcs/; revision=34744
2004-10-06 04:20:14 +00:00
Atsushi Eno 55f818a438 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathSequence.cs, XQueryTokenizer.cs :
	  removed commented && unused code.
	* XQueryContext.cs, XQueryCliFunction.cs, XQueryFunction.cs,
	  XQueryFunctionCliImpl.cs :
	  Now that position() requires current sequence that is not managed by
	  XQueryContextManager (that is for FLWOR), it need to support
	  XPathSequence input as the current node information.

svn path=/trunk/mcs/; revision=34741
2004-10-06 00:35:57 +00:00
Zoltan Varga 096ce4191c 2004-10-06 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal):
	Handle unloadable modules without crashing.

	* image.c (load_modules): Revert the previous patch since modules must
	have a fixed index inside the array.

svn path=/trunk/mono/; revision=34737
2004-10-05 22:43:01 +00:00
César Natarén 12f3c5e8d4 2004-10-05 Cesar Lopez Nataren <[email protected]>
* ast.cs: added GetContainerFunction property.
	* Statement.cs: added class NotVoidReturnEventArgs and delegate
	NotVoidReturnEventHandler, throw an event in case we find a
	return, the enclosing function object takes care of changing the
	return type of the function.
	* FunctionDeclaration.cs, FunctionExpression.cs: take care of
	return's inside functions.

2004-09-22  Cesar Lopez Nataren  <[email protected]>

svn path=/trunk/mcs/; revision=34736
2004-10-05 22:36:30 +00:00
Zoltan Varga e6fd659155 2004-10-06 Zoltan Varga <[email protected]>
* image.c (load_modules): Don't include native modules in the modules
	array.

svn path=/trunk/mono/; revision=34735
2004-10-05 22:15:05 +00:00
Atsushi Eno 166ee63ee3 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs : missing Init() definition for float and string;
	  latter one resulted in infinite loop in Init(object,XmlSchemaType).

svn path=/trunk/mcs/; revision=34733
2004-10-05 21:01:49 +00:00
Jackson Harper 7ff4988b08 Fix ctor
svn path=/trunk/mcs/; revision=34732
2004-10-05 18:23:54 +00:00
Gonzalo Paniagua Javier 19141d7309 removed Console
svn path=/branches/mono-1-0/mcs/; revision=34731
2004-10-05 18:13:53 +00:00
Atsushi Eno 51c45aa436 2004-10-05 Atsushi Enomoto <[email protected]>
* XQueryParser.jay, XQueryTokenizer.cs :
	  Added attribute value template support.
	* XPath2Expression.cs : Inside attribute value, expressions must not
	  serialize attributes as attribute node but should just pick value up.
	  e.g. attr="{foo/@bar}" and <elem>{foo/@bar}</elem> are different.

svn path=/trunk/mcs/; revision=34730
2004-10-05 17:47:08 +00:00
Zoltan Varga 4451cdeea0 2004-10-05 Zoltan Varga <[email protected]>
* Makefile.am (genmdesc_LDADD): Don't link this against libmetadata
	to speed up rebuilds.

svn path=/trunk/mono/; revision=34729
2004-10-05 17:15:15 +00:00
Peter Dennis Bartok c9642ee2eb - Partial implementation by Benjamin Dasnois
svn path=/trunk/mcs/; revision=34728
2004-10-05 17:10:57 +00:00
John Luke 1f90c1aa12 2004-10-05 John Luke <[email protected]>
* Makefile: add *.mdb to clean target

svn path=/trunk/mcs/; revision=34727
2004-10-05 17:04:10 +00:00
Jackson Harper 527aed6ee9 Improve rendering of the radio button patch by John BouAntoun
svn path=/trunk/mcs/; revision=34726
2004-10-05 16:15:30 +00:00
Sebastien Pouliot 9baf8bc4c3 2004-10-05 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Fixed bug where a change to a permission
	(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
	to clear existing entries.

svn path=/branches/mono-1-0/mcs/; revision=34725
2004-10-05 15:58:59 +00:00
Sebastien Pouliot 1eebc646d3 2004-10-05 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Fixed bug where a change to a permission
	(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
	to clear existing entries.

svn path=/trunk/mcs/; revision=34724
2004-10-05 15:57:43 +00:00
Miguel de Icaza c3ea191f0e Improve test to handle constants of classes whose value is null
svn path=/trunk/mcs/; revision=34723
2004-10-05 14:32:51 +00:00
Sebastien Pouliot 59a7a67d5f 2004-10-05 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed InputBuffer to internal (was protected).

svn path=/branches/mono-1-0/mcs/; revision=34722
2004-10-05 14:19:03 +00:00
Sebastien Pouliot 5451ab0192 2004-10-05 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed InputBuffer to internal (was protected).

svn path=/trunk/mcs/; revision=34720
2004-10-05 14:16:44 +00:00
Atsushi Eno c10e9c5879 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : Actually all other kind of nodes than
	  Element and Root must be treated as "start node only" as well as
	  attributes and namespaces.

svn path=/trunk/mcs/; revision=34718
2004-10-05 13:48:02 +00:00
Atsushi Eno 85afdc362c 2004-10-05 Atsushi Enomoto <[email protected]>
* XPathDocument2Editable.cs : for WriteAttributes(), use
	  CreateAttributesWriter() that creates attribute tree XmlWriter.
	* XPathNavigatorReader.cs : the reader was missing attributes when
	  it is created with an element node that has attriibutes.

svn path=/trunk/mcs/; revision=34717
2004-10-05 13:09:25 +00:00
Raja R Harinath 62f2bd39d9 New testcases for type-resolution.
svn path=/trunk/mcs/; revision=34716
2004-10-05 11:33:05 +00:00
Zoltan Varga fca6d5f5bc 2004-10-04 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (DefineType): Check for duplicate type names. Fixes
	#65988.

svn path=/trunk/mcs/; revision=34715
2004-10-05 11:30:45 +00:00
Zoltan Varga 1cb4a802a3 2004-10-05 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add tests for default values for parameters.

svn path=/trunk/mcs/; revision=34714
2004-10-05 11:29:59 +00:00
Zoltan Varga e7f6b686f6 2004-10-05 Zoltan Varga <[email protected]>
* reflection.h: Add param_defaults field.

	* reflection.c: Add support for parameter defaults in dynamic methods.
	Fixes #64595.

svn path=/trunk/mono/; revision=34713
2004-10-05 11:20:34 +00:00
Zoltan Varga 816550c96b 2004-10-05 Zoltan Varga <[email protected]>
* TypeTest.cs: Add test for empty namespaces.

svn path=/trunk/mcs/; revision=34712
2004-10-05 09:24:13 +00:00
Zoltan Varga 7f6414b598 2004-10-05 Zoltan Varga <[email protected]>
* icall.c (ves_icall_MonoType_get_Namespace): Return NULL instead of
	an empty string when a type has no namespace. Fixes #64230.

svn path=/trunk/mono/; revision=34711
2004-10-05 09:20:13 +00:00
Ravindra 2eb053f5ae - Removed a private method, Draw ().
- Fixed the ButtonDropDown event handling.
	- Fixed MouseMove event handling.

svn path=/trunk/mcs/; revision=34709
2004-10-05 09:07:07 +00:00
Ravindra c4d76288f0 - Added DrawListView method and ListViewDefaultSize property.
- Changed ControlPaint method calls to CPDrawXXX wherever possible.
	- Changed DOS style CRLF to Unix format (dos2unix).

svn path=/trunk/mcs/; revision=34708
2004-10-05 09:04:31 +00:00
Ravindra 731ab3fd05 - Added DrawListView method and ListViewDefaultSize property.
svn path=/trunk/mcs/; revision=34707
2004-10-05 09:03:55 +00:00
Ravindra 09e2f61b58 Added an internal member dd_pressed to handle clicks on DropDown arrow.
svn path=/trunk/mcs/; revision=34706
2004-10-05 08:42:20 +00:00
Anirban Bhattacharjee 53587521d4 2004-10-05 Anirban Bhattacharjee <[email protected]>
* Interaction.cs:
        * Strings.cs :
                Few important fixes

svn path=/branches/mono-1-0/mcs/; revision=34705
2004-10-05 07:59:17 +00:00
Jackson Harper e67bdc2854 Let the base Control handle the buffers, derived classes should not have to CreateBuffers themselves.
svn path=/trunk/mcs/; revision=34704
2004-10-05 04:56:12 +00:00
Jackson Harper b9005253e8 The control handles resizing the buffers now.
svn path=/trunk/mcs/; revision=34701
2004-10-05 03:20:55 +00:00
Jackson Harper d3c2032cd0 When resizing the buffers should be invalidated. This should be handled in Control not in derived classes.
svn path=/trunk/mcs/; revision=34700
2004-10-05 03:18:16 +00:00
Gonzalo Paniagua Javier 4066588651 2004-10-05 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
	* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
	SetInternal.

svn path=/branches/mono-1-0/mcs/; revision=34699
2004-10-05 01:54:16 +00:00
Gonzalo Paniagua Javier 3ca52666c9 2004-10-05 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: use RemoveAndAdd for headers multivalue headers.
	* WebHeaderCollection.cs: added RemoveAndAdd that behaves like the old
	SetInternal.

svn path=/trunk/mcs/; revision=34698
2004-10-05 01:53:40 +00:00
John Luke 075dbfc004 2004-10-04 John Luke <[email protected]>
* cs8205.cs: remove, same as cs1624
        * cs8206.cs: fix yield syntax, and add line number, now passes
        * cs8207.cs: remove, same as cs1623
        * cs8208.cs: remove, same as cs1625
        * cs8209.cs: remove, same as cs1631

svn path=/trunk/mcs/; revision=34695
2004-10-04 22:40:16 +00:00
Sebastien Pouliot e123b08a6a 2004-10-04 Sebastien Pouliot <[email protected]>
* dump.c: Added new "internal" security actions for non-CAS demands:
	NonCasDemand, NonCasLinkDemand and NonCasInheritance.
	* main.c: Added new "internal" security actions for non-CAS demands:
	noncasdemand, noncaslinkdemand and noncasinheritance.

svn path=/trunk/mono/; revision=34694
2004-10-04 22:22:47 +00:00
Sebastien Pouliot b73cc9a3bd 2004-10-04 Sebastien Pouliot <[email protected]>
* tabledefs.h: Added "internal" security actions to support non-CAS
	permissions NonCasDemand, NonCasLinkDemand and NonCasInheritance.
	Note: they do not seems to be used anymore in 2.0 (new metadata format)

svn path=/trunk/mono/; revision=34693
2004-10-04 22:21:53 +00:00
Atsushi Eno 931efe6671 2004-10-04 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : TypedValue could be implemented.
	* XPathEditableNavigator.cs : removed some MonoTODO since now there
	  are implementations.

svn path=/trunk/mcs/; revision=34692
2004-10-04 22:04:53 +00:00
Atsushi Eno 375e5aa0c7 2004-10-04 Atsushi Enomoto <[email protected]>
* XQueryParser.jay, XPath2Expression.cs, XPathSequence.cs :
	  two or more Filter expressions could be simply constructed as
	  nested FilterExpr objects.

svn path=/trunk/mcs/; revision=34691
2004-10-04 22:01:48 +00:00
Atsushi Eno a252366b96 2004-10-04 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
	  For attribute nodes, it should not use WriteSubtree() which does not
	  support attribute nodes.

svn path=/trunk/mcs/; revision=34690
2004-10-04 21:59:19 +00:00
Atsushi Eno 090ff35320 2004-10-04 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : It can reject attribute and namespace
	  nodes as its input (It is used only for WriteNode(), InsertBefore()
	  and so on, which are not intended to be used with attribute nodes).
	  On Initial state, it was Element that should check IsEmptyElement,
	  and Root should just go to the first child node.

svn path=/trunk/mcs/; revision=34689
2004-10-04 21:57:50 +00:00
Jackson Harper 97e090a6cd oops
svn path=/trunk/mcs/; revision=34688
2004-10-04 20:45:25 +00:00
Miguel de Icaza 6e26acaedb 2004-10-04 Miguel de Icaza <[email protected]>
* ecore.cs (Expression.Constantity): Add support for turning null
	into a constant.

	* const.cs (Const.Define): Allow constants to be reference types
	as long as the value is Null.

svn path=/trunk/mcs/; revision=34687
2004-10-04 20:43:48 +00:00
Miguel de Icaza cdb3e827d8 nullref is what should be printed out here
svn path=/trunk/mono/; revision=34686
2004-10-04 20:42:22 +00:00
Atsushi Eno f2cbdf35f7 2004-10-04 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : When the reader's root node is not of type
	  Root, it incorrectly skipped the node itself.

svn path=/trunk/mcs/; revision=34685
2004-10-04 20:30:23 +00:00
Gonzalo Paniagua Javier e78bbebe46 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
	tunneling a secure connection.

	* ServicePoint.cs: added UseConnect property.

	* ServicePointManager.cs: set the UseConnect property when we use a http
	proxy for a https connection.

	* WebConnection.cs: setup the tunnled connection when using a proxy and
	https.

svn path=/branches/mono-1-0/mcs/; revision=34684
2004-10-04 20:30:01 +00:00
Gonzalo Paniagua Javier 5a3ff91231 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: the .ctor receives a pre-read buffer now.
	* SslClientStream.cs: added InputBuffer property.

svn path=/branches/mono-1-0/mcs/; revision=34683
2004-10-04 20:28:19 +00:00
Gonzalo Paniagua Javier 7b5d49ae29 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: ProxyQuery returns true when we use a proxy without
	tunneling a secure connection.

	* ServicePoint.cs: added UseConnect property.

	* ServicePointManager.cs: set the UseConnect property when we use a http
	proxy for a https connection.

	* WebConnection.cs: setup the tunnled connection when using a proxy and
	https.

svn path=/trunk/mcs/; revision=34682
2004-10-04 20:25:38 +00:00
Gonzalo Paniagua Javier 0c0907fb08 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* HttpsClientStream.cs: the .ctor receives a pre-read buffer now.
	* SslClientStream.cs: added InputBuffer property.

svn path=/trunk/mcs/; revision=34681
2004-10-04 20:25:24 +00:00
Zoltan Varga a120cadcc6 2004-10-04 Zoltan Varga <[email protected]>
* icall.c (ves_icall_InternalInvoke): Throw an exception when calling
	constructor of abstract class. Fixes #61689.

svn path=/trunk/mono/; revision=34680
2004-10-04 20:09:33 +00:00
Atsushi Eno bbf3065590 2004-10-04 Atsushi Enomoto <[email protected]>
* HtmlEmitter.cs : TH tag is not regarded as HTML tag.
	  This fixes bug #67390.

svn path=/branches/mono-1-0/mcs/; revision=34679
2004-10-04 19:30:44 +00:00
Atsushi Eno bfbcc064d4 2004-10-04 Atsushi Enomoto <[email protected]>
* HtmlEmitter.cs : TH tag is not regarded as HTML tag.
	  This fixes bug #67390.

svn path=/trunk/mcs/; revision=34678
2004-10-04 19:30:12 +00:00
Zoltan Varga 59a21406a4 2004-10-04 Zoltan Varga <[email protected]>
* web/team.xml: Update my info.

svn path=/trunk/mono/; revision=34677
2004-10-04 19:29:21 +00:00
Juraj Skripsky 5c4138c242 2004-10-04 Juraj Skripsky <[email protected]>
* namespace.cs (NamespaceEntry.Using): No matter which warning
	level is set, check if this namespace name has already been added.

svn path=/branches/mono-1-0/mcs/; revision=34676
2004-10-04 18:43:34 +00:00
Juraj Skripsky f26a7366ad 2004-10-04 Juraj Skripsky <[email protected]>
* namespace.cs (NamespaceEntry.Using): No matter which warning
	level is set, check if this namespace name has already been added.

svn path=/trunk/mcs/; revision=34675
2004-10-04 18:10:27 +00:00
Zoltan Varga 9a81eb4339 Merge from HEAD
svn path=/branches/mono-1-0/mcs/; revision=34674
2004-10-04 16:25:41 +00:00
Zoltan Varga 86591cf11a 2004-10-04 Zoltan Varga <[email protected]>
* AppDomain.cs: Make ThreadStatic variables static. Fixes #56614.

svn path=/trunk/mcs/; revision=34673
2004-10-04 16:17:37 +00:00
Miguel de Icaza f603fd0670 Add zlib_macros.c from Chris Lahey
svn path=/trunk/mono/; revision=34672
2004-10-04 15:36:04 +00:00
Atsushi Eno 0b1c73c1f7 2004-10-04 Atsushi Enomoto <[email protected]>
* DataSet.cs : For a row, when a relation is not nested, then it is
	  still output target since it won't be written as a child of its
	  parent. It fixes bug #66379.

svn path=/branches/mono-1-0/mcs/; revision=34671
2004-10-04 13:37:10 +00:00
Atsushi Eno e8c49cbcd4 2004-10-04 Atsushi Enomoto <[email protected]>
* DataSet.cs : For a row, when a relation is not nested, then it is
	  still output target since it won't be written as a child of its
	  parent. It fixes bug #66379.

svn path=/trunk/mcs/; revision=34670
2004-10-04 13:36:37 +00:00
Sanja Gupta 1457a9c4dc ChangeLog: Updated ChangeLog.
ParameterCollection.cs: Updated.

svn path=/trunk/mcs/; revision=34669
2004-10-04 12:56:58 +00:00
Zoltan Varga fe1d162935 2004-10-04 Zoltan Varga <[email protected]>
* NGenAttribute.cs: Add ComVisible (false).

svn path=/trunk/mcs/; revision=34668
2004-10-04 12:33:39 +00:00
Raja R Harinath a1579959ab * System.IO.Compression/DeflateStreamTest.cs: NET_2_0 only.
* System.IO.Compression/GzipStreamTest.cs: Likewise.
Report from Mayank Ritvik <[email protected]>.

svn path=/trunk/mcs/; revision=34667
2004-10-04 12:15:10 +00:00
Sanja Gupta ee356822ed ChangeLog: Updated ChangeLog.
Parameter.cs: Updated and completed implementation.

svn path=/trunk/mcs/; revision=34666
2004-10-04 12:04:22 +00:00
Martin Baulig b085171f11 2004-10-04 Martin Baulig <[email protected]>
* class-internals.h (MonoGenericContainer): New type.
	(MonoMethodNormal): Replaced `MonoGenericParam *gen_params' with
	`MonoGenericContainer *generic_container'.
	(MonoClass): Replaced `gen_params' and `num_gen_params' with
	`MonoGenericContainer *generic_container'.

	* metadata.c (mono_metadata_load_generic_params): Return a
	`MonoGenericContainer *' instead of a `MonoGenericParam *';
	removed the `num' argument.

svn path=/trunk/mono/; revision=34665
2004-10-04 12:04:11 +00:00
Neale Ferguson ca4dc9a43d Minor fix to OP_OR_IMM.
svn path=/trunk/mono/; revision=34664
2004-10-04 11:57:04 +00:00
Zoltan Varga 491cb45330 2004-10-04 Zoltan Varga <[email protected]>
* *.cs: Add some more 2.0 stuff.

svn path=/trunk/mcs/; revision=34663
2004-10-04 11:53:13 +00:00
Ravindra d80a3f7586 Updated project.
svn path=/trunk/mcs/; revision=34662
2004-10-04 10:58:41 +00:00
Zoltan Varga 0f2a7f89bc 2004-10-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add more 2.0 classes under System.Runtime.InteropServices.

svn path=/trunk/mcs/; revision=34661
2004-10-04 09:55:07 +00:00
Zoltan Varga 82416566c3 2004-10-04 Zoltan Varga <[email protected]>
* *.cs: Add more 2.0 stuff.

svn path=/trunk/mcs/; revision=34660
2004-10-04 09:51:57 +00:00
Zoltan Varga d0e8c70c5e 2004-10-04 Zoltan Varga <[email protected]>
* MethodImplOptions.cs MethodCodeType.cs RuntimeHelpers.cs DecimalConstantAttribute.cs: Add 2.0 stuff.

svn path=/trunk/mcs/; revision=34659
2004-10-04 09:41:04 +00:00
Zoltan Varga 348fbc5da2 Merge from HEAD.
svn path=/branches/mono-1-0/mcs/; revision=34658
2004-10-04 09:25:50 +00:00
Zoltan Varga ca67deeefd 2004-10-04 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (DefineType): Check for duplicate type names. Fixes
	#65988.

svn path=/trunk/mcs/; revision=34657
2004-10-04 09:23:28 +00:00
Zoltan Varga 75d4659421 2004-10-04 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add new 2.0 classes under System.Runtime.InteropServices.

svn path=/trunk/mcs/; revision=34656
2004-10-04 09:04:59 +00:00
Zoltan Varga b10dce9bf9 2004-10-04 Zoltan Varga <[email protected]>
* *.cs: Add new 2.0 classes.

svn path=/trunk/mcs/; revision=34655
2004-10-04 09:01:29 +00:00
Peter Dennis Bartok df43f8117e - Initial check-in
svn path=/trunk/mcs/; revision=34654
2004-10-04 08:14:40 +00:00
Ravindra ff72cf3b67 * gdipFunctioncs.cs: Backporting. Fix from Alois for bug #67383.
svn path=/branches/mono-1-0/mcs/; revision=34653
2004-10-04 07:58:55 +00:00
Ravindra 625d1e6cab * gdipFunctioncs.cs: Fix from Alois for bug #67383.
svn path=/trunk/mcs/; revision=34652
2004-10-04 07:53:06 +00:00
Jordi Mas i Hernandez 273cee6877 fixes right button position causing right button not showing on horizontal scrollbars
svn path=/trunk/mcs/; revision=34651
2004-10-04 07:09:37 +00:00
Gonzalo Paniagua Javier 68fceaaea4 2004-10-04 Gonzalo Paniagua Javier <[email protected]>
* system.c: check the number of online processors instead of the
	existing ones. Sanitize return value if it's an error.

svn path=/trunk/mono/; revision=34650
2004-10-04 02:37:00 +00:00
Ben Maurer 88c778b4f0 2004-10-03 Ben Maurer <[email protected]>
* expression.cs: reftype [!=]= null should always use br[true,false].
 	# 67410

svn path=/branches/mono-1-0/mcs/; revision=34649
2004-10-04 01:46:17 +00:00
Ben Maurer ac0c751f8d 2004-10-03 Ben Maurer <[email protected]>
* expression.cs: reftype [!=]= null should always use br[true,false].
	# 67410

svn path=/trunk/mcs/; revision=34648
2004-10-04 01:38:46 +00:00
Ben Maurer af8ea6d8c7 build fixeroo
svn path=/trunk/mcs/; revision=34647
2004-10-04 01:09:47 +00:00
Atsushi Eno d4778fa871 2004-10-03 Atsushi Enomoto <[email protected]>
* DataSet.cs : Attribute constraint field XPath must be written as
	  @blah. This fixes bug #66366.

svn path=/trunk/mcs/; revision=34646
2004-10-04 00:37:52 +00:00
Atsushi Eno 684d3741e0 2004-10-03 Atsushi Enomoto <[email protected]>
* DataSet.cs : Attribute constraint field XPath must be written as
	  @blah. This fixes bug #66366.

svn path=/branches/mono-1-0/mcs/; revision=34645
2004-10-04 00:37:12 +00:00
Ben Maurer 0c593051b4 2004-10-03 Ben Maurer <[email protected]>
* HttpResponse.cs: use UtcNow

svn path=/branches/mono-1-0/mcs/; revision=34643
2004-10-03 21:59:24 +00:00
Ben Maurer 7ddb1b82b0 2004-10-03 Ben Maurer <[email protected]>
* HttpResponse.cs: use UtcNow

svn path=/trunk/mcs/; revision=34642
2004-10-03 21:59:09 +00:00
Ben Maurer 91b53198a3 2004-10-03 Ben Maurer <[email protected]>
* Cache.cs, CacheEntry.cs, CacheExpires.cs, ExpiresBuckets.cs:
	use UtcNow rather than Now.

svn path=/branches/mono-1-0/mcs/; revision=34641
2004-10-03 21:56:21 +00:00
Ben Maurer c06c79073a 2004-10-03 Ben Maurer <[email protected]>
* Cache.cs, CacheEntry.cs, CacheExpires.cs, ExpiresBuckets.cs:
	use UtcNow rather than Now.

svn path=/trunk/mcs/; revision=34640
2004-10-03 21:55:41 +00:00
Marek Safar 48a85faff5 2004-10-03 Marek Safar <[email protected]>
* test-297.cs: Incorporated test for #67108

svn path=/trunk/mcs/; revision=34639
2004-10-03 20:54:49 +00:00
Ben Maurer 3017fb8e70 2004-10-03 Ben Maurer <[email protected]>
* system.c: Add support for getting the # of cpus.

svn path=/trunk/mono/; revision=34638
2004-10-03 20:54:10 +00:00
Zoltan Varga 320c781d23 2004-10-04 Zoltan Varga <[email protected]>
* Runtime*Handle.cs ModuleHandle.cs: Add Equals + GetHashCode.

	* ModuleHandle.cs: Add missing methods.

	* RuntimeTypeHandle.cs: Add GetModuleHandle () method.

svn path=/trunk/mcs/; revision=34637
2004-10-03 20:52:58 +00:00
Marek Safar 9e42c4e1ac 2004-10-03 Marek Safar <[email protected]>
Fix #67108
	* attribute.cs: Enum conversion moved to
	GetAttributeArgumentExpression to be applied to the all
	expressions.

svn path=/trunk/mcs/; revision=34636
2004-10-03 20:52:58 +00:00
Zoltan Varga a55915e15b 2004-10-03 Zoltan Varga <[email protected]>
* tramp-sparc.c (sparc_magic_trampoline): Handle appdomain stuff
	better. Fixes appdomain-unload.exe on sparc.

svn path=/trunk/mono/; revision=34635
2004-10-03 19:05:39 +00:00
Zoltan Varga 66791c4e0f 2004-10-03 Zoltan Varga <[email protected]>
* AttributeTargets.cs: Add 2.0 GenericParameter value.

svn path=/trunk/mcs/; revision=34634
2004-10-03 18:02:38 +00:00
Miguel de Icaza 92f9f4c961 Update
svn path=/trunk/mono/; revision=34633
2004-10-03 16:44:36 +00:00
Zoltan Varga 07f45b1a9d 2004-10-03 Zoltan Varga <[email protected]>
* AssemblyBuilderAccess.cs: Remove [Flags].

	* PackingSize.cs: Add new 2.0 members. Remove [Flags].

	* AssemblyBuilder.cs: Add net 2.0 Save method.

	* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
	net 2.0. Reorganize fields so the layout visible to the runtime is the
	same under 1.0 and 2.0. Add 2.0 properties.

svn path=/trunk/mcs/; revision=34632
2004-10-03 16:31:32 +00:00
Zoltan Varga 786d6ceda6 2004-10-03 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Module_GetPEKind): Add support
	for dynamic images.

	* object-internals.h (MonoReflectionAssemblyBuilder): Add pe_kind and
	machine fields.

	* metadata-internals.h (MonoDynamicImage): Add pe_kind and machine fields.

	* reflection.c: Save pe_kind and machine values into the generated
	image file.

svn path=/trunk/mono/; revision=34631
2004-10-03 16:29:27 +00:00
Zoltan Varga 5a2650b1ba 2004-10-03 Zoltan Varga <[email protected]>
* appdomain.c: Bump corlib version number.

	* object-internals.h: Reorganize layout of LocalBuilder.

svn path=/trunk/mono/; revision=34630
2004-10-03 15:47:30 +00:00
Zoltan Varga 272e4b3fcf 2004-10-03 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=34629
2004-10-03 15:46:04 +00:00
Zoltan Varga 9185df356b 2004-10-03 Zoltan Varga <[email protected]>
* LocalBuilder.cs: Make this inherit from LocalVariableInfo under
	net 2.0. Reorganize fields so the layout visible to the runtime is the
	same under 1.0 and 2.0. Add 2.0 properties.

svn path=/trunk/mcs/; revision=34628
2004-10-03 15:44:24 +00:00
Zoltan Varga b9fd49724d 2004-10-03 Zoltan Varga <[email protected]>
* LocalVariableInfo.cs: Reorganize fields so LocalBuilder can inherit
	from this class.

svn path=/trunk/mcs/; revision=34627
2004-10-03 15:42:23 +00:00
Zoltan Varga f1bb274310 2004-10-03 Zoltan Varga <[email protected]>
* class-internals.h class.c (mono_class_get_implemented_interfaces):
	New helper function.

svn path=/trunk/mono/; revision=34626
2004-10-03 13:44:52 +00:00
Zoltan Varga c7b43da48d 2004-10-03 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes): Return the
	created MonoType for dynamic types. Fixes #66180.

svn path=/trunk/mono/; revision=34625
2004-10-03 12:48:09 +00:00
Ben Maurer ff10e7df78 2004-10-02 Ben Maurer <[email protected]>
* threadpool.c: the ares hashtable needs a critical section around it.
	this prevents some nasty segfaults

svn path=/branches/mono-1-0/mono/; revision=34623
2004-10-02 23:54:32 +00:00
Ben Maurer 9fe9c1338f 2004-10-02 Ben Maurer <[email protected]>
* threadpool.c: the ares hashtable needs a critical section around it.
	this prevents some nasty segfaults

svn path=/trunk/mono/; revision=34622
2004-10-02 23:51:07 +00:00
Massimiliano Mantione 3dc7b6a845 Updated the changelogs to give credit to [email protected] (Ville-Pertti Keinonen) for the patch and put the bug number.
svn path=/trunk/mono/; revision=34621
2004-10-02 21:12:06 +00:00
Massimiliano Mantione bdf234490a 2004-10-02 Massimiliano Mantione <[email protected]>
* ssa.c: Fixed casts to unsigned where the value was of 64 bits in
	simulate_long_compare.

	* process.c: Fixed alignments to 32 bits (casting to unsigned is unsafe on
	64 bits platforms).

svn path=/trunk/mono/; revision=34620
2004-10-02 20:45:31 +00:00
Miguel de Icaza ebcd5acafb Apply fix from [email protected] (Joe Gasiorek)
svn path=/trunk/mcs/; revision=34619
2004-10-02 19:48:46 +00:00
Peter Dennis Bartok 84d408d0da - Simplified the Invalidate method by using an X call instead of generating
the expose ourselves
- Added an expose when the window background is changed
- Implemented ClientToScreen method

svn path=/trunk/mcs/; revision=34618
2004-10-02 19:12:18 +00:00
Peter Dennis Bartok d40f6e00d9 - Added Win32EnableWindow method (test for implementing modal dialogs)
- Added ClientToScreen method and imports

svn path=/trunk/mcs/; revision=34617
2004-10-02 19:08:38 +00:00
Peter Dennis Bartok ef89bcc210 - Added ClientToScreen coordinate translation method
svn path=/trunk/mcs/; revision=34616
2004-10-02 19:07:36 +00:00
Peter Dennis Bartok eb6aa01ddd - Fixed access level for constructor
svn path=/trunk/mcs/; revision=34615
2004-10-02 19:06:40 +00:00
Peter Dennis Bartok d2cf640882 - Changed access level for the window_collection hash table
svn path=/trunk/mcs/; revision=34614
2004-10-02 19:06:20 +00:00
Peter Dennis Bartok 8e71ec9f0d - Added KeyPreview property
- Added Menu property (still incomplete, pending Jordi's menu work)
- Implemented ProcessCmdKey
- Implemented ProcessDialogKey
- Implemented ProcessKeyPreview

svn path=/trunk/mcs/; revision=34613
2004-10-02 19:05:52 +00:00
Peter Dennis Bartok d81ea2c6b4 - Added private method to get the Control object from the window handle
- Implemented ContextMenu property
- Implemented PointToScreen
- Implemented PreProcessMessage
- Implemented IsInputChar
- Implemented IsInputKey
- Implemented ProcessCmdKey
- Completed ProcessKeyEventArgs
- Fixed message loop to call the proper chain of functions on key events
- Implemented ProcessDialogChar
- Implemented ProcessDialogKey
- Implemented ProcessKeyMessage
- Implemented ProcessKeyPreview
- Added RaiseDragEvent stub (MS internal method)
- Added RaiseKeyEvent stub (MS internal method)
- Added RaiseMouseEvent stub (MS Internal method)
- Added RaisePaintEvent stub (MS Internal method)
- Added ResetMouseEventArgs stub (MS Internal method)
- Implemented RtlTranslateAlignment
- Implemented RtlTranslateContent
- Implemented RtlTranslateHorizontal
- Implemented RtlTranslateLeftRight
- Added generation of KeyPress event

svn path=/trunk/mcs/; revision=34612
2004-10-02 19:02:56 +00:00
Peter Dennis Bartok dd91676cd4 - Added LeftRightAlignment source reference
svn path=/trunk/mcs/; revision=34611
2004-10-02 18:55:20 +00:00
Miguel de Icaza ff0d74eeb5 Add System.IO.Compression from Chris Lahey ([email protected])
svn path=/trunk/mcs/; revision=34610
2004-10-02 18:48:07 +00:00
Zoltan Varga 5a3fd5b35d 2004-10-02 Zoltan Varga <[email protected]>
* Int32Test.cs: Add tests for TryParse ().

svn path=/trunk/mcs/; revision=34609
2004-10-02 14:47:25 +00:00
Zoltan Varga 873ca3789b 2004-10-02 Zoltan Varga <[email protected]>
* Int32.cs UInt32.cs Byte.cs SByte.cs Int16.cs UInt16.cs Int64.cs UInt64.cs: Implement 2.0 TryParse methods.

svn path=/trunk/mcs/; revision=34608
2004-10-02 14:46:45 +00:00
Zoltan Varga 90abab8373 2004-10-02 Zoltan Varga <[email protected]>
* jit-icalls.c: Handle a nonexisting trunc function more correctly.

svn path=/trunk/mono/; revision=34607
2004-10-02 12:55:10 +00:00
Ravindra 4319aeacd4 Added attributes.
svn path=/trunk/mcs/; revision=34606
2004-10-02 11:57:56 +00:00
Ravindra e0396e1d38 Added attributes.
svn path=/trunk/mcs/; revision=34605
2004-10-02 11:32:01 +00:00
Gert Driesen 514dcfb065 * TypeBuilderTest.cs: Added test to ensure NotSupportedException is
thrown when creating a type with a default ctor while parent does
        not have a default ctor.

svn path=/trunk/mcs/; revision=34604
2004-10-02 10:48:16 +00:00
Gert Driesen 96db215dd1 ChangeLog: removed conflict indicators
svn path=/trunk/mcs/; revision=34603
2004-10-02 10:46:45 +00:00
Gert Driesen 42c4541f58 * TypeBuilder.cs: throw NotSupportedException when defining default
ctor if parent type does not have default ctor

svn path=/trunk/mcs/; revision=34602
2004-10-02 10:44:53 +00:00
Marek Safar bfd8b9f4b3 2004-10-02 Marek Safar <[email protected]>
* CSharpCodeCompiler.cs: Fix #65722.

svn path=/trunk/mcs/; revision=34601
2004-10-01 22:12:13 +00:00
Jackson Harper b033610375 Implement the Close method so work on MessageBox can continue.
svn path=/trunk/mcs/; revision=34600
2004-10-01 17:53:26 +00:00
John Luke ac5cb1f8a9 2004-10-01 John Luke <[email protected]>
* *.cs: fix some incorrect tests by either addding a Main method,
        or adding a -t:library compiler option.  Makes one test pass, and adds
        19 to *-expect-wrong-error as they compile when they shouldn't
        * *mcs-expect-*-error: update

svn path=/trunk/mcs/; revision=34599
2004-10-01 17:42:18 +00:00
Gonzalo Paniagua Javier 9dc8009b78 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: even if the control has no children the naming container
	may contain the control we're looking for. Fixes bug #67304.

svn path=/branches/mono-1-0/mcs/; revision=34594
2004-10-01 13:14:47 +00:00
Gonzalo Paniagua Javier c1e8d7d744 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: even if the control has no children the naming container
	may contain the control we're looking for. Fixes bug #67304.

svn path=/trunk/mcs/; revision=34593
2004-10-01 13:10:44 +00:00
Sureshkumar T 9b97fa9c9b * DbProviderFactories.cs: Implemented all the stubs. Added functionality for
getting available provider factories and creating a specified provider factory.

* DbProviderFactoriesConfigurationHandler.cs: Added functionality for handling
DbProviderFactories configuration section.

* DbProviderFactory.cs: Added protected constructor. SupportedClasses property
is made abstract.

svn path=/trunk/mcs/; revision=34592
2004-10-01 13:09:13 +00:00
Sanja Gupta 9883033a63 ChangeLog: Updated ChangeLog.
ParameterCollection.cs: Resolved warnings, "Unreachable code detected"          while compilation.

svn path=/trunk/mcs/; revision=34591
2004-10-01 10:46:55 +00:00
Sanja Gupta 56dbe2544e ChangeLog: Updated ChangeLog.
AccessDataSource.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34590
2004-10-01 10:43:59 +00:00
Anirban Bhattacharjee 9403470a95 2004-10-01 Anirban Bhattacharjee <[email protected]>
* ecore.cs: Bug fixing - when event raised from other assembly

svn path=/trunk/mcs/; revision=34589
2004-10-01 08:24:19 +00:00
Raja R Harinath bbfb76d4da * cs0122-5.cs, cs0122-6.cs: New tests.
* gmcs-expect-no-error: Update.

svn path=/trunk/mcs/; revision=34587
2004-10-01 05:23:57 +00:00
Raja R Harinath 7a33bcc5e9 * Makefile (NEW_TEST_SOURCES_common): Add test-300.
* test-300.cs: New.  Test based on #65833.

svn path=/trunk/mcs/; revision=34586
2004-10-01 05:17:23 +00:00
Raja R Harinath 1ab7bd7dbd Fix #65833, test-300.cs, cs0122-5.cs, cs0122-6.cs.
* class.c (TypeContainer.DefineType): Flag error if
base types aren't accessible due to access permissions.
* decl.cs (DeclSpace.ResolveType): Move logic to
Expression.ResolveAsTypeTerminal.
(DeclSpace.ResolveTypeExpr): Thin layer over
Expression.ResolveAsTypeTerminal.
(DeclSpace.CheckAccessLevel, DeclSpace.FamilyAccess):
Refactor code into NestedAccess.  Use it.
(DeclSpace.NestedAccess): New.
* ecore.cs (Expression.ResolveAsTypeTerminal): Add new
argument to silence errors.  Check access permissions.
(TypeExpr.DoResolve, TypeExpr.ResolveType): Update.
* expression.cs (ProbeExpr.DoResolve): Use ResolveAsTypeTerminal.
(Cast.DoResolve): Likewise.
(New.DoResolve): Likewise.
(InvocationOrCast.DoResolve,ResolveStatement): Likewise.
(TypeOf.DoResolve): Likewise.

* expression.cs (Invocation.BetterConversion): Return the Type of
the better conversion.  Implement section 14.4.2.3 more faithfully.
(Invocation.BetterFunction): Make boolean.  Make correspondence to
section 14.4.2.2 explicit.
(Invocation.OverloadResolve): Update.
(Invocation): Remove is_base field.
(Invocation.DoResolve): Don't use is_base.  Use mg.IsBase.
(Invocation.Emit): Likewise.

svn path=/trunk/mcs/; revision=34585
2004-10-01 05:16:01 +00:00
Gonzalo Paniagua Javier bf1a566e4e 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: SuppressContent does not throw and clears all the
	buffered output. Fixes bug #67213.

svn path=/branches/mono-1-0/mcs/; revision=34584
2004-10-01 03:38:22 +00:00
Gonzalo Paniagua Javier e998d57e29 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: SuppressContent does not throw and clears all the
	buffered output. Fixes bug #67213.

svn path=/trunk/mcs/; revision=34583
2004-10-01 03:36:52 +00:00
Gonzalo Paniagua Javier dd5367c39b s/Behaviour/Behavior/g Fixes bug 67261
svn path=/branches/mono-1-0/mcs/; revision=34582
2004-10-01 03:05:36 +00:00
Gonzalo Paniagua Javier eaa21f98ab s/Behaviour/Behavior/g Fixes bug 67261
svn path=/trunk/mcs/; revision=34581
2004-10-01 03:04:50 +00:00
Geoff Norton d09f4446fa 2004-09-30 Geoff Norton <[email protected]>
* Convert.cs: ConvertToBase* was not endian aware.  Implemented EndianSwap
        and swapping of all values before going into the BitConverter so that values
        are returned with proper endianess.

svn path=/branches/mono-1-0/mcs/; revision=34580
2004-10-01 02:55:45 +00:00
Gonzalo Paniagua Javier 6f302f5543 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: support attributes inherited from the one
	we want. Fixes bug #67088. Thanks to Sander Rijken.

svn path=/branches/mono-1-0/mcs/; revision=34579
2004-10-01 02:52:24 +00:00
Gonzalo Paniagua Javier fcbc77cd65 2004-10-01 Gonzalo Paniagua Javier <[email protected]>
* AttributeCollection.cs: support attributes inherited from the one
	we want. Fixes bug #67088. Thanks to Sander Rijken.

svn path=/trunk/mcs/; revision=34578
2004-10-01 02:51:30 +00:00
Geoff Norton 849dc441cc 2004-09-30 Geoff Norton <[email protected]>
* Convert.cs: ConvertToBase* was not endian aware.  Implemented EndianSwap
        and swapping of all values before going into the BitConverter so that values
        are returned with proper endianess.

svn path=/trunk/mcs/; revision=34577
2004-10-01 02:44:39 +00:00
Francisco Figueiredo Jr. ac979279bb * Initial import of BSD license of LargeObject support ported code.
svn path=/trunk/mcs/; revision=34576
2004-09-30 21:39:06 +00:00
Francisco Figueiredo Jr. 0de8c14094 2004-09-30 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/FastPath.cs,
    NpgsqlTypes/FastPathArg.cs,
    NpgsqlTypes/LargeObject.cs,
    NpgsqlTypes/LargeObjectManager.cs,
    Npgsql.dll.sources: Added large object support. Thanks Emiliano Necciari (e dot necciari at blogic dot it) for the patch.

svn path=/trunk/mcs/; revision=34575
2004-09-30 21:36:09 +00:00
Lluis Sanchez 802e76ff67 * HttpSimpleProtocolImporter.cs: Fix import of arrays of primitive types.
svn path=/trunk/mcs/; revision=34574
2004-09-30 21:05:31 +00:00
Lluis Sanchez 3a465797dc * MapCodeGenerator.cs: When the Object type is exported, export all
derived maps. This was done in IncludeMetadata, but this method is
	  not called by the xsd tool.
	* XmlCodeExporter.cs: In AddMappingMetadata, only generate the root
	  attribute for primitive types and arrays.
	* XmlSchemaImporter.cs: Only export all object-derived maps if the
	  Object type is explicitly referenced by an element.
	* XmlSerializationWriter.cs: Minor fix.

svn path=/trunk/mcs/; revision=34573
2004-09-30 20:56:52 +00:00
Zoltan Varga c34cf85b03 2004-09-30 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionTypeBuilder): Add 'created' field.

svn path=/trunk/mono/; revision=34572
2004-09-30 20:50:30 +00:00
Zoltan Varga 593d49b98b 2004-09-30 Zoltan Varga <[email protected]>
* TypeBuilder.cs: Make 'created' field visible to the runtime.

svn path=/trunk/mcs/; revision=34571
2004-09-30 20:48:20 +00:00
Peter Dennis Bartok 9f98e52209 - Bug fixes
svn path=/trunk/mcs/; revision=34570
2004-09-30 20:06:56 +00:00
Miguel de Icaza ee9073842e Just rename the damn file
svn path=/trunk/mcs/; revision=34569
2004-09-30 18:08:29 +00:00
Jackson Harper 25077313f2 Fix typo. Patch by John BouAntoun.
svn path=/trunk/mcs/; revision=34568
2004-09-30 17:34:08 +00:00
Lluis Sanchez a84a63f44a * mini.c: Always generate a field read/write wrapper for members
of the class MarshalByRefObject since the actual instance could
	be a CBO.

svn path=/trunk/mono/; revision=34567
2004-09-30 15:59:13 +00:00
Lluis Sanchez 89b40cefda * image.c: Always canonicalize image file names, to avoid loading
the same assembly twice when referenced using a relative path.

svn path=/trunk/mono/; revision=34566
2004-09-30 15:30:01 +00:00
Ravindra 62e67d4d25 Updated project and sources list.
svn path=/trunk/mcs/; revision=34565
2004-09-30 13:32:06 +00:00
Ravindra 8afcb76cc4 Converter for ListViewItem.
svn path=/trunk/mcs/; revision=34564
2004-09-30 13:26:35 +00:00
Ravindra 9e98b297cc Enum for ListView control.
svn path=/trunk/mcs/; revision=34563
2004-09-30 13:26:00 +00:00
Ravindra 6bc48869d3 Supporting class for ListView control.
svn path=/trunk/mcs/; revision=34562
2004-09-30 13:25:33 +00:00
Ravindra cd50430a4e Initial implementation.
svn path=/trunk/mcs/; revision=34561
2004-09-30 13:24:45 +00:00
Anirban Bhattacharjee 9074575b6d 2004-09-30 Anirban Bhattacharjee <[email protected]>
* EventH.vb:
        * EventI.vb:
                Couple of more scenario got covered

svn path=/trunk/mcs/; revision=34560
2004-09-30 13:21:41 +00:00
Ravindra 57a5f76f64 Enum for ListView Control.
svn path=/trunk/mcs/; revision=34559
2004-09-30 13:20:20 +00:00
Anirban Bhattacharjee 422e2c0077 2004-09-30 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay:
        * statement.cs:
                Removed unused event_target field from
                AddHandler and RemoveHandler

svn path=/trunk/mcs/; revision=34558
2004-09-30 13:13:26 +00:00
Anirban Bhattacharjee 95bdcfa89e 2004-09-30 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: RemoveHandler function made cleaner

svn path=/trunk/mcs/; revision=34557
2004-09-30 12:52:50 +00:00
Anirban Bhattacharjee 89679ed9b1 2004-09-30 Anirban Bhattacharjee <[email protected]>
* expression.cs:
        * ecore.cs:
                Fix for resolution of event expression
                when we have a AddHandler statement
                like
                AddHandler Me.E, AddressOf Me.EH
                Submitted by Raja Harinath<[email protected]>

svn path=/trunk/mcs/; revision=34556
2004-09-30 12:33:26 +00:00
Anirban Bhattacharjee c7cd6bad2d 2004-09-30 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Unnecessary to and fro conversion of types
                        is removed from AddHandler function

svn path=/trunk/mcs/; revision=34555
2004-09-30 12:12:18 +00:00
Zoltan Varga e8d226500c 2004-09-30 Zoltan Varga <[email protected]>
* marshal.cs: Add test for GetFunctionPointerForDelegate.

svn path=/trunk/mono/; revision=34553
2004-09-30 10:29:13 +00:00
Zoltan Varga 58319033ea 2004-09-30 Zoltan Varga <[email protected]>
* marshal.h marshal.c icall.c: Fix bugs in previous patch.

svn path=/trunk/mono/; revision=34552
2004-09-30 10:28:34 +00:00
Zoltan Varga 048633f1af 2004-09-30 Zoltan Varga <[email protected]>
* marshal.c marshal.h icall.c: Add GetDelegateForFunctionPointerInternal icall.

	* marshal.c: Fix warnings.

svn path=/trunk/mono/; revision=34551
2004-09-30 10:06:42 +00:00
Zoltan Varga 79bc19eb16 2004-09-30 Zoltan Varga <[email protected]>
* Marshal.cs: Implement GetDelegateForFunctionPointer.

svn path=/trunk/mcs/; revision=34550
2004-09-30 10:03:56 +00:00
Zoltan Varga d62c5ab97b 2004-09-30 Zoltan Varga <[email protected]>
* libtest.c pinvoke2.cs: Add test for returning delegates.

svn path=/trunk/mono/; revision=34549
2004-09-30 09:45:14 +00:00
Sanja Gupta f4733688c3 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added and removed an enumeration in
          System.Web.UI.WebControls.

svn path=/trunk/mcs/; revision=34548
2004-09-30 08:58:53 +00:00
Sanja Gupta 828bc42967 ChangeLog: Updated ChangeLog.
DataControlRowState.cs:
ScrollBars.cs:
TreeNodeTypes.cs: Added attribute.
DataControlRowType.cs:
HotSpotMode.cs:
SortDirection.cs: Corrected enumeration values.
TableRowSection.cs: Added new enumeration.
ObjectDataSourceStatusEventHandler.cs: Corrected method name.

svn path=/trunk/mcs/; revision=34547
2004-09-30 08:53:57 +00:00
Umadevi S c35a250ace *** empty log message ***
svn path=/trunk/mcs/; revision=34546
2004-09-30 07:58:38 +00:00
Jambunathan K 747b3e80a3 Updated csproj to include Appearance.cs, CheckBox.cs, CheckState.cs
svn path=/trunk/mcs/; revision=34545
2004-09-30 05:02:20 +00:00
Miguel de Icaza 1f34ff944b 2004-09-14 Everaldo Canut <[email protected]>
* Mono.Data.SqliteClient/Sqlite.cs added.
	* Mono.Data.SqliteClient/SqliteDataAdapter.cs added.
	* Mono.Data.SqliteClient/SqliteRowUpdatedEventArgs added.
	* Mono.Data.SqliteClient/SqliteRowUpdatedEventHandler added.
	* Mono.Data.SqliteClient/SqliteRowUpdatingEventArgs added.
	* Mono.Data.SqliteClient/SqliteRowUpdatingEventHandler added.
	* Mono.Data.SqliteClient/SqliteDataReader.cs GetSchemaTable fixed.
	* All sources documented.

I submited a patch to SqliteClient, now Sqlite Data
Provider has full implemented, I think that the good
idea is describe this on release notes.

	-Everaldo

svn path=/trunk/mcs/; revision=34544
2004-09-30 03:00:09 +00:00
Gonzalo Paniagua Javier b9a6cfc5bb 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.

svn path=/branches/mono-1-0/mcs/; revision=34543
2004-09-30 02:40:07 +00:00
Gonzalo Paniagua Javier 9fdf11a261 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.

svn path=/trunk/mcs/; revision=34542
2004-09-30 02:39:06 +00:00
Peter Dennis Bartok 41d6265c85 - Added lookup of pixel value for background color; tries to get a color
'close' to the requested color, it avoids having to create a colormap.
  Depending on the display this could mean the used color is slightly off
  the desired color. Might have to change it to a more resource intensive
  colormap approach, but it will work as a workaround to avoid red screens.

svn path=/trunk/mcs/; revision=34541
2004-09-30 02:29:33 +00:00
Gonzalo Paniagua Javier e185d54494 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* threads.c: don't call mono_thread_detach() in start_wrapper(),
	avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.

svn path=/branches/mono-1-0/mono/; revision=34538
2004-09-30 01:09:05 +00:00
Ben Maurer 6fa080c443 2004-09-29 Ben Maurer <[email protected]>
* HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.

svn path=/branches/mono-1-0/mcs/; revision=34537
2004-09-30 01:00:57 +00:00
Ben Maurer fef6a9d994 2004-09-29 Ben Maurer <[email protected]>
* HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.

svn path=/trunk/mcs/; revision=34536
2004-09-30 01:00:32 +00:00
Gonzalo Paniagua Javier 13c545eab7 2004-09-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: added OtherTags.
	* System.Web.UI/ControlBuilder.cs: don't close server tags when we get
	to a closing tag that is not applied to a server control. Fixes bug
	#60323.

svn path=/trunk/mcs/; revision=34534
2004-09-30 00:21:54 +00:00
Sebastien Pouliot 1f43385019 2004-09-29 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: KeySize is now always a multiple of 8 bits.
	Fix #66929.

svn path=/branches/mono-1-0/mcs/; revision=34533
2004-09-29 20:39:18 +00:00
Sebastien Pouliot bea5f10927 2004-09-29 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: In synch with corlib. KeySize is now always a
	multiple of 8 bits. Fix #66929.

svn path=/trunk/mcs/; revision=34532
2004-09-29 20:36:17 +00:00
Jackson Harper 150aac845a Set the X DisplayHandle in System.Drawing
svn path=/trunk/mcs/; revision=34531
2004-09-29 20:27:41 +00:00
Jackson Harper 5d1e9e0828 * Graphics.cs: Use FromHdcInternal to set the X display
handle. Add a flag to check if we are on unix so we aren't calling
	Environment.OSVersion.Platform all the time. Mad props to Peter
	Bartok for this.

svn path=/trunk/mcs/; revision=34530
2004-09-29 20:26:54 +00:00
Lluis Sanchez d5792d7b20 * Makefile: Remove error directory on every run.
* wstest.cs: Added a timeout when calling the wsdl tool. No more
	  hangs there.

svn path=/trunk/mcs/; revision=34528
2004-09-29 18:18:47 +00:00
Sebastien Pouliot 8292f4ff45 2004-09-29 Sebastien Pouliot <[email protected]>
* RSAManaged.cs: KeySize is always a multiple of 8 bits (promotion to
	a bigger size if required) to match MS implementation (and other
	issues like SSL).

svn path=/trunk/mcs/; revision=34526
2004-09-29 18:01:09 +00:00
Geoff Norton 2fdc3df2e1 2004-09-29 Geoff Norton <[email protected]>
* marshal.c (mono_ftnptr_to_delegate): This method was improperly
        attempting to marshal the delegate_trampoline as the method_addr.
        This patch has a static hashtable of marshalled delegates so that
        we can map delegate_trampoline addresses back to delegates.  This
        allows a delegate passed to managed code to be passed back into native
        code.  Fixes #67039

svn path=/trunk/mono/; revision=34521
2004-09-29 15:46:44 +00:00
Sanja Gupta 5e86697297 ChangeLog: Updated ChangeLog.
WebPartVerb.cs: Added attributes.

svn path=/trunk/mcs/; revision=34518
2004-09-29 12:25:35 +00:00
Zoltan Varga 4d3c345c8b 2004-09-29 Zoltan Varga <[email protected]>
* MissingAttribute.cs: Ignore DllImportAttribute and PreserveSigAttribute.

svn path=/trunk/mcs/; revision=34517
2004-09-29 12:00:29 +00:00
Zoltan Varga 1bcb176a27 2004-09-29 Zoltan Varga <[email protected]>
* UnmanagedFunctionPointerAttribute.cs: New file.

svn path=/trunk/mcs/; revision=34516
2004-09-29 11:53:03 +00:00
Zoltan Varga 68daf2e3f8 2004-09-29 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.Runtime.InteropServices/UnmanagedFunctionPointerAttribute.cs.

svn path=/trunk/mcs/; revision=34515
2004-09-29 11:52:25 +00:00
Zoltan Varga 91b866d607 2004-09-29 Zoltan Varga <[email protected]>
* Marshal.cs: Make GetFunctionPointerForDelegate icall private.

	* MarshalAsAttribute.cs: Add 2.0 IidParamIndex field.

svn path=/trunk/mcs/; revision=34514
2004-09-29 11:45:54 +00:00
Sanja Gupta e9863088a4 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new classes in System.Web.dll.sources.

svn path=/trunk/mcs/; revision=34513
2004-09-29 11:24:28 +00:00
Sanja Gupta a95341175a ChangeLog: Updated ChangeLog.
ConnectionPoint.cs: Initial implementation.
ConsumerConnectionPoint.cs:
ProviderConnectionPoint.cs: Added stubs.
TypeCollection.cs: Completed.

svn path=/trunk/mcs/; revision=34512
2004-09-29 11:16:12 +00:00
Raja R Harinath a406bfeec0 (test-clients): nunit-console.exe is now in a
profile-specific directory.
Report from Mayank Ritvik <[email protected]>.

svn path=/trunk/mcs/; revision=34511
2004-09-29 10:20:02 +00:00
Sanja Gupta def2497092 ChangeLog: Updated ChangeLog.
IWebPart.cs: Added new property and removed extra property.
WebPart.cs: Corrected according to change in interface IWebPart.

svn path=/trunk/mcs/; revision=34510
2004-09-29 08:59:03 +00:00
Sanja Gupta cd35797483 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new files in System.Web.UI.WebControls.WebParts
                        namespace.

svn path=/trunk/mcs/; revision=34509
2004-09-29 08:45:48 +00:00
Sanja Gupta b53f40210a ChangeLog: Updated ChangeLog.
WebPartPageMenuMode.cs: Added new enumeration.

svn path=/trunk/mcs/; revision=34508
2004-09-29 08:43:37 +00:00
Miguel de Icaza 835814413c update with some notes
svn path=/trunk/mcs/; revision=34504
2004-09-29 05:06:25 +00:00
Satya Sudha K 78fafab214 minor changes in the Makefile
svn path=/trunk/mcs/; revision=34503
2004-09-29 03:33:55 +00:00
Jackson Harper 416666608c Give the build some love
svn path=/trunk/mcs/; revision=34500
2004-09-28 20:11:41 +00:00
Zoltan Varga 26d94a3f57 2004-09-28 Zoltan Varga <[email protected]>
* Marshal.cs: Add some ReliabilityContractAttributes.

svn path=/trunk/mcs/; revision=34499
2004-09-28 19:55:22 +00:00
Zoltan Varga 5109d8edc8 2004-09-28 Zoltan Varga <[email protected]>
* icall.c: Add GetFunctionPointerForDelegateInternal icall.

svn path=/trunk/mono/; revision=34498
2004-09-28 19:22:27 +00:00
Zoltan Varga ae83572acc 2004-09-28 Zoltan Varga <[email protected]>
* Marshal.cs (GetFunctionPointerForDelegate): Implement.

svn path=/trunk/mcs/; revision=34497
2004-09-28 19:20:22 +00:00
Zoltan Varga f4a0a73956 2004-09-28 Zoltan Varga <[email protected]>
* Makefile.am: Add marshal.cs.

	* marshal.cs: New file for Marshal tests.

svn path=/trunk/mono/; revision=34496
2004-09-28 19:19:11 +00:00
Zoltan Varga e1e7286338 2004-09-28 Zoltan Varga <[email protected]>
* Marshal.cs: Add stubs for missing 2.0 methods.

svn path=/trunk/mcs/; revision=34495
2004-09-28 19:02:33 +00:00
Peter Dennis Bartok fe4cbbaa26 - Streamlined Theme interfaces:
* Each DrawXXX method for a control now is passed the object for the
    control to be drawn in order to allow accessing any state the theme
    might require

  * ControlPaint methods for the theme now have a CP prefix to avoid
    name clashes with the Draw methods for controls

  * Every control now retrieves it's DefaultSize from the current theme

svn path=/trunk/mcs/; revision=34494
2004-09-28 18:44:25 +00:00
Jackson Harper 3c78cc670c Do not redraw OnClick MouseUp/Down will handle the drawing
svn path=/trunk/mcs/; revision=34493
2004-09-28 18:17:46 +00:00
Zoltan Varga 19f3882eb5 2004-09-28 Zoltan Varga <[email protected]>
* reflection.c (method_encode_code): Align method headers properly.
	Fixes #66025.

svn path=/branches/mono-1-0/mono/; revision=34492
2004-09-28 18:04:56 +00:00
Zoltan Varga 0a5f23fe26 2004-09-28 Zoltan Varga <[email protected]>
* reflection.c (method_encode_code): Align method headers properly.
	Fixes #66025.

svn path=/trunk/mono/; revision=34491
2004-09-28 17:59:32 +00:00
Neale Ferguson d5736c4013 Minor JIT fixes
svn path=/trunk/mono/; revision=34490
2004-09-28 17:47:44 +00:00
Lluis Sanchez 3f504f249b * marshal.c: In the runtime invoke wrapper, reset the abort
exception if it is cached. This avoids the automatic rethrowal of
	the exception after the catch of the wrapper. Also check for pending
	interruptions before calling the managed method. This is done using
	the new method emit_thread_force_interrupt_checkpoint, since the
	normal checkpoint method is ignored when running the invoke wrapper.
	* object.c: If the abort exception is rethrown, set the abort_exc
	field of the thread, so it will be rethrown aftere every catch.
	* threadpool.c: Only run an interruption checkpoint if what has been
	requested is a stop of the thread (aborts will be ignored).
	* threads.c: By default, a thread will now never be interrumped while
	running the runtime invoke wrapper (this ensures that runtime_invoke
	will always return to the caller if an exception pointer is provided).
	There is a new special method mono_thread_force_interruption_checkpoint()
	to force an interruption checkpoint even if running a protected
	wrapper, which is used by the same runtime invoke wrapper to do a check
	at a safe point.

I'm leaving the ves_* rename for another patch ;-)

svn path=/trunk/mono/; revision=34489
2004-09-28 15:16:05 +00:00
Sanja Gupta 2a5a391b04 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new classes in System.Web.UI.WebControls.WebParts.

svn path=/trunk/mcs/; revision=34488
2004-09-28 13:20:16 +00:00
Sanja Gupta 5365310748 ChangeLog: Updated ChangeLog.
Part.cs: Corrected access modifier of constructor.

svn path=/trunk/mcs/; revision=34487
2004-09-28 13:17:43 +00:00
Sanja Gupta 9a1e1828ea ChangeLog: Updated ChangeLog.
WebPart.cs: Updated source and fixed bug 66907.

svn path=/trunk/mcs/; revision=34486
2004-09-28 13:12:05 +00:00
Dick Porter 57a4a5f91d 2004-09-28 Dick Porter <[email protected]>
* io.c (pipe_close_private): Fix one small typo in the last change
	that totally hosed process creation with redirected pipes.

svn path=/branches/mono-1-0/mono/; revision=34485
2004-09-28 13:09:31 +00:00
Dick Porter f3bdc8c2ef 2004-09-28 Dick Porter <[email protected]>
* io.c (pipe_close_private): Fix one small typo in the last change
	that totally hosed process creation with redirected pipes.

svn path=/trunk/mono/; revision=34484
2004-09-28 13:09:28 +00:00
Raja R Harinath d73833f6c8 * test-120.cs: Don't exit on the first failure.
* Makefile (TEST_EXCLUDES_common): Remove 'module-3'.
(TEST_SOURCES_win32): Rename from WINDOWS_SOURCES.
(TEST_NOPASS): Comment out tests that already are in
TEST_SOURCES_common.

svn path=/trunk/mcs/; revision=34483
2004-09-28 12:52:27 +00:00
Lluis Sanchez 30a6942dba mini.c: Use mono_thread_exit() to stop threads, instead of ExitThread.
svn path=/trunk/mono/; revision=34482
2004-09-28 12:46:41 +00:00
Lluis Sanchez fb582e2b8e * object.c, object-internals.h: Implemented mono_release_type_locks,
which releases the cctor locks held by a thread.
	* threads.c, threads.h: In thread_cleanup, release cctor locks held
	by a thread. Added mono_thread_exit() method to be used to safely stop
	a thread.

svn path=/trunk/mono/; revision=34481
2004-09-28 12:45:05 +00:00
Raja R Harinath 6f08eae1e4 ($(tmpinst)/bin/pedump): New.
(mcs-do-run-test-profiles): Depend on it.

svn path=/trunk/mono/; revision=34480
2004-09-28 12:44:30 +00:00
Raja R Harinath 4dbc8109f2 (ves_icall_System_Reflection_Assembly_GetModulesInternal):
Move null check before dereference.  Avoid indexing beyond the end
of the 'modules' array.

svn path=/trunk/mono/; revision=34479
2004-09-28 12:42:40 +00:00
Raja R Harinath 766c694428 typo.
svn path=/trunk/mono/; revision=34478
2004-09-28 11:31:52 +00:00
Raja R Harinath 452111a129 * metadata-internals.h (MonoImage): Add module_count field.
* image.c (load_modules): Set image->module_count.
	(mono_image_load_file_for_image): Use image->module_count.
	* reflection.c (mono_image_load_module): Append to image->modules array
	of dynamic assembly.
	(mono_module_get_object): Fix loop to actually increment index.
	Use image->module_count.
	* assembly.c (mono_assembly_load_references): Use image->module_count.
	* icall.c (ves_icall_System_Reflection_Assembly_GetModulesInternal):
	Likewise.

svn path=/trunk/mono/; revision=34477
2004-09-28 11:30:44 +00:00
Sanja Gupta 1191bb45f9 ChangeLog: Updated ChangeLog.
WebPartVerbCollection.cs: Completed and corrected implementation.

svn path=/trunk/mcs/; revision=34476
2004-09-28 11:12:05 +00:00
Zoltan Varga 996d5ddd6e 2004-09-28 Zoltan Varga <[email protected]>
* PropertyInfo.cs (OptionalCustomModifiers): Add [MonoTODO].

	* PropertyInfo.cs: Add stub for GetConstantValue ().

	* ParameterInfo.cs (marshalAs): Make this private.

	* Module.cs (ModuleHandle): Add [CLSCompliant(false)].

	* LocalVariableInfo.cs MethodBody.cs: Disable default constructor.

svn path=/trunk/mcs/; revision=34475
2004-09-28 11:07:58 +00:00
Zoltan Varga 487b93aed6 2004-09-28 Zoltan Varga <[email protected]>
* ExceptionHandlingClause.cs: Disable default constructor.

svn path=/trunk/mcs/; revision=34474
2004-09-28 10:55:24 +00:00
Ravindra 798d6d51ad Added a minor note.
svn path=/trunk/mcs/; revision=34473
2004-09-28 10:31:47 +00:00
Lluis Sanchez 61edf794f0 * WebServiceHelper.cs: Write the encodingStyle attribute when using the
encoded format. This fixes bug #66908.

svn path=/branches/mono-1-0/mcs/; revision=34472
2004-09-28 10:09:10 +00:00
Lluis Sanchez e1caad0483 * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
This fixes bug #66877.

svn path=/branches/mono-1-0/mcs/; revision=34471
2004-09-28 09:27:39 +00:00
Lluis Sanchez 8bc4bccc0f * CodeIdentifier.cs: MakeValid now returns "Item" for an empty string.
This fixes bug #66877.

svn path=/trunk/mcs/; revision=34470
2004-09-28 09:22:52 +00:00
Lluis Sanchez c3e7b4fa53 * RemotingServices.cs: Allways pass the uri when calling
GetClientChannelSinkChain, even if it has channel data.
	  This fixes bug 66768.

svn path=/trunk/mcs/; revision=34469
2004-09-28 08:18:29 +00:00
Lluis Sanchez ff5c907233 * CrossAppDomainChannel.cs: In CreateMessageSink, ignore the url
parameter, it is not needed.

svn path=/trunk/mcs/; revision=34468
2004-09-28 08:16:41 +00:00
Sanja Gupta 8f32d72264 ChangeLog: Updated ChangeLog.
WebPartVerbCollection.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34467
2004-09-28 07:56:07 +00:00
Sanja Gupta 21829c0fdd ChangeLog: Updated ChangeLog.
WebPartVerb.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34466
2004-09-28 06:20:21 +00:00
Peter Dennis Bartok 97cf16ca60 - Initial check in. A place to log info about MWF that doesn't fit anywhere
else

svn path=/trunk/mcs/; revision=34465
2004-09-28 06:18:35 +00:00
Martin Baulig 25a8811858 2004-09-28 Martin Baulig <[email protected]>
* GenericTypeParameterBuilder.cs
	(GenericTypeParameterBuilder.ContainsGenericParameters): Return
	true here; System.Type.ContainsGenericParameters returns true when
	called on a type parameter, so let's do the same here.

svn path=/trunk/mcs/; revision=34464
2004-09-28 05:53:55 +00:00
Martin Baulig b4c3c6a719 2004-09-28 Martin Baulig <[email protected]>
* generic.cs
	(GenericConstraints.EffectiveBaseClass): New public property.
	(TypeParameter.GenericConstraints): New public property.
	(ConstructedType.CheckConstraints): Improved.

	* convert.cs (Convert.TypeParam_EffectiveBaseType): New private method.
	(Convert.TypeParameterConversion): New private method; use this in
	ImplicitReferenceConversion() and ImplicitReferenceConversionExists()
	for all conversions related to type parameters.

svn path=/trunk/mcs/; revision=34463
2004-09-28 05:46:28 +00:00
Martin Baulig da9563af75 Another small fix, don't crash here.
svn path=/trunk/mcs/; revision=34462
2004-09-28 05:42:54 +00:00
Umadevi S 3025f62e09 2004-09-24 Umadevi S <[email protected]>
* DataRowTest.cs : Added a test for EnforceConstraints with relations defined.

svn path=/branches/mono-1-0/mcs/; revision=34461
2004-09-28 05:01:33 +00:00
Umadevi S 9919af677a 2004-09-28 Umadevi S <[email protected]>
* DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows

svn path=/branches/mono-1-0/mcs/; revision=34460
2004-09-28 04:59:55 +00:00
Umadevi S 47cdd315ff 2004-09-24 Umadevi S <[email protected]>
* DataRowTest.cs : Added a test for EnforceConstraints with relations defined.

svn path=/trunk/mcs/; revision=34459
2004-09-28 04:20:25 +00:00
Umadevi S a13f2334e0 2004-09-28 Umadevi S <[email protected]>
* DataRow.cs - checked for Enforceconstraints, while using indices to search for related rows

svn path=/trunk/mcs/; revision=34458
2004-09-28 04:17:39 +00:00
Gonzalo Paniagua Javier 648fb06f32 2004-09-28 Gonzalo Paniagua Javier <[email protected]>
* TableStyle.cs: don't render empty 'rules' attribute (again).

svn path=/branches/mono-1-0/mcs/; revision=34457
2004-09-28 00:29:07 +00:00
Gonzalo Paniagua Javier f30f84f690 2004-09-28 Gonzalo Paniagua Javier <[email protected]>
* TableStyle.cs: don't render empty 'rules' attribute (again).

svn path=/trunk/mcs/; revision=34456
2004-09-28 00:27:59 +00:00
Zoltan Varga 2e1d58d56e 2004-09-28 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_FieldInfo_GetUnmanagedMarshal):
	Avoid assert on generic types.

svn path=/trunk/mono/; revision=34454
2004-09-27 22:46:38 +00:00
Zoltan Varga 8ef0b9671a 2004-09-28 Zoltan Varga <[email protected]>
* driver.c mini.h trace.c: Move the setting of the main assembly into
	a separate function called mono_trace_set_assembly () and call it after
	actually loading the main assembly. Fixes #66872.

svn path=/trunk/mono/; revision=34453
2004-09-27 22:36:24 +00:00
Lluis Sanchez 3266ee6e9a * ServerIdentity.cs: Only set the target identity if it has not already
been set.

svn path=/trunk/mcs/; revision=34447
2004-09-27 20:06:12 +00:00
Lluis Sanchez 7470dcd7d5 * MethodCallMessageWrapper.cs: The wrapper has to modify the wrapped
message. MS does it.
	* ReturnMessage.cs: Use TypeName instead of _typeName since now name is
	  lazely constructed.

svn path=/trunk/mcs/; revision=34446
2004-09-27 20:05:44 +00:00
Lluis Sanchez 897873b1c9 * RemotingProxy.cs: In Invoke, suport IMessages other than MonoMessage.
svn path=/trunk/mcs/; revision=34445
2004-09-27 20:05:06 +00:00
Lluis Sanchez df381473f3 * HttpClientChannel.cs: Throw an http exception if the response is a 500,
don't try to deserialize the exception.

svn path=/trunk/mcs/; revision=34444
2004-09-27 20:04:30 +00:00
Lluis Sanchez e0ae338c33 * ContextsTest.cs: Fixed test sequence.
* RemotingServicesTest.cs: Minor fix.
	* ServerObject.cs: Added check for transparent proxy in all CBO methods.

svn path=/trunk/mcs/; revision=34443
2004-09-27 20:04:03 +00:00
Lluis Sanchez ec5949643e * System.Runtime.Remoting_test.dll.sources: Added RemotingServicesTest.cs.
svn path=/trunk/mcs/; revision=34442
2004-09-27 20:03:22 +00:00
Duncan Mak 1b08e45156 2004-09-23 Martin Garton <[email protected]>
* Convert.cs: ToType was returning unconverted object when it should
	fail with an ArgumentException.

	* ConvertTest.cs: Ensure ToType() fails with an ArgumentException in
	a case where is cannot convert.

svn path=/branches/mono-1-0/mcs/; revision=34439
2004-09-27 16:15:57 +00:00
Duncan Mak 24d18c663e 2004-09-23 Martin Garton <[email protected]>
* Convert.cs: ToType was returning unconverted object when it should
	fail with an ArgumentException.

svn path=/trunk/mcs/; revision=34438
2004-09-27 16:10:45 +00:00
Zoltan Varga 37b3f92db6 2004-09-27 Zoltan Varga <[email protected]>
* CustomAttributeData.cs CustomAttributeTypedArgument.cs
	CustomAttributeNamedArgument.cs: New files.

svn path=/trunk/mcs/; revision=34437
2004-09-27 15:32:33 +00:00
Zoltan Varga bbf7cce948 2004-09-27 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add more 2.0 System.Reflection classes.

svn path=/trunk/mcs/; revision=34436
2004-09-27 15:31:17 +00:00
Zoltan Varga 19a415ecec 2004-09-27 Zoltan Varga <[email protected]>
* MethodBody.cs LocalVariableInfo.cs ExceptionHandlingClause.cs
	ExceptionHandlingClauseFlags.cs: New files.

svn path=/trunk/mcs/; revision=34435
2004-09-27 13:03:02 +00:00
Zoltan Varga 2c9e3d8b46 2004-09-27 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add some 2.0 System.Reflection classes.

svn path=/trunk/mcs/; revision=34434
2004-09-27 13:01:22 +00:00
Zoltan Varga 06788e15e7 2004-09-27 Zoltan Varga <[email protected]>
* Array.cs: Add stub for AsReadOnly<T>.

svn path=/trunk/mcs/; revision=34433
2004-09-27 12:59:58 +00:00
Raja R Harinath 02b8d362b1 * Makefile: Re-apply patches from 2004-09-14.
(NEW_TEST_SOURCES_common): Rename from NEW_TEST_SOURCES.
(TEST_SOURCES_common): Rename from TEST_SOURCES.
(TEST_SOURCES_all): Rename to ALL_TEST_SOURCES.  Handle profile- and
platform-specific test inclusion and exclusion.
(TEST_SOURCES_default, TEST_SOURCES_net_2_0, TEST_EXCLUDES_common)
(TEST_EXCLUDES_net_2_0): New.  Reorganized from various other variables.
(TEST2_SOURCES, UNSAFE_SOURCES): Remove.  Merge into TEST_SOURCES_common.
(test-2, test-unsafe-compiler-jit): Remove.  Merge into test-compiler-jit.
* 2tests-*.cs, unsafe-*.cs, test-58.cs, test-171.cs:
Add 'Compiler options: '.

svn path=/trunk/mcs/; revision=34432
2004-09-27 12:00:53 +00:00
Raja R Harinath 30140da798 Re-apply changes from 2004-09-14.
(test-everything): Run tests in both profiles.

svn path=/trunk/mcs/; revision=34431
2004-09-27 11:59:23 +00:00
Raja R Harinath 4c84313be5 Update to changes.
svn path=/trunk/mcs/; revision=34430
2004-09-27 11:54:11 +00:00
Raja R Harinath 67dcc38c92 (PROGRAM): Put in
profile-specific directory.

svn path=/trunk/mcs/; revision=34429
2004-09-27 11:41:01 +00:00
Raja R Harinath ce00fd8ef2 * library.make ($(test_nunit_dep)): Make sure NUnit is built for
the profile being tested.
(nunit-$(PROFILE).stamp): Rename from nunit.stamp.
* config-default.make (TEST_HARNESS): Look for 'nunit-console' in
profile-specific directory.

svn path=/trunk/mcs/; revision=34428
2004-09-27 11:40:35 +00:00
Raja R Harinath 5d62444ee8 (mono-do-testjit): New target, unused for now. Runs
the mono testsuite in tests/.
(tmpinst-dir): Create etc/mono/2.0.
($(tmpinst)/bin/ilasm, $(tmpinst)/etc/mono/2.0/machine.config): New.

svn path=/trunk/mono/; revision=34427
2004-09-27 11:16:55 +00:00
Zoltan Varga 6a70cddb04 2004-09-27 Zoltan Varga <[email protected]>
* ConstructorBuilder.cs: Add 2.0 GetILGenerator(size) method.

svn path=/trunk/mcs/; revision=34426
2004-09-27 09:04:06 +00:00
Zoltan Varga 239cbecd36 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add tests for MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34418
2004-09-26 17:14:13 +00:00
Zoltan Varga 59e88109e5 2004-09-26 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_FieldInfo_GetUnmanagedMarshal): New icall.

svn path=/trunk/mono/; revision=34417
2004-09-26 17:11:39 +00:00
Zoltan Varga 915e78f676 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfo.cs: Add support for returning MarshalAsAttribute.

	* ParameterInfo.cs: Add marshalAs field, add support for returning
	MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34416
2004-09-26 17:10:34 +00:00
Zoltan Varga 86002e0361 2004-09-26 Zoltan Varga <[email protected]>
* ParameterInfoTest.cs: Add tests for MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34415
2004-09-26 16:48:49 +00:00
Zoltan Varga cf4f2ee9fa 2004-09-26 Zoltan Varga <[email protected]>
* reflection.c (mono_param_get_objects): Fill out MarshalAsImpl field.

	* reflection.c (mono_reflection_marshal_from_marshal_spec): New
	function to convert a MarshalSpec structure to its managed counterpart.

	* reflection.c: Fix warnings.

	* object-internals.h (MonoReflectionParameter): Add MarshalAsImpl
	field.

svn path=/trunk/mono/; revision=34414
2004-09-26 16:41:16 +00:00
Zoltan Varga a5182a1cab 2004-09-26 Zoltan Varga <[email protected]>
* UnmanagedMarshal.cs: Add ToMarshalAsAttribute method.

svn path=/trunk/mcs/; revision=34413
2004-09-26 16:38:20 +00:00
Zoltan Varga c48bcb131d 2004-09-26 Zoltan Varga <[email protected]>
* ParameterInfo.cs: Add marshalAs field, add support for returning
	MarshalAsAttribute.

svn path=/trunk/mcs/; revision=34412
2004-09-26 16:36:40 +00:00
Zoltan Varga 9a183ff622 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add tests for FieldOffsetAttribute.

svn path=/trunk/mcs/; revision=34411
2004-09-26 15:00:46 +00:00
Zoltan Varga 115800f817 2004-09-26 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: New file.

svn path=/trunk/mcs/; revision=34410
2004-09-26 14:56:38 +00:00
Zoltan Varga d52da51026 2004-09-26 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System.Reflection/FieldInfoTest.

svn path=/trunk/mcs/; revision=34409
2004-09-26 14:56:03 +00:00
Zoltan Varga c1478f0c7c 2004-09-26 Zoltan Varga <[email protected]>
* MethodInfoTest.cs: Add tests for PreserveSigAttribute.

svn path=/trunk/mcs/; revision=34408
2004-09-26 14:50:57 +00:00
Zoltan Varga 551d466cb4 2004-09-26 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System.Reflection/MethodInfoTest.

svn path=/trunk/mcs/; revision=34407
2004-09-26 14:44:43 +00:00
Francisco Figueiredo Jr. 9f4808997f 2004-09-26 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlDataReader.cs:
        GetBytes: Added a little fix for proper handling of getbytes with current Npgsql semantics in mind. For while, we just support offset value of 0 as we
        read all the bytes field value at a time. So there is no copy when offset is not 0.

svn path=/trunk/mcs/; revision=34406
2004-09-26 13:42:26 +00:00
Francisco Figueiredo Jr. 1e71ffa36f 2004-09-25 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlCommand.cs:
        GetParseCommandText: Fixed an incorrect patch. Thanks Martin ( martijn at boland dot org) for heads up.

svn path=/trunk/mcs/; revision=34405
2004-09-25 23:05:01 +00:00
Zoltan Varga 832b44d92b 2004-09-26 Zoltan Varga <[email protected]>
* icall.c (mono_create_icall_signature): Fix build.

svn path=/trunk/mono/; revision=34403
2004-09-25 21:13:02 +00:00
Zoltan Varga 2252b400e4 2004-09-25 Zoltan Varga <[email protected]>
* StringBuilder.cs (Append): Use InternalStrcpy to append char arrays.

svn path=/trunk/mcs/; revision=34402
2004-09-25 19:49:12 +00:00
Zoltan Varga 5f7b869f4d 2004-09-25 Zoltan Varga <[email protected]>
* icall.c: Add MakePointType icall.

	* icall.c (ves_icall_System_Text_Encoding_InternalCodePage): Fix
	warnings.

svn path=/trunk/mono/; revision=34401
2004-09-25 18:59:24 +00:00
Zoltan Varga d025ae955c 2004-09-25 Zoltan Varga <[email protected]>
* Type.cs: Add MakePointerType && stub for ReflectionOnlyGetType.

svn path=/trunk/mcs/; revision=34400
2004-09-25 18:54:29 +00:00
Zoltan Varga 35d89cef80 2004-09-25 Zoltan Varga <[email protected]>
* Module.cs: Add new 2.0 GetMethods and GetFields methods.

svn path=/trunk/mcs/; revision=34399
2004-09-25 18:29:37 +00:00
Zoltan Varga 4f2d725b42 2004-09-25 Zoltan Varga <[email protected]>
* TypeBuilder.cs: Add IsCreated method.

svn path=/trunk/mcs/; revision=34398
2004-09-25 18:11:03 +00:00
Gonzalo Paniagua Javier b18cb85fdd 2004-09-25 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: reuse allocated slots in the queue.

svn path=/branches/mono-1-0/mono/; revision=34397
2004-09-25 18:01:10 +00:00
Gonzalo Paniagua Javier da48560ea1 2004-09-25 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: reuse allocated slots in the queue.

svn path=/trunk/mono/; revision=34396
2004-09-25 17:57:59 +00:00
Francisco Figueiredo Jr. 8efe75eb7a 2004-09-25 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlCommand.cs:
        ReplaceParameterValue: Fixed parameter replace when next byte after parameter name is '\\r'. Thanks Ivan Radovanovic rivan at sezampro dot yu for the fix.
        GetParseCommandText: Added a workaround to have some queries which are giving parameter type problems. Thanks Martin ( martijn at boland dot org) for bug report.

svn path=/trunk/mcs/; revision=34395
2004-09-25 17:54:27 +00:00
Zoltan Varga b5572b9b47 2004-09-25 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Add System.Reflection/ParameterInfoTest.

svn path=/trunk/mcs/; revision=34394
2004-09-25 16:45:27 +00:00
Zoltan Varga 7db58113f5 2004-09-25 Zoltan Varga <[email protected]>
* ParameterInfoTest.cs: New file.

svn path=/trunk/mcs/; revision=34393
2004-09-25 16:44:32 +00:00
Zoltan Varga c18ed9be96 2004-09-25 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs (GetCustomAttributesBase): Add support for
	parameters.

svn path=/trunk/mcs/; revision=34392
2004-09-25 16:36:34 +00:00
Zoltan Varga f017402d09 2004-09-25 Zoltan Varga <[email protected]>
* ParameterInfo.cs: Add GetPseudoCustomAttributes () method.

svn path=/trunk/mcs/; revision=34391
2004-09-25 16:35:35 +00:00
Zoltan Varga 00195671e4 2004-09-25 Zoltan Varga <[email protected]>
* test-254.cs: Fix test so it runs under NET 2.0.

svn path=/trunk/mcs/; revision=34390
2004-09-25 15:54:45 +00:00
Ben Maurer 4d983e0ff3 2004-09-25 Ben Maurer <[email protected]>
* HttpApplication.cs: Make sure requests are removed from
	the timeout manager. Fixes a major leak. #66751.

svn path=/branches/mono-1-0/mcs/; revision=34388
2004-09-25 14:48:05 +00:00
Ben Maurer e14280267e 2004-09-25 Ben Maurer <[email protected]>
* HttpApplication.cs: Make sure requests are removed from
	the timeout manager. Fixes a major leak. #66751.

svn path=/trunk/mcs/; revision=34387
2004-09-25 14:47:34 +00:00
Zoltan Varga 7f534620a9 2004-09-25 Zoltan Varga <[email protected]>
* mini-amd64.h mini-amd64.c tramp-amd64.c: Allocate trampoline memory
	using the code manager.

svn path=/trunk/mono/; revision=34386
2004-09-25 14:24:01 +00:00
Zoltan Varga cb8fd4f834 2004-09-25 Zoltan Varga <[email protected]>
* mono-codeman.c (new_codechunk): Set malloc'ed code pages as
	executable.

svn path=/trunk/mono/; revision=34385
2004-09-25 14:21:29 +00:00
Jackson Harper 96f1bba931 Don't lock/enqueue/dequeue for unhandled messages. Gives us a nice little performance boost.
svn path=/trunk/mcs/; revision=34381
2004-09-24 20:57:33 +00:00
Zoltan Varga 69cbca7fda 2004-09-24 Zoltan Varga <[email protected]>
* MonoField.cs: Add GetFieldOffset.

svn path=/trunk/mcs/; revision=34380
2004-09-24 19:28:20 +00:00
Zoltan Varga 71f0403ddb 2004-09-24 Zoltan Varga <[email protected]>
* ObfuscationAttribute.cs: Add ApplyToMembers.

svn path=/trunk/mcs/; revision=34379
2004-09-24 19:26:46 +00:00
Zoltan Varga e3a84a8528 2004-09-24 Zoltan Varga <[email protected]>
* Assembly.cs: Add stub for ReflectionOnlyLoadFrom.

svn path=/trunk/mcs/; revision=34378
2004-09-24 19:19:56 +00:00
Zoltan Varga 0118ab2ddc 2004-09-24 Zoltan Varga <[email protected]>
* Assembly.cs (LoadWithPartialName): Add [ComVisible] attribute.

svn path=/trunk/mcs/; revision=34377
2004-09-24 19:17:07 +00:00
Zoltan Varga 64915e38b9 2004-09-24 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionDllImportAttribute): New structure.

	* icall.c: Add new icalls for GetDllImportAttribute and GetFieldOffset.

svn path=/trunk/mono/; revision=34376
2004-09-24 19:09:31 +00:00
Zoltan Varga fbb55f7bef 2004-09-24 Zoltan Varga <[email protected]>
* FieldBuilder.cs: Add dummy GetFieldOffset method.

svn path=/trunk/mcs/; revision=34375
2004-09-24 19:06:33 +00:00
Zoltan Varga 7de18ce3d8 2004-09-24 Zoltan Varga <[email protected]>
* MonoMethod.cs FieldInfo.cs: Add GetPseudoAttributes () method.

svn path=/trunk/mcs/; revision=34374
2004-09-24 19:05:46 +00:00
Zoltan Varga cdc48434e0 2004-09-24 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs (GetCustomAttributesBase): Add support for
	methods and fields.

svn path=/trunk/mcs/; revision=34373
2004-09-24 19:04:34 +00:00
Zoltan Varga 3e2de4869c 2004-09-24 Zoltan Varga <[email protected]>
* DllImportAttribute.cs: Reorder fields and mark this class as visible
	to the runtime.

svn path=/trunk/mcs/; revision=34372
2004-09-24 19:03:13 +00:00
Zoltan Varga 06ffb1f003 2004-09-24 Zoltan Varga <[email protected]>
* AssemblyNameFlags.cs: Add LongevityUnspecified.

svn path=/trunk/mcs/; revision=34371
2004-09-24 18:49:51 +00:00
Zoltan Varga ed4c168991 2004-09-24 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs: Beginnings of support for returning 2.0 pseudo
	custom attributes.

	* MonoCustomAttrs.cs (RetrieveAttributeUsage): Avoid infinite recursion.

	* MonoCustomAttrs.cs (GetCustomAttributes): Fix the 'attributeType is
	sealed' optimization.

svn path=/trunk/mcs/; revision=34370
2004-09-24 18:25:16 +00:00
Jackson Harper aa3e89b200 Add tab classes to the build
svn path=/trunk/mcs/; revision=34369
2004-09-24 18:02:34 +00:00
Jackson Harper 7a5d274a6b Partial implementation of the Tab Control and supporting classes. Initial checkin
svn path=/trunk/mcs/; revision=34368
2004-09-24 18:02:11 +00:00
Dick Porter 00c59cc36c 2004-09-24 Dick Porter <[email protected]>
* wapi-private.h:
	* sockets.c:
	* socket-private.h:
	* io.c:
	* io-private.h:
	* handles-private.h: Cope when a file descriptor is reused while
	the handle that thought it owned it is still referenced, instead
	of asserting.  Probably fixes bug 66479, though we've been unable
	to reproduce it.

svn path=/trunk/mono/; revision=34366
2004-09-24 17:01:44 +00:00
Dick Porter 06aeb1a94e 2004-09-24 Dick Porter <[email protected]>
* wapi-private.h:
	* sockets.c:
	* socket-private.h:
	* io.c:
	* io-private.h:
	* handles-private.h: Cope when a file descriptor is reused while
	the handle that thought it owned it is still referenced, instead
	of asserting.  Probably fixes bug 66479, though we've been unable
	to reproduce it.

svn path=/branches/mono-1-0/mono/; revision=34365
2004-09-24 17:01:37 +00:00
Zoltan Varga acdcb84158 2004-09-24 Zoltan Varga <[email protected]>
* reflection.h reflection.c (mono_reflection_get_custom_attrs): Revert
	previous change.

svn path=/trunk/mono/; revision=34363
2004-09-24 15:33:11 +00:00
Zoltan Varga 102543a11f 2004-09-24 Zoltan Varga <[email protected]>
* main.c: Add support for pinvoke flags BestFit and
	ThrowOnUnmappableChar.

svn path=/trunk/mono/; revision=34362
2004-09-24 15:13:42 +00:00
Zoltan Varga d41799746e 2004-09-24 Zoltan Varga <[email protected]>
* tabledefs.h: Add constants for pinvoke attributes BestFit and
	ThrowOnUnmappableChar.

svn path=/trunk/mono/; revision=34361
2004-09-24 15:08:23 +00:00
Carlos Guzmán Álvarez 5dc57b219d 2004-09-24 Carlos Guzman Alvarez <[email protected]>
* ContentType.cs: Implement initial support for the ClientHelloV2 message.
	* RecordProtocol.cs: Implement initial support for the ClientHelloV2 message.

svn path=/trunk/mcs/; revision=34360
2004-09-24 14:29:49 +00:00
Zoltan Varga dcc726bfe4 2004-09-24 Zoltan Varga <[email protected]>
* TypeTest.cs: Add test for StructLayoutAttribute.

svn path=/trunk/mcs/; revision=34357
2004-09-24 14:01:37 +00:00
Zoltan Varga d7364413cf 2004-09-24 Zoltan Varga <[email protected]>
* Type.cs: Implement 2.0 StructLayoutAttribute property.

	* Type.cs Add GetPseudoCustomAttributes () method.

svn path=/trunk/mcs/; revision=34356
2004-09-24 13:55:22 +00:00
Zoltan Varga 7d2ce98dbf 2004-09-24 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_GetPacking): New icall.

svn path=/trunk/mono/; revision=34355
2004-09-24 13:51:50 +00:00
Sureshkumar T 8f2b56a6a0 * DataSet.cs : Don't check constraints for dataset clear
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.

svn path=/branches/mono-1-0/mcs/; revision=34354
2004-09-24 13:25:52 +00:00
Sanja Gupta 7adbf3441c ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new attribute class in System.Web.UI.

svn path=/trunk/mcs/; revision=34353
2004-09-24 13:25:07 +00:00
Sanja Gupta 5c9b0aed32 ChangeLog: Updated ChangeLog.
ControlValuePropertyAttribute.cs: Initial implementation.

svn path=/trunk/mcs/; revision=34352
2004-09-24 13:23:28 +00:00
Sureshkumar T 594a15739e (DataSetClearTest): Added a test for DataSet.Clear. This should not
throw any exception and should override constraints.

svn path=/branches/mono-1-0/mcs/; revision=34351
2004-09-24 12:53:45 +00:00
Sanja Gupta 449d34566e ChangeLog: Updated ChangeLog.
IPaginationContainer.cs: Corrected name of class.

svn path=/trunk/mcs/; revision=34350
2004-09-24 12:52:14 +00:00
Sanja Gupta 75e65231c5 ChangeLog: Updated ChangeLog.
IDReferencePropertyAttribute.cs: Completed implementation.

svn path=/trunk/mcs/; revision=34349
2004-09-24 12:46:31 +00:00
Sanja Gupta 8f5ed0c67f ChangeLog: Updated ChangeLog.
ThemeableAttribute.cs:
FilterableAttribute.cs: Code scrubbing and optimization.

svn path=/trunk/mcs/; revision=34348
2004-09-24 12:31:08 +00:00
Sureshkumar T 70c042f3f2 * DataSet.cs : Don't check constraints for dataset clear
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.

svn path=/trunk/mcs/; revision=34346
2004-09-24 11:55:42 +00:00
Sureshkumar T 6faa811729 (DataSetClearTest): Added a test for DataSet.Clear. This should not
throw any exception and should override constraints.

svn path=/trunk/mcs/; revision=34345
2004-09-24 11:23:47 +00:00
Marek Safar 3e6467abd3 WarningLevel = 2
svn path=/trunk/mcs/; revision=34344
2004-09-24 10:29:39 +00:00
Umadevi S fd39483805 2004-09-24 Umadevi S <[email protected]>
* SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.

svn path=/branches/mono-1-0/mcs/; revision=34343
2004-09-24 10:16:22 +00:00
Umadevi S d73171b629 2004-09-24 Umadevi S <[email protected]>
* Added file SqlTransactionTest.cs

svn path=/branches/mono-1-0/mcs/; revision=34342
2004-09-24 10:08:27 +00:00
nobody 24a7667524 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=34341
2004-09-24 10:08:27 +00:00
Umadevi S 84f14a848a 2004-09-24 Umadevi S <[email protected]>
* SqlTransactionTest.cs -new file .unit testing for SqlTransaction

svn path=/trunk/mcs/; revision=34340
2004-09-24 09:58:25 +00:00
Umadevi S c813754f8d 2004-09-24 Umadevi S <[email protected]>
* SqlTransaction.cs - Dispose will not call rollback incase the transaction is not open.

svn path=/trunk/mcs/; revision=34339
2004-09-24 09:56:09 +00:00
Paolo Molaro bee40b8828 Enforce inline limit.
svn path=/trunk/mono/; revision=34338
2004-09-24 09:42:34 +00:00
Zoltan Varga fc521ea08d 2004-09-24 Zoltan Varga <[email protected]>
* tramp-amd64.c mini-amd64.h: Add suppor for MONO_ARCH_HAVE_INVALIDATE_METHOD.

svn path=/trunk/mono/; revision=34337
2004-09-24 09:06:15 +00:00
Marek Safar e08b40a641 2004-09-24 Marek Safar <[email protected]>
* cs-parser.jay: Reverted 642 warning fix.

svn path=/trunk/mcs/; revision=34336
2004-09-24 08:15:03 +00:00
Martin Baulig d253152fde Updated a bit.
svn path=/trunk/mcs/; revision=34335
2004-09-24 05:19:55 +00:00
Miguel de Icaza 753f165565 2004-09-23 Miguel de Icaza <[email protected]>
* main.c (dis_directive_assemblyref): Dump the locale and public
	key tokens

	* get.c (dis_stringify_object_with_class): Escape assembly name.

	* main.c (dis_directive_assemblyref): Escape assembly name

svn path=/trunk/mono/; revision=34333
2004-09-24 04:00:09 +00:00
Martin Baulig 43e16c55da 2004-09-24 Martin Baulig <[email protected]>
* convert.cs (Convert.ImplicitReferenceConversion): Added implicit
	type parameter conversions for type parameters which are known to
	be reference types.

svn path=/trunk/mcs/; revision=34332
2004-09-24 03:56:54 +00:00
Martin Baulig f1e6c211d6 2004-09-24 Martin Baulig <[email protected]>
* GenericTypeParameterBuilder.cs
	(GenericTypeParameterBuilder.GetGenericParameterConstraints): Override.

svn path=/trunk/mcs/; revision=34331
2004-09-24 03:55:42 +00:00
Martin Baulig 3729684e3a 2004-09-24 Martin Baulig <[email protected]>
* Type.cs (Type.GetGenericParameterConstraints): New public method.

svn path=/trunk/mcs/; revision=34330
2004-09-24 03:55:06 +00:00
Martin Baulig d5e427d6b4 2004-09-24 Martin Baulig <[email protected]>
* icall.c (ves_icall_Type_GetGenericParameterConstraints): New interncall.

svn path=/trunk/mono/; revision=34329
2004-09-24 03:53:54 +00:00
Martin Baulig 3d8b806d7d 2004-09-24 Martin Baulig <[email protected]>
* generic.cs (GenericConstraints): Added `IsReferenceType' and
	`IsValueType' properties.

	* support.cs (ReflectionConstraints): Use
	Type.GetGenericParameterConstraints() instead of the old hack.

svn path=/trunk/mcs/; revision=34328
2004-09-24 03:48:19 +00:00
Martin Baulig 41abefe7e5 2004-09-24 Martin Baulig <[email protected]>
* generic.cs (ReflectionConstraints): Moved here and made it an
	abstract class.

	* support.cs (ReflectionConstraints): Moved to generic.cs.

svn path=/trunk/mcs/; revision=34327
2004-09-24 03:33:08 +00:00
Martin Baulig 6bf4a28847 2004-09-24 Martin Baulig <[email protected]>
* support.cs
	(ReflectionConstraints): Un-nested this class and made it public.

	* typemanager.cs
	(TypeManager.GetTypeParameterConstraints): New public method.
	(TypeManager.HasConstructorConstraint): Use the attributes.

svn path=/trunk/mcs/; revision=34326
2004-09-24 03:22:14 +00:00
Martin Baulig fb8eedf23c 2004-09-24 Martin Baulig <[email protected]>
* support.cs (GenericConstraints): Replaced `HasConstructor',
	`IsReferenceType' and `IsValueType' with `Attributes'.
	(ReflectionParameters.ReflectionConstraints): Removed the Create()
	method and made the .ctor public.

	* generic.cs (Constraints.Attributes): New public property.
	(Constraints): Renamed `HasConstructor' -> `HasConstructorConstraint',
	`IsReferenceType' -> `HasReferenceTypeConstraint' and
	`IsValueType' -> `HasValueTypeConstraint'.

svn path=/trunk/mcs/; revision=34325
2004-09-24 03:17:07 +00:00
Martin Baulig 593753a24e Fixed a typo.
svn path=/trunk/mcs/; revision=34324
2004-09-24 03:02:06 +00:00
Martin Baulig 4aa2465001 New test.
svn path=/trunk/mcs/; revision=34323
2004-09-24 02:52:18 +00:00
Francisco Figueiredo Jr. 93fd2fcb92 2004-09-23 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/NpgsqlTypesHelper.cs:
        ConvertToBackend: Added support for System.Enum types. Now enumerated types can be used correctly as a paramater value. Thanks Martin ( martijn at boland dot org) for the heads up.

svn path=/trunk/mcs/; revision=34322
2004-09-23 23:29:02 +00:00
Gonzalo Paniagua Javier 996a96124e 2004-09-23 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c:
	(mono_domain_set): allow setting a domain that is being unloaded.
	(mono_domain_unload): invoke the DomainUnload callbacks in the domain
	being unloaded.

svn path=/branches/mono-1-0/mono/; revision=34320
2004-09-23 21:28:19 +00:00
Gonzalo Paniagua Javier d1c584769d 2004-09-24 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs:
	* HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
	unloading.

svn path=/branches/mono-1-0/mcs/; revision=34319
2004-09-23 21:18:35 +00:00
Gonzalo Paniagua Javier f72e291cd4 2004-09-24 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs:
	* HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
	unloading.

svn path=/trunk/mcs/; revision=34318
2004-09-23 21:17:23 +00:00
Gonzalo Paniagua Javier 7acb5a77b0 2004-09-23 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c:
	(mono_domain_set): allow setting a domain that is being unloaded.
	(mono_domain_unload): invoke the DomainUnload callbacks in the domain
	being unloaded.

svn path=/trunk/mono/; revision=34315
2004-09-23 20:59:50 +00:00
Marek Safar 6e7f42c4b0 2004-09-23 Marek Safar <[email protected]>
Fix bug #66615
	* decl.cs (FindMemberWithSameName): Indexer can have more than
	1 argument.

svn path=/trunk/mcs/; revision=34314
2004-09-23 20:30:17 +00:00
Marek Safar 90d536b3bb new test
svn path=/trunk/mcs/; revision=34313
2004-09-23 20:29:00 +00:00
Marek Safar 5149948ae1 2004-09-23 Marek Safar <[email protected]>
* expression.cs (LocalVariableReference.DoResolveLValue):
	Do not report warning 219 for out values.
	(EmptyExpression.Null): New member to avoid extra allocations.

	* rootcontext.cs: Warning 4 is back.

svn path=/trunk/mcs/; revision=34312
2004-09-23 19:47:46 +00:00
Marek Safar 2964e3dfa6 warning cleanup
svn path=/trunk/mcs/; revision=34311
2004-09-23 19:37:31 +00:00
Zoltan Varga be34477642 2004-09-23 Zoltan Varga <[email protected]>
* icall.c reflection.h reflection.c: Add a 'pseudo_attrs' argument to
	the GetCustomAttributes icall.

svn path=/trunk/mono/; revision=34310
2004-09-23 19:35:03 +00:00
Zoltan Varga 19de0d3348 2004-09-23 Zoltan Varga <[email protected]>
* MonoCustomAttrs.cs (GetCustomAttributes): Rename the icall to
	GetCustomAttributesInternal and add a 'pseudoAttrs' argument.

svn path=/trunk/mcs/; revision=34309
2004-09-23 19:29:42 +00:00
Jackson Harper f18066f8db Temp build fixage
svn path=/trunk/mcs/; revision=34308
2004-09-23 19:08:59 +00:00
Zoltan Varga d51ac63600 2004-09-23 Zoltan Varga <[email protected]>
* Type.cs: Tweak Module property in 2.0 build.

svn path=/trunk/mcs/; revision=34307
2004-09-23 19:08:07 +00:00
Zoltan Varga fb510c077b 2004-09-23 Zoltan Varga <[email protected]>
* DynamicMethod.cs: Add MetadataToken property and tweak Module property.

svn path=/trunk/mcs/; revision=34306
2004-09-23 19:07:26 +00:00
Zoltan Varga db910d918c 2004-09-23 Zoltan Varga <[email protected]>
* Module.cs: Remove [MonoTODO] from ResolveMember.

	* MemberInfo.cs: Add 'Module' property.

svn path=/trunk/mcs/; revision=34305
2004-09-23 19:06:44 +00:00
Zoltan Varga 782160d69f 2004-09-23 Zoltan Varga <[email protected]>
* AssemblyFlagsAttribute.cs: Add 2.0 stuff.

	* Assembly.cs: Add stubs for ReflectionOnlyLoad methods. Add [Obsolete]
	to LoadWithPartialName on 2.0.

	* AssemblyNameFlags.cs: Add new 2.0 members.

	* FieldInfo.cs MonoField.cs PropertyInfo.cs ParameterInfo.cs MonoProperty.cs: Add stubs for Optinal/RequiredCustomModifiers.

svn path=/trunk/mcs/; revision=34304
2004-09-23 19:04:13 +00:00
Zoltan Varga f44bc14c50 2004-09-23 Zoltan Varga <[email protected]>
* ObfuscationAttribute.cs ObfuscateAssemblyAttribute.cs: New files.

svn path=/trunk/mcs/; revision=34303
2004-09-23 18:59:39 +00:00
Zoltan Varga 8c5b51efb1 2004-09-23 Zoltan Varga <[email protected]>
* corlib.dll.sources: Add System.Reflection.ObfuscateAssemblyAttribute
	and System.Reflection.ObfuscationAttribute.

svn path=/trunk/mcs/; revision=34302
2004-09-23 18:58:32 +00:00
Martin Baulig 8a9ab82d5b 2004-09-23 Martin Baulig <[email protected]>
* generic.cs (Constraints): Reflect latest runtime changes.

svn path=/trunk/mcs/; revision=34301
2004-09-23 18:01:31 +00:00
Martin Baulig bc55703ccb 2004-09-23 Martin Baulig <[email protected]>
* GenericTypeParameterBuilder.cs
	(GenericTypeParameterBuilder.SetGenericParameterAttributes): New
	public method, replaces the old Mono_* hacks.

svn path=/trunk/mcs/; revision=34300
2004-09-23 17:48:32 +00:00
Martin Baulig 29a53f099a 2004-09-23 Martin Baulig <[email protected]>
* object-internals.h (MonoReflectionGenericParam): Replaced
	'has_ctor_constraint', `has_reference_type' and `has_value_type'
	with `guint32 attrs'.

svn path=/trunk/mono/; revision=34299
2004-09-23 17:47:32 +00:00
Martin Baulig bf4cb8a0b8 Return the correct flags.
svn path=/trunk/mono/; revision=34298
2004-09-23 17:24:52 +00:00
Marek Safar 9e2b840a25 2004-09-23 Marek Safar <[email protected]>
* cs-parser.jay: Fix wrong warning 642 report.

	* cs-tokenizer.cs (CheckNextToken): New helper;
	Inspect next character if is same as expected.

svn path=/trunk/mcs/; revision=34297
2004-09-23 17:20:47 +00:00
Martin Baulig f31af55f6f 2004-09-23 Martin Baulig <[email protected]>
* Type.cs (Type.GenericParameterAttributes): New public property.

svn path=/trunk/mcs/; revision=34296
2004-09-23 17:11:00 +00:00
Martin Baulig 4e2108dc40 2004-09-23 Martin Baulig <[email protected]>
* icall.c (ves_icall_Type_GetGenericParameterAttributes): New interncall.

svn path=/trunk/mono/; revision=34295
2004-09-23 17:10:28 +00:00
Martin Baulig 75b9df1e02 2004-09-23 Martin Baulig <[email protected]>
* convert.cs (Convert.ImplicitReferenceConversion): Some code cleanup.
	(Convert.ImplicitReferenceConversionExists): Likewise.

svn path=/trunk/mcs/; revision=34294
2004-09-23 17:01:32 +00:00
Martin Baulig 8733535ab8 Ooops.
svn path=/trunk/mcs/; revision=34292
2004-09-23 16:48:02 +00:00
Sebastien Pouliot b9443cdda0 2004-09-23 Sebastien Pouliot <[email protected]>
* TlsClientKeyExchange.cs: Removed .Clear call on private key as itn't
	ours (but only a reference). It also requires the callback to recreate
	a new key object each time (which is worse). This also implies that
	the caller (implementing the callback) is responsible to clear it.

svn path=/trunk/mcs/; revision=34291
2004-09-23 16:44:25 +00:00
Marek Safar 5df1776250 new test
svn path=/trunk/mcs/; revision=34290
2004-09-23 16:39:17 +00:00
Martin Baulig e5110ba152 2004-09-23 Martin Baulig <[email protected]>
* object-internals.h (GenericParameterAttributes): New enum.

svn path=/trunk/mono/; revision=34289
2004-09-23 15:28:33 +00:00
Martin Baulig 57ab40ff94 New test.
svn path=/trunk/mcs/; revision=34288
2004-09-23 15:23:36 +00:00
Martin Baulig e7f0178cb0 2004-09-23 Martin Baulig <[email protected]>
* GenericParameterAttributes.cs: New file.

svn path=/trunk/mcs/; revision=34287
2004-09-23 15:23:18 +00:00
Martin Baulig 47be769683 Merged.
svn path=/trunk/mcs/; revision=34284
2004-09-23 14:15:31 +00:00
Martin Baulig fcdb7daa10 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=34283
2004-09-23 14:15:08 +00:00
Martin Baulig 6c33f8c361 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=34282
2004-09-23 13:59:45 +00:00
Sebastien Pouliot 20cb643a97 2004-09-23 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Updated version to 1.0.3 for next stable release.
	* MakeCert.cs: Hack for date parsing problem with Mono.

svn path=/branches/mono-1-0/mcs/; revision=34281
2004-09-23 13:25:53 +00:00
Lluis Sanchez 34a336c0ce * RemotingServices.cs: Fixed wrong patch for InternalExecuteMessage.
The MethodBase in the message may not be the same type of the object
	  (the method can be called using an interface).

svn path=/trunk/mcs/; revision=34280
2004-09-23 13:24:14 +00:00
Sebastien Pouliot 1a4d7572e8 2004-09-23 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Updated version to 1.1.2 for next release.
	* MakeCert.cs: Hack for date parsing problem with Mono.

svn path=/trunk/mcs/; revision=34279
2004-09-23 13:23:31 +00:00
Sebastien Pouliot 95c2a5c48b 2004-09-23 Sebastien Pouliot <[email protected]>
* RecordProtocol.cs: Fix alert data that could leak into appplication
	data (e.g. when closing the SSL session).

svn path=/trunk/mcs/; revision=34278
2004-09-23 13:07:45 +00:00
Anirban Bhattacharjee 886c7dc49b 2004-09-23 Anirban Bhattacharjee <[email protected]>
* expression.cs: Enhanced mbas to resolve Default property or indexer

svn path=/trunk/mcs/; revision=34277
2004-09-23 12:31:15 +00:00
Zoltan Varga dda1b58849 2004-09-23 Zoltan Varga <[email protected]>
* EventInfo.cs: Fix 2.0 build.

svn path=/trunk/mcs/; revision=34276
2004-09-23 12:10:46 +00:00
Zoltan Varga cb75d5f53f 2004-09-23 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix bug in previous patch.

svn path=/trunk/mono/; revision=34275
2004-09-23 12:04:54 +00:00
Zoltan Varga ff31bb0f42 2004-09-23 Zoltan Varga <[email protected]>
* MonoEvent.cs (MonoEventInfo): Add 'other_methods' field.

	* EventInfo.cs MonoEvent.cs: Add NET 2.0 GetOtherMethods method.

svn path=/trunk/mcs/; revision=34274
2004-09-23 11:50:20 +00:00
Zoltan Varga 09afe79323 2004-09-23 Zoltan Varga <[email protected]>
* object-internals.h (MonoEventInfo): Add 'other_methods' field.

	* class.c (init_events): Fill out event->other field.

	* class.c: Fix warnings.

	* icall.c (ves_icall_get_event_info): Fill out 'other_methods' field.

svn path=/trunk/mono/; revision=34273
2004-09-23 11:47:34 +00:00
Marek Safar d00466e814 new test
svn path=/trunk/mcs/; revision=34272
2004-09-23 11:46:38 +00:00
Marek Safar 542069f24a update
svn path=/trunk/mcs/; revision=34271
2004-09-23 11:40:55 +00:00
Marek Safar 35665411b8 2004-09-23 Marek Safar <[email protected]>
* class.cs (Operator.Define): Add error 448 and 559 report.

svn path=/trunk/mcs/; revision=34270
2004-09-23 11:29:25 +00:00
Marek Safar 54c8920da3 update
svn path=/trunk/mcs/; revision=34269
2004-09-23 10:15:00 +00:00
Zoltan Varga f2ffd01389 2004-09-23 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
	#66650.

svn path=/trunk/mono/; revision=34268
2004-09-23 09:54:00 +00:00
Ravindra f2bf680e52 Updated sources list and project file.
svn path=/trunk/mcs/; revision=34267
2004-09-23 07:44:28 +00:00
Ravindra 9a75ce9b22 EventArgs and EventHandlers needed by ListView Control.
svn path=/trunk/mcs/; revision=34266
2004-09-23 07:39:19 +00:00
John Luke fea8d43b9c 2004-09-22 John Luke <[email protected]>
* outline.cs: use simpler IsDefined method
        for checking params and [Flags]

svn path=/trunk/mcs/; revision=34262
2004-09-22 22:40:11 +00:00
Peter Dennis Bartok 93ed26a2ba - Implemented DockPadding property
- Implemented AutoScroll property
- Implemented AutoScrollMargin property
- Implemented AutoScrollMinSize property
- Implemented AutoScrollPosition property
- Implemented DisplayRectangle property (still incomplete)
- Implemented CreateParams property
- Implemented HScroll property
- Implemented VScroll property
- Implemented OnVisibleChanged property

svn path=/trunk/mcs/; revision=34261
2004-09-22 20:12:45 +00:00
Peter Dennis Bartok a87a9f61ca - Added Form.ControllCollection class
- Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
  RemoveOwnedForm (still incomplete, missing on-top and common
  minimize/maximize behaviour)
- Added StartPosition property (still incomplete, does not use when
  creating the form)
- Added ShowDialog() methods (still incomplete, missing forcing the dialog
  modal)

svn path=/trunk/mcs/; revision=34260
2004-09-22 20:09:44 +00:00
Peter Dennis Bartok b1ea207ac5 - Added message loop for modal dialogs
svn path=/trunk/mcs/; revision=34259
2004-09-22 20:05:41 +00:00
Peter Dennis Bartok 25b6a65fe8 - Fixed wrong types for events
svn path=/trunk/mcs/; revision=34258
2004-09-22 20:02:40 +00:00
Peter Dennis Bartok 3ce6a5ab40 - Fixed wrong values
svn path=/trunk/mcs/; revision=34257
2004-09-22 20:01:21 +00:00
Lluis Sanchez 687f6921c7 * ConstructionCall.cs: Added a Proxy property (which is the proxy that
will reference the object being created).
	* StackBuilderSink.cs: Take into account the forceInternalExecute
	  parameter.

svn path=/trunk/mcs/; revision=34255
2004-09-22 19:33:18 +00:00
Lluis Sanchez 25d2bc422a * RemotingProxy.cs: When attaching a CBO identity, assign the proxy to
be used as "this" for method calls.

svn path=/trunk/mcs/; revision=34254
2004-09-22 19:32:49 +00:00
Lluis Sanchez d1be134bf4 * Context.cs: In CreateServerObjectSinkChain, added a parameter to
specify that messages must be dispatched to the target object using
	  InternalExecute. Usually if the target is a proxy, the sink uses
	  RealProxy.Invoke to dispatch the method. This can't be done for local
	  CBOs since we would loop for ever.

svn path=/trunk/mcs/; revision=34253
2004-09-22 19:32:13 +00:00
Lluis Sanchez 1c0aace75f * ActivationServices.cs: In Activate, assign the proxy to the ctor
message. In CreateInstanceFromMessage if the object being created
	  is a CBO, use the provided proxy as "this" when calling the ctor.

svn path=/trunk/mcs/; revision=34252
2004-09-22 19:31:25 +00:00
Lluis Sanchez d1c4ebe91a * RemotingServices.cs: In InternalExecute, use MethodBase instead
of MonoMethod, so it can be also used for running constructors.
	* ServerIdentity.cs: Added methods for getting and setting the client
	  proxy in ClientActivatedIdentity. This is needed for CBOs, since
	  messages need to be dispatched using the proxy as "this", not the
	  real object.

svn path=/trunk/mcs/; revision=34251
2004-09-22 19:30:55 +00:00
César Natarén 4a782de9fa 2004-09-22 Cesar Lopez Nataren <[email protected]>
* expression.cs: Binary, use ResolveFieldAccess only in case the operator is JSToken.AccessField.

svn path=/trunk/mcs/; revision=34250
2004-09-22 19:28:27 +00:00
César Natarén 2836fc532e 2004-09-22 Cesar Lopez Nataren <[email protected]>
* Parser.cs: use ToJSToken to set the operator properly.

svn path=/trunk/mcs/; revision=34249
2004-09-22 19:19:13 +00:00
César Natarén 6f34e1b87e 2004-09-22 Cesar Lopez Nataren <[email protected]>
* FunctionDeclaration.cs: delete spaces.

svn path=/trunk/mcs/; revision=34248
2004-09-22 19:17:15 +00:00
Lluis Sanchez 5bda6f1f2c * ThreadTest.cs, MutexTest.cs: Don't leave any thread alive, even if the
thread fails. Added a timeout to active waits.

svn path=/trunk/mcs/; revision=34247
2004-09-22 19:06:50 +00:00
Jackson Harper 294f339d9f Text is never null
svn path=/trunk/mcs/; revision=34246
2004-09-22 18:01:28 +00:00
Marek Safar 3708ba82d6 update
svn path=/trunk/mcs/; revision=34245
2004-09-22 17:42:39 +00:00
Marek Safar f72c67dd4a 2004-09-22 Marek Safar <[email protected]>
* class.cs (MemberBase.IsTypePermitted): New protected
	method for checking error CS0610.

svn path=/trunk/mcs/; revision=34244
2004-09-22 17:40:50 +00:00
Paolo Molaro 2f9883ad90 Fixed some code style issues.
svn path=/trunk/mono/; revision=34243
2004-09-22 17:14:53 +00:00
Martin Baulig b9aed60953 New test, not yet working.
svn path=/trunk/mcs/; revision=34242
2004-09-22 16:54:45 +00:00
Marek Safar 6270a2c6f4 update
svn path=/trunk/mcs/; revision=34241
2004-09-22 16:37:49 +00:00
Martin Baulig a411ac22d0 2004-09-22 Martin Baulig <[email protected]>
* typemanager.cs (TypeManager.LookupGenericTypeContainer): New
	public method; like LookupTypeContainer, but also works for
	generic instances.

	* report.cs (Report.SymbolRelatedToPreviousError): Use
	TypeManager.LookupGenericTypeContainer().

svn path=/trunk/mcs/; revision=34240
2004-09-22 16:33:42 +00:00
Marek Safar a0da14a754 2004-09-22 Marek Safar <[email protected]>
* class.cs (TypeContainer.HasExplicitLayout): New property
	Returns whether container has StructLayout attribute set Explicit.
	(FieldMember): New abstract class for consts and fields.
	(FieldMember.ApplyAttributeBuilder): Add error 636 and 637 report.
	(Field): Reuse FieldMember.

	* const.cs (Const): Reuse FieldMember.

	* rootcontext.cs: EmitConstants call moved to class.

svn path=/trunk/mcs/; revision=34239
2004-09-22 16:32:53 +00:00
Martin Baulig 083ab573a2 2004-09-22 Martin Baulig <[email protected]>
* test-298.cs: New test, already in gmcs.

svn path=/trunk/mcs/; revision=34238
2004-09-22 16:23:49 +00:00
Martin Baulig 7a8aa4f2f5 2004-09-22 Martin Baulig <[email protected]>
Thanks to Peter Sestoft for this bug report.

	* expression.cs (Conditional): If both the `trueExpr' and the
	`falseExpr' is a NullLiteral, return a NullLiteral.

svn path=/trunk/mcs/; revision=34237
2004-09-22 16:22:37 +00:00
Martin Baulig a531473ccb 2004-09-22 Martin Baulig <[email protected]>
* gen-78.cs: New test for #65521.

svn path=/trunk/mcs/; revision=34232
2004-09-22 16:02:46 +00:00
Martin Baulig e709ae578c 2004-09-22 Martin Baulig <[email protected]>
* statement.cs (Foreach.EmitCollectionForeach): If we're in an
	iterator, use `enumerator.EmitThis()' instead of `ec.EmitThis()'
	for the "get_Current" call.

svn path=/trunk/mcs/; revision=34231
2004-09-22 16:00:40 +00:00
Paolo Molaro 1cd75bf4df Wed Sep 22 19:06:02 CEST 2004 Paolo Molaro <[email protected]>
* interp.c: updates for stack walk interface.

svn path=/trunk/mono/; revision=34230
2004-09-22 15:53:43 +00:00
Paolo Molaro 70c925675d Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <[email protected]>
* mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
	mini-exceptions.c: updates for changed stack walk interface.

svn path=/trunk/mono/; revision=34229
2004-09-22 15:53:29 +00:00
Paolo Molaro f8a82c8db3 Wed Sep 22 19:04:32 CEST 2004 Paolo Molaro <[email protected]>
* class-internals.h, icall.c, loader.c, loader.h: added a faster stack
	walk which doesn't supply the IL offset.

svn path=/trunk/mono/; revision=34228
2004-09-22 15:53:26 +00:00
Martin Baulig 4cde264176 Somehow this line disappeared during one of the last mergings ...
svn path=/trunk/mcs/; revision=34227
2004-09-22 15:42:33 +00:00
Martin Baulig 3e651f5b22 Updated.
svn path=/trunk/mcs/; revision=34226
2004-09-22 15:23:50 +00:00
Martin Baulig 8df7ff4e2c 2004-09-22 Martin Baulig <[email protected]>
* Makefile: Added some Makefile love :-)

svn path=/trunk/mcs/; revision=34225
2004-09-22 15:10:05 +00:00
Atsushi Eno 7866795d55 2004-09-22 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatype.cs : handle xdt:* types in FromName().

svn path=/trunk/mcs/; revision=34224
2004-09-22 15:09:04 +00:00
Atsushi Eno 06bf78f60e 2004-09-22 Atsushi Enomoto <[email protected]>
* SequenceType.cs : return TypedValue instead of null in case of
	  XPathNavigator.
	* XPath2Expression.cs : now FunctionCallExpr also handles evaluation.
	* XPathSequence.cs : rewrote FLWORIterator to iterate forlet
	  expressions based on index.

svn path=/trunk/mcs/; revision=34223
2004-09-22 15:07:58 +00:00
Martin Baulig d3ca7177bf 2004-09-22 Martin Baulig <[email protected]>
Marek and me just fixed one of our oldest bugs: #28562 :-)

	* ecore.cs (EnumConstant.GetValueAsEnumType): New public method.

	* attribute.cs (Attribute.GetAttributeArgumentExpression): If
	we're an EnumConstant, just return that.
	(Attribute.Resolve): GetAttributeArgumentExpression() may give us
	an EnumConstant.  In this case, we need to use GetValueAsEnumType()
	to get the value which'll actually be written into the attribute.
	However, we have to use GetValue() to access the attribute's value
	in the compiler.

svn path=/trunk/mcs/; revision=34221
2004-09-22 13:56:41 +00:00
Ravindra 7850ab5463 * gdipFunctions.cs: Backporting. Improved the exception message
for unsupported image formats.

svn path=/branches/mono-1-0/mcs/; revision=34220
2004-09-22 13:42:57 +00:00
Zoltan Varga b59ff7ce21 2004-09-22 Zoltan Varga <[email protected]>
* ModuleTest.cs: Add tests for NET 2.0 ResolveXXX methods.

svn path=/trunk/mcs/; revision=34218
2004-09-22 13:05:24 +00:00
Marek Safar 1f6eb1792a 2004-09-22 Marek Safar <[email protected]>
* constant.cs (Constant.IsNegative): New abstract property
	IsNegative.

	* expression.cs (ArrayAccess.DoResolve): Add warning 251.
	(StackAlloc.DoResolve): Reused IsNegative.

svn path=/trunk/mcs/; revision=34217
2004-09-22 13:02:11 +00:00
Martin Baulig f9e173275c 2004-09-22 Martin Baulig <[email protected]>
* test-297.cs: New test for #28562.

svn path=/trunk/mcs/; revision=34215
2004-09-22 12:48:01 +00:00
Martin Baulig 562af229ed 2004-09-22 Martin Baulig <[email protected]>
* reflection.c (mono_reflection_setup_internal_class): If we're
	System.ValueType, System.Object or System.Enum, set
	`klass->instance_size' and create the vtable.
	(mono_reflection_create_internal_class): If we're an enum type,
	get the base class from our current corlib.

svn path=/trunk/mono/; revision=34214
2004-09-22 12:46:03 +00:00
Zoltan Varga 76f99d3526 2004-09-22 Zoltan Varga <[email protected]>
* Module.cs: Implement net 2.0 ResolveXXX methods.

	* Module.cs (resolve_token_exception): Fix type of exception thrown.

svn path=/trunk/mcs/; revision=34213
2004-09-22 12:45:46 +00:00
Zoltan Varga fc6f9926c3 2004-09-22 Zoltan Varga <[email protected]>
* Module.cs: Implement net 2.0 ResolveXXX methods.

svn path=/trunk/mcs/; revision=34212
2004-09-22 12:36:35 +00:00
Zoltan Varga a012f05a58 2004-09-22 Zoltan Varga <[email protected]>
* ModuleHandle.cs: Updated after changes to Module class.

svn path=/trunk/mcs/; revision=34211
2004-09-22 12:36:09 +00:00
Zoltan Varga fcf5f95511 2004-09-22 Zoltan Varga <[email protected]>
* reflection.h (MonoResolveTokenError): New type.

	* icall.c (ves_icall_System_Reflection_Module_ResolveMemberToken): New
	icall.

	* icall.c: Add an 'error' argument to the ResolveToken icalls.

svn path=/trunk/mono/; revision=34210
2004-09-22 12:33:04 +00:00
Sebastien Pouliot b405ec4492 2004-09-22 Sebastien Pouliot <[email protected]>
* RandomTest.cs: Commented test CompareWithMS following constants
	changes in Mono implementation (to use Knuth's constants).

svn path=/trunk/mcs/; revision=34209
2004-09-22 12:06:46 +00:00
Sebastien Pouliot d0fde8edcd 2004-09-22 Sebastien Pouliot <[email protected]>
* SHA224Test.cs: Fix compilation error with NUnit 2.1.91 (CVS).

svn path=/trunk/mcs/; revision=34207
2004-09-22 11:05:21 +00:00
Lluis Sanchez 783c233fca * icall.c: Support ContextBoundObject proxies in ves_icall_InternalExecute.
Support also calling constructors, but only for already allocated objects

svn path=/trunk/mono/; revision=34205
2004-09-22 10:44:13 +00:00
Miguel de Icaza 31c460bc77 Flush
svn path=/trunk/mono/; revision=34192
2004-09-21 21:31:22 +00:00
Geoff Norton 9719257901 OSX doesn't have O_SYNC; check to make sure O_SYNC is defined before compiling this part. Lets mono build on OSX again.
svn path=/trunk/mono/; revision=34191
2004-09-21 21:30:12 +00:00
Miguel de Icaza 7d63ea42e6 plug
svn path=/branches/mono-1-0/mcs/; revision=34188
2004-09-21 18:14:28 +00:00
Miguel de Icaza b33a805f58 pain
svn path=/trunk/mcs/; revision=34186
2004-09-21 18:14:10 +00:00
Miguel de Icaza 8f9bfb613a Add -g
svn path=/trunk/mcs/; revision=34185
2004-09-21 18:01:14 +00:00
Geoff Norton 9f4822fa6c Adding test case for bug #63841
svn path=/trunk/mcs/; revision=34182
2004-09-21 17:43:05 +00:00
Neale Ferguson b0c0dddcc0 Cater for Linux on S/390 in configure. Enable build by updating rule for .mdb
objects

svn path=/trunk/mono/; revision=34178
2004-09-21 16:32:35 +00:00
Neale Ferguson 3d3b5d6cde Minor OP_ARGLIST changes
svn path=/trunk/mono/; revision=34177
2004-09-21 16:27:21 +00:00
Martin Baulig 0bbb5a8b19 2004-09-21 Martin Baulig <[email protected]>
* test-295.cs: Added Geoff Norton's patch for #62984.

svn path=/trunk/mcs/; revision=34176
2004-09-21 15:52:07 +00:00
Martin Baulig e90e84ff61 Committing Geoff Norton's patch for #62984.
2004-09-17  Geoff Norton <[email protected]>

	* reflection.c (type_get_qualified_name): If the klass is null
	return the typename to avoid a NullRefEx.
	(encode_cattr_value): Get the qualified name of the boxed type,
	not the underlying enumtype.  Fixes #62984.

svn path=/trunk/mono/; revision=34175
2004-09-21 15:47:23 +00:00
Martin Baulig ecc659a8ef Merged again.
svn path=/trunk/mcs/; revision=34174
2004-09-21 15:17:54 +00:00
Martin Baulig beb2c3252c **** Merged from MCS ****
svn path=/trunk/mcs/; revision=34173
2004-09-21 15:17:34 +00:00
Martin Baulig 95231dcd8b 2004-09-21 Martin Baulig <[email protected]>
* codegen.cs (VariableStorage): Don't store the ILGenerator here;
	if we're used in an iterator, we may be called from different
	methods.

	* statement.cs (Foreach.EmitFinally): Only emit an `Endfinally' if
	we actually have an exception block.

svn path=/trunk/mcs/; revision=34171
2004-09-21 14:27:32 +00:00
Sureshkumar T 7864f6b418 * DataRow.cs: Added a new original row cache, if the current row happens
to be the original row. fixed bug #63097

svn path=/branches/mono-1-0/mcs/; revision=34169
2004-09-21 13:21:05 +00:00
Zoltan Varga 937b30aa46 2004-09-21 Zoltan Varga <[email protected]>
* marshal.c: Fix problems with previous checkin.

svn path=/trunk/mono/; revision=34166
2004-09-21 13:10:45 +00:00
Anirban Bhattacharjee 09bf99a95f 2004-09-21 Anirban Bhattacharjee <[email protected]>
* EventF.vb: Modified
        * EventI.vb: New test
        * Test.Sources: Modified

svn path=/trunk/mcs/; revision=34165
2004-09-21 13:02:12 +00:00
Zoltan Varga 347ab4483b 2004-09-21 <[email protected]>
* marshal.h marshal.c icall.c: Add new icalls for Alloc/FreeHGlobal. Change the
	existing mono_marshal_alloc/free functions to use CoTaskMemAlloc/Free under windows.

	* marshal.c: Allocate marshaller memory using mono_marshal_alloc/free.

svn path=/trunk/mono/; revision=34164
2004-09-21 12:58:43 +00:00
Sureshkumar T 8b5a801234 * DataSetTest.cs : Added a test for Deserialization of dataset : DeserializeModifiedDataSet
svn path=/branches/mono-1-0/mcs/; revision=34163
2004-09-21 12:58:11 +00:00
Anirban Bhattacharjee 0181cc6c73 2004-09-21 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Fixed bug #66231 -
         Now, Me.SubName, MyBase.SubName or any other qualified name
         is supported by AddressOf operator

svn path=/trunk/mcs/; revision=34162
2004-09-21 12:57:09 +00:00
Zoltan Varga ad73d2f22f 2004-09-21 <[email protected]>
* libtest.c: Free memory using CoTaskMemFree on windows.
	* libtest.c (mono_test_stdcall_name_mangling): Remove declspec(dllimport).

svn path=/trunk/mono/; revision=34161
2004-09-21 12:56:24 +00:00
Zoltan Varga ddd104de71 2004-09-21 Zoltan Varga <[email protected]>
* libtest.c (mono_test_stdcall_name_mangling): Add test for stdcall
	name mangling on windows.

svn path=/trunk/mono/; revision=34160
2004-09-21 12:44:21 +00:00
Zoltan Varga f0f8afae09 2004-09-21 <[email protected]>
* configure.in: Link with ole32 on windows.

svn path=/trunk/mono/; revision=34159
2004-09-21 11:25:18 +00:00
Sanja Gupta 52c980e8e1 ChangeLog: Updated ChangeLog.
FormViewUpdatedEventArgs.cs: Spelling mistake.

svn path=/trunk/mcs/; revision=34158
2004-09-21 11:23:09 +00:00
Lluis Sanchez 652840c106 * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
when reading a primitive value in encoded format using
	  ReadReferencingElement, provide the type name and namespace
	  since the xsi type may not be present in the xml element. This
	  fixes bug #65929.

svn path=/trunk/mcs/; revision=34157
2004-09-21 09:59:17 +00:00
César Natarén fd095eab06 2004-09-21 Cesar Lopez Nataren <[email protected]>
* FunctionDeclaration.cs: check for parent being a ScriptBlock.

svn path=/trunk/mcs/; revision=34156
2004-09-21 07:54:01 +00:00
Raja R Harinath 367078baed Print 'IGNORED' when a test is ignored.
svn path=/trunk/mcs/; revision=34155
2004-09-21 04:55:50 +00:00
Raja R Harinath 7a5e0df1f9 (net20bootstrapcorlib): Rename from net20bootstraplib.
Build 'mscorlib.dll' using the 'net_2_0_bootstrap' profile.
(net20bootstrapSystem): New.  Build 'System.dll' using the
'net_2_0_bootstrap' profile.
($(gmcs)): Depend on both the above.
(CLEAN_FILES) [PROFILE=net_2_0]: Clean the 'net_2_0_bootstrap'
profile and 'gmcs' too.

svn path=/trunk/mcs/; revision=34154
2004-09-21 04:54:48 +00:00
Raja R Harinath c1375b2791 (lib_file) [PROFILE=net_2_0]: New test. Use
net_2_0_bootstrap libraries if necessary.
($(the_lib)): Don't depend on a phony target.  Move 'echo-warning' ...
(all-local): ... here.  Will now warn unnecessarily, but is better
than rebuilding the library each time.

svn path=/trunk/mcs/; revision=34153
2004-09-21 04:54:25 +00:00
Raja R Harinath 7210f8f2d6 (AssemblyVersion): Define to 2.0.x when
BOOTSTRAP_NET_2_0 is defined.

svn path=/trunk/mcs/; revision=34152
2004-09-21 04:54:03 +00:00
Raja R Harinath 4cd13e7617 New file.
svn path=/trunk/mcs/; revision=34151
2004-09-21 04:53:32 +00:00
Raja R Harinath 47d275abbb (DIST_ONLY_SUBDIRS): Add 'gmcs' since it is specially
handled by 'class/corlib/Makefile'.
(test-installed-compiler): Run compiler tests using the installed
compiler.

svn path=/trunk/mcs/; revision=34150
2004-09-21 04:53:09 +00:00
Peter Dennis Bartok fc05e321a0 - Fixed accessibility level for Idle handler
svn path=/trunk/mcs/; revision=34148
2004-09-21 04:14:29 +00:00
Geoff Norton 46c8139197 2004-09-21 Geoff Norton <[email protected]>
* icall.c (ves_icall_MonoType_GetElementType): GetElementType
        should only return a type for pointers, arrays, and passbyref types.
        Fixes bug #63841.

svn path=/trunk/mono/; revision=34147
2004-09-21 04:02:20 +00:00
Geoff Norton ce9a98b6a9 2004-09-21 Geoff Norton <[email protected]>
* Type.cs: BindingFlags.IgnoreCase was being ignored, this reimplements
        this filter. Fixes bug #65778.

svn path=/trunk/mcs/; revision=34145
2004-09-21 03:56:00 +00:00
Raja R Harinath 70763cb8f8 (the_mdb): Fix.
(library_CLEAN_FILES): Add the new test results files too.

svn path=/trunk/mcs/; revision=34143
2004-09-21 03:34:51 +00:00
Martin Baulig 9c9795ef44 2004-09-21 Martin Baulig <[email protected]>
* gen-77.cs: New test for #66014.

svn path=/trunk/mcs/; revision=34139
2004-09-21 01:16:42 +00:00
Martin Baulig db796f5b7c 2004-09-21 Martin Baulig <[email protected]>
* convert.cs (Convert.ImplicitReferenceConversion): When
	converting to an interface type, first check whether we're
	converting from a reference type.

svn path=/trunk/mcs/; revision=34138
2004-09-21 01:13:50 +00:00
Jackson Harper 3b20b6c442 New message loop that uses poll so we don't get a busy loop
svn path=/trunk/mcs/; revision=34137
2004-09-21 00:54:15 +00:00
Martin Baulig aa84b79d6c Oooops.
svn path=/trunk/mono/; revision=34136
2004-09-21 00:42:47 +00:00
César Natarén a97aa3558f good bye antlr
svn path=/trunk/mcs/; revision=34135
2004-09-20 23:57:30 +00:00
César Natarén 28f9a93fd2 remove antlr stuff.
svn path=/trunk/mcs/; revision=34134
2004-09-20 23:53:09 +00:00
César Natarén 689e4c844e remove antlr stuff.
svn path=/trunk/mcs/; revision=34133
2004-09-20 23:46:13 +00:00
César Natarén 334245e874 remove antl stuff.
svn path=/trunk/mcs/; revision=34132
2004-09-20 23:44:23 +00:00
César Natarén 44c912898f remove antlr stuff
svn path=/trunk/mcs/; revision=34131
2004-09-20 23:43:32 +00:00
César Natarén 29f3db7ed5 delete files generated by antlr.
svn path=/trunk/mcs/; revision=34130
2004-09-20 23:35:09 +00:00
César Natarén 5ca89edf5e changelog entries
svn path=/trunk/mcs/; revision=34129
2004-09-20 23:18:48 +00:00
César Natarén 0d9673aa6e * CodeGenerator.cs: fixes for fall_true & fall_false for taking care of ast when is a Expre\ssion.
svn path=/trunk/mcs/; revision=34128
2004-09-20 23:17:28 +00:00
César Natarén eda00052a1 * IdentificationTable.cs: added method Remove.
svn path=/trunk/mcs/; revision=34127
2004-09-20 23:16:47 +00:00
César Natarén e08f20b1c3 * JSFunctionAttribute.cs: added fields value and built_in_function
so we can decide when a method is really a built in.

svn path=/trunk/mcs/; revision=34126
2004-09-20 23:16:27 +00:00
César Natarén 6245f90812 * MathObject.cs: added internal constructor.
svn path=/trunk/mcs/; revision=34125
2004-09-20 23:16:01 +00:00
César Natarén df60be8921 * Parser.cs:fixes to keep track of the inheritance chain.
svn path=/trunk/mcs/; revision=34124
2004-09-20 23:15:40 +00:00
César Natarén e7cb543f36 * Relational.cs: added code generation for ops instanceof and
svn path=/trunk/mcs/; revision=34123
2004-09-20 23:15:06 +00:00
César Natarén ba2df53441 * SemanticAnalizer.cs: added hash global_env and
IdentificationTable label_set for keeping track of global methods and
        label sets. Added static constructor, method BuildGlobalEnv,
        ImplementationName, ObjectSystemContains, AddLabel, ContainsLabel,
        GetLabel, RemoveLabel.

svn path=/trunk/mcs/; revision=34122
2004-09-20 23:14:45 +00:00
César Natarén aded8a0417 * Statement.cs: Added abstract class Jump of which Continue and
Break inherit, checks the label stuff. Added checks for Label
        stuff to Continue and Break classes. Added method Init for
        DoWhile. Fixes for loops statements in order to be able for have
        nested loops. Initial support for Label statements.

svn path=/trunk/mcs/; revision=34121
2004-09-20 23:14:20 +00:00
César Natarén d08f81d9e4 * SymbolTable.cs: added method Remove.
svn path=/trunk/mcs/; revision=34120
2004-09-20 23:13:51 +00:00
César Natarén a08eb0810a * ast.cs: added check for parent equal to ScriptBlock.
svn path=/trunk/mcs/; revision=34119
2004-09-20 23:13:20 +00:00
César Natarén 26eaed5e82 * expression.cs: added semantic analysis for accessing fields on
class Binary. Semantic Analysis for Calls it takes care of
        constructors and methods, added invocation code for built in
        methods. Added interface IAccesible that let us resolve the '.'
        operator. Class Args handles missing or surplus arguments. Added
        class BuiltIn which will take care of all builtins of ECMAScript.

svn path=/trunk/mcs/; revision=34118
2004-09-20 23:12:56 +00:00
Martin Baulig 6bf5207c4e 2004-09-21 Martin Baulig <[email protected]>
* main.c (main): If just a single assembly was specified, use the
	runtime version it requires.

svn path=/trunk/mono/; revision=34117
2004-09-20 23:04:50 +00:00
Martin Baulig edc329d672 2004-09-21 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoDebuggerSupport.CheckRuntimeVersion): New
	public method.

svn path=/trunk/mcs/; revision=34114
2004-09-20 23:02:44 +00:00
Martin Baulig 8e71452c84 2004-09-21 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_CheckRuntimeVersion): New internal method.

svn path=/trunk/mcs/; revision=34113
2004-09-20 23:01:58 +00:00
Martin Baulig 4aae124931 2004-09-21 Martin Baulig <[email protected]>
* domain.c (mono_debugger_check_runtime_version): New public
	function.

	* icall.c (ves_icall_MonoDebugger_check_runtime_version): New icall.

svn path=/trunk/mono/; revision=34112
2004-09-20 23:01:16 +00:00
César Natarén 6b409ab63a 2004-09-20 Cesar Lopez Nataren <[email protected]>
* Microsoft.JScript.dll.sources: drop antlr dependency.

svn path=/trunk/mcs/; revision=34104
2004-09-20 21:49:53 +00:00
Sebastien Pouliot babb0660b1 2004-09-20 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: Fixed assembly-level permissions. I don't know
	why I splitted them all into individual entries when only a single set
	is accepted for each security action :(.

svn path=/trunk/mcs/; revision=34103
2004-09-20 20:56:00 +00:00
Gert Driesen 658293d599 * System.dll.sources: Moved ReadOnlyCollection.cs and Collection.cs
from corlib to System.Collections.Generic in System assembly

svn path=/trunk/mcs/; revision=34101
2004-09-20 19:19:28 +00:00
Gert Driesen 7eeddc0328 * ReadOnlyCollection.cs: Moved over from corlib
* Collection.cs: Moved over from corlib

svn path=/trunk/mcs/; revision=34100
2004-09-20 19:18:58 +00:00
Gert Driesen 6bcb854d93 * corlib.dll.sources: Removed ReadOnlyCollections.cs and Collection.cs
from corlib System.Collections.Generics to System assembly

svn path=/trunk/mcs/; revision=34099
2004-09-20 19:16:21 +00:00
Gert Driesen 6b1ee037b0 * ReadOnlyCollection.cs: Moved to System assembly
* Collection.cs: Moved to System assembly

svn path=/trunk/mcs/; revision=34098
2004-09-20 19:14:57 +00:00
Jackson Harper 42541bb988 * support/map.c/h: Add poll events map functions. Use values
instead of names for defines.

svn path=/trunk/mono/; revision=34096
2004-09-20 18:44:18 +00:00
Gert Driesen 55e02abcc4 * XmlValidatingReader.cs: Added deprecation message.
svn path=/trunk/mcs/; revision=34095
2004-09-20 18:21:55 +00:00
Martin Baulig 3eb35a4831 Updated.
svn path=/trunk/mcs/; revision=34092
2004-09-20 16:41:34 +00:00
Sebastien Pouliot 56a13be590 2004-09-20 Sebastien Pouliot <[email protected]>
* reflection.c: Added missing sort to the declarative security
	attributes table. MS implementation stops seeing the attributes if the
	token number regress in the table (as shown by ildasm and permview).

svn path=/trunk/mono/; revision=34091
2004-09-20 16:05:46 +00:00
Miguel de Icaza 3cdb97dd43 2004-09-20 John Luke <[email protected]>
* class.cs, cs-parser.jay: Improve the error report for 1520:
	report the actual line where the error happens, not where the
	class was declared.

svn path=/trunk/mcs/; revision=34088
2004-09-20 15:38:28 +00:00
Miguel de Icaza 0dface6788 2004-09-20 John Luke <[email protected]>
* assign.cs, delegate.cs, ecore.cs, expression.cs, statement.cs:
	Pass location information that was available elsewhere.

svn path=/trunk/mcs/; revision=34087
2004-09-20 15:36:26 +00:00
Raja R Harinath feabb2a771 Profile for bootstraping the GMCS compiler.
svn path=/trunk/mcs/; revision=34086
2004-09-20 12:08:40 +00:00
Zoltan Varga 7bb4bd6967 2004-09-20 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionModule): Add 'token' field.

svn path=/trunk/mono/; revision=34085
2004-09-20 11:29:37 +00:00
Zoltan Varga 679fe90d18 2004-09-20 Zoltan Varga <[email protected]>
* AssemblyTest.cs: Add tests for MetadataToken and ManifestModule.

svn path=/trunk/mcs/; revision=34084
2004-09-20 11:23:14 +00:00
Zoltan Varga 02e4a0987b 2004-09-20 Zoltan Varga <[email protected]>
* object-internals.h (MonoReflectionModule): Add 'token' field.

	* reflection.c (mono_reflection_get_token): Add support for Module
	and Assembly.
	(mono_module_get_object): Set 'token' field.
	(mono_module_file_get_object): Set 'token' field.

	* icall.c: Add new Assembly and Module icalls.

svn path=/trunk/mono/; revision=34083
2004-09-20 11:14:13 +00:00
Zoltan Varga 8b0284d70c 2004-09-20 Zoltan Varga <[email protected]>
* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=34082
2004-09-20 11:10:54 +00:00
Zoltan Varga 7aa9a55f4a 2004-09-20 Zoltan Varga <[email protected]>
* Assembly.cs: Implement 2.0 reflection properties.

	* Module.cs: Implement 2.0 reflection properties. Add 'token' field.

svn path=/trunk/mcs/; revision=34081
2004-09-20 11:10:00 +00:00
Ravindra 917ec397b8 Added a note to Guidelines.
svn path=/trunk/mcs/; revision=34080
2004-09-20 05:41:41 +00:00
Sebastien Pouliot 0a1757c683 2004-09-19 Sebastien Pouliot <[email protected]>
* codegen.cs: Fix bug #56621. It is now possible to use MCS on the MS
	runtime to delay sign assemblies.

svn path=/trunk/mcs/; revision=34076
2004-09-20 00:25:52 +00:00
Sebastien Pouliot 0e2007a6b5 2004-09-19 Alexis Christoforides <[email protected]>
* CodeGroup.cs: Changed AddChild() to add a copy of the child, like
	the MS implementation.
	* UnionCodeGroup.cs: Resolve() will now perform union on child code
	groups.
	* FileCodeGroup.cs: Resolve() will now perform union on child code
	groups.
	* NetCodeGroup.cs: Resolve() will now perform union on child code
	groups.

svn path=/trunk/mcs/; revision=34075
2004-09-20 00:00:14 +00:00
Sebastien Pouliot e2740655bb 2004-09-19 Alexis Christoforides <[email protected]>
* UnionCodeGroupTest.cs: Added ResolveWithChildren test.

svn path=/trunk/mcs/; revision=34074
2004-09-19 23:57:35 +00:00
Zoltan Varga eec373bbc2 2004-09-19 Zoltan Varga <[email protected]>
* PortableExecutableKind.cs ImageFileMachine.cs: Make this internal
	under 1.0.

svn path=/trunk/mcs/; revision=34071
2004-09-19 14:55:06 +00:00
Zoltan Varga f58406ebc3 2004-09-19 Zoltan Varga <[email protected]>
* ModuleHandleTest.cs: New file.

svn path=/trunk/mcs/; revision=34070
2004-09-19 14:41:15 +00:00
Zoltan Varga 7802cedf5b 2004-09-19 Zoltan Varga <[email protected]>
* corlib_test.dll.sources: Added System/ModuleHandleTest.

svn path=/trunk/mcs/; revision=34069
2004-09-19 14:39:00 +00:00
Zoltan Varga f0279c8e11 2004-09-19 Zoltan Varga <[email protected]>
* MemberInfo.cs ParameterInfo.cs: Add MetadataToken property.

	* Module.cs: Add ModuleHandle property and new icalls.

svn path=/trunk/mcs/; revision=34068
2004-09-19 14:36:11 +00:00
Zoltan Varga 59b22d42b3 2004-09-19 Zoltan Varga <[email protected]>
* corlib.dll.sources: Added System/ModuleHandle.

svn path=/trunk/mcs/; revision=34067
2004-09-19 14:34:00 +00:00
Zoltan Varga 5015881786 2004-09-19 Zoltan Varga <[email protected]>
* ModuleHandle.cs: New file.

	* RuntimeFieldHandle.cs: Add an internal ctor.

svn path=/trunk/mcs/; revision=34066
2004-09-19 14:32:22 +00:00
Zoltan Varga 5fe595b383 2004-09-19 Zoltan Varga <[email protected]>
* loader.h loader.c class.h class.c: Add helper functions for obtaining
	tokens of metadata objects.

	* reflection.h reflection.c (mono_reflection_get_token): New function
	to obtain the token of a metadata object.

	* icall.c: Add icalls for MetadataToken and ModuleHandle methods.

svn path=/trunk/mono/; revision=34065
2004-09-19 14:29:49 +00:00
Dick Porter 361a8714bf 2004-09-19 Dick Porter <[email protected]>
* Console.cs: Use the internal wrappers for StreamReader and
	StreamWriter that catch IOException.

2004-09-19  Dick Porter  <[email protected]>

	* UnexceptionalStreamWriter.cs:
	* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
	StreamReader that catch IOException.  Used by System.Console so
	that graphical applications dont get IO errors when their
	stdin/out/err vanishes (ie when they spew debug output.)

svn path=/branches/mono-1-0/mcs/; revision=34064
2004-09-19 12:52:22 +00:00
nobody 98a86ecd4b This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=34063
2004-09-19 12:52:22 +00:00
Dick Porter 26151aafa2 2004-09-19 Dick Porter <[email protected]>
* Console.cs: Use the internal wrappers for StreamReader and
	StreamWriter that catch IOException.

2004-09-19  Dick Porter  <[email protected]>

	* UnexceptionalStreamWriter.cs:
	* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
	StreamReader that catch IOException.  Used by System.Console so
	that graphical applications dont get IO errors when their
	stdin/out/err vanishes (ie when they spew debug output.)

svn path=/trunk/mcs/; revision=34062
2004-09-19 12:52:12 +00:00
Sureshkumar T 61cce9e3d8 2004-09-19 Sureshkumar T <[email protected]>
* DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
		       hence, adding a row cache is necessary if the original row happens to be current.
		       fixed bug #63097

svn path=/trunk/mcs/; revision=34061
2004-09-19 08:16:16 +00:00
Sureshkumar T 3b8a683795 2004-09-19 Sureshkumar T <[email protected]>
* DataSetTest.cs : Added a test for Deserialization of dataset : DeserializeModifiedDataSet

svn path=/trunk/mcs/; revision=34060
2004-09-19 08:13:36 +00:00
Miguel de Icaza 68bc46f8ac 2004-09-19 Miguel de Icaza <[email protected]>
* cs-parser.jay: Do not report the stack trace, it is useless
	anyways for the production compiler.

svn path=/branches/mono-1-0/mcs/; revision=34059
2004-09-19 04:02:42 +00:00
Miguel de Icaza b84390b7cf 2004-09-19 Miguel de Icaza <[email protected]>
* cs-parser.jay: Do not report the stack trace, this is barely
	used nowadays.

svn path=/trunk/mcs/; revision=34058
2004-09-19 04:01:41 +00:00
Miguel de Icaza a0eb680eed 2004-08-22 John Luke <[email protected]>
* driver.cs : check that a resource id is not already used
	before adding it, report CS1508 if it is, bug #63637

svn path=/trunk/mcs/; revision=34057
2004-09-19 03:59:03 +00:00
Miguel de Icaza 3f038423b5 Some warning removal, and dead code elimination, brought to you by -warn:4
svn path=/trunk/mcs/; revision=34056
2004-09-19 03:56:33 +00:00
Miguel de Icaza a3813e158d Back to 2 for now, temporarily
svn path=/trunk/mcs/; revision=34055
2004-09-19 03:38:02 +00:00
Jackson Harper a8c86c9457 * Syscall.cs: Add support for poll ().
svn path=/trunk/mcs/; revision=34052
2004-09-18 20:42:16 +00:00
Marek Safar 8731d4a3c2 oups, private -> protected
svn path=/trunk/mcs/; revision=34051
2004-09-18 20:29:14 +00:00
Francisco Figueiredo Jr. 7170f17b20 2004-09-18 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlCommand.cs:
        GetClearCommandText: Fixed an infinite loop when trying to use a parameter whose name is equals to same type name.
        i.e.: parameter name :text which would conflict with :text parameter name which was being added in the replacement string.
    * NpgsqlTypes/NpgsqlTypeConverters.cs:
        BasicNativeToBackendTypeConverter.ToString: Fixed handling of strings with backslashes. Now they are properly escaped.

svn path=/trunk/mcs/; revision=34050
2004-09-18 20:28:37 +00:00
Marek Safar 3cc212df67 2004-09-18 Marek Safar <[email protected]>
* class.cs: Do not report warning CS0067 on the interfaces.

svn path=/trunk/mcs/; revision=34049
2004-09-18 19:47:08 +00:00
Martin Baulig e16f34ab8d Ooops.
svn path=/branches/mono-1-0/mono/; revision=34047
2004-09-18 17:56:47 +00:00
Jackson Harper f6bc4c864f * make-map.cs: Use field value not name for #defines.
svn path=/trunk/mcs/; revision=34046
2004-09-18 17:46:52 +00:00
John Luke 8582cef34c 2004-09-18 John Luke <[email protected]>
* outline.cs: add const = value; for const fields (Ben's idea)
        detect ParamArrayAttribute for parameters

svn path=/trunk/mcs/; revision=34045
2004-09-18 17:44:09 +00:00
Martin Baulig 6b6747750d 2004-09-18 Martin Baulig <[email protected]>
* mono-debug.c, debug-mono-symfile.c: Merged my locking changes
	from HEAD.

svn path=/branches/mono-1-0/mono/; revision=34043
2004-09-18 17:28:46 +00:00
Zoltan Varga 641e1b280e 2004-09-18 Zoltan Varga <[email protected]>
* Module.cs: Add net 2.0 Mvid property.

svn path=/trunk/mcs/; revision=34042
2004-09-18 16:31:00 +00:00
Francisco Figueiredo Jr. 4da18b29e7 2004-09-18 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlCommand.cs,
        NpgsqlConnector.cs:  Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.

svn path=/trunk/mcs/; revision=34038
2004-09-18 14:34:55 +00:00
Francisco Figueiredo Jr. dd1a54933b 2004-09-18 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlCommand.cs,
        NpgsqlConnector.cs:  Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.

svn path=/trunk/mcs/; revision=34037
2004-09-18 14:27:20 +00:00
Miguel de Icaza 531b9d6b4e Up
svn path=/trunk/mcs/; revision=34035
2004-09-17 23:17:12 +00:00
Peter Dennis Bartok 7597c3550c - Updated to describe the new managed version of System.Windows.Forms
svn path=/trunk/mono/; revision=34032
2004-09-17 21:32:15 +00:00
Miguel de Icaza c9249e1ecf up this
svn path=/branches/mono-1-0/mcs/; revision=34024
2004-09-17 19:55:04 +00:00
Miguel de Icaza 240c658c9f Up
svn path=/branches/mono-1-0/mono/; revision=34023
2004-09-17 19:44:12 +00:00
Zoltan Varga dcb3979456 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=34021
2004-09-17 18:35:00 +00:00
Zoltan Varga 6e137c9b68 2004-09-17 Zoltan Varga <[email protected]>
* loader.c (mono_lookup_pinvoke_call): Try the underscore prefixed name as well.

svn path=/trunk/mono/; revision=34020
2004-09-17 18:12:57 +00:00
Zoltan Varga 93afb2362b 2004-09-17 Zoltan Varga <[email protected]>
* loader.c (mono_lookup_pinvoke_call): Add support for stdcall name mangling.

svn path=/trunk/mono/; revision=34019
2004-09-17 17:57:15 +00:00
Zoltan Varga 95828c7b36 2004-09-17 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add test for stdcall name mangling on windows.

svn path=/trunk/mono/; revision=34018
2004-09-17 17:56:09 +00:00
Peter Dennis Bartok 0e5f65c117 - Fixed behaviour of arrow buttons. Now properly behaves like Buttons (and
like Microsoft's scrollbar arrow buttons)

svn path=/trunk/mcs/; revision=34017
2004-09-17 16:43:27 +00:00
Peter Dennis Bartok 8bc46ec3d3 - Added missing release of keyboard/mouse capture
svn path=/trunk/mcs/; revision=34016
2004-09-17 16:14:36 +00:00
Martin Baulig 014e618ec3 2004-09-17 Martin Baulig <[email protected]>
* Makefile.am (mcs-do-compiler-tests): Reverted Raja's latest
	change in this target.

svn path=/trunk/mono/; revision=34015
2004-09-17 16:13:25 +00:00
Sebastien Pouliot 711ce20289 2004-09-17 Sebastien Pouliot <[email protected]>
* SequentialSearchPrimeGeneratorBase.cs: In synch with corlib version.
	Fixed all level 4 compilation warnings.

svn path=/trunk/mcs/; revision=34013
2004-09-17 14:32:37 +00:00
Sebastien Pouliot 5c6cbf6501 2005-09-17 Sebastien Pouliot <[email protected]>
* BigInteger.cs: In sync with coirlib. This fix level 4 warnings about
	CLSCompliant.

svn path=/trunk/mcs/; revision=34012
2004-09-17 14:31:09 +00:00
Sebastien Pouliot 95acc42dcd 2004-09-17 Sebastien Pouliot <[email protected]>
* ASN1.cs: In synch with corlib version. Fixed all level 4 compilation
	warnings.
	* PKCS7.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.

svn path=/trunk/mcs/; revision=34011
2004-09-17 14:16:53 +00:00
Sebastien Pouliot 9181ad5865 2004-09-17 Sebastien Pouliot <[email protected]>
* CryptoConvert.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.
	* KeyPairPersistence.cs: In synch with corlib version. Fixed all level
	4 compilation warnings.
	* PKCS1.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.
	* SHA224Managed.cs: Fixed all level 4 compilation warnings.

svn path=/trunk/mcs/; revision=34010
2004-09-17 14:14:26 +00:00
Sebastien Pouliot 6ba0d45cc9 2004-09-17 Sebastien Pouliot <[email protected]>
* PKCS12.cs: Fixed all level 4 compilation warnings.
	* X501Name.cs: Fixed all level 4 compilation warnings.
	* X509Certificate.cs: Fixed all level 4 compilation warnings.
	* X509CertificateBuilder.cs: Fixed all level 4 compilation warnings.
	* X509Extension.cs: In synch with corlib version. Fixed all level 4
	compilation warnings.
	* X520Attributes.cs: Updated to check upperbounds - which fixed level
	4 compilation warnings.

svn path=/trunk/mcs/; revision=34009
2004-09-17 14:11:41 +00:00
Sebastien Pouliot 6aec501360 2004-09-17 Sebastien Pouliot <[email protected]>
* AuthenticodeDeformatter.cs: In synch with corlib version. Fixed all
	level 4 compilation warnings.
	* AuthenticodeFormatter.cs: Fixed all level 4 compilation warnings.
	* PrivateKey.cs: Fixed all level 4 compilation warnings.

svn path=/trunk/mcs/; revision=34008
2004-09-17 14:05:07 +00:00
Sebastien Pouliot f7bd4bf6f4 2004-09-17 Sebastien Pouliot <[email protected]>
* MiniParser.cs: In synch with corlib version. Removed all level 4
	compilation warnings.

svn path=/trunk/mcs/; revision=34007
2004-09-17 14:01:02 +00:00
Sebastien Pouliot 289828576d 2004-09-17 Sebastien Pouliot <[email protected]>
* Mono.Security.dll.sources: Added support for SHA224 hash algorithm
	in Mono.Security.Cryptography.
	* Mono.Security_test.dll.sources: Added unit tests for SHA224 hash
	algorithm.

svn path=/trunk/mcs/; revision=34006
2004-09-17 12:58:53 +00:00
Sebastien Pouliot 21819f74be 2004-09-17 Sebastien Pouliot <[email protected]>
* SHA224.cs: New. Abstract class for all SHA224 implementations.
	* SHA224Managed.cs: New. Managed implementation of SHA224 (a SHA256
	derivate) as specified in RFC3874 and FIPS 180-2 Change Notice.

svn path=/trunk/mcs/; revision=34005
2004-09-17 12:54:18 +00:00
Sebastien Pouliot 0fba45ee52 2004-09-16 Sebastien Pouliot <[email protected]>
* SHA224ManagedTest.cs: New. Unit tests for the managed implementation
	of SHA-224.
	* SHA224Test.cs: New. Unit tests for SHA-224. Use test vectors from
	RFC3874.

svn path=/trunk/mcs/; revision=34004
2004-09-17 12:45:00 +00:00
Jordi Mas i Hernandez bbde67052b Very early menu support
svn path=/trunk/mcs/; revision=34003
2004-09-17 12:19:16 +00:00
Marek Safar c2c2dd8861 2004-09-17 Marek Safar <[email protected]>
* Font.cs (FromHfont, ToHfont): Fixed windows implementation.
	ToLogFont: Implemented.

	* gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
	avoid casts.
	GdipCreateFontFromLogfontA: A new extern call.

svn path=/trunk/mcs/; revision=34002
2004-09-17 12:10:46 +00:00
Rafael Teixeira 86dc532f23 small loop condition adjustment
svn path=/trunk/mcs/; revision=34001
2004-09-17 11:32:38 +00:00
Zoltan Varga fede8af1b3 2004-09-17 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods. Fixes #66132.

svn path=/branches/mono-1-0/mono/; revision=34000
2004-09-17 11:06:56 +00:00
Zoltan Varga c4e43f6106 2004-09-17 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods.

svn path=/trunk/mono/; revision=33999
2004-09-17 11:04:27 +00:00
Zoltan Varga ee41d78bd8 2004-09-17 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.

svn path=/branches/mono-1-0/mcs/; revision=33998
2004-09-17 10:13:41 +00:00
Zoltan Varga f0a00f5f99 2004-09-17 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.

svn path=/trunk/mcs/; revision=33997
2004-09-17 10:12:39 +00:00
Sebastien Pouliot 4e61e9daf2 2004-09-16 Sebastien Pouliot <[email protected]>
* Signature.cs: Fixed Xmldsig and broken unit tests.
	* SignedXml.cs: Fixed warning (level 4) for unused variable.
	* XmlDsigEnvelopedSignatureTransform.cs: Fixed warning (l4) for unused
	variable.

svn path=/trunk/mcs/; revision=33996
2004-09-17 01:02:27 +00:00
Peter Dennis Bartok a7802dc259 - Fixed sending a window to the front
- Added overload for SetWindowPos to avoid casting

svn path=/trunk/mcs/; revision=33995
2004-09-16 23:45:09 +00:00
Peter Dennis Bartok 918f56da8d - Added SendToBack and BringToFront methods
svn path=/trunk/mcs/; revision=33994
2004-09-16 23:44:19 +00:00
Sebastien Pouliot 30eba92a89 2004-09-16 Sebastien Pouliot <[email protected]>
* SequentialSearchPrimeGeneratorBase.cs: Fixed warning (l4) for unused
	variables.

svn path=/trunk/mcs/; revision=33993
2004-09-16 23:32:58 +00:00
Sebastien Pouliot c66ce3ef1f 2004-09-16 Sebastien Pouliot <[email protected]>
* AuthenticodeDeformatter.cs: Fixed warning (l4) for unused variables.

svn path=/trunk/mcs/; revision=33992
2004-09-16 23:29:47 +00:00
Sebastien Pouliot 85b8afd511 2004-09-16 Sebastien Pouliot <[email protected]>
* CryptoConvert.cs: Fixed warning (l4) for unused variables.
	* KeyPairPersistence.cs: Fixed warning (l4) for unused variable.
	* PKCS1.cs: Added empty {} to fix warning about possible empty stmnt.

svn path=/trunk/mcs/; revision=33991
2004-09-16 23:28:43 +00:00
Sebastien Pouliot 51a31fa4f1 2004-09-16 Sebastien Pouliot <[email protected]>
* ASN1.cs: Fixed warning (l4) for unused variable.
	* PKCS7.cs: Fixed warning (l4) for unused variable.
	* Uri.cs: Fixed warning (l4) for unused variables. Remove sealed from
	class to reduce number of warnings.

svn path=/trunk/mcs/; revision=33990
2004-09-16 23:24:01 +00:00
Sebastien Pouliot 3dc3ad1ffd 2004-09-16 Sebastien Pouliot <[email protected]>
* MiniParser.cs: Fixed warning (l4) for unused variables. Removed
	duplicate (and identical) license.

svn path=/trunk/mcs/; revision=33989
2004-09-16 23:21:39 +00:00
Sebastien Pouliot c28a8a7681 2004-09-16 Sebastien Pouliot <[email protected]>
* DESCryptoServiceProvider.cs: Fixed warning (l4) by adding empty {}.
	* DSASignatureDeformatter.cs: Fixed warning (l4) for unused variable.
	* DSASignatureFormatter.cs: Fixed warning (l4) for unused variable.
	* HMACSHA1.cs: Fixed warning (l4) for unused variable.

svn path=/trunk/mcs/; revision=33988
2004-09-16 23:19:15 +00:00
Sebastien Pouliot 6c95d9bff3 2004-09-16 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Fixed warning (l4) for unused variable.
	* StrongNameIdentityPermissionAttribute.cs: Fixed warning (l4)...

svn path=/trunk/mcs/; revision=33987
2004-09-16 23:17:04 +00:00
Sebastien Pouliot ee8314380e 2004-09-16 Sebastien Pouliot <[email protected]>
* PolicyLevel.cs: Fixed warning by re-activating safeguard

svn path=/trunk/mcs/; revision=33986
2004-09-16 23:15:57 +00:00
Sebastien Pouliot 8bb2b40b3e 2004-09-16 Sebastien Pouliot <[email protected]>
* Environment.cs: Bumped mono_corlib_version to 25.

svn path=/trunk/mcs/; revision=33985
2004-09-16 19:42:26 +00:00
Sebastien Pouliot 0c68fb5bc2 2004-09-16 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: Keep a copy of the 3 permission set as an array
	of RefEmitPermissionSet. This will allow to reuse existing
	functionalities already present in the runtime.

svn path=/trunk/mcs/; revision=33984
2004-09-16 19:41:40 +00:00
Sebastien Pouliot 806ca2d530 2004-09-16 Sebastien Pouliot <[email protected]>
* appdomain.c: Bumped MONO_CORLIB_VERSION to 25.
	* object-internals.h: Added 3 MonoArray* members to MonoReflection
	AssemblyBuilder to access the permissions set in the class lib.
	* reflection.c: Added security attributes encoding step in
	mono_image_build_metadata.

svn path=/trunk/mono/; revision=33983
2004-09-16 19:41:14 +00:00
Marek Safar 85fc95c87e update
svn path=/trunk/mcs/; revision=33982
2004-09-16 19:11:10 +00:00
Marek Safar df79c136ca 2004-09-16 Marek Safar <[email protected]>
* cs-parser.jay: Add error 504 report.

svn path=/trunk/mcs/; revision=33981
2004-09-16 19:09:46 +00:00
Gonzalo Paniagua Javier 7943b58902 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: don't invoke the callback twice when the timer changes.
	Fixes bug #66116.

svn path=/branches/mono-1-0/mcs/; revision=33976
2004-09-16 18:35:19 +00:00
Gonzalo Paniagua Javier 4c07adad95 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: don't invoke the callback twice when the timer changes.
	Fixes bug #66116.

svn path=/trunk/mcs/; revision=33975
2004-09-16 18:33:27 +00:00
Sebastien Pouliot e312c96e86 2004-09-16 Sebastien Pouliot <[email protected]>
* dump.c: Added new security actions added in 2.0: LinkDemandChoice,
	InheritanceDemandChoice and DemandChoice.
	* main.c: Added ".permissionset" to output IL. Removed "hassecurity"
	as MS ilasm can't compile it.

svn path=/trunk/mono/; revision=33974
2004-09-16 18:27:44 +00:00
Sebastien Pouliot f310e5c293 2004-09-16 Sebastien Pouliot <[email protected]>
* tabledefs.h: Added new security actions defined in 2.0:
	LinkDemandChoice, InheritanceDemandChoice and DemandChoice.

svn path=/trunk/mono/; revision=33973
2004-09-16 18:24:09 +00:00
Zoltan Varga e71f25e912 2004-09-16 Zoltan Varga <[email protected]>
* get.c (get_token): Add support for memberrefs.

svn path=/trunk/mono/; revision=33972
2004-09-16 18:13:31 +00:00
Martin Baulig 2891b9185d Updated.
svn path=/trunk/mcs/; revision=33971
2004-09-16 17:47:19 +00:00
Lluis Sanchez c888d194da * threads.c: Fixed SET_CURRENT_OBJECT macros, they were ignoring the
macro parameter.

svn path=/trunk/mono/; revision=33970
2004-09-16 17:25:04 +00:00
Martin Baulig 8b2c8b6319 2004-09-16 Martin Baulig <[email protected]>
* Makefile: Disable test-294.cs and test-287.cs.

svn path=/trunk/mcs/; revision=33969
2004-09-16 17:05:49 +00:00
Lluis Sanchez c5f92ee212 * locales.c: nullify the ICU_collator member of CompareInfo when it is
finalized. There where random SIGSEVs at program termination, when
	  an object being finalized was trying to do a string comparison and
	  the current culture was already finalized.

svn path=/branches/mono-1-0/mono/; revision=33968
2004-09-16 15:52:44 +00:00
Lluis Sanchez 8439e9b0e1 * locales.c: nullify the ICU_collator member of CompareInfo when it is
finalized. There where random SIGSEVs at program termination, when
	  an object being finalized was trying to do a string comparison and
	  the current culture was already finalized.

svn path=/trunk/mono/; revision=33967
2004-09-16 15:47:16 +00:00
Marek Safar a0a5ee0d18 update
svn path=/trunk/mcs/; revision=33966
2004-09-16 15:34:16 +00:00
Marek Safar c827fb125d 2004-09-16 Marek Safar <[email protected]>
* rootcontext.cs: WarningLevel is 4 by default now.

	* statement.cs (Fixed.Resolve): Do not null
	VariableInfo.

svn path=/trunk/mcs/; revision=33965
2004-09-16 15:33:09 +00:00
Atsushi Eno 8b01c4e8bb 2004-09-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, SchemaDataValueType.cs :
	  ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
	  XmlSchemaUri, but it is derived from System.Uri, while ours was not.

svn path=/branches/mono-1-0/mcs/; revision=33964
2004-09-16 15:00:02 +00:00
Atsushi Eno fe93ee2c27 2004-09-16 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs, SchemaDataValueType.cs :
	  ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
	  XmlSchemaUri, but it is derived from System.Uri, while ours was not.

svn path=/trunk/mcs/; revision=33963
2004-09-16 14:58:07 +00:00
Gonzalo Paniagua Javier 7aec249e1e 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
* threads.c: call thread_cleanup before finishing the thread if we get
	there.

svn path=/trunk/mono/; revision=33962
2004-09-16 13:51:02 +00:00
Ravindra c043828a89 Added Novell URL.
svn path=/trunk/mcs/; revision=33961
2004-09-16 13:00:44 +00:00
Ravindra 3dcb46936d Invalidate should be done before redrawing.
svn path=/trunk/mcs/; revision=33960
2004-09-16 13:00:19 +00:00
Marek Safar 6e18c53b33 update
svn path=/trunk/mcs/; revision=33957
2004-09-16 12:01:18 +00:00
Marek Safar cdfbd25fed 2004-09-16 Marek Safar <[email protected]>
Fixed bug #55780
	* ecore.cs (PropertyExpr.FindAccessors): Do not perform
	deep search when property is not virtual.
	(PropertyExpr.ResolveAccessors): Make one call for both
	accessors.

svn path=/trunk/mcs/; revision=33956
2004-09-16 11:58:06 +00:00
Joshua Tauberer dd35d560b7 2004-09-14 Loren Bandiera <[email protected]>
* Syscall.cs: Added method for getpwnam which uses Passwd
	struct.
	* macros.c: Helper function for getpwnam
	(In committing, Josh Tauberer also added getpwuid.)

svn path=/trunk/mono/; revision=33955
2004-09-16 11:09:02 +00:00
Joshua Tauberer 8bf118de82 2004-09-14 Loren Bandiera <[email protected]>
* Syscall.cs: Added method for getpwnam which uses Passwd
	struct.
	* macros.c: Helper function for getpwnam
	(In committing, Josh Tauberer also added getpwuid.)

svn path=/trunk/mcs/; revision=33955
2004-09-16 11:09:02 +00:00
Ravindra 1719c1c56e Added VS.NET project for System.Drawing.
svn path=/trunk/mcs/; revision=33954
2004-09-16 09:59:18 +00:00
Ravindra 6c62dad044 Updated project and sources list.
svn path=/trunk/mcs/; revision=33953
2004-09-16 07:19:25 +00:00
Ravindra 4cba71d31d Enum for ListView Control.
svn path=/trunk/mcs/; revision=33952
2004-09-16 03:19:35 +00:00
Ravindra a913f56384 Event for ListView Control.
svn path=/trunk/mcs/; revision=33951
2004-09-16 03:18:11 +00:00
Francisco Figueiredo Jr. 2880c6ecd7 2004-09-15 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlRowDescription.cs:
        FieldIndex: Really added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)

svn path=/trunk/mcs/; revision=33950
2004-09-16 00:24:48 +00:00
Zoltan Varga edbe3285e7 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33948
2004-09-15 21:03:11 +00:00
Zoltan Varga 51f46c9b44 2004-09-16 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_createDomain): Load all
	assemblies from the parent. Fixes #65665.

svn path=/trunk/mono/; revision=33947
2004-09-15 21:01:56 +00:00
Marek Safar 08c0a01a63 2004-09-15 Marek Safar <[email protected]>
Fixed bug #65766
	* statement.cs: Error 152 report constains also location.

svn path=/trunk/mcs/; revision=33946
2004-09-15 20:30:13 +00:00
Zoltan Varga 2a31fbc1b5 2004-09-15 Zoltan Varga <[email protected]>
* appdomain.c (ves_icall_System_AppDomain_createDomain): Load all
	assemblies from the parent.

svn path=/trunk/mono/; revision=33945
2004-09-15 19:40:30 +00:00
John Luke cee315f3cf 2004-09-15 John Luke <[email protected]>
* AssemblyInfo.cs: add CLSCompliant(true) attribute

svn path=/trunk/mcs/; revision=33944
2004-09-15 18:31:51 +00:00
Zoltan Varga a4c77d5421 2004-09-15 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_parse_type): Fix parsing of custom
	modifiers.

svn path=/trunk/mono/; revision=33943
2004-09-15 18:04:57 +00:00
Lluis Sanchez 8faca29321 * ServiceDescriptionReflector.cs: Don't generate empty schemas.
svn path=/trunk/mcs/; revision=33942
2004-09-15 16:14:48 +00:00
Lluis Sanchez ad31e6d9f6 * Methods.cs: Use the service namespace as the base for the soap action.
This fixes bug #60379.

svn path=/trunk/mcs/; revision=33941
2004-09-15 16:14:18 +00:00
Marek Safar 5e2d2ed732 2004-09-15 Marek Safar <[email protected]>
* test-287.cs: Included test for bug #65766.

svn path=/trunk/mcs/; revision=33940
2004-09-15 15:23:49 +00:00
Marek Safar ded73f4cca 2004-09-15 Marek Safar <[email protected]>
Fixed bug #65766
	* const.cs: Explicitly set constant as static.

svn path=/trunk/mcs/; revision=33939
2004-09-15 15:21:41 +00:00
Anirban Bhattacharjee 7aa6b4d08d 2004-09-15 Anirban Bhattacharjee <[email protected]>
* enum.cs: Made Enum member lookup case insensitive

svn path=/trunk/mcs/; revision=33938
2004-09-15 14:58:01 +00:00
Marek Safar e18bb53e87 new test + update
svn path=/trunk/mcs/; revision=33937
2004-09-15 14:22:22 +00:00
Marek Safar d1c5d60011 2004-09-15 Marek Safar <[email protected]>
Fixed bug #64226
	* cs-parser.jay: Add error 1017 report.

svn path=/trunk/mcs/; revision=33936
2004-09-15 14:21:50 +00:00
Lluis Sanchez 2929822a90 * MapCodeGenerator.cs: Moved generation of XmlInclude attributes from
ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
	* XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
	  ImportIncludedTypes to the end, to make sure that the current map has all
	  needed data before derived maps are constructed.
	* XmlSchemaExporter.cs: Generate the base class of simple types that are
	  not primitive types. Set the correct value for IsMixed in extended types.
	* XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
	  the base class of a simple type doesn't need to be a xsd type.
	  All those patches fix bug #65654

svn path=/trunk/mcs/; revision=33935
2004-09-15 14:16:41 +00:00
Anirban Bhattacharjee 0308e24065 2004-09-15 Anirban Bhattacharjee <[email protected]>
* OptionalArgu_dll.vb:
        * OptionalArgu_exe.vb:
                Tests for optional argument accross assembly
        * Test.Sources : updated
        * Makefile: Added dll name

svn path=/trunk/mcs/; revision=33934
2004-09-15 13:37:22 +00:00
Anirban Bhattacharjee aeb861dd47 2004-09-15 Anirban Bhattacharjee <[email protected]>
* support.cs: Retrieving default value from another assembly in ReflectionParameters class

svn path=/trunk/mcs/; revision=33933
2004-09-15 13:21:46 +00:00
Anirban Bhattacharjee 38764ca7d3 2004-09-14 Anirban Bhattacharjee <[email protected]>
* class.cs: Support for enum in default constant value for optional parameters

svn path=/trunk/mcs/; revision=33932
2004-09-15 13:04:54 +00:00
Sebastien Pouliot fbfeb2937d 2004-09-15 Sebastien Pouliot <[email protected]>
* System.Data_test.dll.sources: Added OdbcPermission, OleDbPermission
	and SqlClientPermission unit tests to the build.

svn path=/trunk/mcs/; revision=33931
2004-09-15 11:44:06 +00:00
Sebastien Pouliot d42d4b58ec 2004-09-15 Sebastien Pouliot <[email protected]>
* SqlClientPermissionTest.cs: New. Unit tests for SqlClientPermission.

svn path=/trunk/mcs/; revision=33930
2004-09-15 11:42:38 +00:00
Sebastien Pouliot e6f4406228 2004-09-15 Sebastien Pouliot <[email protected]>
* OleDbPermissionTest.cs: New. Unit tests for OleDbPermission.

svn path=/trunk/mcs/; revision=33929
2004-09-15 11:41:13 +00:00
Sebastien Pouliot 33952bdcf5 2004-09-15 Sebastien Pouliot <[email protected]>
* OdbcPermissionTest.cs: New. Unit tests for OdbcPermission.

svn path=/trunk/mcs/; revision=33928
2004-09-15 11:39:49 +00:00
Raja R Harinath 44e57f121c * test-280.cs: Backport fix from HEAD.
* test-292.cs: New test for #64330.

svn path=/branches/mono-1-0/mcs/; revision=33927
2004-09-15 11:39:26 +00:00
nobody ca1ca15642 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=33926
2004-09-15 11:39:26 +00:00
Raja R Harinath 393e90ab50 (fixed_statement): Introduce a scope for the
declaration in a 'fixed' statement.

svn path=/branches/mono-1-0/mcs/; revision=33925
2004-09-15 11:38:40 +00:00
Marek Safar db45e3b4d1 update
svn path=/trunk/mcs/; revision=33924
2004-09-15 11:13:08 +00:00
Marek Safar 67d531a16e 2004-09-15 Marek Safar <[email protected]>
Fixed bug #59980, #64224
	* expression.cs (Invocation.DoResolve): Fixed error CS0571 test.

	* typemanager.cs (IsSpecialMethod): Simplified

svn path=/trunk/mcs/; revision=33923
2004-09-15 11:11:48 +00:00
Marek Safar ef42261d7c 2004-09-15 Marek Safar <[email protected]>
* property-il.il, property-main.cs: Included test for #36804.

svn path=/trunk/mcs/; revision=33922
2004-09-15 10:15:30 +00:00
Martin Baulig 620106363a Updated again.
svn path=/trunk/mcs/; revision=33921
2004-09-15 09:47:31 +00:00
Martin Baulig 4b3facd88b 2004-09-15 Martin Baulig <[email protected]>
* test-294.cs: Is not back in gmcs.

svn path=/trunk/mcs/; revision=33920
2004-09-15 08:42:02 +00:00
Gaurav Vaish 3d46ae4356 2004-09-15 Gaurav Vaish <gaurav[dot]vaish[at]gmail[dot]com>
* Part.cs                    : Completed
* WebPart.cs                 : Initial implementation

svn path=/trunk/mcs/; revision=33919
2004-09-15 04:54:09 +00:00
Sebastien Pouliot 8b45ac3620 2004-09-14 Sebastien Pouliot <[email protected]>
* Makefile: Activate unit tests.
	* System.Data.OracleClient_test.dll.sources: New. Sources for unit
	tests.

svn path=/trunk/mcs/; revision=33914
2004-09-15 00:02:35 +00:00
Sebastien Pouliot f4d4490b65 2004-09-14 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* OraclePermission.cs: Adapted to work for both Fx 1.1 and 2.0. Fx 1.1
	version isn't complete (as anyway it requires FullTrust on MS
	implementation) but DO NOT throw exceptions (for the security engine).
	* OraclePermissionAttribute.cs: Implemented CreatePermission. Adapted
	to work for both Fx 1.1 and 2.0.

svn path=/trunk/mcs/; revision=33913
2004-09-15 00:00:22 +00:00
Sebastien Pouliot 6a64e50f82 Fixed "make test" for 1.1
svn path=/trunk/mcs/; revision=33912
2004-09-14 23:58:30 +00:00
Sebastien Pouliot 0cf71bfc3a 2004-09-14 Sebastien Pouliot <[email protected]>
* OraclePermissionAttributeTest.cs: New. Unit tests for class
	OraclePermissionAttribute.

svn path=/trunk/mcs/; revision=33911
2004-09-14 23:49:09 +00:00
Francisco Figueiredo Jr. 43896b0dd5 2004-09-14 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlRowDescription.cs:
        FieldIndex: Added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)

svn path=/trunk/mcs/; revision=33910
2004-09-14 23:02:12 +00:00
Marek Safar 71e47760c1 2004-09-14 Marek Safar <[email protected]>
* test-294.cs: Is back.

svn path=/trunk/mcs/; revision=33909
2004-09-14 21:01:28 +00:00
Marek Safar 9b3725cf58 2004-09-14 Marek Safar <[email protected]>
* decl.cs (MemberCore.Emit): Resuscitated VerifyObsoleteAttribute
	condition with better params.

svn path=/trunk/mcs/; revision=33908
2004-09-14 21:00:33 +00:00
Bernie Solomon f320080407 2004-09-14 Bernie Solomon <[email protected]>
* reflection.h: add prototype for mono_get_dbnull_object
	* reflection.c: add prototypes for get_default_param_value_blobs
	and mono_get_object_from_blob for fussier compilers

svn path=/trunk/mono/; revision=33907
2004-09-14 20:58:02 +00:00
Sebastien Pouliot 9577f8fef6 2004-09-14 Sebastien Pouliot <[email protected]>
* System.Data_test.dll.sources: Added DBDataPermission unit tests to
	the build.

svn path=/trunk/mcs/; revision=33906
2004-09-14 20:04:22 +00:00
Sebastien Pouliot 51ffd060a9 2004-09-14 Sebastien Pouliot <[email protected]>
* SqlClientPermission.cs: Added internal constructor accepting an Sql
	ClientPermissionAttribute parameter (using base class protected ctor).
	* SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
	Permission constructor.

svn path=/trunk/mcs/; revision=33905
2004-09-14 20:02:48 +00:00
Sebastien Pouliot 7ec3b6ace7 2004-09-14 Sebastien Pouliot <[email protected]>
* OleDbPermission.cs: Added internal constructor accepting an OleDb
	PermissionAttribute parameter (using base class protected ctor).
	Re-added the Provider property (removed by error).
	* OleDbPermission.cs: Copy now use the new OleDbPermission
	constructor. Re-added the Provider property (removed by error).

svn path=/trunk/mcs/; revision=33904
2004-09-14 20:00:56 +00:00
Sebastien Pouliot aa6904913d 2004-09-14 Sebastien Pouliot <[email protected]>
* OdbcPermission.cs: Added internal constructor accepting an Odbc
	PermissionAttribute parameter (using base class protected ctor).
	* OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
	constructor.

svn path=/trunk/mcs/; revision=33903
2004-09-14 19:58:41 +00:00
Sebastien Pouliot 96fc12feeb 2004-09-14 Sebastien Pouliot <[email protected]>
* DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
	Implementation isn't complete as the restrictions seems to change the
	expected results (breaking some rules like x.IsSubsetOf (x) == false).
	Better (real-world) tests cases are required.
	* PermissionHelper.cs: Fixed small differences between System.Data.dll
	validations wrt to mscorlib.dll (XML and PermissionState).

svn path=/trunk/mcs/; revision=33902
2004-09-14 19:56:12 +00:00
Sebastien Pouliot 32639845bf 2004-09-14 Sebastien Pouliot <[email protected]>
* DBDataPermissionTest.cs: New. Unit tests for DBDataPermission.

svn path=/trunk/mcs/; revision=33901
2004-09-14 19:51:48 +00:00
Sebastien Pouliot d3ea944c56 2004-09-14 Sebastien Pouliot <[email protected]>
* OleDbPermissionAttributeTest.cs: Added unit tests for Provider
	property (unused and hidden in Fx 2.0).

svn path=/trunk/mcs/; revision=33900
2004-09-14 19:50:20 +00:00
Marek Safar c475046abf new test for bug #65238
svn path=/trunk/mcs/; revision=33899
2004-09-14 19:13:49 +00:00
Marek Safar 32ade2ce42 2004-09-14 Marek Safar <[email protected]>
Fixed bug #65238
	* attribute.cs (Resolve): Property has to have both
	accessors.

svn path=/trunk/mcs/; revision=33898
2004-09-14 19:12:41 +00:00
Martin Baulig 300374f51e 2004-09-14 Martin Baulig <[email protected]>
* gmcs-expect-no-error, gmcs-expect-wrong-error: Updated.

svn path=/trunk/mcs/; revision=33897
2004-09-14 18:52:06 +00:00
Martin Baulig fc1ccab148 2004-09-14 Martin Baulig <[email protected]>
* Makefile: Disable test-294.cs.

svn path=/trunk/mcs/; revision=33895
2004-09-14 18:00:44 +00:00
Martin Baulig 07a932aa8e **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33893
2004-09-14 17:44:01 +00:00
Martin Baulig ed4e476545 2004-09-14 Martin Baulig <[email protected]>
* decl.cs (MemberCore.Emit): Always call VerifyObsoleteAttribute().

svn path=/trunk/mcs/; revision=33892
2004-09-14 17:43:20 +00:00
Martin Baulig 9668c16854 Merged again.
svn path=/trunk/mcs/; revision=33891
2004-09-14 17:01:32 +00:00
Martin Baulig e50fcb57ba **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33890
2004-09-14 16:48:09 +00:00
Marek Safar 7964db00df Fixed test
svn path=/trunk/mcs/; revision=33889
2004-09-14 16:44:49 +00:00
Martin Baulig 6468cf0cd0 2004-09-14 Martin Baulig <[email protected]>
* Makefile: Put the old Makefile back.

svn path=/trunk/mcs/; revision=33888
2004-09-14 16:16:47 +00:00
Marek Safar 9a474e16b3 2004-09-14 Marek Safar <[email protected]>
Fixed bug #61902
	* codegen.cs (TestObsoleteMethodUsage): Trace when method is
	called and is obsolete then this member suppress message
	when call is inside next [Obsolete] method or type.

	* expression.cs: Use TestObsoleteMethodUsage member.

svn path=/trunk/mcs/; revision=33886
2004-09-14 15:55:09 +00:00
Marek Safar d1081d6261 2004-09-14 Marek Safar <[email protected]>
* test-294.cs: New test for bug #61902.

svn path=/trunk/mcs/; revision=33885
2004-09-14 15:51:34 +00:00
Martin Baulig 558bd9c7f4 Updated.
svn path=/trunk/mcs/; revision=33884
2004-09-14 15:11:17 +00:00
Martin Baulig 402df47cd0 2004-09-14 Martin Baulig <[email protected]>
* Makefile: Put the old Makefile back.  There was a reason why we
	had this setup.

svn path=/trunk/mcs/; revision=33883
2004-09-14 15:10:19 +00:00
Martin Baulig 5cc3cb1c3f Small fix.
svn path=/trunk/mcs/; revision=33882
2004-09-14 15:05:19 +00:00
Rafael Teixeira 1d8d7bbab0 2004-09-14 Rafael Teixeira <[email protected]>
* UtilsTest.cs: upgraded to use nunit Assert class, also corrected testing for null that
	  was giving an exception when run.

svn path=/trunk/mcs/; revision=33881
2004-09-14 15:01:04 +00:00
Martin Baulig 8ba16f97bb **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33880
2004-09-14 14:56:05 +00:00
Martin Baulig d1fd52d869 2004-09-14 Martin Baulig <[email protected]>
* cs-parser.jay: Sync a bit with the GMCS version.

svn path=/trunk/mcs/; revision=33879
2004-09-14 14:54:37 +00:00
Rafael Teixeira 2893a066bd ChangeLog cleanup
svn path=/trunk/mcs/; revision=33876
2004-09-14 13:09:33 +00:00
Raja R Harinath b1b7e7817c (run-test-lib, run-btest-lib): Unify. Give profile-specific name
for output XML file.

svn path=/trunk/mcs/; revision=33875
2004-09-14 10:41:18 +00:00
Raja R Harinath 97553bb62e cvs ignores, sorry about the spam
svn path=/trunk/mcs/; revision=33874
2004-09-14 09:59:51 +00:00
Sanja Gupta d17cfc2768 ChangeLog: Updated ChangeLog.
ThemeableAttribute.cs: Completed Implementation.

svn path=/trunk/mcs/; revision=33873
2004-09-14 09:42:06 +00:00
Raja R Harinath dfdf4fdaf8 (EXTRA_DISTFILES): Remove Soap.cmbx.
svn path=/trunk/mcs/; revision=33872
2004-09-14 09:35:20 +00:00
Raja R Harinath 237b10dbef (EXTRA_DISTFILES): Fix spelling of ChangeLog file.
svn path=/trunk/mcs/; revision=33871
2004-09-14 09:34:04 +00:00
Raja R Harinath d4d3fb15e6 (test_response, test_makefrag): Remove redundant $(PROFILE) in name.
svn path=/trunk/mcs/; revision=33870
2004-09-14 09:32:13 +00:00
Marek Safar e293965900 removed genericparser.cs
svn path=/trunk/mcs/; revision=33869
2004-09-14 09:31:27 +00:00
Anirban Bhattacharjee e7aeb8af86 2004-09-14 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Fixed exception number for type confliction in method parameter

svn path=/trunk/mcs/; revision=33868
2004-09-14 09:21:07 +00:00
Sanja Gupta 47e9787c87 ChangeLog: Updated ChangeLog.
FilterableAttribute.cs: Completed implementation.

svn path=/trunk/mcs/; revision=33867
2004-09-14 09:15:27 +00:00
Anirban Bhattacharjee c1a8080429 2004-09-14 Anirban Bhattacharjee <[email protected]>
* class.cs: Set default constant value for optional parameters in ParameterBuilder
        * parameter.cs: Setting optional attribute
                These two fixes makes sure that optional parameter with default value get emitted correctly

svn path=/trunk/mcs/; revision=33866
2004-09-14 09:08:27 +00:00
Raja R Harinath 9ef81ed7ef * library.make (test_sourcefile, btest_sourcefile): Define in terms of
$(test_lib) or $(btest_lib) only if they're overriden.

svn path=/trunk/mcs/; revision=33865
2004-09-14 08:55:04 +00:00
Martin Baulig 5697a97b98 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33864
2004-09-14 08:53:52 +00:00
Martin Baulig ca9c2f476d 2004-09-14 Martin Baulig <[email protected]>
* genericparser.cs: Removed.

svn path=/trunk/mcs/; revision=33863
2004-09-14 08:45:57 +00:00
Martin Baulig 5819945fee 2004-09-14 Martin Baulig <[email protected]>
* cs-parser.jay (CSharpParser): Don't derive from GenericsParser.
	(CSharpParser.yacc_verbose_flag): New public field.

	* genericparser.cs: Removed.

svn path=/trunk/mcs/; revision=33862
2004-09-14 08:45:11 +00:00
Lluis Sanchez 999ae1af31 * object.c: Added a "done" flag to TypeInitializationLock. This avoids
false deadlock checks in class initialization.

svn path=/branches/mono-1-0/mono/; revision=33861
2004-09-14 08:41:25 +00:00
Lluis Sanchez bf18ee73ae * object.c: Added a "done" flag to TypeInitializationLock. This avoids
false deadlock checks in class initialization.

svn path=/trunk/mono/; revision=33860
2004-09-14 08:36:17 +00:00
Raja R Harinath 73c7407fb6 * Makefile.am (mcs-do-full-build): Pass NO_SIGN_ASSEMBLIES=yes to
reduce the number of passes.  We will get the assemblies signed in
the 'populate-runtime-subdir' phase.
(mcs-do-run-test-profiles): Rename from mcs-do-run-tests.  Use
'test-profiles' to test all profiles.
(mcs-do-compiler-tests): Use 'compiler-tests' target in mcs/.
(bootstrap-check): Update.
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Simplify.

svn path=/trunk/mono/; revision=33859
2004-09-14 08:35:04 +00:00
Raja R Harinath ffac59b268 (MCS) [PROFILE=default]: Force testing of 'mcs'.
(test-everything): Remove.
(TEST_PROFILE): New.
(run-mcs-tests, run-gmcs-tests): Unify using TEST_PROFILE.
(run-test-local) [PROFILE=net_2_0]: Run generics tests.

svn path=/trunk/mcs/; revision=33858
2004-09-14 08:30:20 +00:00
Raja R Harinath 1349f1fc75 * Makefile (MCS) [PROFILE=default]: Force testing of 'mcs'.
(TEST_SOURCES): Allow a profile to eliminate some tests.
(net_2_0_KNOWN_FAILURES): Rename from GENERICS_KNOWN_FAILURES.
(TEST_SOURCES_all): Rename from TESTS_SOURCES.
Move several multi-file tests from ...
(multi-1, multi-3, multi-4, multi-5, multi-6, multi-7): ... here.
(multl-2, ilasm): Use $(CSCOMPILE), instead of $(INTERNAL_MCS).
(multi): Update.
(test-everything): Remove.
(run-test-local) [PROFILE=net_2_0]: Run additional 'generics'
tests.
(test-compiler-jit-real): Remove *.netmodule too.
(test-compiler-jit-multi): Remove.
(test-generics-1, test-generics-2): Remove.
(test-generics-3, test-generics-4): Update.
* conv-lib.cs, conv-main.cs, dll-1.cs, dll-2.cs, prog-1.cs,
  prog-2.cs, module-1.cs, module2.cs, module-3.cs, ns.cs, ns0.cs,
  gen-13-dll.cs, gen-13-exe.cs, gen-17-dll.cs, gen-17-exe.cs,
  gen-31-dll.cs, gen-31-exe.cs, gen-47-dll.cs, gen-47-exe.cs,
  vararg-exe.cs, vararg-lib.cs:
Use "Compiler options:" for multi-file testing.

svn path=/trunk/mcs/; revision=33857
2004-09-14 08:26:54 +00:00
Marek Safar 3f90af0020 2004-09-14 Marek Safar <[email protected]>
* CodeTypeReference.cs: Fix #65854

svn path=/trunk/mcs/; revision=33856
2004-09-14 08:23:08 +00:00
Marek Safar e458c705b5 2004-09-14 Marek Safar <[email protected]>
* CSharpCodeGenerator.cs: Fix #65854

svn path=/trunk/mcs/; revision=33855
2004-09-14 08:21:21 +00:00
Raja R Harinath e1943e5c6a * library.make (test_lib, btest_lib): Build separate test
assemblies for separate profiles.
(dist-local): Don't copy files beginning with '../'.
* rules.make (dist-default): Handle any of Makefile, makefile, or
GNUmakefile being present.
* profiles/net_2_0.make (TEST_RUNTIME): Don't define.

svn path=/trunk/mcs/; revision=33854
2004-09-14 08:12:09 +00:00
Raja R Harinath 72ed081a73 (SUBDIRS): Allow to be overriden by $(TEST_SUBDIRS).
(test-profiles, run-test-profiles): New targets.
(test-compiler): Rename to ...
(compiler-tests): ... this.  Run tests on all profiles.

svn path=/trunk/mcs/; revision=33853
2004-09-14 08:11:52 +00:00
Raja R Harinath dd9c70b029 (event_declaration): Re-enable cs0071 error.
svn path=/trunk/mcs/; revision=33852
2004-09-14 08:02:32 +00:00
Atsushi Eno 85564737dc 2004-09-14 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Close() should not Flush() when the output is
	  already closed. bug #65918 is fixed.

svn path=/trunk/mcs/; revision=33851
2004-09-14 05:46:30 +00:00
Martin Baulig 220107e8da **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33850
2004-09-14 05:14:19 +00:00
Martin Baulig 5a0f1833b9 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33849
2004-09-14 05:14:19 +00:00
Umadevi S d09e0b4eaf 2004-09-14 Umadevi S <[email protected]>
* Made SerializableAttribute !net_2_0 for all the exception classes

svn path=/trunk/mcs/; revision=33848
2004-09-14 05:06:55 +00:00
Umadevi S edb3fb7549 2004-09-14 Umadevi S <[email protected]>
* Added SqlAlreadyFilledException.cs and SqlNotFilledException.cs to System.Data.dll.sources

svn path=/trunk/mcs/; revision=33847
2004-09-14 04:23:01 +00:00
Umadevi S 31189cb9c9 2004-09-14 Umadevi S ([email protected])
* Added Files SqlAlreadyFilledException.cs, SqlNotFilledException.cs

svn path=/trunk/mcs/; revision=33846
2004-09-14 04:20:07 +00:00
Ravindra 3e47a6f6c6 Updated project.
svn path=/trunk/mcs/; revision=33845
2004-09-14 04:09:59 +00:00
Sanja Gupta 733f0f5d7a ChangeLog: Updated ChangeLog.
Literal.cs: Added new method Focus().

svn path=/trunk/mcs/; revision=33844
2004-09-14 03:58:43 +00:00
Sanja Gupta 02e9afbf1d ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new attribute classes in System.Web.UI.

svn path=/trunk/mcs/; revision=33843
2004-09-14 03:55:19 +00:00
Sanja Gupta a740af0593 ChangeLog: Updated ChangeLog.
Control.cs: Added new attributes and a method.
FilterableAttribute.cs: New attribute, initial implementation.
ThemeableAttribute.cs: New attribute, initial implemenataion.

svn path=/trunk/mcs/; revision=33842
2004-09-14 03:53:36 +00:00
Tim Coleman de13446017 2004-09-14 Tim Coleman <[email protected]>
* corlib.dll.sources: Added System.Security.Principal/TokenImpersonationLevel

svn path=/trunk/mcs/; revision=33841
2004-09-14 00:35:50 +00:00
Tim Coleman 6705996433 2004-09-12 Tim Coleman <[email protected]>
* TokenImpersonationLevel.cs: New enum for Fx 2.0

svn path=/trunk/mcs/; revision=33840
2004-09-14 00:28:33 +00:00
Jackson Harper e1c9cfa84f Remove test code so timers are updated properly
svn path=/trunk/mcs/; revision=33839
2004-09-14 00:26:34 +00:00
Jackson Harper 2bdf339b86 Timers are now handled in a second thread and post messages into the main threads message queue. This makes timing much more consistent. Both win2K and XP have a minimum timer value of 15 milliseconds, so we now do this too.
svn path=/trunk/mcs/; revision=33838
2004-09-14 00:13:29 +00:00
Sebastien Pouliot de76dcbb20 Fix NET_2_0 build.
svn path=/trunk/mcs/; revision=33837
2004-09-14 00:09:24 +00:00
Tim Coleman 270b9bffbe 2004-09-13 Tim Coleman <[email protected]>
* System.dll.sources: Add new classes in System.Net.Security and
                System.Security.Authentication for Fx 2.0

svn path=/trunk/mcs/; revision=33836
2004-09-13 23:56:59 +00:00
Tim Coleman 397b0326d8 2004-09-13 Tim Coleman <[email protected]>
* AuthenticatedStream.cs AuthenticationLevel.cs LocalCertSelectionCallback.cs
        * NegotiateStream.cs ProtectionLevel.cs RemoteCertValidationCallback.cs
        * SslStream.cs: New stubs for Fx 2.0

svn path=/trunk/mcs/; revision=33835
2004-09-13 23:55:48 +00:00
Tim Coleman e840ff010e 2004-09-13 Tim Coleman <[email protected]>
* CipherAlgorithmType.cs ExchangeAlgorithmType.cs HashAlgorithmType.cs
        * SslProtocolType.cs: New stubs for Fx 2.0

svn path=/trunk/mcs/; revision=33834
2004-09-13 23:54:43 +00:00
Sebastien Pouliot 9003dc76ec 2004-09-13 Sebastien Pouliot <[email protected]>
* Makefile: Added /nowarn:618 when compiling unit test assembly to
	remove nunit obsolete warnings.
	* System.Data.dll.sources: Added System.Data.Common.DbConnectionOptions
	(NET_2_0) and System.Data.Common/PermissionHelper to the build.
	* System.Data_test.dll.sources: Added {DBData|Odbc|OleDb|SqlClient}
	PermissionAttribute unit tests to the build.

svn path=/trunk/mcs/; revision=33833
2004-09-13 23:37:10 +00:00
Sebastien Pouliot c321305e8d 2004-09-13 Sebastien Pouliot <[email protected]>
* SqlClientPermission.cs: Mostly completed (needs tests).
	* SqlClientPermissionAttribute.cs: Completed.

svn path=/trunk/mcs/; revision=33832
2004-09-13 23:32:54 +00:00
Sebastien Pouliot 9a47ecf841 2004-09-13 Sebastien Pouliot <[email protected]>
* OleDbPermission.cs: Mostly completed (needs tests).
	* OleDbPermissionAttribute.cs: Completed.

svn path=/trunk/mcs/; revision=33831
2004-09-13 23:31:06 +00:00
Sebastien Pouliot 70d02a3c3d 2004-09-13 Sebastien Pouliot <[email protected]>
* OdbcPermission.cs: Mostly completed (needs tests).
	* OdbcPermissionAttribute.cs: Completed.

svn path=/trunk/mcs/; revision=33830
2004-09-13 23:29:25 +00:00
Sebastien Pouliot 57aab80b5b 2004-09-13 Sebastien Pouliot <[email protected]>
* DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
	to support new methods in DBDataPermission.
	* DbConnectionString.cs: Updated class to split from/inherit
	DbConnectionOptions class.
	* DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
	completed constructors.
	* DbDataPermissionAttribute.cs: Completed/fixed class.
	* PermissionHelper.cs: Helper methods to create permission classes.

svn path=/trunk/mcs/; revision=33828
2004-09-13 23:24:34 +00:00
Sebastien Pouliot b05732da97 2004-09-13 Sebastien Pouliot <[email protected]>
* SqlClientPermissionAttributeTest.cs: New. Unit tests for SqlClient
	PermissionAttribute.

svn path=/trunk/mcs/; revision=33827
2004-09-13 22:52:21 +00:00
Sebastien Pouliot b6beda9770 2004-09-13 Sebastien Pouliot <[email protected]>
* OdbcPermissionAttributeTest.cs: New. Unit tests for OdbcPermission
	Attribute.

svn path=/trunk/mcs/; revision=33826
2004-09-13 22:50:11 +00:00
Sebastien Pouliot cdeb4c4f81 2004-09-13 Sebastien Pouliot <[email protected]>
* DBDataPermissionAttributeTest.cs: New. Unit tests for DBData
	PermissionAttribute.

svn path=/trunk/mcs/; revision=33825
2004-09-13 22:46:24 +00:00
Sebastien Pouliot 4e6ed1ed89 2004-09-13 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* OleDbPermissionAttributeTest.cs: New. Unit tests for OleDbPermission
	Attribute.

svn path=/trunk/mcs/; revision=33824
2004-09-13 22:44:16 +00:00
Peter Dennis Bartok 24a4ff084c - Added Z-Ordering methods
svn path=/trunk/mcs/; revision=33823
2004-09-13 21:18:32 +00:00
Marek Safar 24150f30a1 new test
svn path=/trunk/mcs/; revision=33822
2004-09-13 21:16:25 +00:00
Marek Safar 03d453a0c5 2004-09-13 Marek Safar <[email protected]>
* test-293.cs: New test for bug #65757.

svn path=/trunk/mcs/; revision=33821
2004-09-13 21:12:08 +00:00
Marek Safar 0812049095 2004-09-13 Marek Safar <[email protected]>
* class.cs (MethodCore.CheckBase): Fix bug #65757.

svn path=/trunk/mcs/; revision=33820
2004-09-13 20:14:57 +00:00
Chris Toshok 383e2d1e85 2004-09-13 Chris Toshok <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
	token before writing out the method index, since the "index" used
	elsewhere is just added to the MethodIndexOffset.

svn path=/trunk/mcs/; revision=33819
2004-09-13 20:07:24 +00:00
Gonzalo Paniagua Javier 481b779480 2004-09-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: remove unused SplitValue method.

svn path=/branches/mono-1-0/mcs/; revision=33818
2004-09-13 17:55:42 +00:00
Gonzalo Paniagua Javier f4c1dfb1e7 2004-09-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: remove unused SplitValue method.

svn path=/trunk/mcs/; revision=33817
2004-09-13 17:53:56 +00:00
Peter Dennis Bartok 34554cb8d0 - Fixed #region names
- Moved properties and methods into their proper #regions

svn path=/trunk/mcs/; revision=33816
2004-09-13 16:56:04 +00:00
Peter Dennis Bartok ce5faa8049 - Added Accept and CancelButton properties
- Added ProcessDialogKey() method

svn path=/trunk/mcs/; revision=33815
2004-09-13 16:51:29 +00:00
Zoltan Varga 85a852e5f3 2004-09-13 Zoltan Varga <[email protected]>
* image.c (mono_image_addref): Fix comment.

svn path=/trunk/mono/; revision=33814
2004-09-13 16:29:00 +00:00
Zoltan Varga 45c3ecd350 2004-09-13 Zoltan Varga <[email protected]>
* driver.c (mini_regression_list): Do not call mono_assembly_close
	since assemblies can't be unloaded.

svn path=/trunk/mono/; revision=33813
2004-09-13 16:28:12 +00:00
Lluis Sanchez f8bce03ba0 * SoapReader.cs: Handle SOAP invocation without arguments in SoapReader.
Patch by Stefan Paletta.

svn path=/trunk/mcs/; revision=33812
2004-09-13 16:04:42 +00:00
Jordi Mas i Hernandez 3bfd9dbf1e Add to the build Process
svn path=/trunk/mcs/; revision=33811
2004-09-13 15:24:56 +00:00
Martin Baulig 96d2907243 2004-09-10 Martin Baulig <[email protected]>
Backported my MemberName changes from GMCS into MCS.

	- we are now using a special `MemberName' class instead of using
	strings; in GMCS, the `MemberName' also contains the type
	arguments.

	- changed the grammar rules a bit:
	  * the old `member_name' is now a `namespace_or_type_name':
	    The rule is that we use `namespace_or_type_name' everywhere
	    where we expect either a "member name" (GetEnumerator) or a
	    "member name" with an explicit interface name
	    (IEnumerable.GetEnumerator).
	    In GMCS, the explicit interface name may include type arguments
	    (IEnumerable<T>.GetEnumerator).
	  * we use `member_name' instead of just `IDENTIFIER' for
	    "member names":
	    The rule is that we use `member_name' wherever a member may
	    have type parameters in GMCS.

	* decl.cs (MemberName): New public class.
	(MemberCore.MemberName): New public readonly field.
	(MemberCore.ctor): Take a `MemberName' argument, not a string.
	(DeclSpace): Likewise.

	* delegate.cs (Delegate.ctor): Take a MemberName, not a string.
	* enum.cs (Enum.ctor): Likewise.

	* namespace.cs (AliasEntry.Alias): Changed type from Expression to
	MemberName.
	(AliasEntry.ctor): Take a MemberName, not an Expression.
	(AliasEntry.UsingAlias): Likewise.

	* class.cs (TypeContainer.ctor): Take a MemberName, not a string.
	(IMethodData.MemberName): Changed type from string to MemberName.
	(MemberBase.ExplicitInterfaceName): Likewise.
	(AbstractPropertyEventMethod.SetupName): Make this private.
	(AbstractPropertyEventMethod.ctor): Added `string prefix'
	argument; compute the member name here.
	(AbstractPropertyEventMethod.UpdateName): Recompute the name based
	on the `member.MemberName' and the `prefix'.

	* cs-parser.jay (attribute_name): Use `namespace_or_type_name',
	not `type_name'.
	(struct_declaration): Use `member_name' instead of `IDENTIFIER';
	thus, we get a `MemberName' instead of a `string'.  These
	declarations may have type parameters in GMCS.
	(interface_method_declaration, delegate_declaration): Likewise.
	(class_declaration, interface_declaration): Likewise.
	(method_header): Use `namespace_or_type_name' instead of
	`member_name'.  We may be an explicit interface implementation.
	(property_declaration, event_declaration): Likewise.
	(member_name): This is now just an `IDENTIFIER', not a
	`namespace_or_type_name'.
	(type_name, interface_type): Removed.
	(namespace_or_type_name): Return a MemberName, not an Expression.
	(primary_expression): Use `member_name' instead of `IDENTIFIER';
	call GetTypeExpression() on the MemberName to get an expression.
	(IndexerDeclaration.interface_type): Changed type from string to
	MemberName.
	(MakeName): Operate on MemberName's instead of string's.

svn path=/trunk/mcs/; revision=33810
2004-09-13 14:38:16 +00:00
Peter Dennis Bartok 9251c57c54 - Initial check-in
svn path=/trunk/mcs/; revision=33809
2004-09-13 14:18:42 +00:00
Zoltan Varga a5e81f45b4 2004-09-13 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_parse_type): Avoid memory allocations if
	possible.

svn path=/trunk/mono/; revision=33808
2004-09-13 13:08:21 +00:00
Atsushi Eno 776425f6be 2004-09-13 Atsushi Enomoto <[email protected]>
* XmlSchemaSetTests.cs : added.

svn path=/trunk/mcs/; revision=33807
2004-09-13 12:54:15 +00:00
Ravindra e72545bebf Backporting a fix.
svn path=/branches/mono-1-0/mcs/; revision=33806
2004-09-13 12:03:24 +00:00
Ravindra d26ef9745b * Graphics.cs: MSDN says that using image width and height gives
better performance, hence we are using image width and height to
	avoid autoscaling in DrawImageUnscaled.

svn path=/trunk/mcs/; revision=33805
2004-09-13 11:58:04 +00:00
Dick Porter d91ccf16f9 Compile fix
svn path=/trunk/mono/; revision=33804
2004-09-13 11:46:22 +00:00
Raja R Harinath ce3e1abbeb (test-compiler-jit-real): Fix logic so that logs of
testcases that fail compilation aren't deleted.  Avoid emitting
spurious PASS: messages.

svn path=/trunk/mcs/; revision=33803
2004-09-13 09:29:36 +00:00
Raja R Harinath 54e6a3cd8d Remove cs0246-6.cs.
svn path=/trunk/mcs/; revision=33802
2004-09-13 09:07:00 +00:00
Raja R Harinath 4de38c97ac Fix bug #55770.
* namespace.cs (AliasEntry.Resolve): Implement section 16.3.1.
(NamespaceEntry.Lookup): Add new argument to flag if we want the
lookup to avoid symbols introduced by 'using'.
* rootcontext.cs (NamespaceLookup): Update.

svn path=/trunk/mcs/; revision=33801
2004-09-13 09:01:57 +00:00
Marek Safar 9213b8e99a Was wrong condition
svn path=/trunk/mcs/; revision=33800
2004-09-13 09:00:45 +00:00
Jambunathan K 81f353e180 * reflection.c (mono_param_get_objects): Modified to return
ParameterInfo.DefaultValue object.

(get_default_param_value_blobs):
(mono_get_object_from_blob):
(mono_get_dbnull_object): New helper routines.

* object.c (mono_get_constant_value_from_blob): New helper routine
carved out from get_default_field_value ()

* object-internals.h (mono_get_constant_value_from_blob): Added
function declaration.

svn path=/trunk/mono/; revision=33799
2004-09-13 08:48:58 +00:00
Atsushi Eno c3ebf1694a 2004-09-13 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XPathAtomicValueTests.cs.

svn path=/trunk/mcs/; revision=33792
2004-09-13 04:06:22 +00:00
Atsushi Eno 8d7ab73dde 2004-09-13 Atsushi Enomoto <[email protected]>
* XPathAtomicValueTests.cs : added.

svn path=/trunk/mcs/; revision=33791
2004-09-13 04:05:13 +00:00
Atsushi Eno 505e8bf944 2004-09-13 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs : All .ctor() are separeted from Init().
	  In .ctor(object, XmlSchemaType):
	  - For lists that contains just one item, Init() recursively.
	  - For XPathAtomicValue, Init() recursively for its content fields.
	  For Value and TypedValue, consider typecode from XmlSchemaType.

svn path=/trunk/mcs/; revision=33790
2004-09-13 04:03:54 +00:00
Atsushi Eno 4871cc5c58 2004-09-13 Atsushi Enomoto <[email protected]>
* SequenceType.cs, XPath2Expression.cs :
	  Added SequenceType.IsNumeric(XmlTypeCode).
	  In type comparison, untyped XPathNavigator is xdt:untypedAtomic
	  (not sure as yet if it is always correct.)
	* XQueryComparisonOperator.cs : rewrote all numeric comparison using
	  IsNumeric().

svn path=/trunk/mcs/; revision=33789
2004-09-13 03:57:40 +00:00
Gonzalo Paniagua Javier 1e049b674f 2004-09-13 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: added SetupInformationNoCopy property, since
	SetupInformation creates a copy now, all updates to it should use the
	actual data. Fixes bug #61991 take 2.

svn path=/trunk/mcs/; revision=33788
2004-09-13 03:50:23 +00:00
Gonzalo Paniagua Javier 0fbb08680b 2004-09-12 Gonzalo Paniagua Javier <[email protected]>
* RadioButton.cs: fix GroupName when the control is inside a
	NamingContainer different from Page. Closes bug #65586.

svn path=/branches/mono-1-0/mcs/; revision=33787
2004-09-13 02:26:30 +00:00
Gonzalo Paniagua Javier 03d06266ea 2004-09-12 Gonzalo Paniagua Javier <[email protected]>
* RadioButton.cs: fix GroupName when the control is inside a
	NamingContainer different from Page. Closes bug #65586.

svn path=/trunk/mcs/; revision=33786
2004-09-13 02:25:40 +00:00
Francisco Figueiredo Jr. 0e5e637322 2004-09-12 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/NpgsqlTypesHelper:
		VerifyDefaultTypesMap: Added DbType.Byte support. Thanks Martin ( martijn at boland dot org)
		for heads up.

svn path=/trunk/mcs/; revision=33785
2004-09-13 01:18:27 +00:00
Francisco Figueiredo Jr. cf6bdb5c48 2004-09-12 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlTypes/NpgsqlTypesHelper:
		ConvertToBackend: Fixed code to handle null values properly when using extended query mode.
		Fix bug 955 in gborg.

svn path=/trunk/mcs/; revision=33784
2004-09-13 00:20:35 +00:00
Marek Safar 37de8e5a26 Improved test
svn path=/trunk/mcs/; revision=33783
2004-09-12 20:22:53 +00:00
Marek Safar b825b31174 2004-09-12 Marek Safar <[email protected]>
* class.cs (TypeContainer.DoDefineMembers): Do not call
	DefineDefaultConstructor for static classes.

svn path=/trunk/mcs/; revision=33782
2004-09-12 20:21:07 +00:00
Marek Safar 86d2c09669 2004-09-12 Marek Safar <[email protected]>
* TypeBuilder.cs: Do not create default constructor for
	static classes.

svn path=/trunk/mcs/; revision=33781
2004-09-12 20:18:23 +00:00
Ben Maurer aeb64d54fd 2004-09-12 Ben Maurer <[email protected]>
* HttpContext.cs: use CallContext. It is a little bit faster.

svn path=/branches/mono-1-0/mcs/; revision=33776
2004-09-12 16:07:27 +00:00
Ben Maurer 48959a1691 2004-09-12 Ben Maurer <[email protected]>
* HttpContext.cs: use CallContext. It is a little bit faster.

svn path=/trunk/mcs/; revision=33775
2004-09-12 16:06:53 +00:00
Ben Maurer a75ca5d34e 2004-09-12 Ben Maurer <[email protected]>
* BinaryReader.cs: Use ReadByte when possible. Gives a tad
	of perf, and fixes a bug reported on mono-patches-list

svn path=/trunk/mcs/; revision=33772
2004-09-12 15:02:23 +00:00
Marek Safar dc9947a7b7 refresh
svn path=/trunk/mcs/; revision=33771
2004-09-12 13:20:16 +00:00
Marek Safar f3343f7a0c 2004-09-12 Marek Safar <[email protected]>
* attribute.cs (Attribute.Resolve): Add error 653 report.

	* class.cs (Class.ApplyAttributeBuilder): Add error 641
	report.
	(Method.ApplyAttributeBuilder): Add error 685 report.
	(Operator.Define): Add error 564 report.

	* cs-tokenizer.cs (handle_hex): Add error 1013 report.

	* expression.cs (Invocation.DoResolve): Add error
	245 and 250 report.

	* parameter.cs (Parameter.ApplyAttributeBuilder): Add
	error 674 report.

svn path=/trunk/mcs/; revision=33770
2004-09-12 13:19:49 +00:00
Atsushi Eno dce1693db5 2004-09-12 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : ComparisonExpr.CompareAtomic() should consider
	  spec-conformant untypedAtomic handling.
	* XQueryContext.cs : Variables were incorrectly added to the older
	  context. Fixed Context and ContextManager constructors that were
	  in silly chicken-and-egg.
	* XPathSequence.cs : now Context property always returns current
	  XQuery context (will be fixed; it is workaround for variable
	  resolution). In For iteration, context sequence should vary.
	* XQueryComparisonOperator.cs : All value comparison failed to return
	  true when both operands are the same types.
	* XsltCommand.cs : use XmlWriter.Create().

svn path=/trunk/mcs/; revision=33769
2004-09-12 10:28:54 +00:00
Gert Driesen e5cffe24df * System.dll.sources: removed duplicate entry for System.Net.Configuration.
WebRequestModuleHandler

svn path=/trunk/mcs/; revision=33768
2004-09-12 07:37:22 +00:00
Ben Maurer aef960c07c oops
svn path=/trunk/mcs/; revision=33767
2004-09-12 02:01:39 +00:00
Ben Maurer e61cad2588 2004-09-11 Ben Maurer <[email protected]>
* CallContext.cs: Use [ThreadStatic], it is much faster than the
	Thread.[Get/Set]Data functions

svn path=/trunk/mcs/; revision=33766
2004-09-12 01:43:02 +00:00
Ben Maurer 658b904703 2004-09-11 Ben Maurer <[email protected]>
* CADMessages.cs: get rid of method / type name, it is not needed
	* MethodCall.cs: lazily init method / type name.
	* ReturnMessage.cs: lazily init method / type name, sig.

svn path=/trunk/mcs/; revision=33765
2004-09-12 01:24:43 +00:00
Ben Maurer 8d6c76318b 2004-09-11 Ben Maurer <[email protected]>
* RemotingServices.cs: use MethodBase rather than looking
	for the method ourselves. It has higher perf in x-ad calls.

svn path=/trunk/mcs/; revision=33764
2004-09-12 01:20:28 +00:00
Sebastien Pouliot 240954cfb4 2004-09-11 Sebastien Pouliot <[email protected]>
* System_test.dll.sources: Added unit tests for System.Diagnostics.
	EventLogPermission and PerformanceCounterPermission.

svn path=/trunk/mcs/; revision=33763
2004-09-11 22:55:05 +00:00
Sebastien Pouliot 48f0d411c5 2004-09-11 Sebastien Pouliot <[email protected]>
* EventLogPermission.cs: Completed implementation.
	* EventLogPermissionAccess.cs: Fixed enum values.
	* EventLogPermissionEntry.cs: Added validation for machine names.
	* EventLogPermissionEntryCollection.cs: Added synchronization
	of entries with the base permission class.
	* PerformanceCounterPermission.cs: Completed implementation.
	* PerformanceCounterPermissionAccess.cs: Fixed enum values.
	* PerformanceCounterPermissionEntry.cs: Added validations for machine
	and category names.
	* PerformanceCounterPermissionEntryCollection.cs: Added synchronization
	of entries with the base permission class.

svn path=/trunk/mcs/; revision=33762
2004-09-11 22:53:31 +00:00
Sebastien Pouliot 5377c62903 2004-09-11 Sebastien Pouliot <[email protected]>
* EventLogPermissionTest.cs: New. Unit tests for EventLogPermission.
	* PerformanceCounterPermissionTest.cs: New. Unit tests for
	PerformanceCounterPermission.

svn path=/trunk/mcs/; revision=33761
2004-09-11 22:48:00 +00:00
Atsushi Eno fc652475c1 2004-09-12 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : CloseOutput must be true by default.

svn path=/trunk/mcs/; revision=33760
2004-09-11 22:28:58 +00:00
Marek Safar 828399fbef refresh
svn path=/trunk/mcs/; revision=33759
2004-09-11 20:57:23 +00:00
Marek Safar 5e36272d2c 2004-09-11 Marek Safar <[email protected]>
* class.cs (ConstructorInitializer.Resolve):
	Wrong error number (515->516).

svn path=/trunk/mcs/; revision=33758
2004-09-11 20:56:55 +00:00
Francisco Figueiredo Jr. 6a6029bbfe 2004-09-11 Francisco Figueiredo Jr. <[email protected]>
* Npgsql/NpgsqlConnection.cs:
		Dispose: Improved implementation. Also added warning logging for
		NpgsqlConnection leakings.
		Close: Fixed code to allow calling many times even when being disposed.
	* Npgsql/NpgsqlConnection.resx:
		Added new warning logging message for NpgsqlConnection leakings.
	* Npgsql/NpgsqlConnector.cs:
		IsValid: new method to check if Connector is still valid.
	* Npgsql/NpgsqlConnectorPool.cs:
		GetPooledConnector: Improved to check validity of Connector.
		FixPoolCountBecauseOfConnectionDisposeFalse: new method to fix the connection pool count
		because NpgsqlConnection leaking. This way, uses doesn't run out of connections from pool.

svn path=/trunk/mcs/; revision=33757
2004-09-11 20:17:12 +00:00
Marek Safar 468badd403 2004-09-11 Marek Safar <[email protected]>
* class.cs (Indexer.Define): Add error 631 report.

svn path=/trunk/mcs/; revision=33756
2004-09-11 20:12:27 +00:00
Ben Maurer 01c3c9e673 2004-09-11 Ben Maurer <[email protected]>
* CADMessages.cs, MethodCall.cs: When doing an x-appdomain
	call, store the method in a RuntimeMethodHandle. This allows
	us to avoid the expensive lookup operations that must be done
	to resolve the method. This makes xsp go from 250 r/s to 450 r/s
	for me.

svn path=/trunk/mcs/; revision=33755
2004-09-11 20:10:46 +00:00
Zoltan Varga e85b77c03f 2004-09-11 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix more instruction lengths.

svn path=/trunk/mono/; revision=33754
2004-09-11 19:05:53 +00:00
Zoltan Varga 518cbf98c3 2004-09-11 Zoltan Varga <[email protected]>
* assembly.c assembly.h icall.c class.c appdomain.c: Lazily load
	referenced assemblies. Fixes #62135.

	* exception.h exception.c (mono_get_exception_file_not_found2): New
	helper function.

svn path=/trunk/mono/; revision=33753
2004-09-11 18:51:19 +00:00
Zoltan Varga 5a64e9d5e3 2004-09-11 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix lengths of some instructions.

svn path=/trunk/mono/; revision=33752
2004-09-11 18:45:08 +00:00
Marek Safar d01f0f7212 2004-09-11 Marek Safar <[email protected]>
* ecore.cs (Error_NegativeArrayIndex): Fix 248 error.

svn path=/trunk/mcs/; revision=33751
2004-09-11 18:34:03 +00:00
Marek Safar d4e377f894 2004-09-11 Marek Safar <[email protected]>
* expression.cs (Probe.DoResolve): Add error CS0241 report.

svn path=/trunk/mcs/; revision=33750
2004-09-11 17:14:08 +00:00
Sebastien Pouliot 0e83560f7f 2004-09-11 Sebastien Pouliot <[email protected]>
* Makefile: Updated to include unit tests.
	* System.ServiceProcess.dll.sources: Added ServiceControllerPermission
	class to the build.
	* System.ServiceProcess_test.dll.sources: New. Added sources file for
	unit tests.

svn path=/trunk/mcs/; revision=33749
2004-09-11 15:07:55 +00:00
Sebastien Pouliot 7fe06dd9d1 2004-09-11 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* ServiceControllerPermission.cs: New. Added permission class.
	* ServiceControllerPermissionAttribute.cs: Completed TODO, added
	missing validations (machine and service names). Fixed AttributeUsage.
	* ServiceControllerPermissionEntry.cs: Added internal GetBaseEntry for
	synchronization. Converted spaces to tabs.
	* ServiceControllerPermissionEntryCollection.cs: Added synchronization
	with entries in the base class. Converted spaces to tabs.

svn path=/trunk/mcs/; revision=33748
2004-09-11 15:06:39 +00:00
Sebastien Pouliot fb44a8523a 2004-09-11 Sebastien Pouliot <[email protected]>
* ServiceControllerPermissionAttributeTest.cs: New. Unit tests for
	ServiceControllerPermissionAttribute class.
	* ServiceControllerPermissionTest.cs: New. Unit tests for Service
	ControllerPermission class.

svn path=/trunk/mcs/; revision=33747
2004-09-11 15:01:48 +00:00
Ben Maurer bac3235490 2004-09-11 Ben Maurer <[email protected]>
* inssel.brg: make ldelema check aot friendly.

svn path=/branches/mono-1-0/mono/; revision=33746
2004-09-11 13:58:18 +00:00
Ben Maurer 40ba891835 2004-09-11 Ben Maurer <[email protected]>
* inssel.brg: Make the array ldelema check aot friendly.

svn path=/trunk/mono/; revision=33745
2004-09-11 13:57:16 +00:00
Rafael Teixeira b859e23742 2004-09-11 Rafael Teixeira <[email protected]>
* Utils.cs: Wrong return type in CopyArray Signature. Bug #65651

svn path=/trunk/mcs/; revision=33744
2004-09-11 13:04:49 +00:00
Rafael Teixeira 0e01936f55 2004-09-11 Rafael Teixeira <[email protected]>
* ObjectType.cs: Corrected some test ordering in ObjTst and using new getObjTstString to test two candidate strings. Bug #65653

svn path=/trunk/mcs/; revision=33743
2004-09-11 12:30:09 +00:00
Zoltan Varga 3cf5cdc3df 2004-09-11 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_argument_info): Fix stack_unwind test.

	* cpu-amd64.md inssel-long.brg inssel-amd64.brg: Small optimizations.

svn path=/trunk/mono/; revision=33742
2004-09-11 09:46:20 +00:00
Peter Dennis Bartok c67bc62953 - Added DoDragDrop() [incomplete]
- Properly implemented 'Visible' handling
- Added SetVisibleCore()
- Implemented FindChildAtPoint()
- Implemented GetContainerControl()
- Implemented Hide()

svn path=/trunk/mcs/; revision=33741
2004-09-11 03:50:00 +00:00
Peter Dennis Bartok 4dab3ebed2 - Moved methods into their appropriate #regions
- Reordered methods within regions alphabetically

svn path=/trunk/mcs/; revision=33740
2004-09-11 01:28:11 +00:00
Peter Dennis Bartok a7e8c57fd4 - Added method to retrieve text from window
svn path=/trunk/mcs/; revision=33739
2004-09-11 00:57:35 +00:00
Peter Dennis Bartok 592e2a8ecc - Moved some internal functions into the internal region
- Implemented FontHeight
- Implemented RenderRightToLeft
- Implemented ResizeRedraw
- Implemented ShowFocusCues
- Implemented ShowKeyboardCues
- Implemented FromChildHandle
- Implemented FromHandle
- Implemented IsMnemonic
- Implemented ReflectMessage
- All public and protected Static Methods are now complete

svn path=/trunk/mcs/; revision=33738
2004-09-11 00:56:33 +00:00
Peter Dennis Bartok f987a058db - Implemented remaining missing public instance properties
- Alphabetized some out of order properties

svn path=/trunk/mcs/; revision=33735
2004-09-10 22:54:52 +00:00
Tim Coleman cb5bef2327 2004-10-10 Tim Coleman <[email protected]>
* ConfigurationElementCollection.cs:
		Add XML_DEP

svn path=/trunk/mcs/; revision=33734
2004-09-10 22:09:05 +00:00
Tim Coleman f71a1bd1cf 2004-09-10 Tim Coleman <[email protected]>
* Add XML_DEP to all sources.

svn path=/trunk/mcs/; revision=33733
2004-09-10 22:08:21 +00:00
Marek Safar 92362b4896 2004-09-10 Marek Safar <[email protected]>
* do-test.pl: Make report readable (I was really confuse).
	Fixed bug on my machine CR+LF in *-expect-* files.

svn path=/trunk/mcs/; revision=33731
2004-09-10 21:12:40 +00:00
Sebastien Pouliot 0e5a303ba3 2004-09-10 Sebastien Pouliot <[email protected]>
* System_test.dll.sources: Added PermissionHelper to the build.
	* System_test.dll.sources: Added unit tests for System.Security.
	Permissions.ResourcePermissionBase and ResourcePermissionBaseEntry,
	System.Web.AspNetHostingPermission and AspNetHostingPermissionAttribute.

svn path=/trunk/mcs/; revision=33730
2004-09-10 19:58:21 +00:00
Sebastien Pouliot f752fbe02c 2004-09-10 Sebastien Pouliot <[email protected]>
* EventLogPermission.cs: Fixed initialization (TagNames and
	PermissionAccessType).
	* EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added
	[Obsolete] to some existing elements.
	* EventLogPermissionAttribute.cs: Added missing validation to property
	MachineName. Fixed changes for NET_2_0.
	* PerformanceCounterPermission.cs: Fixed initialization (TagNames and
	PermissionAccessType).
	* PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
	and added [Obsolete] to some existing elements.
	* PerformanceCounterPermissionAttribute.cs: Added missing validations
	to properties (Path, MachineName). Fixed changes for NET_2_0.

svn path=/trunk/mcs/; revision=33729
2004-09-10 19:54:12 +00:00
Tim Coleman d4388ed7a1 2004-09-10 Tim Coleman <[email protected]>
* System.dll.sources: Add System.Net.Cache, System.Net.Configuration,
                System.Net.Mail, System.Configuration classes

svn path=/trunk/mcs/; revision=33728
2004-09-10 19:53:11 +00:00
Tim Coleman 32fb1735a7 2004-09-10 Tim Coleman <[email protected]>
* SmtpClient.cs SmtpFailedRecipientsException.cs:
                Add failed recipient exception handling.

svn path=/trunk/mcs/; revision=33727
2004-09-10 19:51:36 +00:00
Tim Coleman 5ca6f326d0 2004-09-10 Tim Coleman <[email protected]>
* ConfigurationElementCollection.cs ConfigurationElementCollectionType.cs:
                New Fx 2.0 stubs
        * ConfigurationElement.cs:
                Fix function declaration

svn path=/trunk/mcs/; revision=33726
2004-09-10 19:50:10 +00:00
Tim Coleman 38d8ff2fd7 2004-09-10 Tim Coleman <[email protected]>
* AuthenticationModuleElement.cs AuthenticationModuleElementCollection.cs
        * AuthenticationModulesSection.cs BypassElement.cs BypassElementCollection.cs
        * ConnectionManagementElement.cs ConnectionManagementElementCollection.cs
        * ConnectionManagementSection.cs DefaultProxySection.cs
        * HttpCachePolicyElement.cs HttpWebRequestElement.cs
        * Ipv6Element.cs MailSettingsSection.cs ModuleElement.cs
        * NetSectionGroup.cs ProxyElement.cs RequestCachingSection.cs
        * ServicePointManagerElement.cs SettingsSection.cs SmtpElement.cs
        * SocketElement.cs UriParserElement.cs UriParserElementCollection.cs
        * UriParserSection.cs WebRequestModuleElement.cs
        * WebRequestModuleElementCollection.cs WebRequestModulesSection.cs:
                New classes for Fx 2.0

svn path=/trunk/mcs/; revision=33725
2004-09-10 19:47:45 +00:00
Sebastien Pouliot d0cb58bb73 2004-09-10 Sebastien Pouliot <[email protected]>
* DnsPermission.cs: Updated to pass new unit tests.
	* DnsPermissionAttribute.cs: Cleanup.
	* SocketPermission.cs: Updated to pass new unit tests.
	* SocketPermissionAttribute.cs: Updated to pass new unit tests.
	* WebPermission.cs: Implemented some TODO - not complete yet.
	* WebPermissionAttribute.cs: Updated to pass new unit tests.

svn path=/trunk/mcs/; revision=33724
2004-09-10 19:47:03 +00:00
Tim Coleman 69c422ca86 2004-09-10 Tim Coleman <[email protected]>
* HttpCacheAgeControl.cs HttpRequestCacheLevel.cs HttpRequestCachePolicy.cs
        * RequestCacheLevel.cs RequestCachePolicy.cs:
                New classes for Fx 2.0

svn path=/trunk/mcs/; revision=33723
2004-09-10 19:44:30 +00:00
Sebastien Pouliot ed2d3bacae 2004-09-10 Sebastien Pouliot <[email protected]>
* AspNetHostingPermission.cs: Completed TODO.
	* AspNetHostingPermissionAttribute.cs: Completed TODO and added enum
	validation.

svn path=/trunk/mcs/; revision=33722
2004-09-10 19:40:45 +00:00
Sebastien Pouliot b780843db1 2004-09-10 Sebastien Pouliot <[email protected]>
* PermissionHelper.cs: New. Static methods to help implementation of
	permission classes.
	* ResourcePermissionBase.cs: Implemented all TODO (except FromXml
	which isn't complete).
	* ResourcePermissionBaseEntry.cs: Minor cleanup (namespaces, style).

svn path=/trunk/mcs/; revision=33721
2004-09-10 19:32:23 +00:00
Sebastien Pouliot 6533620733 2004-09-10 Sebastien Pouliot <[email protected]>
* DnsPermissionAttributeTest.cs: New. Unit tests for DnsPermissionAttr.
	* DnsPermissionTest.cs: New. Unit tests for DnsPermission.
	* SocketPermissionAttributeTest.cs: New. Unit tests for
	SocketPermissionAttribute.
	* WebPermissionAttributeTest.cs: New. Unit tests for WebPermission
	Attribute.

svn path=/trunk/mcs/; revision=33720
2004-09-10 19:25:58 +00:00
Sebastien Pouliot 2f5a2314bb 2004-09-10 Sebastien Pouliot <[email protected]>
* AspNetHostingPermissionAttributeTest.cs: New. Unit tests for AspNet
	HostingPermissionAttribute.
	* AspNetHostingPermissionTest.cs: New. Unit tests for AspNetHosting
	Permission.

svn path=/trunk/mcs/; revision=33719
2004-09-10 19:22:04 +00:00
Sebastien Pouliot fd63bebf56 2004-09-10 Sebastien Pouliot <[email protected]>
* EventLogPermissionAttributeTest.cs: New. Unit tests for
	EventLogPermissionAttribute.
	* PerformanceCounterPermissionAttributeTest.cs: New. Unit tests for
	PerformanceCounterPermissionAttribute.

svn path=/trunk/mcs/; revision=33718
2004-09-10 19:20:53 +00:00
Sebastien Pouliot c42457ab82 2004-09-10 Sebastien Pouliot <[email protected]>
* ResourcePermissionBaseEntryTest.cs: New. Unit tests for
	ResourcePermissionBaseEntry.
	* ResourcePermissionBaseTest.cs: New. Unit tests for
	ResourcePermissionBase.

svn path=/trunk/mcs/; revision=33717
2004-09-10 19:17:50 +00:00
Zoltan Varga 4b3965e183 2004-09-10 Zoltan Varga <[email protected]>
* mini-x86.c: Fix build.

svn path=/trunk/mono/; revision=33716
2004-09-10 18:52:36 +00:00
Zoltan Varga d95f786582 2004-09-10 Zoltan Varga <[email protected]>
* mini-sparc.c mini-x86.c mini-amd64.c: Use the new
	mono_type_get_underlying_type () helper function to simplify code.

svn path=/trunk/mono/; revision=33715
2004-09-10 18:11:44 +00:00
Zoltan Varga 981b1e63b3 2004-09-10 Zoltan Varga <[email protected]>
* class.h class.c: Add mono_type_get_underlying_type ().

svn path=/trunk/mono/; revision=33713
2004-09-10 18:00:39 +00:00
Zoltan Varga df3a9912e9 2004-09-10 Zoltan Varga <[email protected]>
* Makefile.am (populate-runtime-subdir): Avoid -path argument to find
	since it is not supported on solaris.

svn path=/trunk/mono/; revision=33712
2004-09-10 17:29:35 +00:00
Marek Safar 496359b561 2004-09-10 Marek Safar <[email protected]>
* cs-parser.jay: Added error CS0241 report.

svn path=/trunk/mcs/; revision=33711
2004-09-10 14:30:05 +00:00
Sebastien Pouliot 9b4ee8d132 2004-09-10 Sebastien Pouliot <[email protected]>
* DirectoryServicesPermission.cs: Completed TODO.
	* DirectoryServicesPermissionAttribute.cs: Added path validation and
	enable the creation of unrestricted permissions.
	* DirectoryServicesPermissionEntry.cs: Add internal method to return
	an ResourcePermissionBaseEntry instance.
	* DirectoryServicesPermissionEntryCollection.cs: Allow synchronization
	of elements with the base permission class (required to enable Copy).

svn path=/trunk/mcs/; revision=33710
2004-09-10 14:24:36 +00:00
Sebastien Pouliot ab514df016 2004-09-10 Sebastien Pouliot <[email protected]>
* Makefile: Activate unit tests.
	* System.DirectoryServices_test.dll.sources: New. Source list for unit
	tests.

svn path=/trunk/mcs/; revision=33709
2004-09-10 14:17:48 +00:00
Sebastien Pouliot c7203e757c 2004-09-10 Sebastien Pouliot <[email protected]>
* ChangeLog: New.
	* DirectoryServicesPermissionAttributeTest.cs: New. Unit tests for
	DirectoryServicesPermissionAttribute.
	* DirectoryServicesPermissionTest.cs: New. Unit tests for Directory
	ServicesPermission.

svn path=/trunk/mcs/; revision=33708
2004-09-10 14:13:46 +00:00
Sebastien Pouliot c81f8c0e6d 2004-09-10 Sebastien Pouliot <[email protected]>
* MessageQueuePermission.cs: Implemented enough TODO so compilers can
	call ToXml (and the runtime can call FromXml) without exceptions.
	* MessageQueuePermissionAttribute.cs: Implemented all TODO.
	* MessageQueuePermissionEntry.cs: Implemented all TODO.
	* MessageQueuePermissionEntryCollection.cs: Removed Clear on On*
	methods and added TODO.

svn path=/trunk/mcs/; revision=33707
2004-09-10 14:10:35 +00:00
Sebastien Pouliot c0a27200d8 2004-09-10 Sebastien Pouliot <[email protected]>
* Makefile: Activate unit tests.
	* System.Messaging_test.dll.sources: New. Source list for unit tests.

svn path=/trunk/mcs/; revision=33706
2004-09-10 14:06:10 +00:00
Sebastien Pouliot 4bd7fe8242 2004-09-10 Sebastien Pouliot <[email protected]>
* MessageQueuePermissionAttributeTest.cs: New. Unit tests for Message
	QueuePermissionAttribute.

svn path=/trunk/mcs/; revision=33705
2004-09-10 14:03:12 +00:00
Ravindra 6c7b8e85a0 Added a check for null image.
svn path=/trunk/mcs/; revision=33704
2004-09-10 11:51:29 +00:00
Raja R Harinath 1c39a82c18 * test-290.cs: New test.
* Makefile (TEST_SOURCES): Add test-290.cs.

svn path=/branches/mono-1-0/mcs/; revision=33703
2004-09-10 11:17:38 +00:00
Raja R Harinath 22c8d0bffe Fix test-290.cs.
* cs-parser.jay (delegate_declaration): Record a delegate
declaration as a type declaration.

(Backport from trunk)

svn path=/branches/mono-1-0/mcs/; revision=33702
2004-09-10 11:16:31 +00:00
Raja R Harinath 7ed8b4dbf2 Fix bootstrap with mcs 1.1.x.
* UnmanagedType.cs (UnmanagedType.__mono_bootstrap_NativeTypeMax):
Mark as non-compliant to CLS.

svn path=/branches/mono-1-0/mcs/; revision=33701
2004-09-10 11:12:21 +00:00
Raja R Harinath 315f85b281 New test for #64330.
svn path=/trunk/mcs/; revision=33700
2004-09-10 09:38:12 +00:00
Raja R Harinath 73b58680d3 (fixed_statement): Introduce a scope for the
declaration in the 'fixed' statement.

svn path=/trunk/mcs/; revision=33699
2004-09-10 09:37:34 +00:00
Ravindra 309fa659d6 Backporting some fixes.
svn path=/branches/mono-1-0/mcs/; revision=33698
2004-09-10 08:42:59 +00:00
Paolo Molaro 7904733e7b Some docs.
svn path=/trunk/mono/; revision=33696
2004-09-10 08:08:14 +00:00
Ravindra 3cb3105f0a * Graphics.cs: Implemented DrawIcon methods and fixed
DrawImageUnscaled method implementation.

svn path=/trunk/mcs/; revision=33694
2004-09-10 07:36:54 +00:00
Jordi Mas i Hernandez 68365538c6 remove cvs tag
svn path=/trunk/mcs/; revision=33693
2004-09-10 06:59:09 +00:00
Tim Coleman c1ca66f2a8 2004-09-09 Tim Coleman <[email protected]>
* System.dll.sources: Add new System.Net.Mail classes

svn path=/trunk/mcs/; revision=33692
2004-09-10 04:31:02 +00:00
Tim Coleman e440dc3bc6 2004-09-09 Tim Coleman <[email protected]>
* ContentType.cs: Changes to MIME headers

svn path=/trunk/mcs/; revision=33691
2004-09-10 04:28:51 +00:00
Tim Coleman 1dd5edf8db 2004-09-09 Tim Coleman <[email protected]>
* AttachmentCollection.cs MailAddressCollection.cs:
                New classes
        * Attachment.cs: Set content string
        * MailMessage.cs: Use new collection classes
        * SmtpClient.cs: Lots of MIME cleanup

svn path=/trunk/mcs/; revision=33690
2004-09-10 04:27:21 +00:00
Bernie Solomon 7e9ce72b44 2004-09-09 Bernie Solomon <[email protected]>
* Test.Sources: fix case of a couple of filenames

svn path=/trunk/mcs/; revision=33689
2004-09-10 03:16:25 +00:00
Gonzalo Paniagua Javier 849f727611 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: ensure bin directory exists before trying to access
	it. Fixes bug #65446 (not closed yet due to dependencies).

svn path=/trunk/mcs/; revision=33688
2004-09-10 02:46:22 +00:00
Gonzalo Paniagua Javier 980d0c2a66 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: ensure bin directory exists before trying to access
	it. Fixes bug #65446 (not closed yet due to dependencies).

svn path=/branches/mono-1-0/mcs/; revision=33687
2004-09-10 02:45:50 +00:00
Gonzalo Paniagua Javier d65a8c8529 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpStaticObjectsCollection.cs:
	* System.Web.SessionState/HttpSessionState.cs: don't share static
	session objects declared in the application file across the application,
	but on a per-session basis. Fixes bug #65446.

svn path=/branches/mono-1-0/mcs/; revision=33686
2004-09-10 02:19:05 +00:00
Gonzalo Paniagua Javier b53f5e5bb9 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpStaticObjectsCollection.cs:
	* System.Web.SessionState/HttpSessionState.cs: don't share static
	session objects declared in the application file across the application,
	but on a per-session basis. Fixes bug #65446.

svn path=/trunk/mcs/; revision=33685
2004-09-10 02:17:15 +00:00
Fawad Halim a3d03c3904 Added test cases for bug# 64995.
svn path=/trunk/mcs/; revision=33684
2004-09-10 02:01:47 +00:00
Gonzalo Paniagua Javier 59038e8fc8 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
	the transfer is done from inside a page that received a postback.
	Fixes bug #65613.

svn path=/branches/mono-1-0/mcs/; revision=33682
2004-09-10 01:35:44 +00:00
Gonzalo Paniagua Javier c1e92b2f25 2004-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
	the transfer is done from inside a page that received a postback.
	Fixes bug #65613.

svn path=/trunk/mcs/; revision=33681
2004-09-10 01:34:47 +00:00
Marek Safar 65c6c2ff60 Please, do not commit generated file
svn path=/trunk/mcs/; revision=33680
2004-09-09 21:36:21 +00:00
Marek Safar e1353500a3 2004-09-09 Marek Safar <[email protected]>
* cs-parser.jay: Added CS0230 error report.

svn path=/trunk/mcs/; revision=33678
2004-09-09 21:13:13 +00:00
Martin Baulig 5ee922139a 2004-09-10 Martin Baulig <[email protected]>
* gen-76.cs: New test.

svn path=/trunk/mcs/; revision=33677
2004-09-09 20:54:42 +00:00
Marek Safar b63051d517 2004-09-09 Marek Safar <[email protected]>
* cs-parser.jay: Added errors CS0231 and CS0257 report.

svn path=/trunk/mcs/; revision=33676
2004-09-09 20:50:04 +00:00
Marek Safar 967e5d058e code formating
svn path=/trunk/mcs/; revision=33675
2004-09-09 20:47:58 +00:00
Martin Baulig d2fd7066c1 2004-09-09 Martin Baulig <[email protected]>
* mini-amd64.c: Don't access `type->data.klass' directly, call
	mono_class_from_mono_type() instead since the type may be a
	generic instance.

svn path=/trunk/mono/; revision=33674
2004-09-09 20:33:52 +00:00
Miguel de Icaza 8811e6dd79 Add new script
svn path=/trunk/mono/; revision=33673
2004-09-09 20:32:07 +00:00
Miguel de Icaza 69cb1d5c98 Add wsdl2 page, update wsdl man page
svn path=/trunk/mono/; revision=33672
2004-09-09 20:31:40 +00:00
Miguel de Icaza b02285ad73 Add wsdl2.exe to the dist
svn path=/trunk/mono/; revision=33671
2004-09-09 20:29:55 +00:00
Marek Safar 9e6367d7c8 2004-09-09 Marek Safar <[email protected]>
* expression.cs (Argument.Resolve): Added error CS0192 and
	CS0199 report.

svn path=/trunk/mcs/; revision=33670
2004-09-09 20:22:47 +00:00
Marek Safar 29ede20a97 2004-09-09 Marek Safar <[email protected]>
* test-291.cs: New test for #pragma warning.

svn path=/trunk/mcs/; revision=33667
2004-09-09 18:56:20 +00:00
Marek Safar e7397842a1 2004-09-09 Marek Safar <[email protected]>
C# 2.0 #pragma warning feature

	* cs-tokenizer.cs (PreProcessPragma): New method;
	Handles #pragma directive.

	* report.cs (WarningRegions): New class; Support
	class for #pragma warning directive. It tests whether
	warning is enabled for a given line.

svn path=/trunk/mcs/; revision=33666
2004-09-09 18:54:39 +00:00
Paolo Molaro 99a49e2835 Thu Sep 9 20:57:53 CEST 2004 Paolo Molaro <[email protected]>
* mini-*.c, mini-ops.h, inssel-long32.brg: introduced
	OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
	set the carry/borrow flag). The sparc and s390 implementations
	can now use optimized versions (and simplify the code). ppc bugfixes.

svn path=/branches/mono-1-0/mono/; revision=33663
2004-09-09 17:53:54 +00:00
Paolo Molaro f622d2f2fc Thu Sep 9 07:09:11 PDT 2004 Paolo Molaro <[email protected]>
* ScriptCompilerInfo.cs: avoid using a .cctor and fix precomp.

svn path=/branches/mono-1-0/mcs/; revision=33662
2004-09-09 17:40:50 +00:00
Martin Baulig 2263985ade 2004-09-09 Martin Baulig <[email protected]>
* mini-amd64.c (get_call_info): Fix support for generic instances.
	(add_valuetype): Use mono_class_from_mono_type() to get the class
	since we can be a generic instance.

svn path=/trunk/mono/; revision=33661
2004-09-09 16:25:51 +00:00
Martin Baulig e2bb200ab1 Really fix generic instances.
svn path=/trunk/mono/; revision=33660
2004-09-09 15:57:59 +00:00
Tim Coleman e1aa081c6c 2004-09-09 Tim Coleman <[email protected]>
* corlib.dll.sources: Added System/Base64FormattingOptions.cs to the
	build

svn path=/trunk/mcs/; revision=33659
2004-09-09 14:43:25 +00:00
Tim Coleman 0d9aaa71bf 2004-09-09 Tim Coleman <[email protected]>
* Base64FormattingOptions.cs: New enum
        * Convert.cs: Add new ToBase64String methods for Fx 2.0

svn path=/trunk/mcs/; revision=33658
2004-09-09 14:40:50 +00:00
Tim Coleman 319122710c 2004-09-09 Tim Coleman <[email protected]>
* StringBuilder.cs: Added AppendLine methods for Fx 2.0

svn path=/trunk/mcs/; revision=33657
2004-09-09 14:37:31 +00:00
Dick Porter d7318c2a86 2004-09-09 Dick Porter <[email protected]>
* error.c:
	* io.c: Set error codes everywhere.

svn path=/trunk/mono/; revision=33656
2004-09-09 14:28:17 +00:00
Dick Porter 92cf05a7ec 2004-09-09 Dick Porter <[email protected]>
* error.c:
	* io.c: Set error codes everywhere.

svn path=/branches/mono-1-0/mono/; revision=33655
2004-09-09 14:27:47 +00:00
Geoff Norton 7c3bdef800 2004-09-09 Geoff Norton <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes):
	Fix GetTypes() to support dynamically created assemblies.
	Patch for #65576 approved by Zoltan.

svn path=/trunk/mono/; revision=33654
2004-09-09 14:21:57 +00:00
Paolo Molaro 04d775954a Thu Sep 9 07:09:11 PDT 2004 Paolo Molaro <[email protected]>
* ScriptCompilerInfo.cs: avoid using a .cctor and fix precomp.

svn path=/trunk/mcs/; revision=33652
2004-09-09 12:59:46 +00:00
Martin Baulig 45a5ca71b9 Oops.
svn path=/trunk/mono/; revision=33651
2004-09-09 12:27:28 +00:00
Martin Baulig b4d6a3fb5b 2004-09-09 Martin Baulig <[email protected]>
* mini-amd64.c (get_call_info): Fix support for generic instances.

svn path=/trunk/mono/; revision=33650
2004-09-09 12:18:43 +00:00
Martin Baulig f4a3f28591 2004-09-09 Martin Baulig <[email protected]>
* cs-parser.jay (namespace_declaration): Fixed CS0134 reporting.

svn path=/trunk/mcs/; revision=33649
2004-09-09 11:26:24 +00:00
Ravindra 0610903042 Make redraw accessible from ToolBarButton.
svn path=/trunk/mcs/; revision=33648
2004-09-09 11:25:03 +00:00
Zoltan Varga 6c4af1cb64 2004-09-09 Zoltan Varga <[email protected]>
* reflection.c (reflection_methodbuilder_to_mono_method): Remove TODO.

svn path=/trunk/mono/; revision=33647
2004-09-09 11:23:35 +00:00
Ravindra 3e3201185b Changes in ToolBarButton need to make it's parent redraw.
svn path=/trunk/mcs/; revision=33646
2004-09-09 11:23:05 +00:00
Zoltan Varga 6182f42e55 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33645
2004-09-09 11:22:08 +00:00
Zoltan Varga 6ee8253260 2004-09-09 Zoltan Varga <[email protected]>
* reflection.c (reflection_methodbuilder_to_mono_method): Fix bug in
	previous patch.

svn path=/trunk/mono/; revision=33644
2004-09-09 11:19:06 +00:00
Sanja Gupta bfafef1092 ChangeLog: Updated ChangeLog.
Control.cs: Implemented methods of interface IExpressionAccessor.

svn path=/trunk/mcs/; revision=33643
2004-09-09 11:19:05 +00:00
Martin Baulig fc7e44649b New test.
svn path=/trunk/mcs/; revision=33642
2004-09-09 11:11:32 +00:00
Zoltan Varga 254ab0e12f 2004-09-09 Zoltan Varga <[email protected]>
* reflection.h reflection.c loader.c: Allow dynamic construction of
	pinvoke methods. Fixes #65571.

svn path=/trunk/mono/; revision=33641
2004-09-09 11:11:11 +00:00
Sebastien Pouliot c767473f38 2004-09-09 Sebastien Pouliot <[email protected]>
* PrintingPermission.cs: Applied the new permission template.
	Implemented missing To|FromXml. Fixed set operations, ...
	* PrintingPermissionAttribute.cs: Added enum validation for Level and
	creation of unrestricted permissions.
	* PrintingPermissionLevel.cs: Added [Serializable] for NET_2_0.

svn path=/trunk/mcs/; revision=33640
2004-09-09 11:09:41 +00:00
Martin Baulig 8ecd0a0d44 Updated.
svn path=/trunk/mcs/; revision=33639
2004-09-09 11:09:33 +00:00
Sebastien Pouliot e7ba4b602c 2004-09-09 Sebastien Pouliot <[email protected]>
* System.Drawing_test.dll.sources: Added unit tests for
	PrintingPermission and it's attribute class.

svn path=/trunk/mcs/; revision=33638
2004-09-09 10:53:40 +00:00
Sebastien Pouliot f8d9c75336 2004-09-09 Sebastien Pouliot <[email protected]>
* PrintingPermissionAttributeTest.cs: New. Unit tests for Printing
	PermissionAttribute.
	* PrintingPermissionTest.cs: New. Unit tests for PrintingPermission.

svn path=/trunk/mcs/; revision=33637
2004-09-09 10:52:40 +00:00
Dick Porter 3166ac6ea0 Compile fixes
svn path=/trunk/mono/; revision=33636
2004-09-09 10:44:30 +00:00
Zoltan Varga 150819ceea 2004-09-09 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: Add test for lookup of global methods.

svn path=/trunk/mcs/; revision=33635
2004-09-09 10:20:31 +00:00
Zoltan Varga e1b7e8c457 Merge from HEAD.
svn path=/branches/mono-1-0/mcs/; revision=33634
2004-09-09 10:17:03 +00:00
Zoltan Varga 2a35efb091 2004-09-09 Zoltan Varga <[email protected]>
* TypeBuilder.cs: Set the table_idx of the global type to 1.

svn path=/trunk/mcs/; revision=33633
2004-09-09 10:15:31 +00:00
Lluis Sanchez 87f6305819 * interp.c: In interp_walk_stack, don't crash if the context is not set
(this may happen if the method is called by unmanaged code).

svn path=/trunk/mono/; revision=33632
2004-09-09 09:53:39 +00:00
Marek Safar 9c68256e6a Added langversion
svn path=/trunk/mono/; revision=33631
2004-09-09 08:55:20 +00:00
Zoltan Varga c86617e74b Merge from HEAD.
svn path=/branches/mono-1-0/mcs/; revision=33630
2004-09-09 08:36:27 +00:00
Zoltan Varga 6cf9db9602 2004-09-09 Zoltan Varga <[email protected]>
* ModuleBuilder.cs: Save the main module of the assembly even if it is
	transient.

svn path=/trunk/mcs/; revision=33629
2004-09-09 08:34:51 +00:00
Martin Baulig 53fb13028b 2004-09-09 Martin Baulig <[email protected]>
* generic.cs (TypeParameter.DefineType): Added support for
	explicit interface methods.

svn path=/trunk/mcs/; revision=33628
2004-09-09 08:28:51 +00:00
Peter Dennis Bartok 57691e7ea0 - Improve disabled string look
svn path=/trunk/mcs/; revision=33627
2004-09-09 08:28:11 +00:00
Martin Baulig d50775aa54 2004-09-09 Martin Baulig <[email protected]>
* gen-75.cs: New test.

svn path=/trunk/mcs/; revision=33626
2004-09-09 08:22:53 +00:00
Zoltan Varga 412797a268 2004-09-09 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_get_type): Revert previous change since
	it causes regressions.

svn path=/trunk/mono/; revision=33625
2004-09-09 08:22:28 +00:00
Martin Baulig b2d3766e5a 2004-09-09 Martin Baulig <[email protected]>
* README.Changes: New document.  Started to list important changes
	between MCS and GMCS here.

svn path=/trunk/mcs/; revision=33624
2004-09-09 07:58:45 +00:00
Paolo Molaro 9c7c4804d7 Thu Sep 9 01:43:53 PDT 2004 Paolo Molaro <[email protected]>
* mini-ppc.c, mini.h, regalloc.c, regalloc.h: powerpc speedups.

svn path=/trunk/mono/; revision=33622
2004-09-09 07:35:12 +00:00
Jordi Mas i Hernandez 6db01fd2fe measureitem args and handler
svn path=/trunk/mcs/; revision=33621
2004-09-09 07:15:19 +00:00
Ravindra caa4c8c71a Updated project.
svn path=/trunk/mcs/; revision=33620
2004-09-09 06:03:40 +00:00
Ravindra b177147269 Added some new enums to the list.
svn path=/trunk/mcs/; revision=33619
2004-09-09 05:57:39 +00:00
Ravindra bb9b26546b It's enum, not a class!
svn path=/trunk/mcs/; revision=33618
2004-09-09 05:56:20 +00:00
Ravindra 8a010bc3d3 Enums for Form.
svn path=/trunk/mcs/; revision=33617
2004-09-09 05:47:47 +00:00
Anirban Bhattacharjee ab02486724 missed out Test.Sources file in last commit
svn path=/trunk/mcs/; revision=33613
2004-09-09 04:05:08 +00:00
Ravindra 8e701cb9f9 Enums for ListView control.
svn path=/trunk/mcs/; revision=33611
2004-09-09 03:13:39 +00:00
Ravindra 2ff8c742ab PictureBox would not draw a null image to avoid crash.
svn path=/trunk/mcs/; revision=33610
2004-09-09 03:03:49 +00:00
Ravindra 6814d3da57 Removed unreachable code.
svn path=/trunk/mcs/; revision=33609
2004-09-09 03:01:35 +00:00
Miguel de Icaza c9e719c5c5 2004-09-08 Miguel de Icaza <[email protected]>
* const.cs: Add more descriptive error report, tahnks to
	Sebastien.

svn path=/trunk/mcs/; revision=33604
2004-09-08 23:36:00 +00:00
Tim Coleman fa3d3892ea 2004-09-08 Tim Coleman <[email protected]>
* Attachment.cs: Add SetContentFromFile methods
        * MailMessage.cs: Add MIME-Version header
        * SmtpClient.cs: Add some attachment handling.

svn path=/trunk/mcs/; revision=33603
2004-09-08 23:26:44 +00:00
Gonzalo Paniagua Javier f3bd1c2136 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* WebServiceCompiler.cs: fix buglet in my last commit.

svn path=/branches/mono-1-0/mcs/; revision=33602
2004-09-08 23:26:06 +00:00
Gonzalo Paniagua Javier 6c437856da 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* WebServiceCompiler.cs: fix buglet in my last commit.

svn path=/trunk/mcs/; revision=33601
2004-09-08 23:25:04 +00:00
Miguel de Icaza d83f3856a1 Fix ArgumentNullException arguments, thanks Sebastien
svn path=/trunk/mcs/; revision=33600
2004-09-08 23:11:56 +00:00
Miguel de Icaza 046cc83ddc 2004-09-08 Miguel de Icaza <[email protected]>
* File.cs: Added Gettextification, provide a better error message
	for #62112
2004-09-08  Miguel de Icaza  <[email protected]>

	* Locale.cs: Added overload that calls String.Format.

svn path=/trunk/mcs/; revision=33597
2004-09-08 22:12:40 +00:00
Bernie Solomon 74e373d7f3 2004-09-08 Bernie Solomon <[email protected]>
* mb-parser.jay: fix CopyTo args when parsing parameters

svn path=/trunk/mcs/; revision=33596
2004-09-08 21:19:27 +00:00
Bernie Solomon b22296b803 2004-09-08 Bernie Solomon <[email protected]>
* expression.cs: cope with ParamArray for no args
	* mb-parser.jay: dump parsing exception with --stacktrace

svn path=/trunk/mcs/; revision=33595
2004-09-08 21:13:22 +00:00
Martin Baulig 8ef1604850 2004-09-08 Martin Baulig <[email protected]>
* class.c (class_compute_field_layout): Don't call
	mono_class_layout_fields() for open generic instances.

svn path=/trunk/mono/; revision=33594
2004-09-08 19:19:40 +00:00
Martin Baulig 0ecc982c00 2004-09-08 Martin Baulig <[email protected]>
* class.cs
	(TypeContainer.CheckRecursiveDefinition): New protected method.
	(TypeContainer.DefineType): Move the CS0146 check into
	CheckRecursiveDefinition().

svn path=/trunk/mcs/; revision=33593
2004-09-08 17:46:56 +00:00
Martin Baulig b603f756f1 Updated again.
svn path=/trunk/mcs/; revision=33592
2004-09-08 17:43:09 +00:00
Marek Safar e4a42850f1 2004-09-08 Marek Safar <[email protected]>
* ecore.cs (FieldExpr.DoResolveLValue): Fixed CS0198 report.

svn path=/trunk/mcs/; revision=33584
2004-09-08 15:55:32 +00:00
Bernie Solomon 93b7753e3b 2004-09-08 Bernie Solomon <[email protected]>
* threads.c appdomain.c: fix typo in GC macro

svn path=/trunk/mono/; revision=33583
2004-09-08 15:07:13 +00:00
Marek Safar 73fe387760 2004-09-08 Marek Safar <[email protected]>
* Marshal.cs: Class is static in NET_2_0.

svn path=/trunk/mcs/; revision=33580
2004-09-08 14:40:59 +00:00
Lluis Sanchez 131cf2c0dd * CSharpCodeGenerator.cs: Reverted change in GenerateArrayCreateExpression.
It was causing regressions.

svn path=/trunk/mcs/; revision=33578
2004-09-08 14:16:04 +00:00
Marek Safar 715d1cfc6b 2004-09-08 Marek Safar <[email protected]>
* Interlocked.cs: Class is static in NET_2_0.

svn path=/trunk/mcs/; revision=33577
2004-09-08 14:07:05 +00:00
Lluis Sanchez 88ad9ccdd4 * delegate8.cs: New regression test for bug #59299.
* Makefile.am: Added delegate8.cs.

svn path=/trunk/mono/; revision=33576
2004-09-08 14:01:54 +00:00
Marek Safar 92587190c7 2004-09-08 Marek Safar <[email protected]>
* Directory.cs,
	* File.cs: Class is static for NET_2_0.

svn path=/trunk/mcs/; revision=33575
2004-09-08 13:56:24 +00:00
Marek Safar b3d3c6e409 2004-09-08 Marek Safar <[email protected]>
* Console.cs,
	* GC.cs: Class is static for NET_2_0.

svn path=/trunk/mcs/; revision=33574
2004-09-08 13:30:17 +00:00
Rafael Teixeira cd462b4b4a 2004/08/19 Rafael Teixeira <[email protected]>
* mb-parser.jay : some changes just not to stumble in global attributes definitions in multiple-lines
		like we have in VS.NET generated AssemblyInfo.vb files. still need to really process that definitions like mcs does

svn path=/trunk/mcs/; revision=33573
2004-09-08 13:10:16 +00:00
Lluis Sanchez 3858f1a29c * object.c: In mono_message_invoke, fill the output parameter array after
calling the managed method (it was done before the call). This fixes
	  bug #59299.

svn path=/branches/mono-1-0/mono/; revision=33572
2004-09-08 13:09:43 +00:00
Jordi Mas i Hernandez c6bf9396ed enumerations need it by menus
svn path=/trunk/mcs/; revision=33571
2004-09-08 12:45:12 +00:00
Atsushi Eno 95b83be635 2004-09-08 Atsushi Enomoto <[email protected]>
* XPathSequence.cs : workarounded bug #65521. Erased foreach inside
	  iterators.

svn path=/trunk/mcs/; revision=33570
2004-09-08 12:26:07 +00:00
Anirban Bhattacharjee 90849a413f 2004-09-08 Anirban Bhattacharjee <[email protected]>
* OptionalArgu_ByRefFuncA.vb:
        * OptionalArgu_ByValFuncD.vb:
        * OptionalArgu_ByValueD.vb:
        * OptionalArgu_ByRefFuncB.vb:
        * OptionalArgu_ByValFuncE.vb:
        * OptionalArgu_ByValueE.vb:
        * OptionalArgu_ByFunctionC1.vb:
        * OptionalArgu_ByRefFuncC.vb:
        * OptionalArgu_ByReferenceA.vb:
        * OptionalArgu_ByRefFuncD.vb:
        * OptionalArgu_ByValueA.vb:
        * OptionalArgu_ByReferenceB.vb:
        * OptionalArgu_ByValFuncA.vb:
        * OptionalArgu_ByValueB.vb:
        * Optional_ParamArrayC1.vb:
        * OptionalArgu_ByReferenceC.vb:
        * OptionalArgu_ByValFuncB.vb:
        * OptionalArgu_ByValueC1.vb:
        * Optional_ParamArrayC2.vb:
        * OptionalArgu_ByReferenceD.vb:
        * OptionalArgu_ByValFuncC.vb:
        * OptionalArgu_ByValueC.vb:
        * Test.Sources: Updated with new test names
                This set of tests are developed by Manish Sinha <[email protected]> which nicely compliment Bernie Sonomon's nice & long work.

svn path=/trunk/mcs/; revision=33568
2004-09-08 10:37:51 +00:00
Atsushi Eno 0eb8a86796 2004-09-08 Atsushi Enomoto <[email protected]>
* XQueryCommand.cs : Use XmlWriter.Create() instead of XmlTextWriter.
	  It affects on XML declaration output.

svn path=/trunk/mcs/; revision=33567
2004-09-08 09:27:58 +00:00
Atsushi Eno d950483a84 2004-09-08 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : fixed EnclosedExpr.Compile() that resulted
	  in index out of range.
	* XPathSequence.cs : FLWORIterator got working, but only when compiled
	  with .NET 2.0 csc (still weird Invalid IL error happens).

svn path=/trunk/mcs/; revision=33566
2004-09-08 09:17:51 +00:00
Atsushi Eno 15d11151e9 2004-09-08 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XmlWriterSettingsTests.cs.

svn path=/trunk/mcs/; revision=33565
2004-09-08 08:42:38 +00:00
Atsushi Eno b2b88e20ff 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlWriterSettingsTests.cs : added.

svn path=/trunk/mcs/; revision=33564
2004-09-08 08:42:12 +00:00
Atsushi Eno 616dba98f5 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
	  Implemented CheckCharacters and CloseOutput support.

svn path=/trunk/mcs/; revision=33563
2004-09-08 08:41:30 +00:00
Gonzalo Paniagua Javier 5f1cf31a64 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* threads.c: don't call mono_thread_detach() in start_wrapper(),
	avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.

svn path=/trunk/mono/; revision=33562
2004-09-08 08:26:56 +00:00
Carlos Alberto Cortez 764fe9b46d ReadOnlyCollection added to corlib.dll.sources.
svn path=/trunk/mcs/; revision=33561
2004-09-08 08:06:50 +00:00
Carlos Alberto Cortez 4a58119989 System.Collections.Generic.ReadOnlyCollection.cs file added.
svn path=/trunk/mcs/; revision=33560
2004-09-08 08:02:44 +00:00
Jackson Harper 896bbf704c Only run the timers when updating the message queue. This effectively gives X messages a higher priority then timer messages. Timers still need love though
svn path=/trunk/mcs/; revision=33559
2004-09-08 07:00:28 +00:00
Atsushi Eno e95a1ed5dd 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs : evidence is always provided.
	* XmlWriter.cs, XmlTextWriter.cs :
	  added support for ConformanceLevel and OmitXmlDeclaration.

svn path=/trunk/mcs/; revision=33558
2004-09-08 05:49:24 +00:00
Gonzalo Paniagua Javier 22c8e451a7 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* TraceContext.cs: when IsEnabled has not been set, return the value
	from the TraceManager. Fixes bug #63469.

svn path=/branches/mono-1-0/mcs/; revision=33557
2004-09-08 05:22:15 +00:00
Gonzalo Paniagua Javier 23527845de 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* HttpValueCollection.cs: fixed signature of ToString (). Closes bug
	#65392.

svn path=/branches/mono-1-0/mcs/; revision=33556
2004-09-08 05:17:49 +00:00
Gonzalo Paniagua Javier ce26bf6f68 2004-09-08 Gonzalo Paniagua Javier <[email protected]>
* HttpValueCollection.cs: fixed signature of ToString (). Closes bug
	#65392.

svn path=/trunk/mcs/; revision=33555
2004-09-08 05:15:58 +00:00
Atsushi Eno cd663617ec 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Console.WriteLine() injected :(
	* XmlTextWriter.cs : It it partly supports XmlWriterSettings.
	* XmlWriter.cs : implemented Create().
	* XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).

svn path=/trunk/mcs/; revision=33554
2004-09-08 05:11:19 +00:00
Bernie Solomon 69784abfe0 2004-07-07 Bernie Solomon <[email protected]>
* Test.Sources: make file names match actual files

svn path=/trunk/mcs/; revision=33553
2004-09-08 03:37:29 +00:00
Duncan Mak 3114b5f1ac * runtime/Makefile.am (monobins_DATA): Add the various mdb files
for each of the executables we ship.

* runtime/net_1_1/Makefile.am
* runtime/net_2_0/Makefile.am
(mdb_files, EXTRA_DIST): Add $(mdb_files).

svn path=/trunk/mono/; revision=33551
2004-09-07 22:08:33 +00:00
Ben Maurer 19c773bf3e 2004-08-29 Ben Maurer <[email protected]>
* Activator.cs (CreateInstance): If an argument is null,
       do not call GetType () on it. #63852

svn path=/branches/mono-1-0/mcs/; revision=33550
2004-09-07 21:54:51 +00:00
Ben Maurer c80a2bf4fd 2004-09-07 Ben Maurer <[email protected]>
* Activator.cs: Make sure not to call .GetType on a
	null argument. fixes 63852

svn path=/trunk/mcs/; revision=33549
2004-09-07 21:49:14 +00:00
Ben Maurer 5227528d51 2004-09-07 Ben Maurer <[email protected]>
* liveness.c: reset spill costs on each scan: bug 62107

svn path=/trunk/mono/; revision=33548
2004-09-07 21:41:13 +00:00
Ben Maurer 47293a3ccc 2004-09-07 Ben Maurer <[email protected]>
* liveness.c: reset spill costs on each scan

svn path=/trunk/mono/; revision=33547
2004-09-07 21:32:26 +00:00
Bernie Solomon eb636855e6 2004-09-07 Bernie Solomon <[email protected]>
* mono-sha1.c: Remove uint32 and int32 types completely

svn path=/trunk/mono/; revision=33546
2004-09-07 21:28:20 +00:00
Zoltan Varga 71d75502b2 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33543
2004-09-07 21:06:24 +00:00
Zoltan Varga 648613df6f 2004-09-08 Zoltan Varga <[email protected]>
* image.c (mono_image_close): Applied patch from
	[email protected] (Vasantha selvi). Fix crash when an
	assembly is loaded multiple times from data.

	* image.c (mono_image_open): Fix warning.

svn path=/trunk/mono/; revision=33541
2004-09-07 21:01:29 +00:00
Francisco Figueiredo Jr. aee05c4afb 2004-09-07 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlException.cs:  Added support for deserialization of NpgsqlException.

	* NpgsqlState.cs: Added missing handling of NoData message.

svn path=/trunk/mcs/; revision=33539
2004-09-07 20:45:04 +00:00
Francisco Figueiredo Jr. ee12cadf33 2004-09-07 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlState.cs: Added missing handling of NoData message.

svn path=/trunk/mcs/; revision=33538
2004-09-07 20:43:02 +00:00
Francisco Figueiredo Jr. 7302dde121 2004-09-07 Francisco Figueiredo Jr. <[email protected]>
* NpgsqlException.cs:  Added support for deserialization of NpgsqlException.

svn path=/trunk/mcs/; revision=33537
2004-09-07 20:41:23 +00:00
Bernie Solomon 7115b59594 2004-09-07 Bernie Solomon <[email protected]>
* mb-parser.jay:
	* mb-tokenizer.cs: first cut at implementing
	op assign

svn path=/trunk/mcs/; revision=33536
2004-09-07 20:29:44 +00:00
Bernie Solomon ae2afba12c 2004-07-07 Bernie Solomon <[email protected]>
* OptionalA.vb: new test for optional args + overloads

svn path=/trunk/mcs/; revision=33534
2004-09-07 20:06:52 +00:00
Jackson Harper 28670202ba Do not call XDestroyWindow, X has already done this for us and the handle is no longer valid.
svn path=/trunk/mcs/; revision=33533
2004-09-07 20:01:53 +00:00
Jackson Harper 490ffc887f First steps towards a new X event loop that manages to not crash. TODO: Add poll and cleanup timers
svn path=/trunk/mcs/; revision=33532
2004-09-07 19:59:41 +00:00
Miguel de Icaza 1d7e47748c 2004-09-07 Miguel de Icaza <[email protected]>
* expression.cs: Apply patch from Ben: Remove dead code from
	ArrayCreation, and remove the TurnintoConstant call in const.cs,
	as that code just threw an exception anwyays.

	* const.cs: Remove the call to the turnintoconstant, for details
	see bug: #63144

svn path=/trunk/mcs/; revision=33531
2004-09-07 18:33:17 +00:00
Bernie Solomon ddd00cdb95 2004-09-07 Bernie Solomon <[email protected]>
* ecore.cs:
	* enum.cs:
	* expression.cs:
	* mb-parser.jay:
	* support.cs: work on improving overload resolution

svn path=/trunk/mcs/; revision=33530
2004-09-07 18:04:33 +00:00
Miguel de Icaza aa338753db 2004-09-07 Miguel de Icaza <[email protected]>
* literal.cs: The type of the null-literal is the null type;  So
	we use a placeholder type (literal.cs:System.Null, defined here)
	for it.

	* expression.cs (Conditional.DoResolve): Remove some old code that
	is no longer needed, conversions have been fixed.

svn path=/trunk/mcs/; revision=33529
2004-09-07 17:23:56 +00:00
Jordi Mas i Hernandez 8006bc98d2 GroupBox control
svn path=/trunk/mcs/; revision=33528
2004-09-07 17:12:26 +00:00
Bernie Solomon 704ad2cf91 2004-09-07 Bernie Solomon <[email protected]>
* exceptions-sparc.c (mono_arch_find_jit_info): remove
	unnecessary line that doesn't compile

svn path=/trunk/mono/; revision=33526
2004-09-07 16:29:48 +00:00
Miguel de Icaza a8069eda94 2004-09-07 Miguel de Icaza <[email protected]>
* expression.cs: Return false if we fail to resolve the inner
	expression.

svn path=/branches/mono-1-0/mcs/; revision=33525
2004-09-07 15:31:28 +00:00
Miguel de Icaza 01e7842e35 2004-09-07 Miguel de Icaza <[email protected]>
* expression.cs: Return false if we fail to resolve the inner

svn path=/trunk/mcs/; revision=33524
2004-09-07 15:28:45 +00:00
Miguel de Icaza 7251810eee Add new test
svn path=/trunk/mcs/; revision=33523
2004-09-07 15:27:41 +00:00
Atsushi Eno 5b2db7e8c4 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlFactory.cs : removed (obsolete).

svn path=/trunk/mcs/; revision=33522
2004-09-07 14:56:46 +00:00
Martin Baulig 88e710013c 2004-09-07 Martin Baulig <[email protected]>
* mcs-expect-no-error: I'm slowly getting annoyed.  Is it really
	so hard to add new tests here ?

svn path=/trunk/mcs/; revision=33521
2004-09-07 14:49:22 +00:00
Atsushi Eno 1b13b41dee 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
	  namespace when scope is .ExcludeXml or .All.
	* XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
	  Fixed ReadTypedValue() to call ReadValueAs().

svn path=/trunk/mcs/; revision=33520
2004-09-07 14:03:53 +00:00
Atsushi Eno 1fc0d15f0a 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlReaderCommonTests.cs : Added tests for ReadAsObject().

svn path=/trunk/mcs/; revision=33519
2004-09-07 14:03:17 +00:00
Duncan Mak e297e11dbd 2004-09-07 Duncan Mak <[email protected]>
* typeof-ptr.cs: Add unsafe sections to the code that's using
	pointers directly. This was breaking the test stage on the build
	boxes.

svn path=/branches/mono-1-0/mono/; revision=33518
2004-09-07 13:45:52 +00:00
Duncan Mak 9a401f3c3f Forgot about this bit too
svn path=/trunk/mono/; revision=33517
2004-09-07 13:39:23 +00:00
Duncan Mak d94ae47aa0 Add an unsafe section to the code that's using direct pointers. This
was breaking the test stage on the build boxes.

svn path=/trunk/mono/; revision=33516
2004-09-07 13:09:55 +00:00
Atsushi Eno b7b3f27e64 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
	  inconsistent namespace pairs.

svn path=/trunk/mcs/; revision=33515
2004-09-07 12:46:34 +00:00
Atsushi Eno c24f05e78a 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlNamespaceManagerTests.cs : Added test for duplicate addition,
	  atomization, complex RemoveNamespace() and GetNamespacesInScope().

svn path=/trunk/mcs/; revision=33514
2004-09-07 12:45:56 +00:00
Sebastien Pouliot 1af532c0dd 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Merge changes from HEAD.

svn path=/branches/mono-1-0/mcs/; revision=33512
2004-09-07 12:29:20 +00:00
Zoltan Varga ee4831b594 2004-09-07 Zoltan Varga <[email protected]>
* reflection.h reflection.c icall.c: Only call TypeResolve handlers
	once. Fixes #58334.

svn path=/trunk/mono/; revision=33511
2004-09-07 12:27:17 +00:00
Sebastien Pouliot 3da5e0153a 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Chain.cs: Merge bug fixes from HEAD.

svn path=/branches/mono-1-0/mcs/; revision=33510
2004-09-07 12:25:36 +00:00
Sebastien Pouliot 52ef8cd96c 2004-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeBase.cs: Merge optimizations from HEAD.
	* AuthenticodeDeformatter.cs: Merge optimizations from HEAD.

svn path=/branches/mono-1-0/mcs/; revision=33509
2004-09-07 12:23:59 +00:00
Sebastien Pouliot b00cb32b2d 2004-09-07 Sebastien Pouliot <[email protected]>
* certmgr.cs: Merge enhancements from HEAD. Now allows users to
	manipulate the machine's cert store (not just the user's store).

svn path=/branches/mono-1-0/mcs/; revision=33508
2004-09-07 12:21:14 +00:00
Sebastien Pouliot 0f56a667b8 2004-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeBase.cs: Merge optimizations from HEAD.
	* AuthenticodeDeformatter.cs: Merge optimizations from HEAD.
	* AuthenticodeFormatter.cs: Merge optimizations from HEAD.

svn path=/branches/mono-1-0/mcs/; revision=33507
2004-09-07 12:18:18 +00:00
Sebastien Pouliot f7ffe593d2 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Chain.cs: Merge bug fixes from HEAD.
	* X509Store.cs: Merge enhancements from HEAD.

svn path=/branches/mono-1-0/mcs/; revision=33506
2004-09-07 12:16:28 +00:00
Sebastien Pouliot 5023609058 2004-09-07 Sebastien Pouliot <[email protected]>
* Mono.Security_test.dll.sources: Merge new unit tests from HEAD.

svn path=/branches/mono-1-0/mcs/; revision=33505
2004-09-07 12:14:36 +00:00
Sebastien Pouliot 620e62f37e 2004-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeDeformatterTest.cs: Merge new unit tests from HEAD.

svn path=/branches/mono-1-0/mcs/; revision=33504
2004-09-07 12:12:41 +00:00
nobody dac1a705ea This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=33503
2004-09-07 12:12:41 +00:00
Dick Porter 7a2d37d263 2004-09-07 Dick Porter <[email protected]>
* Process.cs: Throw documented exceptions when getting stdin,
	stdout or stderr and they haven't been redirected.  Check that
	CreatePipe didn't fail, throw exceptions if it did.  Close
	redirected streams when the process is disposed, rather than rely
	on the GC disposing them later.  Makes timeline much happier,
	because it could run out of file descriptors between GC
	collections.

svn path=/branches/mono-1-0/mcs/; revision=33502
2004-09-07 12:06:46 +00:00
Dick Porter 0cae210e57 2004-09-07 Dick Porter <[email protected]>
* Process.cs: Throw documented exceptions when getting stdin,
	stdout or stderr and they haven't been redirected.  Check that
	CreatePipe didn't fail, throw exceptions if it did.  Close
	redirected streams when the process is disposed, rather than rely
	on the GC disposing them later.  Makes timeline much happier,
	because it could run out of file descriptors between GC
	collections.

svn path=/trunk/mcs/; revision=33501
2004-09-07 12:06:43 +00:00
Sebastien Pouliot ec42f2d2ec 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: CreateFromSignedFile now throw the COMException
	if the specified file isn't signed (before this was done by
	AuthenticodeDeformatter). More details are available on failure.

svn path=/trunk/mcs/; revision=33500
2004-09-07 12:02:01 +00:00
Zoltan Varga 9984dde0d9 2004-09-07 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_create_runtime_class): Initialize
	klass->nested_classes. Fixes #61224.

svn path=/branches/mono-1-0/mono/; revision=33499
2004-09-07 12:00:24 +00:00
Sebastien Pouliot cbce7eda78 2004-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeBase.cs: Merge from Mono.Security.dll. This version is
	less memory consuming (it works by 4kb blocks instead of loading the
	entire assembly).
	* AuthenticodeDeformatter.cs: Merge from Mono.Security.dll. Hash will
	only be created if the assembly is signed. Benefits from Authenticode
	Base changes.

svn path=/trunk/mcs/; revision=33498
2004-09-07 11:59:36 +00:00
Zoltan Varga de67f8ea08 2004-09-07 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_create_runtime_class): Initialize
	klass->nested_classes. Fixes #61224.

svn path=/trunk/mono/; revision=33497
2004-09-07 11:57:27 +00:00
Sebastien Pouliot cb848c9beb 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Chain.cs: Merge from Mono.Security. Fix two bugs (chain
	construction from collection) and Reset-ing empty chain.

svn path=/trunk/mcs/; revision=33496
2004-09-07 11:51:00 +00:00
Sebastien Pouliot e376051abe 2004-09-07 Sebastien Pouliot <[email protected]>
* Mono.Security_test.dll.sources: Added unit tests for Authenticode
	Deformatter.

svn path=/trunk/mcs/; revision=33495
2004-09-07 11:46:38 +00:00
Sebastien Pouliot 099651e846 2005-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeDeformatterTest.cs: New. Unit tests to validate a valid
	authenticode-signed assembly (included in test file) and an invalid
	(non signed) assembly (the unit test assembly).

svn path=/trunk/mcs/; revision=33494
2004-09-07 11:44:47 +00:00
Sebastien Pouliot 2cccd84c63 2004-09-07 Sebastien Pouliot <[email protected]>
* X509Chain.cs: Fixed a bug when constructing a certificate chain from
	a collection (endless loop). Fixed bug when Reset-ing an empty chain.

svn path=/trunk/mcs/; revision=33493
2004-09-07 11:43:47 +00:00
Sebastien Pouliot fb034cbc94 2004-09-07 Sebastien Pouliot <[email protected]>
* AuthenticodeBase.cs: Reworked not to load the entire file into
	memory before hashing it (now in 4kb blocks). Splitted code in many
	methods to allow "lighter" use by the deformatter.
	* AuthenticodeDeformatter.cs: Less memory hungry so it can be used to
	create Publisher evidences. No hash instance are created if the file
	isn't signed.
	* AuthenticodeFormatter.cs: Adapted to API changes.

svn path=/trunk/mcs/; revision=33492
2004-09-07 11:41:22 +00:00
Paolo Molaro 9d0bce5b2c Tue Sep 7 14:35:26 CEST 2004 Paolo Molaro <[email protected]>
* threads.c: sched_yield() on exit, to allow threads to quit.

svn path=/trunk/mono/; revision=33490
2004-09-07 11:27:35 +00:00
Sanja Gupta 84880d4c9e ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new class in System.Web.UI.WebControls namespace.

svn path=/trunk/mcs/; revision=33489
2004-09-07 11:16:58 +00:00
Sanja Gupta 17f8e50f67 ChangeLog: Updated ChangeLog.
Localize.cs: Added new class.

svn path=/trunk/mcs/; revision=33487
2004-09-07 11:13:08 +00:00
Zoltan Varga d2db8246a3 2004-09-07 Zoltan Varga <[email protected]>
* mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
	trampolines, make them call an error function so people can fix their
	code.

svn path=/trunk/mono/; revision=33486
2004-09-07 11:10:30 +00:00
Zoltan Varga 69cc6c891f 2004-09-07 Zoltan Varga <[email protected]>
* object.c (mono_unhandled_exception): Remove leftover debug code.

svn path=/trunk/mono/; revision=33485
2004-09-07 10:36:06 +00:00
Raja R Harinath 779ec570c2 * cs0571-3.cs, CS0571-3-lib.cs: New tests for #59980.
* Makefile: Update list of dlls.

svn path=/trunk/mcs/; revision=33484
2004-09-07 09:51:02 +00:00
Jordi Mas i Hernandez e4da82786d LinkLabel fixes, methods, multiple links
svn path=/trunk/mcs/; revision=33483
2004-09-07 09:40:15 +00:00
Raja R Harinath 6d2121de55 Fix execution too.
svn path=/trunk/mcs/; revision=33482
2004-09-07 08:49:34 +00:00
Raja R Harinath f0d8f97a97 New test.
svn path=/trunk/mcs/; revision=33481
2004-09-07 08:23:51 +00:00
Raja R Harinath b3d9753954 Fix test-290.cs.
* cs-parser.jay (delegate_declaration): Record a delegate
declaration as a type declaration.
Reported by Jo Vermeulen <[email protected]>.

svn path=/trunk/mcs/; revision=33480
2004-09-07 08:23:19 +00:00
Atsushi Eno e8a49299fd 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlTextReader.cs :
	  Added NET_2_0 CheckCharacters support.

svn path=/trunk/mcs/; revision=33475
2004-09-07 06:37:45 +00:00
Atsushi Eno 63099a1f12 2004-09-07 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XmlReaderSettingsTests.cs.
	  XmlReaderCommonTests.cs and XmlSchemaSetTests.cs were missing.

svn path=/trunk/mcs/; revision=33474
2004-09-07 06:37:05 +00:00
Atsushi Eno 4513f3ed86 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlReaderSettingsTests.cs : added, including XmlReader.Create() tests
	* XmlTextReaderTests.cs : added normalization and Setting sests.

svn path=/trunk/mcs/; revision=33473
2004-09-07 06:34:56 +00:00
Atsushi Eno e38f6d2220 2004-09-07 Atsushi Enomoto <[email protected]>
* IXmlType.cs : deprecated in .NET 2.0.

svn path=/trunk/mcs/; revision=33471
2004-09-07 06:29:02 +00:00
Jambunathan K 73738f8e00 Fixed formatting issues. For the sake of consistency
in style, stripped out all the comment strings that were documenting
the APIs.

svn path=/trunk/mcs/; revision=33470
2004-09-07 06:24:59 +00:00
Atsushi Eno ed1bdf06e6 2004-09-07 Atsushi Enomoto <[email protected]>
* appdomain.c, threads.c : don't use GC_CreateThread when with-gc=none

svn path=/trunk/mono/; revision=33462
2004-09-07 03:15:03 +00:00
Martin Baulig 2c08db95e4 Get the error tests working again.
svn path=/trunk/mcs/; revision=33458
2004-09-06 23:11:31 +00:00
Zoltan Varga dff2146971 2004-09-07 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_array): Really null terminate string arrays.

svn path=/trunk/mono/; revision=33453
2004-09-06 21:32:29 +00:00
Zoltan Varga 503e0ce2a6 2004-09-07 Zoltan Varga <[email protected]>
* libtest.c (mono_test_marshal_string_array): Add test for null
	terminating string arrays.

svn path=/trunk/mono/; revision=33452
2004-09-06 21:31:11 +00:00
Miguel de Icaza 7255e0c21d 2004-09-06 Miguel de Icaza <[email protected]>
* parameter.cs: Do not crash if the type can not be resolved.

svn path=/trunk/mcs/; revision=33451
2004-09-06 21:24:40 +00:00
Zoltan Varga a2bea1c09c 2004-09-07 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_string): Fix freeing of unicode strings.

svn path=/trunk/mono/; revision=33450
2004-09-06 21:08:47 +00:00
Zoltan Varga dcecb3ce3d 2004-09-06 Zoltan Varga <[email protected]>
* main.c: Fix build && warnings.

svn path=/trunk/mono/; revision=33449
2004-09-06 20:22:02 +00:00
Miguel de Icaza ab2a586fa1 Add new test
svn path=/trunk/mcs/; revision=33448
2004-09-06 20:21:21 +00:00
Miguel de Icaza 8a91853234 2004-09-06 Miguel de Icaza <[email protected]>
* expression.cs: Report errors with unsafe pointers, fixes #64896

svn path=/branches/mono-1-0/mcs/; revision=33447
2004-09-06 20:20:41 +00:00
Miguel de Icaza 54c1054514 2004-09-06 Miguel de Icaza <[email protected]>
* expression.cs: Report errors with unsafe pointers, fixes #64896

svn path=/trunk/mcs/; revision=33446
2004-09-06 20:19:54 +00:00
Ben Maurer d44d3224bc 2004-09-06 Ben Maurer <[email protected]>
* unsafe-10.cs: new test

svn path=/branches/mono-1-0/mcs/; revision=33445
2004-09-06 19:57:31 +00:00
Ben Maurer eab0fc9f76 2004-09-06 Ben Maurer <[email protected]>
* expression.cs: Pointer arith always needs to do a conv.i
	if the operand is a long. fix 65320

svn path=/branches/mono-1-0/mcs/; revision=33444
2004-09-06 19:56:49 +00:00
Zoltan Varga 5a41ca2bb9 2004-09-06 Zoltan Varga <[email protected]>
* libtest.c: Mark delegates with __stdcall on windows.

svn path=/trunk/mono/; revision=33443
2004-09-06 19:56:41 +00:00
Ben Maurer ef2fad35d7 2004-09-06 Ben Maurer <[email protected]>
* expression.cs: Pointer arith always needs to do a conv.i
	if the operand is a long. fix 65320

svn path=/trunk/mcs/; revision=33442
2004-09-06 19:55:37 +00:00
Ben Maurer a8ff721d69 2004-09-06 Ben Maurer <[email protected]>
* unsafe-10.cs: new test

svn path=/trunk/mcs/; revision=33441
2004-09-06 19:55:05 +00:00
Zoltan Varga a4a2953edf 2004-09-06 Zoltan Varga <[email protected]>
* marshal.c (emit_marshal_array): Null terminate string arrays.

	* marshal.c (raise_auto_layout_exception): Fix warning.

svn path=/trunk/mono/; revision=33440
2004-09-06 19:40:02 +00:00
Martin Baulig 0ee7506e6e 2004-09-06 Martin Baulig <[email protected]>
* generic.cs (ConstructedType.CheckConstraints): Allow builtin
	types for the constructor constraint.

svn path=/trunk/mcs/; revision=33439
2004-09-06 19:01:38 +00:00
Martin Baulig 4a19caa4a3 2004-09-06 Martin Baulig <[email protected]>
* Makefile: Enable gen-65.cs (bug #58306).

svn path=/trunk/mcs/; revision=33438
2004-09-06 18:52:20 +00:00
Martin Baulig aa24b0630c Why are we getting more stuff in here each week ?
svn path=/trunk/mcs/; revision=33436
2004-09-06 17:57:31 +00:00
Atsushi Eno 33c1b6ca8d 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlNode.cs : GetEnumerator() does not have to create ChildNodes
	  every time. Removed unused StringBuilder field.

svn path=/trunk/mcs/; revision=33435
2004-09-06 17:28:58 +00:00
Atsushi Eno 12d11e7889 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlElementTests.cs : added another set_InnerXml test.
	* XmlNodeTests.cs : added BaseURI test.
	* XmlTextReaderTests.cs : added tests for Normalization, EOF,
	  LineNumber, LinePosition (all reported ones).
	* XsdValidatingReaderTests.cs : more descriptions.

svn path=/trunk/mcs/; revision=33434
2004-09-06 17:25:52 +00:00
Martin Baulig d0db170a1d 2004-09-06 Martin Baulig <[email protected]>
* mini.c (mono_method_to_ir): When initializing locals, handle a
	generic instances like a valuetype if it's a valuetype and like a
	class if it's a class.

svn path=/trunk/mono/; revision=33433
2004-09-06 17:15:40 +00:00
Martin Baulig 4f4d9f3885 2004-09-06 Martin Baulig <[email protected]>
* Makefile: Enable gen-65.cs (bug #58306).

svn path=/trunk/mcs/; revision=33432
2004-09-06 17:14:30 +00:00
Miguel de Icaza 639a8d383c Synchronized with the web/ version
svn path=/trunk/mono/; revision=33431
2004-09-06 17:13:25 +00:00
Atsushi Eno 79f7c6804b 2004-09-06 Atsushi Enomoto <[email protected]>
* added simple.xml (to be used for some tests).

svn path=/trunk/mcs/; revision=33430
2004-09-06 17:12:35 +00:00
Zoltan Varga 17fcabfef8 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33429
2004-09-06 17:09:09 +00:00
Miguel de Icaza fea5be50f6 Doc update
svn path=/trunk/mono/; revision=33428
2004-09-06 17:08:47 +00:00
Zoltan Varga 51dcfd3d5e 2004-09-06 Zoltan Varga <[email protected]>
* reflection.c (mono_param_get_objects): Initialize the default value
	with DBNull.Value, not null. Fixes #62123.

svn path=/trunk/mono/; revision=33427
2004-09-06 17:05:13 +00:00
Miguel de Icaza 643ff4c10f 2004-09-01 Miguel de Icaza <[email protected]>
* marshal.c (mono_marshal_get_managed_wrapper): Remove FIXME and
	throw an exception with a cute explanation.

svn path=/branches/mono-1-0/mono/; revision=33426
2004-09-06 16:58:02 +00:00
Miguel de Icaza cf936d62b4 2004-09-01 Miguel de Icaza <[email protected]>
* marshal.c (mono_marshal_get_managed_wrapper): Remove FIXME and
	throw an exception with a cute explanation.

svn path=/trunk/mono/; revision=33425
2004-09-06 16:57:42 +00:00
Ben Maurer bdc3b8fbcd Decision to follow knuth over ms results
svn path=/branches/mono-1-0/mcs/; revision=33424
2004-09-06 16:55:39 +00:00
Atsushi Eno 103be5da58 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added ProhibitDtd().
	* XmlWriterTests.cs : added WriteNodeError().

svn path=/trunk/mcs/; revision=33423
2004-09-06 16:52:07 +00:00
Ben Maurer b409d00f1c Decision to follow knuth over ms results
svn path=/trunk/mcs/; revision=33422
2004-09-06 16:51:24 +00:00
Atsushi Eno fed206909e 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
	  to read more (and might result in an error).

svn path=/branches/mono-1-0/mcs/; revision=33421
2004-09-06 16:47:49 +00:00
Atsushi Eno c0623bd2ef 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
	  to read more (and might result in an error).

svn path=/trunk/mcs/; revision=33420
2004-09-06 16:47:26 +00:00
Marek Safar 5d46b79756 2004-09-06 Marek Safar <[email protected]>
* CodeCompileUnit.cs,
	* CodeMemberMethod.cs,
	* CodeMethodReferenceExpression.cs,
	* CodeStatement.cs,
	* CodeTypeDeclaration.cs,
	* CodeTypeMember.cs,
	* CodeTypeReference.cs : Implemented NET_2_0.

	* CodeChecksumPragma.cs,
	* CodeDirective.cs,
	* CodeDirectiveCollection.cs,
	* CodeRegionDirective.cs,
	* CodeRegionMode.cs,
	* CodeTypeParameter.cs,
	* CodeTypeParameterCollection.cs,
	* CodeTypeReferenceOptions.cs : New NET_2_0 files

svn path=/trunk/mcs/; revision=33419
2004-09-06 16:32:53 +00:00
Zoltan Varga 3755430483 2004-09-06 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
	stack. Fixes #64674.

	* exceptions.cs: Add test for unwinding of call arguments.

svn path=/trunk/mono/; revision=33418
2004-09-06 15:58:16 +00:00
Ben Maurer 7e891a4721 2004-09-06 Dick Porter <[email protected]>
* process.c (ves_icall_System_Diagnostics_Process_Start_internal):

svn path=/trunk/mono/; revision=33417
2004-09-06 15:10:21 +00:00
Ben Maurer 3fda367bed 2004-09-06 Ben Maurer <[email protected]>
* Array.cs (Clear): make this an icall.

svn path=/trunk/mcs/; revision=33416
2004-09-06 15:09:12 +00:00
Ben Maurer d59fd6700d fix warning
svn path=/trunk/mono/; revision=33415
2004-09-06 15:07:37 +00:00
Atsushi Eno f5cb620bcf 2004-09-06 Atsushi Enomoto <[email protected]>
* XPathEditableNavigator.cs :
	  AppendChild(xmlReader) ignored nodes after than first one, and
	  resulted in infinite loop.
	  Added get_OuterXml overrides. set_OuterXml should not move to
	  parent before deleting current.

svn path=/trunk/mcs/; revision=33414
2004-09-06 14:51:43 +00:00
Dick Porter 8b953832a6 Merge from HEAD of the handles-as-file-descriptors work.
2004-08-19  Dick Porter  <[email protected]>

	* handles.c (_wapi_handle_count_signalled_handles): Fix thinko
	introduced with the fd offset stuff: unlock handles properly when
	backing off.  Fixes the monologue hang at exit.

2004-08-18  Dick Porter  <[email protected]>

	* sockets.c:
	* io.c: Check that new fds fit in the table, return error if not

	* daemon.c (_wapi_daemon_main):
	* handles.c (shared_init): Have all processes agree on a size for
	the fd table.

2004-08-17  Dick Porter  <[email protected]>

	* daemon.c (process_new):
	* handles.c (_wapi_handle_new_internal): Cope when the space
	reserved for file descriptors is larger than the shared segment
	size.  Fixes the crash reported when running mono under gdb on
	macosx.

2004-08-16  Dick Porter  <[email protected]>

	* sockets.c:
	* io.c:
	* handles-private.h (_wapi_handle_fd_offset_to_handle): Improve
	error checking with passed-in file descriptors.

2004-08-11  Dick Porter  <[email protected]>

	* sockets.c:
	* io.c: Returned handle values are the file descriptor the handle
	encapsulates

	* handles.c:
	* handles-private.h:
	* daemon.c: Reserve the range of handles that can have the same
	values as file descriptors.  These won't be used, but the values
	will be used as file, console, pipe or socket handles.  The fd to
	handle mapping is done internally and is invisible to users.
	Fixes bug 61828.

	* wapi-private.h (_WAPI_HANDLE_VERSION): Increment, because we now
	reserve a chunk of handle space.

svn path=/branches/mono-1-0/mono/; revision=33409
2004-09-06 14:35:12 +00:00
Atsushi Eno 9c3e37350b 2004-09-06 Atsushi Enomoto <[email protected]>
* XPathDocument2.cs, XPathDocument2Editable.cs:
	  Redesigned API. Child node list should not be required (it also
	  harms performance). Reduced extraneous methods for XPathNavigator
	  / XPathEditableNavigator implementation support.
	* XPathEditableDocument.cs : event registration was missing (due to
	  XPathDocument changes, it might not be required anymore though).
	* XPathNavigatorReader.cs :
	  Namespace nodes were not handled correctly.
	  EOF handling was incorrect.
	  Reduced extraneous clone from MoveTo/GetAttribute(int) and

svn path=/trunk/mcs/; revision=33408
2004-09-06 14:28:41 +00:00
Dick Porter 5359b46a8d Bug fixes resulting from stress testing the process forking code with
Timeline.

2004-09-06  Dick Porter  <[email protected]>

	* handles.c (_wapi_handle_unref): Reset the private record's type
	(_wapi_handle_process_fork): Fix long-standing bug in checking
	handle return values.  Also do the required bookkeeping with the
	new process's handles.

	* daemon.c: When creating a new process's handles, check whether
	the shared space needs to be increased

2004-09-06  Dick Porter  <[email protected]>

	* process.c (ves_icall_System_Diagnostics_Process_Start_internal):
	Close the new process's thread handle, as we don't use it.  The
	handle stays around forever otherwise.

svn path=/branches/mono-1-0/mono/; revision=33407
2004-09-06 14:16:05 +00:00
Dick Porter 57e8bec3ed Bug fixes resulting from stress testing the process forking code with
Timeline.

2004-09-06  Dick Porter  <[email protected]>

	* handles.c (_wapi_handle_unref): Reset the private record's type
	(CloseHandle): Check for a fd mapping failure, and return FALSE.
	(_wapi_handle_process_fork): Fix long-standing bug in checking
	handle return values.  Also do the required bookkeeping with the
	new process's handles.

	* daemon.c: When creating a new process's handles, check whether
	the shared space needs to be increased

2004-09-06  Dick Porter  <[email protected]>

	* process.c (ves_icall_System_Diagnostics_Process_Start_internal):
	Close the new process's thread handle, as we don't use it.  The
	handle stays around forever otherwise.

svn path=/trunk/mono/; revision=33406
2004-09-06 14:16:02 +00:00
Dick Porter 6b000a7f76 2004-09-06 Dick Porter <[email protected]>
* Process.cs: Make Dispose() actually dispose things.

svn path=/branches/mono-1-0/mcs/; revision=33405
2004-09-06 14:11:55 +00:00
Dick Porter 9e0efb6ec3 2004-09-06 Dick Porter <[email protected]>
* Process.cs: Make Dispose() actually dispose things.

svn path=/trunk/mcs/; revision=33404
2004-09-06 14:11:55 +00:00
Dick Porter 0b48ea759a 2004-09-06 Dick Porter <[email protected]>
* Process.cs: Make Dispose() actually dispose things.

svn path=/branches/mono-1-0/mcs/; revision=33404
2004-09-06 14:11:55 +00:00
Dick Porter f9e792081b 2004-09-06 Dick Porter <[email protected]>
* Process.cs: Make Dispose() actually dispose things.

svn path=/trunk/mcs/; revision=33403
2004-09-06 14:11:55 +00:00
Jambunathan K 78a9f7458c * main.c (dump_cattrs_list): Newly carved out of dump_cattrs.
Renamed cattrs_for_method() to more meaningful
dump_cattrs_for_method_params()

(dump_cattrs_for_method_params): Fixed so that ".param[]" gets
dumped only when necessary. i.e., when a method parameter has
either a default value and/or when it has a custom attribute.

svn path=/trunk/mono/; revision=33402
2004-09-06 14:07:39 +00:00
Ben Maurer eab4ef7aa1 2004-09-06 Ben Maurer <[email protected]>
* MemoryStream.cs (SetLength): Use Array.Clear here

svn path=/trunk/mcs/; revision=33401
2004-09-06 14:03:41 +00:00
Ben Maurer 173a287741 fix this
svn path=/trunk/mcs/; revision=33400
2004-09-06 14:00:10 +00:00
Ben Maurer 3210ad6768 2004-09-06 Ben Maurer <[email protected]>
* HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
	(Clear): Don't recreate the MemoryStream and StreamWriter

svn path=/trunk/mcs/; revision=33399
2004-09-06 13:53:03 +00:00
Jambunathan K 0f690acb57 * DateAndTime.cs (DateTime.Today): Changed signature of stime().
* Strings.cs:
* Collection.cs:

Replaced System.ComponentModel.EditorBrowsableAttribute and
Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute
with their short and sweet equivalents.

Replaced System.ComponentModel.DefaultValueAttribute with the
newly introduced Microsoft.VisualBasic.CompilerServices
.__DefaultArgumentValueAttribute.

svn path=/trunk/mcs/; revision=33398
2004-09-06 13:47:44 +00:00
Paolo Molaro 60a181b4e9 Mon Sep 6 05:50:02 PDT 2004 Paolo Molaro <[email protected]>
* mini-*.c, mini-ops.h, inssel-long32.brg: introduced
	OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
	set the carry/borrow flag). The sparc and s390 implementations
	can now use optimized versions (and simplify the code). ppc bugfixes.

svn path=/trunk/mono/; revision=33396
2004-09-06 12:59:08 +00:00
Jordi Mas i Hernandez 374436ee45 Caches ClientRectangle rectangle value
svn path=/trunk/mcs/; revision=33395
2004-09-06 12:55:07 +00:00
Dick Porter b9b6035750 Compile fix
svn path=/trunk/mono/; revision=33394
2004-09-06 12:53:52 +00:00
Zoltan Varga 585ef05e10 2004-09-06 Zoltan Varga <[email protected]>
* object.c (arith_overflow): Fix warning.

svn path=/trunk/mono/; revision=33393
2004-09-06 12:45:59 +00:00
Zoltan Varga 4c456b93fa 2004-09-06 Zoltan Varga <[email protected]>
* reflection.c (mono_image_get_methodref_token): Do not emit unmanaged
	calling conventions in method refs. Fixes #65352.

	* reflection.c: Fix warnings.

svn path=/trunk/mono/; revision=33392
2004-09-06 12:44:03 +00:00
Ben Maurer 6c4f549708 2004-09-06 Ben Maurer <[email protected]>
* object.c: When allocating an array, we have to throw
	an overflow exception if any of the lengths are < 0.

svn path=/trunk/mono/; revision=33391
2004-09-06 12:33:38 +00:00
Zoltan Varga 2b7017bebf 2004-09-06 Zoltan Varga <[email protected]>
* get.c: Fix printing of unmanaged calling conventions.
	(get_constant): Fix warning.

svn path=/trunk/mono/; revision=33390
2004-09-06 12:09:05 +00:00
Jambunathan K 8be9944b1b * Microsoft.VisualBasic.dll.sources: Added DefaultArgumentValueAttribute.cs
* Makefile: Removed '/unsafe' switch to the C# compiler

* DateAndTime.cs (DateTime.Today): Changed signature of stime().

* VBMath.cs:
* Interaction.cs:
* Information.cs:
* Globals.cs:
* Financial.cs:
* FileSystem.cs:
* ErrObject.cs:
* Conversion.cs:
* Constants.cs:

* DefaultArgumentValueAttribute.cs: Added a new internal attribute
  Microsoft.VisualBasic.CompilerServices.__DefaultArgumentValueAttribute
  to workaround the limitations in C# syntax. Refer the comments
  in the file for more information about this attribute.

* VBBinder.cs:
* StringType.cs:
* SingleType.cs:
* ShortType.cs:
* LongType.cs:
* LateBinding.cs:
* IntegerType.cs:
* FlowControl.cs:
* ExceptionUtils.cs:
* DoubleType.cs:
* DecimalType.cs:
* DateType.cs:
* CharType.cs:
* CharArrayType.cs:
* ByteType.cs:
* BooleanType.cs:

svn path=/trunk/mcs/; revision=33389
2004-09-06 11:23:11 +00:00
Zoltan Varga 4f9e9eccdd 2004-09-06 Zoltan Varga <[email protected]>
* exceptions-ppc.c (mono_arch_find_jit_info): Fix memory leak.

svn path=/trunk/mono/; revision=33388
2004-09-06 11:18:09 +00:00
Marek Safar 4cc6f3fb06 2004-09-06 Marek Safar <[email protected]>
* mono-api-diff.cs ,
	* mono-api-info.cs : Added static class detection.

svn path=/trunk/mcs/; revision=33387
2004-09-06 11:13:00 +00:00
Zoltan Varga bcba576b42 2004-09-06 Zoltan Varga <[email protected]>
* marshal.h marshal.c: Free unmanaged memory allocated by managed code
	properly. Also move implementation of string array marshalling to
	managed code. Fixes #42316.

svn path=/trunk/mono/; revision=33386
2004-09-06 10:50:58 +00:00
Carlos Alberto Cortez f9e2cad106 Small style improvement for System.Collections.Generic.Collection
svn path=/trunk/mcs/; revision=33385
2004-09-06 10:35:19 +00:00
Gonzalo Paniagua Javier c739fab91f 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs:
	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.UI/SimpleWebHandlerParser.cs: correctly cache Type instead
	of the assembly for ashx/asmx. Otherwise we need to open the file and
	check for the class name in there. Thanks to Ben for pointing this out.

svn path=/branches/mono-1-0/mcs/; revision=33383
2004-09-05 19:42:12 +00:00
Gonzalo Paniagua Javier 628467bbfc 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs:
	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.UI/SimpleWebHandlerParser.cs: correctly cache Type instead
	of the assembly for ashx/asmx. Otherwise we need to open the file and
	check for the class name in there. Thanks to Ben for pointing this out.

svn path=/trunk/mcs/; revision=33382
2004-09-05 19:37:58 +00:00
Gonzalo Paniagua Javier e74c868b00 * Control.cs: don't create the EventHandlerList until requested.
svn path=/branches/mono-1-0/mcs/; revision=33381
2004-09-05 19:34:39 +00:00
Gonzalo Paniagua Javier 32e674ae9f * Control.cs: don't create the EventHandlerList until requested.
svn path=/trunk/mcs/; revision=33380
2004-09-05 19:33:51 +00:00
Gonzalo Paniagua Javier 0457c9c059 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: removed creation of StringWriter.  It's not used.

svn path=/trunk/mcs/; revision=33379
2004-09-05 19:32:32 +00:00
Gonzalo Paniagua Javier 968e3c4b57 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: removed creation of StringWriter.  It's not used.

svn path=/branches/mono-1-0/mcs/; revision=33378
2004-09-05 19:31:36 +00:00
Gonzalo Paniagua Javier 324d98f7c8 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: only add/remove to/from the timeout
	manager when we're in a interruptible step.

svn path=/branches/mono-1-0/mcs/; revision=33377
2004-09-05 19:30:18 +00:00
Gonzalo Paniagua Javier b9a1ac7549 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: only add/remove to/from the timeout
	manager when we're in a interruptible step.

svn path=/trunk/mcs/; revision=33376
2004-09-05 19:28:51 +00:00
Ben Maurer fd21f0bca0 2004-09-05 Ben Maurer <[email protected]>
* Path.cs (Combine): Array.IndexOf is slow (because of the
	special cases it must handle). So, rather than doing IndexOf
	just check each type of seperator.

svn path=/trunk/mcs/; revision=33375
2004-09-05 18:28:49 +00:00
Ben Maurer 094186a061 2004-09-05 Ben Maurer <[email protected]>
* RemotingServices.cs (IsMethodOverloaded): use the internal
	method GetMethodsByName. It does much less work than GetMembers.

svn path=/trunk/mcs/; revision=33374
2004-09-05 17:48:27 +00:00
Ben Maurer a0de536a5f 2004-09-05 Ben Maurer <[email protected]>
* StringReader.cs (StreamReader): remove sourceChars and disposed
	variables
	(Read): Copy directly from the string, rather than a char []
	(Dispose, CheckObjectDisposedException): the flag for being
	disposed is now source == null.

svn path=/trunk/mcs/; revision=33373
2004-09-05 17:27:23 +00:00
Ben Maurer 84310407a6 oops
svn path=/trunk/mcs/; revision=33372
2004-09-05 16:27:59 +00:00
Ben Maurer a049865bb3 2004-09-05 Ben Maurer <[email protected]>
* RemotingServices.cs (IsOneWay): use IsDefined rather than

svn path=/trunk/mcs/; revision=33371
2004-09-05 16:26:09 +00:00
Ben Maurer 7810612c9e 2004-09-05 Ben Maurer <[email protected]>
* MonoCustomAttribute.cs: Avoid the call to GetBase when possible.

svn path=/trunk/mcs/; revision=33370
2004-09-05 16:24:52 +00:00
Ben Maurer d0a11ec681 2004-09-05 Ben Maurer <[email protected]>
* MethodCall.cs, CADMessages.cs: String.Copy (x) is the same
	thing as new string (x.ToCharArray ()), however it involves
	half the memory allocation

svn path=/trunk/mcs/; revision=33369
2004-09-05 16:22:46 +00:00
Sebastien Pouliot 8c2659ca8d 2004-09-04 Sebastien Pouliot <[email protected]>
* FileIOPermissionAttributeTest.cs: Added a new test to check that the
	attribute class accept (and retains) non-c14n filenames while the
	permission class accept, but c14n, filenames. Fixed other tests that
	didn't check for c14n results from the created permission.

svn path=/trunk/mcs/; revision=33368
2004-09-05 13:04:24 +00:00
Marek Safar 16afd0209b 2004-09-05 Marek Safar <[email protected]>
* Dictionary.cs: Added new file (no implementation).

svn path=/trunk/mcs/; revision=33367
2004-09-05 12:01:13 +00:00
Marek Safar ee1b5b8436 2004-09-05 Marek Safar <[email protected]>
* corlib.dll.sources:
	Added System.Collections.Generic/Dictionary.cs to the build.

svn path=/trunk/mcs/; revision=33366
2004-09-05 12:01:04 +00:00
Jordi Mas i Hernandez 3a727eae87 fixes bugs, adds flashing on certain situations
svn path=/trunk/mcs/; revision=33365
2004-09-05 08:03:51 +00:00
Gonzalo Paniagua Javier de0eac6582 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs:
	* AspTokenizer.cs: prevent quotes from being swallowed when we're
	inside a server tag and they are the next non-whitespace character.
	Fixes bug #63451.

svn path=/trunk/mcs/; revision=33364
2004-09-05 07:12:15 +00:00
Gonzalo Paniagua Javier da415e7985 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* TraceContext.cs: when IsEnabled has not been set, return the value
	from the TraceManager. Fixes bug #63469.

svn path=/trunk/mcs/; revision=33363
2004-09-05 06:50:53 +00:00
Gonzalo Paniagua Javier e51d417f2f 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: provide more information when loading an assembly fails.

svn path=/branches/mono-1-0/mono/; revision=33362
2004-09-05 05:58:52 +00:00
Gonzalo Paniagua Javier 2da5b064e9 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: provide more information when loading an assembly fails.

svn path=/trunk/mono/; revision=33361
2004-09-05 05:57:40 +00:00
Gonzalo Paniagua Javier 05fb52cb29 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* Environment.cs: (ExpandEnvironmentVariables) don't nullify the case
	insensitive environment variables hashtable once we create it.

svn path=/branches/mono-1-0/mcs/; revision=33359
2004-09-05 02:57:13 +00:00
Gonzalo Paniagua Javier 52044bcda3 2004-09-05 Gonzalo Paniagua Javier <[email protected]>
* Environment.cs: (ExpandEnvironmentVariables) don't nullify the case
	insensitive enironment variables hashtable once we create it.

svn path=/trunk/mcs/; revision=33358
2004-09-05 02:54:45 +00:00
Gonzalo Paniagua Javier 5fd1ea84d9 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* Stream.cs: Close() does not call Flush(). Fixes bug #65340.

svn path=/branches/mono-1-0/mcs/; revision=33357
2004-09-05 02:48:08 +00:00
Gonzalo Paniagua Javier 2cd8400db6 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* Stream.cs: Close() does not call Flush(). Fixes bug #65340.

svn path=/trunk/mcs/; revision=33356
2004-09-05 02:47:25 +00:00
Sebastien Pouliot 610037a3ca 2004-09-04 Sebastien Pouliot <[email protected]>
* Thread.cs: Changed an imperative security demand to declarative
	(unsupported) so it doesn't (for now) call the security runtime.

svn path=/trunk/mcs/; revision=33355
2004-09-04 23:18:56 +00:00
Sebastien Pouliot a06e6821c9 2004-09-04 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Changed 2 imperative security demands to declarative
	(unsupported) so it doesn't (for now) call the security runtime.

svn path=/trunk/mcs/; revision=33354
2004-09-04 23:17:40 +00:00
Sebastien Pouliot 9e04fb421c 2004-09-04 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs: Reworked to support partial paths, non-c14n
	paths (like ..) and PathDiscovery in XML. Now runs MSDN sample.
	* RegistryPermission.cs: Removed unrequired variable.

svn path=/trunk/mcs/; revision=33353
2004-09-04 23:00:19 +00:00
Zoltan Varga ae0abbfa87 2004-09-05 Zoltan Varga <[email protected]>
* inssel-amd64.brg: Remove leftover 32 bit rule.

svn path=/trunk/mono/; revision=33352
2004-09-04 22:48:37 +00:00
Zoltan Varga aa1e761624 2004-09-05 Zoltan Varga <[email protected]>
* shared.c (_wapi_shm_file): Fix leaking of filename.

svn path=/trunk/mono/; revision=33351
2004-09-04 21:44:45 +00:00
Zoltan Varga f61ea69153 2004-09-05 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_instrument_prolog): Fix tracing support.

svn path=/trunk/mono/; revision=33350
2004-09-04 21:43:49 +00:00
Tim Coleman 23904d6cb9 2004-09-04 Tim Coleman <[email protected]>
* System.Security.dll.sources:
                Add new System.Security.Cryptography.Pkcs classes.

svn path=/trunk/mcs/; revision=33349
2004-09-04 20:00:16 +00:00
Tim Coleman 7a2da46ad9 2004-09-04 Tim Coleman <[email protected]>
* XmlDecryptionTransform.cs:
                Implement rudimentary xpointer support for Except URIs.

svn path=/trunk/mcs/; revision=33348
2004-09-04 19:59:02 +00:00
Tim Coleman 4a30007182 2004-09-04 Tim Coleman <[email protected]>
* Pkcs9ContentType.cs Pkcs9MessageDigest.cs:
                New classes for 2.0

svn path=/trunk/mcs/; revision=33347
2004-09-04 19:56:30 +00:00
Tim Coleman e3dccb1f43 *** empty log message ***
svn path=/trunk/mcs/; revision=33346
2004-09-04 19:52:21 +00:00
Tim Coleman 7197bd8f96 2004-09-04 Tim Coleman <[email protected]>
* System.dll.sources: Add System.Net.Mail and System.Net.Mime classes.

svn path=/trunk/mcs/; revision=33345
2004-09-04 19:51:58 +00:00
Tim Coleman 92271efab8 2004-09-04 Tim Coleman <[email protected]>
* ContentDisposition.cs ContentType.cs DispositionTypeNames.cs
        * MediaTypeNames.cs TransferEncoding.cs:
                New class stubs for 2.0

svn path=/trunk/mcs/; revision=33344
2004-09-04 19:51:06 +00:00
Tim Coleman 8a963f8739 Tim Coleman <[email protected]>
* Attachment.cs MailAddress.cs MailMessage.cs SendCompletedEventHandler.cs
        * SmtpAccess.cs SmtpClient.cs SmtpException.cs SmtpStatusCode.cs:
                New class stubs for 2.0

svn path=/trunk/mcs/; revision=33343
2004-09-04 19:49:50 +00:00
Jordi Mas i Hernandez a174a77420 Refresh when font changed
svn path=/trunk/mcs/; revision=33340
2004-09-04 17:10:18 +00:00
Zoltan Varga 659697e76a 2004-09-04 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Fix memory management in tests.

	* pinvoke14.cs: Merge this into pinvoke2.cs.

svn path=/trunk/mono/; revision=33339
2004-09-04 15:58:08 +00:00
Zoltan Varga 946b6f783c 2004-09-04 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_find_jit_info): Refactor common code from
	mono_arch_find_jit_info functions into a new function. Fix a memory
	leak.

	* exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
	refactored code.

svn path=/trunk/mono/; revision=33338
2004-09-04 12:13:06 +00:00
Marek Safar 0e81d83f79 2004-09-04 Marek Safar <[email protected]>
Fixed cs0619-37.cs, cs0619-38.cs

	* enum.cs (GetObsoleteAttribute): Removed.

	* expression.cs (MemberAccess.DoResolve): Test for [Obsolete]
	on Enum member is double staged. The first is tested member
	and then enum.

svn path=/trunk/mcs/; revision=33337
2004-09-04 10:32:08 +00:00
Marek Safar 6f15f22a58 new error tests
svn path=/trunk/mcs/; revision=33336
2004-09-04 10:30:51 +00:00
Marek Safar cef7d1ca16 2004-09-04 Marek Safar <[email protected]>
* test-289.cs: New test for #63631.

svn path=/trunk/mcs/; revision=33335
2004-09-04 09:51:38 +00:00
Marek Safar d87e52af7d 2004-09-04 Marek Safar <[email protected]>
Fixed #56986, #63631, #65231

	* class.cs: (TypeContainer.AddToMemberContainer): New method,
	adds member to name container.
	(TypeContainer.AddToTypeContainer): New method, adds type to
	name container.
	(AddConstant, AddEnum, AddClassOrStruct, AddDelegate, AddMethod,
	AddConstructor, AddInterface, AddField, AddProperty, AddEvent,
	AddOperator): Simplified by reusing AddToMemberContainer.
	(TypeContainer.UserDefinedStaticConstructor): Changed to property
	instead of field.
	(Method.CheckForDuplications): Fixed implementation to test all
	possibilities.
	(MemberBase): Detection whether member is explicit interface
	implementation is now in constructor.
	(MemberBase.UpdateMemberName): Handles IndexerName.
	(Accessor): Changed to keep also location information.
	(AbstractPropertyEventMethod): Is derived from MemberCore.
	(AbstractPropertyEventMethod.IsDummy): Says whether accessor
	will be emited or not.
	(PropertyBase.AreAccessorsDuplicateImplementation):
	Tests whether accessors are not in collision with some method.
	(Operator): Is derived from MethodCore to simplify common
	operations.

	* decl.cs (Flags.TestMethodDuplication): Test for duplication
	must be performed.
	(DeclSpace.AddToContainer): Adds the member to defined_names
	table. It tests for duplications and enclosing name conflicts.

	* enum.cs (EnumMember): Clean up to reuse the base structures

svn path=/trunk/mcs/; revision=33334
2004-09-04 09:48:44 +00:00
Gonzalo Paniagua Javier ee12a070b1 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* configure.in: added check for kqueue. Patch from Geoff Norton
	in HEAD.

svn path=/branches/mono-1-0/mono/; revision=33333
2004-09-04 06:12:54 +00:00
Gonzalo Paniagua Javier 9b65ed030a 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* filewatcher.c: don't expect the development fam package to be
	installed.  If HAVE_KQUEUE return mode 3 to use the new kqueue
	watcher. Patch by Geoff Norton.

svn path=/branches/mono-1-0/mono/; revision=33332
2004-09-04 06:10:40 +00:00
Gonzalo Paniagua Javier ecca0cb940 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* filewatcher.c: don't expect the development fam package to be
	installed.

svn path=/trunk/mono/; revision=33331
2004-09-04 06:06:58 +00:00
Gonzalo Paniagua Javier 31360ef6c2 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: s/fam/libfam.so.0/ so that g_module finds it even
	when the development package is not installed.

2004-08-06  Geoff Norton <[email protected]>

	* FileSystemWatcher.cs: Use the new KeventWatcher if its supported
	* KeventWatcher.cs: Added to cvs

svn path=/branches/mono-1-0/mcs/; revision=33330
2004-09-04 06:01:33 +00:00
Gonzalo Paniagua Javier 59fcd53a48 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: s/fam/libfam.so.0/ so that g_module finds it even
	when the development package is not installed.

svn path=/trunk/mcs/; revision=33329
2004-09-04 05:58:45 +00:00
Tim Coleman 27ac0f2742 2004-09-03 Tim Coleman <[email protected]>
* ICredentialsByHost.cs: New 2.0 interface.

svn path=/trunk/mcs/; revision=33326
2004-09-04 04:17:34 +00:00
Tim Coleman 891558dd95 2004-09-03 Tim Coleman <[email protected]>
* System.dll.sources: Add new class in System.Net

svn path=/trunk/mcs/; revision=33325
2004-09-04 04:16:38 +00:00
John Luke c945e07771 2004-09-03 John Luke <[email protected]>
* monop.cs: report CLSCompliant for assemblies

svn path=/trunk/mcs/; revision=33324
2004-09-04 02:29:31 +00:00
Tim Coleman 4eb5a353ec 2004-09-03 Tim Colmean <[email protected]>
* EncryptedXml.cs: Add support for RSA for key formatting
        * Reference.cs: Include XmlDecryptionTransform
        * SignedXml.cs:
                Set the EncryptedKey on the XmlDecryptionTransform when
                loading XML
        * XmlDecryptionTransform.cs:
                Clean up decryption transformation to work without ugly hack.
        * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
                Implement this class based on XmlDsigC14N
        * XmlSignature.cs: Add namespaces for various classes.
        * KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
                Remove TODO attributes from implemented methods.
        * KeyInfoName.cs: Put #if NET_2_0 markers in
        * Transform.cs: Implement GetDigestedOutput

svn path=/trunk/mcs/; revision=33321
2004-09-04 00:21:59 +00:00
Sebastien Pouliot 44ca984acc 2004-09-03 Sebastien Pouliot <[email protected]>
* EnvironmentPermission.cs: Fixed Unrestricted in FromXml.
	* RegistryPermission.cs: Completed implementation wrt Fx 1.1.

svn path=/trunk/mcs/; revision=33320
2004-09-03 22:49:00 +00:00
Sebastien Pouliot fb72507c32 2004-09-03 Sebastien Pouliot <[email protected]>
* RegistryPermissionTest.cs: Added tests for subsets on keys (as this
	is valid).

svn path=/trunk/mcs/; revision=33319
2004-09-03 22:43:33 +00:00
Tim Coleman a80897d945 2004-09-03 Tim Colmean <[email protected]>
* EncryptedXml.cs: Add support for RSA for key formatting
        * Reference.cs: Include XmlDecryptionTransform
        * SignedXml.cs:
                Set the EncryptedKey on the XmlDecryptionTransform when
                loading XML
        * XmlDecryptionTransform.cs:
                Clean up decryption transformation to work without ugly hack.
        * XmlDsigExcC14NTransform.cs:
                Add algorithm identifier.
        * XmlSignature.cs:
                Add namespaces for various classes.

svn path=/trunk/mcs/; revision=33317
2004-09-03 22:06:23 +00:00
Martin Baulig 4ccad8a8cd Ooops, this one, too.
svn path=/trunk/mcs/; revision=33315
2004-09-03 20:52:15 +00:00
Carlos Alberto Cortez c6deeab6cd Small improvements for Collection.cs
svn path=/trunk/mcs/; revision=33314
2004-09-03 20:51:28 +00:00
Martin Baulig 808b645f6f Add the new tests to the known failures list.
svn path=/trunk/mcs/; revision=33312
2004-09-03 20:28:27 +00:00
Martin Baulig 294c88d1de Ooops.
svn path=/trunk/mono/; revision=33311
2004-09-03 20:27:15 +00:00
Zoltan Varga f34899cf5b 2004-09-03 Zoltan Varga <[email protected]>
* marshal.c: Make a copy of the signature cookie since it will be
	freed by the caller.

svn path=/trunk/mono/; revision=33308
2004-09-03 18:34:40 +00:00
Sebastien Pouliot 78c155f09e 2004-09-03 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added System.Security.Permissions/
	RegistryPermissionTest.cs to unit tests.

svn path=/trunk/mcs/; revision=33307
2004-09-03 18:32:14 +00:00
Sebastien Pouliot 779dbe2e00 2004-09-03 Sebastien Pouliot <[email protected]>
* RegistryPermissionTest.cs: New. Unit tests for RegistryPermission.

svn path=/trunk/mcs/; revision=33306
2004-09-03 18:30:47 +00:00
Zoltan Varga 39c1e8a315 2004-09-03 Zoltan Varga <[email protected]>
(mono_delegate_to_ftnptr): Fix bug in previous patch.

svn path=/trunk/mono/; revision=33305
2004-09-03 18:26:53 +00:00
Zoltan Varga 5756345971 2004-09-03 Zoltan Varga <[email protected]>
* marshal.c (mono_delegate_to_ftnptr): Fix memory leaks.

	* metadata.c (mono_metadata_free_marshal_spec): New function to free
	marshal specs.

svn path=/trunk/mono/; revision=33304
2004-09-03 18:24:13 +00:00
Martin Baulig db2f5c68b7 2004-09-03 Martin Baulig <[email protected]>
* Makefile.am (bootstrap-world): New target.

svn path=/trunk/mono/; revision=33303
2004-09-03 18:20:53 +00:00
Martin Baulig 8ebc30b42e 2004-09-03 Martin Baulig <[email protected]>
* Makefile (test-compiler): New target to run the compiler test.

svn path=/trunk/mcs/; revision=33302
2004-09-03 18:20:06 +00:00
Martin Baulig d7effe6fb3 Added [CLSCompliant(false)] attribute.
svn path=/trunk/mcs/; revision=33301
2004-09-03 18:19:30 +00:00
Tim Coleman e2a28894d0 2004-09-03 Tim Coleman ([email protected])
* CryptoConfig.cs: Add new Xml cryptography class info.

svn path=/trunk/mcs/; revision=33300
2004-09-03 17:59:00 +00:00
Zoltan Varga 5489786195 2004-09-03 Zoltan Varga <[email protected]>
* marshal9.cs libtest.c: Fix memory leaks in test.

svn path=/trunk/mono/; revision=33299
2004-09-03 17:55:10 +00:00
Martin Baulig 9a983b27af Make things actually work.
svn path=/trunk/mcs/; revision=33298
2004-09-03 17:52:36 +00:00
Martin Baulig 03091b4c86 Ooops, it's called static classes, not static structs ....
svn path=/trunk/mcs/; revision=33297
2004-09-03 17:48:05 +00:00
Martin Baulig b38aafdeaa 2004-09-03 Martin Baulig <[email protected]>
* class.cs (TypeContainer.DefineDefaultConstructor): Put this back
	into TypeContainer, to make partial classes work again.

svn path=/trunk/mcs/; revision=33296
2004-09-03 17:42:33 +00:00
Zoltan Varga 56a0cde7e9 2004-09-03 Zoltan Varga <[email protected]>
* marshal.c: More refactoring.

svn path=/trunk/mono/; revision=33292
2004-09-03 17:21:45 +00:00
Zoltan Varga 1678480fed 2004-09-03 Zoltan Varga <[email protected]>
* marshal.c: Refactor the mono_marshal_get_native_wrapper function into
	smaller functions.

svn path=/trunk/mono/; revision=33291
2004-09-03 16:51:56 +00:00
Marek Safar f11772adb6 2004-09-03 Marek Safar <[email protected]>
* 8 new error tests.

svn path=/trunk/mcs/; revision=33290
2004-09-03 16:22:19 +00:00
Gaurav Vaish 2ccb3ff178 2003-10-08 Gaurav Vaish <gvaish_mono AT lycos.com>
* CompositeControl.cs  : Completed
	* Login.cs             : Initial implementation.

svn path=/trunk/mcs/; revision=33285
2004-09-03 14:35:15 +00:00
Tim Coleman bc49ae5dc8 2004-09-03 Tim Coleman <[email protected]>
* System.Security.dll.sources:
                Add new System.Security.Cryptography.X509Certificates classes

svn path=/trunk/mcs/; revision=33284
2004-09-03 14:25:07 +00:00
Tim Coleman f3211f5b34 2004-09-03 Tim Coleman <[email protected]>
* X509KeyUsageExtension.cs: New stub class
        * X509SubjectKeyIdentifierExtension.cs: New stub class
        * PublicKey.cs X509BasicConstraintsExtension.cs X509CertificateEx.cs
        * X509CertificateExCollection.cs X509Extension.cs
        * X509ExtensionCollection.cs:
                Bring these more in line with 2.0

svn path=/trunk/mcs/; revision=33283
2004-09-03 14:24:14 +00:00
Martin Baulig 7c499f0d95 Merged again.
svn path=/trunk/mcs/; revision=33282
2004-09-03 14:04:47 +00:00
Martin Baulig bb24b60d34 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33281
2004-09-03 14:04:10 +00:00
Martin Baulig 1601f10ce0 2004-09-03 Martin Baulig <[email protected]>
* rootcontext.cs (RootContext.V2): Removed.

svn path=/trunk/mcs/; revision=33280
2004-09-03 13:54:44 +00:00
Martin Baulig 319b31f518 2004-03-23 Martin Baulig <[email protected]>
* expression.cs (Invocation.OverloadResolve): Added `bool
	may_fail' argument and use it instead of the Location.IsNull() hack.

svn path=/trunk/mcs/; revision=33279
2004-09-03 13:48:35 +00:00
Lluis Sanchez de4373d0c1 * ProtocolImporter.cs: Fixing the fix. The generated class must always
be added.

svn path=/trunk/mcs/; revision=33278
2004-09-03 13:43:56 +00:00
Sanja Gupta 83d50cf9ef ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new interface and classes in System.Web.UI namespace.

svn path=/trunk/mcs/; revision=33277
2004-09-03 13:28:43 +00:00
Sanja Gupta 1367f74547 ChangeLog: Updated ChangeLog.
Control.cs: Added new interfaces implemented in .Net 2.0.
ExpressionBinding.cs: Added new class.
ExpressionBindingCollection.cs: Added new class.

svn path=/trunk/mcs/; revision=33276
2004-09-03 13:26:02 +00:00
Martin Baulig f9852ffa5d Moved the marker.
svn path=/trunk/mcs/; revision=33275
2004-09-03 13:25:14 +00:00
Martin Baulig ae7242641a **** Merged from MCS ****
svn path=/trunk/mcs/; revision=33274
2004-09-03 13:24:37 +00:00
Raja R Harinath 1823ddf062 Add bugzilla id for commit.
svn path=/trunk/mcs/; revision=33273
2004-09-03 12:08:58 +00:00
Zoltan Varga 39ff8f59b2 2004-09-03 Zoltan Varga <[email protected]>
* MarshalTest.cs: Add test for AllocHGlobal and zero size.

svn path=/trunk/mcs/; revision=33272
2004-09-03 12:08:49 +00:00
Raja R Harinath 3112e51803 Attach $profile to log file name to make clear
which profile caused the error.

svn path=/trunk/mcs/; revision=33271
2004-09-03 12:07:36 +00:00
Raja R Harinath a0e7e8ab48 (TEST_SOURCES): Add 'mtest-1-dll' and 'mtest-1-exe'.
Testcases from #61128.
(test-compiler-jit-real): Minor cleanups.

svn path=/trunk/mcs/; revision=33270
2004-09-03 12:05:40 +00:00
Raja R Harinath a1d86f1ab1 * expression.cs (BetterConversion): Don't allow either conversion
to be null.  Remove redundant implicit conversion test when 'q ==
null' -- when this function is invoked, we already know that the
implicit conversion exists.
(BetterFunction): Assume that 'best' is non-null.  Remove
redundant reimplementation of IsApplicable when 'best' is null.
(IsParamsMethodApplicable, IsApplicable): Add new parameter for
number of arguments.
(IsAncestralType): Extract from OverloadResolve.
(OverloadResolve): Make robust to the MethodGroupExpr being
unsorted.  Implement all the logic of Section 14.5.5.1, and
support overloading of methods from multiple applicable types.
Clean up logic somewhat.  Don't pass null methods to BetterFunction.

* report.cs (SymbolRelatedToPreviousError): Cleanup output.
(RealError, Warning): Append type of report to related symbol.

svn path=/trunk/mcs/; revision=33269
2004-09-03 12:04:22 +00:00
Sebastien Pouliot 0bc21191a2 2004-09-03 Sebastien Pouliot <[email protected]>
* EnvironmentPermission.cs: Fixed GetPathList which has little
	differences between Fx 1.1 and 2.0. Required to run the MSDN samples.
	* FileDialogPermission.cs: Fixed IsSubsetOf and Intersect.
	* RegistryPermission.cs: Fixed ToXml to avoid NullReferenceException.
	Required to run the MSDN library samples.
	* SecurityPermission.cs: Return null for an empty intersection.
	Required to run the MSDN library samples.
	* SiteIdentityPermission.cs: Implemented wildcard support in
	Intersect, IsSubsetOf and Union.
	* StrongNameIdentityPermission.cs: Implemented wildcard support in
	Intersect, IsSubsetOf and Union. Fixed ToXml to pass the MSDN samples.
	* UrlIdentityPermission.cs: Implemented wildcard support in Intersect,
	IsSubsetOf and Union. Fixed difference between Fx1.1 and 2.0 in Copy.

svn path=/trunk/mcs/; revision=33268
2004-09-03 11:51:52 +00:00
Sebastien Pouliot 48459437d6 2004-09-03 Sebastien Pouliot <[email protected]>
* CodeGroup.cs: Creates an empty PermissionSet (and not an empty
	NamedPermissionSet). Required to run the MSDN library samples.
	* FileCodeGroup.cs: Fixed Copy so that CodeGroup.Equals would work
	preperly. Required to run the MSDN library samples.
	* FirstMatchCodeGroup.cs: Reworked the Resolve* logic to run the MSDN
	library samples.
	* PolicyLevel.cs: Fixed RemoveNamedPermissionSet and (more) complete
	CreateAppDomainLevel to run the MSDN library samples.
	* StrongNameMembershipCondition.cs: Fix ToXml to run the MSDN library
	samples.

svn path=/trunk/mcs/; revision=33267
2004-09-03 11:43:25 +00:00
Sebastien Pouliot 5acf83ed0f 2004-09-03 Sebastien Pouliot <[email protected]>
* UrlIdentityPermissionTest.cs: Added a test for Copy an empty object
	which results in a different behaviour in Fx 1.1 and 2.0.

svn path=/trunk/mcs/; revision=33266
2004-09-03 11:36:16 +00:00
Lluis Sanchez 2e8d184f2f * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
Normalization==true by default.

svn path=/branches/mono-1-0/mcs/; revision=33265
2004-09-03 11:24:56 +00:00
Lluis Sanchez d8615d9cf4 * XmlSerializer.cs: When the XmlReader is created by XmlSerializer, use
Normalization==true by default.

svn path=/trunk/mcs/; revision=33264
2004-09-03 11:12:00 +00:00
Atsushi Eno 2d0b5409f6 2004-09-03 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : When Normalization is true, CRLF and CR should
	  be converted to single LF. This should fix part of bug #62076.

svn path=/branches/mono-1-0/mcs/; revision=33263
2004-09-03 10:51:27 +00:00
Atsushi Eno bf4435aed2 2004-09-03 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : When Normalization is true, CRLF and CR should
	  be converted to single LF. This should fix part of bug #62076.

svn path=/trunk/mcs/; revision=33262
2004-09-03 10:50:58 +00:00
Sachin Kumar fd154a2056 added few more VB tests
svn path=/trunk/mcs/; revision=33261
2004-09-03 10:38:34 +00:00
Marek Safar e1a43eedc4 2004-09-03 Marek Safar <[email protected]>
* enum.cs: Fixed CLS-Compliance checks for enum members.
	Error tests cs3008-8.cs, cs3014-8.cs

svn path=/trunk/mcs/; revision=33260
2004-09-03 10:35:49 +00:00
Atsushi Eno 56323a4669 2004-09-03 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : When schema inclusion results in a recursion, just
	  skip recursed schema.

svn path=/branches/mono-1-0/mcs/; revision=33259
2004-09-03 10:03:15 +00:00
Atsushi Eno d59f500948 2004-09-03 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : When schema inclusion results in a recursion, just
	  skip recursed schema.
	* BUGS-MS.txt : added another entry. Reflected response from Microsoft.

svn path=/trunk/mcs/; revision=33258
2004-09-03 10:02:42 +00:00
Lluis Sanchez 1496d7642d * object.c: In mono_message_invoke, fill the output parameter array after
calling the managed method (it was done before the call). This fixes
	  bug #59299.

svn path=/trunk/mono/; revision=33257
2004-09-03 09:43:10 +00:00
Ben Maurer 4bb07bb665 2004-09-02 Ben Maurer <[email protected]>
* LocalBuilder.cs: another s.ioe

svn path=/trunk/mcs/; revision=33256
2004-09-03 01:14:04 +00:00
Ben Maurer a6fda630b0 ignorify
svn path=/trunk/mcs/; revision=33255
2004-09-03 01:04:50 +00:00
Ben Maurer 8428d4ab7e 2004-09-02 Ben Maurer <[email protected]>
* ModuleBuilder.cs: dont throw an S.IOE for debugging stuff.
	makes sre apps work

svn path=/trunk/mcs/; revision=33254
2004-09-03 01:03:10 +00:00
Duncan Mak f9e50ce77d (test-2): Use /langversion instead of -v2. This fixes the compiler test build.
svn path=/trunk/mcs/; revision=33253
2004-09-03 00:04:35 +00:00
Duncan Mak a82f835bf0 (PrintProvides): Fix the handling of 2.0 mscorlib.
svn path=/branches/mono-1-0/mcs/; revision=33252
2004-09-02 23:18:15 +00:00
Duncan Mak 935d8a2144 (PrintProvides): Fix the handling of 2.0 mscorlib.
svn path=/trunk/mcs/; revision=33251
2004-09-02 23:14:51 +00:00
Peter Dennis Bartok e512410423 - Added sanity check to creation of double buffer bitmap
svn path=/trunk/mcs/; revision=33250
2004-09-02 22:24:50 +00:00
Peter Dennis Bartok c43944f93d - Fixed selection of text color
- Fixed handling of resize event; now properly recreates double buffering
  bitmap
- Added missing assignment of TextAlignment
- Added proper default for TextAlignment

svn path=/trunk/mcs/; revision=33249
2004-09-02 22:24:35 +00:00
Peter Dennis Bartok 710552a114 - Added AccessibleNavigation and AccessibleSelection source files
svn path=/trunk/mcs/; revision=33247
2004-09-02 20:28:25 +00:00
Peter Dennis Bartok 5f52b16df9 - Added missing RadioButton.RadioButtonAccessibleObject class
svn path=/trunk/mcs/; revision=33246
2004-09-02 20:26:48 +00:00
Peter Dennis Bartok d54111d324 - Added missing Control.ControlAccessibleObject class
- Started to implement Select()ion mechanisms, still very incomplete

svn path=/trunk/mcs/; revision=33245
2004-09-02 20:26:21 +00:00
Peter Dennis Bartok 6897ab3619 - Added missing methods
svn path=/trunk/mcs/; revision=33244
2004-09-02 20:25:21 +00:00
Peter Dennis Bartok 899fff493e - Initial check-in
svn path=/trunk/mcs/; revision=33243
2004-09-02 20:24:16 +00:00
Marek Safar edbe1436ca 2004-09-02 Marek Safar <[email protected]>
Fixed bug #62342, #63102
	* class.cs: ImplementIndexer uses member.IsExplicitImpl
	like ImplementMethod.

svn path=/trunk/mcs/; revision=33242
2004-09-02 19:14:55 +00:00
Marek Safar 2653a50304 2004-09-02 Marek Safar <[email protected]>
* test-288.cs: New test for #62342.

svn path=/trunk/mcs/; revision=33241
2004-09-02 19:14:30 +00:00
Zoltan Varga f31b3fbade Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33240
2004-09-02 19:13:52 +00:00
Zoltan Varga 9385bcd34f 2004-09-02 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_alloc): Return a valid pointer on size 0
	as well.

svn path=/trunk/mono/; revision=33239
2004-09-02 19:12:05 +00:00
Marek Safar 8f15a2d1c3 Oups, I didn't commit the latest version
svn path=/trunk/mcs/; revision=33238
2004-09-02 18:29:09 +00:00
Zoltan Varga 8dc4fa6125 2004-09-02 Zoltan Varga <[email protected]>
* exceptions.cs inssel-long32.brg: Handle the OP_LCONV_TO_OVF_I2 case
	as well.

svn path=/trunk/mono/; revision=33237
2004-09-02 18:09:37 +00:00
Tim Coleman 16a536b789 2004-09-02 Tim Coleman <[email protected]>
* CipherReference.cs: Add XmlDecryptionTransform for 2.0
        * EncryptedType.cs: Fix type initialization to conform to .NET
        * EncryptedXml.cs:
                Add support for RSA key decryption and "cloning" for Transform
        * KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
                Add 2.0 stubs
        * Signature.cs:
                Create internal GetXml function if we already have a doc
        * SignedXml.cs: Fix the transformation when we get an XmlDocument out
        * XmlDecryptionTransform.cs: Implemented Xml Decryption
        * XmlSignature.cs: Add namespace for Xml Decryption

svn path=/trunk/mcs/; revision=33236
2004-09-02 17:20:35 +00:00
Tim Coleman 0b3a40976b 2004-09-02 Tim Coleman <[email protected]>
* System.Security.dll.sources:
                Add new System.Security.Cryptography.Xml classes

svn path=/trunk/mcs/; revision=33235
2004-09-02 17:19:23 +00:00
Marek Safar e6c74ec57b 2004-09-02 Marek Safar <[email protected]>
* attribute.cs (Attribute.GetAttributeArgumentExpression):
	Fixed bug #65170.

svn path=/trunk/mcs/; revision=33234
2004-09-02 16:55:19 +00:00
Marek Safar bdddb4116d 2004-09-02 Marek Safar <[email protected]>
* test-205.cs: New test for #65170.

svn path=/trunk/mcs/; revision=33233
2004-09-02 16:52:42 +00:00
Jordi Mas i Hernandez 46f85c3d0a implements resource pool for pens, brushes, and hatchbruses
svn path=/trunk/mcs/; revision=33232
2004-09-02 16:32:54 +00:00
Lluis Sanchez 2d39f2bd3d * XmlSerializerTestClasses.cs: Added some test classes.
* DeserializeTests.cs: Added tests for bug #61464.

svn path=/trunk/mcs/; revision=33231
2004-09-02 16:12:57 +00:00
Lluis Sanchez d996305ce2 * ReflectionHelper.cs, SoapReflectionImporter.cs, XmlReflectionImporter.cs:
In CheckSerializableType, add the option of ignoring types with private
	  constructors. Some kind of lists can be deserialized
	  even if the constructor is private. See bug #61464.
	* SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
	  Before creating a list, check that it has a public constructor.
	* TypeData.cs: Added HasPublicConstructor property.

svn path=/trunk/mcs/; revision=33230
2004-09-02 16:03:15 +00:00
Paolo Molaro 00a30ae30a Unbork compilation fix.
svn path=/trunk/mono/; revision=33228
2004-09-02 14:01:01 +00:00
Zoltan Varga d7c50dd084 2004-09-02 Zoltan Varga <[email protected]>
* mono-codeman.c (new_codechunk): Remove g_assert_not_reached ().

svn path=/trunk/mono/; revision=33227
2004-09-02 13:02:40 +00:00
Zoltan Varga b8a3f3b23f 2004-09-02 Zoltan Varga <[email protected]>
* exceptions.cs: Add array size tests.

svn path=/trunk/mono/; revision=33226
2004-09-02 13:00:07 +00:00
Zoltan Varga 67bf15bbc5 2004-09-02 Zoltan Varga <[email protected]>
* mini.c: Allocate a separate icall wrapper for each arity of
	mono_array_new_va. Fixes #59509.

svn path=/trunk/mono/; revision=33225
2004-09-02 12:56:37 +00:00
Sachin Kumar fa9d4df017 Added more tests Statements
svn path=/trunk/mcs/; revision=33224
2004-09-02 12:55:47 +00:00
Zoltan Varga 61eeaaf023 2004-09-02 Zoltan Varga <[email protected]>
* mono-codeman.c (new_codechunk): Fix windows build.

svn path=/trunk/mono/; revision=33223
2004-09-02 12:20:47 +00:00
Zoltan Varga 285f627418 2004-09-02 Zoltan Varga <[email protected]>
* exceptions.cs: Add testcase for 64578.

svn path=/trunk/mono/; revision=33222
2004-09-02 12:04:34 +00:00
Dick Porter a84ad74724 Compile fix
svn path=/trunk/mono/; revision=33221
2004-09-02 12:03:16 +00:00
Zoltan Varga 64a7cc482e Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33220
2004-09-02 12:02:52 +00:00
Zoltan Varga 52ca73dd15 2004-09-02 Zoltan Varga <[email protected]>
* inssel-long32.brg: Fix OP_LCONV_TO_OVF_I1 rule. Fixes #64578.

svn path=/trunk/mono/; revision=33219
2004-09-02 12:00:17 +00:00
Martin Baulig f94752d513 New test.
svn path=/trunk/mcs/; revision=33218
2004-09-02 11:55:25 +00:00
Martin Baulig 54e8ff2fde It's called System.Xml.
svn path=/trunk/mcs/; revision=33217
2004-09-02 11:55:03 +00:00
Martin Baulig 6a6a06a442 2004-09-02 Martin Baulig <[email protected]>
* Makefile (test-generic-4): New target to run the multi-file
	generic tests.

svn path=/trunk/mcs/; revision=33216
2004-09-02 11:50:35 +00:00
Martin Baulig 042269941e 2004-09-02 Martin Baulig <[email protected]>
* Makefile (test-generic): Renamed to test-generic-1.
	(test-generic): New target, runs test-generic-1, test-generic-2
	and test-generic-3.

svn path=/trunk/mcs/; revision=33215
2004-09-02 11:33:29 +00:00
Zoltan Varga a4c9866312 2004-09-02 Zoltan Varga <[email protected]>
* trace.c (is_filenamechar): Allow 0..9 in strings. Fixes #65094.

svn path=/trunk/mono/; revision=33214
2004-09-02 11:32:45 +00:00
Martin Baulig da147e0cb0 2004-09-02 Martin Baulig <[email protected]>
* mini.c (mono_method_to_ir): When initializing the locals, call
	handle_initobj() on the generic instance itself, not its
	underlying type.

svn path=/trunk/mono/; revision=33213
2004-09-02 11:28:39 +00:00
Martin Baulig e99710f21c 2004-09-02 Martin Baulig <[email protected]>
* class.c (mono_class_instance_size): Don't allow generic type
	definitions or open generic instances.
	(mono_class_array_element_size): If we're a value type, call
	mono_class_instance_size() on the original class.

	* metadata.c (mono_type_size, mono_type_stack_size): Correctly
	handle generic instances.

	* mono-debug-debugger.c (write_type): Handle generic instances
	like classes.

svn path=/trunk/mono/; revision=33212
2004-09-02 11:25:27 +00:00
Zoltan Varga 9444cfbe81 2004-09-02 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_alloc): Raise an OutOfMemory exception if
	the allocation request fails. Fixes #65089.

svn path=/trunk/mono/; revision=33211
2004-09-02 11:22:41 +00:00
Martin Baulig d17e022518 2004-09-02 Martin Baulig <[email protected]>
* statement.cs (Using.EmitLocalVariableDeclFinally): Use
	TypeManager.GetArgumentTypes() rather than calling GetParameters()
	on the MethodBase.

svn path=/trunk/mcs/; revision=33210
2004-09-02 11:22:31 +00:00
Zoltan Varga adfc07c6eb 2004-09-02 Zoltan Varga <[email protected]>
* mini.h (MonoJitDynamicMethodInfo): New structure, extension of
	MonoJitInfo for dynamic methods.

	* mini.c: Rename trampoline_hash_mutex to jit_mutex.

	* mini.c: Add support for freeing JIT data for dynamic methods.

svn path=/trunk/mono/; revision=33209
2004-09-02 10:58:26 +00:00
Zoltan Varga 21c0d114d0 2004-09-02 Zoltan Varga <[email protected]>
* object.c (mono_runtime_free_method): Do not call mono_free_method.

svn path=/trunk/mono/; revision=33208
2004-09-02 10:54:58 +00:00
Zoltan Varga 4c60e4574a 2004-09-02 Zoltan Varga <[email protected]>
* mono-codeman.h mono-codeman.c: Generalize so it can be used to
	allocate code for dynamic methods (one method per code manager).

svn path=/trunk/mono/; revision=33207
2004-09-02 10:52:08 +00:00
Sebastien Pouliot 0324d73abe 2004-09-02 Sebastien Pouliot <[email protected]>
* Site.cs: Updated to match latest unit tests, i.e. match Fx 1.1 on
	NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.

svn path=/trunk/mcs/; revision=33206
2004-09-02 10:49:30 +00:00
Sebastien Pouliot 1d1ea40e05 2004-09-02 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Updated to match latest unit tests, i.e.
	match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
	* StrongNameIdentityPermission.cs: Updated to match latest unit tests,
	i.e. match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
	* UrlIdentityPermission.cs: Updated to match latest unit tests, i.e.
	match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.

svn path=/trunk/mcs/; revision=33205
2004-09-02 10:47:50 +00:00
Sebastien Pouliot 7b3de204f7 2004-09-02 Sebastien Pouliot <[email protected]>
* PermissionSet.cs: Updated to match latest unit tests, i.e. match
	Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
	* SecurityElement.cs: FromString is now internal before NET_2_0.

svn path=/trunk/mcs/; revision=33204
2004-09-02 10:45:05 +00:00
Zoltan Varga 130b27da3b 2004-09-02 Zoltan Varga <[email protected]>
* Delegate.cs: Free the delegate trampoline in the finalizer.

svn path=/trunk/mcs/; revision=33203
2004-09-02 10:41:35 +00:00
Zoltan Varga 55fcbd4b13 2004-09-02 Zoltan Varga <[email protected]>
* object.c (mono_runtime_free_method): New function to free a dynamic
	method.

	* marshal.c (mono_delegate_free_ftnptr): New function to free the
	delegate trampoline.

	* marshal.c (mono_marshal_get_managed_wrapper): Mark managed wrapper
	with hasthis as dynamic,

	* icall.c (ves_icall_System_Delegate_FreeTrampoline): New icall.

	* domain.c (mono_jit_info_table_remove): New function to remove an
	entry from the jit info table.

	* class-internals.h (MonoMethod): Add 'dynamic' field.

	* loader.c: Fix warnings.

svn path=/trunk/mono/; revision=33202
2004-09-02 10:40:22 +00:00
Martin Baulig 377f721546 2004-09-02 Martin Baulig <[email protected]>
* MethodBuilder.cs (MethodBuilder.GetParameters): Throw a
	NotSupportedException() until the type has been fully created.

svn path=/trunk/mcs/; revision=33201
2004-09-02 09:39:20 +00:00
Umadevi S a99c7b6d01 2004-09-02 Umadevi S <[email protected]>
* SqlCommand.cs - ExecuteNonQuery to return -1 incase of executing a storedprocedure

svn path=/branches/mono-1-0/mcs/; revision=33199
2004-09-02 08:44:02 +00:00
Umadevi S 450b34a686 2004-09-02 Umadevi S <[email protected]>
* SqlCommandTest.cs - added file. Testing ExecuteNonQuery

svn path=/branches/mono-1-0/mcs/; revision=33198
2004-09-02 08:35:51 +00:00
nobody 0a09faca2e This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=33197
2004-09-02 08:35:51 +00:00
Umadevi S b4fda1b3a6 2004-09-02 Umadevi S <[email protected]>
* SqlCommand.cs - ExecuteNonQuery to return -1 incase of executing a storedprocedure

svn path=/trunk/mcs/; revision=33196
2004-09-02 08:30:16 +00:00
Umadevi S db776e3271 2004-09-02 Umadevi S <[email protected]>
* SqlCommandTest.cs - added file. Testing ExecuteNonQuery

svn path=/trunk/mcs/; revision=33195
2004-09-02 08:26:02 +00:00
Martin Baulig 79f0aab6cd 2004-09-02 Martin Baulig <[email protected]>
* runtime/net_1_1/Makefile.am (install-data-local): Install
	mscorlib.dll.mdb into $(corlibdir).

	* runtime/net_2_0/Makefile.am: Likewise.

svn path=/trunk/mono/; revision=33194
2004-09-02 07:55:34 +00:00
Atsushi Eno cf88612ce8 2004-09-02 Atsushi Enomoto <[email protected]>
* xml-classes : updates on 2.0 stuff. deprecating XPathDocument,
	  updating XQuery status etc.

svn path=/trunk/mono/; revision=33192
2004-09-02 07:14:15 +00:00
Umadevi S ac082bc1ef 2004-09-02 Umadevi S <[email protected]>
* Added file SqlDataReaderTest.cs

svn path=/trunk/mcs/; revision=33191
2004-09-02 05:18:45 +00:00
Carlos Alberto Cortez 0cbc6cf58a corlib.sources.dll updated
svn path=/trunk/mcs/; revision=33190
2004-09-01 23:44:48 +00:00
Carlos Alberto Cortez 6b1d9bf775 System.Collections.Generic.Collection added
svn path=/trunk/mcs/; revision=33189
2004-09-01 23:41:24 +00:00
Sebastien Pouliot 18cbf183b4 2004-09-01 Sebastien Pouliot <[email protected]>
* EnvironmentPermissionTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1).
	* PublisherIdentityPermissionTest.cs: Fixed tests so they execute
	without errors on both Fx 1.1 and Fx 2.0 (beta 1).
	* SiteIdentityPermissionTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1). Fixed line endings.
	* StrongNameIdentityPermissionTest.cs: Fixed tests so they execute
	without errors on both Fx 1.1 and Fx 2.0 (beta 1).
	* StrongNamePublicKeyBlobTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit
	2.2 format.
	* UrlIdentityPermissionTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1).

svn path=/trunk/mcs/; revision=33188
2004-09-01 21:51:49 +00:00
Sebastien Pouliot 9378c69c13 2004-09-01 Sebastien Pouliot <[email protected]>
* HashTest.cs: Fixed tests so they execute without errors on both
	Fx 1.1 and Fx 2.0 (beta 1).
	* PublisherTest.cs: Fixed tests so they execute without errors on both
	Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
	* SiteTest.cs: Fixed tests so they execute without errors on both Fx
	1.1 and Fx 2.0 (beta 1).
	* StrongNameTest.cs: Fixed tests so they execute without errors on
	both Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
	* UrlTest.cs: Fixed tests so they execute without errors on both Fx
	1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=33187
2004-09-01 21:43:52 +00:00
Sebastien Pouliot 52690ccfd1 2003-09-01 Sebastien Pouliot <[email protected]>
* PermissionSetTest.cs: Fixed tests so they execute without errors on
	both Fx 1.1 and Fx 2.0 (beta 1).
	* SecurityManagerTest.cs: Fixed tests so they execute without errors
	on both Fx 1.1 and Fx 2.0 (beta 1).

svn path=/trunk/mcs/; revision=33186
2004-09-01 21:37:54 +00:00
Gonzalo Paniagua Javier c1dad3256b 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: don't try to watch for changes in system
	assemblies. Fixes bug #64871.

svn path=/branches/mono-1-0/mcs/; revision=33185
2004-09-01 21:37:52 +00:00
Gonzalo Paniagua Javier df642df602 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* CachingCompiler.cs: don't try to watch for changes in system
	assemblies. Fixes bug #64871.

svn path=/trunk/mcs/; revision=33184
2004-09-01 21:36:46 +00:00
Jackson Harper a1222cb8d0 Fix typo
svn path=/trunk/mcs/; revision=33183
2004-09-01 21:30:09 +00:00
Peter Dennis Bartok 7110952de5 - Fixed state
svn path=/trunk/mcs/; revision=33182
2004-09-01 20:44:11 +00:00
Peter Dennis Bartok 6436f10404 - Functional initial check-in
svn path=/trunk/mcs/; revision=33181
2004-09-01 20:40:02 +00:00
Gonzalo Paniagua Javier 552f78515b 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* LiteralControl.cs: stylized. This control has EnableViewState disabled
	by default and doesn't get an automatic ID. When text is null -> "".

svn path=/branches/mono-1-0/mcs/; revision=33180
2004-09-01 20:03:02 +00:00
Gonzalo Paniagua Javier 34731bec41 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* LiteralControl.cs: stylized. This control has EnableViewState disabled
	by default and doesn't get an automatic ID. When text is null -> "".

svn path=/trunk/mcs/; revision=33179
2004-09-01 20:01:58 +00:00
Peter Dennis Bartok 4df158787b - Added missing default
- Added missing region mark

svn path=/trunk/mcs/; revision=33178
2004-09-01 20:01:24 +00:00
Gonzalo Paniagua Javier a0ea59a1e1 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* Xml.cs: fixed get_DocumentContent (it was returning "" always!) and
	don't call MapPathSecure on the content itself.

	* XmlBuilder.cs: handle XML documents written inside asp:xml. The
	document is checked at parse time and will be checked again at run time.

	Fixes bug #63828.

svn path=/branches/mono-1-0/mcs/; revision=33177
2004-09-01 19:58:34 +00:00
Gonzalo Paniagua Javier 493013aecd 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: handle builders that need to process inner text
	with tags.

	* Location.cs: added setters for the properties.

svn path=/branches/mono-1-0/mcs/; revision=33176
2004-09-01 19:57:16 +00:00
Gonzalo Paniagua Javier 5e0747a8a1 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* Xml.cs: fixed get_DocumentContent (it was returning "" always!) and
	don't call MapPathSecure on the content itself.

	* XmlBuilder.cs: handle XML documents written inside asp:xml. The
	document is checked at parse time and will be checked again at run time.

	Fixes bug #63828.

svn path=/trunk/mcs/; revision=33175
2004-09-01 19:55:32 +00:00
Gonzalo Paniagua Javier a4c94a25d2 2004-09-01 Gonzalo Paniagua Javier <[email protected]>
* AspGenerator.cs: handle builders that need to process inner text
	with tags.

	* Location.cs: added setters for the properties.

svn path=/trunk/mcs/; revision=33174
2004-09-01 19:51:27 +00:00
Marek Safar ad1b8f61ce 2004-09-01 Marek Safar <[email protected]>
* Makefile: Enabled test-286

	* test-287.cs: New test for static classes.

svn path=/trunk/mcs/; revision=33173
2004-09-01 18:46:13 +00:00
Marek Safar fb98c02600 I fixed mono CodeDom bugs to pass on the latest Microsoft CodeDom Test Suite.
svn path=/trunk/mcs/; revision=33172
2004-09-01 18:45:52 +00:00
Lluis Sanchez ce528ab34f * MonoWSDL.cs, MonoWSDL2.cs: Use a valid default file name when the wsdl
documents does not contain a service from which to take the name.
	  Use the "file://" prefix when using the DiscoveryClientProtocol class,
	  since in MS.NET does not supports plain file paths.
	* SampleGenerator.cs: Fixed header output.

svn path=/trunk/mcs/; revision=33171
2004-09-01 18:25:31 +00:00
Marek Safar 8dd945f2d1 Fixed test-286
svn path=/trunk/mcs/; revision=33170
2004-09-01 18:11:51 +00:00
Marek Safar 676d4a50cd 2004-09-01 Marek Safar <[email protected]>
C# 2.0 Static classes implemented

	* class.cs (TypeContainer): instance_constructors,
	initialized_fields, initialized_static_fields,
	default_constructor, base_inteface_types are protected to be
	accessible from StaticClass.
	(TypeContainer.DefineDefaultConstructor): New virtual method
	for custom default constructor generating
	(StaticClass): New class to handle "Static classes" feature.

	* cs-parser.jay: Handle static keyword on class like instance
	of StaticClass.

	* driver.cs: Added "/langversion" command line switch with two
	options (iso-1, default).

svn path=/trunk/mcs/; revision=33169
2004-09-01 18:01:56 +00:00
Marek Safar c13aaee158 2004-09-01 Marek Safar <[email protected]>
* 20 new tests mainly for static classes.

svn path=/trunk/mcs/; revision=33168
2004-09-01 17:55:44 +00:00
Lluis Sanchez fe58636b54 * DiscoveryClientProtocol.cs: Added support for "file://" urls.
svn path=/trunk/mcs/; revision=33167
2004-09-01 17:41:35 +00:00
Martin Baulig ed1f238a73 2004-09-01 Martin Baulig <[email protected]>
* IMonoSymbolWriter.cs: Removed.

	* ModuleBuilder.cs, LocalBuilder.cs, ILGenerator.cs: Removed the
	old debugging code.

svn path=/trunk/mcs/; revision=33166
2004-09-01 17:22:23 +00:00
Martin Baulig e0295aba69 2004-09-01 Martin Baulig <[email protected]>
* mono-debug.c, debug-mono-symfile.c: Use mono_loader_lock()
	instead of mono_debugger_lock() because the latter one is a no-op
	unless running in the debugger.

svn path=/trunk/mono/; revision=33165
2004-09-01 17:20:11 +00:00
Martin Baulig b10bc8b260 2004-09-01 Martin Baulig <[email protected]>
* Makefile: Disable test-286 for the moment.

svn path=/trunk/mcs/; revision=33164
2004-09-01 17:02:25 +00:00
Lluis Sanchez 68a1f5925a * SerializationCodeGenerator.cs: Generate correct "HasValue" check for
value list serialization.
	* XmlSchemaImporter.cs: Added some null checks.

svn path=/trunk/mcs/; revision=33163
2004-09-01 16:16:24 +00:00
Martin Baulig d833e7733b Disable gen-72 for the moment.
svn path=/trunk/mcs/; revision=33162
2004-09-01 15:44:41 +00:00
Martin Baulig d9d18b9c4a Fixme, hope this is right.
svn path=/trunk/mcs/; revision=33161
2004-09-01 15:30:33 +00:00
Zoltan Varga 32cd722a73 2004-09-01 Zoltan Varga <[email protected]>
* class.c (class_compute_field_layout): Classes with auto-layout or
	reference fields are not blittable.

svn path=/trunk/mono/; revision=33160
2004-09-01 15:21:45 +00:00
Jordi Mas i Hernandez 5680d27ab7 fixes method signatures, new methods, events, fixes autosize
svn path=/trunk/mcs/; revision=33159
2004-09-01 15:10:10 +00:00
Rafael Teixeira 55ce458d77 exercise global attribute bug
svn path=/trunk/mcs/; revision=33158
2004-09-01 14:55:38 +00:00
Lluis Sanchez 4856cb6a97 * BasicProfileChecker.cs: Some small fixes.
* FaultBinding.cs: Removed useless code.
	* HttpSimpleProtocolImporter.cs, SoapProtocolImporter.cs: Take into account
	  that now we may be generating code for a binding which is not referenced
	  by any port. In this case Port is null.
	* MessageBinding.cs: Properly set the parent operation binding.
	* OperationBinding.cs: When adding messages, set its parent property.
	* ProtocolImporter.cs: Support generation of proxies for wsdl documents
	  that do not have any Service entry. In this case, it now generates
	  a proxy for every binding.

svn path=/trunk/mcs/; revision=33157
2004-09-01 14:09:56 +00:00
Sachin Kumar e98a499a76 Added new tests for Array Statements
svn path=/trunk/mcs/; revision=33156
2004-09-01 13:58:09 +00:00
Jordi Mas i Hernandez 8a99ad65a8 Init string variables with an empty object
svn path=/trunk/mcs/; revision=33155
2004-09-01 13:19:19 +00:00
Dick Porter b8c5424796 2004-09-01 Dick Porter <[email protected]>
* icall.c (ves_icall_System_Reflection_Assembly_get_location): Use
	mono_image_get_filename() to get the assembly location.

	* icall.c:
	* metadata.h: Fix compile warnings

svn path=/trunk/mono/; revision=33154
2004-09-01 12:34:23 +00:00
Sebastien Pouliot ae5811e3bd 2004-09-01 Sebastien Pouliot <[email protected]>
* PolicyLevel.cs: Fixed Reset not to delete/load policy file for
	AppDomain level. Added internal Resolve method for class names.

svn path=/trunk/mcs/; revision=33153
2004-09-01 12:30:08 +00:00
Sebastien Pouliot 9fd3f66265 2004-09-01 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermission.cs: Do not include "Zone" attribute in XML if
	zone == NoZone (so the permission can be considered as empty).

svn path=/trunk/mcs/; revision=33152
2004-09-01 12:28:00 +00:00
Sebastien Pouliot 198a381ea6 2004-09-01 Sebastien Pouliot <[email protected]>
* NamedPermissionSet.cs: FromXml now calls base class instead of an
	internal method of PermissionSet. This should allow class to inherit
	from NamedPermissionSet properly.
	* PermissionSet.cs: Added an internal PolicyLevel property to allow
	policy file class name resolution. Fixed IsEmpty to return true if
	the list contains "empty" permissions. Fixed Copy to copy permissions
	even for unrestricted sets (again because of IUnrestrictedPermission).
	* SecurityManager.cs: Fixed Resolve(Evidence) because permission
	classes	Intersect methods can either return null or an empty
	PermissionSet.  Fixed ResolvePolicy(Evidence[]) for null (NET_2_0).

svn path=/trunk/mcs/; revision=33151
2004-09-01 12:25:44 +00:00
Raja R Harinath 7db07e84a1 (test-compiler-jit-real): Add barebones support for
multi-file tests.  If the compilation succeeded and there's no
.exe file, then assume nothing went wrong.  The rest is up to the
"Compiler options:".

svn path=/trunk/mcs/; revision=33150
2004-09-01 12:19:41 +00:00
Sebastien Pouliot 7650573139 2003-09-01 Sebastien Pouliot <[email protected]>
* PermissionSetTest.cs: Added tests for IsEmpty which can return true
	even when Count > 0. Added tests for FromXml to see if class names
	requires to be resolved when loaded from policy files.
	* SecurityManagerTest.cs: Minor changes to tests so they succeed with
	both Fx 1.1 and Fx 2.0 (beta 1).

svn path=/trunk/mcs/; revision=33149
2004-09-01 12:17:31 +00:00
Raja R Harinath ba74774bb7 new tests from bug 61128
svn path=/trunk/mcs/; revision=33148
2004-09-01 12:15:56 +00:00
Sebastien Pouliot 8f0a4478d2 2004-09-01 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionTest.cs: Ensure we aren't encoding NoZone in
	the permission XML (ToXml).

svn path=/trunk/mcs/; revision=33147
2004-09-01 12:09:34 +00:00
Sebastien Pouliot c621c39499 2004-09-01 Sebastien Pouliot <[email protected]>
* ZoneTest.cs: Added test to check that NoZone isn't included in the
	permission XML (returned by CreateIdentityPermission).

svn path=/trunk/mcs/; revision=33146
2004-09-01 12:07:28 +00:00
Zoltan Varga a05fcff377 2004-09-01 Zoltan Varga <[email protected]>
* class.c (class_compute_field_layout): System.Object is blittable.

	* marshal.c (mono_marshal_get_native_wrapper): Pass blittable classes
	as in/out. Fixes #59909.

svn path=/trunk/mono/; revision=33145
2004-09-01 11:25:03 +00:00
Zoltan Varga 14d9cf5543 2004-08-31 Zoltan Varga <[email protected]>
* pinvoke16.cs: Merge this into pinvoke2.cs, and fix it.

svn path=/trunk/mono/; revision=33144
2004-09-01 11:22:48 +00:00
Jordi Mas i Hernandez 9efeee350d fires OnFontChanged event
svn path=/trunk/mcs/; revision=33143
2004-09-01 10:20:57 +00:00
Atsushi Eno f79122f512 2004-09-01 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : on GetAttributeNavigator(int), namespace
	  node could be this XmlReader's attribute node.

svn path=/trunk/mcs/; revision=33142
2004-09-01 07:30:32 +00:00
Martin Baulig c526f08bb2 2004-09-01 Martin Baulig <[email protected]>
* metadata.h (MONO_TYPE_ISREFERENCE): Call
	mono_metadata_generic_inst_is_valuetype() if we're a generic
	instance to check whether our underlying type is a reference type.

svn path=/trunk/mono/; revision=33141
2004-09-01 06:54:59 +00:00
Martin Baulig da271a8271 2004-09-01 Martin Baulig <[email protected]>
* metadata.c (mono_type_size): If we're a generic instance, call
	mono_class_value_size() for value types.

svn path=/trunk/mono/; revision=33140
2004-09-01 06:52:55 +00:00
Martin Baulig 03aea3031b 2004-09-01 Martin Baulig <[email protected]>
* mini-x86.c (is_regsize_var): Added support for generic
	instances.
	(mono_arch_emit_prolog): Make this compile again, use
	`x86_push_imm_template (code)'.

svn path=/trunk/mono/; revision=33139
2004-09-01 06:49:24 +00:00
Atsushi Eno 4bdfbfea8a 2004-09-01 Atsushi Enomoto <[email protected]>
* XQueryCommand.cs : Forgot to commit. sys.xml internal class now
	  requires this instance for message delegating (not complete though).

svn path=/trunk/mcs/; revision=33138
2004-09-01 06:48:41 +00:00
Martin Baulig 3c9120a6dc Reverted this:
2004-08-02  Martin Baulig  <[email protected]>

	(New.DoEmit): Also use the `Newobj' opcode for generic instances.

svn path=/trunk/mcs/; revision=33137
2004-09-01 06:26:54 +00:00
Ravindra f983cf17f6 Minor formatting changes and added location for the coding style guideline for Mono.
svn path=/trunk/mcs/; revision=33136
2004-09-01 02:52:03 +00:00
Peter Dennis Bartok a6abcb0488 - Enabled display of strings
svn path=/trunk/mcs/; revision=33135
2004-09-01 02:07:37 +00:00
Peter Dennis Bartok 1f15c7f3df - Added (partial) implementation of DialogResult; rest needs to be
implemented when the modal loop code is done

svn path=/trunk/mcs/; revision=33134
2004-09-01 02:05:18 +00:00
Peter Dennis Bartok 846e52512d - Fixed to match the removal of the needs_redraw concept
svn path=/trunk/mcs/; revision=33133
2004-09-01 01:55:58 +00:00
Peter Dennis Bartok 4a2007b8c5 - Removed the rather odd split between 'needs redraw' and redrawing
- Now handles the events that require regeneration (ambient properties and
  size)

svn path=/trunk/mcs/; revision=33132
2004-09-01 01:55:20 +00:00
Peter Dennis Bartok f8565ab48e - Added firing of BackColorChanged event
- Added TopLevelControl property
- Fixed handling of WM_ERASEBKGRND message

svn path=/trunk/mcs/; revision=33131
2004-09-01 01:41:31 +00:00
Peter Dennis Bartok 63cb78b12f - Removed wrong stuff
svn path=/trunk/mcs/; revision=33130
2004-09-01 01:37:59 +00:00
Ben Maurer cc83e9707e 2004-08-30 Ben Maurer <[email protected]>
* mini-x86.c: make all push_imm instructions that get

svn path=/trunk/mono/; revision=33129
2004-09-01 01:05:18 +00:00
Ben Maurer e3d79551cc Support short forms of push imm
svn path=/trunk/mono/; revision=33128
2004-09-01 01:04:04 +00:00
Francisco Figueiredo Jr. 60f8562d0b 2004-08-31 Francisco Figueiredo Jr. <[email protected]>
* DbDataAdapter.cs: Fix for out of memory exceptions when trying to fill a dataset with a query which doesn't return a resultset like insert, delete or update.

svn path=/trunk/mcs/; revision=33127
2004-08-31 22:38:50 +00:00
Peter Dennis Bartok 6d5253809e - Updated
svn path=/trunk/mcs/; revision=33126
2004-08-31 22:10:26 +00:00
Marek Safar 2b4fc2916d 2004-08-31 Marek Safar <[email protected]>
* AxHost.cs: Implemented ClsidAttribute

svn path=/trunk/mcs/; revision=33125
2004-08-31 21:07:23 +00:00
Zoltan Varga d28335802d 2004-08-31 Zoltan Varga <[email protected]>
* marshal.c: Implement more custom marshalling functionality. Fixes
	#64915.

svn path=/trunk/mono/; revision=33122
2004-08-31 18:59:47 +00:00
Zoltan Varga 87cc31b3d6 2004-08-31 Zoltan Varga <[email protected]>
* marshal9.cs: Clean up and expand custom marshalling tests.

	* marshal10.cs: Merge this into marshal9.cs.

svn path=/trunk/mono/; revision=33121
2004-08-31 18:58:07 +00:00
Peter Dennis Bartok 1ee9cecc8c - Removed debug
- Minor fixes

svn path=/trunk/mcs/; revision=33120
2004-08-31 18:49:58 +00:00
Marek Safar 14e30a490e 2004-08-31 Marek Safar <[email protected]>
* ecore.cs (FieldExpr.Resolve): Fixed bug #64689.

svn path=/trunk/mcs/; revision=33119
2004-08-31 18:49:45 +00:00
Marek Safar 9b0a991937 2004-08-31 Marek Safar <[email protected]>
* test-286.cs: New test for #64689.

svn path=/trunk/mcs/; revision=33118
2004-08-31 18:49:28 +00:00
Peter Dennis Bartok 4c8263fbf7 - Finished (famous last words)
svn path=/trunk/mcs/; revision=33117
2004-08-31 18:48:31 +00:00
Gonzalo Paniagua Javier 04e11c49cc 2004-08-27 Gonzalo Paniagua Javier <[email protected]>
* HttpRuntime.cs: removed initializations to null in .cctor. Prevent
	other requests from avoiding the lock if they are received before the
	configuration system is inited. Ensure that the queue manager is not
	null before using it (it can be null while the first request is being
	processed).

svn path=/branches/mono-1-0/mcs/; revision=33115
2004-08-31 18:22:47 +00:00
Gonzalo Paniagua Javier e05d2fdb42 2004-08-31 Gonzalo Paniagua Javier <[email protected]>
* HttpRuntime.cs: initialize the response writer when finishing a
	request because it cannot be queued. Under heavy load we made new
	requests be processed before the ones that might be queued. This is
	no longer the case.

	* QueueManager.cs: instead of queueing/dequeuing separately, we now
	have a single method that does everything needed to decide which one
	will be the next request processed.

svn path=/trunk/mcs/; revision=33113
2004-08-31 18:18:35 +00:00
Atsushi Eno 66af161d92 2004-08-31 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs,
	  XPathSequence.cs :
	  Implemented GroupExpr.Evaluate() [union/intersect/except].
	  Fixed incorrect iterator input for DescendantExpr.Evaluate().
	  MinusExpr is (already) implemented not to be evaluated.
	* XQueryExpression.cs :
	  PI name and nameExpr could be implemented.
	* XQueryFunction.cs :
	  UserFunctionCallExpr.Invoke() should not be invoked.
	* XQueryFunctionCliImpl.cs :
	  Implemented count(), doc(). Halfly implemented trace().
	* XmlQueryException.cs : Serializable.

svn path=/trunk/mcs/; revision=33111
2004-08-31 17:34:24 +00:00
Miguel de Icaza f726ac8d5a Style
svn path=/trunk/mcs/; revision=33110
2004-08-31 17:24:59 +00:00
Atsushi Eno ed26cfb28c 2004-08-31 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Implemented the whole ComparisonExpr.Evaluate(). It now handles
	  empty sequence expectedly.
	* XQueryComparisonOperator.cs : added.

svn path=/trunk/mcs/; revision=33105
2004-08-31 16:01:09 +00:00
Atsushi Eno 124253cf6b 2004-08-31 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources:
	  added System.Xml.Query/XQueryComparisonOperator.cs.

svn path=/trunk/mcs/; revision=33104
2004-08-31 16:00:06 +00:00
Ben Maurer 660bcf17d0 2004-08-31 Ben Maurer <[email protected]>
* delegate.cs: Add seperate instance expr field for miguel.

svn path=/trunk/mcs/; revision=33103
2004-08-31 15:30:38 +00:00
Paolo Molaro 90318349e4 Tue Aug 31 17:55:15 CEST 2004 Paolo Molaro <[email protected]>
* mono-debug.c, debug-mono-symfile.c: add some locking love.

svn path=/trunk/mono/; revision=33102
2004-08-31 14:51:47 +00:00
Dick Porter 3c598337dd Compile fixes.
svn path=/trunk/mono/; revision=33101
2004-08-31 14:42:25 +00:00
Atsushi Eno 8750d1a80d 2004-08-31 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Revised some parameters for XPathSequence classes ctor().
	  Don't require XPathSequence while they are not required.
	  AxisIterator need to accept only current node as its input.
	  Implemented node comparison operators.
	  Removed AxisStepExpr.ParentStep (in the future it might hold line
	  information).
	* XQueryParser.jay : changes wrt AxisStepExpr.ParentStep.
	* XPathSequence.cs, XQueryExpression.cs, XQueryFunction.cs :
	  Removed some extraneous code.
	  NodeIterator.ctor() now requires XPathNavigator and XQueryContext
	  instead of XPathSequence.
	  Added SelfIterator (derived from NodeIterator).

svn path=/trunk/mcs/; revision=33100
2004-08-31 14:23:49 +00:00
Sachin Kumar 1f35221ca6 Added more tests for statements
svn path=/trunk/mcs/; revision=33099
2004-08-31 13:21:31 +00:00
Sanja Gupta 27acd3b9c1 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new interfaces in System.Web.UI.WebControls.WebParts namespace.

svn path=/trunk/mcs/; revision=33098
2004-08-31 13:18:29 +00:00
Sanja Gupta 224fc285e0 ChangeLog: Updated ChangeLog.
ConnectionConsumerCallback.cs:
ConnectionProviderCallback.cs:
IFilter.cs:
IParameters.cs:
IPersonalizable.cs:
IVersioningPersonalizable.cs:
WebPartAuthorizationEventArgs.cs:
WebPartAuthorizationEventHandler.cs:
WebPartCancelEventHandler.cs:
WebPartConnectionsEventHandler.cs:
WebPartDisplayModeCancelEventHandler.cs:
WebPartDisplayModeEventHandler.cs:
WebPartEventHandler.cs:
WebPartVerbsEventHandler.cs: Minor modifications, compiler error corrections
	and removal of "sealed" specifier from *EventHandler.cs
WebPartDisplayMode.cs: Added new file.

svn path=/trunk/mcs/; revision=33097
2004-08-31 13:16:04 +00:00
Zoltan Varga 7102cef370 2004-08-31 Zoltan Varga <[email protected]>
* pinvoke12.cs: Remove, this was merged into pinvoke2.cs a long time
	ago.

svn path=/trunk/mono/; revision=33096
2004-08-31 13:13:06 +00:00
Rafael Teixeira 0b5c59e261 2004-08-31 Rafael Teixeira <[email protected]>
* System.Messaging.Design/QueuePathDialog.cs :Commented out some bits because it would not compile as it couldn't find System.Windows.Forms.Design

svn path=/trunk/mcs/; revision=33095
2004-08-31 12:57:37 +00:00
Sanja Gupta 3e622175b4 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new *EventArgs.cs and *EventHandler in
        System.Web.UI.WebControls namespace.

svn path=/trunk/mcs/; revision=33094
2004-08-31 12:33:25 +00:00
Tim Coleman f337c45d30 2004-08-31 Tim Coleman <[email protected]>
* XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
                Add new stub classes
        * SignedXml.cs Transform.cs:
                New methods for 2.0

svn path=/trunk/mcs/; revision=33093
2004-08-31 12:29:00 +00:00
Sanja Gupta ae41606aa9 ChangeLog: Updated ChangeLog
AuthenticateEventHandler.cs
CreateUserErrorEventArgs.cs
CreateUserErrorEventHandler.cs
DetailsViewCommandEventHandler.cs
DetailsViewDeleteEventArgs.cs
DetailsViewDeleteEventHandler.cs
DetailsViewDeletedEventArgs.cs
DetailsViewDeletedEventHandler.cs
DetailsViewInsertEventArgs.cs
DetailsViewInsertEventHandler.cs
DetailsViewInsertedEventArgs.cs
DetailsViewInsertedEventHandler.cs
DetailsViewModeEventArgs.cs
DetailsViewModeEventHandler.cs
DetailsViewPageEventHandler.cs
DetailsViewUpdateEventArgs.cs
DetailsViewUpdateEventHandler.cs
DetailsViewUpdatedEventArgs.cs
DetailsViewUpdatedEventHandler.cs
FormViewCommandEventHandler.cs
FormViewDeleteEventArgs.cs
FormViewDeleteEventHandler.cs
FormViewDeletedEventArgs.cs
FormViewDeletedEventHandler.cs
FormViewInsertEventArgs.cs
FormViewInsertEventHandler.cs
FormViewInsertedEventArgs.cs
FormViewInsertedEventHandler.cs
FormViewModeEventHandler.cs
FormViewPageEventHandler.cs
FormViewUpdateEventArgs.cs
FormViewUpdateEventHandler.cs
FormViewUpdatedEventArgs.cs
FormViewUpdatedEventHandler.cs
GridViewCancelEditEventArgs.cs
GridViewCancelEditEventHandler.cs
GridViewCommandEventHandler.cs
GridViewDeleteEventArgs.cs
GridViewDeleteEventHandler.cs
GridViewDeletedEventArgs.cs
GridViewDeletedEventHandler.cs
GridViewEditEventHandler.cs
GridViewPageEventHandler.cs
GridViewRowEventHandler.cs
GridViewSelectEventHandler.cs
GridViewSortEventArgs.cs
GridViewSortEventHandler.cs
GridViewUpdateEventArgs.cs
GridViewUpdateEventHandler.cs
GridViewUpdatedEventArgs.cs
GridViewUpdatedEventHandler.cs
ImageMapEventHandler.cs
MailMessageEventHandler.cs
MenuEventHandler.cs
ObjectDataSourceDisposingEventHandler.cs
ObjectDataSourceEventHandler.cs
ObjectDataSourceMethodEventArgs.cs
ObjectDataSourceMethodEventHandler.cs
ObjectDataSourceSelectingEventArgs.cs
ObjectDataSourceSelectingEventHandler.cs
ObjectDataSourceStatusEventArgs.cs
ObjectDataSourceStatusEventHandler.cs
SendMailErrorEventHandler.cs
SiteMapNodeItemEventHandler.cs
SqlDataSourceSelectingEventArgs.cs
SqlDataSourceSelectingEventHandler.cs
TreeNodeEventHandler.cs
WizardNavigationEventArgs.cs
WizardNavigationEventHandler.cs : Minor modifications, compiler error corrections and removal of "sealed" modifier in *EventHandler.cs

svn path=/trunk/mcs/; revision=33092
2004-08-31 12:27:59 +00:00
Nick Drochak 4dfe8a4760 2004-08-31 Nick Drochak <[email protected]>
* DSACryptoServiceProviderTest.cs:
	* RSACryptoServiceProviderTest.cs: Feed csc smaller bite sizes.

svn path=/trunk/mcs/; revision=33091
2004-08-31 12:17:20 +00:00
Nick Drochak dfd1fb461e 2004-08-31 Nick Drochak <[email protected]>
* MarshalTest.cs: Make tests pass on .NET 1.1.

svn path=/trunk/mcs/; revision=33090
2004-08-31 12:15:18 +00:00
Nick Drochak 1359cc2d58 2004-08-31 Nick Drochak <[email protected]>
* StringWriterTest.cs: Eliminate ambiguity so csc can compile.

svn path=/trunk/mcs/; revision=33089
2004-08-31 12:13:56 +00:00
Nick Drochak 01e2ba96d3 2004-08-31 Nick Drochak <[email protected]>
* BooleanTest.cs: Eliminate compiler warning.
	* DateTimeTest.cs: Allow csc to compile.
	* TypeTest.cs: Use unsafe for pointers.

svn path=/trunk/mcs/; revision=33088
2004-08-31 12:11:15 +00:00
Rafael Teixeira 79a860f4bf cvsignore 'log' entry file
svn path=/trunk/mcs/; revision=33087
2004-08-31 11:51:28 +00:00
Sebastien Pouliot 37badd7318 2004-08-31 Sebastien Pouliot <[email protected]>
* PermissionSet.cs: Fixed RemovePermission and Intersect (due to typos
	in unit tests). Fixed SetPermission (null).

svn path=/trunk/mcs/; revision=33086
2004-08-31 10:47:20 +00:00
Jordi Mas i Hernandez 779c972c43 adds autorepeat timer, uses a single timer, fixes scrolling bugs, adds new methods
svn path=/trunk/mcs/; revision=33085
2004-08-31 10:35:04 +00:00
Sebastien Pouliot 59519b935a 2003-08-31 Sebastien Pouliot <[email protected]>
* PermissionSetTest.cs: Fixed two typos than changed the behaviour of
	Intersect and RemovePermission.

svn path=/trunk/mcs/; revision=33084
2004-08-31 10:23:10 +00:00
Sanja Gupta 1de07739d1 ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new delegates in System.Web.SessionState and
		System.Web.UI.

svn path=/trunk/mcs/; revision=33083
2004-08-31 10:06:48 +00:00
Sanja Gupta e809bba476 ChangeLog: Updated ChangeLog.
SessionStateItemExpireCallback.cs: Explicit modifier "sealed" not
        required in definition as delegates, by default are sealed.

svn path=/trunk/mcs/; revision=33082
2004-08-31 10:03:27 +00:00
Sanja Gupta 9648804806 ChangeLog: Updated ChangeLog.
ControlSkinProc.cs:
DataSourceViewOperationCallback.cs:
DataSourceViewSelectCallback.cs:
ExtractTemplateValuesMethod.cs: Explicit modifier "sealed" not
        required in definition as delegates, by default are sealed.

svn path=/trunk/mcs/; revision=33081
2004-08-31 10:01:14 +00:00
Sanja Gupta 644929bf7c ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new interfaces in System.Web.SessionState
         and System.Web.UI.

svn path=/trunk/mcs/; revision=33080
2004-08-31 09:20:57 +00:00
Sanja Gupta f38907144e ChangeLog: Updated ChangeLog.
IDReferencePropertyAttribute.cs: Corrected and changed from interface
          to class.
IMobileTextWriter.cs: Corrected method signatures.

svn path=/trunk/mcs/; revision=33079
2004-08-31 09:15:26 +00:00
Ravindra b724293a74 Added sources list for test dll.
svn path=/trunk/mcs/; revision=33078
2004-08-31 09:13:33 +00:00
Atsushi Eno 6d77b44607 2004-08-31 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources:
	  added System.Xml.Query/XQueryArithmeticOperator.cs.

svn path=/trunk/mcs/; revision=33077
2004-08-31 07:18:03 +00:00
Atsushi Eno ce6aa0b2cb 2004-08-31 Atsushi Enomoto <[email protected]>
* XQueryArithmeticOperator.cs : added.
	* XPath2Expression.cs, XQueryParser.jay :
	  renamed some ArithmeticOperator enumeration members.
	  Implemented ArithmeticOperationExpr.Evaluate().

svn path=/trunk/mcs/; revision=33076
2004-08-31 07:17:34 +00:00
Umadevi S 101f30c91c 2004-08-31 Umadevi S <[email protected]>
* OdbcDataReaderTest.cs - Added a test for Numeric Type

svn path=/branches/mono-1-0/mcs/; revision=33075
2004-08-31 04:30:26 +00:00
Umadevi S 674e54c058 2004-08-31 Umadevi S ([email protected])
* OdbcDataReader.cs - Fixed Decimal parsing

svn path=/branches/mono-1-0/mcs/; revision=33074
2004-08-31 03:51:49 +00:00
Umadevi S 0287ee0f81 2004-08-31 Umadevi S ([email protected])
* OdbcDataReader.cs - Fixed Decimal parsing

svn path=/trunk/mcs/; revision=33073
2004-08-31 03:44:04 +00:00
Umadevi S 1a04912c2e 2004-08-31 Umadevi S <[email protected]>
* OdbcDataReaderTest.cs - Added a test for Numeric Type

svn path=/trunk/mcs/; revision=33072
2004-08-31 03:40:41 +00:00
Tim Coleman 1b4a5c9cf4 2004-08-31 Tim Coleman <[email protected]>
* EncryptedXml.cs SymmetricKeyWrap.cs:
                Get symmetric key wrap to work for AES keys.

svn path=/trunk/mcs/; revision=33071
2004-08-31 02:29:44 +00:00
Peter Dennis Bartok 0a5570ed6a - Implemented CheckBox drawing code
svn path=/trunk/mcs/; revision=33069
2004-08-30 20:42:26 +00:00
Peter Dennis Bartok b2ec6aaa28 - Made Redraw() and CheckRedraw() virtual
- Improved mouse up/down/move logic to properly track buttons

svn path=/trunk/mcs/; revision=33068
2004-08-30 20:42:10 +00:00
Bernie Solomon e693045e65 * decl.cs (SetupCache): constructors are not
inherited

svn path=/trunk/mcs/; revision=33067
2004-08-30 20:32:38 +00:00
Bernie Solomon e2ea8acf20 2004-08-30 Bernie Solomon <[email protected]>
* class.cs (FindMembers): filter on modflags
	for constructors & constructors are never inherited

svn path=/trunk/mcs/; revision=33065
2004-08-30 20:29:07 +00:00
Sebastien Pouliot 0f3bf5fa03 2004-08-30 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs: Now use Uri class to create the local
	application directory.
	* ApplicationDirectoryMembershipCondition.cs: Now use Uri class to
	CheckEvidence.
	* Site.cs: Implemented CreateFromUrl using Uri class.
	* Url.cs: Now use Uri class to prepare URLs.
	* UrlMembershipCondition.cs: Now use Url class (instead of a string)
	for URLs.
	* Zone.cs: Implemented default CreateFromUrl using Uri class.

svn path=/trunk/mcs/; revision=33063
2004-08-30 19:38:53 +00:00
Sebastien Pouliot 909e5a76da 2004-08-30 Sebastien Pouliot <[email protected]>
* NamedPermissionSet.cs: Fixed Description in copies, GetHashCode and
	Equals (for NET_2_0). Fixed handling of null Name when deserialized
	from XML.
	* PermissionSet.cs: AddPermission now unions permissions of the same
	type. CopyTo throw (most) exceptions only if there are items in the
	set. Implemented Demand (but without support for Assert, Deny and
	PermitOnly). Fixed deserialized from XML when no class is specified.
	Started implementation of ConvertPermissionSet (error cases). Fixed
	Intersect to be compatible (including bugs like FDBK14612) with MS.
	RemovePermission now compatible with MS (bug? FDBK14622). Fixed Union
	to work with permissions that do not implement IUnrestrictedPermission.

svn path=/trunk/mcs/; revision=33061
2004-08-30 19:23:13 +00:00
Sebastien Pouliot 9d8a237ff8 2004-08-30 Sebastien Pouliot <[email protected]>
* Assembly.cs: Added internal Demand(PermissionSet) for CAS.

svn path=/trunk/mcs/; revision=33059
2004-08-30 19:13:12 +00:00
Sebastien Pouliot 30763498fd 2004-08-30 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added Mono.Security/Uri.cs to the build.

svn path=/trunk/mcs/; revision=33058
2004-08-30 19:11:09 +00:00
Sebastien Pouliot 725fc4161c 2004-08-30 Sebastien Pouliot <[email protected]>
* Uri.cs: Copied from System.dll assembly and started adaptation for
	it's reuse inside the security classes (CAS).

svn path=/trunk/mcs/; revision=33057
2004-08-30 19:09:12 +00:00
Sebastien Pouliot e6764ca344 2004-08-30 Sebastien Pouliot <[email protected]>
* SiteTest.cs: Added tests for CreateFromUrl. Updated AllChars for the
	differences in Fx 2.0.
	* UrlTest.cs: Unignore Url_InvalidSite and started changes to be
	compatible with NET_2_0.
	* ZoneTest.cs: Added tests for CreateFromUrl and ToString.

svn path=/trunk/mcs/; revision=33056
2004-08-30 19:05:17 +00:00
Sebastien Pouliot 844b078b26 2003-08-30 Sebastien Pouliot <[email protected]>
* NamedPermissionTest.cs: Added unit tests for Copy(), Copy(name),
	more tests for From/ToXml and Equals/GetHashCode (for NET_2_0).
	* PermissionSetTest.cs: Added new unit tests for AddPermission,
	ContainsNonCodeAccessPermissions, partial tests for undocumented
	ConvertPermissionSet, Copy, CopyTo, GetHashCode (for NET_2_0),
	GetPermission, Intersect, IsSubset, RemovePermission, SetPermission
	and Union.

svn path=/trunk/mcs/; revision=33054
2004-08-30 18:56:33 +00:00
Tim Coleman 9263bae3cd 2004-08-30 Tim Coleman <[email protected]>
* EncryptedXml.cs: Implement lots of XML Encryption code.

svn path=/trunk/mcs/; revision=33053
2004-08-30 17:49:26 +00:00
Zoltan Varga 9129c2cba6 2004-08-30 Zoltan Varga <[email protected]>
* mini.c (mono_create_jump_trampoline): Store the jump trampolines
	in a per-domain hash.

svn path=/trunk/mono/; revision=33052
2004-08-30 17:09:05 +00:00
Zoltan Varga 591c7a0464 2004-08-30 Zoltan Varga <[email protected]>
* domain-internals.h domain.c: Add a per-domain jump trampoline hash.

svn path=/trunk/mono/; revision=33051
2004-08-30 17:05:53 +00:00
Peter Dennis Bartok f412e6f592 - Initial check-in
svn path=/trunk/mcs/; revision=33050
2004-08-30 16:48:59 +00:00
Tim Coleman 56df8d8a7b 2004-08-30 Tim Coleman <[email protected]>
* EncryptedXml.cs: Implement lots of XML Encryption code.
        * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
        * XmlSignature.cs: Add NET_2_0 check around EncryptedKey

svn path=/trunk/mcs/; revision=33049
2004-08-30 16:02:17 +00:00
Peter Dennis Bartok f4a7d6aaca - Updated to fix broken build. Not complete yet.
svn path=/trunk/mcs/; revision=33048
2004-08-30 15:44:20 +00:00
Peter Dennis Bartok cc4eeab2ae - Initial checkin
svn path=/trunk/mcs/; revision=33047
2004-08-30 15:28:14 +00:00
Zoltan Varga 2a565ca75c 2004-08-30 Zoltan Varga <[email protected]>
* mini-amd64.c (merge_argument_class_from_type): Handle generic
	types.

svn path=/trunk/mono/; revision=33046
2004-08-30 15:20:08 +00:00
Peter Dennis Bartok 1d164dc3aa - Initial check-in
svn path=/trunk/mcs/; revision=33045
2004-08-30 15:17:20 +00:00
Zoltan Varga 2fb1f21ded 2004-08-30 Zoltan Varga <[email protected]>
* scripts/mcs.in: Remove obsolete comment.

svn path=/trunk/mono/; revision=33044
2004-08-30 15:16:59 +00:00
Zoltan Varga cf88d460ea 2004-08-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_MethodBase_GetMethodFromHandle): Rename to ...Internal.

	* icall.c: Fix some warnings.

svn path=/trunk/mono/; revision=33043
2004-08-30 15:16:10 +00:00
Zoltan Varga 6d3eb65e2b 2004-08-30 Zoltan Varga <[email protected]>
* MethodBase.cs (GetMethodFromHandle): Avoid passing a valuetype to
	icalls.

svn path=/trunk/mcs/; revision=33042
2004-08-30 15:14:47 +00:00
Zoltan Varga f647c6a0b4 2004-08-30 Zoltan Varga <[email protected]>
* threads.c (abort_appdomain_thread): Fix unref errors.
	(mono_thread_current): Fix THREAD_DEBUG define.

svn path=/trunk/mono/; revision=33041
2004-08-30 15:07:46 +00:00
Atsushi Eno f0e7566f48 2004-08-30 Atsushi Enomoto <[email protected]>
* XPathSequence.cs : fixed NodeIterator to get correct current node
	  from the input sequence. Now open MoveNext() again as public to
	  allow override by NodeIterator.

svn path=/trunk/mcs/; revision=33040
2004-08-30 15:06:23 +00:00
Atsushi Eno 00fb1ea63f 2004-08-30 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : need to set EOF when input reader reached to
	  the end.

svn path=/trunk/mcs/; revision=33039
2004-08-30 14:45:32 +00:00
Atsushi Eno a86ca5219b 2004-08-30 Atsushi Enomoto <[email protected]>
* XsltException.cs : Message property is not overriden in NET_2_0.

svn path=/trunk/mcs/; revision=33037
2004-08-30 11:53:18 +00:00
Atsushi Eno 07cf99f854 2004-08-30 Atsushi Enomoto <[email protected]>
* XsltException.cs : added NET_2_0 constructors too.

svn path=/trunk/mcs/; revision=33036
2004-08-30 11:35:47 +00:00
Atsushi Eno 84f8dee162 2004-08-30 Atsushi Enomoto <[email protected]>
* XsltCompileException.cs : added NET_2_0 constructors.
	  Hide property Message under NET_2_0.

svn path=/trunk/mcs/; revision=33035
2004-08-30 11:31:52 +00:00
Nick Drochak fe5a1c8902 2004-08-30 Nick Drochak <[email protected]>
* StackTraceTest.cs: Fix warning.

svn path=/trunk/mcs/; revision=33034
2004-08-30 11:30:43 +00:00
Sanja Gupta 5c3379c1f3 ChangeLog: Updated ChangeLog
MailMessage.cs:
MailMessageWrapper.cs:
SmtpClient.cs: Fields property of MailMessage from .Net 1.1 was not
        handled completely.

svn path=/branches/mono-1-0/mcs/; revision=33033
2004-08-30 10:44:48 +00:00
Umadevi S 4854859bf1 2004-08-30 Umadevi S ([email protected])
* OdbcType.cs - removed inheritance from short.

svn path=/branches/mono-1-0/mcs/; revision=33032
2004-08-30 08:24:20 +00:00
Atsushi Eno e4b1cc6ead 2004-08-30 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : empty ExprSequence should not be allowed for
	  FLWORExpr.WhereClause. It should be null.
	* XPathSequence.cs : ExprSequenceIterator.Clone() was missing copy of
	  the input sequence. FLWORIterator.MoveNext() had incorrect !(not)
	  and wrong Where test.
	* XQueryContext.cs : sequence should be cloned when pushed to context.

svn path=/trunk/mcs/; revision=33031
2004-08-30 08:12:35 +00:00
Umadevi S e86e45c47c 2004-08-30 Umadevi S ([email protected])
* OdbcType.cs - removed inheritance from short.

svn path=/trunk/mcs/; revision=33030
2004-08-30 07:51:44 +00:00
Atsushi Eno b0b0630120 2004-08-30 Atsushi Enomoto <[email protected]>
* XQueryCommandImpl.cs : dust cleaning :(

svn path=/trunk/mcs/; revision=33029
2004-08-30 06:04:55 +00:00
Peter Dennis Bartok 150388a6c9 - Transfered files from previous version of System.Windows.Forms
- Added full copyright header

svn path=/trunk/mcs/; revision=33028
2004-08-30 04:36:38 +00:00
Peter Dennis Bartok 9c60b9c533 - Added System.Resources source files
svn path=/trunk/mcs/; revision=33027
2004-08-30 04:35:44 +00:00
Atsushi Eno 1d63027f6e 2004-08-30 Atsushi Enomoto <[email protected]>
* KeyInfo.cs : NET_1_1 build fix.

svn path=/trunk/mcs/; revision=33019
2004-08-30 03:04:54 +00:00
Atsushi Eno da424bb0a7 2004-08-30 Atsushi Enomoto <[email protected]>
* XmlSchemaType.cs : quick build fix.

svn path=/trunk/mcs/; revision=33012
2004-08-30 02:50:23 +00:00
Atsushi Eno 1ef82f9f54 2004-08-30 Atsushi Enomoto <[email protected]>
* XQueryASTCompiler.cs, XQueryStaticContext.cs :
	  Now it requires Evidence and XQueryCommandImpl for security check
	  and event dispatch.
	* XQueryCommandImpl.cs :
	  Provide Evidence for compiler. Added some code for message dispatch.
	* XQueryContext.cs :
	  Now don't pool variable only in XQueryContextManager.
	  When variable name could not be resolved, return empty sequence
	  (not sure if it is always correct).
	  Fixes which reflects XPathEmptySequence.ctor() parameter changes.
	* XQueryCliFunction.cs :
	  Now it requires CAS if Evidence is supplied (in the future
	  Evidence won't be null _at any time_).
	* XQueryConvert.cs :
	  implemented GetFallbackType(). Fixed some comments.
	* XPathSequence.cs :
	  Don't require XPathSequence as an argument for XPathEmptySequence.
	  Implemented FilteredIterator.
	  Implemented FLWORIterator partly (not working).
	  Fixed some incorrect exception type: XPathEx- to XmlQueryEx-.
	  Dispatch message event to XQueryStaticContext.OnMessageEvent().
	  Added EnumeratorIterator.
	* XQueryFunction.cs:
	  Fixes which reflects XPathEmptySequence.ctor() parameter changes.
	* XQueryExpression.cs :
	  Commonized content serialization for node constructors.
	* XPath2Expression.cs :
	  use XPathItem.TypedValue instead of (string) Value.
	  In effective boolean value computation, Check Decimal as well.
	  Fixed misimplemented QuantifiedExpr.EvaluateAsBoolean().
	  Fix which reflects XQueryContext.PushVariables() changes.
	  Handle possible null argument on ParenthesizedExpr i.e. "( )".

svn path=/trunk/mcs/; revision=33011
2004-08-30 02:09:10 +00:00
Atsushi Eno fd301fc3b0 2004-08-30 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented WriteValue(object) for known types.

svn path=/trunk/mcs/; revision=33010
2004-08-30 01:38:36 +00:00
Atsushi Eno 8f89524e5f 2004-08-30 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatype.cs : Removed FromName(localName) that cannot
	  handle xdt:* types.
	* XmlSchemaType.cs : added internal GetBuiltInType() methods that
	  mix GetBuiltInSimpleType() and GetBuiltInComplexType().

svn path=/trunk/mcs/; revision=33009
2004-08-30 01:33:00 +00:00
Atsushi Eno 301bc7b905 2004-08-30 Atsushi Enomoto <[email protected]>
* XmlElement.cs : XmlAttributeCollection doesn't have to be created
	  every time until the actual use. This sometimes optimizes
	  attribute-less XML performance siginificantly.

svn path=/trunk/mcs/; revision=33008
2004-08-30 01:21:56 +00:00
Tim Coleman 74bc359484 2004-08-29 Tim Coleman <[email protected]>
* EncryptedKey.cs: Fix element name when generating XML.
        * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
        * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
        * KeyInfoName.cs: Add missing constructor
        * SymmetricKeyWrap.cs: Add untested TripleDES key wrap
        algorithms for encryption/decryption
        * XmlSignature.cs: Add EncryptedKey constant.

svn path=/trunk/mcs/; revision=33007
2004-08-30 00:23:11 +00:00
Zoltan Varga 51ec241f39 2004-08-30 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h (amd64_imul_reg_membase_size): Fix REX
	generation.

svn path=/trunk/mono/; revision=33003
2004-08-29 21:04:04 +00:00
Tim Coleman ac0be62a24 2004-08-29 Tim Coleman <[email protected]>
* EncryptedData.cs: remove methods that I mistakenly added.

svn path=/trunk/mcs/; revision=33002
2004-08-29 19:15:48 +00:00
Zoltan Varga ec395438af 2004-08-29 Zoltan Varga <[email protected]>
* mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: Ongoing SSE
	work.

svn path=/trunk/mono/; revision=33001
2004-08-29 18:56:13 +00:00
Ben Maurer eca89061d7 2004-08-29 Ben Maurer <[email protected]>
* PointerArithmetic (Resolve): make sure we are not doing
	pointer arith on void*. Also, make sure we are resolved
	by not setting eclass until resolve.

	All callers: Make sure that PointerArithmetic gets resolved.

svn path=/branches/mono-1-0/mcs/; revision=33000
2004-08-29 18:07:32 +00:00
Ben Maurer 86b121ce10 2004-08-29 Ben Maurer <[email protected]>
* PointerArithmetic (Resolve): make sure we are not doing
	pointer arith on void*. Also, make sure we are resolved
	by not setting eclass until resolve.

	All callers: Make sure that PointerArithmetic gets resolved.

svn path=/trunk/mcs/; revision=32999
2004-08-29 18:07:14 +00:00
Ben Maurer cc58e0114e 2004-08-29 Ben Maurer <[email protected]>
* ArrayCreation (LookupType): If the type does not resolve
	to an array, give an error.

svn path=/branches/mono-1-0/mcs/; revision=32998
2004-08-29 18:01:17 +00:00
Ben Maurer 1e3557ed79 2004-08-29 Ben Maurer <[email protected]>
* ArrayCreation (LookupType): If the type does not resolve
	to an array, give an error.

svn path=/trunk/mcs/; revision=32997
2004-08-29 18:00:45 +00:00
Tim Coleman a9869c59af 2004-08-29 Tim Coleman <[email protected]>
* EncryptedData.cs EncryptedXml.cs:
                Add .NET 2.0 method stubs.

svn path=/trunk/mcs/; revision=32996
2004-08-29 17:35:53 +00:00
Jambunathan K df98f5024c * main.c: modified cattrs_for_method so that
emitting of ".param[] = ..." is complete.

* get.c: Modified get_constant() so that
  1. MONO_TYPE_CHAR now handles unicode characters
  2. MONO_TYPE_I8 now emits int64(...)
  3. MONO_TYPE_STRING emits a bytearray()

svn path=/trunk/mono/; revision=32994
2004-08-29 11:23:43 +00:00
Zoltan Varga b4872d630c 2004-08-29 Zoltan Varga <[email protected]>
* mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: More SSE
	work.

svn path=/trunk/mono/; revision=32993
2004-08-29 11:12:50 +00:00
Zoltan Varga c4b1d2eec9 2004-08-29 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: More SSE work.

svn path=/trunk/mono/; revision=32992
2004-08-29 11:11:38 +00:00
Zoltan Varga 20308082fb 2004-08-29 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: Add SSE2 instructions.

svn path=/trunk/mono/; revision=32991
2004-08-29 09:41:22 +00:00
Zoltan Varga 5b097fa738 2004-08-29 Zoltan Varga <[email protected]>
* mini-amd64.c cpu-amd64.md: Implement checked int<->uint casts.
	Beginnings of SSE2 support.

svn path=/trunk/mono/; revision=32990
2004-08-29 09:38:33 +00:00
Zoltan Varga b5e8e77cae 2004-08-29 Zoltan Varga <[email protected]>
* exceptions.cs: Add more tests for checked int<->uint casts.

svn path=/trunk/mono/; revision=32989
2004-08-29 09:37:37 +00:00
Zoltan Varga 8c5e3fae1f 2004-08-29 Zoltan Varga <[email protected]>
* metadata.h (MONO_TYPE_ISSTRUCT): Fix warning.

svn path=/trunk/mono/; revision=32988
2004-08-29 09:33:51 +00:00
Zoltan Varga 41abe3bf63 2004-08-29 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Reflection_MethodBase_GetMethodFromHandle): New icall.

svn path=/trunk/mono/; revision=32987
2004-08-29 09:10:37 +00:00
Zoltan Varga 84ba14832e 2004-08-29 Zoltan Varga <[email protected]>
* MethodBase.cs (GetMethodFromHandle): Implement.

svn path=/trunk/mcs/; revision=32986
2004-08-29 09:09:29 +00:00
Nick Drochak 75e9c31865 2004-08-29 Nick Drochak <[email protected]>
* ResourceReaderTest.cs: Make tests pass (correct path to resources)
	on MS.NET 1.1.

svn path=/trunk/mcs/; revision=32978
2004-08-29 04:43:19 +00:00
Nick Drochak 0c5afd7270 2004-08-29 Nick Drochak <[email protected]>
* BinderTests.cs: Make tests pass on MS.NET 1.1.

svn path=/trunk/mcs/; revision=32977
2004-08-29 04:18:05 +00:00
Nick Drochak 989c2b4ddc 2004-08-29 Nick Drochak <[email protected]>
* TypeBuilderTestTest.cs: Call EnumBuilder.CreateType()	before you call
	TypeBuilder.CreateType().

svn path=/trunk/mcs/; revision=32976
2004-08-29 04:03:10 +00:00
Nick Drochak 6558ad0758 2004-08-29 Nick Drochak <[email protected]>
* StackFrameTest.cs : Ignore tests that fail on MS.NET.

svn path=/trunk/mcs/; revision=32975
2004-08-29 02:39:46 +00:00
Nick Drochak 21c44bae85 oops forgot.
svn path=/trunk/mcs/; revision=32974
2004-08-28 22:34:17 +00:00
Zoltan Varga 5016a3314d 2004-08-28 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: New test for byref string arrays.

svn path=/trunk/mono/; revision=32970
2004-08-28 19:21:56 +00:00
Zoltan Varga 9d62674877 2004-08-28 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): Add support for byref
	string arrays.

svn path=/trunk/mono/; revision=32969
2004-08-28 19:21:14 +00:00
Ben Maurer 000f1fb3cc 2004-08-26 Ben Maurer <[email protected]>
* StreamWriter.cs: avoid String.ToCharArray for perf.

svn path=/branches/mono-1-0/mcs/; revision=32967
2004-08-28 13:12:30 +00:00
Ben Maurer 8942525843 2004-08-26 Ben Maurer <[email protected]>
* StreamWriter.cs: avoid String.ToCharArray for perf.

svn path=/trunk/mcs/; revision=32966
2004-08-28 13:03:15 +00:00
Ben Maurer 152ab7fe82 2004-08-28 Ben Maurer <[email protected]>
* gc.c: actually enable paolo's patch to make GC warnings

svn path=/branches/mono-1-0/mono/; revision=32965
2004-08-28 12:41:43 +00:00
Martin Baulig 514e0ea62e 2004-08-28 Martin Baulig <[email protected]>
* mini-x86.c (mono_arch_instrument_epilog): Added support for
	generic instances.

	* mini.c
	(mono_type_to_ldind, mono_type_to_stind, type_to_eval_stack_type):
	Handle generic instances recursively.

svn path=/trunk/mono/; revision=32958
2004-08-28 01:36:08 +00:00
Martin Baulig 182f4665c3 2004-08-28 Martin Baulig <[email protected]>
* gen-73.cs: New test for #62552.

svn path=/trunk/mcs/; revision=32956
2004-08-28 01:14:57 +00:00
Martin Baulig 97d6e08809 2004-08-28 Martin Baulig <[email protected]>
* gen-72.cs: New test for #58307.

svn path=/trunk/mcs/; revision=32955
2004-08-28 01:13:02 +00:00
Martin Baulig f715d5167f 2004-08-28 Martin Baulig <[email protected]>
* metadata.c
	(mono_metadata_generic_inst_is_valuetype): New public function.

	* metadata.h (MONO_TYPE_ISSTRUCT): Call
	mono_metadata_generic_inst_is_valuetype() if we're a generic
	instance to check whether our underlying type is a valuetype.

svn path=/trunk/mono/; revision=32954
2004-08-28 01:09:06 +00:00
Martin Baulig e34b49c0e8 Fix it again.
svn path=/trunk/mcs/; revision=32953
2004-08-27 23:05:12 +00:00
Martin Baulig 1bc7114764 Added a non-existing test to test buildbot.
svn path=/trunk/mcs/; revision=32952
2004-08-27 22:52:13 +00:00
Ravindra 2040d9f625 Lets do some tests too.
svn path=/trunk/mcs/; revision=32951
2004-08-27 22:18:19 +00:00
Ravindra 2219702bda Adding test for ImageIndexConverter.cs
svn path=/trunk/mcs/; revision=32950
2004-08-27 22:17:37 +00:00
Ravindra 194428ad3e Added ImageIndexConverter to sources.
svn path=/trunk/mcs/; revision=32949
2004-08-27 22:14:20 +00:00
Ravindra 5fb9388f55 Added TypeConverter attribute.
svn path=/trunk/mcs/; revision=32948
2004-08-27 22:12:56 +00:00
Ravindra 8c5cf41254 Implemented.
svn path=/trunk/mcs/; revision=32947
2004-08-27 22:07:37 +00:00
Peter Dennis Bartok 09f329e6df - Removed unneeded stack vars
- First attempt to fix sizing issues when layout is suspended

svn path=/trunk/mcs/; revision=32946
2004-08-27 20:17:25 +00:00
Marek Safar 26d88c3c6a 2004-08-27 Marek Safar <[email protected]>
* statement.cs (Try.Resolve): Fixed bug #64222

svn path=/trunk/mcs/; revision=32945
2004-08-27 19:55:17 +00:00
Gonzalo Paniagua Javier 95385df420 2004-08-27 Gonzalo Paniagua Javier <[email protected]>
* HttpRuntime.cs: removed initializations to null in .cctor. Prevent
	other requests from avoiding the lock if they are received before the
	configuration system is inited. Ensure that the queue manager is not
	null before using it (it can be null while the first request is being
	processed).

svn path=/branches/mono-1-0/mcs/; revision=32941
2004-08-27 18:16:27 +00:00
Gonzalo Paniagua Javier 466a637c75 2004-08-27 Gonzalo Paniagua Javier <[email protected]>
* HttpRuntime.cs: removed initializations to null in .cctor. Prevent
	other requests from avoiding the lock if they are received before the
	configuration system is inited. Ensure that the queue manager is not
	null before using it (it can be null while the first request is being
	processed).

svn path=/trunk/mcs/; revision=32940
2004-08-27 18:13:29 +00:00
Ben Maurer 407ef11b63 2004-08-27 Ben Maurer <[email protected]>
* iltests.il: test for conv.u8 on a constant

svn path=/trunk/mono/; revision=32939
2004-08-27 16:06:02 +00:00
Martin Baulig 38ff2dded0 2004-08-27 Martin Baulig <[email protected]>
* class.cs
	(TC.OperatorArrayList.OperatorEntry.CheckPairedOperators): Don't
	crash here.

svn path=/trunk/mcs/; revision=32938
2004-08-27 16:03:21 +00:00
Martin Baulig 03ae40633e 2004-08-27 Martin Baulig <[email protected]>
* Makefile (test-everything): New target.

svn path=/trunk/mcs/; revision=32937
2004-08-27 15:52:47 +00:00
Martin Baulig e3483963bf 2004-08-27 Martin Baulig <[email protected]>
* gmcs-ignore-tests: New file.  This file lists tests which should
	not be run at all because they make the compiler hang.

	* gmcs-expect-no-error, gmcs-expect-wrong-error: Updated.
	* generics-expect-no-error: Updated.

svn path=/trunk/mcs/; revision=32936
2004-08-27 15:48:24 +00:00
Ben Maurer 2362704ad3 2004-08-27 Ben Maurer <[email protected]>
* inssel-long32.brg: c&p rules for LCONV_x4 (membase) and

svn path=/trunk/mono/; revision=32935
2004-08-27 15:47:48 +00:00
Martin Baulig 69950275c5 Ooops.
svn path=/trunk/mcs/; revision=32934
2004-08-27 15:35:01 +00:00
Martin Baulig 809c569ea0 2004-08-27 Martin Baulig <[email protected]>
* Makefile
	(run-gmcs-tests): New target to run the cs*.cs tests with gmcs.
	(run-generics-tests): New target to run the gcs*.cs tests.
	(run-tests-local): Run run-mcs-tests, run-gmcs-tests and
	run-generics-tests.

	* do-tests.pl: Don't return an error value if more tests pass than
	expected.

	* mcs-expect-no-error, mcs-expect-wrong-error: Updated to the
	current situation, ie. make all the tests pass.

	* gmcs-expect-no-error, gmcs-expect-wrong-error: New files.

	* generics-expect-wrong-error: Formerly known as
	gmcs-expect-wrong-error.

svn path=/trunk/mcs/; revision=32933
2004-08-27 15:34:13 +00:00
Jochen Wezel da65db07e4 Corrected code Microsoft.VisualBasic.Strings.ChrW --> Microsoft.VisualBasic.ChrW
svn path=/trunk/mcs/; revision=32932
2004-08-27 15:31:40 +00:00
Martin Baulig 086c98e5ea 2004-08-27 Martin Baulig <[email protected]>
* class.cs
	(TC.OperatorArrayList.OperatorEntry.CheckPairedOperators): Don't
	crash here.

svn path=/trunk/mcs/; revision=32931
2004-08-27 15:15:39 +00:00
Anirban Bhattacharjee eeba64b5f4 2004-08-27 Anirban Bhattacharjee <[email protected]>
* driver.cs: bug fixing - #63580

svn path=/trunk/mcs/; revision=32930
2004-08-27 14:19:32 +00:00
Ben Maurer e0b164e748 2004-08-27 Ben Maurer <[email protected]>
* inssel-x86.brg: c&p rules for push/setret of long

svn path=/trunk/mono/; revision=32929
2004-08-27 14:02:17 +00:00
Sanja Gupta 293a17e582 ChangeLog: Updated ChangeLog
MailMessageWrapper.cs: Added a comment to add Date header.
SmtpClient.cs: Updated functionality to add RelatedBodyPart to
        MIME message.

svn path=/trunk/mcs/; revision=32928
2004-08-27 13:49:32 +00:00
Sachin Kumar b6fb4e65ef Added more tests for Exception Handling Statements
svn path=/trunk/mcs/; revision=32927
2004-08-27 12:48:12 +00:00
Lluis Sanchez 079ff768ed * data/net_1_1/DefaultWsdlHelpGenerator.aspx: Little fix.
* data/net_2_0/DefaultWsdlHelpGenerator.aspx: Added information about
	  basic profile compliance.
	* data/net_2_0/machine.config: Use 2.0 assembly versions.

svn path=/trunk/mono/; revision=32926
2004-08-27 12:43:05 +00:00
Sureshkumar T 0fa996188e 2004-08-27 Sureshkumar T ([email protected])
* OdbcDataReader.cs - fixed bug #63539 - TINYINT ODBC datatype is converted into System.Byte

svn path=/branches/mono-1-0/mcs/; revision=32925
2004-08-27 12:22:06 +00:00
Sureshkumar T 047fd199cc 2004-08-27 Sureshkumar T <[email protected]>
* OdbcDataReaderTest.cs - Added a test for TinyInt

svn path=/branches/mono-1-0/mcs/; revision=32924
2004-08-27 12:12:39 +00:00
Sureshkumar T 260bc6abbe 2004-08-27 Sureshkumar T ([email protected])
* OdbcDataReader.cs - fixed bug #63539 - TINYINT ODBC datatype is converted into System.Byte

svn path=/trunk/mcs/; revision=32923
2004-08-27 12:08:45 +00:00
Sureshkumar T dacaf87e76 2004-08-27 Sureshkumar T <[email protected]>
* OdbcDataReader.cs - Added a test for TinyInt

svn path=/trunk/mcs/; revision=32922
2004-08-27 11:58:26 +00:00
Ben Maurer 35df22d519 2004-08-26 Ben Maurer <[email protected]>
* inssel-x86.brg: c&p rules for compare (base, regvar) and
	compare (regvar, base)

svn path=/trunk/mono/; revision=32920
2004-08-27 03:37:09 +00:00
Ben Maurer 07e3afc0c6 2004-08-26 Ben Maurer <[email protected]>
* inssel-x86.brg: more burg love

svn path=/trunk/mono/; revision=32919
2004-08-27 02:47:08 +00:00
Ben Maurer 2025c3647a 2004-08-26 Ben Maurer <[email protected]>
* inssel-x86.brg: more burg love

svn path=/trunk/mono/; revision=32918
2004-08-27 02:35:01 +00:00
Atsushi Eno d3d63d6ad4 2004-08-27 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : some property getters threw NullReferenceException
	  when the attribute is not added to an element.
	* XmlNode.cs : When a node is not appended to another node, BaseURI
	  is empty. Bug #64120 is fixed.

svn path=/branches/mono-1-0/mcs/; revision=32915
2004-08-27 00:36:58 +00:00
Atsushi Eno a144b12327 2004-08-27 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : some property getters threw NullReferenceException
	  when the attribute is not added to an element.
	* XmlNode.cs : When a node is not appended to another node, BaseURI
	  is empty. Bug #64120 is fixed.

svn path=/trunk/mcs/; revision=32914
2004-08-27 00:36:03 +00:00
Martin Baulig f69789f52a 2004-08-27 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile..ctor): Read the GUID from the
	symbol file before reading the OffsetTable.

svn path=/trunk/mcs/; revision=32911
2004-08-26 22:39:18 +00:00
Martin Baulig 1adba5e18d 2004-08-27 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile..ctor): Set
	`reader.BaseStream.Position' to 12 before reading the GUID so we
	actually read it from the correct file offset.

svn path=/trunk/mcs/; revision=32910
2004-08-26 22:35:59 +00:00
Chris Toshok 08e3f0eab6 2004-08-27 Chris Toshok <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to
	MonoSymbolFile.ctor, not filename, so we load the .mdb file
	instead of the .dll.
	(MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream
	ctor.

svn path=/trunk/mcs/; revision=32909
2004-08-26 22:23:39 +00:00
Martin Baulig 786b09b196 Removed, this is now allowed by the spec.
svn path=/trunk/mcs/; revision=32908
2004-08-26 22:08:18 +00:00
Martin Baulig eaeff51419 2004-08-27 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is
	called Module.Mono_GetGuid(), not Module.MonoDebugger_GetGuid().

svn path=/trunk/mcs/; revision=32907
2004-08-26 22:05:36 +00:00
Sebastien Pouliot 551574f644 2004-08-26 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added System.Security.Policy/
	ApplicationSecurityManager.cs, ApplicationSecurityManagerCodeGroup.cs,
	ApplicationTrustCollection.cs and ApplicationTrustEnumerator.cs for
	NET_2_0 profile.

svn path=/trunk/mcs/; revision=32906
2004-08-26 21:44:34 +00:00
Sebastien Pouliot b97de607c3 2004-08-26 Sebastien Pouliot <[email protected]>
* ApplicationSecurityManager.cs: New stub for Fx 2.0 application trust
	security manager.
	* ApplicationSecurityManagerCodeGroup.cs: New stubbed code group for
	NET_2_0 profile.
	* ApplicationTrustCollection.cs: New. ApplicationTrust collection for
	NET_2_0 profile.
	* ApplicationTrustEnumerator.cs: New. ApplicationTrust enumerator for
	NET_2_0 profile.

svn path=/trunk/mcs/; revision=32905
2004-08-26 21:40:37 +00:00
Martin Baulig a395d67f24 2004-08-27 Martin Baulig <[email protected]>
* do-tests.pl: Deal with compiler crashes.

	* mcs-expect-no-error, mcs-expect-wrong-error: Updated.

svn path=/trunk/mcs/; revision=32904
2004-08-26 21:31:39 +00:00
Ben Maurer 2c28a66884 2004-08-26 Ben Maurer <[email protected]>
* inssel.brg: more cleanup

svn path=/trunk/mono/; revision=32903
2004-08-26 20:53:24 +00:00
Martin Baulig ddd3567bd3 Renamed cs-12.cs -> cs0012.cs.
svn path=/trunk/mcs/; revision=32902
2004-08-26 20:33:11 +00:00
Ben Maurer c1fdd8e9e5 2004-08-26 Ben Maurer <[email protected]>
* inssel.brg: more cleanup

svn path=/trunk/mono/; revision=32901
2004-08-26 20:08:06 +00:00
Ben Maurer 2101758392 2004-08-26 Ben Maurer <[email protected]>
* inssel-x86.brg, inssel-long32.brg: burg cleanup.

svn path=/trunk/mono/; revision=32900
2004-08-26 19:48:48 +00:00
Geoff Norton 07371b2ee0 2004-08-14 Geoff Norton <[email protected]>
* TdsComm.cs:
          Tds70.cs:
                Make Tds70 work on Big Endian machines.
                BitConverter uses unsafe and returns things in host order; we need to
                swap some values to put them back into the approrpiate order for the wire.

svn path=/trunk/mcs/; revision=32898
2004-08-26 18:52:48 +00:00
Zoltan Varga b4bd6ed826 2004-08-26 Zoltan Varga <[email protected]>
* class.c (mono_ptr_class_get): Fix name of pointer classes. Fixes
	#63768.

svn path=/trunk/mono/; revision=32897
2004-08-26 18:31:14 +00:00
Zoltan Varga 1a59897fea 2004-08-26 Zoltan Varga <[email protected]>
* TypeTest.cs: Add regression test for bug #63768.

svn path=/trunk/mcs/; revision=32896
2004-08-26 18:29:02 +00:00
Ben Maurer b8a425b89d 2004-08-26 Ben Maurer <[email protected]>
* basic-long.cs, basic-calls.cs: new tests for optimization.

svn path=/trunk/mono/; revision=32894
2004-08-26 17:41:57 +00:00
Marek Safar 165222eb09 2004-08-26 Marek Safar <[email protected]>
* ecore.cs (Constantify): Get underlying type via
	System.Enum.GetUnderlyingType to avoid StackOverflow on the
	Windows in special cases.

svn path=/trunk/mcs/; revision=32893
2004-08-26 17:29:09 +00:00
Marek Safar 0ad48d422c 2004-08-26 Marek Safar <[email protected]>
* typemanager.cs (GetAddMethod): Used GetAddMethod (true)
	for obtaining also private methods.
	(GetRemoveMethod): Used GetRemoveMethod (true)
	for obtaining also private methods.

svn path=/trunk/mcs/; revision=32892
2004-08-26 16:28:43 +00:00
Sebastien Pouliot 9a5a0bd5c8 2004-08-26 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added System.Security.Policy/
	ApplicationDirectoryTest.cs, HashMembershipConditionTest.cs,
	HashTest.cs and IBuiltInEvidenceTest.cs to unit tests.

svn path=/trunk/mcs/; revision=32890
2004-08-26 15:08:50 +00:00
Sebastien Pouliot 13de4d539c 2004-08-26 Sebastien Pouliot <[email protected]>
* ApplicationId.cs: Completed GetHashCode using information from MS
	(FDBK13339).

svn path=/trunk/mcs/; revision=32889
2004-08-26 15:05:29 +00:00
Sebastien Pouliot 86392669d2 2004-08-26 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs: Fixed directory validation and ToString.
	* CodeGroup.cs: Fixed PermissionSetName when policy is null.
	* Evidence.cs: Fixed Merge for null case. Fixed IsSynchronized for
	NET_2_0. Uncommented some code for NET_2_0 DomainManager usage.
	* FileCodeGroup.cs: Fixed Resolve and ResolveMatchingGroup wrt new
	unit tests.
	* Gac.cs: Implemented IBuiltInEvidence methods.
	* Hash.cs: Removed TODO from NET_2_0 as it's hashing seems compatible
	with Mono ;-). Fixed properties for use with NET_2_0.
	* HashMembershipCondition.cs: Fixed To|FromXml serialization. Make
	copies of hash value (not references).
	* PermissionRequestEvidence.cs: Now make copies of permission sets.
	* Publisher.cs: Namespace cleanup, implemented GetRequiredSize.
	* Site.cs: Namespace cleanup, implemented GetRequiredSize.
	* StrongName.cs: Namespace cleanup.
	* UnionCodeGroup.cs: Namespace cleanup, converted spaces to tabs.
	* Url.cs: Namespace cleanup, implemented GetRequiredSize.
	* Zone.cs: Namespace cleanup, globalization and added more details in
	exception.

svn path=/trunk/mcs/; revision=32888
2004-08-26 15:03:04 +00:00
Rafael Teixeira 90e691e736 2004/08/19 Rafael Teixeira <[email protected]>
* testmbas/WriteOk.vb : Use Mono.GetOptions from VB.NET
	* Makefile : exercise new option processing in test program [make-run-local target]

svn path=/trunk/mcs/; revision=32887
2004-08-26 15:01:29 +00:00
Atsushi Eno c0395b1772 2004-08-26 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : In CheckState(), don't create indentation string
	  at every time. WriteIndent() now handles the indentation without
	  recomputation.

svn path=/branches/mono-1-0/mcs/; revision=32886
2004-08-26 14:53:02 +00:00
Bernie Solomon 95a822ee69 2004-08-26 Bernie Solomon <[email protected]>
* mb-parser.jay: rework parsing of ParamArray parameters

svn path=/trunk/mcs/; revision=32885
2004-08-26 14:50:32 +00:00
Sebastien Pouliot a8a8fd41cb 2004-08-26 Sebastien Pouliot <[email protected]>
* SecurityElement.cs: Fixed the new Copy() in Fx 2.0 as it isn't a
	deep copy. Throw proper exceptions in FromString (Fx 2.0).
	* SecurityManager.cs: Throw a NullReference exception in
	SavePolicyLevel as MS won't fix it (FDBK13121).

svn path=/trunk/mcs/; revision=32884
2004-08-26 14:40:19 +00:00
Sebastien Pouliot cbfc655c06 2004-08-26 Sebastien Pouliot <[email protected]>
* ApplicationDirectoryTest.cs: New. For NET_2_0 profile.
	* EvidenceTest.cs: Added more tests for 1.1 and new tests for 2.0.
	* FileCodeGroupTest.cs: Added more tests for Resolve,
	ResolveMatchingCodeGroups and new Fx 2.0 Scope property.
	* HashMembershipConditionTest.cs: New. Unit tests for hash membership.
	* HashTest.cs: New. Unit tests for hash.
	* IBuiltInEvidenceTest.cs: New. Unit tests for the internal
	IBuiltInEvidence interface. All tests are [Ignore]d for the
	* NetCodeGroupTest.cs: Ajusted PermissionSetName for Fx 2.0.
	* PermissionRequestEvidenceTest.cs: Ajusted existing tests for 2.0.
	Converted tests to NUnit 2.2 format. Converted to UNIX line endings.
	Added test to see that the original permission sets are copied but
	the instance copy can be changed (not copied on output).
	* PolicyLevelTest.cs: Added more tests for Resolve and
	ResolveMatchingCodeGroups.
	* UnionCodeGroupTest.cs: Added more properties validation in tests.

svn path=/trunk/mcs/; revision=32883
2004-08-26 14:34:25 +00:00
Atsushi Eno 62f20396a7 2004-08-26 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : In CheckState(), don't create indentation string
	  at every time. WriteIndent() now handles the indentation without
	  recomputation.

svn path=/trunk/mcs/; revision=32882
2004-08-26 14:31:08 +00:00
Sureshkumar T 5271189627 2004-08-26 Sureshkumar T ([email protected])
* OdbcDataReader.cs - Date & DateTime GetValue fixed.
			      GetBytes ordinal parameter passing fixed for BINARY in GetValue.

svn path=/branches/mono-1-0/mcs/; revision=32881
2004-08-26 13:39:39 +00:00
Sureshkumar T a09b40a8a9 2004-08-26 Sureshkumar T <[email protected]>
* OdbcDataReaderTest.cs - Added a test for DateTime - GetDateTimeTest
	* OdbcCommandTest.cs - Syntax Error Fix

svn path=/branches/mono-1-0/mcs/; revision=32879
2004-08-26 13:26:58 +00:00
Sureshkumar T 874f4bb023 2004-08-26 Sureshkumar T <[email protected]>
* MySqlTestBed.cs - Added few more fields for DateTime testing

svn path=/branches/mono-1-0/mcs/; revision=32878
2004-08-26 13:26:13 +00:00
Sureshkumar T c477b47d09 2004-08-26 Sureshkumar T ([email protected])
* OdbcDataReader.cs - Date & DateTime GetValue fixed.
			      GetBytes ordinal parameter passing fixed for BINARY in GetValue.

svn path=/trunk/mcs/; revision=32877
2004-08-26 13:15:16 +00:00
Sureshkumar T 10b8833814 2004-08-26 Sureshkumar T <[email protected]>
* OdbcDataReaderTest.cs - Added a test for DateTime - GetDateTimeTest
	* OdbcCommandTest.cs - Syntax Error Fix

svn path=/trunk/mcs/; revision=32876
2004-08-26 13:03:13 +00:00
Sureshkumar T 8018972475 2004-08-26 Sureshkumar T <[email protected]>
* MySqlTestBed.cs - Added few more fields for DateTime testing

svn path=/trunk/mcs/; revision=32875
2004-08-26 13:00:50 +00:00
Sanja Gupta 491c630baa ChangeLog: Updated ChangeLog.
SmtpClient.cs: Added functionality to add RelatedBodyPart to MIME message.

svn path=/trunk/mcs/; revision=32874
2004-08-26 11:50:01 +00:00
Raja R Harinath 1fc13eeeea (mcs-do-run-test): Depend on '$(tmpinst)/bin/mbas'.
($(tmpinst)/bin/mbas): Create temporary wrapper file, so that the
testcases pick the built 'mbas.exe'.

svn path=/trunk/mono/; revision=32873
2004-08-26 11:47:25 +00:00
Sachin Kumar 9ea4855603 Added new tests for Exception Handling Statements
svn path=/trunk/mcs/; revision=32872
2004-08-26 09:24:50 +00:00
Atsushi Eno a1b78fcc55 2004-08-26 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Fixed PathRootExpr.Evaluate() that always failed.
	  Renamed PathChildExpr to PathSlashExpr, PathDescendantExpr to
	  PathSlash2Expr, and added abstract PathStepExpr.
	  PathSlash2Expr.Evaluate() now uses PathStepIterator
	* XPathSequence.cs :
	  - Modified MoveNextCore() as protected.
	  - Fixed SingleItemIterator.MoveNext() to be simple.
	  - Renamed ChildPathIterator to PathStepIterator. Mostly copied
	    SlashIterator logic from Iterator.cs into PathStepIterator.
	  - Removed DescendantPathIterator ("//" should be the same as
	    "/descendant-or-self::node()/").
	  - NodeIterator.Node should come from current node, not context node.
	  - Added dummy flag for NodeIterator's copy constructor (that resulted
	    in incorrect copying for some usecases).
	* XQueryParser.jay : Fixes in sync with Expr class name changes.

svn path=/trunk/mcs/; revision=32871
2004-08-26 08:28:07 +00:00
César Natarén b179b9af18 marked methods as built in
svn path=/trunk/mcs/; revision=32869
2004-08-26 06:44:27 +00:00
César Natarén 3ddc261147 marked methods as built in
svn path=/trunk/mcs/; revision=32868
2004-08-26 06:32:27 +00:00
César Natarén 16cea5bdbb * LenientNumberPrototype.cs: added new keyboard to toLocaleString field.
svn path=/trunk/mcs/; revision=32867
2004-08-26 06:31:25 +00:00
César Natarén 0c9c0340c3 marked methods as built in
svn path=/trunk/mcs/; revision=32866
2004-08-26 06:12:15 +00:00
Atsushi Eno 2b4326031a 2004-08-26 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Don't compute node's EBV based on atomized value.

svn path=/trunk/mcs/; revision=32865
2004-08-26 05:58:09 +00:00
César Natarén 499a0e447f marked as built in
svn path=/trunk/mcs/; revision=32864
2004-08-26 05:53:32 +00:00
César Natarén 8fb04749be marked methods as built in, added JSBuiltin.Global_GetObject.
svn path=/trunk/mcs/; revision=32863
2004-08-26 05:29:32 +00:00
César Natarén 499a348e0d mark methods as built in
svn path=/trunk/mcs/; revision=32862
2004-08-26 05:19:10 +00:00
César Natarén 55e4594d41 mark methods as built in
svn path=/trunk/mcs/; revision=32861
2004-08-26 05:13:24 +00:00
César Natarén f9f6556598 marked as built in
svn path=/trunk/mcs/; revision=32860
2004-08-26 04:45:35 +00:00
César Natarén 97537b073b 2004-08-26 Cesar Lopez Nataren <[email protected]>
* ArrayPrototype.cs: mark method as built in.

svn path=/trunk/mcs/; revision=32859
2004-08-26 04:33:37 +00:00
Anirban Bhattacharjee a78f44ae1c 2004-08-26 Anirban Bhattacharjee <[email protected]>
Following tests are submtted by Manish Sinha <[email protected]>
        * Arguments_ByValueA:
        * Arguments_ByValueB:
        * Arguments_ByValueC:
        * Arguments_ByValueD:
        * Arguments_ByReferenceA:
        * Arguments_ByReferenceB:
        * Arguments_ByReferenceC:
        * Arguments_ByReferenceD:
        * Function_ArguByValueA:
        * Function_ArguByValueB:
        * Function_ArguByValueC:
        * Function_ArguByValueD:
        * Function_ArguByReferenceA:
        * Function_ArguByReferenceB:
        * Function_ArguByReferenceC:
        * Function_ArguByReferenceD:
        * ParamArrayA:
        * ParamArrayB:
        * Function_ParamArrayA:
        * Function_ParamArrayB:
        * Function_ParamArrayc:
        * ParamArrayC2:
        * Function_ParamArrayC1:
        * Function_ParamArrayC2:
        * Function_ParamArrayC3:
        * Function_ParamArrayC4i:
        * Test.Sources: Included new test

svn path=/trunk/mcs/; revision=32858
2004-08-26 03:27:30 +00:00
Atsushi Eno 6c18fec5aa 2004-08-26 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs : in Compiler(), function call's arguments must
	  also be compiled.
	* XQueryASTCompiler.cs : When function is external, it should not try
	  to compile body, and tries to handle it as a native CLI method (I
	  don't like this name resolution design very much, so it is likely
	  to be redesigned).
	* XQueryCliFunction.cs : trivial code comment fix.
	* XQueryFunction : added user-specified function call support.
	  When CLI function returned null, don't wrap null and just return
	  XQueryEmptySequence.
	* XQueryFunctionCliImpl.cs : fn:nilled() requires certain node.
	  Implemented numeric functions (in the future they might be
	  rewritten to avoid boxing).
	* XQueryTokenizer.cs : Skip XQuery comment inside default state.
	  PI and XML comment are not read correctly.

svn path=/trunk/mcs/; revision=32856
2004-08-26 02:27:48 +00:00
César Natarén c6a8420bd6 changelog entry
svn path=/trunk/mcs/; revision=32855
2004-08-26 02:15:12 +00:00
César Natarén 23b3d32a22 2004-08-25 Cesar Lopez Nataren <[email protected]>
* Parser.cs:
	* expression.cs: made Binary is IAssignable, added fields assign
	and right_side, added method ResolveAssign (which now receives an
	extra parameter, being the right side of the assigment). Take care of being
	inside a function for array indexing. Take care of lvalue case
	too. Assign.Emit just calls left.Emit since left knows everything
	about the right side of the assigment after Resolve process.
	* BitwiseBinary.cs, CodeGenerator.cs, Equality.cs, NumericBinary.cs, : updates for BinaryOp change.

svn path=/trunk/mcs/; revision=32854
2004-08-26 02:08:02 +00:00
César Natarén e89b586662 2004-08-25 Cesar Lopez Nataren <[email protected]>
* BinaryOp.cs: renamed current_op to simply op as with the new
	parser we no longer need to keep track of the old_op.

svn path=/trunk/mcs/; revision=32853
2004-08-26 01:30:24 +00:00
Francisco Figueiredo Jr. 1394a5a5a1 2004-08-25 Francisco Figueiredo Jr. <[email protected]>
* Added by mistake.

svn path=/trunk/mcs/; revision=32852
2004-08-25 23:26:10 +00:00
Francisco Figueiredo Jr. f9108612e3 2004-08-25 Francisco Figueiredo Jr. <[email protected]>
* Updated files from gborg cvs. Added support for geometric types.
	Improved Unicode encoding support. It was possible to characters in unicode cross the stream buffer and be discarded. Now we use Decoders which handle that situation. Thanks Oskars Ozols (oskars dot ozols at di dot lv)
        Improved connection startup code. Now new connections in ms.net goes a lot faster. Thanks Mikko Korkalo (mikko.korkalo at f-solutions dot net) for the patch.
		Fixed a problem with plan execution in 7.3 backend versions. The text parameters weren't being quoted and backend complained about that.

		- gborg 898: Added HasRows method to NpgsqlDataReader. Thanks [email protected] for feature request.
		- gborg 899: Fixed return of IsClosed after closing NpgsqlDataReader. Thanks Mikko Korkalo (mikko.korkalo at f-solutions dot net) for the patch.

svn path=/trunk/mcs/; revision=32851
2004-08-25 23:24:28 +00:00
Jordi Mas i Hernandez b95a3db122 more fixes to scrollbar
svn path=/trunk/mcs/; revision=32850
2004-08-25 21:35:18 +00:00
Zoltan Varga c7b1436a4f 2004-08-26 Zoltan Varga <[email protected]>
* mini-amd64.c (read_tls_offset_from_method): Fix typo in previous
	patch.

svn path=/trunk/mono/; revision=32848
2004-08-25 21:03:24 +00:00
Zoltan Varga fbbd720654 2004-08-25 Zoltan Varga <[email protected]>
* mini-amd64.c (read_tls_offset_from_method): Add another case.

svn path=/trunk/mono/; revision=32847
2004-08-25 20:57:27 +00:00
Martin Baulig 7c854d6258 2004-08-25 Martin Baulig <[email protected]>
* support.cs (ReflectionParameters..ctor): If this is a generic
	method, retrieve and store its type parameters.
	(InternalParameters..ctor): Added `TypeParameter[]' argument.
	(ReflectionParameters.GenericConstraints): The argument specifies
	the type parameter, not the method parameter.
	(InternalParameters.GenericConstraints): Likewise.

	* generic.cs (TypeParameter.DefineType): Correctly handle
	constraints wrt. generic methods in interfaces and their
	implementations.

svn path=/trunk/mcs/; revision=32846
2004-08-25 20:56:33 +00:00
Martin Baulig 4ca37200d5 2004-08-25 Martin Baulig <[email protected]>
* loader.c (mono_get_method_from_token): Abstract methods can also
	be generic and thus have type parameters.

	* metadata-internals.h
	(MonoDynamicImage): Added `GPtrArray *gen_params'.

	* reflection.c (mono_image_get_generic_param_info): Don't create a
	metadata row, just add an entry to the `gen_params' array.
	(build_compressed_metadata): Sort the `gen_params' array and then
	actually create the metadata.

svn path=/trunk/mono/; revision=32844
2004-08-25 20:42:53 +00:00
Bernie Solomon b9bd8b4265 2004-08-25 Bernie Solomon <[email protected]>
* inssel.brg (mini_emit_memcpy): use
	NO_UNALIGNED_ACCESS to disable memcpy optimization

svn path=/trunk/mono/; revision=32843
2004-08-25 20:17:04 +00:00
Ravindra 0c8273bc84 Added the missing divider code and grip for ToolBar Control.
svn path=/trunk/mcs/; revision=32842
2004-08-25 20:04:40 +00:00
Gonzalo Paniagua Javier f3f187b84b 2004-08-25 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: remove unneeded 'if' around mono_monitor_enter.

svn path=/trunk/mono/; revision=32841
2004-08-25 19:29:02 +00:00
Peter Dennis Bartok 4ea09b925e - Control now properly passes the ambient background color to child
controls

svn path=/trunk/mcs/; revision=32840
2004-08-25 19:20:47 +00:00
Jordi Mas i Hernandez 49077f6692 small bug fix regarding bar position
svn path=/trunk/mcs/; revision=32839
2004-08-25 19:20:13 +00:00
Martin Baulig c206c9a738 New test.
svn path=/trunk/mcs/; revision=32837
2004-08-25 19:11:12 +00:00
Peter Dennis Bartok ae6bc4909f - Now only calls SetTimer or KillTimer if the enabled state has changed
svn path=/trunk/mcs/; revision=32836
2004-08-25 18:33:52 +00:00
Peter Dennis Bartok 96f23e10f9 - Fixed timer handling, now seems to work
- Improved error message for window creation

svn path=/trunk/mcs/; revision=32835
2004-08-25 18:33:08 +00:00
Peter Dennis Bartok 2d0cc2807a - Fixed generation of MouseUp message
svn path=/trunk/mcs/; revision=32834
2004-08-25 18:32:15 +00:00
Jordi Mas i Hernandez 4974689e47 new methods, properties, and fixes for progressbar
svn path=/trunk/mcs/; revision=32833
2004-08-25 18:29:14 +00:00
Atsushi Eno 9522765d90 2004-08-25 Atsushi Enomoto <[email protected]>
* XQueryCommand.cs : Reverted. "context item is nothing" should be
	  differentiate from "context item is document".

svn path=/trunk/mcs/; revision=32828
2004-08-25 14:53:59 +00:00
Atsushi Eno 5c7fdb0b7d 2004-08-25 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs :
	  Check write state before writing document node.
	  Check if navigator's SchemaInfo is null or not before atomizing.
	  Use individual axis-based iterator in AxisStepExpr.Evaluate().
	* XPathSequence.cs : added individual axis-based iterator.
	  Removed commented NodeKindTestIterator.
	* XQueryCliFunction.cs, XQueryContext.cs, XQueryFunction.cs :
	  Now XQueryContext.CurrentItem explicitly throws exception if
	  no context node was provided (also XQueryCommand.Execute() is
	  fixed not to provide empty document as input).
	  Now XQueryFunction should not access to CurrentItem unless it is
	  required.
	* XQueryFunctionCliImpl.cs : fixed more method signatures.

svn path=/trunk/mcs/; revision=32827
2004-08-25 14:31:27 +00:00
Atsushi Eno 6815019705 2004-08-25 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs : Value was not returning expected value when
	  it is created as new XPathAtomicValue (object, XmlSchemaType).
	  Compute stringValue and reuse.
	* XPathNavigator.cs : Temporarily stubbed as to ignore SchemaInfo
	  (for checking XQuery implementation).

svn path=/trunk/mcs/; revision=32826
2004-08-25 14:30:39 +00:00
Zoltan Varga 2e25937618 2004-08-25 Zoltan Varga <[email protected]>
* mini-amd64.c: Handle generic types in various places.

svn path=/trunk/mono/; revision=32825
2004-08-25 13:36:25 +00:00
Zoltan Varga 92ad3c20ba 2004-08-25 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Handle generic types in init locals.

svn path=/trunk/mono/; revision=32824
2004-08-25 13:32:51 +00:00
Zoltan Varga af799f6aee 2004-08-25 Zoltan Varga <[email protected]>
* debug-helpers.c: Handle MONO_TYPE_GENERICINST.

svn path=/trunk/mono/; revision=32823
2004-08-25 13:20:15 +00:00
Sanja Gupta e4334426be ChangeLog: Updated ChangeLog.
MailMessageWrapper.cs: Added NET_2_0 property and another missing
        property from NET_1_1.
RelatedBodyPart.cs: Error detection and handling.
SmtpClient.cs: Upgraded for NET_1_1 and WIP for NET_2_0.

svn path=/trunk/mcs/; revision=32822
2004-08-25 12:59:38 +00:00
Atsushi Eno 1d61d9cc4f 2004-08-25 Atsushi Enomoto <[email protected]>
* removed IXmlCompilerInclude.cs (does not exist anymore).

svn path=/trunk/mcs/; revision=32821
2004-08-25 11:40:50 +00:00
Sachin Kumar bcc825763c Added few more tests for Conditional Statements
svn path=/trunk/mcs/; revision=32820
2004-08-25 09:44:58 +00:00
Lluis Sanchez c8bb4a3dd2 * server/SessionCounter.asmx: Check that Context != null in the constructor.
svn path=/branches/mono-1-0/mcs/; revision=32819
2004-08-25 09:01:11 +00:00
Lluis Sanchez 61362ce4aa * HttpSoapWebServiceHandler.cs, WebServiceHandler.cs: Do not assign the
context to the service. It already gets it from HttpContext.Current.

svn path=/branches/mono-1-0/mcs/; revision=32818
2004-08-25 09:00:46 +00:00
Lluis Sanchez 1dbe1ea35f * WebService.cs: Get the HttpContext from the HttpContext.Current, do not
wait to be set with SetContext. In this way the context is available
	  in the web service constructor.

svn path=/branches/mono-1-0/mcs/; revision=32817
2004-08-25 09:00:20 +00:00
Lluis Sanchez b51ccef3ae * server/SessionCounter.asmx: Check that Context != null in the constructor.
svn path=/trunk/mcs/; revision=32816
2004-08-25 08:54:35 +00:00
Lluis Sanchez 532df5ab65 * HttpSoapWebServiceHandler.cs, WebServiceHandler.cs: Do not assign the
context to the service. It already gets it from HttpContext.Current.

svn path=/trunk/mcs/; revision=32815
2004-08-25 08:53:43 +00:00
Lluis Sanchez ba80e73f9c * WebService.cs: Get the HttpContext from the HttpContext.Current, do not
wait to be set with SetContext. In this way the context is available
	  in the web service constructor.

svn path=/trunk/mcs/; revision=32814
2004-08-25 08:53:17 +00:00
Lluis Sanchez c5d8d4e2bd * SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
When deserializing an encoded method response, assign to the return value
	  the first element of the message, whatever it is. The return type doesn't
	  need to be Object, it seems to be true for all return types.

svn path=/trunk/mcs/; revision=32813
2004-08-25 08:41:06 +00:00
Atsushi Eno f9c88642ff 2004-08-25 Atsushi Enomoto <[email protected]>
* SequenceType.cs : moved type inference method to XPathAtomicValue.
	  Use IsArray in runtime type inference. Initialize fields completely.
	  Handle collection to runtime type for functions that takes array.
	* XPath2Expression.cs : Add whitespaces on serializing XPath items.
	  EBV != atomized boolean value. Add Atomize() for XPathItem (Atomize()
	  for XPathSequence should be removed in the future).
	  Replaced some ExprSequence to ExprSingle for optimization.
	* XQueryFunctionCliImpl.cs : Fixed some return types.
	* XQueryTokenizer.cs : Fixed weird ReadDecimal().

svn path=/trunk/mcs/; revision=32812
2004-08-25 08:21:52 +00:00
Atsushi Eno dd03aab9d5 2004-08-25 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs : Handle .ctor() with object parameter more
	  precisely (still not enough, for list argument).
	  Removed commended blocks.

svn path=/trunk/mcs/; revision=32811
2004-08-25 08:20:55 +00:00
Atsushi Eno fe379229e4 2004-08-25 Atsushi Enomoto <[email protected]>
* XmlSchemaSimpleType.cs : Fill list types such as xs:IDREFS.
	* XmlSchemaType.cs :
	  Fixed TypeCode more (broken on predefined list types and xs:anyType).

svn path=/trunk/mcs/; revision=32810
2004-08-25 08:20:25 +00:00
Atsushi Eno 3125c1c2b4 2004-08-25 Atsushi Enomoto <[email protected]>
* XmlSchemaType.cs :
	  anyType was anonymous, thus GetBuiltInComplexType() didn't work.

svn path=/trunk/mcs/; revision=32809
2004-08-25 06:09:20 +00:00
Ravindra 14249d241a Fixed wrapping related issues in ToolBar control.
svn path=/trunk/mcs/; revision=32808
2004-08-25 00:43:13 +00:00
Peter Dennis Bartok 2566eaed7d - Added #region
- Added missing events
- Alphabetized

svn path=/trunk/mcs/; revision=32804
2004-08-24 23:15:33 +00:00
Peter Dennis Bartok adb60e7357 - Now uses Control's CreateParams
svn path=/trunk/mcs/; revision=32803
2004-08-24 23:15:12 +00:00
Peter Dennis Bartok d95b84990d - Fixed background color handling
- Fixed sending of enter/leave events on a grab

svn path=/trunk/mcs/; revision=32800
2004-08-24 22:36:22 +00:00
Peter Dennis Bartok c91c1648e9 - Refined definitions for CrossingEvent
svn path=/trunk/mcs/; revision=32799
2004-08-24 22:35:44 +00:00
Zoltan Varga 11df60f99a 2004-08-24 Zoltan Varga <[email protected]>
* mini.c (handle_box): Fix warning.

svn path=/trunk/mono/; revision=32793
2004-08-24 20:07:54 +00:00
Nick Drochak c9ce7eaa1f 2004-08-25 Nick Drochak <[email protected]>
* ThreadTest.cs: Some tests hang on MS.NET so ignore them.

svn path=/trunk/mcs/; revision=32789
2004-08-24 19:52:07 +00:00
Nick Drochak 68252647fb 2004-08-25 Nick Drochak <[email protected]>
* Makefile : Ignore tests that hang MS.NET.

svn path=/trunk/mcs/; revision=32788
2004-08-24 19:47:45 +00:00
Nick Drochak 24de976b8a 2004-08-25 Nick Drochak <[email protected]>
* Makefile: Cut down the the build noise.

svn path=/trunk/mcs/; revision=32787
2004-08-24 19:45:23 +00:00
Martin Baulig 51ec6d4a71 New test.
svn path=/trunk/mcs/; revision=32785
2004-08-24 19:08:06 +00:00
Martin Baulig cc34444241 2004-08-24 Martin Baulig <[email protected]>
* generic.cs (TypeParameter.IsSubclassOf): New public method.
	(Constraints.IsSubclassOf): New internal method.

	* typemanager.cs (TypeManager.FindMembers): Added special support
	for GenericTypeParameterBuilder's.
	(TypeManager.IsSubclassOf, IsFamilyAccessible): Added support for
	type parameters.

svn path=/trunk/mcs/; revision=32784
2004-08-24 19:07:36 +00:00
Zoltan Varga 324b37ecc2 2004-08-24 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_local_regalloc): Fix regalloc problem.

	* mini-amd64.h: Enable the emit_state optimization.

	* mini-ops.h cpu-amd64.md: Add new amd64_test_null opcode.

	* mini-amd64.c: Add some new 64 bit peephole opts.

svn path=/trunk/mono/; revision=32783
2004-08-24 19:03:15 +00:00
Zoltan Varga 1bc8e5f3e1 2004-08-24 Zoltan Varga <[email protected]>
* inssel.brg (mini_emit_memcpy): Optimize for 64 bit architectures.

svn path=/trunk/mono/; revision=32782
2004-08-24 19:01:08 +00:00
Martin Baulig d2cd9dde66 2004-08-24 Martin Baulig <[email protected]>
* typemanager.cs
	(TypeManager.IsSubclassOf): Renamed to IsFamilyAccessible; use
	this for accessibility checks.
	(TypeManager.IsSubclassOrNestedChildOf): Renamed to
	IsNestedFamilyAccessible.
	(TypeManager.IsSubclassOf): New method, do what the name actually
	says.

svn path=/trunk/mcs/; revision=32781
2004-08-24 19:00:14 +00:00
Martin Baulig acf0c24425 New test.
svn path=/trunk/mcs/; revision=32780
2004-08-24 18:56:49 +00:00
Jordi Mas i Hernandez 320d2cac84 fixes formmating, methods signature, and adds missing events
svn path=/trunk/mcs/; revision=32778
2004-08-24 18:37:02 +00:00
Jordi Mas i Hernandez 6554aeaeca fire OnEnabledChanged event
svn path=/trunk/mcs/; revision=32777
2004-08-24 18:24:25 +00:00
Zoltan Varga 99f43af5bf 2004-08-24 Zoltan Varga <[email protected]>
* cpu-amd64.md: sreg1 of div instructions must be %rax.

	* mini-amd64.c: Register allocator fixes.

	* mini.c: Add an optimization to emit_state to avoid allocation of new
	registers on some platforms.

svn path=/trunk/mono/; revision=32776
2004-08-24 18:12:38 +00:00
Sebastien Pouliot 555ac6a130 2004-08-24 Sebastien Pouliot <[email protected]>
* UrlMembershipCondition.cs: Check now only iterate host provided
	evidences.
	* ZoneMembershipCondition.cs: FromXml doesn't throw exceptions if Zone
	attribute is missing.

svn path=/trunk/mcs/; revision=32771
2004-08-24 17:19:57 +00:00
Peter Dennis Bartok 557e6548be - Implemented SetTimer() and KillTimer()
svn path=/trunk/mcs/; revision=32770
2004-08-24 17:17:27 +00:00
Peter Dennis Bartok 79146c1adc - Now uses Remove instead of Add to kill the timer
svn path=/trunk/mcs/; revision=32769
2004-08-24 17:16:52 +00:00
Sebastien Pouliot 580b2575b6 2004-08-24 Sebastien Pouliot <[email protected]>
* AllMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* ApplicationDirectoryMembershipConditionTest.cs: Renamed GetHashCode
	and ToString tests to remove compiler warnings.
	* ApplicationMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* DomainApplicationMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* GacMembershipConditionTest.cs: Added some new unit tests for
	FromXml to match other *MembershipCondition classes.
	* PublisherMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* SiteMembershipConditionTest.cs: Completed. Converted existing unit
	tests to NUnit 2.2 format.
	* UrlMembershipConditionTest.cs: Completed. Converted existing unit
	tests to NUnit 2.2 format.
	* ZoneMembershipConditionTest.cs: Added some new unit tests to match
	other *MembershipCondition classes.

svn path=/trunk/mcs/; revision=32768
2004-08-24 17:09:24 +00:00
Lluis Sanchez 49d75e482a * ContractReference.cs, DiscoveryClientProtocol.cs: Set the url from which
documents are being read.

svn path=/branches/mono-1-0/mcs/; revision=32767
2004-08-24 17:05:20 +00:00
Lluis Sanchez 2abe297e1f * ContractReference.cs, DiscoveryClientProtocol.cs: Set the url from which
documents are being read.

svn path=/trunk/mcs/; revision=32765
2004-08-24 16:57:07 +00:00
Martin Baulig 516991befb 2004-08-24 Martin Baulig <[email protected]>
* class.cs (mono_class_is_subclass_of): Like an interface, a
	generic instance also derives from System.Object.

svn path=/trunk/mono/; revision=32764
2004-08-24 16:20:31 +00:00
Martin Baulig dca709d676 2004-08-24 Martin Baulig <[email protected]>
* gen-69.cs, gen-70.cs: New tests.

svn path=/trunk/mcs/; revision=32763
2004-08-24 16:19:22 +00:00
Martin Baulig 3ee2e6d985 2004-08-24 Martin Baulig <[email protected]>
* expression.cs (MemberAccess.DoResolve): When resolving ourselves
	as a SimpleName, include the generic arity.

svn path=/trunk/mcs/; revision=32762
2004-08-24 16:18:15 +00:00
Jackson Harper e29d4e255c Handle drawing picture boxes in the theme now. Draw picture box borders and obey sizing modes
svn path=/trunk/mcs/; revision=32761
2004-08-24 16:16:46 +00:00
César Natarén 6fb6627f12 2004-08-24 Cesar Lopez Nataren <[email protected]>
* expression.cs: do not pass the operand as a parameter to the
	constructor as it gets after the parent gets constructed, same
	with binary. Added code generation for array index access.
	* Parser.cs: added ToJStoken which converts Token to JSToken,
	factored the code for creation the Unary nodes. Take care of
	parent relationship.
	* LateBinding.cs: back to Microsoft.JScript namespace.

svn path=/trunk/mcs/; revision=32760
2004-08-24 16:01:03 +00:00
Lluis Sanchez 250c8f36f9 * SoapReader.cs: Serialize byte arrays using base64 encoding.
GetComponentType should always return the type if
	  specified, GetId can now be !=0 for base64 arrrays.
	* SoapTypeMapper.cs: Register byte[] as base64 xml type.
	* SoapWriter.cs: Handle base64 encoded byte arrays.

svn path=/trunk/mcs/; revision=32759
2004-08-24 14:36:07 +00:00
Lluis Sanchez ce02668fc1 * BasicProfileChecker.cs: Implemented more rules.
* ConformanceChecker.cs: Added service list property in
	  ConformanceCheckContext.
	* MessagePart.cs: Added some convenient internal properties.
	* OperationMessageCollection.cs: Added property for getting the fault
	  message.
	* ServiceDescriptionFormatExtensionCollection.cs: The find method now
	  can return subclasses of the provided class.
	* WebServicesInteroperability.cs: Set the context schema when processing
	  a schema.

svn path=/trunk/mcs/; revision=32758
2004-08-24 14:34:19 +00:00
Lluis Sanchez 2f04489e1a * MonoWSDL.cs, MonoWSDL2.cs: Handle files with absolute path names.
svn path=/trunk/mcs/; revision=32757
2004-08-24 14:33:33 +00:00
Atsushi Eno 46a3751ce1 2004-08-24 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs : DateTime should be convertible to string.
	  Use schemaType's TypeCode for .ctor() that takes object.
	* XPathNavigator.cs : copied get_InnerXml from XPathEditableNavigator.
	* XPathEditableNavigator.cs : set_InnerXml should be different (new)
	  property from get_InnerXml. Removed get_InnerXml and get_OuterXml
	  overrides.

svn path=/trunk/mcs/; revision=32756
2004-08-24 14:31:58 +00:00
Atsushi Eno 745070974a 2004-08-24 Atsushi Enomoto <[email protected]>
* SequenceType.cs : added ToRuntimeType().
	* XPath2Expression.cs : override is required.
	* XPathSequence.cs : fixed ExprSequenceIterator.MoveNext() that caused
	  infinite loop.
	* XQueryCompileContext.cs : CultureInfo was missing.
	* XQueryContext.cs : CurrentContext must be created after setting
	  currentSequence.
	* XQueryConvert.cs : DateTimeToString() was missing.
	* XQueryFunction.cs : convert parameters to runtime type before
	  being used in Invoke(). Use function's ReturnType to create typed
	  atomic.
	* XQueryParser.jay : create XQueryFunctionArgumentList instance
	  for function calls that does not have parameters.

svn path=/trunk/mcs/; revision=32755
2004-08-24 14:31:28 +00:00
Atsushi Eno 20332463f8 2004-08-24 Atsushi Enomoto <[email protected]>
* XmlSchemaType.cs : return XmlTypeCode.AnyAtomicType for
	  anySimpleType's TypeCode property.

svn path=/trunk/mcs/; revision=32754
2004-08-24 14:30:27 +00:00
Sachin Kumar c7beedf7a2 Added more tests for Loop Statements
svn path=/trunk/mcs/; revision=32753
2004-08-24 14:18:40 +00:00
Martin Baulig 9076dfdec8 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=32752
2004-08-24 14:14:30 +00:00
Martin Baulig 96d940cb58 2004-08-24 Martin Baulig <[email protected]>
* class.cs (Method.Define): Set MethodAttributes.SpecialName and
	MethodAttributes.HideBySig for operators.

svn path=/trunk/mcs/; revision=32751
2004-08-24 14:13:27 +00:00
Jackson Harper b791ffb683 Remove top secret debugging code
svn path=/trunk/mcs/; revision=32750
2004-08-24 11:49:17 +00:00
Jackson Harper 3716d53da3 Temp hack to make picture boxes draw their full image
svn path=/trunk/mcs/; revision=32749
2004-08-24 11:34:43 +00:00
Jackson Harper 4ad54b53ce Move timers to the driver level. On X they are queued by the driver and checked on idle.
svn path=/trunk/mcs/; revision=32748
2004-08-24 11:29:44 +00:00
Jackson Harper 0f5013d8c8 Use a queue for async messages instead of passing them as ClientMessages since that was totally broken. Also simply check for events and return an idle message if none are found. This gives us an idle handler, and prevents deadlocking when no messages are in the queue.
svn path=/trunk/mcs/; revision=32747
2004-08-24 07:07:31 +00:00
Sachin Kumar bb575273a9 added comments
svn path=/trunk/mcs/; revision=32746
2004-08-24 05:00:14 +00:00
Sachin Kumar 965b76a482 Added new tests for Loop Statements
svn path=/trunk/mcs/; revision=32745
2004-08-24 03:58:37 +00:00
Bernie Solomon 6eca3251af 2004-08-23 Bernie Solomon <[email protected]>
* mb-parser.jay: cope with more varieties of array declarations

svn path=/trunk/mcs/; revision=32744
2004-08-24 01:19:58 +00:00
Ravindra dca893e674 Removed the unwanted destructor.
svn path=/trunk/mcs/; revision=32743
2004-08-24 00:19:36 +00:00
Peter Dennis Bartok 18e2f37016 - Finishing touches. Works now, just needs some optimizations.
svn path=/trunk/mcs/; revision=32742
2004-08-23 23:27:44 +00:00
Bernie Solomon 6e8f644bb6 2004-08-23 Bernie Solomon <[email protected]>
* DoubleTypeCharTest.vb: needs an Imports System

svn path=/trunk/mcs/; revision=32741
2004-08-23 22:58:27 +00:00
Jordi Mas i Hernandez ec6aeb5726 small fix
svn path=/trunk/mcs/; revision=32740
2004-08-23 22:53:15 +00:00
Peter Dennis Bartok 4429944c14 - Removed debug output
- Simplifications

svn path=/trunk/mcs/; revision=32739
2004-08-23 22:45:19 +00:00
Jordi Mas i Hernandez f8ae8d46ca *** empty log message ***
svn path=/trunk/mcs/; revision=32738
2004-08-23 22:43:46 +00:00
Peter Dennis Bartok 0d817100c2 - Fixed handling of WM_CLOSE message
- Removed debug output

svn path=/trunk/mcs/; revision=32737
2004-08-23 22:10:02 +00:00
Peter Dennis Bartok 8551676f24 - Added handling of Idle event
- Added handling of form closing
- Fixed reporting of MessageLoop property
- Removed some unneeded code, should provide a bit of a speedup

svn path=/trunk/mcs/; revision=32736
2004-08-23 22:09:29 +00:00
Martin Baulig 60f7123e13 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=32735
2004-08-23 21:44:20 +00:00
Martin Baulig 798c5dc428 Small fix.
svn path=/trunk/mcs/; revision=32734
2004-08-23 21:40:37 +00:00
Martin Baulig a4dfbb5e1a Warning level.
svn path=/trunk/mcs/; revision=32733
2004-08-23 21:38:33 +00:00
Peter Dennis Bartok 0151a4d238 - Added InitLayout() method
- Added code to properly perform layout when Anchor or Dock property is
  changed
- Changed 'interpretation' of ResumeLayout. MS seems to have a LAMESPEC,
  tried to do it in a way that makes sense

svn path=/trunk/mcs/; revision=32732
2004-08-23 21:22:53 +00:00
Nick Drochak 836a0c3bd9 2004-08-24 Nick Drochak <[email protected]>
* ComparerTest.cs: On MS.NET 1.1 Compare("a", "A") returns < 0.

svn path=/trunk/mcs/; revision=32731
2004-08-23 21:14:11 +00:00
Jordi Mas i Hernandez 485277002b fixes properties and methods
svn path=/trunk/mcs/; revision=32730
2004-08-23 20:10:03 +00:00
Sebastien Pouliot 42db889f5d 2004-08-23 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added System.Security.Policy/
	ApplicationMembershipCondition.cs,
	DomainApplicationMembershipCondition.cs,
	MembershipConditionHelper.cs for NET_2_0 profile.
	* corlib_test.dll.sources: Added System.Security.Policy/
	AllMembershipConditionTest.cs,
	ApplicationDirectoryMembershipConditionTest.cs,
	ApplicationMembershipConditionTest.cs and
	DomainApplicationMembershipConditionTest.cs to unit tests.

svn path=/trunk/mcs/; revision=32729
2004-08-23 20:06:11 +00:00
Sebastien Pouliot 0e012823b6 2004-08-23 Sebastien Pouliot <[email protected]>
* AllMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.
	* ApplicationDirectoryMembershipConditionTest.cs: New. Unit tests in
	NUnit 2.2 format.
	* ApplicationMembershipConditionTest.cs: New. Unit tests in NUnit 2.2
	format.
	* DomainApplicationMembershipConditionTest.cs: New. Unit tests in
	NUnit 2.2 format.
	* PublisherMembershipConditionTest.cs: Completed. Converted
	existing unit tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32728
2004-08-23 20:01:18 +00:00
Sebastien Pouliot 3236dc706d 2004-08-23 Sebastien Pouliot <[email protected]>
* AllMembershipCondition.cs: Use common template for membership
	condition.
	* ApplicationDirectoryMembershipCondition.cs: Use common template for
	membership condition. Limit evidences checks to host provided.
	"Mostly" functionnal - still need to check c14n issues.
	* ApplicationMembershipCondition.cs: New. For NET_2_0 profile.
	* DomainApplicationMembershipCondition.cs: New. For NET_2_0 profile.
	* GacMembershipCondition.cs: Use common template for membership
	condition. Limit evidences checks to host provided.
	* HashMembershipCondition.cs: Use common template for membership
	condition. Limit evidences checks to host provided.
	* MembershipConditionHelper.cs: Internal class for common membership
	condition classes functionalities.
	* PublisherMembershipCondition.cs: Use common template for membership
	condition.
	* SiteMembershipCondition.cs: Use common template for membership
	condition.
	* StrongNameMembershipCondition.cs: Use common template for membership
	condition.
	* UrlMembershipCondition.cs: Use common template for membership
	condition.
	* ZoneMembershipCondition.cs: Use common template for membership
	condition.

svn path=/trunk/mcs/; revision=32727
2004-08-23 19:55:42 +00:00
Peter Dennis Bartok 9dbdbbd11f - Properly fixed Jordi's last fix
- Now uses Cursor's Position property instead of calling XplatUI directly

svn path=/trunk/mcs/; revision=32726
2004-08-23 19:55:08 +00:00
Nick Drochak 4d43133a22 2004-08-24 Nick Drochak <[email protected]>
* DataViewTest.cs : Fixed compile with csc

svn path=/trunk/mcs/; revision=32725
2004-08-23 19:50:42 +00:00
Jordi Mas i Hernandez 100eb86a9f Adding missing attribute
svn path=/trunk/mcs/; revision=32724
2004-08-23 19:44:59 +00:00
Sebastien Pouliot cd015a576f 2004-08-23 Sebastien Pouliot <[email protected]>
* Boolean.cs: Added TryParse static method for NET_2_0 profile.

svn path=/trunk/mcs/; revision=32723
2004-08-23 19:43:47 +00:00
Peter Dennis Bartok 7de5a3cd27 - Implemented Position property
svn path=/trunk/mcs/; revision=32722
2004-08-23 19:39:59 +00:00
Peter Dennis Bartok cb5d22f5c3 - Added method to move mouse cursor
svn path=/trunk/mcs/; revision=32721
2004-08-23 19:39:30 +00:00
Peter Dennis Bartok 31bb904674 - Fixed setting of background color
- Added method to move mouse cursor

svn path=/trunk/mcs/; revision=32720
2004-08-23 19:39:13 +00:00
Jordi Mas i Hernandez de8c64bf31 avoids null exception
svn path=/trunk/mcs/; revision=32719
2004-08-23 19:16:23 +00:00
Peter Dennis Bartok 09def18846 - Created properly pathed VS.Net project and solution
svn path=/trunk/mcs/; revision=32718
2004-08-23 19:14:30 +00:00
Jackson Harper 76ee89aefa oops. remove unused file
svn path=/trunk/mcs/; revision=32711
2004-08-23 16:46:13 +00:00
César Natarén 813240a7b1 2004-08-23 Cesar Lopez Nataren <[email protected]>
* Parser.cs: pass the skip_count to ArrayLiteral constructor.
	* Missing.cs: back to Microsoft.JScript namespace.
	* ArrayLiteral.cs: added field skip_count, it tells us if this is
	a spaced-arrayliteral, in which case we add a null value in the
	list, added null check in the resolve and code generation process.

svn path=/trunk/mcs/; revision=32710
2004-08-23 16:12:59 +00:00
Gonzalo Paniagua Javier b8d491f379 2004-08-23 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal.

svn path=/branches/mono-1-0/mcs/; revision=32709
2004-08-23 16:08:23 +00:00
Gonzalo Paniagua Javier d5a52eb629 2004-08-23 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal.

svn path=/trunk/mcs/; revision=32708
2004-08-23 16:07:21 +00:00
Miguel de Icaza a76eee5c6b 2004-08-23 Zoltan Varga <[email protected]>
* inssel-x86.brg inssel-amd64: Add yet another missing tree->dreg assignment.

svn path=/branches/mono-1-0/mono/; revision=32707
2004-08-23 15:51:37 +00:00
Zoltan Varga 20fc04be1f 2004-08-23 Zoltan Varga <[email protected]>
* inssel-x86.brg inssel-amd64: Add yet another missing tree->dreg assignment.

svn path=/trunk/mono/; revision=32706
2004-08-23 15:42:34 +00:00
Martin Baulig b5b8dd9044 Don't crash here.
svn path=/trunk/mcs/; revision=32705
2004-08-23 15:40:53 +00:00
Atsushi Eno 3f40cbc057 2004-08-23 Atsushi Enomoto <[email protected]>
* XPathAtomicValue.cs, XPathNavigator.cs : Eliminate MS.Internal.Xml.*.

svn path=/trunk/mcs/; revision=32704
2004-08-23 15:05:35 +00:00
Atsushi Eno ee7bb8e9ad 2004-08-23 Atsushi Enomoto <[email protected]>
* SequenceType.cs, XPath2Expression.cs, XQueryASTCompiler.cs,
	  XQueryCliFunction.cs, XQueryCompileOptions.cs, XQueryContext.cs,
	  XQueryConvert.cs, XQueryExpression.cs, XQueryFunction,cs,
	  XQueryFunctionCliImpl.cs, XQueryFunctionTable.cs,
	  XQueryModuleProlog.cs, XQueryParser.jay, XQueryStaticContext.cs,
	  XQueryTokenizer.cs :
	  Eliminate MS.Internal.Xml.* classes. More null check everywhere and
	  make Compile() pass though as a dummy. Unified FunctionParam into
	  XQueryFunctionArgument. More kind error message. Several fixes.

svn path=/trunk/mcs/; revision=32703
2004-08-23 15:05:04 +00:00
Atsushi Eno e173cfb357 2004-08-23 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
	  eliminate MS.Internal.Xml.* classes.

svn path=/trunk/mcs/; revision=32702
2004-08-23 15:03:43 +00:00
Martin Baulig b3966ab2a7 2004-08-23 Martin Baulig <[email protected]>
Merged latest changes into gmcs.  Please keep this comment in
	here, it makes it easier for me to see what changed in MCS since
	the last time I merged.

svn path=/trunk/mcs/; revision=32700
2004-08-23 14:23:12 +00:00
Martin Baulig ad1a2f5077 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=32699
2004-08-23 14:22:52 +00:00
Martin Baulig 9eb7835ebe 2004-08-23 Martin Baulig <[email protected]>
Back to the old error reporting system :-)

	* report.cs (Message): Removed.
	(Report.MessageData, ErrorData, WarningData): Removed.
	(Report.Error, Warning): Back to the old system.

svn path=/trunk/mcs/; revision=32698
2004-08-23 14:21:28 +00:00
Sanja Gupta ff0330558f ChangeLog: Updated ChangeLog.
Literal.cs: Added new attributes and property for .Net 2.0

svn path=/trunk/mcs/; revision=32697
2004-08-23 13:36:36 +00:00
Zoltan Varga 71f930e16a Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=32696
2004-08-23 13:32:22 +00:00
Zoltan Varga fa61a520e3 2004-08-23 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_local_regalloc): Fix bug in long register
	allocation. Fixes #63085.

	* basic-long.cs: Add new regression test.

svn path=/trunk/mono/; revision=32695
2004-08-23 13:27:22 +00:00
Martin Baulig 63a4888456 2004-08-23 Martin Baulig <[email protected]>
Back to the old error reporting system :-)

	* report.cs (Message): Removed.
	(Report.MessageData, ErrorData, WarningData): Removed.
	(Report.Error, Warning): Back to the old system.

svn path=/trunk/mcs/; revision=32694
2004-08-23 13:26:34 +00:00
Martin Baulig 00c3f5fe76 No commas here.
svn path=/trunk/mcs/; revision=32693
2004-08-23 13:09:10 +00:00
Zoltan Varga 0d5e93dff0 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=32691
2004-08-23 09:57:59 +00:00
Zoltan Varga c409329d1a 2004-08-23 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_parse_type): Alloc pinned, byref and
	custom modifiers to be in any order. Fixes #61990.

svn path=/trunk/mono/; revision=32690
2004-08-23 09:56:12 +00:00
Zoltan Varga 585ada2f9c 2004-08-23 Zoltan Varga <[email protected]>
* mini-amd64.c: Register allocator improvements.

svn path=/trunk/mono/; revision=32689
2004-08-23 09:51:24 +00:00
Anirban Bhattacharjee 91fff3782d 2004-08-23 Anirban Bhattacharjee <[email protected]>
* Makefile: Trivial bug fixing

svn path=/trunk/mcs/; revision=32688
2004-08-23 07:29:45 +00:00
Martin Baulig 71e5fc18d5 2004-08-23 Martin Baulig <[email protected]>
* XmlDataInferenceLoader.cs (Driver): Make this class internal,
	not public.

svn path=/trunk/mcs/; revision=32686
2004-08-23 01:07:49 +00:00
Martin Baulig 8a29012b94 2004-08-23 Martin Baulig <[email protected]>
* decl.cs (IMemberContainer.Parent): Renamed to ParentContainer.

	* class.cs (TypeContainer.ParentContainer): New public virtual
	method; replaces the explicit interface implementation.
	(ClassPart.ParentContainer): Override.

svn path=/trunk/mcs/; revision=32684
2004-08-23 00:35:06 +00:00
Martin Baulig 831e74ab94 2004-08-23 Martin Baulig <[email protected]>
* Makefile: Add $(LIBRARY_FLAGS) to the $(net20bootstraplib)
	compilation to get /nostdlib.

svn path=/trunk/mcs/; revision=32683
2004-08-23 00:12:18 +00:00
Jackson Harper 23edb22930 Add PictureBox to the build
svn path=/trunk/mcs/; revision=32682
2004-08-22 23:47:09 +00:00
Jackson Harper 02cebc110f Initial implementation of PictureBox
svn path=/trunk/mcs/; revision=32681
2004-08-22 23:46:40 +00:00
Jackson Harper 72ab4d45f0 Add some missing locks
svn path=/trunk/mcs/; revision=32680
2004-08-22 23:40:45 +00:00
Martin Baulig ab3cff43cf Fix my previous commit.
svn path=/trunk/mcs/; revision=32678
2004-08-22 21:57:08 +00:00
Gonzalo Paniagua Javier a989e0c3bf 2004-08-22 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
	the cookie if SlidingExpiration is set. Thanks to Jim Pease.

svn path=/branches/mono-1-0/mcs/; revision=32677
2004-08-22 21:54:27 +00:00
Gonzalo Paniagua Javier 399aaabc6e 2004-08-22 Gonzalo Paniagua Javier <[email protected]>
* FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
	the cookie if SlidingExpiration is set. Thanks to Jim Pease.

svn path=/trunk/mcs/; revision=32676
2004-08-22 21:53:14 +00:00
Martin Baulig 578e71967b 2004-08-23 Martin Baulig <[email protected]>
* statement.cs (Switch): Added support for constant switches; see
	#59428 or test-285.cs.

svn path=/trunk/mcs/; revision=32675
2004-08-22 21:17:45 +00:00
Martin Baulig 045d2623b0 2004-08-23 Martin Baulig <[email protected]>
* test-285.cs: New test for #52428.

svn path=/trunk/mcs/; revision=32674
2004-08-22 21:15:25 +00:00
Peter Dennis Bartok a89b6a0721 - Removed OverlappedWindow style from Control, instead it's default
now is child
- Made form windows OverlappedWindow by default

svn path=/trunk/mcs/; revision=32673
2004-08-22 21:10:30 +00:00
Marek Safar 45d64d0bc0 updated test
svn path=/trunk/mcs/; revision=32672
2004-08-22 20:54:02 +00:00
Gonzalo Paniagua Javier bd25692de9 2004-08-22 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: ensure we have a full virtual path for the
	request being executed.

svn path=/branches/mono-1-0/mcs/; revision=32671
2004-08-22 20:48:38 +00:00
Gonzalo Paniagua Javier 74e7acf7b7 same fix as in HEAD
svn path=/branches/mono-1-0/mcs/; revision=32670
2004-08-22 20:47:18 +00:00
Gonzalo Paniagua Javier b5a43befeb 2004-08-22 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: ensure we have a full virtual path for the
	request being executed.

svn path=/trunk/mcs/; revision=32669
2004-08-22 20:44:07 +00:00
Marek Safar 74823b2d8e 2004-08-22 Marek Safar <[email protected]>
Fixed bug #62740.
	* statement.cs (GetEnumeratorFilter): Removed useless
	logic because C# specs is strict. GetEnumerator must be
	public.

svn path=/trunk/mcs/; revision=32668
2004-08-22 20:43:37 +00:00
Gonzalo Paniagua Javier 15c8c05104 2004-08-22 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationSettings.cs: fix bug when processing empty location
	tags. Closes bug #63001.

svn path=/trunk/mcs/; revision=32667
2004-08-22 20:42:27 +00:00
Martin Baulig e44cc4ce54 2004-08-22 Martin Baulig <[email protected]>
* test-154.cs: Added test case for #59867.

svn path=/trunk/mcs/; revision=32666
2004-08-22 20:34:48 +00:00
Martin Baulig 8dcbbddfe5 2004-08-22 Martin Baulig <[email protected]>
* flowanalysis.cs (FlowBranching.UsageVector.MergeChild): If we're
	a switch and may break, reset the barrier.  Fixes #59867.

svn path=/trunk/mcs/; revision=32665
2004-08-22 20:34:15 +00:00
Marek Safar 6807edf7d9 new error tests
svn path=/trunk/mcs/; revision=32664
2004-08-22 20:07:53 +00:00
Marek Safar 2d436d0ff0 2004-08-22 Marek Safar <[email protected]>
CLS-Compliance speed up (~5% for corlib)

	* attribute.cs (AttributeTester.VerifyTopLevelNameClsCompliance):
	New method. Tests container for CLS-Compliant names

	* class.cs (TypeContainer.VerifyClsName): New method.
	Checks whether container name is CLS Compliant.
	(Constructor): Implements IMethodData.

	* decl.cs (MemberCache.GetPublicMembers ): New method. Builds
	low-case table for CLS Compliance test.
	(MemberCache.VerifyClsParameterConflict): New method.
	Checks method parameters for CS3006 error.

	* enum.cs (EnumMember): Is derived from MemberCore.
	(Enum.VerifyClsName): Optimized for better performance.

svn path=/trunk/mcs/; revision=32663
2004-08-22 20:06:14 +00:00
Gonzalo Paniagua Javier 159118e15c fixes from HEAD
svn path=/branches/mono-1-0/mcs/; revision=32662
2004-08-22 20:05:24 +00:00
Jackson Harper b86cbacaa5 Update the position through the Value property so the OnValueChanged event is raised.
svn path=/trunk/mcs/; revision=32661
2004-08-22 19:34:22 +00:00
Peter Dennis Bartok a38f164042 - Added Cursor.cs and UserControl.cs
svn path=/trunk/mcs/; revision=32660
2004-08-22 18:04:41 +00:00
Peter Dennis Bartok ba4cf98980 - Added Cursor.cs source
svn path=/trunk/mcs/; revision=32659
2004-08-22 18:04:23 +00:00
Peter Dennis Bartok f046d3b613 - Started implementation, not usable yet
svn path=/trunk/mcs/; revision=32658
2004-08-22 18:03:57 +00:00
Peter Dennis Bartok f3e05cd144 - Implemented UserControl (complete)
svn path=/trunk/mcs/; revision=32656
2004-08-22 18:00:49 +00:00
Peter Dennis Bartok d1858e7b55 - Restored sort order for file
- Added UserControl source file

svn path=/trunk/mcs/; revision=32655
2004-08-22 17:59:38 +00:00
César Natarén 1656146ae4 2004-08-22 Cesar Lopez Nataren <[email protected]>
* Microsoft.JScript.dll.sources: added In.cs, Token.cs,
	TokenStream.cs and Parser.cs to the build. Don't build
	JScriptLexer.cs and JScriptParser.cs

svn path=/trunk/mcs/; revision=32654
2004-08-22 06:22:30 +00:00
César Natarén 9931458f37 changelog entries
svn path=/trunk/mcs/; revision=32653
2004-08-22 06:04:57 +00:00
César Natarén 50f800b287 2004-08-21 Cesar Lopez Nataren <[email protected]>
* expression.cs: added interface ICallable and and function AddArg
	to class Call. Added class New.
	* driver.cs: made it use the new lexer and parser.
	* ast.cs: added field line_number, added property InFunction,
	added class Function that factores all the code shared between
	FunctionDeclaration and FunctionExpression.
	* With.cs: constructor receives line number.
	* VariableStatement.cs: constructor receives line number.
	* VariableDeclaration.cs: Added check for parent being
	FunctionDeclaration and FunctionExpression.
	* Try.cs: Moved the code that used to take care of the catch to
	Catch class. Constructor receives forming elements and line
	number. Removed mangle_id.
	* Throw.cs: constructor receives line number.
	* Statement.cs: If, DoWhile, Return  constructor receives line number. Renamed
	identifier to label in Continue and Break class, its constructor now
	receives the label and line number. For class, constructor
	receives its forming parts. Switch class, constructor receives
	line number, added function AddClause and AddStm. Added class
	Catch. Added class Labelled.
	* SemanticAnalyser.cs: Added field anon_method_counter, properties
	NextAnonymousMethod and CurrentAnonymousMethod.
	* Parser.cs: function ArgumentList receives a ICallable list
	instead of a AST. Now we add the arguments of a callable. Build
	Call's ast.
	* Literal.cs: added constructor for 'this' literal and
	ObjectLiteral constructor. Added RegExpLiteral class, will take
	care of regular expressions semantic analysis and code generation.
	* JSScanner.cs: use no more the antlr based lexer. Fix typo.
	* JSParser.cs: make it use the new port of Rhino's Parser.
	* FunctionObject.cs: Added constructor that receives the function name.
	* FunctionExpression.cs: made it inherit from Function class. Added
	constructor. Factored the code that used to set the prefix to
	Function.set_prefix (it's shared with FunctionDeclaration). Added
	fields local_script_func and field. Implemented Resolve and Emit
	(now we can do: var x = function (this, method, is, anonymous) {... };).
	* FunctionDeclaration.cs: made it inherit from Function class in
	order to share code with FunctionExpression. Added new
	constructor. Moved the code that used to built the prefix to
	Function inside function set_prefix. When building the closure
	added check for  setting the type of a FunctionExpression. Moved
	set_function_type and set_custom_attr to class Function.
	* ForIn.cs: added constructor and fields lhs, obj and body.
	* Block.cs: added default constructor and line number based
	constructor. Check for elems not being null before adding.
	* ArrayLiteral.cs: set elements in constructor.

svn path=/trunk/mcs/; revision=32652
2004-08-22 06:02:10 +00:00
Ravindra 80b9ea2c5c Correcting the formatting mess of VS.NET.
svn path=/trunk/mcs/; revision=32650
2004-08-22 01:20:14 +00:00
Ravindra a3de2ba717 Probably this completes the missing attributes in toolbar control.
svn path=/trunk/mcs/; revision=32649
2004-08-22 00:49:37 +00:00
Ravindra 44740e0eea Fixed toolbar control signatures.
svn path=/trunk/mcs/; revision=32648
2004-08-22 00:03:20 +00:00
Peter Dennis Bartok 0fea8031c0 - Signature Fixes
svn path=/trunk/mcs/; revision=32647
2004-08-21 22:32:14 +00:00
Peter Dennis Bartok f9834491e1 - Signature fixes
svn path=/trunk/mcs/; revision=32646
2004-08-21 22:30:53 +00:00
Peter Dennis Bartok 7fc156df0c - Signature fixes
svn path=/trunk/mcs/; revision=32645
2004-08-21 22:21:13 +00:00
Peter Dennis Bartok d1fbcfa1cf - Added loads of debug output for development
- Fixed typo in method name

svn path=/trunk/mcs/; revision=32644
2004-08-21 21:57:41 +00:00
Peter Dennis Bartok a2975f0048 - Added missing base class
svn path=/trunk/mcs/; revision=32643
2004-08-21 21:52:54 +00:00
Jackson Harper 446ce283e2 * ImageAnimator.cs: Run animator as a background thread so we do
not hang on exit.

svn path=/trunk/mcs/; revision=32642
2004-08-21 21:29:47 +00:00
Peter Dennis Bartok b32fe2b6f1 - Updated to match new GrabWindow signature
svn path=/trunk/mcs/; revision=32639
2004-08-21 20:53:13 +00:00
Peter Dennis Bartok 4350577e12 - Added method to get default display size
svn path=/trunk/mcs/; revision=32638
2004-08-21 20:51:27 +00:00
Peter Dennis Bartok 6764d19909 - Added method to query current grab state
- Added argument to allow confining a grab to a window

svn path=/trunk/mcs/; revision=32637
2004-08-21 20:23:56 +00:00
Ravindra 0811ca6b3d * gdipFunctions.cs: Modified exception message to include the case
of missing required libraries for different formats.

svn path=/trunk/mcs/; revision=32636
2004-08-21 20:23:39 +00:00
Peter Dennis Bartok b45ce25539 - Added [Flags] attribute so that modifiers can be used in bitwise ops
svn path=/trunk/mcs/; revision=32635
2004-08-21 20:22:58 +00:00
Peter Dennis Bartok d7d36eda02 - Replaced direct XplatUI calls with their Control counterpart
svn path=/trunk/mcs/; revision=32633
2004-08-21 20:22:21 +00:00
Zoltan Varga d59256a93b 2004-08-21 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h (X86_IS_BYTE_REG): Redefine X86_IS_BYTE_REG
	since under amd64, all 16 registers have a low part.

svn path=/trunk/mono/; revision=32632
2004-08-21 20:07:37 +00:00
Peter Dennis Bartok 1f62887397 - Implemented Created property
svn path=/trunk/mcs/; revision=32631
2004-08-21 19:32:15 +00:00
Peter Dennis Bartok 154a05a3fb - Implemented ContainsFocus
svn path=/trunk/mcs/; revision=32630
2004-08-21 19:28:22 +00:00
Peter Dennis Bartok 2872b75386 - Implemented CausesValidation
svn path=/trunk/mcs/; revision=32629
2004-08-21 19:26:24 +00:00
Peter Dennis Bartok a6918150c3 - Implemented CanFocus
- Implemented CanSelect
- Implemented Capture

svn path=/trunk/mcs/; revision=32628
2004-08-21 19:21:50 +00:00
Peter Dennis Bartok e995fa34cd - Fixed bug with Async message handling
- Implemented getting the ModifierKeys

svn path=/trunk/mcs/; revision=32627
2004-08-21 18:35:38 +00:00
Jackson Harper cc7cb43278 Make sure we have the mutex before we release it. Fixes BeginInvoke on windows
svn path=/trunk/mcs/; revision=32626
2004-08-21 18:32:20 +00:00
Zoltan Varga 02e6c8d464 2004-08-21 Zoltan Varga <[email protected]>
* mini-amd64.c (read_tls_offset_from_method): Add another code
	sequence.

	* tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
	instruction sequence for nullifying class init trampolines.

svn path=/trunk/mono/; revision=32624
2004-08-21 18:05:50 +00:00
Peter Dennis Bartok d6e9fc5030 - Drivers now return proper mouse state
svn path=/trunk/mcs/; revision=32623
2004-08-21 17:31:21 +00:00
Jackson Harper b9c62b4b88 Implement EndInvoke
svn path=/trunk/mcs/; revision=32621
2004-08-21 16:54:11 +00:00
Jackson Harper cdc8abd3c4 Remove unneeded finalizer
svn path=/trunk/mcs/; revision=32620
2004-08-21 16:48:47 +00:00
Zoltan Varga fa26c1523a 2004-08-21 Zoltan Varga <[email protected]>
* objects.cs: Add new regalloc test.

	* mini-amd64.c inssel-amd64.brg: Optimize parameter passing.

svn path=/trunk/mono/; revision=32618
2004-08-21 12:11:15 +00:00
Jochen Wezel 153adcfc7a Removed some indentation comments in generated source code
svn path=/trunk/mcs/; revision=32617
2004-08-21 08:51:53 +00:00
Atsushi Eno a26c529845 2004-08-21 Atsushi Enomoto <[email protected]>
* XmlElement.cs : set_InnerText was removing children incompletely.
	  This fixes bug #63574.

svn path=/branches/mono-1-0/mcs/; revision=32616
2004-08-21 01:53:31 +00:00
Atsushi Eno 31285c4397 2004-08-21 Atsushi Enomoto <[email protected]>
* XmlElement.cs : set_InnerText was removing children incompletely.
	  This fixes bug #63574.

svn path=/trunk/mcs/; revision=32615
2004-08-21 01:53:05 +00:00
Ravindra 3776117c9f Improvments in mouse event handling in the ToolBar control.
svn path=/trunk/mcs/; revision=32614
2004-08-21 01:52:08 +00:00
Ravindra 97c3ce46b4 Changed draw method to use the arguments passed in to draw the image.
svn path=/trunk/mcs/; revision=32613
2004-08-21 01:50:52 +00:00
Peter Dennis Bartok 393b53408f - Added private message for async communication
svn path=/trunk/mcs/; revision=32612
2004-08-21 00:58:31 +00:00
Ravindra 45a517ba3e Made RightToLeft property virtual and removed a Console.WriteLine.
svn path=/trunk/mcs/; revision=32610
2004-08-20 23:38:54 +00:00
Jordi Mas i Hernandez 50b7abf49c use style_attach
svn path=/trunk/mcs/; revision=32609
2004-08-20 20:39:51 +00:00
Peter Dennis Bartok 063cd08cf5 - Added jackson's Async code from X11 to Win32
svn path=/trunk/mcs/; revision=32608
2004-08-20 20:39:07 +00:00
Zoltan Varga b8d11e5c35 2004-08-20 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_call_opcode): Refactor this a little.

svn path=/trunk/mono/; revision=32607
2004-08-20 20:11:12 +00:00
Peter Dennis Bartok 088a2b19b2 - Added all new files
svn path=/trunk/mcs/; revision=32606
2004-08-20 20:09:54 +00:00
Peter Dennis Bartok 06680751ea - Added call to set window background color
svn path=/trunk/mcs/; revision=32605
2004-08-20 20:09:24 +00:00
Zoltan Varga 5bc374f0e0 2004-08-20 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_regalloc_cost): Adjust regalloc costs for
	arguments.

svn path=/trunk/mono/; revision=32604
2004-08-20 20:04:05 +00:00
Peter Dennis Bartok 4831672059 - Added method for setting the window background
svn path=/trunk/mcs/; revision=32603
2004-08-20 20:03:46 +00:00
Peter Dennis Bartok 8121259139 - Added method for setting the background color
- Added handling for erasing the window background

svn path=/trunk/mcs/; revision=32602
2004-08-20 20:02:45 +00:00
Zoltan Varga de553279f6 2004-08-20 Zoltan Varga <[email protected]>
* driver.c: Fix profiling after TLS changes.

svn path=/trunk/mono/; revision=32601
2004-08-20 19:52:38 +00:00
Jordi Mas i Hernandez 1c863aa3e4 fixes timer, new properties and methods
svn path=/trunk/mcs/; revision=32599
2004-08-20 19:45:50 +00:00
Zoltan Varga 198bed616f 2004-08-20 Zoltan Varga <[email protected]>
* object.c: Register mono_object_new_fast icall.

svn path=/trunk/mono/; revision=32598
2004-08-20 19:36:11 +00:00
Jackson Harper d743511933 Use the SWF timer so callbacks are run in the correct thread
svn path=/trunk/mcs/; revision=32597
2004-08-20 19:35:33 +00:00
Jackson Harper 967c64ee19 Use the SWF timer so callbacks are run in the correct thread
svn path=/trunk/mcs/; revision=32596
2004-08-20 19:34:26 +00:00
Zoltan Varga c5a6cc359b 2004-08-20 Zoltan Varga <[email protected]>
* object.c (mono_class_get_allocation_ftn): Return to calling
	mono_object_new_fast, since it seems faster to compute the object
	size in unmanaged code than passing it as a parameter.

svn path=/trunk/mono/; revision=32595
2004-08-20 19:33:06 +00:00
Jackson Harper 06e323bb0d Timer Tick events are now handed through Controls Async mechanism so the callbacks are executed in the same thread as X
svn path=/trunk/mcs/; revision=32594
2004-08-20 19:22:40 +00:00
Jackson Harper 98783e57df Expose functionality to send async messages through the driver
svn path=/trunk/mcs/; revision=32593
2004-08-20 19:19:28 +00:00
Jackson Harper 25ad7358cf Implement Begininvoke
svn path=/trunk/mcs/; revision=32592
2004-08-20 19:18:30 +00:00
Jackson Harper 3e8a47c40e Lock before all X operations. Also added Async method functionality through XSendEvent
svn path=/trunk/mcs/; revision=32591
2004-08-20 19:12:45 +00:00
Jackson Harper eb9995aa71 Use IntPtrs for ClientMessage extra data (TODO: This will screw up on 64 bit systems)
svn path=/trunk/mcs/; revision=32590
2004-08-20 19:11:56 +00:00
Jackson Harper c235a6af89 Classes for sending Async messages through X/Win32
svn path=/trunk/mcs/; revision=32589
2004-08-20 19:10:38 +00:00
Sebastien Pouliot 5e8b8d82af 2004-08-20 Sebastien Pouliot <[email protected]>
* Thread.cs: Added Fx 2.0 properties/methods/attributes.

svn path=/trunk/mcs/; revision=32588
2004-08-20 18:19:00 +00:00
Sebastien Pouliot 84dad1fad9 2004-08-20 Sebastien Pouliot <[email protected]>
* UrlIdentityPermission.cs: Basic (without wildcards) implementation
	for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.

svn path=/trunk/mcs/; revision=32587
2004-08-20 17:50:39 +00:00
Sebastien Pouliot 704cadc3d2 2004-08-20 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added System.Security.Permissions/
	UrlIdentityPermissionTest.cs to unit tests.

svn path=/trunk/mcs/; revision=32586
2004-08-20 17:48:47 +00:00
Sebastien Pouliot af115212b9 2003-08-20 Sebastien Pouliot <[email protected]>
* UrlIdentityPermissionTest.cs: New unit tests for
	UrlIdentityPermission. Lacks tests for wilcards.

svn path=/trunk/mcs/; revision=32585
2004-08-20 17:44:55 +00:00
Zoltan Varga 4089a38f7d 2004-08-20 Zoltan Varga <[email protected]>
* object.c (mono_class_get_allocation_ftn): Add marshalbyref case.

svn path=/trunk/mono/; revision=32584
2004-08-20 16:41:19 +00:00
Atsushi Eno 31014af746 2004-08-20 Atsushi Enomoto <[email protected]>
* XQueryCommand.cs : use new XPathDocument() for empty contextdocument.

svn path=/trunk/mcs/; revision=32583
2004-08-20 16:07:32 +00:00
Atsushi Eno 86946e9209 2004-08-20 Atsushi Enomoto <[email protected]>
* XQueryExpression.cs : Content for XmlTextConstructor might be null,
	  and use literal text for constructor argument if supplied.
	* XQueryParser.jay, XQueryTokenizer.cs : Element content literal
	  string was not parsed and kept correctly. Parse CDATA section.

svn path=/trunk/mcs/; revision=32582
2004-08-20 16:00:19 +00:00
Zoltan Varga 71849c735c 2004-08-20 Zoltan Varga <[email protected]>
* driver.c (mono_main): Set mono_stats.enabled if needed.

	* mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
	CEE_BOX.

svn path=/trunk/mono/; revision=32580
2004-08-20 15:10:06 +00:00
Zoltan Varga a0dfb37ca1 2004-08-20 Zoltan Varga <[email protected]>
* gc-internal.h gc.c: Add mono_gc_out_of_memory () function. Register
	this function with Boehm as the oom handler, so we don't have to check
	the result of GC_malloc.

	* object.c: Remove checks for oom.

	* object.h object.c (mono_class_get_allocation_ftn): New function to
	return the icall which can be used to allocate an instance of a given
	class.

	* object.c: Handle common allocation requests using GC_gcj_fast_malloc.

	* class-internals.h: Add 'enabled' field.

svn path=/trunk/mono/; revision=32579
2004-08-20 15:02:23 +00:00
Ben Maurer cd890c5e9b commentify for miggypoo
svn path=/trunk/mono/; revision=32578
2004-08-20 14:13:43 +00:00
Sebastien Pouliot 1c4c700c6f 2004-08-20 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added System.Security.Permissions/
	SiteIdentityPermissionTest.cs to unit tests.

svn path=/trunk/mcs/; revision=32574
2004-08-20 13:47:55 +00:00
Sebastien Pouliot b1213a660e 2004-08-20 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Basic (without wildcards) implementation
	for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.

svn path=/trunk/mcs/; revision=32573
2004-08-20 13:25:32 +00:00
Sebastien Pouliot f5c01975b6 2003-08-20 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
	class CodeAccessSecurityAttribute.
	* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
	DataProtectionPermissionAttribute class.
	* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
	HostProtectionAttribute class.
	* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
	abstract class IsolatedStoragePermissionAttribute.
	* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
	KeyContainerPermissionAttribute class.
	* SecurityAttributeTest.cs: New unit tests for abstract class
	SecurityAttribute.
	* SiteIdentityPermissionTest.cs: New unit tests for
	SiteIdentityPermission. Lacks tests for wilcards.

svn path=/trunk/mcs/; revision=32572
2004-08-20 13:22:59 +00:00
Anirban Bhattacharjee af9c572b31 2004-08-20 Anirban Bhattacharjee <[email protected]>
* Event_dll.vb:
        * Event_exe.vb:
                New tests for invoking event form other assembly
        * Test.Sources: Updated with new file names
        * Makefile: Added new dll name

svn path=/trunk/mcs/; revision=32571
2004-08-20 13:21:18 +00:00
Atsushi Eno 1fa4c86a75 2004-08-20 Atsushi Enomoto <[email protected]>
* XQueryCommand.cs : Now it delegates all implementation logic to
	  Mono.Xml.XQuery.XQueryCommandImpl class (now Execute() is also
	  invoked.)

svn path=/trunk/mcs/; revision=32570
2004-08-20 13:01:36 +00:00
Atsushi Eno 8fdff0df97 2004-08-20 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources:
	  added many XQuery implementation internal classes.

svn path=/trunk/mcs/; revision=32569
2004-08-20 12:59:25 +00:00
Atsushi Eno 33563819d0 2004-08-20 Atsushi Enomoto <[email protected]>
* XPath2Expression.cs, XQueryConvert.cs, XQueryExpression.cs,
	  XQueryModuleProlog.cs, XQueryParser.jay, XQueryTokenizer.cs :
	  several changes for XQueryCommand.Execute() implementation.

svn path=/trunk/mcs/; revision=32568
2004-08-20 12:58:03 +00:00
Atsushi Eno c29380f5f1 2004-08-20 Atsushi Enomoto <[email protected]>
* XQueryContext.cs, XQueryStaticContext.cs, SequenceType.cs,
	  XPathSequence.cs, XQueryFunction.cs, XQueryFunctionTable.cs,
	  XQueryCliFunction.cs, XQueryCompileContext.cs, XQueryASTCompiler.cs,
	  XQueryCommandImpl.cs, XQueryFunctionCliImpl :
	  new files for XQuery implementation.

svn path=/trunk/mcs/; revision=32567
2004-08-20 12:54:00 +00:00
Anirban Bhattacharjee 6199b3241c 2004-08-20 Anirban Bhattacharjee <[email protected]>
* statement.cs: Bug fixing - Prevent AddHandler from getting resolved second time. This is critical for ASP programs with VB.

svn path=/trunk/mcs/; revision=32566
2004-08-20 12:29:46 +00:00
Anirban Bhattacharjee 7ad9c4ea03 2004-08-18 Anirban Bhattacharjee <[email protected]>
* expression.cs: Bug fixing - reference to the current type is fixed during BaseAccess resolution

svn path=/trunk/mcs/; revision=32565
2004-08-20 12:24:23 +00:00
Sureshkumar T dc95f1eefb 2004-08-20 Sureshkumar T ([email protected])
* OdbcConnection.cs - correct handles are passed to OdbcError exception to trap the correct error

svn path=/trunk/mcs/; revision=32564
2004-08-20 10:57:52 +00:00
Sureshkumar T 750d36191e 2004-08-20 Sureshkumar T ([email protected])
* OdbcConnection.cs - correct handles are passed to OdbcError exception to trap the correct error

svn path=/branches/mono-1-0/mcs/; revision=32563
2004-08-20 10:44:48 +00:00
Sachin Kumar e6ea2ff3dd Added new tests for Select Case Statements
svn path=/trunk/mcs/; revision=32562
2004-08-20 10:43:22 +00:00
Atsushi Eno eda831cc92 2004-08-20 Atsushi Enomoto <[email protected]>
* AssemblyInfo.cs : updated version to match with ms.net.

svn path=/trunk/mcs/; revision=32561
2004-08-20 09:16:23 +00:00
Umadevi S af5df4fb3a 2004-08-20 Umadevi S <[email protected]>
* Added testcase in SqlDataAdapter.cs for Fillschema

svn path=/trunk/mcs/; revision=32560
2004-08-20 05:41:15 +00:00
Atsushi Eno a626f878cd 2004-08-20 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : ReadTypedValue() is override under 2_0.

svn path=/trunk/mcs/; revision=32559
2004-08-20 03:56:51 +00:00
Atsushi Eno 001f24a919 2004-08-20 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed EOF not to return true when it is just
	  closed. Element and EndElement location is now adjusted to be the
	  same as MS.NET does. This fixes bug #63505 and #63507.
	  ResetState() now throws InvalidOperationException() as MS.NET does.

	* WriteState.cs : added missing 2_0 enumeration.
	* XmlReader.cs : ReadTypedValue() is virtual.
	* XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.

svn path=/trunk/mcs/; revision=32558
2004-08-20 03:56:05 +00:00
Atsushi Eno f8b3c18e42 2004-08-20 Atsushi Enomoto <[email protected]>
ResetState() now throws InvalidOperationException() as MS.NET does.

svn path=/branches/mono-1-0/mcs/; revision=32557
2004-08-20 03:51:49 +00:00
Atsushi Eno bed9421244 2004-08-20 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed EOF not to return true when it is just
	  closed. Element and EndElement location is now adjusted to be the
	  same as MS.NET does. This fixes bug #63505 and #63507.

svn path=/branches/mono-1-0/mcs/; revision=32556
2004-08-20 03:47:14 +00:00
Ben Maurer bd680152c3 2004-08-20 Ben Maurer <[email protected]>
* mini-x86.c: use a 1 op rather than a 2 op tls access
	instruction -> faster.

svn path=/trunk/mono/; revision=32555
2004-08-20 03:17:15 +00:00
Peter Dennis Bartok e366d245d4 - Updated code to match new HandleData.DeviceContext type
svn path=/trunk/mcs/; revision=32554
2004-08-20 01:39:06 +00:00
Peter Dennis Bartok dd1ce04dbd - Made DeviceContext a generic object to allow usage from various drivers
- Added support for queueing Windows messages

svn path=/trunk/mcs/; revision=32553
2004-08-20 01:38:36 +00:00
Peter Dennis Bartok 8b2813092f - Added generation of MouseEnter, MouseLeave and MouseHover events
- Added cleanup on EndPaint

svn path=/trunk/mcs/; revision=32552
2004-08-20 01:37:47 +00:00
Peter Dennis Bartok a50d015e9f - Added handling of WM_MOUSEHOVER
- Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver code

svn path=/trunk/mcs/; revision=32551
2004-08-20 01:17:24 +00:00
Jordi Mas i Hernandez 1138568de8 fixes button order
svn path=/trunk/mcs/; revision=32550
2004-08-20 00:55:28 +00:00
Jordi Mas i Hernandez d31e2d3e02 fixes methods signature
svn path=/trunk/mcs/; revision=32549
2004-08-20 00:12:51 +00:00
Peter Dennis Bartok a297440259 - Added Right property
- Added RightToLeft property

svn path=/trunk/mcs/; revision=32548
2004-08-19 23:09:22 +00:00
Zoltan Varga b3e95a2384 2004-08-20 Zoltan Varga <[email protected]>
* mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
	x86 backend.

svn path=/trunk/mono/; revision=32547
2004-08-19 22:43:49 +00:00
Jordi Mas i Hernandez 2893b97038 experimental GTK theme support
svn path=/trunk/mcs/; revision=32546
2004-08-19 22:27:40 +00:00
Jordi Mas i Hernandez f971866de1 move themes from an interface to a class
svn path=/trunk/mcs/; revision=32545
2004-08-19 22:26:30 +00:00
Jordi Mas i Hernandez ba494c8d69 theme enhancaments
svn path=/trunk/mcs/; revision=32544
2004-08-19 22:25:31 +00:00
Peter Dennis Bartok fd74daf790 - Added colormap basics
- Added a way to re-initialize with a different display handle
- Fixed setting of the window background color
- Added various X11 imports related to colors and colormaps

svn path=/trunk/mcs/; revision=32543
2004-08-19 22:04:18 +00:00
Peter Dennis Bartok e82d4940aa - Removed packing hints (Paolo suggested this a while back)
- fixed colormap type
- Added default Atom types
- Added Screen and color structs and enums

svn path=/trunk/mcs/; revision=32542
2004-08-19 21:51:59 +00:00
Peter Dennis Bartok 5a1a6a6146 - Added missing Draw() method
- Added missing RecreateHandle event

svn path=/trunk/mcs/; revision=32541
2004-08-19 21:39:09 +00:00
Peter Dennis Bartok f7b685fbf3 - Added handling of WM_CLOSE
svn path=/trunk/mcs/; revision=32540
2004-08-19 21:30:37 +00:00
Sebastien Pouliot b3de80e98c 2004-08-19 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added System.Security.Permissions/
	CodeAccessSecurityAttributeTest.cs,
	DataProtectionPermissionAttributeTest.cs (NET_2_0),
	HostProtectionAttributeTest.cs (NET_2_0),
	IsolatedStoragePermissionAttributeTest.cs and
	KeyContainerPermissionAttributeTest.cs  (NET_2_0) to unit tests.

svn path=/trunk/mcs/; revision=32539
2004-08-19 18:50:41 +00:00
Sebastien Pouliot 3e39548144 2003-08-19 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
	class CodeAccessSecurityAttribute.
	* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
	DataProtectionPermissionAttribute class.
	* EnvironmentPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Fixed small
	behaviour difference with Fx 2.0.
	* FileDialogPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* FileIOPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Added tests
	for new Fx 2.0 properties.
	* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
	HostProtectionAttribute class.
	* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
	abstract class IsolatedStoragePermissionAttribute.
	* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
	KeyContainerPermissionAttribute class.
	* PermissionSetAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Added tests
	for new Fx 2.0 properties.
	* PrincipalPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* PublisherIdentityPermissionAttributeTest.cs: Added tests to check
	class's	attributes. Converted existing tests to NUnit 2.2 format.
	* ReflectionPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* RegistryPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Added tests
	for new Fx 2.0 properties.
	* SecurityAttributeTest.cs: New unit tests for abstract class
	SecurityAttribute.
	* SecurityPermissionAttributeTest.cs: Removed unrequired line.
	* SiteIdentityPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* StrongNameIdentityPermissionAttributeTest.cs: Removed unrequired line.
	* UIPermissionAttributeTest.cs: Removed unrequired line.
	* UrlIdentityPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* ZoneIdentityPermissionAttributeTest.cs: Removed unrequired line.

svn path=/trunk/mcs/; revision=32538
2004-08-19 18:46:33 +00:00
Sebastien Pouliot 0a21246208 2004-08-19 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttribute.cs: Namespace clean-up (removing System.)
	* EnvironmentPermission.cs: Common exception for flags validation.
	Fixed Fx 2.0 return values (String.Empty not null).
	* EnvironmentPermissionAttribute.cs: Namespace clean-up.
	* FileIOPermission.cs: Updated to use the common template. Added Fx
	2.0 properties.
	* FileIOPermissionAttribute.cs: Added Fx 2.0 properties.
	* HostProtectionAttribute.cs: Namespace clean-up (removing System.)
	* IsolatedStoragePermissionAttribute.cs: Namespace cleanup.
	* KeyContainerPermissionAttribute.cs: Added default values. Removed
	unrequired flags validations. Can now create unrestricted permissions.
	* PermissionSetAttribute.cs: Added new Fx 2.0 Hex property.
	* PrincipalPermission.cs: Updated to use the common template.
	* PrincipalPermissionAttribute.cs: Namespace cleanup.
	* PublisherIdentityPermissionAttribute.cs: Namespace cleanup.
	* RegistryPermission.cs: Updated to use the common template.
	* RegistryPermissionAttribute.cs: Added Fx 2.0 properties.
	* SecurityAttribute.cs: Namespace clean-up (removing System.)
	* SiteIdentityPermission.cs: Updated to use the common template.
	* SiteIdentityPermissionAttribute.cs: Move unrestricted responsability
	check to SiteIdentityPermission constructor.
	* StrongNamePermissionAttribute.cs: Move unrestricted responsability
	check to StrongNameIdentityPermission constructor.
	* UrlIdentityPermission.cs: Updated to use the common template.
	* UrlIdentityPermissionAttribute.cs: Move unrestricted responsability
	check to UrlIdentityPermission constructor.
	* ZoneIdentityPermissionAttribute.cs: Move unrestricted responsability
	check to ZoneIdentityPermission constructor.

svn path=/trunk/mcs/; revision=32537
2004-08-19 18:29:23 +00:00
Bernie Solomon 9aa565d2db 2004-08-19 Bernie Solomon <[email protected]>
* exceptions-sparc.c (throw_exception): fix typo

svn path=/trunk/mono/; revision=32535
2004-08-19 16:04:19 +00:00
Ben Maurer 9e83faa42e 2004-08-19 Ben Maurer <[email protected]>
* mini-x86.c, cpu-pentium.md, inssel-x86.brg:
	set tree->dreg correctly with tls. Allow any
	register to be used.

	* mini-x86.c (read_tls_offset_from_method): add new code
	generation pattern seen with GCC.

svn path=/trunk/mono/; revision=32533
2004-08-19 15:14:48 +00:00
Paolo Molaro 261b1c9800 Compile fixes.
svn path=/trunk/mono/; revision=32532
2004-08-19 14:37:41 +00:00
Paolo Molaro 698c995f5a Thu Aug 19 17:26:55 CEST 2004 Paolo Molaro <[email protected]>
* mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
	exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
	exceptions-sparc.c: fix some performance issues in exception
	handling and setting of the stack trace for exceptions that were
	already thrown.

svn path=/trunk/mono/; revision=32531
2004-08-19 14:25:07 +00:00
Rafael Teixeira fe395e1629 2004/08/19 Rafael Teixeira <[email protected]>
* driver.cs : Some cleanup, also renamed checked option as it was removeintchecks in disguise

svn path=/trunk/mcs/; revision=32530
2004-08-19 14:00:55 +00:00
Dick Porter f77abeb434 2004-08-19 Dick Porter <[email protected]>
* handles.c (_wapi_handle_count_signalled_handles): Fix thinko
	introduced with the fd offset stuff: unlock handles properly when
	backing off.  Fixes the monologue hang at exit.

svn path=/trunk/mono/; revision=32528
2004-08-19 13:00:56 +00:00
Anirban Bhattacharjee 07e439758e 2004-08-19 Anirban Bhattacharjee <[email protected]>
* NameSpaceTestA.vb: New test
        * NameSpaceTestB.vb: New test
        * Test.Source: Added new test names

svn path=/trunk/mcs/; revision=32527
2004-08-19 12:52:37 +00:00
Sachin Kumar 1436322978 Added new tests for IF..Then..Else Statements
svn path=/trunk/mcs/; revision=32526
2004-08-19 12:26:13 +00:00
Anirban Bhattacharjee 65260e4213 2004-08-19 Anirban Bhattacharjee <[email protected]>
* Makefile: Changed the makefile to support multiple file compilation sothat  we can compile files A1.vb, A2.vb, A3.vb as A*.vb

svn path=/trunk/mcs/; revision=32525
2004-08-19 12:14:11 +00:00
Zoltan Varga b3bf0b5f89 2004-08-19 Zoltan Varga <[email protected]>
* domain.c (mono_init_internal): Call MONO_GC_PRE_INIT ().

svn path=/trunk/mono/; revision=32524
2004-08-19 11:41:21 +00:00
Sebastien Pouliot 123dedbb75 2004-08-19 Sebastien Pouliot <[email protected]>
* SecurityPermission.cs: Updated to use the common template. Now
	pass all unit tests.

svn path=/trunk/mcs/; revision=32523
2004-08-19 11:28:15 +00:00
Sebastien Pouliot ab10a359a2 2004-08-19 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added SecurityPermissionTest.cs to unit
	tests.

svn path=/trunk/mcs/; revision=32522
2004-08-19 11:25:02 +00:00
Sebastien Pouliot ac2b728164 2003-08-19 Sebastien Pouliot <[email protected]>
* SecurityPermissionAttributeTest.cs: Added unit tests for invalid
	SecurityAction, Flags effects and custom attributes. Converted
	existing tests to NUnit 2.2 format.
	* SecurityPermissionTest.cs: New. Unit tests for SecurityPermission.

svn path=/trunk/mcs/; revision=32521
2004-08-19 11:23:14 +00:00
Sachin Kumar 97edfb397a Added few more new tests for Assignment Statements
svn path=/trunk/mcs/; revision=32520
2004-08-19 09:41:46 +00:00
Jambunathan K 7a11215699 * get.c: Changed dis_stringify_param to emit [opt] for parameters
that are marked as Optional.

* dump.c: Fixed dump_table_constant so that the parent field's
  description is correctly displayed.

* tabledefs.h: Corretced PARAM_ATTRIBUTE_OPTIONAL to the right
value 0x0010.

svn path=/trunk/mono/; revision=32519
2004-08-19 08:19:48 +00:00
Gert Driesen a52bb655d7 Added System.Data.SqlClient/SqlConnectionTest.cs to
System.Data_test.dll.sources

svn path=/trunk/mcs/; revision=32518
2004-08-19 06:57:23 +00:00
Gert Driesen 89dfcd9907 * SqlConnectionTest.cs: Added testcases for bug #63165.
svn path=/trunk/mcs/; revision=32517
2004-08-19 06:56:37 +00:00
Gert Driesen bf01809f62 SqlConnection.cs: added TODO on ConnectionString for keywords
that are not yet implemented. check value of Integrated Security
        keyword, check value of bool keywords, improve error reporting
        for int keywords, added support for the following keyword
        synonyms : APP, TIMEOUT, NETWORK, PERSISTSECURITYINFO, WSID,
        LANGUAGE, USER. Throw NotImplementedException when encrypt keyword
        is set to true, enlist keyword is set to false or attachdbfilename
        keyword (or one of its synonyms) is set. Added FIXME for PERSIST
        SECURITY INFO keyword, throwing a NotImplementedException here
        would break lots of apps

svn path=/trunk/mcs/; revision=32516
2004-08-19 06:44:05 +00:00
Anirban Bhattacharjee d15981fad2 2004-08-05 Anirban Bhattacharjee <[email protected]>
* Override_dll.vb:
        * Override_exe.vb:
                New test cases to test Overriding functions across assemblies
        * Delegate_dll.vb:
        * Delegate_exe.vb:
                New test cases to check delegates invoking functions across assemblies
        * Makefile: Added new dll names to the dependency list

svn path=/trunk/mcs/; revision=32515
2004-08-19 06:12:38 +00:00
Umadevi S 77ba8def18 2004-08-19 Umadevi S <[email protected]>
* Added file SqlDataAdapterTest.cs - to test update method on a datatable

svn path=/trunk/mcs/; revision=32514
2004-08-19 05:41:23 +00:00
Atsushi Eno 239df017a1 2004-08-19 Atsushi Enomoto <[email protected]>
* CodeAccessPermission.cs : csc build fix. Currently mcs has bugs on
	  CS0136 error detection (variable identifiers in switch cases share
	  the scope).

svn path=/trunk/mcs/; revision=32513
2004-08-19 04:20:26 +00:00
Atsushi Eno 87ed63d7eb 2004-08-19 Atsushi Enomoto <[email protected]>
* DateTime.cs : When hour format is "hh", MS.NET (maybe incorrectly)
	  allows 12, that should not be accepted (13 is rejected) and
	  interpreted as 0. This fixes bug 63376.

svn path=/branches/mono-1-0/mcs/; revision=32509
2004-08-19 03:50:07 +00:00
Atsushi Eno 9827ac8af3 2004-08-19 Atsushi Enomoto <[email protected]>
* DateTimeTest.cs : added bugzilla 63376 test case.

svn path=/trunk/mcs/; revision=32508
2004-08-19 03:48:34 +00:00
Atsushi Eno 945b5a9ea7 2004-08-19 Atsushi Enomoto <[email protected]>
* DateTime.cs : When hour format is "hh", MS.NET (maybe incorrectly)
	  allows 12, that should not be accepted (13 is rejected) and
	  interpreted as 0. This fixes bug 63376.

svn path=/trunk/mcs/; revision=32507
2004-08-19 03:46:47 +00:00
Anirban Bhattacharjee b1c2f96a60 2004-08-05 Anirban Bhattacharjee <[email protected]>
* EventG.vb: New test case
        * EventH.vb: New test case

svn path=/trunk/mcs/; revision=32504
2004-08-19 02:56:11 +00:00
Jordi Mas i Hernandez 0eab6952ab Move colors to a table
svn path=/trunk/mcs/; revision=32501
2004-08-18 19:16:53 +00:00
Zoltan Varga 376f5149f8 2004-08-18 Zoltan Varga <[email protected]>
* mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
	x86 backend.

svn path=/trunk/mono/; revision=32500
2004-08-18 18:55:44 +00:00
Ben Maurer 285ea918de 2004-08-18 Ben Maurer <[email protected]>
* appdomain.c: use the Tls function for appdomain too,
	at Zoltan's request. Actually return in mono_context_get

svn path=/trunk/mono/; revision=32496
2004-08-18 15:59:41 +00:00
Jordi Mas i Hernandez ee00b8cdb2 fixes to scrollbar: steps and multiple timers
svn path=/trunk/mcs/; revision=32495
2004-08-18 15:56:12 +00:00
Zoltan Varga ffb4a36d29 2004-08-18 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_is_int_overflow): Handle all possible
	registers.

svn path=/trunk/mono/; revision=32494
2004-08-18 15:32:01 +00:00
Ben Maurer 1647fe933b 2004-08-18 Ben Maurer <[email protected]>
* mini.h: new arch functions for TLS intrinsics.
	All platforms updated with a stub.

	* mini.c: use the new intrinsics

	* mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
	arch specific intrinsic for tls variables

svn path=/trunk/mono/; revision=32493
2004-08-18 15:30:14 +00:00
Ben Maurer 9a8cf6a4d2 2004-08-18 Ben Maurer <[email protected]>
* appdomain.c, profiler.c, threads.c: use __thread

svn path=/trunk/mono/; revision=32492
2004-08-18 15:26:57 +00:00
Sebastien Pouliot 581426bf58 2004-08-18 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added GacIdentityPermissionTest.cs and
	GacIdentityPermissionAttributeTest.cs to unit tests. Added
	IsolatedStorageFilePermissionTest.cs.

svn path=/trunk/mcs/; revision=32491
2004-08-18 14:56:30 +00:00
Sebastien Pouliot 97426dead1 2004-08-18 Sebastien Pouliot <[email protected]>
* IsolatedStorageContainment.cs: Added new enums values for NET_2_0.
	* IsolatedStorageFilePermissionAttribute.cs: Removed unrequired using
	clause.
	* IsolatedStorageFilePermission.cs: Updated to use the common template.
	Completed TODOs	and now pass all unit tests.
	* IsolatedStoragePermission.cs: Updated to use the common template.
	Completed TODOs	and now pass all unit tests.

svn path=/trunk/mcs/; revision=32490
2004-08-18 14:54:31 +00:00
Sebastien Pouliot bce97c7b41 2003-08-18 Sebastien Pouliot <[email protected]>
* IsolatedStorageFilePermissionAttributeTest.cs: Added tests to check
	class's	attributes. Converted existing tests to NUnit 2.2 format.
	* IsolatedStorageFilePermissionTest.cs: New. Unit tests for
	IsolatedStorageFilePermission.

svn path=/trunk/mcs/; revision=32489
2004-08-18 14:48:37 +00:00
Anirban Bhattacharjee f35444fb21 2004-08-18 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: MyBase support in Handles clause e.g.
                                Sub EH() Handles MyBase.E

svn path=/trunk/mcs/; revision=32488
2004-08-18 14:10:59 +00:00
Dick Porter 4b6ee1cb36 2004-08-18 Dick Porter <[email protected]>
* StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
	Fixes bug 63063, patch by Laurent Debacker ([email protected]).

svn path=/branches/mono-1-0/mcs/; revision=32487
2004-08-18 13:54:00 +00:00
Dick Porter 3f4364ce9f 2004-08-18 Dick Porter <[email protected]>
* StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
	Fixes bug 63063, patch by Laurent Debacker ([email protected]).

svn path=/trunk/mcs/; revision=32486
2004-08-18 13:53:30 +00:00
Zoltan Varga e04f0dc9e0 2004-08-18 Zoltan Varga <[email protected]>
* appdomain.c threads.c: Call GC_CreateThread on windows.

svn path=/trunk/mono/; revision=32485
2004-08-18 13:46:42 +00:00
Dick Porter fc940da2ab 2004-08-18 Dick Porter <[email protected]>
* sockets.c:
	* io.c: Check that new fds fit in the table, return error if not

	* daemon.c (_wapi_daemon_main):
	* handles.c (shared_init): Have all processes agree on a size for
	the fd table.

svn path=/trunk/mono/; revision=32484
2004-08-18 13:40:46 +00:00
Zoltan Varga b0292bbcfe 2004-08-18 Zoltan Varga <[email protected]>
* Makefile.am (libmono_la_LDFLAGS): Enable creating of libmono dll
	under windows.

svn path=/trunk/mono/; revision=32483
2004-08-18 12:55:08 +00:00
Zoltan Varga d17f1b7132 2004-08-18 Zoltan Varga <[email protected]>
* Makefile.am (libmetadata_la_LIBADD): Avoid linking libmonoos into
	multiple libraries since this don't work on windows.

svn path=/trunk/mono/; revision=32482
2004-08-18 12:54:11 +00:00
Sanja Gupta 01689a66a9 ChangeLog: Updated ChangeLog.
MailEncoding.cs:
MailFormat.cs:
MailPriority.cs: Added NET_2_0 attribute.

svn path=/trunk/mcs/; revision=32481
2004-08-18 12:53:04 +00:00
Sebastien Pouliot 867942d7fa 2004-08-18 Sebastien Pouliot <[email protected]>
* GacIdentityPermission.cs: Update to use the common template. Now
	pass all unit tests.
	* GacIdentityPermissionAttribute.cs: Added FIXME comment.

svn path=/trunk/mcs/; revision=32480
2004-08-18 11:41:06 +00:00
Sebastien Pouliot 4b9312623c 2003-08-18 Sebastien Pouliot <[email protected]>
* GacIdentityPermissionAttributeTest.cs: New unit tests for
	GacIdentityPermissionAttribute (NET_2_0).
	* GacIdentityPermissionTest.cs: New unit tests for
	GacIdentityPermission (NET_2_0).
	* StrongNameIdentityPermissionAttributeTest.cs: Added tests to
	check class's attributes.
	* UIPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* ZoneIdentityPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32479
2004-08-18 11:33:51 +00:00
Umadevi S 230dac966a 2004-08-18 Umadevi S <[email protected]>
* DataViewTest.cs : Revamped to get Event handling tested

svn path=/trunk/mcs/; revision=32478
2004-08-18 06:39:23 +00:00
Sanja Gupta 8ac8fcb99d ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new file RelatedBodyPart.cs.

svn path=/trunk/mcs/; revision=32477
2004-08-18 04:14:05 +00:00
Sanja Gupta 6044b6c81e ChangeLog: Updated ChangeLog.
MailMessage.cs: Added new property RelatedBodyParts.
RelatedBodyPart.cs: Added new file.

svn path=/trunk/mcs/; revision=32476
2004-08-18 04:09:30 +00:00
Umadevi S fe8b74b702 2004-08-18 Umadevi S <[email protected]>
* DataView.cs - Completed most of the event handling.
        * DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView

svn path=/trunk/mcs/; revision=32475
2004-08-18 03:44:21 +00:00
Martin Baulig c509b4beff 2004-08-18 Martin Baulig <[email protected]>
* class-internals.h
	(MonoMethodNormal): Moved `MonoGenericParam *gen_params' here from
	MonoMethodHeader.

	* metadata.h (MonoMethodHeader): Moved the `gen_params' field to
	MonoMethodNormal since we also need it for abstract and interface
	methods.

	* reflection.c
	(build_compressed_metadata): Sort the GenericParam table.
	(mono_image_create_token): Added `gboolean create_methodspec'
	argument; this is false when generating a MethodImpl token.
	(reflection_methodbuilder_to_mono_method): Abstract and interface
	methods may also have generic parameters.

svn path=/trunk/mono/; revision=32473
2004-08-17 21:34:23 +00:00
Ravindra 9155d5945e Updated project.
svn path=/trunk/mcs/; revision=32472
2004-08-17 21:31:34 +00:00
Martin Baulig 353127c592 2004-08-18 Martin Baulig <[email protected]>
* class.cs (Method.Define): Use the correct method name when
	creating the MethodBuilder for a generic method.

svn path=/trunk/mcs/; revision=32471
2004-08-17 21:29:56 +00:00
Peter Dennis Bartok 3eb62b074a - Drawing improvement; don't call UpdateBounds if we are not visible (or
have been minimized)

svn path=/trunk/mcs/; revision=32469
2004-08-17 21:25:12 +00:00
Peter Dennis Bartok 08722e512b - Finished IsVisible
- Added Win32GetWindowPlacement

svn path=/trunk/mcs/; revision=32468
2004-08-17 21:24:03 +00:00
Jackson Harper b03ab216b2 Add Panel to the build
svn path=/trunk/mcs/; revision=32467
2004-08-17 21:09:10 +00:00
Jackson Harper 2653adee1b Initial checkin of the Panel
svn path=/trunk/mcs/; revision=32466
2004-08-17 21:08:29 +00:00
Peter Dennis Bartok 11bfa8307b - Fixed broken handling of default window sizes
svn path=/trunk/mcs/; revision=32461
2004-08-17 20:25:28 +00:00
Sebastien Pouliot 61baec6662 2004-08-17 Sebastien Pouliot <[email protected]>
* StrongNameIdentityPermission.cs: Update to use the common template.
	Completed TODOs	and now pass all unit tests.
	* StrongNamePermissionAttribute.cs: Fixed public key convertion (as it
	wasn't base64 encoded).
	* StrongNamePublicKeyBlob.cs: Made static FromString() more robust.

svn path=/trunk/mcs/; revision=32459
2004-08-17 19:48:22 +00:00
Sebastien Pouliot 4d1527aff7 2004-08-17 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added StrongNameIdentityPermissionTest.cs
	to unit tests.

svn path=/trunk/mcs/; revision=32458
2004-08-17 19:43:58 +00:00
Sebastien Pouliot 7651e338a7 2003-08-17 Sebastien Pouliot <[email protected]>
* StrongNameIdentityPermissionTest.cs: New. Unit tests for
	StrongNameIdentityPermission.
	* StrongNameIdentityPermissionAttributeTest.cs: Added unit test to
	check the behavior of using an invalid SecurityAction. Added tests
	for CreatePermission. Converted existing tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32457
2004-08-17 19:39:04 +00:00
Ravindra cde6ed802b Typo
svn path=/trunk/mcs/; revision=32456
2004-08-17 19:37:19 +00:00
Jackson Harper cc846cf86d Don't use KnownColor to create colours. It has a large startup time.
svn path=/trunk/mcs/; revision=32455
2004-08-17 19:29:11 +00:00
Zoltan Varga 9c52892d7b 2004-08-17 Zoltan Varga <[email protected]>
* mono/os/gc_wrapper.h: Only use thread local alloc if using the included libgc, since the stock one has broken headers.

svn path=/trunk/mono/; revision=32451
2004-08-17 19:11:49 +00:00
Zoltan Varga 2038452110 2004-08-17 Zoltan Varga <[email protected]>
* configure.in (PLATFORM_WIN32): Make the included libgc the default on windows.

svn path=/trunk/mono/; revision=32449
2004-08-17 18:35:46 +00:00
Ben Maurer e3331ffa76 thread local alloc
svn path=/trunk/mono/; revision=32448
2004-08-17 18:31:52 +00:00
Ben Maurer 24627c7ef4 2004-08-17 Ben Maurer <[email protected]>
* appdomain.c: thread local alloc

svn path=/trunk/mono/; revision=32447
2004-08-17 18:31:39 +00:00
Ben Maurer c2e1d8db08 2004-08-17 Ben Maurer <[email protected]>
* interp.c: thread local alloc

svn path=/trunk/mono/; revision=32446
2004-08-17 18:31:11 +00:00
Ben Maurer 6278fdde55 2004-08-17 Ben Maurer <[email protected]>
* mini.c: thread local allocation

svn path=/trunk/mono/; revision=32445
2004-08-17 18:30:40 +00:00
Sebastien Pouliot eda1a34ec6 2004-08-17 Sebastien Pouliot <[email protected]>
* VersionTest.cs: Added tests when cloning a version with no build and
	no revision numbers (-1).

svn path=/branches/mono-1-0/mcs/; revision=32443
2004-08-17 17:54:18 +00:00
Sebastien Pouliot 9137ec2533 2004-08-17 Sebastien Pouliot <[email protected]>
* VersionTest.cs: Added tests when cloning a version with no build and
	no revision numbers (-1).

svn path=/trunk/mcs/; revision=32442
2004-08-17 17:52:08 +00:00
Sebastien Pouliot 7d35d3d454 2004-08-17 Sebastien Pouliot <[email protected]>
* Version.cs: Fixed Clone so we can use it on versions with only
	major/minor or major/minor/build.

svn path=/branches/mono-1-0/mcs/; revision=32441
2004-08-17 17:50:06 +00:00
Sebastien Pouliot 676c3b5458 2004-08-17 Sebastien Pouliot <[email protected]>
* Version.cs: Fixed Clone so we can use it on versions with only
	major/minor or major/minor/build.

svn path=/trunk/mcs/; revision=32440
2004-08-17 17:48:27 +00:00
Jackson Harper 482eb2d19f union areas properly
svn path=/trunk/mcs/; revision=32439
2004-08-17 16:25:12 +00:00
Jackson Harper d4bedce8f7 union areas properly
svn path=/trunk/mcs/; revision=32437
2004-08-17 16:12:02 +00:00
Dick Porter 9282f2f90e 2004-08-17 Dick Porter <[email protected]>
* daemon.c (process_new):
	* handles.c (_wapi_handle_new_internal): Cope when the space
	reserved for file descriptors is larger than the shared segment
	size.  Fixes the crash reported when running mono under gdb on
	macosx.

svn path=/trunk/mono/; revision=32436
2004-08-17 15:41:04 +00:00
Sachin Kumar 2a59166b66 Added new tests for Assignment Statements
svn path=/trunk/mcs/; revision=32435
2004-08-17 14:40:02 +00:00
Dick Porter c0226bb680 2004-08-17 Dick Porter <[email protected]>
* configure.in: Correct intl library for FreeBSD and OpenBSD.
	Fixes bug 62884, patch by Tom McLaughlin ([email protected]).

svn path=/branches/mono-1-0/mono/; revision=32434
2004-08-17 14:39:34 +00:00
Dick Porter ffc860f337 2004-08-17 Dick Porter <[email protected]>
* configure.in: Correct intl library for FreeBSD and OpenBSD.
	Fixes bug 62884, patch by Tom McLaughlin ([email protected]).

svn path=/trunk/mono/; revision=32433
2004-08-17 14:39:31 +00:00
Sebastien Pouliot 5a318fb1ad 2004-08-17 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermission.cs: Update to use the common template. Now
	pass all unit tests.

svn path=/trunk/mcs/; revision=32432
2004-08-17 14:13:31 +00:00
Sebastien Pouliot 8550e1245c 2003-08-17 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionAttributeTest.cs: Added unit tests to check
	the behavior of using invliad enums for properties (no checks).
	* ZoneIdentityPermissionTest.cs: Added new unit tests for XML decoding.

svn path=/trunk/mcs/; revision=32431
2004-08-17 14:11:25 +00:00
Jambunathan K 77278b64c5 * Interaction.cs:
* Information.cs:
* ErrObject.cs:
* FileSystem.cs: Aesthetic changes.

svn path=/trunk/mcs/; revision=32430
2004-08-17 13:23:56 +00:00
Anirban Bhattacharjee b50a281e3e 2004-08-13 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Trivial fix (#63213)

svn path=/trunk/mcs/; revision=32429
2004-08-17 13:16:03 +00:00
Sebastien Pouliot 7404886fbd 2004-08-17 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added System.Security.Permissions/
	DataProtectionPermission.cs, DataProtectionPermissionAttribute.cs,
	DataProtectionPermissionFlags.cs, HostProtectionAttribute.cs,
	HostProtectionPermission.cs, KeyContainerPermission.cs,
	KeyContainerPermissionAccessEntry.cs,
	KeyContainerPermissionAccessEntryCollection.cs,
	KeyContainerPermissionAccessEntryEnumerator.cs
	KeyContainerPermissionAttribute.cs and KeyContainerPermissionFlags.cs
	to NET_2_0 profile.
	* corlib_test.dll.sources: Added System.Security.Permissions/
	IBuiltInPermissionTest.cs and UIPermissionTest.cs unit tests.

svn path=/trunk/mcs/; revision=32428
2004-08-17 12:51:56 +00:00
Sebastien Pouliot 5e34ed5968 2004-08-17 Sebastien Pouliot <[email protected]>
* DataProtectionPermission.cs: New permission for NET_2_0. Use common
	permission template.
	* DataProtectionPermissionAttribute.cs: New security attribute for
	NET_2_0.
	* DataProtectionPermissionFlags.cs: New flags for NET_2_0.
	* HostProtectionAttribute.cs: New security attribute for NET_2_0.
	* HostProtectionPermission.cs: New internal permission for NET_2_0.
	Use common permission template.
	* KeyContainerPermission.cs: New permission for NET_2_0. Use common
	permission template.
	* KeyContainerPermissionAccessEntry.cs: New class for NET_2_0.
	* KeyContainerPermissionAccessEntryCollection.cs: New for NET_2_0.
	* KeyContainerPermissionAccessEntryEnumerator.cs: New for NET_2_0.
	* KeyContainerPermissionAttribute.cs: New security attrib for NET_2_0.
	* KeyContainerPermissionFlags.cs: New flags for NET_2_0.

svn path=/trunk/mcs/; revision=32427
2004-08-17 12:46:05 +00:00
Sebastien Pouliot c0586cc791 2004-08-17 Sebastien Pouliot <[email protected]>
* EnvironmentPermission.cs: Updated to use the common template.
	* FileDialogPermission.cs: Updated to use the common template.
	* PublisherIdentityPermission.cs: Updated to use the common template.
	* ReflectionPermission.cs: Updated to use the common template.

svn path=/trunk/mcs/; revision=32426
2004-08-17 11:58:03 +00:00
Sebastien Pouliot e10944de6e 2004-08-17 Sebastien Pouliot <[email protected]>
* IBuiltInPermission.cs: Added a new internal enum to store the index
	of all corlib's permissions (as the index can changes in newer
	versions of the framework, e.g. 2.0).
	* SecurityAttribute.cs: Removed the validation when setting the Action
	property to match MS implementation.
	* UIPermission.cs: Update to use the common template. Completed TODOs
	and now pass all unit tests.

svn path=/trunk/mcs/; revision=32425
2004-08-17 11:39:46 +00:00
Sebastien Pouliot 8b4da0830b 2004-08-17 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Added common methods to help building all
	Permissions classes in corlib. Most are declared static as they can
	also help non CodeAccessPermission-derived permissions.

svn path=/trunk/mcs/; revision=32424
2004-08-17 11:35:32 +00:00
Sebastien Pouliot e5cc5c95be 2004-08-17 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added System.Security.Permissions/
	IBuiltInPermissionTest.cs and UIPermissionTest.cs unit tests.

svn path=/trunk/mcs/; revision=32423
2004-08-17 11:32:47 +00:00
Sebastien Pouliot 2a99de5c1b 2003-08-17 Sebastien Pouliot <[email protected]>
* IBuiltInPermissionTest.cs: New. Unit tests to check the result of
	the "somewhat undocumented" IBuiltInPermission.GetTokenIndex on all
	permissions inside corlib.
	* UIPermissionTest.cs: New. Unit tests for UIPermission.
	* UIPermissionAttributeTest.cs: Added unit tests to check the behavior
	of using invliad enums for properties (no checks).

svn path=/trunk/mcs/; revision=32422
2004-08-17 11:21:13 +00:00
Anirban Bhattacharjee 059ba6e96b 2004-08-13 Anirban Bhattacharjee <[email protected]>
* class.cs:
        * typemanager.cs:
                -Bug fixed to resolve the ReadOnly properties from base class
                -Fixed bug in resolving properties from different assembly

svn path=/trunk/mcs/; revision=32421
2004-08-17 08:07:27 +00:00
Ravindra 9ea53fb4f3 Added attributes.
svn path=/trunk/mcs/; revision=32420
2004-08-17 02:00:54 +00:00
Ravindra 78842ec98d Added attributes.
svn path=/trunk/mcs/; revision=32418
2004-08-17 00:48:50 +00:00
Ravindra 639f826063 Updated project.
svn path=/trunk/mcs/; revision=32417
2004-08-16 23:17:48 +00:00
Jackson Harper ef19950756 Check for more expose events before sending a WM_PAINT so they can all be grouped together. This makes dragging a window across another window redraw in a sane way.
svn path=/trunk/mcs/; revision=32416
2004-08-16 23:16:30 +00:00
Martin Baulig b0f60a9ae0 XML_DEP everywhere.
svn path=/trunk/mcs/; revision=32415
2004-08-16 23:11:37 +00:00
Duncan Mak c526b7c7a3 Add attributes.
svn path=/trunk/mcs/; revision=32414
2004-08-16 23:00:57 +00:00
Martin Baulig db3edb9e8c Fixme fixme fixme.
svn path=/trunk/mcs/; revision=32413
2004-08-16 22:50:07 +00:00
Duncan Mak 027d1f6d3d Use XML_DEP
svn path=/trunk/mcs/; revision=32412
2004-08-16 22:39:47 +00:00
Martin Baulig 5de847a422 Reverted Duncan's latest change, it broke the build.
svn path=/trunk/mcs/; revision=32411
2004-08-16 22:25:47 +00:00
Martin Baulig 3778c80893 Reflect latest API changes.
svn path=/trunk/mcs/; revision=32410
2004-08-16 22:03:57 +00:00
Martin Baulig d216d338ef 2004-08-17 Martin Baulig <[email protected]>
* appdomain.c: Bumped MONO_CORLIB_VERSION to 24.

	* icall.c
	(ves_icall_System_MonoType_getFullName): Added `gboolean full_name'
	argument.

	* class.c (mono_type_get_full_name): New public function.
	(mono_type_get_name): Don't include the type arguments.

svn path=/trunk/mono/; revision=32409
2004-08-16 21:53:01 +00:00
Martin Baulig 92cbff7044 2004-08-17 Martin Baulig <[email protected]>
* MonoType.cs (MonoType.getFullName): Added `bool full_name'
	argument specifying whether or not to include the type arguments.
	(MonoType.FullName): Don't include the type arguments.
	(MonoType.ToString): Include them here.

	* Environment.cs: Bumped mono_corlib_version to 24.

svn path=/trunk/mcs/; revision=32408
2004-08-16 21:50:37 +00:00
Peter Dennis Bartok 28ce01fe7e - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
support OnMouseEnter/Leave()
- Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
  exposure handling

svn path=/trunk/mcs/; revision=32407
2004-08-16 21:47:11 +00:00
Peter Dennis Bartok c4640a89eb - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support OnMouseEnter/Leave()
svn path=/trunk/mcs/; revision=32406
2004-08-16 21:46:08 +00:00
Jackson Harper cd217096a6 Group multiple expose events in HandleData, make sure messages get the message field set to WM_NULL if they are not handled.
svn path=/trunk/mcs/; revision=32405
2004-08-16 21:34:30 +00:00
Jackson Harper 6f61be1713 HandleData is used for storing message information for window handles
svn path=/trunk/mcs/; revision=32404
2004-08-16 21:24:34 +00:00
Martin Baulig 91e2471594 Correctly check constraints if we have a type parameter constraint.
svn path=/trunk/mcs/; revision=32403
2004-08-16 21:12:16 +00:00
Duncan Mak ab52b298f6 Use XML_DEP.
svn path=/trunk/mcs/; revision=32402
2004-08-16 21:07:27 +00:00
John Luke a2441d1a90 2004-08-15 John Luke <[email protected]>
* monop.cs: add declared-only option
        * outline.cs: add limited attribute support (only for
        [Serializable] and [Flags])

svn path=/trunk/mcs/; revision=32401
2004-08-16 21:00:30 +00:00
Martin Baulig 4f9284bcf1 New tests.
svn path=/trunk/mcs/; revision=32400
2004-08-16 20:59:08 +00:00
Martin Baulig f3dedd8f25 2004-08-17 Martin Baulig <[email protected]>
* generic.cs (Constraints): Support type parameter constraints.

svn path=/trunk/mcs/; revision=32399
2004-08-16 20:58:11 +00:00
Duncan Mak 3fff2f093c * System.dll.sources: Added new classes in System.Configuration.
* NameObjectCollectionBase.cs: Fix line endings. It's mostly in
DOS endings, so I left it at that.
(GetEnumerator): Made virtual.

* ConfigurationElement.cs (InitializeDefault): Made virtual.

* AppSettingsSection.cs:
* Configuration.cs:
* ConfigurationLocation.cs:
* ConfigurationLocationCollection.cs:
* ConfigurationSection.cs:
* ConfigurationSectionCollection.cs:
* ConfigurationSectionGroup.cs:
* ConfigurationSectionGroupCollection.cs:
* ConnectionStringsSection.cs: Added stubs and bits of implementation.

Other than ConfigurationElementCollection and
ConnectionStringsSectionCollection, we now have the basic skeleton for
implementing the configuration system in the System.Configuration
namespace.

svn path=/trunk/mcs/; revision=32398
2004-08-16 20:24:43 +00:00
Duncan Mak 9048fe5b99 Change the AttributeUsage to AttributeTargets.Class, from
AttributeTargets.All, fixes Zoltan's bug #62895.

svn path=/trunk/mcs/; revision=32397
2004-08-16 19:33:39 +00:00
Duncan Mak 75581c6a75 Flush
svn path=/trunk/mcs/; revision=32396
2004-08-16 19:24:35 +00:00
Martin Baulig 9205998a8f New test.
svn path=/trunk/mcs/; revision=32394
2004-08-16 18:08:38 +00:00
Martin Baulig 02f21f046c Small fix.
svn path=/trunk/mcs/; revision=32393
2004-08-16 18:06:21 +00:00
Martin Baulig 3d80c91391 2004-08-16 Martin Baulig <[email protected]>
* cs-tokenizer.cs (Tokenizer.TypeOfParsing): New public property.
	(Token.GENERIC_DIMENSION): New token; this is returned if we
	encounter an unbound generic type in a typeof() expression.

	* cs-parser.jay (opt_type_argument_list): Added GENERIC_DIMENSION;
	this token is only generated while parsing a typeof() expression.
	(typeof_expression): Removed the old unbound_type hack.

	* generic.cs (TypeArguments.IsUnbound): New public property.

	* decl.cs (MemberName): Added support for unbound types.

svn path=/trunk/mcs/; revision=32392
2004-08-16 17:49:29 +00:00
Zoltan Varga 6e6eec8dc9 2004-08-16 Zoltan Varga <[email protected]>
* mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Enable.

svn path=/trunk/mono/; revision=32391
2004-08-16 16:27:56 +00:00
Dick Porter 80389dc56c 2004-08-16 Dick Porter <[email protected]>
* sockets.c:
	* io.c:
	* handles-private.h (_wapi_handle_fd_offset_to_handle): Improve
	error checking with passed-in file descriptors.

svn path=/trunk/mono/; revision=32390
2004-08-16 16:24:02 +00:00
Zoltan Varga e6b6ee4591 2004-08-16 Zoltan Varga <[email protected]>
* Makefile.am: Link against the static version of libmonogc.

svn path=/trunk/mono/; revision=32389
2004-08-16 16:02:10 +00:00
Zoltan Varga b4791208d7 2004-08-16 Zoltan Varga <[email protected]>
* configure.in: Set new automake variable LIBGC_STATIC_LIBS.

svn path=/trunk/mono/; revision=32388
2004-08-16 16:01:16 +00:00
Gert Driesen 8ddc1dfe83 * SqlConnection.cs - spaces to tabs
svn path=/trunk/mcs/; revision=32387
2004-08-16 15:59:04 +00:00
Zoltan Varga 7a65b40e52 2004-08-16 Zoltan Varga <[email protected]>
* Makefile.am: Link the static versions of the convenience libraries
	into the mono executable.

svn path=/trunk/mono/; revision=32386
2004-08-16 15:55:30 +00:00
Zoltan Varga 619eb1b45f 2004-08-16 Zoltan Varga <[email protected]>
* Makefile.am: Build static versions of libmetadata and libmonoruntime
	for inclusion into the mono executable.

svn path=/trunk/mono/; revision=32384
2004-08-16 15:50:13 +00:00
Martin Baulig 4b6893b3fc 2004-08-16 Martin Baulig <[email protected]>
Importing version 0.5 of C5, http://www.itu.dk/research/c5/.

svn path=/trunk/mcs/; revision=32383
2004-08-16 15:36:02 +00:00
Martin Baulig 36fa9c8532 Protect everything with #if NET_2_0.
svn path=/trunk/mcs/; revision=32382
2004-08-16 15:35:50 +00:00
Martin Baulig dbc699595b Initial revision
svn path=/trunk/mcs/; revision=32378
2004-08-16 15:34:45 +00:00
Martin Baulig 56aad0f9d7 Protect everything in #if NET_2_0.
svn path=/trunk/mcs/; revision=32377
2004-08-16 15:32:01 +00:00
Martin Baulig f56011c9a3 Initial revision
svn path=/trunk/mcs/; revision=32374
2004-08-16 15:28:17 +00:00
Peter Dennis Bartok afbbb3b595 - Added ButtonBase.cs
svn path=/trunk/mcs/; revision=32373
2004-08-16 14:59:38 +00:00
Martin Baulig 9db6f795b5 2004-08-14 Martin Baulig <[email protected]>
* typemanager.cs
	(TypeManager.IsEqualGenericInstance): New static method.
	(TypeManager.IsSubclassOrNestedChildOf, IsSubclassOf): This is
	just used to check accessibility, so follow the rules of 26.1.6.

	* expression.cs (MemberAccess.ResolveAsTypeStep): Return a
	ConstructedType instead of a TypeExpression if we have type arguments.

	* cs-parser.jay (typeof_expression): Support unbound generic types.

	* ecore.cs (UnboundTypeExpression): New public class.

svn path=/trunk/mcs/; revision=32372
2004-08-16 14:56:24 +00:00
Martin Baulig aca2f3176c Ooops, this was just for testing.
svn path=/trunk/mcs/; revision=32371
2004-08-16 14:50:15 +00:00
Dick Porter 902c8d5038 Revert incorrect change.
svn path=/trunk/mono/; revision=32370
2004-08-16 14:46:54 +00:00
Martin Baulig 7a40b06bd9 New tests.
svn path=/trunk/mcs/; revision=32369
2004-08-16 14:32:49 +00:00
Martin Baulig a493e00314 2004-08-16 Martin Baulig <[email protected]>
* metadata.c (do_mono_metadata_parse_generic_inst): Store the
	MonoGenericInst, not the MonoType in the `generic_inst_cache'.

svn path=/trunk/mono/; revision=32368
2004-08-16 14:31:27 +00:00
Martin Baulig fefcf73e08 2004-08-14 Martin Baulig <[email protected]>
* class.c (dup_type): Also copy the `byref' field.

svn path=/trunk/mono/; revision=32367
2004-08-16 14:12:26 +00:00
Zoltan Varga 831395bba7 2004-08-16 Zoltan Varga <[email protected]>
* mini-x86.h mini-x86.c: Throw the correct exception on integer overflow.

svn path=/trunk/mono/; revision=32366
2004-08-16 12:59:30 +00:00
Zoltan Varga 12241c2f31 2004-08-16 Zoltan Varga <[email protected]>
* x86/x86-codegen.h: Add macros for accessing the mod/rm byte.

svn path=/trunk/mono/; revision=32365
2004-08-16 12:58:06 +00:00
Sachin Kumar b88c53b2f9 Added new tests for With Statement
svn path=/trunk/mcs/; revision=32364
2004-08-16 12:57:28 +00:00
Atsushi Eno adc40a321e 2004-08-16 Atsushi Enomoto <[email protected]>
(up-to-date fixes that are applied to HEAD.)

	* NewMonoXSD.cs : /language should support custom assembly qualified
	  name specification. This fixes bug #63081.
	  Also fixed usage message. "VB" is considered as valid.

2004-08-07  Atsushi Enomoto <[email protected]>

	* NewMonoXSD.cs : /generator (/g) option didn't work, since it usually
	  ends with .dll (or .exe) and regarded as mere assembly filename.

2004-07-12  Lluis Sanchez Gual  <[email protected]>

	* NewMonoXSD.cs: Accept files with absolute paths.

svn path=/branches/mono-1-0/mcs/; revision=32363
2004-08-16 07:15:29 +00:00
Atsushi Eno 45c04c2290 2004-08-16 Atsushi Enomoto <[email protected]>
* NewMonoXSD.cs : /language should support custom assembly qualified
	  name specification. This fixes bug #63081.
	  Also fixed usage message. "VB" is considered as valid.

svn path=/trunk/mcs/; revision=32362
2004-08-16 07:11:59 +00:00
Ravindra f47a3cd397 Added attribute.
svn path=/trunk/mcs/; revision=32361
2004-08-15 23:23:56 +00:00
Ravindra e8befedf15 Updated project for ToolBar Control.
svn path=/trunk/mcs/; revision=32360
2004-08-15 23:23:22 +00:00
Ravindra 7ee9b64541 Updated sources list for ToolBar Control.
svn path=/trunk/mcs/; revision=32359
2004-08-15 23:22:21 +00:00
Ravindra 3d211371a4 Changes to Theme for ToolBar control and also dos2unix format.
svn path=/trunk/mcs/; revision=32358
2004-08-15 23:20:54 +00:00
Ravindra 3a2d5bf687 First Implementation of ToolBar control.
svn path=/trunk/mcs/; revision=32356
2004-08-15 23:13:15 +00:00
Peter Dennis Bartok 489f087e43 - First (mostly) working version
svn path=/trunk/mcs/; revision=32355
2004-08-15 21:31:10 +00:00
Zoltan Varga c260cafdec 2004-08-15 Zoltan Varga <[email protected]>
* mini.h mini.c mini-amd64.h mini-amd64.c: Throw the correct exception
	on integer overflow.

	* mini-amd64.c: Reorganize function call code.

svn path=/trunk/mono/; revision=32354
2004-08-15 14:54:05 +00:00
Zoltan Varga 187deedfab 2004-08-15 Zoltan Varga <[email protected]>
* mini-amd64.c (peephole_pass): Merge changes from mini-x86.c.

svn path=/trunk/mono/; revision=32353
2004-08-15 08:01:46 +00:00
Bernie Solomon 4726183ead 2004-08-14 Bernie Solomon <[email protected]>
* ForEachA.vb:
	* Test.Sources: new test

svn path=/trunk/mcs/; revision=32351
2004-08-15 01:51:27 +00:00
Bernie Solomon 8ea4f403e4 2004-08-14 Bernie Solomon <[email protected]>
* mb-parser.jay: fix block used as body of For Each

svn path=/trunk/mcs/; revision=32350
2004-08-15 01:49:55 +00:00
Ben Maurer c923cebb8f 2004-08-14 Ben Maurer <[email protected]>
* inssel-x86.brg: use xor eax,eax.

	* basic.cs: new tests

svn path=/trunk/mono/; revision=32348
2004-08-14 21:26:32 +00:00
Zoltan Varga 6daddfe701 2004-08-15 Zoltan Varga <[email protected]>
* reflection.c (create_dynamic_mono_image): Revert the last change
	since it breaks bootstrap.

svn path=/trunk/mono/; revision=32347
2004-08-14 21:15:46 +00:00
Zoltan Varga 6ff0390917 2004-08-14 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_epilog): Use RIP relative addressing
	in exception throwing code.

svn path=/trunk/mono/; revision=32346
2004-08-14 20:53:13 +00:00
Jackson Harper 8f27aa58e9 * Container.cs: Release all when we are supposed to release all.
svn path=/trunk/mcs/; revision=32345
2004-08-14 19:06:51 +00:00
Ben Maurer 69c0225756 hush cvs
svn path=/trunk/mono/; revision=32344
2004-08-14 18:28:26 +00:00
Ben Maurer 519b5cbfea 2004-08-14 Ben Maurer <[email protected]>
* inssel-x86.brg: use xor esi,esi.

svn path=/trunk/mono/; revision=32343
2004-08-14 17:35:22 +00:00
Zoltan Varga 66e035691a 2004-08-14 Zoltan Varga <[email protected]>
* driver.c (mono_main): Call mono_trace_parse_options earlier so it
	can trace methods compiled during mini_init () too.

svn path=/trunk/mono/; revision=32342
2004-08-14 17:21:17 +00:00
Zoltan Varga 668d2bd74a 2004-08-14 Zoltan Varga <[email protected]>
* cpu-amd64.md mini-amd64.c (mono_arch_output_basic_block): Handle
	CEE_CONV_U4.

svn path=/trunk/mono/; revision=32341
2004-08-14 16:40:42 +00:00
Zoltan Varga 8bc6344ab4 2004-08-14 Zoltan Varga <[email protected]>
* io.c (GetFileType): Fix assertion if invalid handle is passed by the
	caller.

svn path=/trunk/mono/; revision=32340
2004-08-14 16:30:33 +00:00
Ben Maurer daed24a69e 2004-08-14 Ben Maurer <[email protected]>
* Makefile.am: static link on x86 (r=zoltan)

svn path=/trunk/mono/; revision=32339
2004-08-14 16:11:02 +00:00
Zoltan Varga 1f9875f9a9 2004-08-14 Zoltan Varga <[email protected]>
* tramp-amd64.c (amd64_magic_trampoline): Avoid patching the trampoline
	code since it causes some programs to fail.

	* mini-amd64.c (bb_is_loop_start): Merge changes from mini-x86.c.

svn path=/trunk/mono/; revision=32338
2004-08-14 15:24:38 +00:00
Zoltan Varga bdcda527dd 2004-08-14 Zoltan Varga <[email protected]>
* configure.in (HAVE_KW_THREAD): Pass USE_COMPILER_TLS to libgc if
	__thread works.

svn path=/trunk/mono/; revision=32337
2004-08-14 11:31:48 +00:00
Peter Dennis Bartok 3f4e5b3caa - Fixed Anchor default
svn path=/trunk/mcs/; revision=32335
2004-08-13 22:15:46 +00:00
Peter Dennis Bartok e1c276b27f - Changed GetCursorPos signature
svn path=/trunk/mcs/; revision=32334
2004-08-13 21:43:39 +00:00
Peter Dennis Bartok fff3bf9af2 - Changed signature for GetCursorPos
svn path=/trunk/mcs/; revision=32333
2004-08-13 21:42:15 +00:00
Peter Dennis Bartok 9e356aa680 - Cleanup
- Fixed resizing/exposure handling

svn path=/trunk/mcs/; revision=32332
2004-08-13 21:25:32 +00:00
Jordi Mas i Hernandez 9c5b37204e removes redundant code and fixes issues with tickposition
svn path=/trunk/mcs/; revision=32331
2004-08-13 21:22:18 +00:00
Zoltan Varga 5bfc3d4d1f 2004-08-14 Zoltan Varga <[email protected]>
* reflection.c (create_dynamic_mono_image): Set ref_count to 1.

	* image.c (mono_image_close): Dynamic images are GC_MALLOCed, so do
	not free them with g_free.

svn path=/trunk/mono/; revision=32330
2004-08-13 21:03:32 +00:00
Jordi Mas i Hernandez 4eec8ab1bc change from wndproc to events
svn path=/trunk/mcs/; revision=32329
2004-08-13 20:55:20 +00:00
Jordi Mas i Hernandez 119d8c53ed implements PointToClient (ScreenToClient)
svn path=/trunk/mcs/; revision=32323
2004-08-13 19:00:15 +00:00
Peter Dennis Bartok 00761acb2a - Changed GetWindowPos to also provide client area size
- Fixed broken prototypes for several win32 functions

svn path=/trunk/mcs/; revision=32322
2004-08-13 18:53:57 +00:00
Peter Dennis Bartok faf712bc7d - Changed GetWindowPos to also provide client area size
svn path=/trunk/mcs/; revision=32321
2004-08-13 18:53:14 +00:00
Peter Dennis Bartok 8487650ff6 - Added generation of WM_POSCHANGED
- Changed GetWindowPos to also provide client area size

svn path=/trunk/mcs/; revision=32320
2004-08-13 18:52:59 +00:00
Peter Dennis Bartok f66493ef5e - Added Dispose() and destructor
- Fixed resizing and bounds calculation
- Fixed Layout
- Added memory savings for invisible windows

svn path=/trunk/mcs/; revision=32319
2004-08-13 18:52:07 +00:00
Jordi Mas i Hernandez bbf1bf250d adds timer and grap window
svn path=/trunk/mcs/; revision=32318
2004-08-13 18:46:26 +00:00
Marek Safar ab079c1db5 2004-08-13 Marek Safar <[email protected]>
* Assembly.cs: Made _minimum, _optional, _refuse fields internal.
	To be reusable by AssemblyBuilder.

svn path=/trunk/mcs/; revision=32316
2004-08-13 17:03:57 +00:00
Jackson Harper b32255bc8a SWF Timer
svn path=/trunk/mcs/; revision=32312
2004-08-13 16:25:01 +00:00
John Luke 45ff09083c 2004-08-13 John Luke <[email protected]>
* monop.cs: add MONO_PATH support

svn path=/trunk/mcs/; revision=32309
2004-08-13 16:02:31 +00:00
Anirban Bhattacharjee 3c7f226294 2004-08-13 Anirban Bhattacharjee <[email protected]>
* expression.cs: Bug fixing for compiling VB script generated by ASP page - AddressOf operator in a method argument will resolve methods outside assembly

svn path=/trunk/mcs/; revision=32308
2004-08-13 15:20:31 +00:00
Dick Porter 0bbb93f17f 2004-08-13 Dick Porter <[email protected]>
* StreamWriter.cs: Allow FileShare.Read access to the underlying
	FileStream, to be compatible with MS.  Fixes bug 62152.

svn path=/branches/mono-1-0/mcs/; revision=32307
2004-08-13 13:39:42 +00:00
Dick Porter d5abeccf1c 2004-08-13 Dick Porter <[email protected]>
* StreamWriter.cs: Allow FileShare.Read access to the underlying
	FileStream, to be compatible with MS.  Fixes bug 62152.

svn path=/trunk/mcs/; revision=32306
2004-08-13 13:39:40 +00:00
Sebastien Pouliot 2e7fdc5824 2004-08-13 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: (Partly) Fix delay-signing issue (#56621) when
	MCS is used on the MS runtime (other part of the fix is for MCS).

svn path=/branches/mono-1-0/mcs/; revision=32305
2004-08-13 13:24:48 +00:00
Sebastien Pouliot 433faedf40 2004-08-13 Sebastien Pouliot <[email protected]>
* AssemblyBuilder.cs: (Partly) Fix delay-signing issue (#56621) when
	MCS is used on the MS runtime (other part of the fix is for MCS).

svn path=/trunk/mcs/; revision=32304
2004-08-13 13:21:51 +00:00
Sanja Gupta 3e09f0f69a ChangeLog: Updated ChangeLog.
GridViewDeleteEventArgs.cs: Removed extra code.

svn path=/trunk/mcs/; revision=32303
2004-08-13 11:31:08 +00:00
Anirban Bhattacharjee 1b15a62fe6 2004-08-13 Anirban Bhattacharjee <[email protected]>
* class.cs: bug fixing to get PropertyE.vb test running - search of overridable property in base class was failing

svn path=/trunk/mcs/; revision=32302
2004-08-13 11:01:31 +00:00
Umadevi S 77b8bc4bc3 2004-08-13 Umadevi S <[email protected]>
* Added File DataContainerTest

svn path=/trunk/mcs/; revision=32299
2004-08-13 07:06:45 +00:00
Umadevi S 74c155f243 2004-08-13 Umadevi S <[email protected]>
* Added standalone nunit testcases for datacontainer class.
        * Currently will use MSSQL server
        * New File
                MSSqlTestBed.cs - Base class for MSSql testing
        (similar to the mysqltestbed)

svn path=/trunk/mcs/; revision=32298
2004-08-13 07:05:24 +00:00
Umadevi S fa37552b8d 2004-08-13 Umadevi S <[email protected]>
* Added File DataContainerTest

svn path=/branches/mono-1-0/mcs/; revision=32297
2004-08-13 07:01:14 +00:00
Umadevi S 098549da23 2004-08-13 Umadevi S <[email protected]>
* Added standalone nunit testcases for datacontainer class.
        * Currently will use MSSQL server
        * New File
                MSSqlTestBed.cs - Base class for MSSql testing
        (similar to the mysqltestbed)

svn path=/branches/mono-1-0/mcs/; revision=32296
2004-08-13 06:59:30 +00:00
Anirban Bhattacharjee bd2b840481 2004-08-13 Anirban Bhattacharjee <[email protected]>
* typemanager.cs: Little correction in my last checked-in code - removed unnecessary return value from ExpandAllInterfaces function

svn path=/trunk/mcs/; revision=32295
2004-08-13 05:10:45 +00:00
Anirban Bhattacharjee 4d626c9dbb 2004-08-13 Anirban Bhattacharjee <[email protected]>
* class.cs: Trivial bug fixing to get test InterfaceB.vb going

svn path=/trunk/mcs/; revision=32294
2004-08-13 05:00:22 +00:00
John Luke 68068c46c2 2004-08-13 John Luke <[email protected]>
* outline.cs: remove unused isPointer
        * monop.cs: show information about the assembly that is being used
        - remove unused IndentedTextWriter
        - rework how Assemblies are being loaded, so that it works by trying
        in order fromfile, fullname, partialname which fixes loading
        from relative paths and generally should be more correct
        * TODO: update

svn path=/trunk/mcs/; revision=32293
2004-08-13 04:56:17 +00:00
Sebastien Pouliot 003a633b4f 2004-08-12 Sebastien Pouliot <[email protected]>
* ZoneMembershipCondition.cs: Added missing tag name validation in
	FromXml.

svn path=/trunk/mcs/; revision=32292
2004-08-12 23:07:44 +00:00
Sebastien Pouliot dae063fd0c 2004-08-12 Sebastien Pouliot <[email protected]>
* SecurityManager.cs: Change ResolvePolicy to only care about host
	provided evidence to create identity permissions.

svn path=/trunk/mcs/; revision=32291
2004-08-12 23:06:00 +00:00
Sebastien Pouliot 5cb4c33484 2004-08-12 Sebastien Pouliot <[email protected]>
* ZoneMembershipConditionTest.cs: Fixed tests that where failing too
	soon, i.e. not where I expected them to ;).
	* ZoneTest.cs: Added tests for Zone.Equals (null).

svn path=/trunk/mcs/; revision=32290
2004-08-12 23:01:19 +00:00
Peter Dennis Bartok 33cc979075 - Implemented method to get current mouse position
svn path=/trunk/mcs/; revision=32289
2004-08-12 22:59:03 +00:00
Sebastien Pouliot 63e416b0b9 2003-08-12 Sebastien Pouliot <[email protected]>
* SecurityManagerTest.cs: More policy resolution tests when using host
	or assembly provided evidences.

svn path=/trunk/mcs/; revision=32288
2004-08-12 22:58:25 +00:00
Jordi Mas i Hernandez 8555991982 Trackbar enhancement, fix mouse problems, highli thumb, etc
svn path=/trunk/mcs/; revision=32287
2004-08-12 20:29:01 +00:00
Rob Tillie 5e104281ec Added runtime conversion from String to DateTime
svn path=/trunk/mcs/; revision=32286
2004-08-12 19:46:19 +00:00
Peter Dennis Bartok 289abddb08 - Fixed Anchoring bugs
svn path=/trunk/mcs/; revision=32285
2004-08-12 19:31:19 +00:00
Martin Baulig 56bff27fca 2004-08-12 Martin Baulig <[email protected]>
* typemanager.cs (TypeManager.IsNestedChildOf): Use
	TypeManager.IsEqual() rather than `=='.

	* decl.cs (DeclSpace.CheckAccessLevel): Use `tb.FullName' for
	generic instances as well.

svn path=/trunk/mcs/; revision=32284
2004-08-12 19:12:59 +00:00
Jackson Harper 285005d223 Don't forget things
svn path=/trunk/mcs/; revision=32283
2004-08-12 19:01:13 +00:00
Jackson Harper a6aac1a636 Handle owner draw status bars
svn path=/trunk/mcs/; revision=32282
2004-08-12 18:54:37 +00:00
Jackson Harper fe397880c6 Implement missing properties, events, and methods. Handle mouse clicking
svn path=/trunk/mcs/; revision=32281
2004-08-12 18:54:12 +00:00
Anirban Bhattacharjee e78898c7b9 2004-08-13 Anirban Bhattacharjee <[email protected]>
* class.cs:
        * typemanager.cs:
        * pending.cs:
                Multiple interface inheritance implemented - fix for getting InheritanceD.vb working in bteasts

svn path=/trunk/mcs/; revision=32280
2004-08-12 18:04:56 +00:00
Jackson Harper e629fe1fbe Classes for handling status bar panel click events
svn path=/trunk/mcs/; revision=32275
2004-08-12 16:19:43 +00:00
Jackson Harper 14375d6c24 Add missing properties
svn path=/trunk/mcs/; revision=32274
2004-08-12 16:10:42 +00:00
Martin Baulig 73435b957b Oooooops.
svn path=/trunk/mcs/; revision=32273
2004-08-12 16:04:41 +00:00
Martin Baulig 92baec159b Added comment.
svn path=/trunk/mcs/; revision=32272
2004-08-12 15:59:14 +00:00
Peter Dennis Bartok 7d8a5648e8 - Name changed to BindingManagerBase.cs
svn path=/trunk/mcs/; revision=32271
2004-08-12 15:46:45 +00:00
Martin Baulig 49a4670f73 2004-08-12 Martin Baulig <[email protected]>
* expression.cs (Invocation.InferType): We can only infer method
	type parameters.  Fixes #62647.

svn path=/trunk/mcs/; revision=32270
2004-08-12 15:38:07 +00:00
Gonzalo Paniagua Javier e91035e48e 1.0.1
svn path=/branches/mono-1-0/mono/; revision=32269
2004-08-12 15:36:20 +00:00
Martin Baulig ae45760f68 Ignore.
svn path=/trunk/mono/; revision=32268
2004-08-12 15:32:18 +00:00
Martin Baulig af2ecc871b New test for #62647.
svn path=/trunk/mcs/; revision=32267
2004-08-12 15:30:40 +00:00
Jordi Mas i Hernandez 5af8cff02c calls ctrlbase instead of exeception
svn path=/trunk/mcs/; revision=32266
2004-08-12 15:25:49 +00:00
Sebastien Pouliot 27e5d6e8b5 2004-08-12 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added System.Runtime.ConstrainedExecution/
	CER.cs, Consistency.cs, PrePrepareMethodAttribute.cs and
	ReliabilityContractAttribute.cs. Added System.Threading/
	ParameterizedThreadStart.cs. All for NET_2_0 profile.

svn path=/trunk/mcs/; revision=32265
2004-08-12 12:56:44 +00:00
Sebastien Pouliot 80d81ecdcd 2004-08-12 Sebastien Pouliot <[email protected]>
* CompressedStackSwitcher.cs: Added missing [ComVisible] and
	[ReliabilityContract] attributes.
	* ExecutionContext.cs: Added missing [ComVisible] and
	[Serializable] attributes.
	* HostExecutionContext.cs: Added missing [ComVisible] attribute.
	* HostExecutionContextManager.cs: Added missing [ComVisible] and
	[ReliabilityContract] attributes.
	* HostExecutionContextSwitcher.cs: Added missing Equals and
	GetHashCode methods and [ComVisible] and [ReliabilityContract] attrs.
	* ParameterizedThreadStart.cs: New delegate in NET_2_0.
	* SendOrPostCallback.cs: Added missing [ComVisible] attribute.
	* SynchronizationContext.cs: Added new (2.0 beta1) methods Copy and
	WaitHelper. Added missing [ComVisible] and [ReliabilityContract] attrs.
	* SynchronizationContextSwitcher.cs: Added missing [ComVisible] and
	[ReliabilityContract] attributes.

svn path=/trunk/mcs/; revision=32264
2004-08-12 12:53:35 +00:00
Sebastien Pouliot 5b60b8d64a 2004-08-12 Sebastien Pouliot <[email protected]>
* SecurityContextSwitcher.cs: Added missing [ReliabilityContract] to
	Undo method.

svn path=/trunk/mcs/; revision=32263
2004-08-12 12:45:51 +00:00
Sebastien Pouliot 81a5a952f6 2004-08-12 Sebastien Pouliot <[email protected]>
* CER.cs: Copied from System.Runtime.Reliability. Fixed attributes.
	* Consistency.cs: Copied from System.Runtime.Reliability. Fixed
	attributes.
	* PrePrepareMethodAttribute.cs: Copied from System.Runtime.Reliability.
	Fixed attributes.
	* CriticialFinalizerObject.cs: Added missing finalizer and attributes.
	* ReliabilityContractAttribute.cs: Copied from System.Runtime.
	Reliability. Fixed attributes.

svn path=/trunk/mcs/; revision=32262
2004-08-12 12:44:02 +00:00
Sanja Gupta 6c5c4e350d ChangeLog: Updated ChangeLog.
IField.cs:
IFilter.cs:
IParameters.cs:
IPersonalizable.cs:
IRow.cs:
ITable.cs:
ITrackingPersonalizable.cs:
ITransformerConfigurationControl.cs:
IVersioningPersonalizable.cs:
IWebActionable.cs:
IWebEditable.cs:
IWebPart.cs:
IWebPartHttpHandler.cs: Added new interfaces.

svn path=/trunk/mcs/; revision=32261
2004-08-12 12:01:58 +00:00
Sachin Kumar 5f681faa0f Added new tests for With Statement
svn path=/trunk/mcs/; revision=32260
2004-08-12 11:06:17 +00:00
Sanja Gupta ce001f349a ChangeLog: Updated ChangeLog.
ConnectionConsumerCallback.cs:
ConnectionProviderCallback.cs:
WebPartAuthorizationEventArgs.cs:
WebPartAuthorizationEventHandler.cs:
WebPartCancelEventArgs.cs:
WebPartCancelEventHandler.cs:
WebPartConnectionsEventArgs.cs:
WebPartConnectionsEventHandler.cs:
WebPartDisplayModeCancelEventArgs.cs:
WebPartDisplayModeCancelEventHandler.cs:
WebPartDisplayModeEventArgs.cs:
WebPartDisplayModeEventHandler.cs:
WebPartEventArgs.cs:
WebPartEventHandler.cs:
WebPartVerbsEventArgs.cs:
WebPartVerbsEventHandler.cs: Added new EventArgs and EventHandlers.

svn path=/trunk/mcs/; revision=32259
2004-08-12 10:06:22 +00:00
Sureshkumar T 10ea22496f 2004-08-12 Sureshkumar T <[email protected]>
* SqlDataReader.cs - In Close method, the remaining resultsets are drained
			     out, to read output parameters & to avoid stream overlap

svn path=/trunk/mcs/; revision=32258
2004-08-12 09:44:48 +00:00
Sureshkumar T 1ad7afd28c 2004-08-12 Sureshkumar T <[email protected]>
* SqlDataReader.cs - In Close method, the remaining resultsets are drained
			     out, to read output parameters & to avoid stream overlap

svn path=/branches/mono-1-0/mcs/; revision=32257
2004-08-12 09:17:04 +00:00
Sachin Kumar 1e9ffc63fe Added new tests for Local Declaration Statements
svn path=/trunk/mcs/; revision=32256
2004-08-12 08:13:39 +00:00
Sanja Gupta e0e3217879 ChangeLog: Updated ChangeLog.
SendMailErrorEventArgs.cs:
SendMailErrorEventHandler.cs:
SiteMapNodeItemEventArgs.cs:
SiteMapNodeItemEventHandler.cs:
SqlDataSourceSelectingEventArgs.cs:
SqlDataSourceSelectingEventHandler.cs:
TreeNodeEventArgs.cs:
TreeNodeEventHandler.cs:
WizardNavigationEventArgs.cs:
WizardNavigationEventHandler.cs: Added new event args and handlers.

svn path=/trunk/mcs/; revision=32255
2004-08-12 08:00:10 +00:00
Anirban Bhattacharjee 97dfb2ac06 2004-08-05 Anirban Bhattacharjee <[email protected]>
* InheritanceJ.vb: New test case
        * InheritanceA.vb: made corrections
        * InterfaceC.vb: Enhanced

svn path=/trunk/mcs/; revision=32254
2004-08-12 05:53:43 +00:00
Anirban Bhattacharjee 331ee0c951 2004-08-12 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Implements support in Abstract methods

svn path=/trunk/mcs/; revision=32253
2004-08-12 05:39:02 +00:00
Anirban Bhattacharjee 8d2b1fbf56 2004-08-12 Anirban Bhattacharjee <[email protected]>
* class.cs: Support for abstract method resolution
        * pending.cs: Type of pending_implementations is set to base type
                      Changed method names IsInterfaceIndexer and IsInterfaceMethod to IsAbstractIndexer and IsAbstractMethod respectively to make them more meaningful

svn path=/trunk/mcs/; revision=32252
2004-08-12 04:09:38 +00:00
Bernie Solomon aaa5213fe7 2004-08-11 Bernie Solomon <[email protected]>
* mini.c: ovfops_op_map - add STACK_OBJ case for
	CONV_I
	* basic.cs: add test_0_pin_string as test
	case for above.

svn path=/trunk/mono/; revision=32251
2004-08-12 00:12:49 +00:00
Bernie Solomon a15a172e08 2004-08-11 Bernie Solomon <[email protected]>
* TypeOf.vb:
	* Test.Sources: New test

svn path=/trunk/mcs/; revision=32250
2004-08-11 23:46:32 +00:00
Peter Dennis Bartok 509ae706c1 - Never check in before compiling. Fixes the last check-in
svn path=/trunk/mcs/; revision=32249
2004-08-11 22:28:02 +00:00
Peter Dennis Bartok 18c834d887 - More signature fixes
svn path=/trunk/mcs/; revision=32248
2004-08-11 22:26:14 +00:00
Peter Dennis Bartok 7c5352cb07 - Signature fixes
svn path=/trunk/mcs/; revision=32247
2004-08-11 22:20:59 +00:00
Peter Dennis Bartok c664b2a343 - Fixed Signature
- Added .Net 1.1 method

svn path=/trunk/mcs/; revision=32246
2004-08-11 22:16:50 +00:00
Peter Dennis Bartok a16bfe5b22 - Fixed BindingManagerBase.cs filename
svn path=/trunk/mcs/; revision=32245
2004-08-11 21:25:42 +00:00
Peter Dennis Bartok 3c8680348a - Fixed filename for BindingManagerBase.cs
- Alphabetized files

svn path=/trunk/mcs/; revision=32244
2004-08-11 21:24:52 +00:00
Peter Dennis Bartok 0ec0829957 - Was checked in with wrong filename
svn path=/trunk/mcs/; revision=32243
2004-08-11 21:22:27 +00:00
Duncan Mak 760e3adff8 Use XML_DEP.
svn path=/trunk/mcs/; revision=32242
2004-08-11 21:04:47 +00:00
Bernie Solomon c5d727a80f 2004-08-11 Bernie Solomon <[email protected]>
* Makefile.am: build C# if srcdir != builddir

svn path=/trunk/mono/; revision=32241
2004-08-11 20:56:36 +00:00
Peter Dennis Bartok 0bc158b74f - Updated
svn path=/trunk/mcs/; revision=32240
2004-08-11 20:50:13 +00:00
Gonzalo Paniagua Javier a0a3cdd4ce 2004-08-11 Gonzalo Paniagua Javier <[email protected]>
* Cookie.cs: don't fail when using default constructor. Fixes bug
	#62890.

svn path=/trunk/mcs/; revision=32238
2004-08-11 20:34:56 +00:00
Gonzalo Paniagua Javier 5f80f81cd4 2004-08-11 Gonzalo Paniagua Javier <[email protected]>
* HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
	than once and have multiple values. Don't rely on string.split when
	parsing cookie values.

	* WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
	Fixed GetValues (it was splitting values that contained a comma) and
	changed SetInternal to handle multi-value headers.

	Fixes bug #62744.

svn path=/trunk/mcs/; revision=32235
2004-08-11 20:03:15 +00:00
Jordi Mas i Hernandez aac6e4079a Fixes ClientRect
svn path=/trunk/mcs/; revision=32234
2004-08-11 19:41:38 +00:00
Duncan Mak a1aa3831cc * ProtectedConfigurationProvider.cs:
* ProviderBase.cs: Implemented.

* ConfigurationPropertyAttribute.cs: Implemented attribute.

* ConfigurationAllowDefinition.cs:
* ConfigurationUserLevel.cs:
* PathLevel.cs: Added enumerations.

svn path=/trunk/mcs/; revision=32233
2004-08-11 19:28:55 +00:00
Peter Dennis Bartok 51ea6a75d7 - We had SetWindowPos and MoveWindow to set window positions and size,
removed MoveWindow. We have GetWindowPos, so it made sense to keep
  SetWindowPos as matching counterpart
- Added some X11 sanity checking

svn path=/trunk/mcs/; revision=32232
2004-08-11 19:19:44 +00:00
Peter Dennis Bartok 6e9b93d740 - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
(It seems that SetBounds is just a front for SetBoundsCore and
   SetBoundsCore updates the underlying window system and UpdateBounds is
   responsible for updating the variables associated with the Control and
   sending the events)
- Major cleanup of Size handling; we now have two sizes, client_size and
  bounds. Bounds defines the window with decorations, client_size without
  them.

svn path=/trunk/mcs/; revision=32231
2004-08-11 18:59:45 +00:00
Peter Dennis Bartok 39371c0079 - Added method to calculate difference between decorated window and raw
client area

svn path=/trunk/mcs/; revision=32230
2004-08-11 18:55:46 +00:00
Peter Dennis Bartok 84f41b6be1 - Forcing redraw on resize
svn path=/trunk/mcs/; revision=32229
2004-08-11 18:54:11 +00:00
Marek Safar ca6cfaea2f 2004-08-11 Marek Safar <[email protected]>
* AppDomain.cs: Fixed typo of DefineDynamicAssembly argument.
	Added call to AddPermissionRequests to pass permissions
	arguments.
	* Environment.cs: Added a few Fx 2.0 methods

svn path=/trunk/mcs/; revision=32228
2004-08-11 18:41:50 +00:00
Peter Dennis Bartok 0ce3c9d42d - Removed disposing of the actual images when the list is disposed
svn path=/trunk/mcs/; revision=32227
2004-08-11 17:43:08 +00:00
Zoltan Varga 5ee5f3c700 2004-08-11 Zoltan Varga <[email protected]>
* configure.in: Fix __thread test.

svn path=/trunk/mono/; revision=32226
2004-08-11 17:15:23 +00:00
Marek Safar 718bf99fc6 2004-08-11 Marek Safar <[email protected]>
* AssemblyBuilder.cs: Added AddPermissionRequests method
	used be mcs for SecurityPermissionAttribute handling.

svn path=/trunk/mcs/; revision=32225
2004-08-11 17:14:46 +00:00
Marek Safar dee7307e2a new error tests
svn path=/trunk/mcs/; revision=32224
2004-08-11 17:03:41 +00:00
Sebastien Pouliot a6cdac22f8 2004-08-11 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Basic implementation for Demand (without
	full stack trace, i.e. Assert, Deny and PermitOnly aren't considered).
	Added TODO to unimplemented NET_2_0 methods.
	* HostSecurityManager.cs: Added comments (as it looked not implemented
	even to myself).
	* PermissionSet.cs: Fixed Unrestricted when copied. Changed exception
	ordering in Copy (ArgumentNullException couldn't work). Made IsEmpty
	more robust.
	* SecurityManager.cs: Implemented IsGranted using Assembly.Demand.
	Basic implementation for policy resolution.

svn path=/trunk/mcs/; revision=32223
2004-08-11 16:54:45 +00:00
Bernie Solomon 463ef66d17 2004-08-11 Bernie Solomon <[email protected]>
* mb-parser.jay: first cut at TypeOf ... Is

svn path=/trunk/mcs/; revision=32222
2004-08-11 16:49:20 +00:00
Sebastien Pouliot 8cd6e29fd7 2004-08-11 Sebastien Pouliot <[email protected]>
* ApplicationSecurityInfo.cs: Added missing interfaces.
	* PolicyLevel.cs: Load policies from files, using *.default files if
	policy is missing (like Fx 2.0). Fixed Resolve never to return null.
	Added hardcoded policy defaults (to be updated as CAS progress) in
	case no policy file, nor default files, are available.
	* PolicyStatement.cs: Fixed AttributeString. Added internal static
	Empty method (helper).

svn path=/trunk/mcs/; revision=32221
2004-08-11 16:47:00 +00:00
Bernie Solomon bc8e30a10a Forgot Test.Sources, use Tabs in EnumB.vb
svn path=/trunk/mcs/; revision=32220
2004-08-11 16:43:03 +00:00
Bernie Solomon c88e696ae2 2004-08-11 Bernie Solomon <[email protected]>
* expression.cs:
	* ecore.cs: More enum changes to handle
	implicit conversions better

svn path=/trunk/mcs/; revision=32219
2004-08-11 15:47:49 +00:00
Bernie Solomon d8328bfece 2004-08-11 Bernie Solomon <[email protected]>
* EnumB.vb:
	* Test.Sources: New test

svn path=/trunk/mcs/; revision=32218
2004-08-11 15:47:22 +00:00
Peter Dennis Bartok 452ff1a7c0 - Now properly reparents windows
svn path=/trunk/mcs/; revision=32215
2004-08-11 15:13:32 +00:00
Martin Baulig 388d37ab53 2004-08-11 Martin Baulig <[email protected]>
* class.cs (TypeContainer.DefineType): Create the TypeBuilder
	before resolving the base classes.

svn path=/trunk/mcs/; revision=32214
2004-08-11 15:06:27 +00:00
Martin Baulig 90ea2dd956 2004-08-11 Martin Baulig <[email protected]>
* reflection.c (mono_reflection_setup_internal_class): Also call
	mono_class_setup_mono_type() if we already have a `tb->type.type'.

svn path=/trunk/mono/; revision=32213
2004-08-11 14:58:41 +00:00
Peter Dennis Bartok c2e2cb4617 - Duh!
svn path=/trunk/mcs/; revision=32210
2004-08-11 14:37:11 +00:00
Sanja Gupta b7539f8ab0 ChangeLog: Updated ChangeLog.
ImageMapEventArgs.cs:
ImageMapEventHandler.cs:
MailMessageEventArgs.cs:
MailMessageEventHandler.cs:
MenuEventArgs.cs:
MenuEventHandler.cs:
ObjectDataSourceDisposingEventArgs.cs:
ObjectDataSourceDisposingEventHandler.cs:
ObjectDataSourceEventArgs.cs:
ObjectDataSourceEventHandler.cs:
ObjectDataSourceMethodEventArgs.cs:
ObjectDataSourceMethodEventHandler.cs:
ObjectDataSourceSelectingEventArgs.cs:
ObjectDataSourceSelectingEventHandler.cs:
ObjectDataSourceStatusEventArgs.cs:
ObjectDataSourceStatusEventHandler.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32209
2004-08-11 14:18:43 +00:00
Peter Dennis Bartok f25344ee8e - Rewrote the collection stuff. Might not be as fast now, not keeping
the number of children around and accessible directly, but it's more
  straightforward

svn path=/trunk/mcs/; revision=32208
2004-08-11 13:47:22 +00:00
Peter Dennis Bartok 1f5b2f883e - Fixed to match ControlCollection rewrite
svn path=/trunk/mcs/; revision=32207
2004-08-11 13:44:33 +00:00
Peter Dennis Bartok 50411aaf20 - Added missing creation of the collection list
svn path=/trunk/mcs/; revision=32206
2004-08-11 13:43:13 +00:00
Sachin Kumar a60e918475 Added new tests for Local Variables Statements
svn path=/trunk/mcs/; revision=32205
2004-08-11 13:30:47 +00:00
Sebastien Pouliot 34b3978bd1 2004-08-11 Sebastien Pouliot <[email protected]>
* UnionCodeGroupTest.cs: Added unit tests for Resolve. Converted
	existing unit tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32204
2004-08-11 13:14:38 +00:00
Dick Porter 70190c712f 2004-08-11 Dick Porter <[email protected]>
* sockets.c:
	* io.c: Returned handle values are the file descriptor the handle
	encapsulates

	* handles.c:
	* handles-private.h:
	* daemon.c: Reserve the range of handles that can have the same
	values as file descriptors.  These won't be used, but the values
	will be used as file, console, pipe or socket handles.  The fd to
	handle mapping is done internally and is invisible to users.
	Fixes bug 61828.

	* wapi-private.h (_WAPI_HANDLE_VERSION): Increment, because we now
	reserve a chunk of handle space.

svn path=/trunk/mono/; revision=32203
2004-08-11 13:07:13 +00:00
Sanja Gupta cbc44ae269 ChangeLog: Updated ChangeLog.
DetailsViewCommandEventArgs.cs:
FormViewCommandEventArgs.cs:
GridViewCommandEventArgs.cs: Corrected constructor.

svn path=/trunk/mcs/; revision=32202
2004-08-11 12:44:33 +00:00
Sanja Gupta 2099b0b117 ChangeLog: Updated ChangeLog.
GridViewCancelEditEventArgs.cs:
GridViewCancelEditEventHandler.cs:
GridViewCommandEventArgs.cs:
GridViewCommandEventHandler.cs:
GridViewDeletedEventArgs.cs:
GridViewDeletedEventHandler.cs:
GridViewDeleteEventArgs.cs:
GridViewDeleteEventHandler.cs:
GridViewEditEventArgs.cs:
GridViewEditEventHandler.cs:
GridViewPageEventArgs.cs:
GridViewPageEventHandler.cs:
GridViewRowEventArgs.cs:
GridViewRowEventHandler.cs:
GridViewSelectEventArgs.cs:
GridViewSelectEventHandler.cs:
GridViewSortEventArgs.cs:
GridViewSortEventHandler.cs:
GridViewUpdatedEventArgs.cs:
GridViewUpdatedEventHandler.cs:
GridViewUpdateEventArgs.cs:
GridViewUpdateEventHandler.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32199
2004-08-11 11:36:04 +00:00
Sanja Gupta edbb878276 ChangeLog: Updated ChangeLog.
FormViewUpdatedEventArgs.cs: Corrected constructor.

svn path=/trunk/mcs/; revision=32198
2004-08-11 11:15:15 +00:00
Anirban Bhattacharjee df79a5481d 2004-08-11 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Interface inheritance made better

svn path=/trunk/mcs/; revision=32197
2004-08-11 09:18:55 +00:00
Anirban Bhattacharjee 12e8a1f7c2 The fixes were by Rob Tillie
svn path=/trunk/mcs/; revision=32196
2004-08-11 09:04:31 +00:00
Sanja Gupta a33fbf2002 ChangeLog: Updated ChangeLog.
FormViewCommandEventArgs: Corrected name of the class.

svn path=/trunk/mcs/; revision=32195
2004-08-11 08:15:41 +00:00
Anirban Bhattacharjee 886552bb80 2004-08-11 Anirban Bhattachartjee <[email protected]>
* Strings.cs: - Bug fix (#62235) - by Pedro Cardoso<[email protected]>
                      - Excetion handling in Join
                      - Support for Hex in format function (not sure whether this fix is a complete one)

svn path=/trunk/mcs/; revision=32194
2004-08-11 08:07:16 +00:00
Anirban Bhattacharjee 4c92f27508 2004-08-11 Anirban Bhattachartjee <[email protected]>
* Interaction.cs: Bug fix (#62234) - by Pedro Cardoso<[email protected]>

svn path=/trunk/mcs/; revision=32193
2004-08-11 07:48:59 +00:00
Jambunathan K aec1656cbf Fixed NormalizeArgs so that when an option starts
with a '/' or a '-', the option and the argument pair gets split
at the first ':' or '='. For example /out:"C:\HelloWorld.exe"
gets split up as /out and "C:\HelloWorld.exe".

svn path=/trunk/mcs/; revision=32189
2004-08-11 03:24:51 +00:00
Sachin Kumar 48ac4eb221 Added new tests for Block Statements
svn path=/trunk/mcs/; revision=32188
2004-08-11 02:49:53 +00:00
Jackson Harper 79257968c5 Get the paint message from WndProc
svn path=/trunk/mcs/; revision=32187
2004-08-11 02:08:53 +00:00
Jackson Harper 47b5257d7b Create Brushes as little as possible
svn path=/trunk/mcs/; revision=32186
2004-08-11 01:31:35 +00:00
Jackson Harper 27f0167c4d Add Flags attribute
svn path=/trunk/mcs/; revision=32185
2004-08-11 01:20:34 +00:00
Jackson Harper 132e3f3a56 Signature cleanup
svn path=/trunk/mcs/; revision=32184
2004-08-11 01:19:14 +00:00
Jackson Harper 0a2657d88e Add StatusBarDrawItem stuff to build
svn path=/trunk/mcs/; revision=32183
2004-08-11 01:11:17 +00:00
Jackson Harper 2ed9740a31 Initial implementation of status bar item drawing
svn path=/trunk/mcs/; revision=32182
2004-08-11 01:10:09 +00:00
Jordi Mas i Hernandez 0c71149b28 add missing methods, properties, and restructure to hide extra ones
svn path=/trunk/mcs/; revision=32181
2004-08-10 23:27:12 +00:00
Jackson Harper 36c596330d Add flags attribute
svn path=/trunk/mcs/; revision=32180
2004-08-10 22:24:21 +00:00
Sebastien Pouliot c894be6da9 2004-08-10 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs: Added new policy resolution tests (related to
	Zone). Converted existing unit tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32178
2004-08-10 20:15:49 +00:00
Gonzalo Paniagua Javier cbaad97e5a same fix as in HEAD
svn path=/branches/mono-1-0/mcs/; revision=32175
2004-08-10 19:37:08 +00:00
Gonzalo Paniagua Javier bc9587697a 2004-08-10 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: multipart mails default body format is now the same as
	the one used for single part mails instead of being forced to
	"text/plain".

svn path=/trunk/mcs/; revision=32174
2004-08-10 19:35:44 +00:00
Jordi Mas i Hernandez ae9abbbc8a scrollbar enhancements and standarize on win colors defaults
svn path=/trunk/mcs/; revision=32173
2004-08-10 19:21:27 +00:00
Jackson Harper 786a41858d Add Draw Item
svn path=/trunk/mcs/; revision=32168
2004-08-10 18:59:57 +00:00
Jackson Harper f94eb2fa15 Implement DrawItem functionality
svn path=/trunk/mcs/; revision=32167
2004-08-10 18:52:30 +00:00
Jordi Mas i Hernandez 51f53262d2 Calls InvalidateRect before UpdateWindow
svn path=/trunk/mcs/; revision=32166
2004-08-10 18:47:16 +00:00
Jordi Mas i Hernandez e350def529 throw ontextchange event
svn path=/trunk/mcs/; revision=32165
2004-08-10 18:32:10 +00:00
Gonzalo Paniagua Javier a21cc56436 same fix as in HEAD
svn path=/branches/mono-1-0/mcs/; revision=32164
2004-08-10 18:06:42 +00:00
Gonzalo Paniagua Javier ea94b27094 2004-08-10 Gonzalo Paniagua Javier <[email protected]>
* Xml.cs: use MapPath in DocumentSource and documentContent. Fixes
	bug #62726.

svn path=/trunk/mcs/; revision=32163
2004-08-10 18:05:08 +00:00
Jackson Harper 74be589a7b * SystemColors.cs: Make Highlight colour match colour from windows
classic color scheme.

svn path=/trunk/mcs/; revision=32161
2004-08-10 18:04:01 +00:00
Peter Dennis Bartok fce8234921 - Added more to the still unfinished Dock/Anchor layout code
svn path=/trunk/mcs/; revision=32160
2004-08-10 17:43:04 +00:00
Peter Dennis Bartok 3e995afa8c - Added GetWindowPos method
svn path=/trunk/mcs/; revision=32159
2004-08-10 17:39:22 +00:00
Peter Dennis Bartok b0e0f2d6bb - Implemented several methods
svn path=/trunk/mcs/; revision=32158
2004-08-10 17:36:17 +00:00
Paolo Molaro 72cf920dea Tue Aug 10 19:23:47 CEST 2004 Paolo Molaro <[email protected]>
* dominators.c, mini.h, mini-x86.c: fix loop alignment with
	fall-through blocks.

svn path=/trunk/mono/; revision=32157
2004-08-10 16:21:40 +00:00
Jackson Harper 7a4771cb02 Allow control to handle buffering
svn path=/trunk/mcs/; revision=32155
2004-08-10 15:47:11 +00:00
Jackson Harper d06c75404b Allow control to handle buffering
svn path=/trunk/mcs/; revision=32154
2004-08-10 15:41:50 +00:00
Jackson Harper 1c63bec5de Let Control handle buffering.
svn path=/trunk/mcs/; revision=32153
2004-08-10 15:24:35 +00:00
Duncan Mak eb19dfc3f8 (PrintRequires): Since assembly versions are not changing with
releases, use "=" instead of ">=" to ensure that 2.0 packages will not
be picked over 1.0 packages.

svn path=/branches/mono-1-0/mcs/; revision=32152
2004-08-10 15:23:11 +00:00
Duncan Mak 4146c753e5 (PrintRequires): Since assembly versions are not changing with
releases, use "=" instead of ">=" to ensure that 2.0 packages will not
be picked over 1.0 packages.

svn path=/trunk/mcs/; revision=32151
2004-08-10 15:22:08 +00:00
Sebastien Pouliot 2c690a4c14 2004-08-10 Sebastien Pouliot <[email protected]>
* X509Store.cs: Now returns empty collection/list for certificates/
	CRL when access to a store is denied.

svn path=/trunk/mcs/; revision=32150
2004-08-10 15:14:35 +00:00
Sebastien Pouliot 45aa840540 2004-08-10 Sebastien Pouliot <[email protected]>
* certmgr.cs: Added option '-m' to add certificates to the machine
	stores (default to user store). Added better handling for
	UnauthorizedAccessException (e.g. non-root access to machine store).

svn path=/trunk/mcs/; revision=32149
2004-08-10 15:11:35 +00:00
Jackson Harper 57fad89730 Let Control handle all the buffering.
svn path=/trunk/mcs/; revision=32148
2004-08-10 15:09:29 +00:00
Jackson Harper b608bdd390 Control will now handle the buffering code, so each control does not have to implement this.
svn path=/trunk/mcs/; revision=32147
2004-08-10 15:08:05 +00:00
Jackson Harper 0fe398dfd0 Use default colors from the theme
svn path=/trunk/mcs/; revision=32146
2004-08-10 14:34:15 +00:00
Atsushi Eno 6dd3946949 2004-08-10 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : Replaced XmlSchemaCollection with
	  XmlSchemaSet. Added Settings property override

svn path=/trunk/mcs/; revision=32145
2004-08-10 14:27:57 +00:00
Atsushi Eno 82cf0449af 2004-08-10 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : replaced XmlSchemaCollection with
	  XmlSchemaSet. Removed unused code.

svn path=/trunk/mcs/; revision=32144
2004-08-10 14:26:46 +00:00
Atsushi Eno e91b293dbc 2004-08-10 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Replace XmlSchemaCollection with XmlSchemaSet that
	  used to maintain compiled schema state.
	  Simplified code a bit (Include processing).
	  Set IsCompiled = true only when successfully compiled.
	* XmlSchemaCollection.cs : Now it totally delegates its processing
	  to XmlSchemaSet. Removed unused methods.
	* XmlSchemaElement.cs : Added post-compiled information initializer
	  method, and call it before (re)Compile().
	* XmlSchemaSet.cs :
	  - Replaced internal store from Dictionary to List, since schema
	    resources for one target namespace can be more than one (that's why
	  - Schemas(string targetNamespace) returns ICollection).
	  - Now global schemaset members are added per schema addition (it is
	    more MS compatible than before).
	  - Use GetSafeNs() to do targetNamespace comparison correctly.

	  XmlSchemaSet looks still unstable, so it will be changed again.

	* XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleTypeUnion.cs,
	* XmlSchemaUtil.cs : Consider xdt namespace.

svn path=/trunk/mcs/; revision=32143
2004-08-10 14:25:39 +00:00
Atsushi Eno 4fe7d6d0e2 2004-08-10 Atsushi Enomoto <[email protected]>
* XmlSchemaCollection.cs : replaced CRLF to LF (they were mixed).

svn path=/trunk/mcs/; revision=32142
2004-08-10 14:08:10 +00:00
Atsushi Eno ac50fa24b0 2004-08-10 Atsushi Enomoto <[email protected]>
* DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
	  .FromName(string, string) [going to remove former one; it is not
	  good to support xdt:blah datatypes].

svn path=/trunk/mcs/; revision=32141
2004-08-10 13:52:25 +00:00
Paolo Molaro c1d0433ffe Tue Aug 10 16:18:22 CEST 2004 Paolo Molaro <[email protected]>
* driver.c: enable loop by default again and include abcrem in -O=all.

svn path=/trunk/mono/; revision=32140
2004-08-10 13:15:49 +00:00
Sanja Gupta a36c2fc646 ChangeLog: Updated ChangeLog.
FormViewCommandEventArgs.cs:
FormViewCommandEventHandler.cs:
FormViewDeletedEventArgs.cs:
FormViewDeletedEventHandler.cs:
FormViewDeleteEventArgs.cs:
FormViewDeleteEventHandler.cs:
FormViewInsertedEventArgs.cs:
FormViewInsertedEventHandler.cs:
FormViewInsertEventArgs.cs:
FormViewInsertEventHandler.cs:
FormViewModeEventArgs.cs:
FormViewModeEventHandler.cs:
FormViewPageEventArgs.cs:
FormViewPageEventHandler.cs:
FormViewUpdatedEventArgs.cs:
FormViewUpdatedEventHandler.cs:
FormViewUpdateEventArgs.cs:
FormViewUpdateEventHandler.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32139
2004-08-10 12:55:59 +00:00
Sanja Gupta f425d4040a ChangeLog: Update ChangeLog.
DetailsViewCommandEventArgs.cs:
DetailsViewCommandEventHandler.cs:
DetailsViewDeletedEventArgs.cs:
DetailsViewDeletedEventHandler.cs:
DetailsViewDeleteEventArgs.cs:
DetailsViewDeleteEventHandler.cs:
DetailsViewInsertedEventArgs.cs:
DetailsViewInsertedEventHandler.cs:
DetailsViewInsertEventArgs.cs:
DetailsViewInsertEventHandler.cs:
DetailsViewModeEventArgs.cs:
DetailsViewModeEventHandler.cs:
DetailsViewPageEventArgs.cs:
DetailsViewPageEventHandler.cs:
DetailsViewUpdatedEventArgs.cs:
DetailsViewUpdatedEventHandler.cs:
DetailsViewUpdateEventArgs.cs:
DetailsViewUpdateEventHandler.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32138
2004-08-10 12:45:35 +00:00
Paolo Molaro dad96e1504 Link with all the needed libs.
svn path=/trunk/mono/; revision=32137
2004-08-10 10:12:11 +00:00
Paolo Molaro 1d5e22e40b Don't require config.h.in changes.
svn path=/trunk/mono/; revision=32136
2004-08-10 09:58:05 +00:00
Paolo Molaro c74a25cdc4 Handle old compilers in array init.
svn path=/trunk/mono/; revision=32134
2004-08-10 08:56:49 +00:00
Paolo Molaro 3a80172e9a Detect old compilers.
svn path=/trunk/mono/; revision=32133
2004-08-10 08:56:24 +00:00
Atsushi Eno 2fe23db0c0 2004-08-10 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : code reformatting. convert CRLF to LF.
	  Use String.Format() instead of +. Removed commented code.

svn path=/trunk/mcs/; revision=32132
2004-08-10 05:56:33 +00:00
Sureshkumar T 0ecdb96464 2004-08-09 Sureshkumar T <[email protected]>
* Tds70.cs - Prepare Method stored procedure handle read problem fixed.

svn path=/branches/mono-1-0/mcs/; revision=32131
2004-08-10 04:02:37 +00:00
Peter Dennis Bartok 9dc25f157d - Fixed several bugs Ravindra pointed out
svn path=/trunk/mcs/; revision=32124
2004-08-09 23:12:13 +00:00
Marek Safar 1a7ccfee39 2004-08-09 Marek Safar <[email protected]>
* corlib.dll.sources: Added System/EnvironmentVariableTarget.cs
	for NET_2_0.

svn path=/trunk/mcs/; revision=32123
2004-08-09 22:32:44 +00:00
Peter Dennis Bartok c590d8a650 - Added incomplete dock layout code
- Added support for mouse wheel

svn path=/trunk/mcs/; revision=32120
2004-08-09 22:11:25 +00:00
Peter Dennis Bartok c30768fb5c - Added handling for middle and right mousebutton
- Added handling for mouse wheel
- Added handling for key state and mouse state and position
- Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL messages

svn path=/trunk/mcs/; revision=32118
2004-08-09 22:09:47 +00:00
Jackson Harper 19e9ab0488 Add status bar panel files to the build
svn path=/trunk/mcs/; revision=32116
2004-08-09 21:40:50 +00:00
Jackson Harper 4b4fd0bd31 Initial checkin
svn path=/trunk/mcs/; revision=32115
2004-08-09 21:40:17 +00:00
Jackson Harper 66ac7f0512 Initial implementation of StatusBar
svn path=/trunk/mcs/; revision=32114
2004-08-09 21:37:49 +00:00
Jackson Harper 4c2d146205 Add support for drawing status bar and getting status bar item sizes
svn path=/trunk/mcs/; revision=32113
2004-08-09 21:36:34 +00:00
Peter Dennis Bartok aaf76eb8fe - Fixed values
svn path=/trunk/mcs/; revision=32112
2004-08-09 21:35:34 +00:00
Jackson Harper 24d3826971 Add support for drawing status bar and get status bar item sizes
svn path=/trunk/mcs/; revision=32111
2004-08-09 21:34:54 +00:00
Jackson Harper 174c6b79ec Use known colors for default control colours
svn path=/trunk/mcs/; revision=32110
2004-08-09 21:21:49 +00:00
Jackson Harper a9da021cb0 Make the default font static, it is static in control so this doesn't change functionality and creating fonts is sloooooow.
svn path=/trunk/mcs/; revision=32107
2004-08-09 21:12:15 +00:00
Peter Dennis Bartok c38dc05ad3 - Added GrabMode enum
svn path=/trunk/mcs/; revision=32106
2004-08-09 20:56:18 +00:00
Peter Dennis Bartok b394c29b0b - Removed Run method, was only required for initial development
svn path=/trunk/mcs/; revision=32105
2004-08-09 20:55:59 +00:00
Peter Dennis Bartok f2b50c46da - Implemented GrabWindow/ReleaseWindow methods to allow pointer capture
svn path=/trunk/mcs/; revision=32103
2004-08-09 20:51:25 +00:00
Peter Dennis Bartok 2248c9b534 - Fixed default sizing for child windows
svn path=/trunk/mcs/; revision=32101
2004-08-09 19:48:08 +00:00
Peter Dennis Bartok 55f4296278 - Added generation of WM_DESTROY message
- Added handling of window manager induced shutdown

svn path=/trunk/mcs/; revision=32095
2004-08-09 18:56:55 +00:00
Sebastien Pouliot 04b52a2d4e 2004-08-09 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Fixed use of Evidence and AppDomainSetup (copies, not
	references). Added (non-obsolete) Fx 2.0 properties and methods.
	* AppDomainSetup.cs: Added internal copy constructor.
	* DomainManagerInitializationFlags.cs: Fixed values.

svn path=/trunk/mcs/; revision=32094
2004-08-09 18:04:49 +00:00
Sebastien Pouliot 765e0f5ebd 2004-08-09 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added System/ApplicationIdentityTest.cs and
	ApplicationIdTest.cs unit tests for NET_2_0.

svn path=/trunk/mcs/; revision=32093
2004-08-09 17:36:44 +00:00
Jackson Harper a3cac0de94 New names for control properties
svn path=/trunk/mcs/; revision=32092
2004-08-09 17:31:13 +00:00
Atsushi Eno de77a2caa9 2004-08-09 Atsushi Enomoto <[email protected]>
* CodeGenerator.cs :
	  Don't initialize output more than once. TextWriter is wrapped twice.

svn path=/branches/mono-1-0/mcs/; revision=32091
2004-08-09 17:30:49 +00:00
Sebastien Pouliot eb5a286079 2004-08-09 Sebastien Pouliot <[email protected]>
* ApplicationIdTest.cs: New. Unit tests for ApplicationId (NET_2_0).
	* ApplicationIdentityTest.cs: New. Unit tests for ApplicationIdentity
	(NET_2_0).
	* AppDomainTest.cs: Added new unit tests for AppDomain (both fx 1.1
	and 2.0).

svn path=/trunk/mcs/; revision=32090
2004-08-09 17:28:46 +00:00
Jackson Harper 924b583cc8 Use new color names
svn path=/trunk/mcs/; revision=32089
2004-08-09 17:25:56 +00:00
Atsushi Eno 1c4f8a680a 2004-08-09 Atsushi Enomoto <[email protected]>
* CodeGenerator.cs :
	  Don't initialize output more than once. TextWriter is wrapped twice.

svn path=/trunk/mcs/; revision=32088
2004-08-09 17:24:51 +00:00
Jackson Harper 755c7b6d17 Get default window properties from the theme
svn path=/trunk/mcs/; revision=32086
2004-08-09 17:02:29 +00:00
Jackson Harper 56e07c699d The theme engine now controls default window properties
svn path=/trunk/mcs/; revision=32085
2004-08-09 17:01:02 +00:00
Jackson Harper 40f74c8777 Add default window color properties
svn path=/trunk/mcs/; revision=32084
2004-08-09 17:00:00 +00:00
Gonzalo Paniagua Javier 87f23504da Same fix as in HEAD
svn path=/branches/mono-1-0/mcs/; revision=32083
2004-08-09 16:30:19 +00:00
Gonzalo Paniagua Javier 58dba0999f 2004-08-09 Gonzalo Paniagua Javier <[email protected]>
* CodeEntryPointMethod.cs: patch by Fawad Halim that makes the entry
	point method public.

svn path=/trunk/mcs/; revision=32082
2004-08-09 16:29:28 +00:00
Jackson Harper e6839a4a96 Use correct default back color
svn path=/trunk/mcs/; revision=32081
2004-08-09 16:17:19 +00:00
Jackson Harper 4c29cabc96 These properties are handled by the theme now.
svn path=/trunk/mcs/; revision=32080
2004-08-09 16:05:16 +00:00
Jackson Harper e53747b622 Remove defaults, these are handled by the theme now.
svn path=/trunk/mcs/; revision=32079
2004-08-09 15:56:44 +00:00
Jackson Harper 51b167dce0 Get default properties from the theme.
svn path=/trunk/mcs/; revision=32078
2004-08-09 15:54:51 +00:00
Jackson Harper c5155ce999 Themes now handle default control properties
svn path=/trunk/mcs/; revision=32077
2004-08-09 15:53:58 +00:00
Jackson Harper cd297e7627 Themes now handle default control properties so coloring will be consistent
svn path=/trunk/mcs/; revision=32076
2004-08-09 15:53:12 +00:00
Jambunathan K 5fa410a8ee Regex pattern in CreateErrorFromString() now
reads (?<level>error|warning) instead of (?<level>\w*). This is
so that mbas's ALPHA message doesn't get captured as a error
string.

svn path=/trunk/mcs/; revision=32075
2004-08-09 15:41:35 +00:00
Sebastien Pouliot 2b70629dce 2004-08-09 Sebastien Pouliot <[email protected]>
* appdomain.c: Fix ves_icall_System_AppDomain_getDomainByID when
	called during default (first) AppDomain creation. Keep track of
	Evidence when loading assemblies.

svn path=/trunk/mono/; revision=32074
2004-08-09 14:41:30 +00:00
Sebastien Pouliot ec8543ce07 2004-08-09 Sebastien Pouliot <[email protected]>
* ApplicationId.cs: Fixed typo to fix NET_2_0 compilation.

svn path=/trunk/mcs/; revision=32073
2004-08-09 14:18:01 +00:00
Paolo Molaro efdb67f5e6 Missing from commit.
svn path=/trunk/mono/; revision=32072
2004-08-09 14:01:32 +00:00
Sebastien Pouliot b433d83cc1 2004-08-09 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added System/ApplicationId.cs,
	System.Reflection/ImageFileMachine.cs and PortableExecutableKind.cs,
	and System.Security.Policy/ApplicationSecurityInfo.cs for NET_2_0.

svn path=/trunk/mcs/; revision=32071
2004-08-09 13:41:30 +00:00
Sebastien Pouliot c447c5945e 2004-08-09 Sebastien Pouliot <[email protected]>
* ApplicationSecurityInfo.cs: New. Stub for NET_2_0.

svn path=/trunk/mcs/; revision=32070
2004-08-09 13:39:30 +00:00
Sebastien Pouliot 17b07496ae 2003-08-09 Sebastien Pouliot <[email protected]>
* AssemblyTest.cs: Added new tests for 1.1 and 2.0 features. Converted
	existing tests to NUnit 2.2.

svn path=/trunk/mcs/; revision=32069
2004-08-09 13:32:12 +00:00
Sebastien Pouliot 36271751e0 l2004-08-09 Sebastien Pouliot <[email protected]>
* Assembly.cs: Fixed some exceptions in NET_1_1 and added some 2.0
	properties (required for compiling the new unit tests).
	* PortableExecutableKind.cs: New. Flags for NET_2_0.
	* ImageFileMachine.cs: New. (Rather limited) enum for NET_2_0.

svn path=/trunk/mcs/; revision=32068
2004-08-09 13:29:45 +00:00
Sanja Gupta d5f6ed77e6 ChangeLog: Updated ChangeLog.
AuthenticateEventArgs.cs:
AuthenticateEventHandler.cs:
CreateUserErrorEventArgs.cs:
CreateUserErrorEventHandler.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32067
2004-08-09 13:23:54 +00:00
Paolo Molaro ac212882fa Mon Aug 9 14:41:45 CEST 2004 Paolo Molaro <[email protected]>
* opcodes.c, opcodes.h: reduce runtime relocations.

svn path=/trunk/mono/; revision=32066
2004-08-09 11:41:12 +00:00
Jambunathan K c19423cd7d Sanitized parser's generic error message
svn path=/trunk/mcs/; revision=32065
2004-08-09 11:40:47 +00:00
Sanja Gupta c747bccb09 ChangeLog: Updated ChaneLog.
ControlSkinProc.cs:
DataSourceViewOperationCallback.cs:
DataSourceViewSelectCallback.cs:
ExtractTemplateValuesMethod.cs: Added new delegates.

svn path=/trunk/mcs/; revision=32064
2004-08-09 11:33:29 +00:00
Paolo Molaro 9bff00c59f Mon Aug 9 13:30:53 CEST 2004 Paolo Molaro <[email protected]>
* culture-info.h, locales.c: fixes and chages to sue the new
	optimized format of the locale data.
	* culture-info-tables.h: regenerated.

svn path=/trunk/mono/; revision=32063
2004-08-09 10:31:36 +00:00
Sanja Gupta d911399a3a ChangeLog: Updated ChangeLog.
SessionStateItemExpireCallback.cs: Added delegate.
SessionStateStoreData.cs: Added a new class.

svn path=/trunk/mcs/; revision=32062
2004-08-09 10:26:46 +00:00
Paolo Molaro a90972a127 Mon Aug 9 13:24:09 CEST 2004 Paolo Molaro <[email protected]>
* Driver.cs, Entry.cs, CultureInfoEntry.cs, DateTimeFormatEntry.cs,
	NumberFormatEntry.cs: create a more compact representation of the
	data.

svn path=/trunk/mono/; revision=32061
2004-08-09 10:23:38 +00:00
Sureshkumar T 0abe4411e7 2004-08-09 Sureshkumar T <[email protected]>
* Tds70.cs - Prepare Method stored procedure handle read problem fixed.

svn path=/trunk/mcs/; revision=32060
2004-08-09 08:10:22 +00:00
Zoltan Varga 255c706677 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=32059
2004-08-09 02:12:25 +00:00
Jordi Mas i Hernandez 8dc8d8bc16 Label BorderStyles
svn path=/trunk/mcs/; revision=32058
2004-08-08 22:54:21 +00:00
Jordi Mas i Hernandez d4b4a511f9 fixes keyboard crash
svn path=/trunk/mcs/; revision=32057
2004-08-08 21:08:10 +00:00
Jordi Mas i Hernandez 3c836a47c1 add cvs header info
svn path=/trunk/mcs/; revision=32056
2004-08-08 19:47:41 +00:00
Rafael Teixeira f89180be7e oops, forgot to yank some writeline-debugging lines
svn path=/trunk/mcs/; revision=32055
2004-08-08 18:51:12 +00:00
Rafael Teixeira f208b1f595 2004-08-08 Rafael Teixeira <[email protected]>
* OptionDetails.cs : Well format options longform with a double-dash only if parsingMode has OptionsParsingMode.GNU_DoubleDash set
	* new OptionsParsingMode.cs source, extracted from OptionList.cs - added GNU_DoubleDash member to the enum
	* Mono.GetOptions.dll.sources: added OptionsParsingMode.cs

svn path=/trunk/mcs/; revision=32054
2004-08-08 18:48:29 +00:00
Jackson Harper a70bd89519 Add pen_buttonface
svn path=/trunk/mcs/; revision=32052
2004-08-08 18:09:53 +00:00
Jordi Mas i Hernandez e36705a650 *** empty log message ***
svn path=/trunk/mcs/; revision=32051
2004-08-08 17:52:12 +00:00
Jordi Mas i Hernandez f477bbe241 Use Windows Standard Colours
svn path=/trunk/mcs/; revision=32050
2004-08-08 17:34:28 +00:00
Miguel de Icaza 255302ecbe Apply patch from Zoltan on this branch too: Bug #62331.
svn path=/branches/mono-1-0/mono/; revision=32049
2004-08-08 17:04:50 +00:00
Marek Safar f443ce64ff New test support file
svn path=/trunk/mcs/; revision=32048
2004-08-08 16:49:19 +00:00
Miguel de Icaza f9a3c61812 Remove all non-implemented bit from the output
svn path=/trunk/mcs/; revision=32046
2004-08-08 16:01:59 +00:00
Sebastien Pouliot 1bf39f1afd 2004-08-08 Sebastien Pouliot <[email protected]>
* AppDomainManager.cs: Commented line to fix NET_2_0 build - as it
	depends on some stuff not yet commited.

svn path=/trunk/mcs/; revision=32045
2004-08-08 15:57:24 +00:00
Sebastien Pouliot 8321b3d403 2004-08-08 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added System/AppDomainInitializer.cs,
	AppDomainManager.cs, ApplicationActivator.cs and
	DomainManagerInitializationFlags.cs. Added System.Threading/
	HostExecutionContext.cs, HostExecutionContextManager.cs and
	HostExecutionContextSwitcher.cs for NET_2_0.

svn path=/trunk/mcs/; revision=32044
2004-08-08 15:02:36 +00:00
Sebastien Pouliot 5ba8fb6765 2004-08-08 Sebastien Pouliot <[email protected]>
* AppDomainInitializer.cs: New Fx 2.0 class for AppDomain.
	* AppDomainManager.cs: New Fx 2.0 class for AppDomain.
	* ApplicationActivator.cs: New Fx 2.0 class for AppDomain.
	* ApplicationId.cs: New Fx 2.0 class.
	* ApplicationIdentity.cs: Fixed ToString.
	* DomainManagerInitializationFlags.cs: New Fx 2.0 flags for AppDomain.

svn path=/trunk/mcs/; revision=32043
2004-08-08 14:58:48 +00:00
Sebastien Pouliot 0fa12c2f85 2004-08-08 Sebastien Pouliot <[email protected]>
* Assembly.cs: Get default evidences when no evidences have been
	supplied. Added internal methods for CAS.
	* AssemblyName.cs: New constructor for NET_2_0.

svn path=/trunk/mcs/; revision=32042
2004-08-08 14:50:05 +00:00
Sebastien Pouliot f7ddf923fb 2004-08-08 Sebastien Pouliot <[email protected]>
* HostExecutionContext.cs: Fx 2.0 stub required for AppDomain.
	* HostExecutionContextManager.cs: Fx 2.0 stub required for AppDomain.
	* HostExecutionContextSwitcher.cs: Fx 2.0 stub required for AppDomain.

svn path=/trunk/mcs/; revision=32041
2004-08-08 14:44:25 +00:00
Sebastien Pouliot c8bbc414b8 2004-08-08 Sebastien Pouliot <[email protected]>
* Evidence.cs: Added new static internal method to create default
	host evidences for an assembly.
	* FileCodeGroup.cs: Added incomplete (no children) policy resolution
	in order to load more complex policies.
	* Hash.cs: Added ISerialization support (required for cross-domain
	evidence support, like nunit).
	* NetCodeGroup.cs: Added incomplete (no children) policy resolution in
	order to load more complex policies.

svn path=/trunk/mcs/; revision=32040
2004-08-08 14:41:52 +00:00
Zoltan Varga 3ccd776134 2004-08-08 Zoltan Varga <[email protected]>
* get.c (get_typespec): Append '*' to pointer types. Fixes #62331.

svn path=/trunk/mono/; revision=32039
2004-08-08 10:25:04 +00:00
Zoltan Varga d6f0d67056 2004-08-08 Zoltan Varga <[email protected]>
* TypeBuilderTest.cs: Add regression test for #62237.

svn path=/trunk/mcs/; revision=32038
2004-08-08 10:17:35 +00:00
Zoltan Varga 2153ab5b16 2004-08-08 Zoltan Varga <[email protected]>
* EnumBuilder.cs: Call setup_enum_type () in the constructor. Fixes
	#62237.

svn path=/trunk/mcs/; revision=32037
2004-08-08 10:16:59 +00:00
Zoltan Varga c3f3eabfba 2004-08-08 Zoltan Varga <[email protected]>
* iltests.il: Add some localloc tests.

svn path=/trunk/mono/; revision=32036
2004-08-08 09:48:09 +00:00
Zoltan Varga aac006f04e 2004-08-08 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Set stack type of LOCALLOC correctly.

	* inssel-amd64.brg inssel-x86.brg: Set dreg of LOCALLOC correctly.
	Fixes #62574.

	* inssel-amd64.brg: Add some optimizations.

svn path=/trunk/mono/; revision=32035
2004-08-08 09:44:20 +00:00
Anirban Bhattacharjee 3b1f800511 2004-08-07 Anirban Bhattacharjee <[email protected]>
* enum.cs: Enum members became enum type now, instead of underlying type

svn path=/trunk/mcs/; revision=32034
2004-08-08 09:31:13 +00:00
Zoltan Varga f4f1dcc27b 2004-08-08 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_setup_jit_tls_data): Add tls offset detection
	for gcc-3.4.

	* Makefile.am: Statically link mono against libmono on AMD64.

svn path=/trunk/mono/; revision=32033
2004-08-08 08:48:54 +00:00
Bernie Solomon 63de54ce7e forgot it in last checkin
svn path=/trunk/mcs/; revision=32031
2004-08-08 03:41:15 +00:00
Bernie Solomon 3d179cf35f 2004-08-07 Bernie Solomon <[email protected]>
* GetType.vb:
	* Test.sources: add a test for GetType

svn path=/trunk/mcs/; revision=32030
2004-08-08 03:24:04 +00:00
Bernie Solomon cd8cf93016 * mb-parser.jay:
implement Is as equals for the moment so it can be used

svn path=/trunk/mcs/; revision=32029
2004-08-08 02:33:57 +00:00
Jackson Harper ff3ae81a48 * AssemblyBuilder.cs: "neutral" culture is invariant culture
(String.Empty).

svn path=/trunk/mcs/; revision=32028
2004-08-08 00:02:41 +00:00
Miguel de Icaza 4fb43ec63c Do not use a single line
svn path=/trunk/mcs/; revision=32027
2004-08-07 23:45:53 +00:00
Miguel de Icaza fc462036af Document -addmodule
svn path=/trunk/mcs/; revision=32026
2004-08-07 23:42:54 +00:00
Jordi Mas i Hernandez ec2cc2ef0f throw exceptions of invalid enums values
svn path=/trunk/mcs/; revision=32025
2004-08-07 23:32:26 +00:00
Jordi Mas i Hernandez d292d296f8 fixes label bug and draw method name
svn path=/trunk/mcs/; revision=32024
2004-08-07 23:31:15 +00:00
Jackson Harper 9872300292 Add HorizontalAlignment enum to build
svn path=/trunk/mcs/; revision=32023
2004-08-07 23:01:17 +00:00
Jackson Harper 75ce8f4e21 Initial checkin
svn path=/trunk/mcs/; revision=32022
2004-08-07 22:56:34 +00:00
Zoltan Varga b28646c117 2004-08-08 Zoltan Varga <[email protected]>
* mini-amd64.c inssel-amd64.brg: Optimizations.

svn path=/trunk/mono/; revision=32021
2004-08-07 21:03:17 +00:00
Jordi Mas i Hernandez 042363455e throw exceptions, fixes events, missing methods
svn path=/trunk/mcs/; revision=32020
2004-08-07 19:16:31 +00:00
Jordi Mas i Hernandez 9d58a22168 Theme colour support and GetSysColor defines
svn path=/trunk/mcs/; revision=32019
2004-08-07 19:05:44 +00:00
Zoltan Varga 91ee07cdda 2004-08-07 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_prolog): Optimize lmf saving a bit.

	* tramp-amd64.c: Patch calling code in trampolines.

svn path=/trunk/mono/; revision=32018
2004-08-07 17:14:05 +00:00
Atsushi Eno 0dbee2ebaa 2004-08-07 Atsushi Enomoto <[email protected]>
* ConfigurationElement.cs,
	  ConfigurationProperty.cs,
	  ConfigurationPropertyCollection.cs,
	  ConfigurationValidationAttribute.cs : use XML_DEP.

svn path=/trunk/mcs/; revision=32016
2004-08-07 16:59:29 +00:00
Bernie Solomon b8a05dfe98 2004-08-07 Bernie Solomon <[email protected]>
* mb-parser.jay: Implement GetType(x)

svn path=/trunk/mcs/; revision=32014
2004-08-07 16:15:27 +00:00
Atsushi Eno b2517827a6 2004-08-07 Atsushi Enomoto <[email protected]>
* OpCodes.cs : csc complains CS1034 Line cannot exceed 2046 characters.

svn path=/trunk/mcs/; revision=32013
2004-08-07 16:02:46 +00:00
Atsushi Eno c47479a795 2004-08-07 Atsushi Enomoto <[email protected]>
* NewMonoXSD.cs : /generator (/g) option didn't work, since it usually
	  ends with .dll (or .exe) and regarded as mere assembly filename.

svn path=/trunk/mcs/; revision=32012
2004-08-07 14:42:08 +00:00
Anirban Bhattacharjee 3236b3608b 2004-08-07 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Check for empty enum declaration

svn path=/trunk/mcs/; revision=32011
2004-08-07 13:02:24 +00:00
Anirban Bhattacharjee 932f0579e6 Anirban Bhattacharjee <[email protected]>
* class.cs:
        * mb-parser.jay:
                Multiple Implements for a particular type member got implemented

svn path=/trunk/mcs/; revision=32010
2004-08-07 11:31:50 +00:00
Anirban Bhattacharjee c8e9583a94 2004-08-05 Anirban Bhattacharjee <[email protected]>
* InterfaceH.vb: New test case

svn path=/trunk/mcs/; revision=32009
2004-08-07 06:55:26 +00:00
Jackson Harper 6a472f7b51 Add flags and serializable attributes.
svn path=/trunk/mcs/; revision=32008
2004-08-07 00:02:04 +00:00
Peter Dennis Bartok 1edbfb45e5 - Fixed some rounding issues with float/int
svn path=/trunk/mcs/; revision=32007
2004-08-07 00:01:39 +00:00
Peter Dennis Bartok 18412aee76 - Implemented GetParent
svn path=/trunk/mcs/; revision=32006
2004-08-06 23:46:56 +00:00
Peter Dennis Bartok 78107fcae5 - Fixed some rounding issues with float/int
svn path=/trunk/mcs/; revision=32005
2004-08-06 23:18:06 +00:00
Peter Dennis Bartok d00b65c93a - Fixed Refresh and Invalidate
svn path=/trunk/mcs/; revision=32004
2004-08-06 23:17:44 +00:00
Zoltan Varga ee2d584b83 2004-08-07 Zoltan Varga <[email protected]>
* configure.in: Add proper checks for the 'undefined reference to '__tls_get_addr' problem.

svn path=/trunk/mono/; revision=32003
2004-08-06 21:58:28 +00:00
Geoff Norton 227f2168ac Patch for bug #62532 implemention of a kqueue/kevent based FileSystemWatcher.
svn path=/trunk/mono/; revision=32002
2004-08-06 21:42:00 +00:00
Geoff Norton 2ede344b8f Patch for bug #62532 implemention of a kqueue/kevent based FileSystemWatcher.
svn path=/trunk/mcs/; revision=32002
2004-08-06 21:42:00 +00:00
Peter Dennis Bartok babdf19db1 - Fixed recursive loop when resizing
- Improved/fixed redrawing on expose messages

svn path=/trunk/mcs/; revision=32001
2004-08-06 21:30:56 +00:00
Martin Baulig 423999a489 Make it compile.
svn path=/trunk/mcs/; revision=32000
2004-08-06 21:10:26 +00:00
Marek Safar 19d65e011c 2004-08-06 Marek Safar <[email protected]>
* report.cs: Renamed Error_T to Error and changed all
	references.

svn path=/trunk/mcs/; revision=31999
2004-08-06 20:51:38 +00:00
Gonzalo Paniagua Javier 0880d1c9b8 2004-08-06 Gonzalo Paniagua Javier <[email protected]>
* executable.make:
	* library.make: install/clean .mdb files.

svn path=/trunk/mcs/; revision=31997
2004-08-06 20:01:26 +00:00
Bernie Solomon b117062fe4 2004-08-06 Bernie Solomon <[email protected]>
* Dll1.vb:
	* Import1.vb: test importing a DLL with a byref arg
	* Makefile: build support DLLs
	* Test.Sources: add new test

svn path=/trunk/mcs/; revision=31995
2004-08-06 18:44:53 +00:00
Duncan Mak f37536547d * ConfigurationElement.cs: Added stubs.
* ConfigurationProperty.cs:
* ConfigurationPropertyCollection.cs:
* ConfigurationValidationAttribute.cs: Added.

* ConfigurationPropertyFlags.cs:
* ConfigurationUpdateMode.cs: Added 2.0 enumerations.

svn path=/trunk/mcs/; revision=31989
2004-08-06 18:36:13 +00:00
Bernie Solomon 362d423325 2004-08-06 Bernie Solomon <[email protected]>
* support.cs: Make ReflectionParameter behave
	like InternalParameter for byref args.
	* expression.cs: Cope with byref args in
	an imported DLL

svn path=/trunk/mcs/; revision=31988
2004-08-06 18:29:34 +00:00
Gonzalo Paniagua Javier 17e12ece4b 2004-08-06 Gonzalo Paniagua Javier <[email protected]>
* Makefile: install .mdb file too.

svn path=/trunk/mcs/; revision=31987
2004-08-06 18:15:55 +00:00
Sebastien Pouliot 8c75888d9d 2004-08-06 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Update version number for Mono 1.1.1 (HEAD ;).

svn path=/trunk/mcs/; revision=31986
2004-08-06 18:08:19 +00:00
Neale Ferguson f8a9d4bb11 Support the MEMCPY(base, base) rule and add initial ARGLIST support
svn path=/trunk/mono/; revision=31985
2004-08-06 16:28:23 +00:00
Zoltan Varga ca192b2565 2004-08-06 Zoltan Varga <[email protected]>
* mini-amd64.c: pinvoke struct passing fixes.

svn path=/trunk/mono/; revision=31984
2004-08-06 16:06:03 +00:00
Jordi Mas i Hernandez e74459ee87 X11 keyboard navigation
svn path=/trunk/mcs/; revision=31982
2004-08-06 15:53:39 +00:00
Zoltan Varga fcfcab94f5 2004-08-06 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: Add AMD64 structs-by-value tests.

svn path=/trunk/mono/; revision=31981
2004-08-06 15:50:33 +00:00
Peter Dennis Bartok 920a726e4b - Fixed reparenting
- Fixed window border creation

svn path=/trunk/mcs/; revision=31980
2004-08-06 14:02:33 +00:00
Sachin Kumar 13b24a81dc Added new tests for Operators
svn path=/trunk/mcs/; revision=31979
2004-08-06 13:33:09 +00:00
Sanja Gupta 73e1bd915e ChangeLog: Updated ChangeLog.
IBindableTemplate.cs ICallbackEventHandler.cs
IControlBuilderAccessor.cs IControlDesignerAccessor.cs
IControlTypeFilter.cs IDataItemContainer.cs
IDataSourceViewSchemaAccessor.cs
IDReferencePropertyAttribute.cs IExpressionsAccessor.cs
IFilterResolutionService.cs IItemPaginationInfo.cs
IMobileTextWriter.cs IPageHeader.cs IPaginationContainer.cs
IPaginationInfo.cs IResourceResolutionService.cs
IResourceUrlGenerator.cs IStateFormatter.cs IStyleSheet.cs
IThemeResolutionService.cs IUrlResolutionService.cs
IUserControlTypeResolutionService.cs: Added new files for interfaces.

svn path=/trunk/mcs/; revision=31977
2004-08-06 11:55:53 +00:00
Anirban Bhattacharjee 0c776256a6 2004-08-06 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Small bug fix in Event grammar

svn path=/trunk/mcs/; revision=31976
2004-08-06 10:50:02 +00:00
Jambunathan K 316af31ffb Added 'mkdir -p $$logpath' to the make rules
svn path=/trunk/mcs/; revision=31975
2004-08-06 10:11:24 +00:00
Marek Safar bea1859bba 2004-08-06 Marek Safar <[email protected]>
* class.cs (TypeContainer.IndexerArrayList): New inner class
	container for indexers.
	(TypeContainer.DefaultIndexerName): New constant for default
	indexer name. Replaced all "Item" with this constant.
	(TypeContainer.DefineIndexers): Moved to IndexerArrayList class.

	* typemanager.cs (TypeManager.default_member_ctor): Cache here
	DefaultMemberAttribute constructor.

svn path=/trunk/mcs/; revision=31974
2004-08-06 10:00:11 +00:00
Jambunathan K 00e0347b4d Changed expression grammar so that it now has a
better semblance to those defined in section 11 of VB.NET spec.
The 'expression' rule as it is now could possibly be buggy. So
another iteration is a must.

svn path=/trunk/mcs/; revision=31973
2004-08-06 09:46:06 +00:00
Anirban Bhattacharjee 75e5749624 2004-08-06 Anirban Bhattacharjee <[email protected]>
* class.cs: Event still needed to have a constructor which takes value of Implements clause.
        * mb-parser.jay: Passing Implements clause value to the constructor

svn path=/trunk/mcs/; revision=31972
2004-08-06 09:32:13 +00:00
Anirban Bhattacharjee 65f0e3fb44 Anirban Bhattacharjee <[email protected]>
* decl.cs:
        * rootcontext.cs:
                Exception number made aligned to VB .net

svn path=/trunk/mcs/; revision=31971
2004-08-06 08:30:30 +00:00
Anirban Bhattacharjee 783abc48fc 2004-08-06 Anirban Bhattacharjee <[email protected]>
* class.cs: Improvements in the implementation of Implements clause in Type members

svn path=/trunk/mcs/; revision=31970
2004-08-06 08:24:53 +00:00
John Luke f3b9ce2319 2004-08-06 John Luke <[email protected]>
* outline.cs: add field support

svn path=/trunk/mcs/; revision=31969
2004-08-06 05:30:58 +00:00
Atsushi Eno a865c14e9c 2004-08-06 Atsushi Enomoto <[email protected]>
* DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.

2004-08-05  Atsushi Enomoto  <[email protected]>

	* XmlConstants.cs : Added constants for "msprop" support.
	* DataSet.cs : ExtendedProperties should be written in the schema.
	  This fixes bug #61233.

svn path=/branches/mono-1-0/mcs/; revision=31968
2004-08-06 02:00:25 +00:00
Atsushi Eno 6b8ec755f9 2004-08-06 Atsushi Enomoto <[email protected]>
* DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.

svn path=/trunk/mcs/; revision=31967
2004-08-06 01:48:25 +00:00
Miguel de Icaza 180e9850f1 Add s390x
svn path=/trunk/mono/; revision=31966
2004-08-05 23:28:29 +00:00
Miguel de Icaza 7b8cf5c7af Remove removed files
svn path=/trunk/mono/; revision=31961
2004-08-05 22:43:05 +00:00
Bernie Solomon 916a956992 2004-08-05 Bernie Solomon <[email protected]>
* interp.c: (mono_interp_init) use g_thread_supported
	to stop multiple g_thread_init calls.
	Also attach domain to thread like mono_jit_init

svn path=/trunk/mono/; revision=31959
2004-08-05 22:28:05 +00:00
Miguel de Icaza e7006ecdeb update
svn path=/trunk/mcs/; revision=31958
2004-08-05 22:09:46 +00:00
Miguel de Icaza fa41b5bc6b 1.1.1
svn path=/trunk/mono/; revision=31957
2004-08-05 22:08:04 +00:00
Peter Dennis Bartok b332b45bed - Attempted fix for reparenting problems
svn path=/trunk/mcs/; revision=31956
2004-08-05 21:38:02 +00:00
Bernie Solomon ced2f3e901 forgot to use tabs
svn path=/trunk/mono/; revision=31955
2004-08-05 21:16:52 +00:00
Bernie Solomon d786edddc5 2004-08-05 Bernie Solomon <[email protected]>
* mini-sparc.c: redo change, make mono_arch_cpu_init call
	mono_arch_cpu_optimizazions so sparcv9 is initialized when embedded

svn path=/trunk/mono/; revision=31954
2004-08-05 21:12:34 +00:00
Bernie Solomon 45de0d4d05 2004-08-05 Bernie Solomon <[email protected]>
* mini-sparc.c: move detection of V9 to mono_arch_cpu_init
	so it happens when mono is embedded too.

svn path=/trunk/mono/; revision=31953
2004-08-05 20:55:50 +00:00
Martin Baulig fbc517791b Update my entry.
svn path=/trunk/mono/; revision=31951
2004-08-05 18:31:50 +00:00
Martin Baulig c222eff5a8 Don't crash here.
svn path=/trunk/mcs/; revision=31950
2004-08-05 17:36:14 +00:00
Duncan Mak 8baec9ec4d (TakesSingleByteArgument): Add this back.
svn path=/trunk/mcs/; revision=31949
2004-08-05 17:26:13 +00:00
Duncan Mak 94c09fe29c Forgot to add OpCodeNames to the build.
svn path=/trunk/mcs/; revision=31948
2004-08-05 17:23:46 +00:00
Martin Baulig 9e311eed70 2004-08-05 Martin Baulig <[email protected]>
* test-154.cs: Added test case for #59429.

svn path=/trunk/mcs/; revision=31947
2004-08-05 17:23:24 +00:00
Martin Baulig aad7dd045e 2004-08-05 Martin Baulig <[email protected]>
* flowanalysis.cs (FlowBranching.UsageVector.MergeJumpOrigins):
	Fix bug #59429.

svn path=/trunk/mcs/; revision=31946
2004-08-05 17:22:43 +00:00
Martin Baulig 45b673a2f0 New generics test.
svn path=/trunk/mcs/; revision=31945
2004-08-05 17:00:02 +00:00
Duncan Mak 5f2e43356f * OpCodes.cs: Instead pushing the data onto the stack when each OpCode
is initialized, pack the data into 2 ints and store only that.
Furthermore, the names of each OpCode are stored in a separate string
array in the new OpCodeNames class.

* OpCodeNames.cs: The names of each OpCode are moved here to delay the
initialization of the strings, as they are not used frequently.

* OpCode.cs: Rewrote this to take in everything as 2 ints.

svn path=/trunk/mcs/; revision=31944
2004-08-05 16:59:36 +00:00
Sebastien Pouliot 1bd3862997 2004-08-05 Sebastien Pouliot <[email protected]>
* Assembly.cs: Added new fields for CAS to match the runtime (v23).

svn path=/trunk/mcs/; revision=31943
2004-08-05 16:57:16 +00:00
Sebastien Pouliot 62cd7e4f1f 2004-08-05 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Added a new icall, getDomainByID, to get the an
	AppDomain using it's Id. Completed SetAppDomainPolicy.
	* Environment.cs: Bumped mono_corlib_version to 23.

svn path=/trunk/mcs/; revision=31942
2004-08-05 16:55:24 +00:00
Bernie Solomon 59f8128700 2004-08-05 Bernie Solomon <[email protected]>
* interp.c: (mono_interp_init) use g_thread_supported
	to stop multiple g_thread_init calls

svn path=/trunk/mono/; revision=31941
2004-08-05 16:54:45 +00:00
Sebastien Pouliot c6161999b0 2004-08-05 Sebastien Pouliot <[email protected]>
* appdomain.c: Bumped MONO_CORLIB_VERSION to 23. Added new icall
	ves_icall_System_AppDomain_getDomainByID to get an AppDomain by Id.
	* domain-internals.h: icall declaration.
	* icall.c: icall registration.
	* object-internals.h: New fields in MonoAssembly for CAS.

svn path=/trunk/mono/; revision=31940
2004-08-05 16:54:41 +00:00
Duncan Mak 04f9de7dd9 * cil-opcodes.xml:
* opcode.def: Rename "stelem" to "stelem.any" and "ldelem" to "ldelem.any".

* verify.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to CEE_LDELEM_ANY.

* mini.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to CEE_LDELEM_ANY.

r=lupus

svn path=/trunk/mono/; revision=31939
2004-08-05 16:31:52 +00:00
Sebastien Pouliot 30efeb9bcd 2004-08-05 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Added Equals/GetHashCode for NET_2_0.
	* SecurityPermissionAttribute.cs: Added new BindingRedirects property
	for NET_2_0.

svn path=/trunk/mcs/; revision=31938
2004-08-05 15:58:54 +00:00
Martin Baulig b02c2793e3 2004-08-05 Martin Baulig <[email protected]>
* ecore.cs (FieldExpr.DoResolveLValue): If we're resolving a field
	initializer, the current type is just the TypeBuilder, not the
	instantiated generic type.
	(FieldExpr.IsFieldInitializer): New public property.

svn path=/trunk/mcs/; revision=31937
2004-08-05 14:18:47 +00:00
Paolo Molaro fdb5081b07 Thu Aug 5 17:11:44 CEST 2004 Paolo Molaro <[email protected]>
* reflection.c: fix to deal with object[] arrays in custom ctors
	(bug #62550).

svn path=/trunk/mono/; revision=31936
2004-08-05 14:13:16 +00:00
Sachin Kumar 70767c3721 Added new tests for Operators
svn path=/trunk/mcs/; revision=31935
2004-08-05 14:12:33 +00:00
Paolo Molaro a35153b396 Thu Aug 5 17:11:44 CEST 2004 Paolo Molaro <[email protected]>
* reflection.c: fix to deal with object[] arrays in custom ctors
	(bug #62550).

svn path=/branches/mono-1-0/mono/; revision=31934
2004-08-05 14:11:06 +00:00
Martin Baulig 71a3e8e802 2004-08-05 Martin Baulig <[email protected]>
* class.c (mono_class_array_element_size): Added support for
	generic instances and correctly handle "recursive" types.

svn path=/trunk/mono/; revision=31933
2004-08-05 14:03:24 +00:00
Zoltan Varga 572ee3e862 2004-08-05 Zoltan Varga <[email protected]>
* mini-amd64.c (emit_move_return_value): Move return value for normal
	calls too.

svn path=/trunk/mono/; revision=31932
2004-08-05 13:56:18 +00:00
Martin Baulig 52af6027c1 2004-08-05 Martin Baulig <[email protected]>
* mini.c (ret_type_to_call_opcode): Don't use a `t' variable for
	`type->type'; just modify `type' itself when dealing with enums
	and generic instances.
	(check_call_signature): Make `simple_type' a `MonoType *'.

svn path=/trunk/mono/; revision=31931
2004-08-05 13:50:31 +00:00
Martin Baulig e01886448b 2004-08-05 Martin Baulig <[email protected]>
* class.cs (TypeContainer.EmitFieldInitializers): Set
	`ec.IsFieldInitializer' while resolving the FieldExpr.

	* ecore.cs (FieldExpr.DoResolveLValue): If we're resolving a field
	initializer, the current type is just the TypeBuilder, not the
	instantiated generic type.

svn path=/trunk/mcs/; revision=31930
2004-08-05 13:48:17 +00:00
Sanja Gupta 99cb39366a ChangeLog: Updated ChangeLog.
System.Web.dll.sources: Added new interfaces to System.Web.UI.WebControls and
        a class to System.Web.UI.

svn path=/trunk/mcs/; revision=31928
2004-08-05 13:08:06 +00:00
Sanja Gupta 91fdf47471 ChangeLog: Updated ChangeLog.
IButtonControl.cs:
ICallbackContainer.cs:
ICompositeControlDesignerAccessor.cs:
IPostBackContainer.cs: Added new interfaces.

svn path=/trunk/mcs/; revision=31927
2004-08-05 13:04:38 +00:00
Sanja Gupta 5df2a6ed5e ChangeLog: Updated ChangeLog.
PostBackOptions.cs: Added new file and implemented the class.

svn path=/trunk/mcs/; revision=31926
2004-08-05 13:00:30 +00:00
Anirban Bhattacharjee e5c41d9c85 2004-08-05 Anirban Bhattacharjee <[email protected]>
* InterfaceA.vb: Test now covers all Interface members.

svn path=/trunk/mcs/; revision=31925
2004-08-05 12:32:22 +00:00
Anirban Bhattacharjee a31c1f0787 2004-08-05 Anirban Bhattacharjee <[email protected]>
* mb-parser,jay: Implements clause added to Event grammar

svn path=/trunk/mcs/; revision=31924
2004-08-05 12:21:37 +00:00
Anirban Bhattacharjee 6a6be0b368 2004-08-05 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Interface event declaration grammar rewritten

svn path=/trunk/mcs/; revision=31923
2004-08-05 12:12:35 +00:00
Zoltan Varga 01cb131e32 2004-08-05 Zoltan Varga <[email protected]>
* mini.c: Use OP_PADD to add offsets to addresses.

	* mini-amd64.h: Disable SIGSEGV_ON_ALTSTACK.

svn path=/trunk/mono/; revision=31922
2004-08-05 12:08:03 +00:00
Sebastien Pouliot 8bd9f0d726 2004-08-05 Sebastien Pouliot <[email protected]>
* StackTrace.cs: Added missing exceptions. Added globalization. Now
	using StringBuilder in ToString (fusioned FrameToString).

svn path=/trunk/mcs/; revision=31921
2004-08-05 11:42:26 +00:00
Sebastien Pouliot 9cc68b836e 2004-08-05 Sebastien Pouliot <[email protected]>
* StackFrameTest.cs: Added new unit tests to validate exceptions.
	Converted existing unit tests to NUnit 2.2.

svn path=/trunk/mcs/; revision=31920
2004-08-05 11:41:03 +00:00
Atsushi Eno 1fee0497c8 2004-08-05 Atsushi Enomoto <[email protected]>
* XmlConstants.cs : Added constants for "msprop" support.
	* DataSet.cs : ExtendedProperties should be written in the schema.
	  This fixes bug #61233.

svn path=/trunk/mcs/; revision=31919
2004-08-05 11:18:12 +00:00
Sanja Gupta 2ecf64849f ChangeLog: Updated ChangeLog.
IHttpSessionState.cs:
ISessionIDModule.cs:
ISessionStateItemCollection.cs: Added new interfaces.

svn path=/trunk/mcs/; revision=31918
2004-08-05 10:42:53 +00:00
Marek Safar 3c48c97073 2004-08-05 Marek Safar <[email protected]>
* mcs.exe.sources: $(EXTRA_SOURCES) are now here to avoid
	multi platforms problem.

	* compiler.csproj: Included shared files.

svn path=/trunk/mcs/; revision=31917
2004-08-05 10:34:29 +00:00
Geoff Norton cea7136c5d Fix a missing \ to resolve make clean in HEAD.
Approved by miguel.

svn path=/trunk/mono/; revision=31916
2004-08-05 04:18:13 +00:00
Neale Ferguson bbdba13c4f Fix conv.u8 description
svn path=/trunk/mono/; revision=31915
2004-08-05 01:57:22 +00:00
Sebastien Pouliot 9b147a8f7c 2004-08-04 Sebastien Pouliot <[email protected]>
* SecurityAction.cs: Added new "Choice" enums for NET_2_0. Removed old
	and empty XML comments.

svn path=/trunk/mcs/; revision=31914
2004-08-05 00:26:48 +00:00
Sebastien Pouliot 6e9dbfba63 2004-08-04 Sebastien Pouliot <[email protected]>
* StackTrace.cs: Implemented GetFrames as public virtual for NET_2_0
	and internal for NET_1_0/NET_1_1 so it can be used for CAS. Removed
	XML documentation and mono-ized the source code.

svn path=/trunk/mcs/; revision=31913
2004-08-05 00:24:21 +00:00
Zoltan Varga 56da9784f1 2004-08-05 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Allocate
	helper methods using the code manager.

svn path=/trunk/mono/; revision=31912
2004-08-04 23:53:14 +00:00
Bernie Solomon a1a19fd38d 2004-08-04 Bernie Solomon <[email protected]>
* mini-sparc.c (mono_arch_emit_epilog): fix check
	for folding last op into restore instruction

svn path=/trunk/mono/; revision=31911
2004-08-04 23:28:10 +00:00
Zoltan Varga 2c24183d02 2004-08-05 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Allocate
	helper methods using the code manager.

svn path=/trunk/mono/; revision=31910
2004-08-04 23:26:32 +00:00
Zoltan Varga 30909f6055 2004-08-05 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_get_throw_exception): Fix maximum length.

	* mini-amd64.c (mono_arch_allocate_vars): Fix tls offset detection.

svn path=/trunk/mono/; revision=31909
2004-08-04 22:50:40 +00:00
Sebastien Pouliot 8aee11a6cc 2004-08-04 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added System.Security.Permissions/
	GacIdentityPermission.cs and GacIdentityPermissionAttribute.cs, and
	System.Security.Policy/Gac.cs and GacMembershipCondition.cs to NET_2_0
	* corlib_test.dll.sources: Added /Test/System.Security.Policy/
	GacMembershipConditionTest.cs, GacTest.cs to unit tests.

svn path=/trunk/mcs/; revision=31908
2004-08-04 22:24:57 +00:00
Zoltan Varga 5b68e0bacc 2004-08-05 Zoltan Varga <[email protected]>
* assembly.c: Fix warnings.

svn path=/trunk/mono/; revision=31907
2004-08-04 22:20:26 +00:00
Sebastien Pouliot a0534b3aaf 2004-08-04 Sebastien Pouliot <[email protected]>
* GacIdentityPermission.cs: New. for NET_2_0
	* GacIdentityPermissionAttribute.cs: New. for NET_2_0

svn path=/trunk/mcs/; revision=31906
2004-08-04 22:19:23 +00:00
Sebastien Pouliot 37246e9536 2004-08-04 Sebastien Pouliot <[email protected]>
* Gac.cs: New. Implemented Gac evidence for NET_2_0.
	* GacMembershipCondition.cs: New. for NET_2_0.
	* ZoneMembershipCondition.cs: Added missing "class" attribute in ToXml.

svn path=/trunk/mcs/; revision=31905
2004-08-04 22:16:03 +00:00
Sebastien Pouliot 7b75fde1e2 2003-08-04 Sebastien Pouliot <[email protected]>
* SecurityManagerTest.cs: Added more unit tests.

svn path=/trunk/mcs/; revision=31904
2004-08-04 22:11:19 +00:00
Sebastien Pouliot 6619acec63 2004-08-04 Sebastien Pouliot <[email protected]>
* GacMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.
	* GacTest.cs: New. Unit tests in NUnit 2.2 format.

svn path=/trunk/mcs/; revision=31903
2004-08-04 22:08:45 +00:00
Marek Safar 8696ab81ce 2004-08-04 Marek Safar <[email protected]>
Fix bug 60333, 55971 in the more general way
	* attribute.cs (Attribute.GetAttributeArgumentExpression):
	Added arg_type argument for constant conversion.
	(Attribute.Resolve): Reuse GetAttributeArgumentExpression.

svn path=/trunk/mcs/; revision=31902
2004-08-04 21:21:50 +00:00
Peter Dennis Bartok 635027ee33 - Fixed Invalidation bug (calculated wrong client area)
- Added ClientSize setter

svn path=/trunk/mcs/; revision=31901
2004-08-04 21:14:26 +00:00
Peter Dennis Bartok 4e96a17f37 - Added AutoScale properties
svn path=/trunk/mcs/; revision=31900
2004-08-04 21:13:47 +00:00
Peter Dennis Bartok 9d40a901bf - Added latest files
svn path=/trunk/mcs/; revision=31899
2004-08-04 21:13:16 +00:00
Neale Ferguson ea0385c659 Further 64-bit S/390 updates
svn path=/trunk/mono/; revision=31898
2004-08-04 20:43:11 +00:00
Duncan Mak 290e861b78 Add a hack to work around the issue with a 2.0 corlib.
svn path=/branches/mono-1-0/mcs/; revision=31897
2004-08-04 20:30:00 +00:00
Duncan Mak d4005bed02 Add a hack to work around the issue with a 2.0 corlib.
svn path=/trunk/mcs/; revision=31896
2004-08-04 20:26:33 +00:00
Peter Dennis Bartok 61ebd1f0a5 - Added Invalidate handling
svn path=/trunk/mcs/; revision=31895
2004-08-04 20:11:24 +00:00
Miguel de Icaza 30a4417a34 1.0.1
svn path=/branches/mono-1-0/mcs/; revision=31890
2004-08-04 19:59:05 +00:00
Miguel de Icaza 9753b620ed Add
svn path=/trunk/mcs/; revision=31889
2004-08-04 19:46:09 +00:00
Miguel de Icaza 20b780499e 2004-08-04 Marek Safar <[email protected]>
Fix bug #59760
	* class.cs (TypeContainer ): New inner classes MethodArrayList,

svn path=/trunk/mcs/; revision=31888
2004-08-04 19:45:54 +00:00
Miguel de Icaza 11d2121668 Add
svn path=/branches/mono-1-0/mcs/; revision=31887
2004-08-04 19:45:36 +00:00
nobody 84b709f111 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=31886
2004-08-04 19:45:36 +00:00
Miguel de Icaza 534760e119 2004-08-04 Miguel de Icaza <[email protected]>
* cfold.cs: Synchronize the folding with the code in expression.cs
	Binary.DoNumericPromotions for uint operands.

svn path=/branches/mono-1-0/mcs/; revision=31885
2004-08-04 19:45:05 +00:00
Miguel de Icaza 93a3c2a032 Add
svn path=/trunk/mcs/; revision=31884
2004-08-04 19:44:06 +00:00
Marek Safar 7778ab8a68 2004-08-04 Marek Safar <[email protected]>
Fix bug #59760
	* class.cs (TypeContainer ): New inner classes MethodArrayList,
	OperatorArrayList, MethodCoreArrayList for typecontainer
	containers. Changed class member types to these new types.
	(MethodArrayList.DefineMembers): Added test for CS0659.

svn path=/trunk/mcs/; revision=31883
2004-08-04 19:37:26 +00:00
Sebastien Pouliot 59b9c82b33 2004-08-04 Sebastien Pouliot <[email protected]>
* Zone.cs: (Very) basic implementation of CreateFromUrl so we can
	create a Zone evidence using an assembly location (file://...).
	* ZoneMembershipCondition.cs: Fixed implementation wrt new unit tests.

svn path=/trunk/mcs/; revision=31882
2004-08-04 19:33:56 +00:00
Sebastien Pouliot cbef446bea 2004-08-04 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added /Test/System.Security.Policy/
	ZoneMembershipConditionTest.cs to unit tests.

svn path=/trunk/mcs/; revision=31879
2004-08-04 18:55:36 +00:00
Sebastien Pouliot 6a0c3b591a 2004-08-03 Sebastien Pouliot <[email protected]>
* ZoneMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.

svn path=/trunk/mcs/; revision=31878
2004-08-04 18:53:52 +00:00
John Luke 0b64d850d3 2004-08-04 John Luke <[email protected]>
* monop.cs: add PrintUsage so that it is reused in the few
        places it is needed, add PrintHelp to display --help information

svn path=/trunk/mcs/; revision=31877
2004-08-04 17:20:33 +00:00
Gonzalo Paniagua Javier 0e628c1783 same fix as HEAD
svn path=/branches/mono-1-0/mcs/; revision=31875
2004-08-04 17:00:29 +00:00
Miguel de Icaza d37940b471 Flush
svn path=/trunk/mcs/; revision=31874
2004-08-04 16:59:58 +00:00
Gonzalo Paniagua Javier 5576e9532e 2004-08-04 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: don't invoke the callback if the period changes before the
	due time. Fixes bug #62421.

svn path=/trunk/mcs/; revision=31873
2004-08-04 16:58:52 +00:00
Miguel de Icaza b5ec4aef9b 2004-08-04 Miguel de Icaza <[email protected]>
* attribute.cs: Revert patch from Raja, it introduced a regression
	while building Blam-1.2.1 (hard to isolate a test case).

svn path=/trunk/mcs/; revision=31872
2004-08-04 16:40:27 +00:00
Gonzalo Paniagua Javier 51e1c6d00c 2004-08-04 Gonzalo Paniagua Javier <[email protected]>
* HtmlTextWriterTag.cs: readded author name.

svn path=/trunk/mcs/; revision=31871
2004-08-04 16:11:57 +00:00
Marek Safar e4cadfcaf4 2004-08-04 Marek Safar <[email protected]>
Fix for #55382
	* class.cs:
	(TypeContainer.Define): Renamed to DefineContainerMembers because of
	name collision.
	(MethodCore.parent_method): New member. The method we're overriding
	if this is an override method.
	(MethodCore.CheckBase): Moved from Method class and made common.
	(MethodCore.CheckMethodAgainstBase): Moved from MemberBase and made
	private.
	(MethodCore.CheckForDuplications): New abstract method. For custom
	member duplication search in a container
	(MethodCore.FindOutParentMethod): New abstract method. Gets parent
	method and its return type.
	(Event.conflict_symbol): New member. Symbol with same name in the
	parent class.

	* decl.cs:
	(MemberCache.FindMemberWithSameName): New method. The method
	is looking for conflict with inherited symbols.

svn path=/trunk/mcs/; revision=31870
2004-08-04 16:06:39 +00:00
Anirban Bhattacharjee fad57cbdae 2004-08-04 Anirban Bhattacharjee <[email protected]>
* class.cs: Introduced check for valid interface name in Implements clause.

svn path=/trunk/mcs/; revision=31868
2004-08-04 14:52:28 +00:00
Marek Safar 6094dea7af 2004-08-04 Marek Safar <[email protected]>
* 62 new error tests.

svn path=/trunk/mcs/; revision=31867
2004-08-04 14:04:42 +00:00
Jambunathan K babecb6d8b * RegionDirectivesC5.vb:
* ConditionalCompilation9.vb:
* ConditionalCompilation10.vb: Removed all these redundant test
  cases

svn path=/trunk/mcs/; revision=31866
2004-08-04 14:00:56 +00:00
Jambunathan K e87c729e76 Included the newly added pre-processor test cases
svn path=/trunk/mcs/; revision=31865
2004-08-04 13:52:13 +00:00
Jambunathan K a571c38cb9 * mb-tokenizer.cs:
* mb-parser.jay:

3) Corrected 'imports_term' - section 6.3.1 & 6.3.2 of VB.NET
   spec.

4) Introduced opt_argument_list - section 5.2 of VB.NET spec

5) Corrected namespace_declaration - section 6.4.1 of VB.NET spec

svn path=/trunk/mcs/; revision=31864
2004-08-04 13:09:02 +00:00
Dick Porter c4aca7db67 2004-08-04 Dick Porter <[email protected]>
* Socket.cs: Update Connected state in Select and Poll; this is
	when we find out that non-blocking Connects succeed.  Fixes bug
	62398.

svn path=/branches/mono-1-0/mcs/; revision=31863
2004-08-04 12:41:50 +00:00
Dick Porter 32ba645fab 2004-08-04 Dick Porter <[email protected]>
* Socket.cs: Update Connected state in Select and Poll; this is
	when we find out that non-blocking Connects succeed.  Fixes bug
	62398.

svn path=/trunk/mcs/; revision=31862
2004-08-04 12:41:49 +00:00
Sanja Gupta 57e6589f97 ConnectionPointType.cs PartChromeState.cs
PartChromeType.cs PersonalizationScope.cs
WebPartExportMode.cs WebPartHelpMode.cs: Minor, coding style.

svn path=/trunk/mcs/; revision=31861
2004-08-04 12:05:41 +00:00
Sebastien Pouliot b609d948eb 2004-08-04 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermission.cs: NoZone is a subset of all SecurityZone.

svn path=/trunk/mcs/; revision=31860
2004-08-04 11:52:24 +00:00
Sebastien Pouliot 722a8562be 2003-08-04 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionTest.cs: Added tests to check that NoZone is a
	subset of every SecurityZone.

svn path=/trunk/mcs/; revision=31859
2004-08-04 11:50:02 +00:00
Sanja Gupta cf8feb4b23 AdType.cs AutoCompleteType.cs ContentDirection.cs
DataControlCellType.cs DataControlRowState.cs
DataControlRowType.cs DetailsViewMode.cs
DynamicImageParameterMode.cs FormViewMode.cs HotSpotMode.cs
ImageFieldMode.cs LiteralMode.cs LogoutAction.cs
Orientation.cs PagerButtons.cs PathDirection.cs ScrollBars.cs
SiteMapNodeItemType.cs SiteMapNodeType.cs SiteMapViewType.cs
SortDirection.cs TableCaptionAlign.cs TableHeaderScope.cs
TableViewMode.cs TreeNodeSelectAction.cs TreeNodeTypes.cs
TreeViewImageSet.cs WizardStepType.cs: Minor, style check.

svn path=/trunk/mcs/; revision=31858
2004-08-04 11:14:28 +00:00
Sachin Kumar ec23c7006a Makefile: Create clean set of test results log files
svn path=/trunk/mcs/; revision=31857
2004-08-04 11:00:12 +00:00
Sanja Gupta 602b3b0d0e ImageScaleMode.cs:
ImageType.cs:
StorageType.cs: Minor, coding guidelines.

svn path=/trunk/mcs/; revision=31856
2004-08-04 09:50:58 +00:00
Umadevi S 18599ae4de 2004-08-04 Umadevi S ([email protected])
* OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.

svn path=/trunk/mcs/; revision=31855
2004-08-04 09:50:50 +00:00
Umadevi S 1d8aca45dd 2004-08-04 Umadevi S ([email protected])
* OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.

svn path=/branches/mono-1-0/mcs/; revision=31854
2004-08-04 09:47:55 +00:00
Sanja Gupta 559cc96bf4 WmlPostFieldType.cs: Minor, coding guidelines.
svn path=/trunk/mcs/; revision=31853
2004-08-04 09:47:37 +00:00
Sanja Gupta d0e3f72738 ChangeLog: Updated ChangeLog.
HtmlTextWriteAttribute.cs:
HtmlTextWriterStyle.cs:
HtmlTextWriterTag.cs: Added .Net 2.0 enumerations
CompilationMode.cs:
ConflictOptions.cs:
DataSourceCacheExpiry.cs:
DataSourceCapabilities.cs:
DataSourceOperation.cs:
TemplateContentType.cs:
TemplateInstance.cs:
UrlTypes.cs:
VerificationConditionalOperator.cs:
VerificationReportLevel.cs:
VerificationRule.cs:
XhtmlMobileDocType.cs: Added enumerations.

svn path=/trunk/mcs/; revision=31852
2004-08-04 09:44:29 +00:00
Jambunathan K 5437fa41de * mb-tokenizer.cs:
* mb-parser.jay:

1) Fixed the Attributes grammar starting with
   opt_attributes. Introduced new rules starting with
   opt_global_attributes rule - section 5.2 of VB.NET spec

2) Introduced new Tokens that correspond to reserved but unused
   VB.NET keywords. Added some comments as appropriate in the
   keywords hashtable of tokenizer - section 2.3 of VB.NET spec.

svn path=/trunk/mcs/; revision=31851
2004-08-04 09:32:03 +00:00
Jochen Wezel 4eedf9cd55 Reenabled parts of test scenarios which had run into trouble in the past
svn path=/trunk/mcs/; revision=31847
2004-08-04 08:08:04 +00:00
Umadevi S 4a34266eaa 2004-08-04 Umadevi S ([email protected])
* OdbcDataReader.cs - Fixed bug 61405 - Handling smallint column type.

svn path=/trunk/mcs/; revision=31846
2004-08-04 08:01:44 +00:00
Umadevi S 433392af26 2004-08-04 Umadevi S ([email protected])
* OdbcDataReader.cs - Fixed bug 61405 - Handling smallint column type.

svn path=/branches/mono-1-0/mcs/; revision=31845
2004-08-04 07:54:16 +00:00
Anirban Bhattacharjee 782b78b23d 2004-08-04 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Added support for modifiers and attributes in interface member grammar

svn path=/trunk/mcs/; revision=31844
2004-08-04 06:03:13 +00:00
Anirban Bhattacharjee 930a78f892 2004-08-04 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Property types made optional

svn path=/trunk/mcs/; revision=31843
2004-08-04 05:38:37 +00:00
Neale Ferguson 1cf10953e6 Enable S/390 64-bit JIT
svn path=/trunk/mono/; revision=31842
2004-08-04 03:13:17 +00:00
Neale Ferguson 365eb7b043 Update comments
svn path=/trunk/mono/; revision=31841
2004-08-04 02:57:51 +00:00
Neale Ferguson e54afad344 S/390 64-bit support
tailc processing fix for S/390 32-bit

svn path=/trunk/mono/; revision=31840
2004-08-04 02:54:52 +00:00
Martin Baulig e5ff6b9800 2004-08-04 Martin Baulig <[email protected]>
* codegen.cs (VariableStorage.EmitLoadAddress): New public method.

	* statement.cs (Foreach.EmitFinally): Make this work for valuetypes.

svn path=/trunk/mcs/; revision=31839
2004-08-03 23:11:45 +00:00
Jordi Mas i Hernandez 3866706606 fixes spelling mistake
svn path=/trunk/mcs/; revision=31838
2004-08-03 23:09:02 +00:00
Martin Baulig dc2576955e 2004-08-04 Martin Baulig <[email protected]>
* List.cs (List<T>.Enumerator): Made this a struct.
	(List<T>.GetEnumerator): The public method now returns the
	`Enumerator' struct.

svn path=/trunk/mcs/; revision=31837
2004-08-03 23:08:33 +00:00
Martin Baulig d43d9cd06c 2004-08-04 Martin Baulig <[email protected]>
* Makefile (test-generic-3): New target to run all the generic
	tests.

svn path=/trunk/mcs/; revision=31836
2004-08-03 22:32:41 +00:00
Martin Baulig 84132662fc 2004-08-04 Martin Baulig <[email protected]>
* class.c
	(mono_type_get_name_recurse): Added `gboolean include_arity'
	argument specifying whether or not we should include the generic
	arity in the type name.
	(_mono_type_get_name): New static function.
	(mono_class_setup_vtable): If we're a generic instance, don't
	include the generic arity in the names of explicit method
	implementations.

svn path=/trunk/mono/; revision=31835
2004-08-03 22:24:46 +00:00
Marek Safar bb8073c9db Removed wrong files
svn path=/trunk/mcs/; revision=31834
2004-08-03 21:57:02 +00:00
Marek Safar 189d928f73 2004-08-03 Marek Safar <[email protected]>
* report.cs (Message): New enum for better error, warning reference in
	the code.
	(MessageData): New inner abstract class. It generally handles printing of
	error and warning messages.
	Removed unused Error, Warning, Message methods.

svn path=/trunk/mcs/; revision=31833
2004-08-03 21:55:03 +00:00
Martin Baulig 53362b055c 2004-08-03 Martin Baulig <[email protected]>
* class.cs (MethodData.Define): If we're an explicit
	implementation, remove the generic arity from the type name.

svn path=/trunk/mcs/; revision=31830
2004-08-03 20:46:22 +00:00
Marek Safar 23b02e2482 2004-08-03 Marek Safar <[email protected]>
Fix for cs0592-8.cs test
	* attribute.cs
	(Attributable.ValidAttributeTargets): Made public.
	(Attribute.ExplicitTarget): New member for explicit target value.
	(Attribute.CheckTargets): Now we translate explicit attribute
	target to Target here.

svn path=/trunk/mcs/; revision=31829
2004-08-03 20:14:15 +00:00
Martin Baulig f322e4e9ef 2004-08-03 Martin Baulig <[email protected]>
* dump.c (method_dor_to_token): Moved to get.c and made public.

	* get.c (get_method_override): New public function.

	* main.c (dis_code): Added `.override' for override methods.

svn path=/trunk/mono/; revision=31828
2004-08-03 20:06:29 +00:00
Martin Baulig f66aa393c5 2004-08-03 Martin Baulig <[email protected]>
* class.c (mono_type_get_name_recurse): Enclose the generic type
	arguments in `<', '>'.

svn path=/trunk/mono/; revision=31827
2004-08-03 20:05:08 +00:00
Ben Maurer dc0c2e8e5b 2004-08-03 Ben Maurer <[email protected]>
* test-283.cs:  for 62275.

svn path=/branches/mono-1-0/mcs/; revision=31826
2004-08-03 19:48:06 +00:00
nobody e5aa23189b This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=31825
2004-08-03 19:48:06 +00:00
Ben Maurer 9f9e45ff45 2004-08-03 Ben Maurer <[email protected]>
* ecore.cs (MethodGroupExpr): new IsBase property.

	* expression.cs (BaseAccess): Set IsBase on MethodGroupExpr.

	* delegate.cs (DelegateCreation): store a MethodGroupExpr
	rather than an instance expr.

	(DelegateCreation.Emit): Use the method group rather than
	the instance expression. Also, if you have base.Foo as the
	method for a delegate, make sure to emit ldftn, not ldftnvirt.

	(ResolveMethodGroupExpr): Use the MethodGroupExpr.

	(NewDelegate.DoResolve): Only check for the existance of Invoke
	if the method is going to be needed. Use MethodGroupExpr.

	(NewDelegate.Emit): Remove, DelegateCreation implements this.

svn path=/branches/mono-1-0/mcs/; revision=31824
2004-08-03 19:33:29 +00:00
Ben Maurer 09ef4df55e 2004-08-03 Ben Maurer <[email protected]>
* ecore.cs (MethodGroupExpr): new IsBase property.

	* expression.cs (BaseAccess): Set IsBase on MethodGroupExpr.

	* delegate.cs (DelegateCreation): store a MethodGroupExpr
	rather than an instance expr.

	(DelegateCreation.Emit): Use the method group rather than
	the instance expression. Also, if you have base.Foo as the
	method for a delegate, make sure to emit ldftn, not ldftnvirt.

	(ResolveMethodGroupExpr): Use the MethodGroupExpr.

	(NewDelegate.DoResolve): Only check for the existance of Invoke
	if the method is going to be needed. Use MethodGroupExpr.

	(NewDelegate.Emit): Remove, DelegateCreation implements this.

svn path=/trunk/mcs/; revision=31823
2004-08-03 19:32:57 +00:00
Ben Maurer 77c55d78d5 2004-08-03 Ben Maurer <[email protected]>
* test-283.cs: for 62275.

svn path=/trunk/mcs/; revision=31822
2004-08-03 19:32:12 +00:00
Sebastien Pouliot 3a2c9fdf6a *** empty log message ***
svn path=/trunk/mcs/; revision=31821
2004-08-03 18:48:45 +00:00
Sebastien Pouliot 0718f687d5 2004-08-03 Sebastien Pouliot <[email protected]>
* CriticialFinalizerObject.cs: Moved to System.Runtime.
	ConstrainedExecution to match Fx 2.0 beta 1.

svn path=/trunk/mcs/; revision=31820
2004-08-03 18:48:22 +00:00
Sebastien Pouliot a9ed4563e3 2004-08-03 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added PermissionSetCollection and SecureString
	in System.Security. Moved CriticalFinalizerObject to System.Runtime.
	ConstrainedExecution.

svn path=/trunk/mcs/; revision=31819
2004-08-03 18:46:18 +00:00
Sebastien Pouliot 9a778ca428 2004-08-03 Sebastien Pouliot <[email protected]>
* PermissionSetCollection.cs: New class in Fx 2.0.
	* SecureString.cs: New class in Fx 2.0. Not yet encrypted.

svn path=/trunk/mcs/; revision=31818
2004-08-03 18:43:50 +00:00
Sebastien Pouliot fe8e7c71e7 2004-08-03 Sebastien Pouliot <[email protected]>
* CriticalFinalizerObject.cs: Moved from System.Runtime.Reliability to
	match Fx 2.0 beta 1.

svn path=/trunk/mcs/; revision=31817
2004-08-03 18:36:01 +00:00
Sebastien Pouliot 2e6376961d 2004-08-03 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermission.cs: Fixed buglets wrt new unit tests. Added
	globalization to exceptions.

svn path=/trunk/mcs/; revision=31816
2004-08-03 18:23:50 +00:00
Ben Maurer 60bf77af62 fix
svn path=/trunk/mcs/; revision=31815
2004-08-03 18:22:49 +00:00
Sebastien Pouliot e45d6f09ee 2004-08-03 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Added /Test/System.Security.Permissions/
	ZoneIdentityPermissionTest.cs to unit tests.

svn path=/trunk/mcs/; revision=31814
2004-08-03 18:21:53 +00:00
Sebastien Pouliot 6bb4b366c5 2003-08-03 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionTest.cs: New. NUnit 2.2 format.

svn path=/trunk/mcs/; revision=31813
2004-08-03 18:19:31 +00:00
Sebastien Pouliot 28e3852214 2004-08-03 Sebastien Pouliot <[email protected]>
* CodeGroup.cs: Added PolicyLevel parameter to internal
	constructor. Added support for attribute PermissionSetName in
	FromXml.
	* FileCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor.
	* FirstMatchCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor.
	* NetCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor.
	* PolicyLevel.cs: Throw a PolicyException when asked to save a
	AppDomain policy. Use new CodeGroup constructor with "this".
	* UnionCodeGroup.cs: Added PolicyLevel parameter to internal
	constructor. Added Copy(bool) to copy, or not, the childs.

svn path=/trunk/mcs/; revision=31812
2004-08-03 15:59:42 +00:00
Ben Maurer f4a732086a 2004-08-03 Ben Maurer <[email protected]>
* unsafe-9.cs: new test for #62263.

svn path=/branches/mono-1-0/mcs/; revision=31811
2004-08-03 15:45:46 +00:00
Ben Maurer df0a005b59 2004-08-03 Ben Maurer <[email protected]>
* expression.cs: For pointer arith., make sure to use
	the size of the type, not the size of the pointer to
	the type.

svn path=/branches/mono-1-0/mcs/; revision=31810
2004-08-03 15:44:54 +00:00
Ben Maurer 13686008cb 2004-08-03 Ben Maurer <[email protected]>
* unsafe-9.cs: new test for #62263.

svn path=/trunk/mcs/; revision=31809
2004-08-03 15:43:40 +00:00
Ben Maurer 3a10721e04 2004-08-03 Ben Maurer <[email protected]>
* expression.cs: For pointer arith., make sure to use
	the size of the type, not the size of the pointer to
	the type.

svn path=/trunk/mcs/; revision=31808
2004-08-03 15:43:31 +00:00
Sebastien Pouliot d7d607b56d 2004-08-03 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermission.cs: Reordered attributes in ToXml and added
	missing Zone attribute.

svn path=/trunk/mcs/; revision=31807
2004-08-03 15:02:43 +00:00
Paolo Molaro fe215f83a2 Tue Aug 3 17:54:17 CEST 2004 Paolo Molaro <[email protected]>
* gc.c: make GC warning messages use the trace API, they are just
	noise to most of the users.

svn path=/branches/mono-1-0/mono/; revision=31805
2004-08-03 14:55:15 +00:00
Paolo Molaro ff09444aaf Tue Aug 3 17:54:17 CEST 2004 Paolo Molaro <[email protected]>
* gc.c: make GC warning messages use the trace API, they are just
	noise to most of the users.

svn path=/trunk/mono/; revision=31804
2004-08-03 14:54:16 +00:00
Miguel de Icaza 4cd8d82d23 Update with some comments from Zoltan
svn path=/trunk/mono/; revision=31803
2004-08-03 14:36:14 +00:00
Anirban Bhattacharjee 444f45db1f 2004-08-03 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Interface method and property grammar got changed
                         Support for multiple implements in class
        * interface.cs: Interface class has got changed
                        All other interface types have been removed
        * class.cs: Property's Define and CheckBase method changed significantly to be in sync with Interface
        * pending.cs: few related changes
        * attribute.cs: few related changes

svn path=/trunk/mcs/; revision=31802
2004-08-03 13:58:07 +00:00
Paolo Molaro d62e5aabdc Tue Aug 3 16:40:17 CEST 2004 Paolo Molaro <[email protected]>
* gc.c, object.h: mono_gc_handle_*() interface and
	AddrOfPinnedObject fixes. GC handle support even without GC.

svn path=/branches/mono-1-0/mono/; revision=31801
2004-08-03 13:40:21 +00:00
Sanja Gupta cf3e18f829 ChangeLog: Updated ChangeLog.
MembershipSortOptions.cs:
MembershipPasswordFormat.cs:
MembershipOnlineStatus.cs:
MembershipCreateStatus.cs:
CookieProtection.cs: minor modifications.

svn path=/trunk/mcs/; revision=31800
2004-08-03 13:36:46 +00:00
Sanja Gupta 64fa4cc158 ChangeLog: Updated ChangeLog.
SessionStateActionFlags.cs: Added enumeration.

svn path=/trunk/mcs/; revision=31799
2004-08-03 13:30:50 +00:00
Sanja Gupta 6639731abf ChangeLog: Updated ChangeLog.
WmlPostFieldType.cs : Added enumeration

svn path=/trunk/mcs/; revision=31798
2004-08-03 13:24:32 +00:00
Sanja Gupta e1ebe27cd0 ChangeLog: Updated ChangeLog.
ImageScaleMode.cs:
ImageType.cs:
StorageType.cs: Added enumerations.

svn path=/trunk/mcs/; revision=31797
2004-08-03 13:20:56 +00:00
Marek Safar 7c8c8c2b67 2004-08-03 Marek Safar <[email protected]>
Fix for #60722
	* class.cs (Class): Added error CS0502 test.

svn path=/trunk/mcs/; revision=31796
2004-08-03 13:20:19 +00:00
Atsushi Eno 63ef683fdf 2004-08-03 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs,
	  XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
	* XmlNamespaceManager.cs,
	  XmlNodeReader.cs : implemented GetNamespacesInScope().

svn path=/trunk/mcs/; revision=31795
2004-08-03 13:20:17 +00:00
Atsushi Eno b4e63bb741 2004-08-03 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : implemented 2.0 IXmlNamespaceResolver.

svn path=/trunk/mcs/; revision=31794
2004-08-03 13:19:35 +00:00
Sanja Gupta bcc2ebb814 ChangeLog: Updated ChangeLog.
DataControlCellType.cs
DataControlRowType.cs
DataControlRowState.cs
DetailsViewMode.cs
DynamicImageParameterMode.cs
FormViewMode.cs
HotSpotMode.cs
ImageFieldMode.cs
LiteralMode.cs
LogoutAction.cs
Orientation.cs
PagerButtons.cs
PathDirection.cs
ScrollBars.cs
SiteMapNodeItemType.cs
SiteMapNodeType.cs
SiteMapViewType.cs
SortDirection.cs
TableCaptionAlign.cs
TableHeaderScope.cs
TableViewMode.cs
TreeNodeSelectAction.cs
TreeNodeTypes.cs
TreeViewImageSet.cs
WizardStepType.cs: Added enumerations.

svn path=/trunk/mcs/; revision=31793
2004-08-03 13:10:54 +00:00
Sanja Gupta d9b47dcbab ChangeLog: Created ChangeLog
ConnectionPointType.cs : Implemented enumeration.
PartChromeState.cs : Implemented enumeration.
PartChromeType.cs : Implemented enumeration.
PersonalizationScope.cs : Implemented enumeration.
WebPartExportMode.cs : Implemented enumeration.
WebPartHelpMode.cs : Implemented enumeration.

svn path=/trunk/mcs/; revision=31792
2004-08-03 12:51:04 +00:00
Atsushi Eno 0562042171 2004-08-03 Atsushi Enomoto <[email protected]>
* XmlCharacterData.cs,
	  XmlDocument.cs,
	  XmlNodeChangedEventArgs.cs :
	  Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.

svn path=/trunk/mcs/; revision=31791
2004-08-03 11:52:49 +00:00
Jambunathan K f01a725db7 Reworded and Reformatted the Readme
svn path=/trunk/mcs/; revision=31790
2004-08-03 08:27:21 +00:00
Paolo Molaro a03e56f763 Tue Aug 3 11:20:09 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c: mul.ovf.un exception name fix.

svn path=/branches/mono-1-0/mono/; revision=31789
2004-08-03 08:19:01 +00:00
Paolo Molaro 05a5a29312 Tue Aug 3 11:19:07 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c: reg allocator fix.

svn path=/branches/mono-1-0/mono/; revision=31788
2004-08-03 08:17:56 +00:00
Paolo Molaro adc0c06313 Tue Aug 3 11:17:07 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c: make sure temp regs are not used for global reg
	allocation.

svn path=/branches/mono-1-0/mono/; revision=31787
2004-08-03 08:16:50 +00:00
Paolo Molaro a2050a9591 Fri Jul 30 16:49:05 CEST 2004 Paolo Molaro <[email protected]>
* object.c: always create an object if null is passed
	to Invoke() where a valuetype is expected.

svn path=/branches/mono-1-0/mono/; revision=31786
2004-08-03 08:12:45 +00:00
Satya Sudha K 43081d8686 Fix for bug #61749
svn path=/trunk/mcs/; revision=31785
2004-08-03 07:45:57 +00:00
Paolo Molaro 683fff36d8 Tue Aug 3 01:35:44 PDT 2004 Paolo Molaro <[email protected]>
* mini-ppc.c: mul.ovf.un exception name fix.

svn path=/trunk/mono/; revision=31784
2004-08-03 07:35:23 +00:00
Raja R Harinath 4da3f84a33 Fix for #60997.
(Attribute.complained_before): New flag.
(Attribute.ResolveType, Attribute.Resolve),
(Attribute.DefinePInvokeMethod): Set it.
(Attributes.Search): Pass 'complain' to Attribute.ResolveType.

svn path=/trunk/mcs/; revision=31783
2004-08-03 07:10:41 +00:00
Atsushi Eno 665527a682 2004-08-03 Atsushi Enomoto <[email protected]>
* xml-classes : some updates on 2.0 stuff.

svn path=/trunk/mono/; revision=31782
2004-08-03 06:51:00 +00:00
Atsushi Eno 1331b09b01 2004-08-03 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented settings-less Create().
	* XmlWriterSettings.cs : added some comments.

svn path=/trunk/mcs/; revision=31781
2004-08-03 06:49:58 +00:00
Atsushi Eno 4cef0e0346 2004-08-03 Atsushi Enomoto <[email protected]>
* XPathEditableNavigator.cs : implemented some editor support methods.

svn path=/trunk/mcs/; revision=31780
2004-08-03 06:48:05 +00:00
Martin Baulig 8257f6edef 2004-08-03 Martin Baulig <[email protected]>
* debug-mono-symfile.c (read_string): Correctly read the string.

svn path=/trunk/mono/; revision=31779
2004-08-03 05:02:37 +00:00
Martin Baulig 8fa8665db3 2004-08-03 Martin Baulig <[email protected]>
* expression.cs (Binary.ResolveOperator): Don't abort if we can't
	use a user-defined operator; we still need to do numeric
	promotions in case one argument is a builtin type and the other
	one has an implicit conversion to that type.  Fixes #62322.

svn path=/branches/mono-1-0/mcs/; revision=31775
2004-08-03 04:38:11 +00:00
Atsushi Eno b270952aec 2004-08-03 Atsushi Enomoto <[email protected]>
* IApplicationHost.cs : missing namespace import.

svn path=/trunk/mcs/; revision=31773
2004-08-03 03:52:57 +00:00
Martin Baulig 394a15ab9b 2004-08-03 Martin Baulig <[email protected]>
* test-282.cs: New test for #62322.

svn path=/trunk/mcs/; revision=31772
2004-08-03 03:42:28 +00:00
Martin Baulig 15bd9360bc 2004-08-03 Martin Baulig <[email protected]>
* expression.cs (Binary.ResolveOperator): Don't abort if we can't
	use a user-defined operator; we still need to do numeric
	promotions in case one argument is a builtin type and the other
	one has an implicit conversion to that type.  Fixes #62322.

svn path=/trunk/mcs/; revision=31771
2004-08-03 03:41:51 +00:00
Duncan Mak 2d249597b6 (MapPath): Add [In] attribute.
svn path=/trunk/mcs/; revision=31770
2004-08-03 02:23:41 +00:00
Martin Baulig 11060570a1 2004-08-03 Martin Baulig <[email protected]>
* mini-x86.c (mono_arch_call_opcode): Correctly handle generic
	instances; before jumping to `handle_enum', also modify `ptype'.

svn path=/trunk/mono/; revision=31769
2004-08-03 01:56:34 +00:00
Duncan Mak 8bd2a78db0 * ApplicationShutdownReason.cs: Fixed typos.
* HttpCookieMode.cs:
* HttpDataTransferMode.cs:
* HttpRequestPriority.cs: Added [Serializable] attribute.

svn path=/trunk/mcs/; revision=31768
2004-08-03 01:56:09 +00:00
Duncan Mak b49ad50825 * RuleFiringRecord.cs:
* WebApplicationInformation:
* WebEventFormatter: Signature fixes, hide the constructor.

* IRegiisUtility.cs: Fixed name.

* EventNotificationType.cs:
* SessionStateType.cs:
* SqlFeatures.cs: Added missing attributes.

svn path=/trunk/mcs/; revision=31767
2004-08-03 01:55:15 +00:00
Martin Baulig 413a382865 2004-08-03 Martin Baulig <[email protected]>
* gen-64.cs: New test.

svn path=/trunk/mcs/; revision=31766
2004-08-03 01:54:40 +00:00
Duncan Mak ab7b6946d8 * IAppManagerAppDomainFactory.cs:
* IProcessHostSupportFunction.cs: signature fixes.

svn path=/trunk/mcs/; revision=31765
2004-08-03 01:53:41 +00:00
Martin Baulig caaf2f1454 2004-08-02 Martin Baulig <[email protected]>
* class.cs (TypeContainer.ifaces): Make this a `Type[]', not a
	`TypeExpr[]' array.
	(TypeContainer.GetClassBases): Return the unexpanded list of
	interfaces; we expand them later.
	(TypeContainer.DefineType): After creating the TypeBuilder, call
	TypeManager.ExpandInterfaces() to get an expanded and resolved
	list of interfaces.

	* ecore.cs (TypeExpr.GetInterfaces): Removed

	* generics.cs (Constraints.InterfaceConstraints): Remove.
	(TypeParameter.DefineType): Call TypeManager.RegisterBuilder() to
	register the interface constraints.

	* typemanager.cs
	(TypeManager.AddUserType): Removed the `ifaces' argument.
	(TypeManager.AddTypeParameter): Likewise.
	(TypeManager.AddUserInterface): Removed, was unused.
	(TypeManager.RegisterBuilder): Take a `Type[]' instead of a
	`TypeExpr[]' array for the interfaces.
	(TypeManager.ExpandInterfaces): Call this after the TypeBuilder
	has been defined, returns a list of the resolved interfaces types.
	(TypeManager.GetInterfaces): Return a `Type[]', not a `TypeExpr[]'.
	(TypeManager.GetExplicitInterfaces): Likewise.

svn path=/trunk/mcs/; revision=31764
2004-08-03 01:53:34 +00:00
Duncan Mak a4ff3cf732 * System.Web.dll.sources: Added new enums.
* ButtonType.cs:
* LoginFailureAction.cs:
* LoginTextLayout.cs: Added enumerations.

svn path=/trunk/mcs/; revision=31763
2004-08-03 01:38:34 +00:00
Duncan Mak 9df123bb15 * ApplicationShutdownReason.cs:
* HttpCookieMode.cs:
* HttpDataTransferMode.cs:
* HttpRequestPriority.cs: Added 2.0 enumerations.

svn path=/trunk/mcs/; revision=31762
2004-08-03 01:00:24 +00:00
Duncan Mak 8dbd3f63b7 2004-08-02 Duncan Mak <[email protected]>
* ProfileAuthenticationOption.cs: Added enumeration.

svn path=/trunk/mcs/; revision=31761
2004-08-03 00:59:04 +00:00
Duncan Mak d8d2120624 2004-08-02 Duncan Mak <[email protected]>
* EventNotificationType.cs:
	* SessionStateType.cs:
	* SqlFeatures.cs: Added enumerations.

	* IRegissUtility.cs:
	* IRegisterCreateITypeLib.cs: Added interfaces.

	* RuleFiringRecord.cs:
	* WebApplicationInformation.cs:
	* WebBaseEvent.cs:
	* WebEventFormatter.cs: Stubbed out classes.

svn path=/trunk/mcs/; revision=31760
2004-08-03 00:57:57 +00:00
Duncan Mak c6232a2da4 * IAppManagerAppDomainFactory.cs:
* IApplicationHost.cs:
* IHttpWorkerRequestHandler.cs:
* IProcessHost.cs:
* IProcessHostFactoryHelper.cs:
* IProcessHostSupportFunction.cs:
* IProcessPingCallback.cs:
* IQueueHost.cs:
* IRegisteredObject.cs: Added interfaces.

svn path=/trunk/mcs/; revision=31759
2004-08-03 00:55:45 +00:00
Duncan Mak 55d695fbdb 2004-08-02 Duncan Mak <[email protected]>
* AuthorizationRuleAction.cs:
	* BuildProviderAppliesTo.cs:
	* CustomErrorsMode.cs:
	* MachineKeyValidation.cs:
	* PagesEnableSessionState.cs:
	* PagesToCountAction.cs:
	* ProcessModelComAuthenticationLevel.cs:
	* ProcessModelComImpersonationLevel.cs:
	* ProcessModelLogLevel.cs;
	* SerializationMode.cs:
	* TraceDisplayMode.cs: Added enumerations.

	* IRemoteWebConfigarationHostServer.cs: Added interface.

svn path=/trunk/mcs/; revision=31758
2004-08-03 00:53:06 +00:00
Duncan Mak 7021764f55 * BuildProviderResultFlags.cs:
* IImplicitResourceProvider.cs:
* ImplicitResourceKey.cs:
* IResourceReader.cs: Added.

svn path=/trunk/mcs/; revision=31757
2004-08-03 00:50:18 +00:00
Duncan Mak dcdd3874f5 2004-08-02 Duncan Mak <[email protected]>
* WebAdminUserControl.cs (DatabaseType): Added.

svn path=/trunk/mcs/; revision=31756
2004-08-03 00:49:22 +00:00
Duncan Mak c57e364fed Added new enums and interfaces and re-ordered alphabetically.
svn path=/trunk/mcs/; revision=31755
2004-08-03 00:48:53 +00:00
Sebastien Pouliot 5dfa717844 2004-08-02 Sebastien Pouliot <[email protected]>
* CodeGroup.cs: Fixed Equals (true) which, strangely, only compares
	on level of children.
	* HashMembershipCondition.cs: Added empty constructor so Activator.
	CreateInstance can work.
	* PolicyLevel.cs: Implemented PolicyType (NET_2_0), Resolve and Save.
	* PublisherMembershipCondition.cs: Added empty constructor so
	Activator.CreateInstance can work.
	* SiteMembershipCondition.cs: Added empty constructor so Activator.
	CreateInstance can work.
	* StrongNameMembershipCondition.cs: Added empty constructor so
	Activator.CreateInstance can work.
	* UnionCodeGroup.cs: Partial implementation for Resolve (missing
	children support). Implemented ResolveMatchingCodeGroups.
	* ZoneMembershipCondition.cs: Added empty constructor so Activator.
	CreateInstance can work. Removed "class" validation in FromXml.

svn path=/trunk/mcs/; revision=31754
2004-08-02 23:08:29 +00:00
Sebastien Pouliot 4dae860b56 2004-08-02 Sebastien Pouliot <[email protected]>
* PolicyTypeLevel.cs: Removed duplicate license.
	* SecurityManager.cs: Moved secuirty demands as attributes (but mcs
	doesn't seem to encode them properly as they show up in corcompare).
	Implemented IsGranted, ResolvePolicy (but some code is still missing
	in related classes) and SavePolicy/SavePolicyLevel.

svn path=/trunk/mcs/; revision=31753
2004-08-02 23:01:07 +00:00
Sebastien Pouliot 5556cbeef3 2003-08-02 Sebastien Pouliot <[email protected]>
* UnionCodeGroupTest.cs: Added tests for ResolveMatchingCodeGroups.

svn path=/trunk/mcs/; revision=31752
2004-08-02 22:45:49 +00:00
Sebastien Pouliot 7fb547a17a 2003-08-02 Sebastien Pouliot <[email protected]>
* SecurityManagerTest.cs: Added bunch of tests for null usage.
	Converted to NUnit 2.2.

svn path=/trunk/mcs/; revision=31751
2004-08-02 22:43:24 +00:00
Martin Baulig e0dd549db1 2004-08-02 Martin Baulig <[email protected]>
Started to do some API review.

	* ICollection.cs (ICollection<T>): Added IsReadOnly, Add, Clear,
	Contains and Remove.

	* IList.cs (IList<T>): Removed Add, Clear, Constains, Remove,
	IsReadOnly and IsFixedSize.

svn path=/trunk/mcs/; revision=31749
2004-08-02 20:54:35 +00:00
Bernie Solomon 8d5c1e2e89 2004-08-02 Bernie Solomon <[email protected]>
* cpu-sparc.md: fcall maximal length too small.

svn path=/trunk/mono/; revision=31748
2004-08-02 20:10:11 +00:00
Zoltan Varga b0e9118e70 2004-08-02 Zoltan Varga <[email protected]>
* mini-amd64.c mini.h: Add initial support for passing/returning
	structures to/from pinvoked methods.

svn path=/trunk/mono/; revision=31747
2004-08-02 19:09:28 +00:00
Martin Baulig 2c9f64b685 Don't use iterators.
svn path=/trunk/mcs/; revision=31746
2004-08-02 18:44:29 +00:00
Paolo Molaro 642d293889 Mon Aug 2 11:59:35 PDT 2004 Paolo Molaro <[email protected]>
* mini-ppc.c: reg allocator fix.

svn path=/trunk/mono/; revision=31745
2004-08-02 17:59:29 +00:00
Martin Baulig 575809a45b 2004-08-02 Martin Baulig <[email protected]>
* expression.cs (Invocation.EmitCall): If we're invoking a method
	on a type parameter, use the new `Constrained' prefix opcode.
	(New.DoEmit): Also use the `Newobj' opcode for generic instances.

svn path=/trunk/mcs/; revision=31744
2004-08-02 17:15:39 +00:00
Sebastien Pouliot 3666796d50 2004-08-02 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Update version number for Mono 1.0.1.
	* sn.cs: Warn for missing machine.config (if quiet isn't specified).

svn path=/trunk/mcs/; revision=31743
2004-08-02 16:31:36 +00:00
Sebastien Pouliot 8bf47a5090 2004-08-02 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Update version number for Mono 1.0.1.
	* sn.cs: Warn for missing machine.config (if quiet isn't specified).

svn path=/branches/mono-1-0/mcs/; revision=31742
2004-08-02 16:29:49 +00:00
Martin Baulig 8b4a5065be 2004-08-02 Martin Baulig <[email protected]>
* IList.cs (IList.Add): Changed return type to void.

	* List.cs (List.Add): Likewise.

svn path=/trunk/mcs/; revision=31741
2004-08-02 15:30:57 +00:00
Rafael Teixeira 9db927db00 2004/08/01 Rafael Teixeira <[email protected]>
* mb-parser.jay : Some correction as pointed by Jambunathan,
		to allow preprocessor directives after a label that may
		leave it orphaned (without a explicit statement)
	* testmbas/WriteOK.vb : some vb code to test this case

svn path=/trunk/mcs/; revision=31740
2004-08-02 14:59:49 +00:00
Rafael Teixeira faf29bd2a0 2004/08/01 Rafael Teixeira <[email protected]>
* mb-parser.jay : Some correction as pointed by Jambunathan,
		to allow intermixing preprocessor directives between
		the label and it's associated statement

svn path=/trunk/mcs/; revision=31737
2004-08-02 12:07:02 +00:00
Rafael Teixeira 588a740351 oops: forgot to add them
svn path=/trunk/mcs/; revision=31736
2004-08-02 11:56:08 +00:00
Jambunathan K e97b965d99 Renaming Changelog to ChangeLog.
svn path=/trunk/mcs/; revision=31734
2004-08-02 08:20:40 +00:00
Jambunathan K 5c17301983 * mb-tokenizer.cs: Oops. Also pulled out all of the old
pre-processor code that is no more used.

svn path=/trunk/mcs/; revision=31733
2004-08-02 08:03:18 +00:00
Jambunathan K 2bdd1d7fca * mb-tokenizer.cs: Fixed a bug where line nos were
failing to get incremented when the line continuation
character was appearing by itself on contiguous lines.

* mb-parser.jay: Fixed the #ExternalSource actions
so that ExternalSourceDirectivesC4.vb compiles and
reports source & line nos as expected.

* location.cs: Replaced the existing unintuitive, not
so efficient implementation of struct Location {} with
the one available in mcs with one minor difference: The
number of bits reserved for a file index in the Token
is statically fixed at 8 bits.

svn path=/trunk/mcs/; revision=31732
2004-08-02 07:53:44 +00:00
Martin Baulig 60fcf54fe3 2004-08-02 Martin Baulig <[email protected]>
* get.c (dis_stringify_object_with_class): Include our generic
	arguments in the method's class name.

	* main.c (dis_generic_param_and_constraints): Use the new
	constraints syntax.

svn path=/trunk/mono/; revision=31728
2004-08-02 04:35:54 +00:00
Raja R Harinath 89af189c98 * Makefile.am (opcode.def): Make $(srcdir)!=$(builddir) safe.
* make-opcodes-def.pl (OUTPUT): Use $ARGV[1].
(parsefile): Parse $ARGV[0].

svn path=/trunk/mono/; revision=31727
2004-08-02 04:16:47 +00:00
Martin Baulig 269cc32eba 2004-08-02 Martin Baulig <[email protected]>
* dump.c (dump_stream_blob): Format this nicely.
	(dump_table_standalonesig): New public function.

	* main.c (dis_locals): If --show-tokens was requested, print the
	standalone signature token.
	(table_list): Added "--standalonesig".

svn path=/trunk/mono/; revision=31726
2004-08-02 03:52:29 +00:00
Sureshkumar T 348b79c29a 2004-07-30 Sureshkumar T ([email protected])
* OdbcCommand.cs: ExecuteNonQuery Closed statement handle to fix memory leak
        * OdbcDataReader.cs: Closed statement handle to fix memory leak
			     Removed SQLState login in GetBytes coz OdbcError provides the same.

svn path=/branches/mono-1-0/mcs/; revision=31725
2004-08-02 03:50:05 +00:00
Atsushi Eno 806622d4ea 2004-08-02 Atsushi Enomoto <[email protected]>
* XPathDocument.cs :
	  - For .NET 2.0, added a switch to support new XPathDocument2.
	    If switch is off, then it uses DTM.
	  - Implemented remaining 2.0 bits (except for Obsolete ones).

	To use them in XPathDocument, set environment MONO_XPATH_DOCUMENT_2=yes
	(It is still too unstable to pass all nunit tests and standalone XSLT
	tests).

svn path=/trunk/mcs/; revision=31724
2004-08-02 03:26:41 +00:00
Atsushi Eno 337548f326 2004-08-02 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: added those files:
	  - Mono.Xml.XPath/XPathDocument2.cs
	  - Mono.Xml.XPath/XPathDocument2Navigator.cs
	  - Mono.Xml.XPath/XPathDocument2Editable.cs

svn path=/trunk/mcs/; revision=31723
2004-08-02 03:23:20 +00:00
Atsushi Eno 73141276fb 2004-08-02 Atsushi Enomoto <[email protected]>
* XPathDocument2.cs : new IXPathNavigable implementation
	  XPathDocument2Navigator.cs : new XPathNavigator implementation
	  XPathDocument2Editable.cs : new XPathEditableNavigator implementation

	To use them in XPathDocument, set environment MONO_XPATH_DOCUMENT_2=yes
	(It is still too unstable to pass all nunit tests and standalone XSLT
	tests).

svn path=/trunk/mcs/; revision=31722
2004-08-02 03:21:55 +00:00
Martin Baulig 52747ee054 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31720
2004-08-02 00:13:14 +00:00
Martin Baulig cb6ea5f9c3 2004-08-02 Martin Baulig <[email protected]>
* statement.cs (LocalInfo.Flags): Added `IsThis'.
	(LocalInfo.IsThis): New public property.
	(Block.EmitMeta): Don't create a LocalBuilder for `this'.

svn path=/trunk/mcs/; revision=31719
2004-08-02 00:12:26 +00:00
Martin Baulig 3898bb0c92 Be more quiet.
svn path=/trunk/mcs/; revision=31718
2004-08-01 22:00:29 +00:00
Martin Baulig ef83a18939 2004-08-02 Martin Baulig <[email protected]>
* DateTime.cs, TimeSpan.cs, Guid.cs, Version.cs: Implement IComparable<T>.

svn path=/trunk/mcs/; revision=31717
2004-08-01 21:57:52 +00:00
Martin Baulig dec4053ba2 Improved constraints checking.
svn path=/trunk/mcs/; revision=31716
2004-08-01 21:54:07 +00:00
Atsushi Eno 21c732ca14 2004-08-01 Atsushi Enomoto <[email protected]>
* DebuggingInfo.cs : csc build fix (see bug #62230).

svn path=/trunk/mcs/; revision=31715
2004-08-01 16:16:18 +00:00
Rafael Teixeira 402f0a3ffc 2004-08-01 Rafael Teixeira <[email protected]>
* LabelA.vb, LabelB.vb, LabelC.vb, LabelD.vb : new positive tests for labelled statements

svn path=/trunk/mcs/; revision=31714
2004-08-01 13:49:31 +00:00
Rafael Teixeira b0165dcb19 2004/08/01 Rafael Teixeira <[email protected]>
* mb-parser.jay : Revised patch from Jo��o Viegas for the labeled_statement accepting integer literals as labels

svn path=/trunk/mcs/; revision=31713
2004-08-01 13:24:11 +00:00
Martin Baulig d7a20c7379 New test.
svn path=/trunk/mcs/; revision=31712
2004-08-01 12:34:47 +00:00
Martin Baulig a0293a5f91 Moved the marker.
svn path=/trunk/mcs/; revision=31711
2004-08-01 12:34:03 +00:00
Martin Baulig ca428481ba Ooops.
svn path=/trunk/mcs/; revision=31710
2004-08-01 12:33:28 +00:00
Martin Baulig 962346a138 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31709
2004-08-01 12:33:08 +00:00
Martin Baulig 4662fbdc1d 2004-08-01 Martin Baulig <[email protected]>
* class.cs (TypeContainer.GetClassBases): Don't set the default
	here since we may get called from GetPartialBases().
	(TypeContainer.DefineType): If GetClassBases() didn't return a
	parent, use the default one.

svn path=/trunk/mcs/; revision=31708
2004-08-01 12:31:33 +00:00
Bernie Solomon 8ff3b7fe00 2004-07-31 Bernie Solomon <[email protected]>
* interp.h: add mono_interp_ftnptr_to_delegate

	* transform.c (generate): use mono_interp_ftnptr_to_delegate
	as ical function.

	* interp.c: add mono_interp_ftnptr_to_delegate to create
	interpreter style delegate. fixes pinvoke3

svn path=/trunk/mono/; revision=31705
2004-08-01 02:46:06 +00:00
Zoltan Varga c2c306d98a 2004-07-31 Zoltan Varga <[email protected]>
* configure.in: Enable AMD64 JIT.

svn path=/trunk/mono/; revision=31696
2004-07-31 17:51:52 +00:00
Zoltan Varga a33f3caf9f 2004-07-31 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Fix OP_X86_PUSH_OBJ.

svn path=/trunk/mono/; revision=31695
2004-07-31 17:49:12 +00:00
Zoltan Varga f376501e51 2004-07-31 Zoltan Varga <[email protected]>
* inssel.brg: Optimize memset on 64 bit machines.

svn path=/trunk/mono/; revision=31694
2004-07-31 16:39:37 +00:00
Zoltan Varga 81f2b84588 2004-07-31 Zoltan Varga <[email protected]>
* mini-amd64.c: Fix some vararg cases.

svn path=/trunk/mono/; revision=31693
2004-07-31 16:38:43 +00:00
Jambunathan K 7c9d3708ff * Makefile: Added /unsafe switch to the compiler command line.
This is required as setting of Today and TimeOfDay makes a libc
call - stime(). Thanks to Pablo Cardona for submitting this patch.

* Strings.cs: Fixed a bug in Format()
* DateAndTime.cs: Added support for setting Today and
TimeOfDay properties. Thanks to Pablo Cardona for
submitting a patch.

svn path=/trunk/mcs/; revision=31692
2004-07-31 14:40:54 +00:00
Duncan Mak c08009c118 (mcs2.exe, mcs3.exe): add $(EXTRA_SOURCES).
svn path=/trunk/mcs/; revision=31691
2004-07-30 23:26:35 +00:00
Neale Ferguson cd5c1c4cb2 Add some s390 specific tests
svn path=/trunk/mono/; revision=31690
2004-07-30 23:11:29 +00:00
Martin Baulig 4c257f1a7a It's now called Mono.CompilerServices.SymbolWriter.
svn path=/trunk/mono/; revision=31689
2004-07-30 22:35:49 +00:00
Duncan Mak e954dca2af Forgot to add this type for "contrained."
svn path=/trunk/mono/; revision=31688
2004-07-30 20:57:18 +00:00
Zoltan Varga 5c3deb94d1 2004-07-30 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_find_jit_info): Fix restoring of
	caller saved regs.

svn path=/trunk/mono/; revision=31686
2004-07-30 19:44:48 +00:00
Zoltan Varga 5b48960b44 2004-07-30 Zoltan Varga <[email protected]>
* basic.cs: Add a test for add.ovf.un.

svn path=/trunk/mono/; revision=31685
2004-07-30 18:31:28 +00:00
Martin Baulig f23235b9ba 2004-07-30 Martin Baulig <[email protected]>
* Makefile.am: The symbol writer is now called
	Mono.CompilerServices.SymbolWriter.dll.

svn path=/trunk/mono/; revision=31684
2004-07-30 18:24:40 +00:00
Neale Ferguson f413f4e3bd Optimize code generation macros and standardize
svn path=/trunk/mono/; revision=31683
2004-07-30 18:23:23 +00:00
Zoltan Varga 2566ab6a7c 2004-07-30 Zoltan Varga <[email protected]>
* mini-amd64.c mini-amd64.h mini.c: Add support for vararg pinvoke calls.

svn path=/trunk/mono/; revision=31682
2004-07-30 18:08:58 +00:00
Zoltan Varga 64987bdcf0 2004-07-30 Zoltan Varga <[email protected]>
* marshal.c (signature_dup_add_this): Fix bug in previous patch.

svn path=/trunk/mono/; revision=31680
2004-07-30 17:38:17 +00:00
Martin Baulig f200e0990c **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31679
2004-07-30 17:28:56 +00:00
Bernie Solomon 17f2f318cc 2004-07-30 Bernie Solomon <[email protected]>
* mini-sparc.c: add case for OP_IDIV_UN

svn path=/trunk/mono/; revision=31678
2004-07-30 17:22:44 +00:00
Zoltan Varga db2c07c6c9 2004-07-30 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_icall_wrapper): Add support for vararg
	icalls.
	(mono_marshal_get_runtime_invoke): Correctly handle valuetype methods.

svn path=/trunk/mono/; revision=31677
2004-07-30 17:19:46 +00:00
Martin Baulig b762d47e69 2004-07-30 Martin Baulig <[email protected]>
* debug-mono-symfile.c, mono-debug.c, mono-debug-debugger.c:
	Reflect latest symbol writer changes.

svn path=/trunk/mono/; revision=31676
2004-07-30 17:08:32 +00:00
Martin Baulig 113bb5ef3c Ignore *.mdb.
svn path=/trunk/mcs/; revision=31675
2004-07-30 17:06:43 +00:00
Martin Baulig 676d266864 Use the new symbol writer API.
svn path=/trunk/mcs/; revision=31674
2004-07-30 17:01:05 +00:00
Martin Baulig 01079d0a51 Ignore *.mdb.
svn path=/trunk/mcs/; revision=31673
2004-07-30 16:59:10 +00:00
Martin Baulig d1549c2298 2004-07-30 Martin Baulig <[email protected]>
* Makefile (EXTRA_SOURCES): List the symbol writer's sources here.

	* class.cs (SourceMethod): New public class, derive from the
	symbol writer's ISourceMethod.
	(Method): Use the new symbol writer API.

	* codegen.cs (CodeGen.InitializeSymbolWriter): Take the filename
	as argument and use the new symbol writer.

	* location.cs
	(SourceFile): Implement the symbol writer's ISourceFile.
	(Location.SymbolDocument): Removed.
	(Location.SourceFile): New public property.

	* symbolwriter.cs: Use the new symbol writer API.

svn path=/trunk/mcs/; revision=31672
2004-07-30 16:58:31 +00:00
Zoltan Varga c173d9b3c5 2004-07-30 Zoltan Varga <[email protected]>
* mini-amd64.c cpu-amd64.md: Ongoing JIT work.

svn path=/trunk/mono/; revision=31671
2004-07-30 16:56:33 +00:00
Martin Baulig 0ccc93ad14 2004-07-30 Martin Baulig <[email protected]>
* executable.make (EXTRA_SOURCES): New variable to add extra
	sources to the program.

svn path=/trunk/mcs/; revision=31670
2004-07-30 16:54:30 +00:00
Martin Baulig 082132ef56 2004-07-30 Martin Baulig <[email protected]>
The library is now called Mono.CompilerServices.SymbolWriter.dll
	and is in the Mono.CompilerServices.SymbolWriter namespace.

	* MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): New public
	static method.
	(MonoSymbolFile.WriteString): Use the BinaryWriter's method.
	(MonoSymbolFile.ReadString): Use the BinaryReader's method.
	(MonoSymbolFile.Write): Write the module's Guid into the symbol
	file.

	* MonoSymbolTable.cs, MonoSymbolWriter.cs: Reworked the API.

svn path=/trunk/mcs/; revision=31669
2004-07-30 16:52:07 +00:00
Duncan Mak 736152c699 it's OpCodeType, not OperandType
svn path=/trunk/mono/; revision=31668
2004-07-30 16:32:19 +00:00
Duncan Mak d12d4b0bf7 Added OperandType information to each of the public opcodes with the
new "type" attribute. Removed mono_func_* from the opcodes and updated
the "o2" attribute for the mono_* opcodes to match the values in the
existing opcode.def. Added "mono_save_lmf" and mono_restore_lmf",
which were listed in opcode.def, but not in the XML file.

r=lupus

svn path=/trunk/mono/; revision=31667
2004-07-30 16:31:06 +00:00
Ben Maurer cd0fefdde0 2004-07-30 Ben Maurer <[email protected]>
* basic.cs: regression tests.

	* inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various

svn path=/trunk/mono/; revision=31666
2004-07-30 16:16:32 +00:00
Zoltan Varga 367274f764 2004-07-30 Zoltan Varga <[email protected]>
* basic.cs: Add a new test.

svn path=/trunk/mono/; revision=31665
2004-07-30 16:02:37 +00:00
Zoltan Varga dbc9b4d429 2004-07-30 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: Ongoing JIT work.

svn path=/trunk/mono/; revision=31664
2004-07-30 16:01:49 +00:00
Zoltan Varga d1df6b7555 2004-07-30 Zoltan Varga <[email protected]>
* mini-amd64.c aot.c cpu-amd64.md: Add support for tracing, profiling
	and AOT. Various fixes and optimizations.

svn path=/trunk/mono/; revision=31663
2004-07-30 16:00:43 +00:00
Zoltan Varga 5ea87c85d7 2004-07-30 Zoltan Varga <[email protected]>
* inssel.brg (CALL_REG): Add 64 bit versions of call_reg rules.

svn path=/trunk/mono/; revision=31662
2004-07-30 15:59:04 +00:00
Zoltan Varga 3e87e3b706 2004-07-30 Zoltan Varga <[email protected]>
* mono-logger.c (mono_trace_set_mask_string): Fix AOT tracing constant.

svn path=/trunk/mono/; revision=31660
2004-07-30 15:23:58 +00:00
Atsushi Eno a993a4d53b 2004-07-30 Atsushi Enomoto <[email protected]>
* DTMXPathNavigator.cs :
	  Fixed IsSamePosition(). currentAttr is not always the same as
	  that of other when current is not attribute. Ditto for currentNS
	  (when current is not namespace).

svn path=/branches/mono-1-0/mcs/; revision=31659
2004-07-30 15:07:11 +00:00
Jambunathan K 922ac9aa87 Enhanced or Fixed tests for externalsource and conditional
compilation pre-processor directives

svn path=/trunk/mcs/; revision=31658
2004-07-30 15:05:34 +00:00
Atsushi Eno 5954799e05 The ChangeLog description was ambiguous, so rewritten.
svn path=/trunk/mcs/; revision=31657
2004-07-30 15:05:20 +00:00
Atsushi Eno f430da5aa0 2004-07-30 Atsushi Enomoto <[email protected]>
* DTMXPathNavigator.cs :
	  Fixed IsSamePosition(). currentAttr and currentNS are not always
	  the same when current is attribute or current is namespace.
	* XPathNavigatorReader.cs : Fixed NodeType - 1) When attribute value is
	  being consumed, then node type should be Text, and 2) Root node is
	  usually mapped to Document, but XmlReader never returns Document,
	  just None (both on Initial state and EndOfFile state).

svn path=/trunk/mcs/; revision=31656
2004-07-30 15:01:08 +00:00
Jambunathan K c6e6c89b4e Fixed miscellaneous bugs in handling of
pre-processor directives. There are two positive test
cases that fail currently: ExternalSourceDirectivesC4.vb
and RegionDirectivesC1.vb
 ----------------------------------------------------------------------

svn path=/trunk/mcs/; revision=31655
2004-07-30 14:43:41 +00:00
Ravindra 290bee44af * Font.cs: Fixed Height property implementation and implemented
GetHeight method and its overloads.

svn path=/trunk/mcs/; revision=31654
2004-07-30 14:20:22 +00:00
Paolo Molaro fefa7a1678 Fri Jul 30 16:49:05 CEST 2004 Paolo Molaro <[email protected]>
* object.c: always create an object if null is passed
	to Invoke() where a valuetype is expected.

svn path=/trunk/mono/; revision=31652
2004-07-30 13:51:38 +00:00
Atsushi Eno b0d04ed331 2004-07-30 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : fixed GetAttributeNavigator() that
	  incorrectly used MoveToNextAttribute().

svn path=/trunk/mcs/; revision=31651
2004-07-30 12:53:50 +00:00
Paolo Molaro 28160a127a Fri Jul 30 15:49:26 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c: make sure temp regs are not used for global reg
	allocation.

svn path=/trunk/mono/; revision=31650
2004-07-30 12:49:43 +00:00
Sureshkumar T f833b9e06b 2004-07-30 Sureshkumar T ([email protected])
* OdbcCommand.cs: ExecuteNonQuery Closed statement handle to fix memory leak
        * OdbcDataReader.cs: Closed statement handle to fix memory leak
			     Removed SQLState login in GetBytes coz OdbcError provides the same.

svn path=/trunk/mcs/; revision=31649
2004-07-30 11:35:08 +00:00
Ravindra 8e04177ab1 Flushing.
svn path=/trunk/mcs/; revision=31647
2004-07-30 08:17:56 +00:00
Jambunathan K fbb31cd2f9 *** empty log message ***
svn path=/trunk/mcs/; revision=31646
2004-07-30 08:12:56 +00:00
Jambunathan K ebdbfc8d2c (Module): Oops. Reversed unintended checkin.
svn path=/trunk/mcs/; revision=31645
2004-07-30 08:07:51 +00:00
Raja R Harinath 2d43bd4992 (monoone_DATA): Add mcs.exe.config.
(gmcs_exe): Add gmcs.exe.config.
($(monoone_DATA) $(monotwo_DATA) ...): Add location of the .config files too.

svn path=/trunk/mono/; revision=31644
2004-07-30 07:43:09 +00:00
Raja R Harinath 4807ad9cdc (install-local): Remove. Functionality moved to executable.make.
svn path=/trunk/mcs/; revision=31643
2004-07-30 07:36:52 +00:00
Raja R Harinath 4d0f22424d (PROGRAM_config): New auto-detecting define.
Defined if $(PROGRAM).config exists.
(install-local): Install $(PROGRAM_config) if it exists.

svn path=/trunk/mcs/; revision=31642
2004-07-30 07:33:13 +00:00
Sachin Kumar 4df76ae0a7 Added tests for Shift Operators
svn path=/trunk/mcs/; revision=31641
2004-07-30 07:32:18 +00:00
Raja R Harinath 182832ce7d (IfElseStateMachine.State, IfElseStateMachine.Token): Remove [Flags] attribute.
svn path=/trunk/mcs/; revision=31640
2004-07-30 07:28:11 +00:00
Jochen Wezel a4e86ce34b CVhangeLog for added System.Serializable attribute to NET_2_0, fixed usage of System.Flags instead of System.FlagsAttribute
svn path=/trunk/mcs/; revision=31639
2004-07-30 07:26:58 +00:00
Jochen Wezel 9978b0380c updated ChangeLog for added System.Serializable attribute to NET_2_0, fixed usage of System.Flags instead of System.FlagsAttribute
svn path=/trunk/mcs/; revision=31638
2004-07-30 07:26:07 +00:00
Jochen Wezel 5f711e8b6e Serializable only in NET_2_0 and not in NET_1_x
svn path=/trunk/mcs/; revision=31637
2004-07-30 07:10:10 +00:00
Jochen Wezel 994a01dd0d Serializable attributes only in NET_2_0 instead of in all versions
svn path=/trunk/mcs/; revision=31636
2004-07-30 07:08:22 +00:00
Jambunathan K ef17cc6fcf * mb-parser.jay: The original checkin hits a bug in mcs but
compiles fine with csc. This checkin is to workaround the mcs
bug so that cvs builds are not broken.

svn path=/trunk/mcs/; revision=31635
2004-07-30 06:48:48 +00:00
Bernie Solomon 79d41d0d79 2004-07-29 Bernie Solomon <[email protected]>
* cpu-sparc.md: conv_i8 fix for 64bits

	* mini-sparc.c: add cases for OP_IXXX codes for 64bits

svn path=/trunk/mono/; revision=31633
2004-07-30 01:15:02 +00:00
Bernie Solomon dbbedeb76e 2004-07-29 Bernie Solomon <[email protected]>
* marshal.c (mono_marshal_init): make managed
	signatures match native ones better for 64bits.

svn path=/trunk/mono/; revision=31632
2004-07-30 01:11:31 +00:00
César Natarén cee285ec20 2004-07-29 Cesar Lopez Nataren <[email protected]>
* Parser.cs: Added ClauseType enum. Added all the statements to current_script_or_fn,
	building the other block was not needed. Build the ast's for the
	expressions and statements, keep track of the parent relationship.

svn path=/trunk/mcs/; revision=31631
2004-07-29 22:38:15 +00:00
Gonzalo Paniagua Javier 47cde9a5de 2004-07-29 Gonzalo Paniagua Javier <[email protected]>
* BaseValidator.cs: in Validate(), when the control is not visible or
	enabled, return inmediately after setting IsValid to true. Fixes bug
	#61831.

svn path=/branches/mono-1-0/mcs/; revision=31630
2004-07-29 20:26:51 +00:00
Gonzalo Paniagua Javier fd38a7548c 2004-07-29 Gonzalo Paniagua Javier <[email protected]>
* BaseValidator.cs: in Validate(), when the control is not visible or
	enabled, return inmediately after setting IsValid to true. Fixes bug
	#61831.

svn path=/trunk/mcs/; revision=31629
2004-07-29 20:25:57 +00:00
Gonzalo Paniagua Javier 54b429371b 2004-07-29 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: hack to build correctly the private bin path on windows.
	Fixes bug #61991.

svn path=/branches/mono-1-0/mono/; revision=31627
2004-07-29 19:16:35 +00:00
Gonzalo Paniagua Javier 3c959a31e7 2004-07-29 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: hack to build correctly the private bin path on windows.
	Fixes bug #61991.

svn path=/trunk/mono/; revision=31626
2004-07-29 19:04:30 +00:00
Jambunathan K 14cf871da4 * mb-parser.jay:
* mb-tokenizer.cs: Added support for #region, #externalsource
and conditional compilation pre-processor directives.
Conditonal directives currently accept only boolean literals
as conditonal expressions.

svn path=/trunk/mcs/; revision=31625
2004-07-29 18:27:57 +00:00
Jambunathan K 76c8e0642c * RegionDirectivesC1.vb:
* RegionDirectives.vb:
* ExternalSourceDirectivesC1.vb:
* ExternalSourceDirectives.vb:
* ConditionalCompilationE.vb:
* ConditionalCompilationD.vb:
* ConditionalCompilationC.vb:
* ConditionalCompilationA.vb:
* ConditionalCompilation.vb:
* RegionDirectivesC5.vb:
* RegionDirectivesC4.vb:
* RegionDirectivesC3.vb:
* RegionDirectivesC2.vb:
* PreProcessorDirectiveC1.vb:
* PreProcessorDirective.vb:
* ExternalSourceDirectivesC4.vb:
* ExternalSourceDirectivesC3.vb:
* ExternalSourceDirectivesC2.vb:
* ConditionalCompilationC9.vb:
* ConditionalCompilationC8.vb:
* ConditionalCompilationC7.vb:
* ConditionalCompilationC6.vb:
* ConditionalCompilationC5.vb:
* ConditionalCompilationC4.vb:
* ConditionalCompilationC3.vb:
* ConditionalCompilation9.vb:
* ConditionalCompilation10.vb:

Added or modified tests for region externalsource and
conditional compilation pre-processor directives

svn path=/trunk/mcs/; revision=31624
2004-07-29 17:56:29 +00:00
Ben Maurer ba794d5eb4 head -n4 ChangeLog
svn path=/trunk/mono/; revision=31623
2004-07-29 17:12:22 +00:00
Ben Maurer 26a054fda9 2004-07-29 Ben Maurer <[email protected]>
* x86/x86-codegen.h: Add opcodes for cmp BYTE PTR [eax], imm

svn path=/trunk/mono/; revision=31622
2004-07-29 17:10:53 +00:00
Ben Maurer 8569a52fd4 2004-07-29 Ben Maurer <[email protected]>
* inssel.brg: Make memcpy and memset takes bases.

svn path=/trunk/mono/; revision=31621
2004-07-29 17:07:08 +00:00
Martin Baulig 00b4f4be2e Ignore *.mdb everywhere.
svn path=/trunk/mcs/; revision=31616
2004-07-29 16:18:38 +00:00
Martin Baulig 31159b11ef Ignore *.mdb.
svn path=/trunk/mcs/; revision=31615
2004-07-29 16:14:20 +00:00
Martin Baulig 78b9c7623e 2004-07-29 Martin Baulig <[email protected]>
* PEAPI.cs (Module.Guid): New public property.

svn path=/trunk/mcs/; revision=31614
2004-07-29 16:13:10 +00:00
Martin Baulig 34123bd464 2004-07-29 Martin Baulig <[email protected]>
* Module.cs (Mono_GetGuid): Make this static.

svn path=/trunk/mcs/; revision=31613
2004-07-29 16:10:05 +00:00
Martin Baulig 25030496b0 2004-07-29 Martin Baulig <[email protected]>
* ILGenerator.cs (ILGenerator.Mono_GetCurrentOffset): New static
	internal method.

	* ModuleBuilder.cs (ModuleBuilder.Mono_GetGuid): New static
	internal method.

svn path=/trunk/mcs/; revision=31612
2004-07-29 16:06:37 +00:00
Atsushi Eno f6d978f6f4 2004-07-29 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
	  incompletely, using XPathNavigator.ReadSubtree().

svn path=/trunk/mcs/; revision=31611
2004-07-29 15:22:25 +00:00
Atsushi Eno 06d12486a7 2004-07-29 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : Implemented ReadSubtree().

svn path=/trunk/mcs/; revision=31609
2004-07-29 14:33:04 +00:00
Atsushi Eno 6e23efaa6e 2004-07-29 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs :
	  - it is used only in 2.0 classes.
	  - It now behaves as a fragment reader.
	  - Depth is optimized not to call Clone() and MoveToParent().
	  - AttributeCount could be counted only once in Read().
	  - ReadState transition is adjusted to be same as other XmlReaders.
	  - name strings now return "" on initial state.

svn path=/trunk/mcs/; revision=31608
2004-07-29 14:32:10 +00:00
Atsushi Eno 4145811456 2004-07-29 Atsushi Enomoto <[email protected]>
* Environment.cs : GacPath on windows is based on mscorlib.dll, and
	  now its location is changed.

svn path=/trunk/mcs/; revision=31607
2004-07-29 12:07:51 +00:00
Sachin Kumar f479d53a2e Added tests for logical operators
svn path=/trunk/mcs/; revision=31606
2004-07-29 12:00:15 +00:00
Sanja Gupta e6cd22cb7c ChangeLog: Updated ChangeLog.
gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
        P/Invoke function for Image.
Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.

svn path=/trunk/mcs/; revision=31605
2004-07-29 11:55:39 +00:00
Sanja Gupta 170ec7391f ChangeLog: Updated ChangeLog.
gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and
        GdipGetAllPropertyItems P/Invoke function for Image.
gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
Image.cs: Corrected implementation of PropertyItems property.

svn path=/trunk/mcs/; revision=31604
2004-07-29 10:58:50 +00:00
Lluis Sanchez f06de0e0fc * MonoWSDL2.cs: New wrapper for wsdl 2.0.
* wsdl2.exe.sources: source list for wsdl 2.0.
	* Makefile: Changed executable name for 2.0 profile.

svn path=/trunk/mcs/; revision=31603
2004-07-29 09:33:25 +00:00
Atsushi Eno bc7c9c9488 2004-07-29 Atsushi Enomoto <[email protected]>
* XmlReader.cs : Implemented new 2.0 virtual members that used to be
	  abstract in 1.x. Implemented ReadSubtree().

svn path=/trunk/mcs/; revision=31602
2004-07-29 09:28:52 +00:00
Atsushi Eno 2039a670a7 2004-07-29 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: added Mono.Xml/SubtreeXmlReader.cs

svn path=/trunk/mcs/; revision=31601
2004-07-29 09:27:12 +00:00
Atsushi Eno ccc689909f 2004-07-29 Atsushi Enomoto <[email protected]>
* Added SubtreeXmlReader.cs.

svn path=/trunk/mcs/; revision=31600
2004-07-29 09:25:31 +00:00
Sachin Kumar 029a2f067d Added tests for Operators
svn path=/trunk/mcs/; revision=31599
2004-07-29 09:13:20 +00:00
Lluis Sanchez af16fd3755 * Makefile.am: Copy machine.config in the correct _tmpinst subdirectory.
svn path=/trunk/mono/; revision=31598
2004-07-29 08:47:47 +00:00
Umadevi S 918c727edb 2004-07-29 Umadevi S <[email protected]>
* OdbcCommandTest.cs - Added testcase for bug 62046. ExecuteNonQuery

svn path=/trunk/mcs/; revision=31597
2004-07-29 06:17:49 +00:00
Umadevi S eb1711a918 2004-07-29 Umadevi S ([email protected])
* OdbcCommand.cs - Fixed bug 62046. ExecuteNonQuery implemented correctly

svn path=/trunk/mcs/; revision=31596
2004-07-29 06:14:03 +00:00
Umadevi S 55b0c80927 2004-07-29 Umadevi S <[email protected]>
* OdbcCommandTest.cs - Added testcase for bug 62046. ExecuteNonQuery

svn path=/branches/mono-1-0/mcs/; revision=31595
2004-07-29 05:55:58 +00:00
Umadevi S e9fae8b7d0 2004-07-29 Umadevi S ([email protected])
* OdbcCommand.cs - Fixed bug 62046. ExecuteNonQuery implemented correctly

svn path=/branches/mono-1-0/mcs/; revision=31594
2004-07-29 05:53:32 +00:00
Sanja Gupta f4a1c98054 ChangeLog: Updated ChangeLog.
gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList
        P/Invoke function for Image.
Image.cs: Changed implementation of PropertyIdList property.

svn path=/trunk/mcs/; revision=31593
2004-07-29 05:49:59 +00:00
Neale Ferguson 03c6080fbd Fix move instruction to handle large offsets
svn path=/trunk/mono/; revision=31592
2004-07-29 00:32:20 +00:00
Lluis Sanchez bccfdd1a16 * RuntimeEnvironment.cs: Implemented SystemConfigurationFile and
GetSystemVersion().

svn path=/trunk/mcs/; revision=31590
2004-07-28 22:16:25 +00:00
Zoltan Varga 40f3568d36 2004-07-28 Zoltan Varga <[email protected]>
* *-amd64.*: More AMD64 work.

svn path=/trunk/mono/; revision=31588
2004-07-28 20:26:37 +00:00
Zoltan Varga c2f3514c4d 2004-07-28 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: Ongoing JIT work.

svn path=/trunk/mono/; revision=31586
2004-07-28 20:14:03 +00:00
Lluis Sanchez f5fbcf9890 * Makefile: Install mcs.exe.config file together with mcs.exe.
* mcs.exe.config: Added supportedRuntime entry to make sure it runs in the
	correct runtime version.

svn path=/trunk/mcs/; revision=31585
2004-07-28 19:28:11 +00:00
Lluis Sanchez e9eb1f5ccf * Makefile: Use the new FRAMEWORK_VERSION variable to build the destination
path for mscorlib.

svn path=/trunk/mcs/; revision=31584
2004-07-28 19:24:59 +00:00
Lluis Sanchez 2a97b00400 * profiles/default.make, profiles/net_2_0.make, profiles/net_1_0.make:
Added FRAMEWORK_VERSION var.

svn path=/trunk/mcs/; revision=31583
2004-07-28 19:22:40 +00:00
Ben Maurer 3a49d3035a 2004-07-28 Ben Maurer <[email protected]>
* cpu-pentium.md, inssel-x86.brg, mini-ops.h, mini-x86.c:

svn path=/trunk/mono/; revision=31582
2004-07-28 19:19:29 +00:00
Lluis Sanchez 40fac876a0 runtime/net_1_1/Makefile.am, runtime/net_2_0/Makefile.am: Install mscorlib
at the correct version specific directory.

svn path=/trunk/mono/; revision=31581
2004-07-28 19:19:10 +00:00
Lluis Sanchez 281e1c0ace * interp.c: Use mono_init_from_assembly instead of mono_init.
svn path=/trunk/mono/; revision=31580
2004-07-28 19:16:23 +00:00
Lluis Sanchez 5178a5dbf2 * mini.c: Use mono_init_from_assembly instead of mono_init.
svn path=/trunk/mono/; revision=31579
2004-07-28 19:15:21 +00:00
Lluis Sanchez 4acbe1e536 * assembly.c: Load mscorlib from the correct framework directory
(mono/<version>/mscorlib.dll).
	* appdomain.h: Added prototypes for new functions.
	* internals.h: Added some prototypes.
	* domain.c: When initializing the runtime, get from the executable and
	  the configuration files the runtime version that the app supports.
	  Added support methods for reading app.exe.config. Added list of versions
	  supported by the JIT. Added two new methods: mono_init_from_assembly,
	  which initializes the runtime and determines the required version from
	  the provided exe file, and mono_init_version, which initializes
	  the runtime using the provided version.
	* icall.c: Get machine.config from version-specific directory.
	* reflection.c: When generating an image, embed the version number
	  of the current runtime.

svn path=/trunk/mono/; revision=31578
2004-07-28 19:11:47 +00:00
Zoltan Varga ea1364a1df 2004-07-28 Zoltan Varga <[email protected]>
* mini.c: Fix opcode mapping for STACK_MP on 64 bit platforms.

	* mini.c (CEE_NEWOBJ): Call mono_array_new_va using the correct signature.

	* mini.c: Use MONO_ARCH_SIGACTION on AMD64 as well.

svn path=/trunk/mono/; revision=31577
2004-07-28 19:06:11 +00:00
Zoltan Varga 1f429d93a5 2004-07-28 Zoltan Varga <[email protected]>
* inssel.brg: 64 bit fixes.

	* mini.h (MonoCallInst): Add some AMD64 specific data.

	* mini.h: Add some OP_P opcodes.

svn path=/trunk/mono/; revision=31576
2004-07-28 18:58:53 +00:00
Lluis Sanchez 5f67448fa5 * configure.in: Added data/net_1_1 and data/net_2_0 to the build.
* data/Makefile.am: Removed installation of machine.config and
	  DefaultWsdlHelpGenerator.aspx. Those now are in a version-specific
	  directory.
	* data/net_1_1/Makefile.am, data/net_2_0/Makefile.am: new makefiles for
	  installing 1.1 and 2.0 makefiles.
	* runtime/net_1_1/Makefile.am, runtime/net_2_0/Makefile.am: Install mscorlib
	  at the correct version specific directory.

svn path=/trunk/mono/; revision=31573
2004-07-28 18:34:52 +00:00
Lluis Sanchez f426954758 * BasicProfileChecker.cs, ConformanceChecker.cs,
WebServicesInteroperability.cs: Fixed build errors. I commited before
	  it was ready :-(.

svn path=/trunk/mcs/; revision=31571
2004-07-28 17:39:28 +00:00
John Merryweather Cooper d4965000a4 * mono/configure.in: Fix host regexes for FreeBSD. Fix TLS issues with
FreeBSD -CURRENT.  Fix pthread library detection on FreeBSD -STABLE.

* mono/libgc/configure.in: Fix pthread compiler flags for both FreeBSD
-STABLE and -CURRENT.

svn path=/branches/mono-1-0/mono/; revision=31568
2004-07-28 17:01:35 +00:00
John Merryweather Cooper 79bb82d2e3 * mono/configure.in: Correct host regexes for FreeBSD. Fix TLS issue with
-CURRENT.  Fix library detection for FreeBSD in both -STABLE and -CURRENT.

svn path=/trunk/mono/; revision=31565
2004-07-28 16:28:17 +00:00
Lluis Sanchez c74b905389 * XmlTextReader.cs: Stop parsing when a null character is found.
svn path=/branches/mono-1-0/mcs/; revision=31564
2004-07-28 15:52:49 +00:00
Ben Maurer ddb03c17ac 2004-07-28 Ben Maurer <[email protected]>
* basic.cs: tests for 61797 and 61740

svn path=/trunk/mono/; revision=31563
2004-07-28 15:46:39 +00:00
Dick Porter 92bc06c8cd 2004-07-28 Dick Porter <[email protected]>
* Socket.cs: ReceiveFrom might not return a valid EndPoint.  Patch
	by Nick Vaughan ([email protected]), fixes bug 61608.

svn path=/branches/mono-1-0/mcs/; revision=31562
2004-07-28 15:44:15 +00:00
Dick Porter ca744bd635 2004-07-28 Dick Porter <[email protected]>
* socket-io.c
	(ves_icall_System_Net_Sockets_Socket_RecvFrom_internal): Check
	returned sockaddr size before creating the remote address object.
	Patch by Nick Vaughan ([email protected]), fixes bug
	61608.

svn path=/branches/mono-1-0/mono/; revision=31561
2004-07-28 15:44:15 +00:00
Dick Porter 07fbaf3262 2004-07-28 Dick Porter <[email protected]>
* Socket.cs: ReceiveFrom might not return a valid EndPoint.  Patch
	by Nick Vaughan ([email protected]), fixes bug 61608.

svn path=/trunk/mcs/; revision=31560
2004-07-28 15:44:10 +00:00
Dick Porter 7012ba5b86 2004-07-28 Dick Porter <[email protected]>
* socket-io.c
	(ves_icall_System_Net_Sockets_Socket_RecvFrom_internal): Check
	returned sockaddr size before creating the remote address object.
	Patch by Nick Vaughan ([email protected]), fixes bug
	61608.

svn path=/trunk/mono/; revision=31559
2004-07-28 15:44:06 +00:00
Lluis Sanchez 1a0e5c12dd * XmlTextReader.cs: Stop parsing when a null character is found.
svn path=/trunk/mcs/; revision=31558
2004-07-28 15:08:04 +00:00
Jackson Harper 845dcfe807 * driver.cs: Check for and install .mdb (debuger symbol
files).

svn path=/trunk/mcs/; revision=31557
2004-07-28 14:46:43 +00:00
Sanja Gupta 9e18802ff7 ChangeLog: Updated ChangeLog.
gdipStructs.cs: Implementing PropertyItem property in Image.cs.
Image.cs: Implemented PropertyItems and PropertyIdList properties.

svn path=/trunk/mcs/; revision=31556
2004-07-28 14:32:57 +00:00
Atsushi Eno bf7fcf52d0 2004-07-28 Atsushi Enomoto <[email protected]>
* XmlReader.cs : Implemented missing MoveToNextSibling() and
	  MoveToDescendant().
	* XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
	  are they really worth overriding?)

svn path=/trunk/mcs/; revision=31555
2004-07-28 14:04:04 +00:00
Atsushi Eno 821d167198 2004-07-28 Atsushi Enomoto <[email protected]>
* XmlQueryCompileException.cs : removed extra GetObjectData().
	* XsltCommand.cs : fixed signatures of Compile() and Execute() methods.

svn path=/trunk/mcs/; revision=31554
2004-07-28 13:31:58 +00:00
Dick Porter b05f184a53 2004-07-28 Dick Porter <[email protected]>
* ComparerTest.cs: Test for invariant compares (bug 61458.)

svn path=/trunk/mcs/; revision=31553
2004-07-28 12:46:34 +00:00
Dick Porter a13d1dd4ca 2004-07-28 Dick Porter <[email protected]>
* ComparerTest.cs: Test for invariant compares (bug 61458.)

svn path=/branches/mono-1-0/mcs/; revision=31552
2004-07-28 12:46:33 +00:00
Atsushi Eno e186f33ef2 2004-07-28 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : Added new WriteStartAttribute(string).

svn path=/trunk/mcs/; revision=31551
2004-07-28 11:53:56 +00:00
Dick Porter 0755ecdcf1 2004-07-28 Dick Porter <[email protected]>
* locales.c (string_invariant_compare_char): Fix invariant char
	compares between upper and lower cases.  Fixes bug 61458.

svn path=/branches/mono-1-0/mono/; revision=31550
2004-07-28 11:46:29 +00:00
Dick Porter 37f654c53e 2004-07-28 Dick Porter <[email protected]>
* locales.c (string_invariant_compare_char): Fix invariant char
	compares between upper and lower cases.  Fixes bug 61458.

svn path=/trunk/mono/; revision=31549
2004-07-28 11:46:24 +00:00
Atsushi Eno 920a2a0482 2004-07-28 Atsushi Enomoto <[email protected]>
* XPathDocument.cs : for .ctor() and .ctor(XmlNameTable), now it
	  creates Mono.Xml.XPath.XPathEditableDocument and thus supports
	  IXPathEditable.CreateEditor().

svn path=/trunk/mcs/; revision=31548
2004-07-28 11:22:18 +00:00
Atsushi Eno 73ba874528 2004-07-28 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: added Mono.Xml.XPath/XPathEditableDocument.cs

svn path=/trunk/mcs/; revision=31547
2004-07-28 11:21:47 +00:00
Atsushi Eno 1610596c23 2004-07-28 Atsushi Enomoto <[email protected]>
* Added XPathEditableDocument.cs.
	  - XPathEditableDocument provides IXPathEditable.
	  - XmlDocumentEditableNavigator implements XPathEditableNavigator
	    that supports CreateAttributes(), AppendChild() and so on.

	  It is nothing more than hack, and as an XPathEditableNavigator
	  provider for XPathDocument, it will be replaced by something.

svn path=/trunk/mcs/; revision=31546
2004-07-28 11:18:27 +00:00
Zoltan Varga 86b7995d07 2004-07-28 Zoltan Varga <[email protected]>
* marshal10.cs libtest.c: Remove incorrect time_t custom marshalling
	test.

svn path=/trunk/mono/; revision=31544
2004-07-28 10:21:47 +00:00
Zoltan Varga 9e1450e5d4 2004-07-28 Zoltan Varga <[email protected]>
* mono-codeman.c (mono_code_manager_invalidate): Invalidate with
	x86 break on AMD64 too.

svn path=/trunk/mono/; revision=31543
2004-07-28 09:59:18 +00:00
Atsushi Eno 03a0f59d34 2004-07-28 Atsushi Enomoto <[email protected]>
* XPathEditableNavigator.cs : Implemented InsertAfter() and
	  PrependChild(); they are virtual, not abstract.
	* XPathNavigator.cs :
	  Implemented many 2.0 virtual properties and methods that were
	  abstract in 1.x.
	  Implemented some Select() methods that uses IXmlNamespaceResolver.
	  Implemented most of ValueAsXxx() using XQueryConvert.
	  IsNode is always true. Implemented OuterXml and WriteSubtree() (but
	  actually they don't work because it depends on ReadSubtree()).

svn path=/trunk/mcs/; revision=31542
2004-07-28 09:17:27 +00:00
Atsushi Eno af9ff658c4 2004-07-28 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs : use XmlQualifiedName.Parse().

svn path=/trunk/mcs/; revision=31541
2004-07-28 09:12:16 +00:00
Atsushi Eno 2d70b54516 2004-07-28 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
	* XmlQualifiedName.cs : Added internal static Parse().
	* XmlReader.cs : use XmlQualifiedName.Parse().
	* XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
	* XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
	  Implemented 2.0 virtual methods that used to be abstract in 1.x.

svn path=/trunk/mcs/; revision=31540
2004-07-28 09:10:34 +00:00
Lluis Sanchez 52620b29fb * BasicProfileChecker.cs: Added checks for R2101, R2102, R2105, R2110, R2111
* ConformanceChecker.cs: Added check methods for schema objects.
	* WebServicesInteroperability.cs: Added checks for schema objects.

svn path=/trunk/mcs/; revision=31539
2004-07-28 09:07:44 +00:00
Lluis Sanchez 08f98cbb46 * HttpSimpleClientProtocol.cs, HttpWebClientProtocol.cs,
SoapHttpClientProtocol.cs: Implemented support for the new async model.
	* InvokeCompletedEventArgs.cs: Implemented.

svn path=/trunk/mcs/; revision=31538
2004-07-28 09:07:00 +00:00
Lluis Sanchez 1f05d4996e * corlib.dll.sources: Added new files for NET_2_0 profile:
System.Threading/ExecutionContext.cs
		System.Threading/ExecutionContextSwitcher.cs
		System.Threading/SynchronizationContext.cs
		System.Threading/SynchronizationContextSwitcher.cs

svn path=/trunk/mcs/; revision=31537
2004-07-28 09:05:42 +00:00
Lluis Sanchez ca0d337e32 * ExecutionContext.cs, ExecutionContextSwitcher.cs,
SynchronizationContext.cs, SynchronizationContextSwitcher.cs: Added 2.0
	  stubs.

svn path=/trunk/mcs/; revision=31536
2004-07-28 09:04:08 +00:00
Umadevi S a7ce4f61dd 2004-07-28 Umadevi S <[email protected]>
* OdbcCommandTest.cs - Added testcase for bug 61968. String values passed with quotes

svn path=/trunk/mcs/; revision=31535
2004-07-28 08:21:45 +00:00
Umadevi S ca6eab23b1 2004-07-28 Umadevi S ([email protected])
* OdbcParameter.cs - fixed bug 61968. String values passed with quotes

svn path=/trunk/mcs/; revision=31534
2004-07-28 08:16:02 +00:00
Umadevi S 3f20b939ae 2004-07-28 Umadevi S <[email protected]>
* OdbcCommandTest.cs - Added testcase for bug 61968. String values passed with quotes

svn path=/branches/mono-1-0/mcs/; revision=31533
2004-07-28 08:06:03 +00:00
Umadevi S 576c9bbc92 2004-07-28 Umadevi S ([email protected])
* OdbcParameter.cs - fixed bug 61968. String values passed with quotes

svn path=/branches/mono-1-0/mcs/; revision=31532
2004-07-28 08:03:28 +00:00
Ben Maurer 94a31d2c5b 2004-07-27 Ben Maurer <[email protected]>
* marshal.c: actually cache stelem.ref wrappers.

svn path=/trunk/mono/; revision=31528
2004-07-27 19:20:58 +00:00
Bernie Solomon 105825b19f 2004-07-27 Bernie Solomon <[email protected]>
* transform.c (mono_interp_transform_method):
	quick fix to cope with the fake ptr classes

svn path=/trunk/mono/; revision=31527
2004-07-27 17:42:09 +00:00
Atsushi Eno 0d16cd0f97 2004-07-27 Atsushi Enomoto <[email protected]>
* XQueryParser.jay,
	  XPath2Expression.cs,
	  XQueryModuleProlog.cs,
	  XQueryTokenizer.cs :
	  Removed SchemaContext. StepExpr and XPathAxis redesign.
	  (Partially) updated Prolog to match with XQuery 7/23/2004 spec.
	  XML comment/PI/CDATA recognition in tokenizer.

svn path=/trunk/mcs/; revision=31526
2004-07-27 16:56:41 +00:00
Jackson Harper 9a9f840c60 * Driver.cs: Make debug switch compatible with MS's add debug to
the usage.

svn path=/trunk/mcs/; revision=31525
2004-07-27 16:46:47 +00:00
Gonzalo Paniagua Javier 13c31c48e8 2004-07-27 Gonzalo Paniagua Javier <[email protected]>
* DataList.cs: s/HasChildren/HasControls()/.

svn path=/trunk/mcs/; revision=31524
2004-07-27 16:17:22 +00:00
Jordi Mas i Hernandez 1bc1e63899 fixes trackbar events, def classname, methods signature
svn path=/trunk/mcs/; revision=31523
2004-07-27 15:53:02 +00:00
Jordi Mas i Hernandez 807e4c29b5 fixes scrollbar events
svn path=/trunk/mcs/; revision=31522
2004-07-27 15:29:40 +00:00
Gonzalo Paniagua Javier 0992d44ba8 2004-07-27 Gonzalo Paniagua Javier <[email protected]>
* DataList.cs: style.

svn path=/trunk/mcs/; revision=31521
2004-07-27 15:03:49 +00:00
Gonzalo Paniagua Javier 34b3941698 2004-07-27 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: style. Reverted previous patch modification of
	TemplateSourceDirectory (failed when the control is reparented). Use
	HasControls() and Controls all over instead of _controls, as Controls
	property and HasControls() might be overriden.

svn path=/trunk/mcs/; revision=31520
2004-07-27 14:51:56 +00:00
Paolo Molaro 293b459644 Tue Jul 27 16:56:55 CEST 2004 Paolo Molaro <[email protected]>
* class.c, image.c, loader.c, cil-coff.h: lazily mmap the image
	sections and remove the mono_cli_rva_map () function.

svn path=/trunk/mono/; revision=31519
2004-07-27 14:06:30 +00:00
Carlos Guzmán Álvarez 7eac467cd8 2004-07-27 Carlos Guzman Alvarez <[email protected]>
* Mono.Security.Protocol.Tls.Handshake.Server/TlsClientKeyExchange.cs:

		- Fixed usage of the private key selection
		delegate (Thanks to Matthijs ter Woord for his feedback)

svn path=/trunk/mcs/; revision=31518
2004-07-27 13:24:42 +00:00
Paolo Molaro 78868a1795 Tue Jul 27 16:05:19 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
	numbers in the debug info (spotted by Geoff Norton,
	<[email protected]>).

svn path=/branches/mono-1-0/mono/; revision=31517
2004-07-27 13:12:55 +00:00
Paolo Molaro 53e5e3fbc7 Tue Jul 27 16:05:19 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
	numbers in the debug info (spotted by Geoff Norton, <[email protected]>).

svn path=/trunk/mono/; revision=31516
2004-07-27 13:12:48 +00:00
Paolo Molaro 2c8c8db389 Tue Jul 27 15:58:19 CEST 2004 Paolo Molaro <[email protected]>
* debug-mono-symfile.c: fix one more endianess issue, from a patch
	by Geoff Norton (<[email protected]>).

svn path=/branches/mono-1-0/mono/; revision=31515
2004-07-27 13:11:48 +00:00
Paolo Molaro f6c682f3fa Tue Jul 27 15:58:19 CEST 2004 Paolo Molaro <[email protected]>
* debug-mono-symfile.c: fix one more endianess issue, from a patch
	by Geoff Norton (<[email protected]>).

svn path=/trunk/mono/; revision=31514
2004-07-27 13:11:34 +00:00
Paolo Molaro f363291341 Tue Jul 27 15:47:17 CEST 2004 Paolo Molaro <[email protected]>
* class.c: fix class loads for pointer types (typeof(int) !=
	typeof(int*)).

svn path=/branches/mono-1-0/mono/; revision=31513
2004-07-27 12:55:01 +00:00
nobody dd866d6882 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mono/; revision=31512
2004-07-27 12:55:01 +00:00
Paolo Molaro ade27644b0 Tue Jul 27 15:47:17 CEST 2004 Paolo Molaro <[email protected]>
* class.c: fix class loads for pointer types (typeof(int) !=
	typeof(int*)).

svn path=/trunk/mono/; revision=31511
2004-07-27 12:54:15 +00:00
Jordi Mas i Hernandez 85c9a776da changes to be able to run winforms samples
svn path=/trunk/mcs/; revision=31508
2004-07-27 10:38:17 +00:00
Jochen Wezel 10b6e8d57f Fixed API: added missing attribute System.Serializable
svn path=/trunk/mcs/; revision=31507
2004-07-27 09:49:44 +00:00
Jochen Wezel 77151c5120 Ooops: use System.Serializable instead of System.SerializableAttribute and System.Flags instead of System.FlagAttribute
svn path=/trunk/mcs/; revision=31506
2004-07-27 09:46:46 +00:00
Jochen Wezel fcd008e54d Fixed API: removed public constructor
svn path=/trunk/mcs/; revision=31505
2004-07-27 09:22:11 +00:00
Jochen Wezel 82bc8e37f4 Fixed API: removed public constructors
svn path=/trunk/mcs/; revision=31504
2004-07-27 09:21:09 +00:00
Jochen Wezel 73e673d6a1 Fixed API: removed public constructor
svn path=/trunk/mcs/; revision=31503
2004-07-27 09:12:05 +00:00
Jochen Wezel 72f2be0bf1 Fixed API: Added missing attribute System.SerializableAttribute to all enumerations
svn path=/trunk/mcs/; revision=31502
2004-07-27 09:09:01 +00:00
Jochen Wezel 29f2b3be89 Fixed API: removed public constructor
svn path=/trunk/mcs/; revision=31501
2004-07-27 08:56:55 +00:00
Alon Gazit 33482d662f Replaced foreach statement with for statement,in order to improve performence.
svn path=/trunk/mcs/; revision=31500
2004-07-27 08:01:13 +00:00
Alon Gazit 80496539cb WebControl.cs: changed RenderBeginTag()to use TagKey instead of TagName.
Unit.cs : changed GetTypeFromString() and GetStringFromPixel() to use
switch statements in order to improve performance.

svn path=/trunk/mcs/; revision=31499
2004-07-27 07:38:30 +00:00
Jochen Wezel 9afa8a4b52 Fixed Cr and Lf assignments
svn path=/trunk/mcs/; revision=31498
2004-07-27 07:03:13 +00:00
Alon Gazit a54490991c Changed the implementation of TemplateSourceDirectory and GetDefaultName().
replaced foreach statements with for statements, in order to improve
performence.

svn path=/trunk/mcs/; revision=31497
2004-07-27 06:56:25 +00:00
Alon Gazit 35835d1b08 changed the implementation of GetViewStateString().
if the view state object is null there is no need to perform Serialization.

svn path=/trunk/mcs/; revision=31496
2004-07-27 06:24:33 +00:00
Atsushi Eno bbe29a6f83 2004-07-27 Atsushi Enomoto <[email protected]>
* DataSet.cs : on serialization to XmlWriter, XmlConvert should be
	  used. There were also some culture dependency problems to write int.

svn path=/branches/mono-1-0/mcs/; revision=31495
2004-07-27 04:42:31 +00:00
Atsushi Eno cbe75fb35e 2004-07-27 Atsushi Enomoto <[email protected]>
* DataSet.cs : on serialization to XmlWriter, XmlConvert should be
	  used. There were also some culture dependency problems to write int.

svn path=/trunk/mcs/; revision=31494
2004-07-27 04:37:43 +00:00
Bernie Solomon 266aedcc78 2004-07-26 Bernie Solomon <[email protected]>
* mintops.def: more options on ICALL op code

	* interp.c: cope with exception in ICALL ops, more of them

	* transforms.c: more ICALL opcodes

svn path=/trunk/mono/; revision=31490
2004-07-27 02:08:30 +00:00
Martin Baulig 8539fb80be 2004-07-27 Martin Baulig <[email protected]>
Added debugging support to ilasm :-)

	* Makefile: Depend on Mono.CSharp.Debugger.dll (this is only
	exposed in DebuggingInfo.cs, so we can easily change that).

	* Driver.cs: Added --debug command line argument to create
	debugging info; this'll create a .mdb symbol file.

svn path=/trunk/mcs/; revision=31489
2004-07-26 23:10:38 +00:00
Martin Baulig db685f3c5c 2004-07-27 Martin Baulig <[email protected]>
* IInstr.cs (IInstr): Made this an abstract class and not an
	interface, added a .ctor which takes a Location.
	(IInstr.Location): New public readonly field.

	* CodeGen.cs (CodeGen.SymbolWriter): New public property.
	(CodeGen.BeginSourceFile, EndSourceFile): New public methods.
	(CodeGen.EndMethodDef): Take a `Location' argument.
	(CodeGen.Write): Create debugging info if the user requested it.

	* MethodDef.cs (MethodDef.ctor): Added `CodeGen codegen' and
	`Location start' arguments.  If the user requested debugging
	information, register ourselves with the symbol writer.
	(MethodDef.WriteCode): Emit debugging information.

	* DebuggingInfo.cs: New file.

svn path=/trunk/mcs/; revision=31488
2004-07-26 23:10:09 +00:00
Martin Baulig cff9ebd5c6 2004-07-27 Martin Baulig <[email protected]>
* ILTokenizer.cs (ILTokenizer.Location): New public property.

svn path=/trunk/mcs/; revision=31487
2004-07-26 23:09:25 +00:00
Martin Baulig e5d3fefab7 2004-07-27 Martin Baulig <[email protected]>
* PEAPI.cs (CILInstructions.Offset): New public property.

svn path=/trunk/mcs/; revision=31486
2004-07-26 22:58:24 +00:00
Martin Baulig 8cfc5fecb2 2004-07-27 Martin Baulig <[email protected]>
* debug-mono-symfile.c (mono_debug_open_mono_symbol_file): Support
	reading the debugging information from an external ".mdb" file.

svn path=/trunk/mono/; revision=31485
2004-07-26 22:55:35 +00:00
Martin Baulig 4569968014 2004-07-27 Martin Baulig <[email protected]>
* MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the methods
	according to their token values.
	(MonoSymbolFile.ReadSymbolFile): Support reading the debugging
	information from an external ".mdb" file.

	* MonoSymbolTable.cs
	(SourceFileEntry): Make the .ctor protected, not internal.
	(SourceFileEntry.DefineMethod): This is no longer specific to
	System.Reflection(.Emit).
	(MethodEntry): We don't need the class and parameter types, the
	JIT is already getting this information automatically.
	(MethodEntry.ClassTypeIndex): Make this obsolete.
	(MethodEntry.ParamTypeIndicies): Likewise.

svn path=/trunk/mcs/; revision=31484
2004-07-26 22:53:23 +00:00
Martin Baulig 0796ced4f9 Use my correct email address in the copyright info.
svn path=/trunk/mcs/; revision=31481
2004-07-26 18:21:57 +00:00
Lluis Sanchez 65bd7e1e63 * MapCodeGenerator.cs: CreateFieldMember now adds the field to the class,
no need to add it after the call.
	* SoapSchemaImporter.cs: Implemented 2.0 constructors.

svn path=/trunk/mcs/; revision=31480
2004-07-26 18:18:43 +00:00
Lluis Sanchez 7e9f3e17a2 * HttpSimpleProtocolImporter.cs: Implemented internal method to support
the new asyc model.
	* ProtocolImporter.cs: Generate code for the new async model.
	  Added support for generating server skeletons in addition to client
	  proxies.
	* ServiceDescriptionImporter.cs: Removed unneded check.
	* SoapProtocolImporter.cs: Added support for generating server skeletons in
	  addition to client proxies.

svn path=/trunk/mcs/; revision=31479
2004-07-26 18:18:02 +00:00
Gonzalo Paniagua Javier 91e096c3e7 2004-07-26 Gonzalo Paniagua Javier <[email protected]>
* WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
	([email protected]).

svn path=/branches/mono-1-0/mcs/; revision=31478
2004-07-26 18:06:58 +00:00
Gonzalo Paniagua Javier 5ded01db1e 2004-07-26 Gonzalo Paniagua Javier <[email protected]>
* WebProxy.cs: fix scheme detection. Patch by Konstantin Triger
	([email protected]).

svn path=/trunk/mcs/; revision=31477
2004-07-26 18:02:17 +00:00
Martin Baulig cb670640c1 Merged.
svn path=/trunk/mcs/; revision=31476
2004-07-26 17:48:36 +00:00
Martin Baulig 84cd139e90 Removed unneeded using clause.
svn path=/trunk/mcs/; revision=31475
2004-07-26 17:45:53 +00:00
Jordi Mas i Hernandez 0fe0119e67 Theme support
svn path=/trunk/mcs/; revision=31474
2004-07-26 17:42:03 +00:00
Martin Baulig 1cd1371268 Removed unneeded using.
svn path=/trunk/mcs/; revision=31473
2004-07-26 17:40:07 +00:00
Rafael Teixeira df8d43409a misplaced line in vb source, causing a System.ArgumentNullException in the synclock execution during test
svn path=/trunk/mcs/; revision=31472
2004-07-26 15:25:30 +00:00
Rafael Teixeira 536f366d53 2004/07/26 Rafael Teixeira <[email protected]>
* mb-parser.jay : First try at SyncLock Statement #53230

svn path=/trunk/mcs/; revision=31471
2004-07-26 15:18:51 +00:00
Jackson Harper f355746067 fix changelog entry
svn path=/trunk/mcs/; revision=31470
2004-07-26 14:15:59 +00:00
Atsushi Eno 785c451928 2004-07-26 Atsushi Enomoto <[email protected]>
* XPathDocument.cs : added missing && not-likely-to-be-removed members.
	* XPathEditableNavigator.cs : added BuildSubTree().
	* XPathException.cs : added missing methods. Hide Message in NET_2_0.

svn path=/trunk/mcs/; revision=31469
2004-07-26 14:00:15 +00:00
Atsushi Eno 94832930cf 2004-07-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs : Implemented ReadValueAsXxx() except for
	  ReadValueAsList().
	* XmlTextReader.cs : implemented them as well, just invoking
	  base.ReadValueAsXxx ().
	* XmlWriter.cs : implemented some WriteValue() methods.

svn path=/trunk/mcs/; revision=31468
2004-07-26 13:59:43 +00:00
Atsushi Eno 63f6c7b37c oops, forgot to commit ChangeLog.
svn path=/trunk/mcs/; revision=31467
2004-07-26 13:50:58 +00:00
Lluis Sanchez 4451f3bf54 * SoapMessageFormater.cs: In BuildSoapMessageFromMethodResponse, add the
return value to the SoapMessage even if it is null. This fixes bug #61837.

svn path=/branches/mono-1-0/mcs/; revision=31465
2004-07-26 13:12:00 +00:00
Lluis Sanchez b1672ecc12 * SoapMessageFormater.cs: In BuildSoapMessageFromMethodResponse, add the
return value to the SoapMessage even if it is null. This fixes bug #61837.

svn path=/trunk/mcs/; revision=31464
2004-07-26 13:10:55 +00:00
Jordi Mas i Hernandez 2faf474654 initial messagebox implementation
svn path=/trunk/mcs/; revision=31463
2004-07-26 11:41:35 +00:00
Atsushi Eno 5d8774e1ec 2004-07-26 Atsushi Enomoto <[email protected]>
* Makefile: added System.Data.SqlXml.dll as a working target.

svn path=/trunk/mcs/; revision=31462
2004-07-26 10:46:25 +00:00
Atsushi Eno 81ed35d738 2004-07-26 Atsushi Enomoto <[email protected]>
* Makefile : added call to jay for creating XQueryParser.cs.
	* System.Xml.dll.sources : added XQueryParser.cs, XQueryTokenizer.cs,
	  XQueryModuleProlog.cs, XPath2Expression.cs and XQueryExpression.cs.

svn path=/trunk/mcs/; revision=31461
2004-07-26 10:39:42 +00:00
Atsushi Eno 3306d34b98 2004-07-26 Atsushi Enomoto <[email protected]>
* skelton-2.0.cs,
	  XQueryParser.jay,
	  XQueryTokenizer.cs,
	  XQueryModuleProlog.cs,
	  XPath2Expression.cs,
	  XQueryExpression.cs : added.

svn path=/trunk/mcs/; revision=31460
2004-07-26 10:35:51 +00:00
Anirban Bhattacharjee 0ea420e9a2 2004-07-26 Anirban Bhattacharjee <[email protected]>
* InheritanceC3.vb: Little correction in the test

svn path=/trunk/mcs/; revision=31458
2004-07-26 08:35:47 +00:00
Martin Baulig 372221bfa2 2004-07-25 Martin Baulig <[email protected]>
* Makefile (test-generic): Correctly set the MONO_PATH to run
	things in the v2.0 environment.
	(test-generic-2): New target.
	(test-everything): New target to run everything.

svn path=/trunk/mcs/; revision=31455
2004-07-25 17:25:26 +00:00
Martin Baulig 7e14f7a271 Small fix.
svn path=/trunk/mcs/; revision=31454
2004-07-25 16:09:49 +00:00
Martin Baulig c1412ab126 Ooops, I broke this last time I merged.
svn path=/trunk/mcs/; revision=31452
2004-07-25 05:46:03 +00:00
Martin Baulig 03a1d6aec1 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31451
2004-07-25 05:12:59 +00:00
Martin Baulig 6b95f23ba8 2004-07-25 Martin Baulig <[email protected]>
* 2test-12.cs, 2test-13.cs: New tests for partial classes.

svn path=/trunk/mcs/; revision=31450
2004-07-25 01:45:13 +00:00
Martin Baulig 77e4de32ac 2004-07-25 Martin Baulig <[email protected]>
* class.cs
	(TypeContainer.RegisterOrder): Removed, this was unused.
	(TypeContainer, interface_order): Removed.
	(TypeContainer.AddClass, AddStruct, AddInterface): Take a
	TypeContainer as argument since we can also be called with a
	`PartialContainer' for a partial class/struct/interface.
	(TypeContainer.IsInterface): Use `Kind == Kind.Interface' instead
	of checking whether we're an `Interface' - we could be a
	`PartialContainer'.
	(PartialContainer.Register): Override; call
	AddClass()/AddStruct()/AddInterface() on our parent.

	* cs-parser.jay (interface_member_declaration): Add things to the
	`current_container', not the `current_class'.

	* rootcontext.cs (RegisterOrder): The overloaded version which
	takes an `Interface' was unused, removed.

	* typemanager.cs (TypeManager.LookupInterface): Return a
	`TypeContainer', not an `Interface'.
	(TypeManager.IsInterfaceType): The `builder_to_declspace' may
	contain a `PartialContainer' for an interface, so check it's
	`Kind' to figure out what it is.

svn path=/trunk/mcs/; revision=31449
2004-07-25 01:44:09 +00:00
Martin Baulig 9852a8730a 2004-07-25 Martin Baulig <[email protected]>
* class.cs (Class.DefaultTypeAttributes): New public constant.
	(Struct.DefaultTypeAttributes): Likewise.
	(Interface.DefaultTypeAttributes): Likewise.
	(PartialContainer.TypeAttr): Override this and add the
	DefaultTypeAttributes.

svn path=/trunk/mcs/; revision=31447
2004-07-24 23:12:54 +00:00
Martin Baulig c76f6d1add 2004-07-25 Martin Baulig <[email protected]>
* decl.cs (DeclSpace.Emit): Removed the `TypeContainer' argument,
	we can just use the `Parent' field instead.

svn path=/trunk/mcs/; revision=31446
2004-07-24 22:52:07 +00:00
Martin Baulig 665e8f6487 2004-07-25 Martin Baulig <[email protected]>
* class.cs (TypeContainer.Emit): Renamed to EmitType().

svn path=/trunk/mcs/; revision=31445
2004-07-24 22:10:06 +00:00
Martin Baulig 3e58e0f978 2004-07-25 Martin Baulig <[email protected]>
* class.cs (TypeContainer.DefineMembers): Call DefineMembers() on
	our parts before defining any methods.
	(TypeContainer.VerifyImplements): Make this virtual.
	(ClassPart.VerifyImplements): Override and call VerifyImplements()
	on our PartialContainer.

svn path=/trunk/mcs/; revision=31444
2004-07-24 22:02:19 +00:00
Ben Maurer ebea1b8959 docs
svn path=/trunk/mcs/; revision=31443
2004-07-24 21:15:46 +00:00
Martin Baulig 671876b396 2004-07-25 Martin Baulig <[email protected]>
* iterators.cs (Iterator.Define): Renamed to DefineIterator().

	* decl.cs (DeclSpace.Define): Removed the `TypeContainer'
	argument, we can just use the `Parent' field instead.

	* class.cs
	(MemberBase.CheckBase): Removed the `TypeContainer' argument.
	(MemberBase.DoDefine): Likewise.

svn path=/trunk/mcs/; revision=31442
2004-07-24 21:08:36 +00:00
Martin Baulig 4b618e5a49 2004-07-24 Martin Baulig <[email protected]>
* decl.cs (MemberCore.Parent): New public field.
	(DeclSpace.Parent): Moved to MemberCore.

	* class.cs (MethodCore.ds): Removed; use `Parent' instead.
	(MemberBase.ctor): Added TypeContainer argument, pass it to our
	parent's .ctor.
	(FieldBase, Field, Operator): Likewise.
	(EventProperty.ctor): Take a TypeContainer instead of a DeclSpace.
	(EventField, Event): Likewise.

svn path=/trunk/mcs/; revision=31441
2004-07-24 20:20:03 +00:00
Martin Baulig 1c8f1952e9 Finally go back to backticks again.
svn path=/trunk/mcs/; revision=31440
2004-07-24 19:15:52 +00:00
Martin Baulig bdb04c21c6 2004-07-24 Martin Baulig <[email protected]>
* reflection.c (mono_image_get_type_info): Only write a class
	layout entry if we actually have a size or a packing size.

svn path=/branches/mono-1-0/mono/; revision=31439
2004-07-24 19:13:13 +00:00
Martin Baulig efa7dbbefb 2004-07-24 Martin Baulig <[email protected]>
* TypeBuilder.cs (TypeBuilder.UnspecifiedTypeSize): Set this to 0
	and initialize it to 0 everywhere.

svn path=/branches/mono-1-0/mcs/; revision=31438
2004-07-24 19:12:57 +00:00
Martin Baulig e9f6d6126b 2004-07-24 Martin Baulig <[email protected]>
* TypeBuilder.cs (TypeBuilder.UnspecifiedTypeSize): Set this to 0
	and initialize it to 0 everywhere.

svn path=/trunk/mcs/; revision=31437
2004-07-24 19:11:50 +00:00
Martin Baulig 051ff83952 2004-07-24 Martin Baulig <[email protected]>
* reflection.c (mono_image_get_type_info): Only write a class
	layout entry if we actually have a size or a packing size.

svn path=/trunk/mono/; revision=31434
2004-07-24 19:11:46 +00:00
Zoltan Varga e2becf58a9 2004-07-24 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_output_basic_block): Add CEE_CONV_U8/I8.

svn path=/trunk/mono/; revision=31433
2004-07-24 18:48:23 +00:00
Zoltan Varga ed8732872b 2004-07-24 Zoltan Varga <[email protected]>
* *-amd64*.*: Ongoing AMD64 work.

svn path=/trunk/mono/; revision=31432
2004-07-24 18:31:53 +00:00
Zoltan Varga a04ffadd7e 2004-07-24 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: Ongoing JIT work.

svn path=/trunk/mono/; revision=31431
2004-07-24 18:29:32 +00:00
Zoltan Varga 54d3a8f59e 2004-07-23 zovarga <[email protected]>
* monobitset.c (my_g_bit_nth_msf): Add workaround for glib 2.2 bug on
	64 bit platforms.

svn path=/trunk/mono/; revision=31428
2004-07-23 20:08:45 +00:00
Zoltan Varga 617d43420c 2004-07-23 Zoltan Varga <[email protected]>
* inssel-long.brg: Implement CONV_I8/CONV_U8 in the backends.

	* *-amd64*: Ongoing AMD64 work.

svn path=/trunk/mono/; revision=31427
2004-07-23 20:07:41 +00:00
Zoltan Varga e395c57b2a 2004-07-23 Zoltan Varga <[email protected]>
* amd64/amd64-codegen.h: Ongoing JIT work.

svn path=/trunk/mono/; revision=31426
2004-07-23 20:05:59 +00:00
Dick Porter 473c412a24 2004-07-23 Dick Porter <[email protected]>
* configure.in: Changes for FreeBSD thread support by John
	Merryweather Cooper <[email protected]>.

svn path=/branches/mono-1-0/mono/; revision=31425
2004-07-23 19:32:12 +00:00
Dick Porter 37123e347e 2004-07-23 Dick Porter <[email protected]>
* configure.in: Changes for FreeBSD thread support by John
	Merryweather Cooper <[email protected]>.

svn path=/trunk/mono/; revision=31424
2004-07-23 19:32:10 +00:00
Jackson Harper c76c5a2be9 * MethodDef.cs: Params are 1 based if the method is static.
svn path=/trunk/mcs/; revision=31423
2004-07-23 19:17:05 +00:00
Jackson Harper fcef4ebc68 * PEAPI.cs: Make the type index modifiable so ClassRefInsts will
be emitted properly. This is in desperate need of some API
	love.

svn path=/trunk/mcs/; revision=31422
2004-07-23 19:14:30 +00:00
Zoltan Varga a0c137790b 2004-07-23 zovarga <[email protected]>
* mini-arch.h: Add AMD64 support.

svn path=/trunk/mono/; revision=31421
2004-07-23 16:16:17 +00:00
Zoltan Varga 8fd846bf0a 2004-07-23 zovarga <[email protected]>
* mini-sparc.c (mono_arch_is_inst_imm): New arch dependent function.

svn path=/trunk/mono/; revision=31420
2004-07-23 16:15:32 +00:00
Zoltan Varga b173582247 2004-07-23 zovarga <[email protected]>
* mini.h: Add new arch dependent function mono_arch_is_inst_imm.

	* mini-ops.h: Add new opcodes.

	* Makefile.am: Add AMD64 support.

svn path=/trunk/mono/; revision=31419
2004-07-23 16:13:03 +00:00
Zoltan Varga b6fe7eeddd 2004-07-23 zovarga <[email protected]>
* inssel.brg inssel-long32.brg inssel-long.brg: Move mul/div and shift
	rules into the inssel-long*.brg files.

svn path=/trunk/mono/; revision=31418
2004-07-23 16:11:34 +00:00
Zoltan Varga edf77a4a9a 2004-07-23 zovarga <[email protected]>
* *-amd64.*: Add beginnings of AMD64 backend.

svn path=/trunk/mono/; revision=31417
2004-07-23 16:08:49 +00:00
Zoltan Varga a18e604768 2004-07-23 zovarga <[email protected]>
* amd64/amd64-codegen.h: Ongoing JIT work.

svn path=/trunk/mono/; revision=31416
2004-07-23 16:07:08 +00:00
Atsushi Eno adb3e06e63 2004-07-23 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Added internal XdtNamespace constant. don't fill
	  schemaset compoenents here.
	* XmlSchemaAttribute.cs : Implemented AttributeSchemaType.
	* XmlSchemaElement.cs : Implemented ElementSchemaType.
	* XmlSchemaSimpleType.cs : Added predefined simple types
	* XmlSchemaType.cs : Implemented GetBuiltInSimpleType().
	* XmlSchemaDatatype.cs : Allow Xdt namespaces too (not completed;
	  quick fix for GetBuiltInSimpleType()).

svn path=/trunk/mcs/; revision=31415
2004-07-23 16:07:03 +00:00
Atsushi Eno 00b474ee98 2004-07-23 Atsushi Enomoto <[email protected]>
* XmlQueryCompileException.cs, XmlQueryException.cs :
	  added internal constructor that supplies error location.
	  Removed Message property.

svn path=/trunk/mcs/; revision=31414
2004-07-23 16:03:50 +00:00
Atsushi Eno 219c2e2923 2004-07-23 Atsushi Enomoto <[email protected]>
* XQueryCommand.cs : Implemented a bit (added nonexposed xquery
	  parser call).

svn path=/trunk/mcs/; revision=31413
2004-07-23 15:44:04 +00:00
Atsushi Eno a359e84040 2004-07-23 Atsushi Enomoto <[email protected]>
* System.Data.SqlXml.dll.sources : Removed UpdateEventArgs.cs,
	  XmlAdapter.cs, XmlUpdateEventArgs.cs, SqlQueryOptions.cs,
	  SqlQueryPlan.cs, XmlMapping.cs and XmlMappingDictionary.cs.

svn path=/trunk/mcs/; revision=31412
2004-07-23 15:43:24 +00:00
Atsushi Eno be620c3408 2004-07-23 Atsushi Enomoto <[email protected]>
* started ChangeLog.
	* DBObject.cs : XmlQueryArgumentList is now XmlArgumentList.

svn path=/trunk/mcs/; revision=31411
2004-07-23 15:35:30 +00:00
Lluis Sanchez 30fe4d3cb5 * CodeGenerationOptions.cs: Made the class internal for the 1.1 profile.
* ImportContext.cs: Implemented.
	* MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
	  options for 2.0. Implemented support for generating properties instead of
	  fields.
	* XmlSchemaImporter.cs: Added support for sharing types.

svn path=/trunk/mcs/; revision=31410
2004-07-23 15:21:14 +00:00
Lluis Sanchez e944d50cef * ServiceDescriptionImporter.cs: Fixed bug when getting documents from a
reference.
	* SoapProtocolImporter.cs: Create code exportes using the corrent generation
	  options. Added final attribute to the generated methods (so generated
	  methods are not virtual any more).
	* WebServicesInteroperability.cs: Fixed bug when getting documents from a
	  reference. Added check for Import elements.

svn path=/trunk/mcs/; revision=31409
2004-07-23 15:19:33 +00:00
Neale Ferguson 5c810089c1 Fix locked operations.
svn path=/trunk/mono/; revision=31406
2004-07-23 13:42:06 +00:00
Atsushi Eno aa7574acdb 2004-07-23 Atsushi Enomoto <[email protected]>
* XPathNodeIterator.cs : implemented 2.0 GetEnumerator().

svn path=/trunk/mcs/; revision=31405
2004-07-23 06:30:05 +00:00
Martin Baulig 8ba518e76f 2004-07-23 Martin Baulig <[email protected]>
* class.cs (PartialContainer): New public class.
	(ClassPart): New public class.
	(TypeContainer): Added support for partial classes.
	(TypeContainer.GetClassBases): Splitted some of the functionality
	out into GetNormalBases() and GetPartialBases().

	* cs-tokenizer.cs (Token.PARTIAL): New token.
	(Tokenizer.consume_identifier): Added some hacks to recognize
	`partial', but only if it's immediately followed by `class',
	`struct' or `interface'.

	* cs-parser.jay: Added support for partial clases.

svn path=/trunk/mcs/; revision=31403
2004-07-23 04:23:16 +00:00
Martin Baulig d760e66977 2004-07-23 Martin Baulig <[email protected]>
* class.cs (MethodCore.ds): Made this a `TypeContainer' instead of
	a `DeclSpace' and also made it readonly.
	(MethodCore.ctor): Take a TypeContainer instead of a DeclSpace.
	(Method.ctor, Constructor.ctor, Destruktor.ctor): Likewise.
	(PropertyBase.ctor, Property.ctor, Indexer.ctor): Likewise.

	* cs-parser.jay: Pass the `current_class', not the
	`current_container' (at the moment, this is still the same thing)
	to a new Method, Property, Event, Indexer or Constructor.

svn path=/trunk/mcs/; revision=31401
2004-07-23 03:55:13 +00:00
Martin Baulig d625202604 2004-07-23 Martin Baulig <[email protected]>
* cs-parser.jay (CSharpParser): Added a new `current_class' field
	and removed the `current_interface' one.
	(struct_declaration, class_declaration, interface_declaration):
	Set `current_class' to the newly created class/struct/interface;
	set their `Bases' and call Register() before parsing their body.

svn path=/trunk/mcs/; revision=31398
2004-07-23 03:11:04 +00:00
Martin Baulig 168c288631 2004-07-23 Martin Baulig <[email protected]>
* class.cs (Kind): New public enum.
	(TypeContainer): Made this class abstract.
	(TypeContainer.Kind): New public readonly field.
	(TypeContainer.CheckDef): New public method; moved here from
	cs-parser.jay.
	(TypeContainer.Register): New public abstract method.
	(TypeContainer.GetPendingImplementations): New public abstract
	method.
	(TypeContainer.GetClassBases): Removed the `is_class' and
	`is_iface' parameters.
	(TypeContainer.DefineNestedTypes): Formerly known as
	DoDefineType().
	(ClassOrStruct): Made this class abstract.

	* tree.cs (RootTypes): New public type.

svn path=/trunk/mcs/; revision=31397
2004-07-23 02:45:15 +00:00
Martin Baulig 4e6f20adb3 Another test for partial classes.
svn path=/trunk/mcs/; revision=31396
2004-07-23 02:00:59 +00:00
Martin Baulig 3d3dd9eb8e 2004-07-23 Martin Baulig <[email protected]>
* 2test-10.cs, 1test-11.cs: New tests for partial classes.

svn path=/trunk/mcs/; revision=31395
2004-07-23 01:54:28 +00:00
Martin Baulig ce6ee30fe4 2004-07-23 Martin Baulig <[email protected]>
* cs0260.cs, cs0260-2.cs, cs0261.cs, cs0262.cs, cs0263.cs: New
	tests for partial classes.

svn path=/trunk/mcs/; revision=31394
2004-07-22 23:06:24 +00:00
Miguel de Icaza 5e963bcf5d Up
svn path=/trunk/mcs/; revision=31392
2004-07-22 22:13:49 +00:00
Geoff Norton ff504ef4a1 Patch for bug #61802 (Approved by miguel)
svn path=/branches/mono-1-0/mcs/; revision=31390
2004-07-22 19:31:57 +00:00
Geoff Norton b287d431b5 Patch for bug #61802 (Approved by miguel)
svn path=/trunk/mcs/; revision=31389
2004-07-22 19:30:21 +00:00
Ben Maurer b286bf5179 2004-07-22 Ben Maurer <[email protected]>
* mini.c (print_dfn): commenting out the code that prints
	the cil. With -O=deadce, this makes -v -v crash.

	* cpu-pentium.md: make checkthis have a length of 2

svn path=/trunk/mono/; revision=31388
2004-07-22 19:29:49 +00:00
Dick Porter 773b2953ed 2004-07-22 Dick Porter <[email protected]>
* timed-thread.c:
	* threads.c: Move the destruction of the internal thread data to
	after the thread has been joined.  Fixes bug 61418.

svn path=/branches/mono-1-0/mono/; revision=31387
2004-07-22 19:28:43 +00:00
Dick Porter 9a7d3973b2 2004-07-22 Dick Porter <[email protected]>
* timed-thread.c:
	* threads.c: Move the destruction of the internal thread data to
	after the thread has been joined.  Fixes bug 61418.

svn path=/trunk/mono/; revision=31386
2004-07-22 19:28:41 +00:00
Martin Baulig 13f40a38f3 2004-07-22 Martin Baulig <[email protected]>
* ILGenerator.cs (ILGenerator.BeginFaultBlock): Implemented.

svn path=/trunk/mcs/; revision=31385
2004-07-22 18:39:43 +00:00
Ben Maurer 26082385ee 2004-07-22 Ben Maurer <[email protected]>
* mini.c (print_dfn): commenting out the code that prints
	the cil. With -O=deadce, this makes -v -v crash.

svn path=/trunk/mono/; revision=31384
2004-07-22 18:09:45 +00:00
Duncan Mak 742f90127f 2004-07-21 Duncan Mak <[email protected]>
* DictionaryBase.cs: Rename the dictionary field to hashtable,
	which causes a serialization interop bug. Fixes bug #61721.

svn path=/branches/mono-1-0/mcs/; revision=31383
2004-07-22 18:07:30 +00:00
Duncan Mak 7ac6994303 2004-07-21 Duncan Mak <[email protected]>
* DictionaryBase.cs: Rename the dictionary field to hashtable,
	which causes a serialization interop bug. Fixes bug #61721.

svn path=/trunk/mcs/; revision=31382
2004-07-22 18:06:00 +00:00
Lluis Sanchez d1e3e4a4ec * Makefile: Install gmcs.exe.config file together with gmcs.exe.
* gmcs.exe.config: Renamed from mcs.exe.config. Added supportedRuntime
	entry to make sure it runs in the correct runtime version.

svn path=/trunk/mcs/; revision=31381
2004-07-22 18:01:58 +00:00
Martin Baulig 589971802b Oooops.
svn path=/trunk/mcs/; revision=31380
2004-07-22 17:51:53 +00:00
Lluis Sanchez 3a8023de4a * ProtocolImporter.cs: Added some internal properties needed for 2.0
features.
	* ServiceDescriptionImporter.cs: Implemented some 2.0 methods.
	* SoapProtocolImporter.cs: Create xml importers using the correct
	  ImportContext and generation options.
	* WebReference.cs: It is now internal for 1.1 profile. Implemented some
	  properties.
	* CodeGenerationOptions.cs: Made internal in 1.1 profile.
	* ImportContext.cs: Implemented.
	* XmlSchemaImporter.cs: Implemented some 2.0 constructors.

svn path=/trunk/mcs/; revision=31379
2004-07-22 17:48:00 +00:00
Lluis Sanchez 6ac70f813a * CSharpCodeCompiler.cs: Hack to make code generation work in 2.0.
svn path=/trunk/mcs/; revision=31378
2004-07-22 17:36:52 +00:00
Jordi Mas i Hernandez 51e69e4674 link label: check link overlapping, implement events, and fixes
svn path=/trunk/mcs/; revision=31377
2004-07-22 15:22:19 +00:00
Martin Baulig ca782149cd Fixed and enabled test-280.
svn path=/trunk/mcs/; revision=31376
2004-07-22 14:27:15 +00:00
Martin Baulig a0a7d7e255 2004-07-22 Martin Baulig <[email protected]>
* test-281.cs: New test.

svn path=/trunk/mcs/; revision=31375
2004-07-22 13:56:14 +00:00
Martin Baulig a3b0e4b652 2004-07-20 Martin Baulig <[email protected]>
* tree.cs (Tree.RecordNamespace): Removed.
	(Tree.Namespaces): Removed.

	* rootcontext.cs (RootContext.IsNamespace): Removed.

	* cs-parser.jay (namespace_declaration): Just create a new
	NamespaceEntry here.

svn path=/trunk/mcs/; revision=31374
2004-07-22 13:51:24 +00:00
Martin Baulig 27f8787c6c **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31372
2004-07-22 13:43:10 +00:00
Sachin Kumar 534c7a2c2a Added license
svn path=/trunk/mcs/; revision=31371
2004-07-22 09:37:39 +00:00
Lluis Sanchez 8dfa8e485d * ObjRef.cs: Fixed type check in in ObjRef constructor. The requested class
must be the object class or a base class. This fixes bug #61249.

svn path=/branches/mono-1-0/mcs/; revision=31369
2004-07-22 09:25:59 +00:00
Lluis Sanchez c7229c7551 * ObjRef.cs: Fixed type check in in ObjRef constructor. The requested class
must be the object class or a base class. This fixes bug #61249.

svn path=/trunk/mcs/; revision=31368
2004-07-22 09:24:36 +00:00
Lluis Sanchez fee3f7c382 * Environment.cs: Return the MS.NET 2.0 beta1 runtime version for the
NET_2_0 profile.

svn path=/trunk/mcs/; revision=31367
2004-07-22 08:20:11 +00:00
Lluis Sanchez 3cce485c67 * MethodCall.cs: Use RemotingServices.GetMethodBaseFromName to get the
MethodBase from the method name. This fixes bug #61774.

svn path=/branches/mono-1-0/mcs/; revision=31366
2004-07-22 08:17:59 +00:00
Lluis Sanchez 12e755d344 * RemotingServices.cs: Changed GetMethodBaseFromMethodMessage so its code
can be reused internally. Also fixed bug when gettting a method from an
	  interface.

svn path=/branches/mono-1-0/mcs/; revision=31365
2004-07-22 08:17:32 +00:00
Sachin Kumar 0fe27d146d Script to executes exe's and store results in html format.
svn path=/trunk/mcs/; revision=31364
2004-07-22 08:15:53 +00:00
Lluis Sanchez 9ced887f71 * MethodCall.cs: Use RemotingServices.GetMethodBaseFromName to get the
MethodBase from the method name. This fixes bug #61774.

svn path=/trunk/mcs/; revision=31363
2004-07-22 08:14:36 +00:00
Lluis Sanchez a54b2d7817 * RemotingServices.cs: Changed GetMethodBaseFromMethodMessage so its code
can be reused internally. Also fixed bug when gettting a method from an
	  interface.

svn path=/trunk/mcs/; revision=31362
2004-07-22 08:14:10 +00:00
Sachin Kumar 4054f4d83f Added VB runtime tests
svn path=/trunk/mcs/; revision=31361
2004-07-22 08:05:47 +00:00
Anirban Bhattacharjee 8156b22f87 2004-07-22 Anirban Bhattacharjee <[email protected]>
* argument.cs:
        * expression.cs:
                Little betterment in resolution of parameter with Addressof operator in method argumen

svn path=/trunk/mcs/; revision=31360
2004-07-22 05:30:20 +00:00
Ravindra 0c09ab72e5 Some formatting
svn path=/trunk/mcs/; revision=31359
2004-07-22 05:23:07 +00:00
Ravindra 12b2f0e7c7 Flushing
svn path=/trunk/mcs/; revision=31358
2004-07-22 05:14:52 +00:00
Jambunathan K 65ccd6b399 Fixed definitions of vbCr, vbLf, vbCrLf and
vbNewLine

svn path=/branches/mono-1-0/mcs/; revision=31357
2004-07-22 04:39:48 +00:00
Jambunathan K 23824f11f1 Fixed the vbCr, vbLf, vbCrLf and vbNewLine
strings

svn path=/trunk/mcs/; revision=31355
2004-07-22 03:27:51 +00:00
Ravindra 9904f37266 * gdipFunctions.cs: Corrected signatures of GdipPathIterCopyData and
GdipPathIterEnumerate P/Invoke functions for GraphicsPathIterator.
	* GraphicsPath.cs: Implemented Dispose method and added error
	checking in constructors.
	* GraphicsPathIterator.cs: Fixed CopyData and Enumerate methods.

svn path=/trunk/mcs/; revision=31353
2004-07-22 02:23:44 +00:00
Bernie Solomon effb5efcac 2004-04-21 Bernie Solomon <[email protected]>
* mini-sparc.h: fix implementations of __builtin
	functions for Sun compiler for V9.

svn path=/trunk/mono/; revision=31350
2004-07-21 23:09:23 +00:00
Bernie Solomon f23a2c4a33 2004-07-21 Bernie Solomon <[email protected]>
* mintops.def: rename the ICALL op codes to give a better
	clue about their signature.

	* transform.c (generate): use new ICALL types and add
	a case for two args + a result

	* interp.c (ves_exec_method_with_context): new ICALL
	op codes.

svn path=/trunk/mono/; revision=31349
2004-07-21 20:35:14 +00:00
Jackson Harper f4bdfe7e7c * PEAPI.cs: Do all the index size checks. I always wondered why
the code was like that and finally realized today that it was like
	that because it was wrong. Wait until the opportune momement to
	calculate the index sizes (after everything has been added to the
	streams, and before writing anything).

svn path=/trunk/mcs/; revision=31348
2004-07-21 19:26:52 +00:00
Bernie Solomon 7dc4ecf189 forgot Changelog first time
svn path=/trunk/mono/; revision=31347
2004-07-21 19:17:39 +00:00
Bernie Solomon ec12d06a98 2004-07-21 Bernie Solomon <[email protected]>
* mintops.def: add MINT_DUP_VT

	* transform.c (generate): cope with CEE_DUP on value type

	* interp.c (ves_exec_method_with_context): implement MINT_DUP_VT
	(interp_mono_runtime_invoke): don't unbox this for valuetypes
	here as it is now done in the callers.

svn path=/trunk/mono/; revision=31346
2004-07-21 19:07:55 +00:00
César Natarén 951f759f1b Added ChangeLog for dir
svn path=/trunk/mcs/; revision=31345
2004-07-21 17:52:11 +00:00
César Natarén f3dd797697 added error test
svn path=/trunk/mcs/; revision=31344
2004-07-21 17:32:41 +00:00
César Natarén 3e1171f36a added error test
svn path=/trunk/mcs/; revision=31343
2004-07-21 17:23:13 +00:00
César Natarén 607c16cb86 added error test
svn path=/trunk/mcs/; revision=31342
2004-07-21 17:07:39 +00:00
Bernie Solomon 1e9e7d9ee7 2004-07-21 Bernie Solomon <[email protected]>
* reflection.c (type_get_fully_qualified_name):
	insert cast to get type checking of ?: with non-gcc compilers

svn path=/trunk/mono/; revision=31341
2004-07-21 16:31:31 +00:00
Bernie Solomon ac8704eed0 2004-07-21 Bernie Solomon <[email protected]>
* rand.c: use g_getenv for both lookups of
	MONO_EGD_SOCKET

svn path=/trunk/mono/; revision=31340
2004-07-21 16:29:23 +00:00
Jordi Mas i Hernandez 5eccec4f8d fixes comments filenames
svn path=/trunk/mcs/; revision=31339
2004-07-21 16:28:05 +00:00
Jordi Mas i Hernandez 54c7a9cbfb LinkLabel control implementation
svn path=/trunk/mcs/; revision=31338
2004-07-21 16:22:04 +00:00
Atsushi Eno 48b6668436 2004-07-21 Atsushi Enomoto <[email protected]>
* XPathExpression.cs, Expression.cs :
	  Added SetContext(IXmlNamespaceResolver).
	* NodeChangedEventArgs.cs : Added missing [MonoTODO].
	* XPathAtomicValue.cs : Halfly implemented.
	* XPathDocument.cs : Added 2.0 members.
	* XPathDocumentNodeChangedAction.cs : updated member names.
	* XPathEditableNavigator.cs : Added missing 2.0 members and MonoTODO.
	* XPathNavigator.cs : Added missing 2.0 members.
	  Fixed some members as virtual->override.

svn path=/trunk/mcs/; revision=31337
2004-07-21 15:00:11 +00:00
Atsushi Eno 36ae1a4488 2004-07-21 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: Added XQueryConvert.cs. Removed
	  XmlFactory.cs, XmlQualifiedNameTable.cs, IXPathChangeNavigable.cs,
	  XPathChangeNavigator.cs and IXmlType.cs that are removed or going to
	  be removed.

svn path=/trunk/mcs/; revision=31336
2004-07-21 14:58:56 +00:00
Atsushi Eno 6c7ace253c 2004-07-21 Atsushi Enomoto <[email protected]>
* BUGS-MS.txt : updated including answer excerpts from MS team.
	* BUGS.txt : it turned out that some bugs I wrote as "MS bugs" are
	  actually my bug. Noted them.
	* BuiltInDatatype.cs :
	  Commented out extraneous [CLSCompliant].
	  Switch ParseValue() argument as IXmlNamespaceResolver for 2.0, and
	  XmlNamespaceManager for 1.x.
	  Added TypeCode overrides.
	* XmlSchemaDatatype.cs : Added 2.0 members.
	  Switch IXmlNamespaceResolver and XmlNamespaceManager.
	* XmlSchemaType.cs : Added some NET_2_0 members. removed old 1.2 stuff.

svn path=/trunk/mcs/; revision=31335
2004-07-21 14:52:25 +00:00
Atsushi Eno 6284c84eb7 2004-07-20 Atsushi Enomoto <[email protected]>
* XsltCommand.cs, XmlArgumentList.cs : sealed. Added missing MonoTODO.
	* XQueryConvert.cs : added. (namespace is temporarily MS.Internal.Xml)

svn path=/trunk/mcs/; revision=31334
2004-07-21 14:45:58 +00:00
Atsushi Eno 243ec2f2a7 2004-07-21 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : added internal ToBinHexString() (BTW according to
	  MSDN documentation it should be public).
	* XmlReader.cs : fixed one incorrect Create() overload. Added
	  LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
	* XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
	  interface. Fixed HasLineInfo() access modifier on 2.0.
	* XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
	  interface. Wrote common namespace node lookup method and rewrote
	  existing LookupNamespace().
	* XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.

svn path=/trunk/mcs/; revision=31333
2004-07-21 14:44:44 +00:00
Jackson Harper 877e17230a typo on last commit
svn path=/trunk/mcs/; revision=31332
2004-07-21 14:28:37 +00:00
Jackson Harper 0e2fcdce63 * ILParser.jay: Clones ExternTypeRefInsts as well as
ExternTypeRefs, wrap this check into a method so things are
	somewhat clean.

svn path=/trunk/mcs/; revision=31331
2004-07-21 14:07:32 +00:00
Jackson Harper 8995defef7 * ExternTypeRefInst.cs: Use the PeapiType so that modified types
will actually work. Add a Clone method so that type ref insts
	aren't duplicated making them modified multiple times.

svn path=/trunk/mcs/; revision=31330
2004-07-21 14:02:49 +00:00
Jackson Harper 6ab44a36cb * PEAPI.cs: Create ClassRefInsts with types not just
ClassRefs. This way modified types can be used. I am having alot
	of trouble remembering why I actually even need this class
	though.

svn path=/trunk/mcs/; revision=31329
2004-07-21 13:59:23 +00:00
Jordi Mas i Hernandez e60d0e2982 fixes Graphics.MeasureCharacterRanges and StringFormat.MeasurableCharacterRanges
svn path=/trunk/mcs/; revision=31328
2004-07-21 13:06:29 +00:00
Lluis Sanchez dd2a0ea9ab * HttpWebClientProtocol.cs: Add received cookies to cookieContainer when
getting the response, do not wait for the next request to do it.

svn path=/branches/mono-1-0/mcs/; revision=31327
2004-07-21 12:47:16 +00:00
Lluis Sanchez 238f2ff322 * HttpWebClientProtocol.cs: Add received cookies to cookieContainer when
getting the response, do not wait for the next request to do it.

svn path=/trunk/mcs/; revision=31326
2004-07-21 12:42:15 +00:00
Gonzalo Paniagua Javier be1f031f88 2004-07-21 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: the file not found might be a
	dependency.

	* System.Web.Compilation/AspGenerator.cs: the path for file was treated
	as virtual, but it's physical. Fixes bug #61524.

svn path=/branches/mono-1-0/mcs/; revision=31325
2004-07-21 03:44:31 +00:00
Gonzalo Paniagua Javier 9c5f90d9c4 2004-07-21 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: the file not found might be a
	dependency.

	* System.Web.Compilation/AspGenerator.cs: the path for file was treated
	as virtual, but it's physical. Fixes bug #61524.

svn path=/trunk/mcs/; revision=31324
2004-07-21 03:39:17 +00:00
Anirban Bhattacharjee cfcca8f235 2004-07-20 Anirban Bhattacharjee <[email protected]>
* expression.cs: Resolution of fully qualified type names - bug fixed

svn path=/trunk/mcs/; revision=31322
2004-07-21 03:31:35 +00:00
Umadevi S 96e5634326 2004-07-21 Umadevi S <[email protected]>
* DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null

svn path=/branches/mono-1-0/mcs/; revision=31321
2004-07-21 02:58:09 +00:00
Umadevi S a724f82493 2004-07-21 Umadevi S <[email protected]>
* DbDataRecord.cs - Fix for bug 58163. Return DBNull instead of null

svn path=/trunk/mcs/; revision=31320
2004-07-21 02:54:27 +00:00
Gonzalo Paniagua Javier 0d0f9b0e8c 2004-07-20 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: don't pass double slash when the path begins with a
	tilde. Fixes bug #61654.

svn path=/branches/mono-1-0/mcs/; revision=31319
2004-07-21 02:23:37 +00:00
Gonzalo Paniagua Javier 1dfdef5631 hit ]
svn path=/trunk/mcs/; revision=31318
2004-07-20 17:49:09 +00:00
Gonzalo Paniagua Javier 7006de857a 2004-07-20 Gonzalo Paniagua Javier <[email protected]>
* UrlUtils.cs: don't pass double slash when the path begins with a
	tilde. Fixes bug #61654.

svn path=/trunk/mcs/; revision=31317
2004-07-20 17:42:16 +00:00
Gonzalo Paniagua Javier ad658fe9a6 2004-07-20 Gonzalo Paniagua Javier <[email protected]>
* HttpCookie.cs: use invariant when formatting expires date. Fixes bug
	#61690.

svn path=/branches/mono-1-0/mcs/; revision=31316
2004-07-20 16:50:08 +00:00
Gonzalo Paniagua Javier 1e9a55cf9e 2004-07-20 Gonzalo Paniagua Javier <[email protected]>
* HttpCookie.cs: use invariant when formatting expires date. Fixes bug
	#61690.

svn path=/trunk/mcs/; revision=31315
2004-07-20 16:47:23 +00:00
Martin Baulig 0dea85d6fe 2004-07-20 Martin Baulig <[email protected]>
* Makefile: Enable 2test-7.

svn path=/trunk/mcs/; revision=31312
2004-07-20 09:33:40 +00:00
Martin Baulig d4516d8678 Fixed two little iterator bugs.
svn path=/trunk/mcs/; revision=31311
2004-07-20 09:33:27 +00:00
Umadevi S 9624b29657 2004-07-20 Umadevi S <[email protected]>
* SqlInt16Test.cs,SqlInt32Test.cs, SqlInt64Test.cs - added testcase for Modulus method (.NET            2.0)

svn path=/trunk/mcs/; revision=31310
2004-07-20 08:29:02 +00:00
Umadevi S d50e91d67f 2004-07-21 Umadevi S <[email protected]>
* SqlInt16.cs, SqlInt32.cs, SqlInt64.cs - Added Modulus,CompareTo method from .NET2.0

svn path=/trunk/mcs/; revision=31309
2004-07-20 08:27:30 +00:00
Martin Baulig 2b0d5288b7 Small fix.
svn path=/trunk/mcs/; revision=31308
2004-07-20 08:22:01 +00:00
Martin Baulig 4635491b7e 2004-07-20 Martin Baulig <[email protected]>
* 2test-9.cs: New test for iterators.

svn path=/trunk/mcs/; revision=31307
2004-07-20 07:39:47 +00:00
Anirban Bhattacharjee 74cebebcb5 2004-07-20 Anirban Bhattacharjee <[email protected]>
* assign.cs: Added new argument to Expression.ConvertExplicit function cal

Missed this in last check-in.

svn path=/trunk/mcs/; revision=31306
2004-07-20 07:35:15 +00:00
Martin Baulig 998fd8c065 2004-07-20 Martin Baulig <[email protected]>
* 2test-8.cs: New test for iterators.

svn path=/trunk/mcs/; revision=31305
2004-07-20 07:33:44 +00:00
Martin Baulig 4d06e628f8 2004-07-20 Martin Baulig <[email protected]>
* statement.cs (ExceptionStatement): New abstract class.  This is
	now used as a base class for everyone who's using `finally'.
	(Using.ResolveLocalVariableDecls): Actually ResolveLValue() all
	our local variables before using them.

	* flowanalysis.cs (FlowBranching.StealFinallyClauses): New public
	virtual method.  This is used by Yield.Resolve() to "steal" an
	outer block's `finally' clauses.
	(FlowBranchingException): The .ctor now takes an ExceptionStatement
	argument.

	* codegen.cs (EmitContext.StartFlowBranching): Added overloaded
	version which takes an ExceptionStatement.  This version must be
	used to create exception branchings.

	* iterator.cs
	(Yield.Resolve): "Steal" all `finally' clauses from containing blocks.
	(Iterator.EmitMoveNext): Added exception support; protect the
	block with a `fault' clause, properly handle 'finally' clauses.
	(Iterator.EmitDispose): Run all the `finally' clauses here.

svn path=/trunk/mcs/; revision=31304
2004-07-20 07:32:21 +00:00
Anirban Bhattacharjee 1e73251274 2004-07-20 Anirban Bhattacharjee <[email protected]>
* expression.cs: Fixed resolution of overloaded functions with delegate as parameter
        * ecore.cs: Changes made to stop program getting into an endless loop on not able to cast types of source to destination object.
        * statement.cs: Added new argument to Expression.ConvertExplicit function call

svn path=/trunk/mcs/; revision=31303
2004-07-20 07:32:08 +00:00
Atsushi Eno 8f453aecf3 2004-07-20 Atsushi Enomoto <[email protected]>
* Signature.cs : Fixed NextElementPos() that incorrectly examined
	  node matching.

svn path=/branches/mono-1-0/mcs/; revision=31302
2004-07-20 07:30:42 +00:00
Atsushi Eno 901d0ff658 2004-07-20 Atsushi Enomoto <[email protected]>
* Signature.cs : Fixed NextElementPos() that incorrectly examined
	  node matching.

svn path=/trunk/mcs/; revision=31301
2004-07-20 07:25:35 +00:00
Atsushi Eno 7ce2b24eba 2004-07-20 Atsushi Enomoto <[email protected]>
* XmlNode.cs : When the argument node being inserted is the existing
	  document element, it should not result in an error (since it should
	  be first removed from document, thus no error should happen).

svn path=/branches/mono-1-0/mcs/; revision=31300
2004-07-20 03:41:35 +00:00
Atsushi Eno 63bd1901a0 2004-07-20 Atsushi Enomoto <[email protected]>
* XmlNode.cs : When the argument node being inserted is the existing
	  document element, it should not result in an error (since it should
	  be first removed from document, thus no error should happen).

svn path=/trunk/mcs/; revision=31299
2004-07-20 03:40:04 +00:00
Martin Baulig 921bb1fdb4 2004-07-20 Martin Baulig <[email protected]>
* test-281.cs: New test for iterators.

svn path=/trunk/mcs/; revision=31298
2004-07-20 02:38:14 +00:00
Martin Baulig e7ecb4c4d0 Use an enum instead of magic numbers to make the code more readable.
svn path=/trunk/mcs/; revision=31297
2004-07-19 22:32:01 +00:00
Martin Baulig 1a06c0238c 2004-07-20 Martin Baulig <[email protected]>
* iterator.cs: This is the first of a set of changes in the
	iterator code.  Match the spec more closely: if we're an
	IEnumerable, then GetEnumerator() must be called.  The first time
	GetEnumerator() is called, it returns the current instance; all
	subsequent invocations (if any) must create a copy.

svn path=/trunk/mcs/; revision=31296
2004-07-19 22:22:17 +00:00
Miguel de Icaza 8c6b13f65e 2004-07-19 Miguel de Icaza <[email protected]>
* expression.cs: Resolve the constant expression before returning
	it.  Fixes: 61702

svn path=/branches/mono-1-0/mcs/; revision=31295
2004-07-19 20:44:17 +00:00
Miguel de Icaza 0990f55340 2004-07-19 Miguel de Icaza <[email protected]>
* expression.cs: Resolve the constant expression before returning
	it.

svn path=/trunk/mcs/; revision=31294
2004-07-19 20:42:56 +00:00
Jordi Mas i Hernandez 01502f2526 label control re-written: added missing functionlity, events, and properties
svn path=/trunk/mcs/; revision=31293
2004-07-19 19:09:42 +00:00
César Natarén e94d4efa94 2004-07-19 Cesar Lopez Nataren <[email protected]>
* Added Token.cs, TokenStream.cs, Parser.cs which are the port of
	Mozilla/Rhino's  parser.

svn path=/trunk/mcs/; revision=31291
2004-07-19 18:26:53 +00:00
César Natarén 1dc8ef4391 port of rhino's parser for Mono
svn path=/trunk/mcs/; revision=31290
2004-07-19 18:24:49 +00:00
César Natarén cc495bc616 port of rhino's lexer for Mono
svn path=/trunk/mcs/; revision=31289
2004-07-19 18:24:05 +00:00
César Natarén 8f534540ce token class for new lexer
svn path=/trunk/mcs/; revision=31288
2004-07-19 18:22:58 +00:00
Jordi Mas i Hernandez 567704a032 fixes SetBounds logic
svn path=/trunk/mcs/; revision=31287
2004-07-19 16:49:23 +00:00
Martin Baulig f0c3de7298 2004-07-19 Martin Baulig <[email protected]>
* iterators.cs (Iterator.MapVariable): Don't define fields twice.
	(Iterator.MoveNextMethod.DoEmit): Use `TypeManager.int32_type' as
	the return type of the new EmitContext.

svn path=/trunk/mcs/; revision=31284
2004-07-19 14:16:25 +00:00
Jordi Mas i Hernandez 2868f1e62d Call RefreshWindow only if the window has created
svn path=/trunk/mcs/; revision=31283
2004-07-19 07:29:35 +00:00
Martin Baulig 6073498a99 2004-07-18 Martin Baulig <[email protected]>
* class.cs (Property.Define): Fix iterators.

svn path=/trunk/mcs/; revision=31280
2004-07-18 20:14:14 +00:00
Martin Baulig 60c4e915b8 2004-07-18 Martin Baulig <[email protected]>
* iterators.cs (Iterator.Define): Moved the
	`container.AddInterator (this)' call here from the .ctor; only do
	it if we resolved successfully.

svn path=/trunk/mcs/; revision=31279
2004-07-18 20:05:13 +00:00
Martin Baulig 64c18b175d 2004-07-18 Martin Baulig <[email protected]>
* generic.cs (ConstructedType.CheckConstraints): Improved
	constraints checking.

svn path=/trunk/mcs/; revision=31278
2004-07-18 19:02:41 +00:00
Anirban Bhattacharjee 4bb4c32cf5 2004-07-18 Anirban Bhattacharjee <[email protected]>
* DelegateA.vb: The test for passing AddressOf operator in method parameter is added.

svn path=/trunk/mcs/; revision=31275
2004-07-18 06:05:55 +00:00
Anirban Bhattacharjee 5c547851a1 2004-07-18 Anirban Bhattacharjee <[email protected]>i
* argument.cs: Introduced AddressOf argument type for tracking AddressOf operator in method parameter
        * expression.cs: A parameter with AddressOf operator will get converted to Delegate before overload resolution
        * mb-parser.jay: Omitted two delegate creation expression grammar. This is now taken care by normal object creation expressions since Argument is capable of handling AddressOf operator now
                This is a fix for bug #59555

svn path=/trunk/mcs/; revision=31274
2004-07-18 05:53:44 +00:00
Martin Baulig 2e0a8f65ae 2004-07-18 Martin Baulig <[email protected]>
* Array.cs: Ben Maurer implemented all the new generic methods
	here :-)

svn path=/trunk/mcs/; revision=31272
2004-07-17 22:57:02 +00:00
Martin Baulig 09625a5c5e 2004-07-18 Martin Baulig <[email protected]>
* expression.cs (Invocation.BetterMethod): Call
	TypeManager.TypeToCoreType() on all types and removed my previous
	hack; we're already doig the right thing here.

svn path=/trunk/mcs/; revision=31271
2004-07-17 22:56:06 +00:00
Martin Baulig ac47537db2 Improved the test.
svn path=/trunk/mcs/; revision=31270
2004-07-17 22:55:37 +00:00
Martin Baulig 5addfa6d64 Copy&paste bug.
svn path=/trunk/mcs/; revision=31269
2004-07-17 22:05:14 +00:00
Martin Baulig ef6a384543 2004-07-18 Martin Baulig <[email protected]>
* expression.cs (Invocation.BetterMethod): If no type arguments
	were giving explicitly, a non-generic method is better than a
	method whose type arguments we infered.

svn path=/trunk/mcs/; revision=31268
2004-07-17 21:52:13 +00:00
Martin Baulig 3e70582560 2004-07-18 Martin Baulig <[email protected]>
* gen-63.cs: New test.

svn path=/trunk/mcs/; revision=31267
2004-07-17 21:49:49 +00:00
Martin Baulig 1329f66618 2004-07-17 Martin Baulig <[email protected]>
* reflection.c (mono_reflection_bind_generic_method_parameters):
	Set `gmethod->reflection_info'.

svn path=/trunk/mono/; revision=31266
2004-07-17 19:04:33 +00:00
Martin Baulig 2e4c675be7 2004-07-17 Martin Baulig <[email protected]>
* Decimal.cs: Implement IComparable<Decimal>.

svn path=/trunk/mcs/; revision=31264
2004-07-17 18:02:51 +00:00
Martin Baulig cf42d05cbd 2004-07-17 Martin Baulig <[email protected]>
* class.c (mono_class_create_from_typedef): Insert the newly
	created class into the hash table before computing the interfaces
	since we could be called recursively.

svn path=/trunk/mono/; revision=31263
2004-07-17 17:51:08 +00:00
Martin Baulig b26f3e034a 2004-07-17 Martin Baulig <[email protected]>
* Byte.cs, Int16.cs, Int32.cs, Int64.cs, SByte.cs, String.cs,
	UInt16.cs, UInt32.cs, UInt64.cs: Implement IComparable<T>.

svn path=/trunk/mcs/; revision=31261
2004-07-17 17:06:07 +00:00
Martin Baulig 4fcdc1838f Added a newline at the end of the file.
svn path=/trunk/mcs/; revision=31260
2004-07-17 16:56:51 +00:00
Martin Baulig beae31c28d 2004-07-17 Martin Baulig <[email protected]>
* TypeBuilder.cs (TypeBuilder.UnspecifiedTypeSize): Use -1, not 0.

svn path=/trunk/mcs/; revision=31259
2004-07-17 16:49:14 +00:00
Martin Baulig 1d4eff3e3f Ooops, I'm too stupid for this world ;-)
svn path=/trunk/mcs/; revision=31258
2004-07-17 16:43:18 +00:00
Martin Baulig 70b90169ac Ooops, forgot this here.
svn path=/trunk/mcs/; revision=31257
2004-07-17 16:29:52 +00:00
Miguel de Icaza 537a2895e8 2004-07-17 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs (handle_preprocessing_directive): Do not return
	`true' for preprocessing directives that we parse.  The return
	value indicates whether we should return to regular tokenizing or
	not, not whether it was parsed successfully.

svn path=/branches/mono-1-0/mcs/; revision=31256
2004-07-17 16:23:25 +00:00
Miguel de Icaza 572c5dd0dc 2004-07-17 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs (handle_preprocessing_directive): Do not return
	`true' for preprocessing directives that we parse.  The return
	value indicates whether we should return to regular tokenizing or
	not, not whether it was parsed successfully.

	In the past if we were in: #if false ... #line #endif, we would
	resume parsing after `#line'.  See bug 61604.

svn path=/trunk/mcs/; revision=31255
2004-07-17 16:22:33 +00:00
Miguel de Icaza cf36ae0453 Add test to this branch too
svn path=/branches/mono-1-0/mcs/; revision=31254
2004-07-17 16:15:40 +00:00
nobody d4257ef3dc This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=31253
2004-07-17 16:15:40 +00:00
Miguel de Icaza e5e4d5f30a Fix
svn path=/trunk/mcs/; revision=31252
2004-07-17 16:15:01 +00:00
Miguel de Icaza 1b4b569bd7 Add new test
svn path=/trunk/mcs/; revision=31251
2004-07-17 16:14:27 +00:00
Miguel de Icaza 0f1f3f52d3 2004-07-17 Miguel de Icaza <[email protected]>
* typemanager.cs: Removed an old hack from Gonzalo to get corlib
	building: IsEnumType should return true only for enums, not for
	enums or System.Enum itself.  This fixes #61593.

	Likely what happened is that corlib was wrong: mcs depended on
	this bug in some places.  The bug got fixed, we had to add the
	hack, which caused bug 61593.

	* expression.cs (ArrayAccess.GetStoreOpCode): Remove an old hack
	that was a workaround for the older conditions.

svn path=/branches/mono-1-0/mcs/; revision=31250
2004-07-17 16:13:08 +00:00
Martin Baulig 68710d1662 2004-07-17 Martin Baulig <[email protected]>
* decl.cs (MemberName.MakeName): Create the "class`1" names here;
	use an exclamation mark (!) instead of backticks (`) again.

svn path=/trunk/mcs/; revision=31249
2004-07-17 16:02:52 +00:00
Miguel de Icaza 521e6d4a3b 2004-07-17 Miguel de Icaza <[email protected]>
* typemanager.cs: Removed an old hack from Gonzalo to get corlib
	building: IsEnumType should return true only for enums, not for
	enums or System.Enum itself.  This fixes #61593.

	Likely what happened is that corlib was wrong: mcs depended on
	this bug in some places.  The bug got fixed, we had to add the
	hack, which caused bug 61593.

	* expression.cs (ArrayAccess.GetStoreOpCode): Remove an old hack
	that was a workaround for the older conditions.

svn path=/trunk/mcs/; revision=31248
2004-07-17 16:02:51 +00:00
Jackson Harper 642e198e29 Add MDTable.Field to the list of tables that can
increase the CustomAttributeType shift. TODO: What else should be
	here?

svn path=/trunk/mcs/; revision=31244
2004-07-17 00:12:01 +00:00
Ben Maurer ee18084318 comment this
svn path=/trunk/mcs/; revision=31243
2004-07-17 00:10:12 +00:00
Jackson Harper e5b15494b2 * PEAPI.cs: make sure small index sizes get set properly. Use a
continue to reduce nesting a little and make code almost mildly
	readable.

svn path=/trunk/mcs/; revision=31242
2004-07-17 00:03:41 +00:00
Ben Maurer 524f401e02 2004-07-16 Ben Maurer <[email protected]>
* assign.cs: IAssignMethod has a new interface, as documented
	inline. All assignment code now uses this new api.

	* ecore.cs, expression.cs: All classes which implement
	IAssignMethod now use the new interface.

	* expression.cs (Invocation): add a hack to EmitCall so that
	IndexerAccess can be the target of a compound assignment without
	evaluating its arguments twice.

	* statement.cs: Handle changes in Invocation api.

svn path=/trunk/mcs/; revision=31240
2004-07-16 22:16:53 +00:00
Jackson Harper f69764238b * ILTokenizer.cs: Handle slashes in multiline comments
properly. Make the multiline comment eater loop a little more
	readable.

svn path=/trunk/mcs/; revision=31238
2004-07-16 18:46:29 +00:00
Jackson Harper c21729f6ca slashes in multiline comments
svn path=/trunk/mcs/; revision=31237
2004-07-16 18:14:09 +00:00
Ravindra e63e0963f8 * GraphicsPathIterator.cs: New implementation using GDI+ APIs.
This change makes this class fit into the rest of the design well
	and also it takes care of a scenario when path gets modified. Old
	implementation was not taking care of this.

svn path=/trunk/mcs/; revision=31236
2004-07-16 16:43:41 +00:00
Ravindra 80ec54d87a * gdipFunctions.cs: Added P/Invokes for GraphicsPathIterator.
svn path=/trunk/mcs/; revision=31235
2004-07-16 16:43:07 +00:00
Ravindra c6714c6bfe Minor changes in the script.
svn path=/trunk/mcs/; revision=31233
2004-07-16 16:11:22 +00:00
Ben Maurer 89c42ecd9d 2004-07-16 Ben Maurer <[email protected]>
* mini.c: use the new stelem.ref wrapper
	* exceptions.cs, arrays.cs: new stelem.ref tests

svn path=/trunk/mono/; revision=31232
2004-07-16 14:16:53 +00:00
Ben Maurer 84dc0f3135 2004-07-16 Ben Maurer <[email protected]>
* marshal.[ch] (mono_marshal_get_stelemref): a new wrapper
	function to implement stelem.ref in managed code
	* class-internals.h, debug-helpers.c: a new wrapper type
	for the above.

svn path=/trunk/mono/; revision=31231
2004-07-16 14:15:34 +00:00
Martin Baulig 582e3b313f Cosmetic fix.
svn path=/trunk/mcs/; revision=31230
2004-07-16 13:47:54 +00:00
Martin Baulig 4592e1fca4 System.Collections.Generic/IComparable is gone.
svn path=/trunk/mcs/; revision=31229
2004-07-16 13:46:16 +00:00
Martin Baulig 1748763acc 2004-07-16 Martin Baulig <[email protected]>
* IComparable.cs: Removed, it's in System.

svn path=/trunk/mcs/; revision=31228
2004-07-16 13:45:36 +00:00
Martin Baulig 05adac8f24 2004-07-16 Martin Baulig <[email protected]>
* Stack.cs, Queue.cs, List.cs: Use iterators.

svn path=/trunk/mcs/; revision=31227
2004-07-16 13:37:47 +00:00
Martin Baulig 702724fd19 Correctly generate our proxy name.
svn path=/trunk/mcs/; revision=31226
2004-07-16 13:34:57 +00:00
Martin Baulig 8a1d910f40 Correctly generate a name for our proxy class.
svn path=/trunk/mcs/; revision=31225
2004-07-16 13:33:23 +00:00
Martin Baulig ccbb8e3b50 Another small fix.
svn path=/trunk/mcs/; revision=31224
2004-07-16 13:27:06 +00:00
Martin Baulig 74ac0aa7b1 Small fix.
svn path=/trunk/mcs/; revision=31223
2004-07-16 13:16:47 +00:00
Martin Baulig 4354a1b8fb 2004-07-16 Martin Baulig <[email protected]>
* gen-62.cs: New test for generic iterators.

svn path=/trunk/mcs/; revision=31222
2004-07-16 12:54:15 +00:00
Martin Baulig 7a32a29c20 2004-07-16 Martin Baulig <[email protected]>
* iterators.cs: Added generics support.

svn path=/trunk/mcs/; revision=31221
2004-07-16 12:47:40 +00:00
Martin Baulig c884cdbe40 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31220
2004-07-16 12:47:22 +00:00
Martin Baulig 699527a6f6 Moved the marker.
svn path=/trunk/mcs/; revision=31219
2004-07-16 12:46:27 +00:00
Martin Baulig a71b1eca06 2004-07-16 Martin Baulig <[email protected]>
* iterators.cs: Rewrote this.  We're now using one single Proxy
	class for both the IEnumerable and the IEnumerator interface and
	`Iterator' derives from Class so we can use the high-level API.

	* class.cs (TypeContainer.AddIterator): New method.
	(TypeContainer.DoDefineType): New protected virtual method, which
	is called from DefineType().
	(TypeContainer.DoDefineMembers): Call DefineType() and
	DefineMembers() on all our iterators.
	(TypeContainer.Emit): Call Emit() on all our iterators.
	(TypeContainer.CloseType): Call CloseType() on all our iterators.

	* codegen.cs (EmitContext.CurrentIterator): New public field.

svn path=/trunk/mcs/; revision=31218
2004-07-16 12:37:37 +00:00
Jordi Mas i Hernandez 9ca70719ad add ImageList, ImageListStreamer, and ColorDepth to the build process
svn path=/trunk/mcs/; revision=31216
2004-07-16 11:18:31 +00:00
Atsushi Eno b32a8c6432 2004-07-15 Peter Williams <[email protected]>
* CodeGenerator.cs: Have the basic generator create line pragmas
	for NamespaceImports, SnippetCompileUnits, and TypeMembers, all of
	which had LinePragma members which were going unused.

svn path=/branches/mono-1-0/mcs/; revision=31214
2004-07-16 10:16:50 +00:00
Atsushi Eno c539cf49a2 2004-07-15 Peter Williams <[email protected]>
* CodeGenerator.cs: Have the basic generator create line pragmas
	for NamespaceImports, SnippetCompileUnits, and TypeMembers, all of
	which had LinePragma members which were going unused.

svn path=/trunk/mcs/; revision=31213
2004-07-16 10:03:56 +00:00
Atsushi Eno 047f20a880 2004-07-13 Peter Williams <[email protected]>
* CSharpCodeCompiler.cs (CompileAssemblyFromDomBatch): Include
	counter in the extension so that batch compilations work.
	(CompileAssemblyFromSourceBatch): Same.

2004-07-12  Fawad Halim <[email protected]>

	* CSharpCodeGenerator.cs : Have GenerateField generate field sans the type for enums.

svn path=/branches/mono-1-0/mcs/; revision=31212
2004-07-16 09:58:09 +00:00
Atsushi Eno e1d9753116 2004-07-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed several problems on ReadBase64();
	  Whitespaces should be ignored, and '=' was not skipped correctly.
	  It caused "unexpected end of document" error at immediate close tag.

svn path=/branches/mono-1-0/mcs/; revision=31210
2004-07-16 06:48:34 +00:00
Atsushi Eno 4a29148533 2004-07-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed several problems on ReadBase64();
	  Whitespaces should be ignored, and '=' was not skipped correctly.
	  It caused "unexpected end of document" error at immediate close tag.

svn path=/trunk/mcs/; revision=31209
2004-07-16 06:47:43 +00:00
Gonzalo Paniagua Javier 4a14677d0c from head
svn path=/branches/mono-1-0/mcs/; revision=31208
2004-07-16 04:50:32 +00:00
Gonzalo Paniagua Javier 3a58628a3b 2004-07-16 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: detect changes in scheme or port when redirecting.
	Fixes las take on bug 61218.

svn path=/trunk/mcs/; revision=31207
2004-07-16 04:48:18 +00:00
Gonzalo Paniagua Javier 33ba34e3f6 from head
svn path=/branches/mono-1-0/mcs/; revision=31206
2004-07-16 04:35:13 +00:00
Gonzalo Paniagua Javier 33297ac713 2004-07-16 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: fixed case-sensitivity issues with #include and its
	attributes. Closes #61429.

svn path=/trunk/mcs/; revision=31205
2004-07-16 04:33:26 +00:00
Gonzalo Paniagua Javier d2b03cbb9e from head
svn path=/branches/mono-1-0/mcs/; revision=31204
2004-07-16 04:20:04 +00:00
Gonzalo Paniagua Javier 447590f787 2004-07-16 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: don't include private methods of base classes when
	auto-attaching events. Fixes bug 61569.

svn path=/trunk/mcs/; revision=31203
2004-07-16 04:10:27 +00:00
Neale Ferguson 70753f8feb Fix instruction length and correct register setting
svn path=/trunk/mono/; revision=31202
2004-07-16 01:57:48 +00:00
Jackson Harper e5e6203b9b * man/gacutil.1: MONO_GAC_PREFIX not MONO_GAC_PATH
svn path=/trunk/mono/; revision=31201
2004-07-16 01:24:23 +00:00
Jackson Harper cff7c392ce * driver.cs: MONO_GAC_PREFIX not MONO_GAC_PATH.
svn path=/trunk/mcs/; revision=31200
2004-07-16 01:20:56 +00:00
Peter Dennis Bartok f8c8d81e7f - Implemented ImageList and ImageList.ImageCollection classes
- Added ColorDepth enumeration
- Updated SWF VS.Net project

svn path=/trunk/mcs/; revision=31198
2004-07-15 20:05:28 +00:00
Sebastien Pouliot 33911e130b 2004-07-15 Sebastien Pouliot <[email protected]>
* X501Name.cs: Support for E (email) in FromString.
	* X520Attributes.cs: Added X520.EmailAddress.
	Both patches fix bug #61241 and were contributed by Ianier Munoz.

svn path=/branches/mono-1-0/mcs/; revision=31197
2004-07-15 19:43:29 +00:00
Sebastien Pouliot 99b4cb33d9 2004-07-15 Sebastien Pouliot <[email protected]>
* KeyUsageExtension.cs: Added Encode to extension so it can be used
	by makecert. Fix bug # 61240. Patch provided by Ianier Munoz.

svn path=/trunk/mcs/; revision=31196
2004-07-15 19:34:30 +00:00
Sebastien Pouliot 97a8b657ad 2004-07-15 Sebastien Pouliot <[email protected]>
* KeyUsageExtension.cs: Added Encode to extension so it can be used
	by makecert. Fix bug # 61240. Patch provided by Ianier Munoz.

svn path=/branches/mono-1-0/mcs/; revision=31195
2004-07-15 19:30:58 +00:00
Sebastien Pouliot 2b4e73ad1c 2004-07-15 Sebastien Pouliot <[email protected]>
* X501Name.cs: Support for E (email) in FromString.
	* X520Attributes.cs: Added X520.EmailAddress.
	Both patches fix bug #61241 and were contributed by Ianier Munoz.

svn path=/trunk/mcs/; revision=31194
2004-07-15 19:15:14 +00:00
Sebastien Pouliot b6bec0c78f 2004-07-15 Sebastien Pouliot <[email protected]>
* X501Name.cs: Support for E (email) in FromString.

svn path=/trunk/mcs/; revision=31193
2004-07-15 19:07:04 +00:00
Sebastien Pouliot 8fe0764324 2004-07-15 Sebastien Pouliot <[email protected]>
* DES.cs: Fixed FeedbackSizeValue to 8.
	* RC2.cs: Fixed FeedbackSizeValue to 8.
	* TripleDES.cs: Fixed FeedbackSizeValue to 8.

svn path=/branches/mono-1-0/mcs/; revision=31191
2004-07-15 18:25:56 +00:00
Rafael Teixeira c683c2cd1a 2004/07/15 Rafael Teixeira <[email protected]>
* driver.cs : Implemented support for -pkg to match mcs (bug #58673)

svn path=/trunk/mcs/; revision=31190
2004-07-15 17:29:33 +00:00
Dick Porter 872c0993ec Revert this part, it broke things.
svn path=/branches/mono-1-0/mcs/; revision=31189
2004-07-15 17:23:31 +00:00
Dick Porter 23c64685e5 Revert this part, it broke things.
svn path=/trunk/mcs/; revision=31188
2004-07-15 17:23:30 +00:00
Jordi Mas i Hernandez 99e82424c8 added MsgButons enum
svn path=/trunk/mcs/; revision=31187
2004-07-15 17:06:48 +00:00
Jordi Mas i Hernandez 630914904f added basic mouse handeling events
svn path=/trunk/mcs/; revision=31186
2004-07-15 17:03:35 +00:00
Rafael Teixeira 53dbd17ba1 2004/07/15 Rafael Teixeira <[email protected]>
* driver.cs : started implementing -pkg support to match mcs (bug #58673), also corrected multiplicity for addmodule option

svn path=/trunk/mcs/; revision=31185
2004-07-15 16:52:07 +00:00
Martin Baulig bd597361e0 Fixed a typo.
svn path=/trunk/mcs/; revision=31184
2004-07-15 16:34:01 +00:00
Martin Baulig 611316845b 2004-07-15 Martin Baulig <[email protected]>
* typemanager.cs
	(TypeManager.not_supported_exception_type): New type.

svn path=/trunk/mcs/; revision=31183
2004-07-15 16:29:01 +00:00
Dick Porter 6aa3691a7a 2004-07-15 Dick Porter <[email protected]>
* Thread.cs: Hold a lock in GetNamedDataSlot.  Fixes bug 61582,
	based on patch by S�bastien Robitaille
	([email protected]).  Also fix instances of
	lock(typeof(Thread)) to lock a private object instead.

svn path=/branches/mono-1-0/mcs/; revision=31182
2004-07-15 14:28:42 +00:00
Dick Porter f614b228dc 2004-07-15 Dick Porter <[email protected]>
* Thread.cs: Hold a lock in GetNamedDataSlot.  Fixes bug 61582,
	based on patch by S�bastien Robitaille
	([email protected]).  Also fix instances of
	lock(typeof(Thread)) to lock a private object instead.

svn path=/trunk/mcs/; revision=31181
2004-07-15 14:28:40 +00:00
Neale Ferguson 5e0a4df0d8 Fix ckfinite logic
svn path=/trunk/mono/; revision=31180
2004-07-15 14:26:58 +00:00
Dick Porter 0f722c7561 2004-07-15 Dick Porter <[email protected]>
* Socket.cs: Don't try and dereference a null array in Select()
	(possible if a descriptor list of length 0 was passed.)  Patch by
	Nick Vaughan ([email protected]), fixes bug 61595.

svn path=/branches/mono-1-0/mcs/; revision=31179
2004-07-15 13:52:20 +00:00
Dick Porter 2aba10408a 2004-07-15 Dick Porter <[email protected]>
* Socket.cs: Don't try and dereference a null array in Select()
	(possible if a descriptor list of length 0 was passed.)  Patch by
	Nick Vaughan ([email protected]), fixes bug 61595.

svn path=/trunk/mcs/; revision=31178
2004-07-15 13:52:18 +00:00
Neale Ferguson ee751dc4e9 Implement CEE_JMP
svn path=/trunk/mono/; revision=31177
2004-07-15 11:46:01 +00:00
Ravindra 54916e1a88 * gdipFunctions.cs: Removed GdipGetPathData P/Invoke. It is redundant.
svn path=/trunk/mcs/; revision=31176
2004-07-15 11:22:13 +00:00
Ravindra a44076d1a4 Correction to my previous checkin.
svn path=/trunk/mcs/; revision=31175
2004-07-15 11:19:12 +00:00
Ravindra 051d8814cc * GraphicsPath.cs: Implemented PathData property and some formatting.
svn path=/trunk/mcs/; revision=31174
2004-07-15 11:12:03 +00:00
Lluis Sanchez d3a4ae6d53 * ChannelServices.cs: In RegisterChannel, ignore name colisions if the
channel name is "". This fixes bug #61592.

svn path=/branches/mono-1-0/mcs/; revision=31173
2004-07-15 09:45:52 +00:00
Lluis Sanchez 56b8f97ad6 * ChannelServices.cs: In RegisterChannel, ignore name colisions if the
channel name is "". This fixes bug #61592.

svn path=/trunk/mcs/; revision=31172
2004-07-15 09:43:56 +00:00
Jordi Mas i Hernandez e5b1a479fd Horizontal and Vertical TrackBar control implementation
svn path=/trunk/mcs/; revision=31171
2004-07-15 09:38:02 +00:00
Lluis Sanchez 4abb102fb7 * TcpServerChannel.cs: Set channel name from the provided properties.
This fixes bug #61592.

svn path=/branches/mono-1-0/mcs/; revision=31170
2004-07-15 09:31:47 +00:00
Lluis Sanchez 3cafdf69c5 * TcpServerChannel.cs: Set channel name from the provided properties.
This fixes bug #61592.

svn path=/trunk/mcs/; revision=31169
2004-07-15 09:30:22 +00:00
Lluis Sanchez b7baa53dc7 * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
xsd type is not part of the last schema specification, but the google api
	  uses it and ms.net accepts it.

svn path=/branches/mono-1-0/mcs/; revision=31168
2004-07-15 09:16:31 +00:00
Lluis Sanchez 1b6cb3b0ad * TypeTranslator.cs, XmlCustomFormatter.cs: Added support for base64. This
xsd type is not part of the last schema specification, but the google api
	  uses it and ms.net accepts it.

svn path=/trunk/mcs/; revision=31167
2004-07-15 09:13:12 +00:00
Ravindra 2a54f7ba41 Code cleaning: Changed format of various files to unix from dos.
Also, changed access of instance variables to private in
	some classes.

svn path=/trunk/mcs/; revision=31166
2004-07-15 05:53:10 +00:00
Neale Ferguson 2bf7791b27 Correct definitions of CONV_R_UN and a couple of LCONVs
svn path=/trunk/mono/; revision=31163
2004-07-15 01:03:54 +00:00
Neale Ferguson 9c2848e25f Just when I thought there were no more ABI issues there is. This one is
for cases when structures greater than regsize are passed as parameters
on the stack.

svn path=/trunk/mono/; revision=31161
2004-07-14 20:36:53 +00:00
Marek Safar 49eea122ba 2004-07-13 Marek Safar <[email protected]>
* class.cs: Fixed previous fix, it broke some error tests.

svn path=/branches/mono-1-0/mcs/; revision=31159
2004-07-14 18:49:35 +00:00
Dick Porter c80e116a55 2004-07-14 Dick Porter <[email protected]>
* wait.c (test_and_own): When not waiting for all handles to
	become signalled, only own and return the lowest.  All the
	documentation suggests that the old way was correct, but
	experimentation shows it actually works like this.  Patch by
	S�bastien Robitaille
	([email protected]), fixes bug 61511.

svn path=/branches/mono-1-0/mono/; revision=31158
2004-07-14 18:37:27 +00:00
Dick Porter 2db32943b5 2004-07-14 Dick Porter <[email protected]>
* wait.c (test_and_own): When not waiting for all handles to
	become signalled, only own and return the lowest.  All the
	documentation suggests that the old way was correct, but
	experimentation shows it actually works like this.  Patch by
	S�bastien Robitaille
	([email protected]), fixes bug 61511.

svn path=/trunk/mono/; revision=31157
2004-07-14 18:37:24 +00:00
Carlos Guzmán Álvarez ace223bbfe 2004-07-14 Carlos Guzman Alvarez <[email protected]>
* Updated license head in c# source files for use
	always the same format.

svn path=/trunk/mcs/; revision=31156
2004-07-14 17:30:59 +00:00
Carlos Guzmán Álvarez 00b1c549a7 2004-07-14 Carlos Guzman Alvarez <[email protected]>
* Removed duplicate license header file from
	all source files.

svn path=/trunk/mcs/; revision=31155
2004-07-14 17:26:18 +00:00
Sebastien Pouliot 6c82eac5ae 2004-07-14 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed lock to "new object()" and not
	String.Empty (as the read/write locks points becomes the same).
	* SslServerStream.cs: Changed lock to "new object()" and not
	String.Empty (as the read/write locks points becomes the same).

svn path=/branches/mono-1-0/mcs/; revision=31152
2004-07-14 16:44:03 +00:00
Sebastien Pouliot bdf7e29582 2004-07-14 Sebastien Pouliot <[email protected]>
* SslClientStream.cs: Changed lock to "new object()" and not
	String.Empty (as the read/write locks points becomes the same).
	* SslServerStream.cs: Changed lock to "new object()" and not
	String.Empty (as the read/write locks points becomes the same).

svn path=/trunk/mcs/; revision=31151
2004-07-14 16:35:46 +00:00
Paolo Molaro debbf709d1 Wed Jul 14 19:28:57 CEST 2004 Paolo Molaro <[email protected]>
* GCHandle.cs: throw exception if the result from AddrOfPinnedObject()
	is -1 (special value returned by the runtime).

svn path=/trunk/mcs/; revision=31150
2004-07-14 16:33:15 +00:00
Paolo Molaro b86c32b401 Wed Jul 14 19:26:05 CEST 2004 Paolo Molaro <[email protected]>
* gc.c: allow GC handles to work even when no GC is compiled in.
	Fix part of bug #61134 (GetAddrOfPinnedObject).

svn path=/trunk/mono/; revision=31149
2004-07-14 16:30:53 +00:00
Paolo Molaro 0a5b6171d7 Wed Jul 14 19:08:41 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c, exceptions-ppc.c: cleanups and fixes (the
	new XSP should work with these changes).

svn path=/trunk/mono/; revision=31148
2004-07-14 16:18:49 +00:00
Martin Baulig 8db26e413f 2004-07-14 Martin Baulig <[email protected]>
* typemanager.cs
	(TypeManager.generic_ienumerable_type): New type.
	(TypeManager.generic_ienumerator_type): New type.

	* rootcontext.cs
	(RootContext.interfaces_first_stage): Added
	"System.Collections.Generic.IEnumerator`1" and
	"System.Collections.Generic.IEnumerable`1".

svn path=/trunk/mcs/; revision=31147
2004-07-14 16:14:01 +00:00
Dick Porter 05e5cb2cbf 2004-07-13 Peter Williams <[email protected]>
* process.c (complete_path): Make sure we don't attempt to execute
	directories.

svn path=/branches/mono-1-0/mono/; revision=31146
2004-07-14 15:23:02 +00:00
Dick Porter 4dda2de1de 2004-07-13 Peter Williams <[email protected]>
* process.c (complete_path): Make sure we don't attempt to execute
	directories.

svn path=/trunk/mono/; revision=31145
2004-07-14 15:22:55 +00:00
Atsushi Eno 8e3706c559 2004-07-14 Atsushi Enomoto <[email protected]>
* System.dll.sources:
	  Added IChangeTracking.cs and IRevertibleChangeTracking.cs

svn path=/trunk/mcs/; revision=31144
2004-07-14 15:19:07 +00:00
Atsushi Eno 215f375fb4 2004-07-14 Atsushi Enomoto <[email protected]>
* Added IChangeTracking.cs and IRevertibleChangeTracking.cs.

svn path=/trunk/mcs/; revision=31143
2004-07-14 15:17:43 +00:00
Atsushi Eno 6caf6203c3 2004-07-14 Atsushi Enomoto <[email protected]>
* RelaxngGrammar.cs : When definition is missing, the error message
	  should show what definition is missing.

svn path=/trunk/mcs/; revision=31142
2004-07-14 14:33:52 +00:00
Martin Baulig e45d10831c 2004-07-14 Martin Baulig <[email protected]>
* cs1623.cs, cs1624.cs, cs1625.cs, cs1631.cs: New tests for
	iterators.

svn path=/trunk/mcs/; revision=31139
2004-07-14 14:28:04 +00:00
Martin Baulig 19ab3ce721 2004-07-14 Martin Baulig <[email protected]>
* iterators.cs: Use real error numbers.

svn path=/branches/mono-1-0/mcs/; revision=31138
2004-07-14 14:25:16 +00:00
Martin Baulig da88e6b66e 2004-07-14 Martin Baulig <[email protected]>
* iterators.cs: Use real error numbers.

svn path=/trunk/mcs/; revision=31138
2004-07-14 14:25:16 +00:00
Martin Baulig 103552c72c 2004-07-14 Martin Baulig <[email protected]>
* iterators.cs: Use real error numbers.

svn path=/trunk/mcs/; revision=31137
2004-07-14 14:24:12 +00:00
Ben Maurer 6dde15ed4f 2004-07-14 Ben Maurer <[email protected]>
* inssel-{long32,x86,}.brg: trivial optimizations.

svn path=/trunk/mono/; revision=31136
2004-07-14 14:23:20 +00:00
Gonzalo Paniagua Javier 328030e54e 2004-07-14 Gonzalo Paniagua Javier <[email protected]>
* Mono.Security/Mono.Security.Protocol.Tls/HttpsClientStream.cs: get
	an HttpWebRequest so that we can use the ServicePoint it has. No
	need to get the host now.

	* System/System.Net/WebConnection.cs: moved loading of the ssl stream
	Type to its own method. Don't create a new ssl stream if we're reusing
	the connection.

	* System/System.Net/WebConnectionStream.cs: ensure the number of bytes
	copied in ReadAll is the expected even if the dta from the server has
	extra bytes.

	Partial fix for bug #61218. Still problems with POST.

svn path=/branches/mono-1-0/mcs/; revision=31135
2004-07-14 14:02:20 +00:00
Gonzalo Paniagua Javier 4110f272ba 2004-07-14 Gonzalo Paniagua Javier <[email protected]>
* Mono.Security/Mono.Security.Protocol.Tls/HttpsClientStream.cs: get
	an HttpWebRequest so that we can use the ServicePoint it has. No
	need to get the host now.

	* System/System.Net/WebConnection.cs: moved loading of the ssl stream
	Type to its own method. Don't create a new ssl stream if we're reusing
	the connection.

	* System/System.Net/WebConnectionStream.cs: ensure the number of bytes
	copied in ReadAll is the expected even if the dta from the server has
	extra bytes.

	Partial fix for bug #61218. Still problems with POST.

svn path=/trunk/mcs/; revision=31134
2004-07-14 13:52:29 +00:00
Alon Gazit 8667d75a4b changed the Hashtables to case insensitive.
the reason for this change is performance improvements.

svn path=/trunk/mcs/; revision=31133
2004-07-14 12:26:32 +00:00
Sebastien Pouliot 693d902e4b 2004-07-14 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added new files for NET_2_0 profile:
		System.Security/HostProtectionException.cs
		System.Security/HostSecurityManager.cs
		System.Security/HostSecurityManagerFlags.cs
		System.Security/SecurityContext.cs
		System.Security/SecurityContextSwitcher.cs
		System.Security.Permissions/HostProtectionResource.cs
		System.Threading/AsyncFlowControl.cs
		System.Threading/CompressedStackSwitcher.cs
		System.Threading/ContextCallback.cs

svn path=/trunk/mcs/; revision=31132
2004-07-14 12:20:21 +00:00
Sebastien Pouliot 9dc920b0c6 2004-07-14 Sebastien Pouliot <[email protected]>
* AsyncFlowControl.cs: New structure in Fx 2.0 required in
	System.Security namespace.
	* CompressedStackSwitcher.cs: New structure in Fx 2.0 required in
	System.Security namespace.
	* ContextCallback.cs: New delegate in Fx 2.0 required in
	System.Security namespace.
	* CompressedStack.cs: Updated API for NET_2_0 profile.

svn path=/trunk/mcs/; revision=31131
2004-07-14 12:16:05 +00:00
Sebastien Pouliot 7eea926385 2004-07-14 Sebastien Pouliot <[email protected]>
* NetCodeGroup.cs: Added Equals/GetHashCode methods to NET_2_0 profile.
	* PolicyLevel.cs: Added internal constructor to load a policy file
	from SecurityManager.

svn path=/trunk/mcs/; revision=31130
2004-07-14 12:11:57 +00:00
Sebastien Pouliot 8a5ab90026 2004-07-14 Sebastien Pouliot <[email protected]>
* HostProtectionResource.cs: New enum for Fx 2.0.

svn path=/trunk/mcs/; revision=31129
2004-07-14 12:08:36 +00:00
Sebastien Pouliot 488ecc889f 2004-07-14 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Added CheckAssert, CheckDemand, CheckDeny,
	CheckPermitOnly, Equals and GetHashCode to NET_2_0 profile. Actualized
	TODOs. Removed duplicate license.
	* NamedPermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile.
	Removed duplicate license.
	* PermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile.
	Removed duplicate license.
	* SecurityElement.cs: Added Copy and FromString methods to NET_2_0
	profile. Removed duplicate license.
	* SecurityException.cs: Added new constructors and properties to
	NET_2_0 profile. Removed duplicate license.
	* SecurityManager.cs: Added GetZoneAndOrigin and ResolvePolicy to
	NET_2_0 profile. Removed duplicate license.
	* VerificationException.cs: Implements _Exception for NET_2_0 profile.
	Removed duplicate license.
	* XmlSyntaxException.cs: Implements _Exception for NET_2_0 profile.
	Removed duplicate license.

svn path=/trunk/mcs/; revision=31128
2004-07-14 12:06:25 +00:00
Sebastien Pouliot 748a1ef357 2004-07-14 Sebastien Pouliot <[email protected]>
* HostProtectionException.cs: New class in Fx 2.0.
	* HostSecurityManager.cs: New class in Fx 2.0.
	* HostSecurityManagerFlags.cs: New enum in Fx 2.0.
	* SecurityContext.cs: New class in Fx 2.0.
	* SecurityContextSwitcher.cs: New structure in Fx 2.0.

svn path=/trunk/mcs/; revision=31127
2004-07-14 11:53:49 +00:00
Lluis Sanchez 38cbdd968a * System.Web.Services.dll.sources: Added new files:
System.Web.Services.Description/BasicProfileChecker.cs
		System.Web.Services.Description/ConformanceChecker.cs

svn path=/trunk/mcs/; revision=31125
2004-07-14 10:52:00 +00:00
Lluis Sanchez 18de07ff81 * ConformanceChecker.cs, BasicProfileChecker.cs: New files that implement
the basic infrastructure for basic profile conformance checking.
	* BasicProfileViolation.cs: Take normative information from the rule object.
	* BasicProfileViolationCollection.cs: Added Add method.
	* ServiceDescriptionFormatExtension.cs: Little fix.
	* WebServicesInteroperability.cs: Implemented basic support for conformance
	  checking.

svn path=/trunk/mcs/; revision=31124
2004-07-14 10:51:41 +00:00
Umadevi S 044db990c6 2004-07-14 Umadevi S <[email protected]>
* Added System.Data.SqlTypes/StorageState.cs to System.data.dll.sources

svn path=/trunk/mcs/; revision=31123
2004-07-14 09:16:53 +00:00
Umadevi S a05becde80 2004-07-14 Umadevi S <[email protected]>
* Added new Enum StorageState.cs

svn path=/trunk/mcs/; revision=31122
2004-07-14 09:14:12 +00:00
Umadevi S edce75b667 2004-07-14 Umadevi S <[email protected]>
* SqlMoney.cs, SqlSingle.cs - Added CompareTo method from .NET2.0
        * Added new Enum StorageState.cs

svn path=/trunk/mcs/; revision=31121
2004-07-14 09:13:29 +00:00
Umadevi S ed222fc830 2004-07-14 Umadevi S <[email protected]>
* SqlStringTest.cs - Added testcase for Add method (.NET2.0)

svn path=/trunk/mcs/; revision=31119
2004-07-14 08:21:40 +00:00
Umadevi S 3413a7f302 2004-07-14 Umadevi S <[email protected]>
* SqlString.cs :Fixed + operator for null, CompareTo to throw SqlTypeException
                        Implemented Add and CompareTo methods from .NET2.0

svn path=/trunk/mcs/; revision=31118
2004-07-14 08:18:08 +00:00
Paolo Molaro fe135d95dc Put the MONO_GC_REGISTER_ROOT macro in the right spot.
svn path=/trunk/mono/; revision=31117
2004-07-14 07:43:18 +00:00
Geoff Norton f4bc6fe6eb Patch for #61112 aproved by eno.
svn path=/trunk/mono/; revision=31115
2004-07-14 02:14:03 +00:00
Atsushi Eno 1bb01d3e28 2004-07-13 Peter Williams <[email protected]>
* CSharpCodeCompiler.cs (CompileAssemblyFromDomBatch): Include
	counter in the extension so that batch compilations work.
	(CompileAssemblyFromSourceBatch): Same.

svn path=/trunk/mcs/; revision=31111
2004-07-14 00:10:12 +00:00
Martin Baulig 9fdc65a259 Merged again.
svn path=/trunk/mcs/; revision=31110
2004-07-13 23:22:04 +00:00
Martin Baulig 875edd6d8d **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31109
2004-07-13 23:21:49 +00:00
Martin Baulig 005ce78305 2004-07-14 Martin Baulig <[email protected]>
* iterator.cs (IteratorHandle.IsIEnumerable): The spec explicitly
	requires this to be a System.Collection.IEnumerable and not a
	class implementing that interface.
	(IteratorHandle.IsIEnumerator): Likewise, for IEnumerator.

svn path=/branches/mono-1-0/mcs/; revision=31108
2004-07-13 23:20:09 +00:00
Martin Baulig d7651a163c 2004-07-14 Martin Baulig <[email protected]>
* iterator.cs (IteratorHandle.IsIEnumerable): The spec explicitly
	requires this to be a System.Collection.IEnumerable and not a
	class implementing that interface.
	(IteratorHandle.IsIEnumerator): Likewise, for IEnumerator.

svn path=/trunk/mcs/; revision=31107
2004-07-13 23:19:37 +00:00
Martin Baulig 4affca0e04 2004-07-14 Martin Baulig <[email protected]>
* decl.cs, expression.cs, generic.cs: Use a backqoute (`) and not
	an exclamation mark (!) for the generic arity to reflect the
	latest spec changes; ie. use "System.Collections.Generic.IList`1".

svn path=/trunk/mcs/; revision=31106
2004-07-13 23:08:08 +00:00
Neale Ferguson d248e18508 Fix single float handling
svn path=/trunk/mono/; revision=31104
2004-07-13 19:45:37 +00:00
Marek Safar 5757fa30be 2004-07-13 Marek Safar <[email protected]>
* test-279.cs: New test for #61293.

svn path=/trunk/mcs/; revision=31103
2004-07-13 19:28:30 +00:00
Marek Safar d54df3e29d 2004-07-13 Marek Safar <[email protected]>
* class.cs: Fixed previous fix, it broke some error tests.

svn path=/trunk/mcs/; revision=31102
2004-07-13 19:20:50 +00:00
Sebastien Pouliot 47cd320811 2004-07-13 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added new files for NET_2_0 profile:
		System/ActivationContext.cs
		System/ApplicationIdentity.cs
		System/IApplicationDescription.cs
		System/IHostContext.cs
		System.Security.Policy/ApplicationDefaultCodeGroup.cs
		System.Security.Policy/ApplicationInstallScope.cs
		System.Security.Policy.Security.Policy/ApplicationTrust.cs
		System.Security.Policy/ApplicationVersionMatch.cs
		System.Security.Policy/CodeConnectAccess.cs
		System.Security.Policy/CodeGroupGrantScope.cs
		System.Security.Policy/IApplicationTrustManager.cs
		System.Security.Policy/ITrustLicenseIssuerCollection.cs
		System.Security.Policy/ITrustManager.cs
		System.Security.Policy/ITrustManagerConfig.cs
		System.Security.Policy/PromptingLevel.cs
		System.Security.Policy/ProvideAssemblyEvidenceEventArgs.cs
		System.Security.Policy/TrustLicenseIssuer.cs
		System.Security.Policy/TrustManagerContext.cs
		System.Security.Policy/TrustManagerUIContext.cs
		System.Security.Policy/TrustManagerZoneConfig.cs

svn path=/trunk/mcs/; revision=31097
2004-07-13 16:52:50 +00:00
Sebastien Pouliot 8e48cbb8ff 2004-07-13 Sebastien Pouliot <[email protected]>
* Evidence.cs: Implemented Equals/GetHashCode and added Clear and
	RemoveType methods for NET_2_0 profile.
	* FileCodeGroup.cs: Added Scope property for NET_2_0 profile.
	* Hash.cs: Added static CreateMD5 and CreateSHA1 for NET_2_0 profile.
	* HashMembershipCondition.cs: Implements IDeserializationCallback and
	ISerializable for NET_2_0 profile.
	* NetCodeGroup.cs: Add methods related to CodeConnectAccess for
	NET_2_0 profile.
	* PolicyException.cs: Implements _Exception for NET_2_0 profile.
	* PolicyLevel.cs: Added Type property for NET_2_0 profile.
	* PolicyStatement.cs: Implemented Equals/GetHashCode for NET_2_0
	profile.

svn path=/trunk/mcs/; revision=31096
2004-07-13 16:46:35 +00:00
Sebastien Pouliot 14a9440bd3 2004-07-13 Sebastien Pouliot <[email protected]>
* ApplicationDefaultCodeGroup.cs: New class in Fx 2.0.
	* ApplicationInstallScope.cs: New enum in Fx 2.0.
	* ApplicationTrust.cs: New class in Fx 2.0.
	* ApplicationVersionMatch.cs: New enum in Fx 2.0.
	* CodeConnectAccess.cs: New class in Fx 2.0.
	* CodeGroupGrantScope.cs: New enum in Fx 2.0.
	* IApplicationTrustManager.cs: New interface in Fx 2.0.
	* ITrustLicenseIssuerCollection.cs: New interface in Fx 2.0.
	* ITrustManager.cs: New interface in Fx 2.0.
	* ITrustManagerConfig.cs: New interface in Fx 2.0.
	* PromptingLevel.cs: New enum in Fx 2.0.
	* ProvideAssemblyEvidenceEventArgs.cs: New class in Fx 2.0.
	* TrustLicenseIssuer.cs: New class in Fx 2.0.
	* TrustManagerContext.cs: New class in Fx 2.0.
	* TrustManagerUIContext.cs: New enum in Fx 2.0.
	* TrustManagerZoneConfig.cs: New class in Fx 2.0.

svn path=/trunk/mcs/; revision=31095
2004-07-13 16:40:03 +00:00
Sebastien Pouliot d33c1759a7 2004-07-13 Sebastien Pouliot <[email protected]>
* ActivationContext.cs: New class in Fx 2.0. Required for
	System.Security.Policy.
	* ApplicationIdentity.cs: New class in Fx 2.0. Required for
	System.Security.Policy.
	* IApplicationDescription.cs: New interface in Fx 2.0. Required for
	System.Security.Policy.
	* IHostContext.cs: New interface in Fx 2.0. Required for
	System.Security.Policy.

svn path=/trunk/mcs/; revision=31094
2004-07-13 16:35:31 +00:00
Atsushi Eno 4565e2ec31 2004-07-13 Atsushi Enomoto <[email protected]>
* XmlNodeChageType.cs, XmlChangeFilters.cs : fixed enum values.
	* XPathResultType.cs : marked [MonoFIX] on .Navigator.

svn path=/trunk/mcs/; revision=31093
2004-07-13 16:10:02 +00:00
Martin Baulig 02d6c381dc 2004-07-13 Martin Baulig <[email protected]>
* cs-tokenizer.cs (Tokenizer.parse_less_than): Allow array rank
	specifiers being part of a type argument.

svn path=/trunk/mcs/; revision=31092
2004-07-13 16:07:46 +00:00
Jordi Mas i Hernandez 9c847de0a2 vertical and hort. classes commit
svn path=/trunk/mcs/; revision=31091
2004-07-13 15:33:46 +00:00
Jordi Mas i Hernandez 1f09c72d4d commit: new properties and fixes form size problems
svn path=/trunk/mcs/; revision=31090
2004-07-13 15:31:45 +00:00
Martin Baulig 111f13ecbe New test.
svn path=/trunk/mcs/; revision=31089
2004-07-13 15:19:48 +00:00
Jackson Harper 2c73c8d166 * PEAPI.cs: Use a byte array hash code provider and comprarer, so
checking the byte hashtable for duplicate entries actually
	works. Old method was valid but created larger then needed
	binaries.

svn path=/trunk/mcs/; revision=31088
2004-07-13 15:14:17 +00:00
Martin Baulig 2a5d0a47b4 2004-07-13 Martin Baulig <[email protected]>
* gen-60.cs: New test for #58305.

svn path=/trunk/mcs/; revision=31087
2004-07-13 15:03:31 +00:00
Atsushi Eno 1e9d99a951 2004-07-13 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: Added MonoFIXAttribute.cs

svn path=/trunk/mcs/; revision=31086
2004-07-13 14:55:41 +00:00
Atsushi Eno ed57714a5f 2004-07-13 Atsushi Enomoto <[email protected]>
* Added MonoFIXAttribute.cs

svn path=/trunk/mcs/; revision=31085
2004-07-13 14:53:15 +00:00
Martin Baulig e3abc83acb New test.
svn path=/trunk/mcs/; revision=31084
2004-07-13 14:42:11 +00:00
Martin Baulig 6cbebe399d 2004-07-13 Martin Baulig <[email protected]>
* expression.cs (MemberAccess.ResolveAsTypeStep): Use the full `!'
	name for generic types.

svn path=/trunk/mcs/; revision=31083
2004-07-13 14:41:19 +00:00
Miguel de Icaza f2f9a94bce Two perl files gone
svn path=/trunk/mono/; revision=31082
2004-07-13 14:34:47 +00:00
Martin Baulig ceb4f95251 2004-07-13 Martin Baulig <[email protected]>
* assign.cs (Assign.DoResolve): Moved the CS0131 check up a little
	bit to fix #60119.

svn path=/trunk/mcs/; revision=31081
2004-07-13 14:03:25 +00:00
Martin Baulig b66e1b253b New test.
svn path=/trunk/mcs/; revision=31080
2004-07-13 14:02:30 +00:00
Atsushi Eno c396b3e156 2004-07-13 Atsushi Enomoto <[email protected]>
* XmlSchemaBuiltInType.cs, XmlSchemaValidity.cs, XmlTypeCode.cs
	  : fixed annoying enum errors.
	* XmlSchemaCollection.cs : completely delegate to XmlSchemaSet.
	* XmlSchemaSet.cs : sealed classes. Use ListDictionary (avoid annoying
	  order preservation matter). NameTable null check for .ctor().
	  Fill GlobalAttributes, GlobalElements, GlobalTypes correctly.
	  Add(string, XmlReader) checks namespace conflicts, while
	  Add(XmlSchema) does not. Fixed Schemas() return type.

svn path=/trunk/mcs/; revision=31079
2004-07-13 13:42:32 +00:00
Atsushi Eno 3733f8ba87 2004-07-13 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : Added Create() stubs.
	* XmlWriterSettings.cs : Added missing property setters.
	* XmlValidatingReader.cs : added internal schemas setter.
	* XmlTextReader.cs : added internal XmlReaderSettings property setter.
	* XmlReader.cs :  Halfly implemented Create().
	* DTDValidatingReader.cs : author information was missing.

svn path=/trunk/mcs/; revision=31078
2004-07-13 12:36:32 +00:00
Atsushi Eno b81061ba4c 2004-07-13 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources:
	  Added XmlFilterReader.cs and XPathNavigatorReader.cs

svn path=/trunk/mcs/; revision=31077
2004-07-13 12:33:33 +00:00
Ravindra 4b1eded31b * gdipFunctions.cs: Removed GdipGetPathGradientRectI P/Invoke.
This was redundant. It was kept in previous checkin to avoid
	build breakage.

svn path=/trunk/mcs/; revision=31076
2004-07-13 12:17:40 +00:00
Ravindra dcbb59b493 * PathGradientBrush.cs: Removed all the private variables.
Now, we get/set everything from libgdiplus. This is cleaner.

svn path=/trunk/mcs/; revision=31075
2004-07-13 12:07:52 +00:00
Ravindra a68a817312 * gdipFunctions.cs: Added some P/Invokes for PathGradientBrush.
svn path=/trunk/mcs/; revision=31074
2004-07-13 12:05:37 +00:00
Atsushi Eno 657c877302 2004-07-13 Atsushi Enomoto <[email protected]>
* Added XPathNavigatorReader.cs.

svn path=/trunk/mcs/; revision=31073
2004-07-13 12:02:15 +00:00
Atsushi Eno 5c5fdf4a98 2004-07-13 Atsushi Enomoto <[email protected]>
* Added XmlFilterReader.cs.

svn path=/trunk/mcs/; revision=31072
2004-07-13 12:01:22 +00:00
Lluis Sanchez df6591d7f3 * System.Web.Services.dll.sources: Added new files:
System.Web.Services.Description/BasicProfileViolation.cs
		System.Web.Services.Description/BasicProfileViolationCollection.cs
		System.Web.Services.Description/NamedItem.cs
		System.Web.Services.Description/Soap12AddressBinding.cs
		System.Web.Services.Description/Soap12Binding.cs
		System.Web.Services.Description/Soap12BodyBinding.cs
		System.Web.Services.Description/Soap12FaultBinding.cs
		System.Web.Services.Description/Soap12HeaderBinding.cs
		System.Web.Services.Description/Soap12OperationBinding.cs
		System.Web.Services.Description/WebReference.cs
		System.Web.Services.Description/WebReferenceCollection.cs
		System.Web.Services.Description/WebServicesInteroperability.cs

svn path=/trunk/mcs/; revision=31070
2004-07-13 10:16:33 +00:00
Lluis Sanchez e792c7c5cd * HttpWebClientProtocol.cs, Soap12FaultCodes.cs, SoapClientMessage.cs,
SoapException.cs, SoapHeader.cs, SoapHeaderException.cs,
	  SoapHttpClientProtocol.cs, SoapMessage.cs, SoapRpcMethodAttribute.cs,
	  SoapRpcServiceAttribute.cs, SoapServerMessage.cs: Api fixage (mainly
	  missing attributes).

svn path=/trunk/mcs/; revision=31069
2004-07-13 10:16:10 +00:00
Lluis Sanchez d2c8e83da7 * Binding.cs, Message.cs, MessageBinding.cs, MessagePart.cs, Operation.cs,
OperationBinding.cs, OperationMessage.cs, Port.cs, PortType.cs,
	  Service.cs, ServiceDescription.cs,
	  Name property moved to NamedItem in 2.0.
	* DocumentableItem.cs, ServiceDescriptionFormatExtension.cs,
	  ServiceDescriptionImportWarnings.cs, ServiceDescriptionImporter.cs,
	  SoapFaultBinding.cs: Added 2.0 api.
	* BasicProfileViolation.cs, BasicProfileViolationCollection.cs,
	  NamedItem.cs, Soap12AddressBinding.cs, Soap12Binding.cs,
	  Soap12BodyBinding.cs, Soap12FaultBinding.cs, Soap12HeaderBinding.cs,
	  Soap12OperationBinding.cs, WebReference.cs, WebReferenceCollection.cs,
	  WebServicesInteroperability.cs: Mostly implemented new 2.0 classes.

svn path=/trunk/mcs/; revision=31068
2004-07-13 10:15:33 +00:00
Lluis Sanchez c7d4f7e171 * WebServiceBindingAttribute.cs, WsiClaims.cs: Added missing attributes.
svn path=/trunk/mcs/; revision=31067
2004-07-13 10:13:11 +00:00
Anirban Bhattacharjee 773832a3e5 2004-07-13 Anirban Bhattacharjee <[email protected]>
* driver.cs: Added support for AddModule compiler option
        * typemanager.cs: AddModule function will now store list of Modules instaed of ModuleBuilders. This change has been made to get LoadModule function working of driver.cs.

svn path=/trunk/mcs/; revision=31066
2004-07-13 09:27:11 +00:00
Umadevi S a831ac16b5 2004-07-13 Umadevi S <[email protected]>
* TriggerAction.cs - Added enum values

svn path=/trunk/mcs/; revision=31064
2004-07-13 05:42:57 +00:00
Anirban Bhattacharjee e9889b6fca 2004-07-13 Anirban Bhattacharjee <[email protected]>
* driver.cs: Compilation to module is supported now

svn path=/trunk/mcs/; revision=31063
2004-07-13 05:28:34 +00:00
Jackson Harper 4573a15a1d * MethodDef.cs: Local lists are not lazyily allocated so they were
getting added to every method. This is legal but wastes space.

svn path=/trunk/mcs/; revision=31060
2004-07-13 03:20:19 +00:00
Fawad Halim c129af1942 For enum fields, GenerateField should emit the field name sans the type.
svn path=/trunk/mcs/; revision=31059
2004-07-13 02:22:26 +00:00
Neale Ferguson 29beaff7b5 Add mvcl instruction
svn path=/trunk/mono/; revision=31055
2004-07-12 23:03:57 +00:00
Martin Baulig 7c0e13a0c0 2004-07-12 Martin Baulig <[email protected]>
* enum.cs (Enum.Define): Call Emit() to emit the attributes.
	Fixes #61293.

svn path=/branches/mono-1-0/mcs/; revision=31054
2004-07-12 23:03:28 +00:00
Neale Ferguson f560e44dbe Fix exception handler to recognize correct handler.
Eliminate memset/memcpy for 0 length requests

svn path=/trunk/mono/; revision=31053
2004-07-12 21:46:45 +00:00
Duncan Mak 73cfa42470 * CER.cs:
* Consistency.cs:
* CriticialFinalizerObject.cs:
* PrePrepareMethodAttribute.cs:
* ReliabilityContractAttribute.cs: Added.

svn path=/trunk/mcs/; revision=31052
2004-07-12 20:16:06 +00:00
Duncan Mak c3b1bf8fe6 2004-07-12 Duncan Mak <[email protected]>
* KeyNotFoundException.cs: Added.

svn path=/trunk/mcs/; revision=31051
2004-07-12 19:50:25 +00:00
Martin Baulig 571dee84c3 2004-07-12 Martin Baulig <[email protected]>
* enum.cs (Enum.Define): Call Emit() to emit the attributes.
	Fixes #61293.

svn path=/trunk/mcs/; revision=31049
2004-07-12 18:34:29 +00:00
Paolo Molaro 3435d254bf Mon Jul 12 20:25:57 CEST 2004 Paolo Molaro <[email protected]>
* mini.c: load value when emitting box operation in
	constrained calls.

svn path=/trunk/mono/; revision=31047
2004-07-12 17:30:31 +00:00
Martin Baulig 773335c277 Moved the marker.
svn path=/trunk/mcs/; revision=31046
2004-07-12 17:23:47 +00:00
Martin Baulig 84afe617ac **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31045
2004-07-12 17:22:32 +00:00
Martin Baulig 23224514c6 **** Merged from MCS ****
svn path=/trunk/mcs/; revision=31044
2004-07-12 17:08:04 +00:00
Ben Maurer 537c60cb52 2004-07-12 Ben Maurer <[email protected]>
* mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
	is one byte shorter than cmp DWORD PTR [eax], 0.

svn path=/trunk/mono/; revision=31043
2004-07-12 16:53:05 +00:00
Paolo Molaro e7f43be53a Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <[email protected]>
* inssel-ppc.brg: arguments on the stack are always
	relative to the stack pointer (spotted by Neale Ferguson).

svn path=/branches/mono-1-0/mono/; revision=31042
2004-07-12 14:56:04 +00:00
Paolo Molaro 8799bcab87 Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <[email protected]>
* inssel-ppc.brg: arguments on the stack are always
	relative to the stack pointer (spotted by Neale Ferguson).

svn path=/trunk/mono/; revision=31041
2004-07-12 14:52:39 +00:00
Geoff Norton cb20bd6be1 Patch for #61112. Approved by eno
svn path=/trunk/mcs/; revision=31040
2004-07-12 13:11:52 +00:00
Neale Ferguson a906a5f5c0 Add instructions to support enhanced memory-to-memory operations.
svn path=/trunk/mono/; revision=31039
2004-07-12 12:05:08 +00:00
Neale Ferguson 213249e0b0 Rework frame handling, correct some ABI problems and optimize memory-to-
memory operations.

svn path=/trunk/mono/; revision=31038
2004-07-12 12:04:24 +00:00
Massimiliano Mantione f9b96ec9c3 2004-07-12 Massimiliano Mantione <[email protected]>
* docs/abc-removal.txt: Updated documentation for ABC removal.

svn path=/trunk/mono/; revision=31035
2004-07-12 08:50:23 +00:00
Massimiliano Mantione 8a01835f45 2004-07-12 Massimiliano Mantione <[email protected]>
* mono/mini/abcremoval.c: Rewritten most of ABC removal.
	* mono/mini/abcremoval.h: Rewritten most of ABC removal.
	* mono/mini/build_relations_propagation_table.pl: Deleted (unneeded after the rewrite).
	* mono/mini/propagated_relations_table.def: Deleted (unneeded after the rewrite).

svn path=/trunk/mono/; revision=31034
2004-07-12 08:41:40 +00:00
Lluis Sanchez fd0fcfd2bc * ReflectionHelper.cs: Fixed bug when registering a map as exported.
Thanks to Juan C. Olivares.

svn path=/trunk/mcs/; revision=31033
2004-07-12 07:50:44 +00:00
Lluis Sanchez 6df5b1ab24 * NewMonoXSD.cs: Accept files with absolute paths.
svn path=/trunk/mcs/; revision=31032
2004-07-12 07:43:29 +00:00
Umadevi S f6d7377985 2004-07-12 Umadevi S <[email protected]>
* Tokenizer.cs - read an Int64 from the text instead of Int32. Resolves
bug 61203

svn path=/trunk/mcs/; revision=31031
2004-07-12 03:47:19 +00:00
Umadevi S 02bd80ed4b 2004-07-12 Umadevi S <[email protected]>
* Tokenizer.cs - read an Int64 from the text instead of Int32. Resolves
bug 61203

svn path=/branches/mono-1-0/mcs/; revision=31030
2004-07-12 03:43:51 +00:00
Gonzalo Paniagua Javier d9777b761c 2004-07-12 Gonzalo Paniagua Javier <[email protected]>
* WebConnection.cs:
	* WebConnectionStream.cs: when the status code is 1xx, 204 or 304,
	"responses MUST NOT include a message-body". We tried to read the
	stream even when getting those codes and considered the 0 length
	read as a failure.

svn path=/branches/mono-1-0/mcs/; revision=31026
2004-07-12 01:46:57 +00:00
Gonzalo Paniagua Javier 5445d60203 2004-07-12 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: if'ed RemoveReferences calls.

svn path=/branches/mono-1-0/mcs/; revision=31025
2004-07-12 01:45:00 +00:00
Gonzalo Paniagua Javier 7416bb8d6f 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
	when no HOME env. variable was set and a NullRef was thrown in a .cctor
	called from other .cctors.

svn path=/trunk/mcs/; revision=31024
2004-07-12 01:37:58 +00:00
Gonzalo Paniagua Javier 0fffd32d9a 2004-07-12 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: if'ed RemoveReferences calls.

svn path=/trunk/mcs/; revision=31023
2004-07-12 01:37:25 +00:00
Atsushi Eno 88497e0dbe 2004-07-12 Atsushi Enomoto <[email protected]>
* xml-classes : oops, list styles.

svn path=/trunk/mono/; revision=31021
2004-07-12 01:31:04 +00:00
Martin Baulig 84f2481310 2004-07-12 Martin Baulig <[email protected]>
* gen-58.cs: New test.

svn path=/trunk/mcs/; revision=31018
2004-07-12 00:18:36 +00:00
Martin Baulig 9c6da612c7 2004-07-12 Martin Baulig <[email protected]>
* reflection.c (mono_field_get_object): If we have
	`field->generic_info', take the attributes from
	`field->generic_info->generic_type'.

svn path=/trunk/mono/; revision=31017
2004-07-12 00:16:06 +00:00
Martin Baulig 07e391df4f 2004-07-12 Martin Baulig <[email protected]>
* mono-debug.c (mono_debug_init): Don't take a `MonoDomain *'.
	This function must be called before initializing the runtime.
	(mono_debug_init_1): New function; call this after initializing
	the runtime, but before loading the assembly.  It tells the
	debugger to load corlib and the builtin types.

	* mono-debug-debugger.c: Did some larger changes in the debugging
	code; support recursive class declarations, make sure we actually
	add all classes.

svn path=/trunk/mono/; revision=31011
2004-07-11 21:24:28 +00:00
Gonzalo Paniagua Javier 7cebe70042 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* debug-helpers.c: undo my previous patch and fixed the real issue in
	../mini/exceptions-x86.c

svn path=/branches/mono-1-0/mono/; revision=31008
2004-07-11 18:38:03 +00:00
Gonzalo Paniagua Javier 4667b80818 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* exceptions-x86.c: delay appending the method name to the trace until
 	after mono_jit_info_table_find is called, as this gets the real
 	MonoMethod.

svn path=/branches/mono-1-0/mono/; revision=31007
2004-07-11 18:37:32 +00:00
Gonzalo Paniagua Javier 5266794175 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* mini/exceptions-x86.c: delay appending the method name to the trace
	until after mono_jit_info_table_find is called, as this gets the real
	MonoMethod.

	* metadata/debug-helpers.c: undo my previous patch and fixed the real
	issue in ../mini/exceptions-x86.c

svn path=/trunk/mono/; revision=31006
2004-07-11 18:34:30 +00:00
Ben Maurer da3adada99 merge
svn path=/branches/mono-1-0/mcs/; revision=31005
2004-07-11 17:37:24 +00:00
Atsushi Eno 2e99b8d298 2004-07-11 Atsushi Enomoto <[email protected]>
* xml-classes : updates and plans/ideas for Mono 1.2.

svn path=/trunk/mono/; revision=31004
2004-07-11 16:11:52 +00:00
Atsushi Eno a57cd64a04 2004-07-11 Atsushi Enomoto <[email protected]>
* Expression.cs, Iterator.cs, XPathNavigator.cs :
	  Use IXmlNamespaceResolver for net 2.0. Removed unused code.
	* XPathEditableNavigator.cs : fixed namespace.
	* XPathNavigator.cs :
	  Fixed inheritance. Added missing MonoTODO.
	  Removed old .net 1.2 code.

svn path=/trunk/mcs/; revision=31000
2004-07-11 09:51:49 +00:00
Atsushi Eno 3699950a04 2004-07-11 Atsushi Enomoto <[email protected]>
* XmlConvertDateTimeOption.cs : it is NET_2_0.
	* IXmlNamespaceResolver.cs,
	  XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
	* XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.

svn path=/trunk/mcs/; revision=30999
2004-07-11 09:50:33 +00:00
Gonzalo Paniagua Javier 6b6b49d95b 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* IsolatedStorageInfo.cs: useGetFolderPath instead of getting "HOME".

svn path=/branches/mono-1-0/mcs/; revision=30998
2004-07-11 07:12:42 +00:00
Gonzalo Paniagua Javier 587cecdb0c 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* IsolatedStorageInfo.cs: useGetFolderPath instead of getting "HOME".

svn path=/trunk/mcs/; revision=30997
2004-07-11 07:08:02 +00:00
Gonzalo Paniagua Javier 2e4e1c0797 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
	when no HOME env. variable was set and a NullRef was thrown in a .cctor
	called from other .cctors.

svn path=/branches/mono-1-0/mono/; revision=30996
2004-07-11 07:02:02 +00:00
Gonzalo Paniagua Javier 6d95cf89e2 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
	when no HOME env. variable was set and a NullRef was thrown in a .cctor
	called from other .cctors.

svn path=/trunk/mono/; revision=30995
2004-07-11 06:59:07 +00:00
Atsushi Eno 2cd43b9ee7 2004-07-11 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatypeVariety.cs : Fixed class name typo.
	* XmlValueConverter.cs : fixed return types.

svn path=/trunk/mcs/; revision=30991
2004-07-11 03:02:56 +00:00
Rafael Teixeira e562293608 2004-07-10 Rafael Teixeira <[email protected]>
* OptionDetails.cs : ExtractParamName method called on constructor instead of code being called on demand (maybe too late)
						 Fix for Bug 61188
						 Handling exceptions on conversion of values, and giving a message a bit friendlier

svn path=/trunk/mcs/; revision=30988
2004-07-10 20:16:29 +00:00
Ben Maurer b3913f7b77 new test
svn path=/trunk/mcs/; revision=30987
2004-07-10 19:32:47 +00:00
Ben Maurer 27dcf5bcdd 2004-07-09 Miguel de Icaza <[email protected]>
* assign.cs (LocalTemporary): Add new argument: is_address,If
	`is_address' is true, then the value that we store is the address
	to the real value, and not the value itself.

	* ecore.cs (PropertyExpr): use the new local temporary
	stuff to allow us to handle X.Y += z (where X is a struct)

svn path=/trunk/mcs/; revision=30986
2004-07-10 19:30:30 +00:00
Paolo Molaro a217010e0b Sat Jul 10 15:48:34 CEST 2004 Paolo Molaro <[email protected]>
* Modulec.s: return just name in ToString (bug #61287).

svn path=/branches/mono-1-0/mcs/; revision=30984
2004-07-10 12:54:52 +00:00
Paolo Molaro 41dcb72519 Sat Jul 10 15:48:34 CEST 2004 Paolo Molaro <[email protected]>
* Modulec.s: return just name in ToString (bug #61287).

svn path=/trunk/mcs/; revision=30983
2004-07-10 12:53:56 +00:00
Miguel de Icaza 011bd63fcc Ok, Managed.Windows.Forms needs to mature a bit more
svn path=/trunk/mcs/; revision=30980
2004-07-10 03:29:45 +00:00
Lluis Sanchez 6b40ba726a sgen.cs, Makefile, sgen.exe.sources: New files
svn path=/trunk/mcs/; revision=30974
2004-07-09 23:30:06 +00:00
Lluis Sanchez 79eeb04df2 * System.Web.Services.dll.sources: Added 2.0 files:
System.Web.Services/WsiClaims.cs
		System.Web.Services.Protocols/InvokeCompletedEventArgs.cs
		System.Web.Services.Protocols/InvokeCompletedEventHandler.cs
		System.Web.Services.Protocols/Soap12FaultCodes.cs
		System.Web.Services.Protocols/SoapFaultSubcode.cs
		System.Web.Services.Protocols/SoapProtocolVersion.cs

svn path=/trunk/mcs/; revision=30973
2004-07-09 23:22:10 +00:00
Lluis Sanchez 42281c4845 * HttpSimpleClientProtocol.cs, HttpWebClientProtocol.cs,
SoapClientMessage.cs, SoapHttpClientProtocol.cs, SoapServerMessage.cs:
	  Added 2.0 stubs.
	* SoapException.cs, SoapHeader.cs, SoapHeaderException.cs, SoapMessage.cs,
	  SoapRpcMethodAttribute.cs, SoapRpcServiceAttribute.cs: Implemented some
	  new methods and properties.
	* WebClientProtocol.cs: uri field must be internal.

svn path=/trunk/mcs/; revision=30972
2004-07-09 23:21:42 +00:00
Lluis Sanchez 4e27c09963 * WebService.cs: Added SoapVersion property.
* WebServiceBindingAttribute.cs: New 2.0 properties.
	* WsiClaims.cs: Added new enumeration.

svn path=/trunk/mcs/; revision=30971
2004-07-09 23:20:34 +00:00
Lluis Sanchez 5221e53fda * CodeExporter.cs: Added private constructor.
* CodeGenerationOptions.cs: Set the correct enum values.
	* CodeIdentifier.cs: Added private constructor.
	* SchemaImporter.cs: Added internal constructor.
	* XmlMapping.cs, XmlSerializer.cs: 2.0 api fix.
	* XmlMemberMapping.cs, XmlSchemaImporter.cs, XmlSerializationWriter.cs: Added 2.0 stubs.
	* XmlSchemaProviderAttribute.cs, XmlSerializerAssemblyAttribute.cs,
	  XmlSerializerVersionAttribute.cs: Set correct attribute usage.
	* XmlSerializationReader.cs: Added missing setter for DecodeName.

svn path=/trunk/mcs/; revision=30970
2004-07-09 23:19:41 +00:00
Lluis Sanchez 447168e8c8 * corlib.dll.sources: Added System.Threading.SendOrPostCallback.cs.
svn path=/trunk/mcs/; revision=30969
2004-07-09 23:18:18 +00:00
Lluis Sanchez c3bb988dd9 SendOrPostCallback.cs: New delegate.
svn path=/trunk/mcs/; revision=30968
2004-07-09 23:17:26 +00:00
Miguel de Icaza 253431811a Spelling
svn path=/trunk/mcs/; revision=30967
2004-07-09 20:13:05 +00:00
Peter Dennis Bartok f608d928d4 - Added support required for new managed System.Windows.Forms library
svn path=/trunk/mcs/; revision=30966
2004-07-09 20:08:40 +00:00
Miguel de Icaza e91cad6a63 Switch implementations
svn path=/trunk/mcs/; revision=30965
2004-07-09 20:03:00 +00:00
Miguel de Icaza aec32df817 New errors
svn path=/trunk/mcs/; revision=30964
2004-07-09 19:15:52 +00:00
Jackson Harper f455475981 * PEAPI.cs: Don't build custom attributes twice.
svn path=/trunk/mcs/; revision=30963
2004-07-09 19:06:45 +00:00
Jackson Harper cdb057a21c * get.c: Make "class" the default so only valuetypes get the
"valuetype" modifier. Otherwise object, string, int,... will get
	it.

svn path=/trunk/mono/; revision=30962
2004-07-09 18:15:47 +00:00
Peter Dennis Bartok bfee1fb2da - Removed usage of Rectangle for drawing. Miguel pointed out it's faster
svn path=/trunk/mcs/; revision=30961
2004-07-09 17:25:23 +00:00
Miguel de Icaza fc4207b5ab 2004-07-09 Miguel de Icaza <[email protected]>
* ProgressBar.cs: Fixed spelling for `block'

	drawProgressBar: renamed to `DrawProgressBar' to follow the coding
	style guidelines.

	Avoid using the += on rect.X, that exposed a bug in the compiler.

svn path=/trunk/mcs/; revision=30960
2004-07-09 17:17:46 +00:00
Miguel de Icaza 0c662b57b3 2004-07-09 Miguel de Icaza <[email protected]>
* loader.c: Removed the mono_loader_wine_init hack now that we are
	doing a managed version of Windows.Forms.

svn path=/trunk/mono/; revision=30959
2004-07-09 16:55:45 +00:00
Dick Porter 368052d906 2004-07-09 Dick Porter <[email protected]>
* PeerCred.cs: Get the unix socket peer credentials.

2004-07-09  Dick Porter  <[email protected]>

	* Socket.cs: Slight tweak to allow unknown objects to be returned
	by GetSocketOption().

svn path=/branches/mono-1-0/mcs/; revision=30958
2004-07-09 16:30:30 +00:00
nobody 81b4185368 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=30957
2004-07-09 16:30:30 +00:00
Dick Porter 4dcf4e1472 2004-07-09 Dick Porter <[email protected]>
* socket-io.h:
	* socket-io.c
	(ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal):
	Add support for SO_PEERCRED if its available.

svn path=/branches/mono-1-0/mono/; revision=30956
2004-07-09 16:28:44 +00:00
Paolo Molaro 2c8b06cd90 Updates.
svn path=/trunk/mono/; revision=30955
2004-07-09 16:09:08 +00:00
Lluis Sanchez 97246217a6 * System.dll.sources: Added files
System.ComponentModel/AsyncCompletedEventArgs.cs
		System.ComponentModel/AsyncCompletedEventHandler.cs

svn path=/trunk/mcs/; revision=30954
2004-07-09 15:38:20 +00:00
Lluis Sanchez 5e42abf59a * AsyncCompletedEventArgs.cs: Implemented.
* AsyncCompletedEventHandler.cs: Implemented.

svn path=/trunk/mcs/; revision=30953
2004-07-09 15:37:52 +00:00
Paolo Molaro e1de07f152 Switch to precise GC design document.
svn path=/trunk/mono/; revision=30950
2004-07-09 15:18:26 +00:00
Sebastien Pouliot 1620eac119 2004-07-09 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Fixed unit tests to work with Fx
	2.0 beta 1.

svn path=/trunk/mcs/; revision=30949
2004-07-09 15:05:12 +00:00
Sebastien Pouliot 3545dd5eff 2004-07-09 Sebastien Pouliot <[email protected]>
* Removed old files (from 1.2 preview).

svn path=/trunk/mcs/; revision=30948
2004-07-09 15:01:26 +00:00
Ben Maurer 76e4ebabf9 remove useless stuff
svn path=/trunk/mono/; revision=30947
2004-07-09 15:00:31 +00:00
Ben Maurer f8316c4caf 2004-07-09 Ben Maurer <[email protected]>
* interp.c: register gc roots

svn path=/trunk/mono/; revision=30946
2004-07-09 14:59:23 +00:00
Sebastien Pouliot 1eb2fe23c4 2004-07-09 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifierTest.cs: Fixed for Fx 2.0 beta1.
	* CmsRecipientTest.cs: Replace Pkcs7RecipientTest.cs in Fx 2.0 beta1.
	* CmsSignerTest.cs: Replace Pkcs7SignerTest.cs in Fx 2.0 beta1.
	* ContentInfoTest.cs: Fixed for Fx 2.0 beta1.
	* EnvelopedCmsTest.cs: Replace EnvelopedPkcs7Test.cs in Fx 2.0 beta1.
	* KeyTransRecipientInfoTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9AttributeTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9DocumentDescriptionTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9DocumentNameTest.cs: Fixed for Fx 2.0 beta1.
	* Pkcs9SigningTimeTest.cs: Fixed for Fx 2.0 beta1.
	* SignedCmsTest.cs: Replace SignedPkcs7Test.cs in Fx 2.0 beta1.
	* SignerInfoTest.cs: Fixed for Fx 2.0 beta1.
	* SubjectIdentifierTest.cs: Fixed for Fx 2.0 beta1.

svn path=/trunk/mcs/; revision=30945
2004-07-09 14:59:18 +00:00
Ben Maurer 8015223328 2004-07-09 Ben Maurer <[email protected]>
* domain.c, gc.c, marshal.c, mono-debug-debugger.c,
	threadpool.c, threads.c: remove static data from rootset.

svn path=/trunk/mono/; revision=30944
2004-07-09 14:59:11 +00:00
Ben Maurer a02b4a95ab 2004-07-09 Ben Maurer <[email protected]>
* threads.c: register roots for gc

svn path=/trunk/mono/; revision=30943
2004-07-09 14:59:03 +00:00
Ben Maurer 3702686059 2004-07-09 Ben Maurer <[email protected]>
* mono-hash.c: register gc roots

svn path=/trunk/mono/; revision=30942
2004-07-09 14:58:56 +00:00
Ben Maurer 6a378da272 2004-07-09 Ben Maurer <[email protected]>
* aot.c: register roots

svn path=/trunk/mono/; revision=30941
2004-07-09 14:58:48 +00:00
Ben Maurer 38daa604b0 First part of the GC patch
svn path=/trunk/mono/; revision=30940
2004-07-09 14:54:55 +00:00
Sebastien Pouliot 2c733c2a20 2004-07-09 Sebastien Pouliot <[email protected]>
* AsnEncodedDataTest.cs: Fixed for Fx 2.0 beta1.
	* CryptographicAttributeTest.cs: New. Moved from S.S.C.Pkcs.
	* OidTest.cs: Fixed for Fx 2.0 beta1.

svn path=/trunk/mcs/; revision=30939
2004-07-09 14:53:59 +00:00
Ben Maurer f7b2963b13 build fix
svn path=/trunk/mcs/; revision=30938
2004-07-09 14:44:22 +00:00
Paolo Molaro ba3f5b85ca New regalloc design.
svn path=/trunk/mono/; revision=30937
2004-07-09 14:38:44 +00:00
Ben Maurer fe46d4ce52 build fix
svn path=/trunk/mcs/; revision=30935
2004-07-09 14:31:58 +00:00
Atsushi Eno 02fac1b92e 2004-07-09 Atsushi Enomoto <[email protected]>
* XmlConvertDateTimeOption.cs : Forgot to change the content...

svn path=/trunk/mcs/; revision=30934
2004-07-09 14:21:23 +00:00
Dick Porter 212c4d3120 2004-07-09 Dick Porter <[email protected]>
* locales.c (ves_icall_System_String_InternalReplace_Str_Comp):
	Don't do any more processing if the matched length was 0.  It was
	increasing the size of the string before.  Fixes bug 61167.

svn path=/branches/mono-1-0/mono/; revision=30933
2004-07-09 14:10:56 +00:00
Dick Porter bdf1c06ad3 2004-07-09 Dick Porter <[email protected]>
* locales.c (ves_icall_System_String_InternalReplace_Str_Comp):
	Don't do any more processing if the matched length was 0.  It was
	increasing the size of the string before.  Fixes bug 61167.

svn path=/trunk/mono/; revision=30932
2004-07-09 14:10:55 +00:00
Atsushi Eno 2f81f65dc3 2004-07-09 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: Added XmlConvertDateTimeOption.cs.

svn path=/trunk/mcs/; revision=30931
2004-07-09 14:05:20 +00:00
Atsushi Eno 1f12b8d706 2004-07-09 Atsushi Enomoto <[email protected]>
* ConformanceLevel.cs : Fixed integer value.
	* Added XmlConvertDateTimeOption.cs.
	* Removed XmlItemView.cs and XmlItemViewCollection.cs.

svn path=/trunk/mcs/; revision=30930
2004-07-09 14:04:37 +00:00
Atsushi Eno 414705f5ef 2004-07-09 Atsushi Enomoto <[email protected]>
* IXmlNamespaceResolver.cs :
	  Fixed return value of GetNamespacesInScope().
	* IXmlDataEvidence.cs,
	  XmlReader.cs,
	  XmlTextReader.cs,
	  XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
	* XmlReader.cs :
	  Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
	* XmlNodeReader.cs,
	  In net_2_0, indexers vanished from XmlNodeReader.
	  In net_2_0, overriden QuoteChar vanished.
	* XmlReaderSettings.cs : set_NameTable is missing.
	* XmlTextReader.cs : Implemented ProhibitDtd.

svn path=/trunk/mcs/; revision=30929
2004-07-09 13:51:23 +00:00
Dick Porter eef810c8ee 2004-07-09 Dick Porter <[email protected]>
* PeerCred.cs: Get the unix socket peer credentials.

2004-07-09  Dick Porter  <[email protected]>

	* Socket.cs: Slight tweak to allow unknown objects to be returned
	by GetSocketOption().

svn path=/trunk/mcs/; revision=30928
2004-07-09 13:04:11 +00:00
Dick Porter d66224e87c 2004-07-09 Dick Porter <[email protected]>
* socket-io.h:
	* socket-io.c
	(ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal):
	Add support for SO_PEERCRED if its available.

svn path=/trunk/mono/; revision=30927
2004-07-09 13:03:03 +00:00
Atsushi Eno 3692cb862a 2004-07-09 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: removed XmlItemView.cs and
	  XmlItemViewCollection.cs (only in 1.2).

svn path=/trunk/mcs/; revision=30926
2004-07-09 12:25:05 +00:00
Umadevi S 152ad12e08 2004-07-09 Umadevi S <[email protected]>
* Modified classes ISqlCommand.cs, ISqlConnection.cs,ISqlExecutionContext.cs, InvalidUdtException.cs,TriggerAction.cs : Added missing methods,properties,constructors

svn path=/trunk/mcs/; revision=30924
2004-07-09 09:47:32 +00:00
Anirban Bhattacharjee 6cfc56cf39 2004-07-09 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay:
        * class.cs:
                Default modifier for constructor is set to Public

svn path=/trunk/mcs/; revision=30923
2004-07-09 09:23:09 +00:00
Umadevi S cce4b3ae96 2004-07-09 Umadevi S <[email protected]>
* Added System.Data.Sql/IUdtSerializationContext.cs and System.Data.Sql/SqlFacetAttribute.cs to system.data.dll.sources

svn path=/trunk/mcs/; revision=30922
2004-07-09 09:15:39 +00:00
Umadevi S 3b4c879ac0 2004-07-09 Umadevi S <[email protected]>
* Added files SqlFacetAttribute.cs and IUdtSerializationContext.cs

svn path=/trunk/mcs/; revision=30921
2004-07-09 09:12:10 +00:00
Atsushi Eno 93314cd44c 2004-07-09 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
	* IXmlDataEvidence.cs : not "Evidences" but "Evidence".
	* XmlInputStream.cs : new csc rejected implicit int->char cast.
	* XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
	  LookupPrefix(string) does not require argument string as atomized.
	  Added HasNamespace (string, bool).
	* XmlReader.cs : Added Settings and SchemaInfo properties.
	* XmlReaderSettings.cs : Added NameTable. Throw XmlException when
	  attempt to set Schemas.
	* XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
	  implicit int->char cast.
	* XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".

svn path=/trunk/mcs/; revision=30919
2004-07-09 06:30:18 +00:00
Anirban Bhattacharjee ffcf1cfcac 2004-07-09 Anirban Bhattacharjee <[email protected]>
* mb-parser.jay: Parentheses in method declarations made optional incase of empty parameter list. Thus, a method "Sub s()" can also be declared as "Sub s"

svn path=/trunk/mcs/; revision=30918
2004-07-09 06:13:50 +00:00
Peter Dennis Bartok 97c96f0a3c - winelib.exe.so error message is now only displayed if MONO_DEBUG is set.
To help us avoid questions when people are trying out the
  new Managed.Windows.Forms.

svn path=/trunk/mono/; revision=30917
2004-07-09 05:58:39 +00:00
Atsushi Eno d07103e7f1 2004-07-09 Atsushi Enomoto <[email protected]>
* aot.c : I could just use PLATFORM_WIN32 flag.

svn path=/trunk/mono/; revision=30916
2004-07-09 05:57:46 +00:00
Atsushi Eno 8384791b13 2004-07-09 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: removed one of ImportContext.cs

svn path=/trunk/mcs/; revision=30915
2004-07-09 05:54:13 +00:00
Peter Dennis Bartok 908ff003b9 - Initial check-in
svn path=/trunk/mcs/; revision=30913
2004-07-09 05:21:25 +00:00
Atsushi Eno 3622cdcf9e 2004-07-09 Atsushi Enomoto <[email protected]>
* aot.c : Reverting the previous fix. This time it broke linux build.

svn path=/trunk/mono/; revision=30912
2004-07-09 02:28:04 +00:00
Sebastien Pouliot 081fb00ba2 2004-07-08 Sebastien Pouliot <[email protected]>
* Remove old files from Fx 1.2 preview
		CryptographicAttribute.cs
		EnvelopedPkcs7.cs
		Pkcs7Recipient.cs
		Pkcs7RecipientCollection.cs
		Pkcs7RecipientEnumerator.cs
		Pkcs7Signer.cs
		Pkcs9AttributeCollection.cs
		Pkcs9AttributeEnumerator.cs
		RecipientSubType.cs
		SignedPkcs7.cs

svn path=/trunk/mcs/; revision=30911
2004-07-09 02:14:46 +00:00
Sebastien Pouliot 3a6e1b6b60 2004-07-08 Sebastien Pouliot <[email protected]>
* System.Security.dll.sources: Fixed classes to match Fx 2.0 beta 1.

svn path=/trunk/mcs/; revision=30910
2004-07-09 02:10:52 +00:00
Sebastien Pouliot b030a1037f 2004-07-08 Sebastien Pouliot <[email protected]>
* PublicKeyInfo.cs: Sealed class (forgotten in previous commit).

svn path=/trunk/mcs/; revision=30909
2004-07-09 02:08:50 +00:00
Sebastien Pouliot 0551783bfc 2004-07-08 Sebastien Pouliot <[email protected]>
* OpenFlags.cs: Fixed flags values. Added missing attributes.
	* StoreLocation.cs: Fixed enum values. Added missing [Serializable].
	* StoreName.cs: Fixed enum values. Added missing [Serializable].
	* X500DistinguishedName.cs: New. X.501 DN.
	* X500DistinguishedNameFlags.cs: New. X.501 DN flags.
	* X509CertificateEx.cs: Updated to Fx 2.0 beta 1. Added MonoTODO.
	* X509Chain.cs: Added missing Reset method.
	* X509ChainStatusFlags.cs: Fixed flags values. Added missing attrs.
	* X509Extension.cs: Fixed API.
	* X509ExtensionCollection.cs: Fixed API and implemented.
	* X509FindType.cs: Fixed enum values. Added missing [Serializable].
	* X509IncludeOption.cs: Added missing [Serializable].
	* X509KeyUsageFlags.cs: : Fixed flags values. Added missing attrs.
	* X509NameType.cs: Fixed enum values. Added missing [Serializable].
	* X509RevocationFlag.cs: Fixed enum values. Added missing [Serializable].
	* X509RevocationMode.cs: Added missing [Serializable].
	* X509SelectionFlag.cs: Added missing [Serializable].
	* X509VerificationFlags.cs: Fixed flags values. Added missing attrs.

svn path=/trunk/mcs/; revision=30908
2004-07-09 02:06:25 +00:00
Sebastien Pouliot 5639cacb2c 2004-07-08 Sebastien Pouliot <[email protected]>
* ContentInfo.cs: Added finalizer.
	* CmsRecipient.cs: New. Replace Pkcs7Recipient (from 1.2).
	* CmsRecipientCollection.cs: New. Replace Pkcs7RecipientCollection
	(from 1.2).
	* CmsRecipientEnumerator.cs: New. Replace Pkcs7RecipientEnumerator
	(from 1.2).
	* CmsSigner.cs: New. Replace Pkcs7Signer (from 1.2).
	* EnvelopedCms.cs: New. Replace EnvelopedPkcs7 (from 1.2).
	* KeyAgreeRecipientInfo.cs: Fixed internal constructor.
	* Pkcs9Attribute.cs: Now inherit from AsnEncodedData. Fixed
	constructors.
	* Pkcs9DocumentDescription.cs: Sealed class and fixed API.
	* Pkcs9DocumentName.cs: Sealed class and fixed API.
	* Pkcs9SigningTime.cs: Sealed class and fixed API.
	* PublicKeyInfo.cs: Sealed class.
	* RecipientInfo.cs: Removed protected constructor.
	* RecipientInfoCollection.cs: Sealed class.
	* RecipientInfoEnumerator.cs: Sealed class.
	* SignedCms.cs: New. Replace SignedPkcs7 (from 1.2).
	* SignerInfo.cs: Sealed class and fixed API.
	* SignerInfoCollection.cs: Sealed class and fixed CopyTo.
	* SignerInfoEnumerator.cs: Sealed class.
	* SubjectIdentifier.cs: Sealed class.
	* SubjectIdentifierOrKey.cs: Sealed class.
	* SubjectIdentifierType.cs: Fixed enum and added [Serializable].

svn path=/trunk/mcs/; revision=30907
2004-07-09 01:58:38 +00:00
Sebastien Pouliot 87fcf57b04 2004-07-08 Sebastien Pouliot <[email protected]>
* StorePermissionFlags.cs: Fixed flags values. Added [Serializable]
	attribute.

svn path=/trunk/mcs/; revision=30906
2004-07-09 01:46:05 +00:00
Sebastien Pouliot 1b5a8c10e9 2004-07-08 Sebastien Pouliot <[email protected]>
* AsnEncodedData.cs: Fixes for Fx 2.0 beta 1 compatibility. Added
	MonoTODO to missing functionalities.
	* AsnEncodedDataCollection.cs: New.
	* AsnEncodedDataEnumerator.cs: New.
	* CryptographicAttribute.cs: New. Moved from S.S.C.Pkcs.
	* CryptographicAttributeCollection.cs: New. Replace S.S.C.Pkcs.
	Pkcs9AttributeCollection.
	* CryptographicAttributeEnumerator.cs: New. Replace S.S.C.Pkcs.
	Pkcs9AttributeEnumerator.

svn path=/trunk/mcs/; revision=30905
2004-07-09 01:44:40 +00:00
Atsushi Eno 2e261bee40 2004-07-09 Atsushi Enomoto <[email protected]>
* aot.c : quick cygwin build fix. mkdir() with two args does not exist.

svn path=/trunk/mono/; revision=30904
2004-07-09 00:51:07 +00:00
Gonzalo Paniagua Javier 0945097008 2004-07-08 Pablo Baena <[email protected]>
* Page.cs: added workaround for __doPostBack script on Netscape 4.xx

svn path=/branches/mono-1-0/mcs/; revision=30903
2004-07-08 23:15:57 +00:00
Gonzalo Paniagua Javier 71d851bad0 2004-07-08 Pablo Baena <[email protected]>
* Page.cs: added workaround for __doPostBack script on Netscape 4.xx

svn path=/trunk/mcs/; revision=30902
2004-07-08 23:15:14 +00:00
Gonzalo Paniagua Javier ad0007bcbd 2004-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: removed bogus Monitor.Exit.
	* WebConnection.cs: use Address instead of RequestUri when checking for
	the scheme in order to select the stream type. Fixes bug #61218.

svn path=/branches/mono-1-0/mcs/; revision=30901
2004-07-08 23:10:13 +00:00
Gonzalo Paniagua Javier 2f46599cce 2004-07-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: removed bogus Monitor.Exit.
	* WebConnection.cs: use Address instead of RequestUri when checking for
	the scheme in order to select the stream type. Fixes bug #61218.

svn path=/trunk/mcs/; revision=30900
2004-07-08 23:08:44 +00:00
Jackson Harper 92a4d9045a * main.c: Spaces after visibility types.
svn path=/trunk/mono/; revision=30899
2004-07-08 21:57:22 +00:00
Zoltan Varga 3f33023748 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=30898
2004-07-08 19:15:11 +00:00
Zoltan Varga 9c47748a73 2004-07-08 Zoltan Varga <[email protected]>
* mini.c (handle_stack_args): Remove some more debugging code.

svn path=/trunk/mono/; revision=30897
2004-07-08 19:13:48 +00:00
Zoltan Varga fe60d4b2f7 2004-07-08 Zoltan Varga <[email protected]>
* mini.c (handle_stack_args): Remove debug output left in by mistake.

svn path=/trunk/mono/; revision=30896
2004-07-08 19:07:16 +00:00
Zoltan Varga 25cb2fe3ce 2004-07-08 Zoltan Varga <[email protected]>
* driver.c mini.h aot.c: Allow additional options to be specified with
	--aot and pass them to mono_compile_assembly.

	* aot.c: Add experimental code to AOT compile all loaded assemblies
	on demand and save the code into a cache in the filesystem.

	* aot.c: Add support for more wrapper methods.

svn path=/trunk/mono/; revision=30894
2004-07-08 18:54:59 +00:00
Sebastien Pouliot badd19415b 2004-07-08 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Added new Equals(Object). Moved [Serializable]
	so it's compiled by all profiles. Added missing MonoTODO.
	* X509ContentType.cs: Added new (from 1.2) Pkcs12 enum member. Added
	missing [Serializable] attribute.
	* X509KeyStorageFlags.cs: Specified all flags values. Added missing
	[Serializable] attribute.

svn path=/trunk/mcs/; revision=30893
2004-07-08 17:55:38 +00:00
Sebastien Pouliot 5fb1ea83ee 2004-08-08 Sebastien Pouliot <[email protected]>
* CspProviderFlags.cs: Fixed new enums values.
	* DSA.cs: Fixed #if for constructor visibility.
	* CryptoAPITransform.cs: Removed constructor for NET_2_0 profile.

svn path=/trunk/mcs/; revision=30892
2004-07-08 17:54:24 +00:00
Sebastien Pouliot fdb13aa520 2004-07-08 Sebastien Pouliot <[email protected]>
* AccessControlActions.cs: Fixed enum values. Added missing attributes.

svn path=/trunk/mcs/; revision=30891
2004-07-08 17:53:32 +00:00
Zoltan Varga 6541fd6d40 2004-07-08 Zoltan Varga <[email protected]>
* mini.c (handle_stack_args): Handle some corner cases. Fixes
	58863.

svn path=/trunk/mono/; revision=30890
2004-07-08 17:23:09 +00:00
Zoltan Varga eb6a81a956 2004-07-08 Zoltan Varga <[email protected]>
* cpu-*.md: Remove removed opcodes.

svn path=/trunk/mono/; revision=30889
2004-07-08 17:21:07 +00:00
Zoltan Varga c01b616f5d 2004-07-08 Zoltan Varga <[email protected]>
* interp.c mintops.def transform.c: Replace CEE_MONO_PROC<x> with
	CEE_MONO_ICALL.

svn path=/trunk/mono/; revision=30888
2004-07-08 17:18:54 +00:00
Zoltan Varga dea3d4c13f 2004-07-08 Zoltan Varga <[email protected]>
* mini.h mini.c: Move JIT icall handling to icall.c. Replace usage of
	CEE_MONO_PROC<x> with CEE_MONO_ICALL. Move registration of marshalling
	related icalls to marshal.c.

svn path=/trunk/mono/; revision=30887
2004-07-08 17:17:23 +00:00
Zoltan Varga 5747ae5c59 2004-07-08 Zoltan Varga <[email protected]>
* class-internals.h debug-helpers.c marshal.c: Add new wrapper types
	for isinst and castclass wrappers.

	* class-internals.h icall.c: Move registration and lookup of JIT icalls
	to libmetadata from the JIT, so they could be used by the marshalling
	code and the interpreter.

	* marshal.c: Register marshalling related JIT icalls here instead of
	in mini.c. Use CEE_MONO_ICALL instead of the family of
	CEE_MONO_PROC<x> opcodes to call marshalling functions.

	* metadata.h: Remove unneeded marshalling conversions.

	* opcodes.c: Update for new opcodes.

svn path=/trunk/mono/; revision=30886
2004-07-08 17:15:24 +00:00
Zoltan Varga 06093c36a5 2004-07-08 Zoltan Varga <[email protected]>
* opcode.def: Remove CEE_MONO_FUNC and related opcodes, replace them
	with CEE_MONO_ICALL.

svn path=/trunk/mono/; revision=30885
2004-07-08 17:07:10 +00:00
Jackson Harper c51ba6daae * CodeGen.cs: Add assembly custom attributes to the pe file.
* CustomAttr.cs: Custom attributes are now added through the
	pefile, this ensures that they get emitted properly.
	* ExternTable.cs: Allow adding custom attributes to assembly
	refs.

svn path=/trunk/mcs/; revision=30884
2004-07-08 16:39:36 +00:00
Jackson Harper 32a5444bfe * ILParser.jay: Add custom attributes to assemblyrefs.
svn path=/trunk/mcs/; revision=30883
2004-07-08 16:38:56 +00:00
Jackson Harper b51b3e4c5d * PEAPI.cs: Add custom attributes through the pefile so that we
can ensure they are emitted no matter what table they are
	in. Previously not all custom attributes were getting emitted.

svn path=/trunk/mcs/; revision=30882
2004-07-08 16:38:23 +00:00
Martin Baulig 8a2c6383e9 2004-07-08 Martin Baulig <[email protected]>
* statement.cs (Lock.Resolve): Set ec.NeedReturnLabel() if we do
	not always return, just like we're doing in Using.Resolve().

svn path=/branches/mono-1-0/mcs/; revision=30881
2004-07-08 15:34:41 +00:00
Dick Porter 14755203b0 2004-07-08 Dick Porter <[email protected]>
* io.c (file_seek): If there is a high 32bit offset part, make
	sure the low part isn't sign-extended.  Set error codes when
	returning failure.  Fixes bug 61131.

svn path=/branches/mono-1-0/mono/; revision=30877
2004-07-08 15:10:07 +00:00
Dick Porter 7e6582a25d 2004-07-08 Dick Porter <[email protected]>
* io.c (file_seek): If there is a high 32bit offset part, make
	sure the low part isn't sign-extended.  Set error codes when
	returning failure.  Fixes bug 61131.

svn path=/trunk/mono/; revision=30876
2004-07-08 15:10:04 +00:00
Martin Baulig a2760ee1d3 2004-07-08 Martin Baulig <[email protected]>
* statement.cs (Lock.Resolve): Set ec.NeedReturnLabel() if we do
	not always return, just like we're doing in Using.Resolve().

svn path=/trunk/mcs/; revision=30875
2004-07-08 14:47:14 +00:00
Geoff Norton a94236a83f Patch for #58844 approved by lupus
svn path=/branches/mono-1-0/mcs/; revision=30873
2004-07-08 14:28:30 +00:00
Martin Baulig 13fffc73a8 2004-07-08 Martin Baulig <[email protected]>
* mono-debug.c: Check for `handle->symfile' being non-NULL everywhere.
	(mono_debug_get_domain_data): Make this function static.

svn path=/trunk/mono/; revision=30872
2004-07-08 14:26:42 +00:00
Geoff Norton 553aad470f Patch for #58844 approved by lupus
svn path=/trunk/mcs/; revision=30871
2004-07-08 14:25:53 +00:00
Lluis Sanchez 2db3de1fd5 * XmlSerializer.cs: Fix fix.
svn path=/trunk/mcs/; revision=30870
2004-07-08 14:02:34 +00:00
Lluis Sanchez ce0ff3da1b Test update
svn path=/trunk/mcs/; revision=30869
2004-07-08 13:43:21 +00:00
Lluis Sanchez 7d258e14af * System.Xml.dll.sources: Added new files:
System.Xml.Serialization/IXmlSerializerImplementation.cs
		System.Xml.Serialization/IXmlTextParser.cs
		System.Xml.Serialization/ImportContext.cs
		System.Xml.Serialization/SchemaImporter.cs
		System.Xml.Serialization/SchemaImporterExtension.cs
		System.Xml.Serialization/SchemaImporterExtensionCollection.cs
		System.Xml.Serialization/XmlDeserializationEvents.cs
		System.Xml.Serialization/XmlSchemaProviderAttribute.cs
		System.Xml.Serialization/XmlSerializationGeneratedCode.cs
		System.Xml.Serialization/XmlSerializerAssemblyAttribute.cs
		System.Xml.Serialization/XmlSerializerFactory.cs
		System.Xml.Serialization/XmlSerializerVersionAttribute.cs

svn path=/trunk/mcs/; revision=30868
2004-07-08 13:42:32 +00:00
Lluis Sanchez a8ccb82ef3 * IXmlSerializerImplementation.cs: Compile as internal in NET_1_1.
* ReflectionHelper.cs: New method for generating map keys.
	* SerializationCodeGenerator.cs: Added support for generating the serializer
	  contract class, needed for 2.0.
	* SerializationSource.cs: Use Type[] instead of ArrayList for storing
	  extra types.
	* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
	  as Type[]. Added check that makes sure that enums being serialized are
	  public.
	* XmlMapping.cs: Added internal GetKey method.
	* XmlSerializer.cs: Added support for IXmlSerializerImplementation.
	  Added first bits to support loading of serializers from pre-generated
	  assemblies.
	* XmlSerializerFactory.cs: Mostly implemeted.

svn path=/trunk/mcs/; revision=30867
2004-07-08 13:39:12 +00:00
Anirban Bhattacharjee d22ad668e7 2004-07-07 Anirban Bhattacharjee <[email protected]>
* expression.cs: bug fixed - 60399

svn path=/trunk/mcs/; revision=30866
2004-07-08 12:44:10 +00:00
Geoff Norton 8376b0f597 Patch for #58973. Approved by miguel.
svn path=/branches/mono-1-0/mcs/; revision=30861
2004-07-07 20:12:17 +00:00
Geoff Norton 2e3386df35 Patch for bug #58973 approved by Miguel.
svn path=/trunk/mcs/; revision=30860
2004-07-07 20:02:28 +00:00
Sebastien Pouliot b47097ea6a 2004-07-07 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Added a lot of existing tests
	(from 1.2 documentation) that were never compiled.

svn path=/trunk/mcs/; revision=30859
2004-07-07 20:00:39 +00:00
Sebastien Pouliot 5b902a4465 2004-07-07 Sebastien Pouliot <[email protected]>
* ContentInfoTest.cs: Adjusted for changes in Mono.Security.

svn path=/trunk/mcs/; revision=30858
2004-07-07 19:58:34 +00:00
Sebastien Pouliot 677b25b099 2004-07-07 Sebastien Pouliot <[email protected]>
* Makefile: Added a reference to Mono.Security because we'll require
	many class from it for the NET_2_0 profile - but it would be better
	not to have the dependency for NET_1_1.
	* System.Security.dll.sources: Added a lot of existing classes (from
	1.2 documentation) that	were never compiled.

svn path=/trunk/mcs/; revision=30857
2004-07-07 19:48:25 +00:00
Sebastien Pouliot 4474c0890f 2004-07-07 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Added new attributes present in Fx 2.0.

svn path=/trunk/mcs/; revision=30856
2004-07-07 19:42:02 +00:00
Sebastien Pouliot 4c2bbc43a0 2004-07-07 Sebastien Pouliot <[email protected]>
* StorePermissionFlags.cs: New. CAS-related enum for StorePermission.
	Adding it "creates" the namespace for corcompare.

svn path=/trunk/mcs/; revision=30855
2004-07-07 19:39:07 +00:00
Sebastien Pouliot 6a84d3c639 2004-07-07 Sebastien Pouliot <[email protected]>
* X509Store.cs: Removed old store code (as it has changed a lot in
	Mono.Security).

svn path=/trunk/mcs/; revision=30854
2004-07-07 19:37:27 +00:00
Sebastien Pouliot ab83dcf609 2004-07-07 Sebastien Pouliot <[email protected]>
* EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
	XmlEncElementContentUrl.
	* X509IssuerSerial.cs: Make constructor internal so it doesn't show up
	in corcompare results for NET_2_0 profile.

svn path=/trunk/mcs/; revision=30853
2004-07-07 19:36:05 +00:00
Sebastien Pouliot 2251d1dcd8 2004-07-07 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifier.cs: Added missing #if NET_2_0.
	* ContentInfo.cs: Fixed OID due to changes in Mono.Security.
	* EnvelopedPkcs7.cs: Fixed OID due to changes in Mono.Security.
	* SignedPkcs7.cs: Fixed OID due to changes in Mono.Security.

svn path=/trunk/mcs/; revision=30852
2004-07-07 19:34:25 +00:00
Sebastien Pouliot 5b1c13af04 2004-07-07 Sebastien Pouliot <[email protected]>
* FileDialogPermission.cs: Removed the unrequired override ToString
	from the NET_2_0 profile.

svn path=/trunk/mcs/; revision=30851
2004-07-07 19:28:49 +00:00
Sebastien Pouliot d5b2e66dcf 2004-07-07 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added new files for NET_2_0:
		System.Security.AccessControl/AccessControlActions.cs
		System.Security.Cryptography.X509Certificates/X509ContentType.cs
		System.Security.Cryptography.X509Certificates/X509KeyStorageFlags.cs

svn path=/trunk/mcs/; revision=30850
2004-07-07 19:26:53 +00:00
Sebastien Pouliot 367427ab6f 2004-07-07 Sebastien Pouliot <[email protected]>
* AccessControlActions.cs: New enum in Fx 2.0. Required for new stuff
	in System.Security.Permissions. Will also "creates" the namespace for
	"corcompare".

svn path=/trunk/mcs/; revision=30849
2004-07-07 19:24:06 +00:00
Sebastien Pouliot 7ad0dcd256 2004-07-07 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Fixed NET_2_0 directives.
	* X509ContentType.cs: New enum in Fx 2.0.
	* X509KeyStorageFlags.cs: New flags in Fx 2.0.

svn path=/trunk/mcs/; revision=30848
2004-07-07 19:15:19 +00:00
Sebastien Pouliot 15ed7fe07d 2004-07-07 Sebastien Pouliot <[email protected]>
* DES.cs: Fixed FeedbackSizeValue to 8.
	* RC2.cs: Fixed FeedbackSizeValue to 8.
	* RC2CryptoServiceProvider.cs: When key size is different from
	effective key size we throw CryptographicUnexpectedOperationException.
	* TripleDES.cs: Fixed FeedbackSizeValue to 8.

svn path=/trunk/mcs/; revision=30846
2004-07-07 17:06:02 +00:00
Sebastien Pouliot 9c7665f6b3 2004-07-07 Sebastien Pouliot <[email protected]>
* SymmetricTransform.cs: Throw CryptographicException when CipherMode
	CTS or OFB is being used (to match MS implementation).

svn path=/trunk/mcs/; revision=30845
2004-07-07 17:01:41 +00:00
Gonzalo Paniagua Javier b160918184 2004-07-07 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: don't keep the session around if we got it from
	the context. Fixes bug #61232.

svn path=/branches/mono-1-0/mcs/; revision=30844
2004-07-07 16:57:50 +00:00
Gonzalo Paniagua Javier 89a9ee6a34 2004-07-07 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: don't keep the session around if we got it from
	the context. Fixes bug #61232.

svn path=/trunk/mcs/; revision=30843
2004-07-07 16:57:16 +00:00
Sebastien Pouliot 620f50b194 2004-07-07 Sebastien Pouliot <[email protected]>
* DESTest.cs: Added a new test case to check default values.
	* HMACSHA1.cs: Fixed bad test (and renamed it).
	* RC2Test.cs: Added a new test case to check default values.
	* RijndaelTest.cs: Added a new test case to check default values.
	Convert tests from NUnit 1 to 2.2.
	* TripleDESTest.cs: Added a new test case to check default values.
	Convert tests to NUnit 2.2.

svn path=/trunk/mcs/; revision=30842
2004-07-07 16:55:25 +00:00
Sebastien Pouliot 129576c3bd 2004-07-07 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added new tests for CipherMode and
	CspProviderFlags.

svn path=/trunk/mcs/; revision=30837
2004-07-07 14:25:40 +00:00
Sebastien Pouliot 1d2f1d82f4 2004-07-07 Sebastien Pouliot <[email protected]>
* AllTests2.cs: Updated to NUnit 2.2 Assert.
	* CipherModeTest.cs: New. Tests supported CipherMode for all
	SymmetricAlgorithm included in the framework (enum contains two more
	modes that aren't implemented in any Fx version).
	* CryptoConfigTest.cs: Ajusted new OID (for old names) in Fx 2.0.
	* CryptoStreamTest.cs: Fixed different reported exception in Fx 2.0.
	Fixed a bad test.
	* CspProviderFlagsTest.cs: New. Test the values of the enum.
	* DSACryptoServiceProviderTest.cs: Added new tests for new public
	properties and methods added in Fx 2.0. Duplicated test to import a
	key pair into a disposed instance (works in Fx 2.0). Removed all
	[Ignore]s in NET_2_0 as the MS class/runtime has been fixed.
	* DSASignatureDeformatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
	different reported exception in Fx 2.0.
	* DSASignatureFormatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
	different reported exception in Fx 2.0.
	* HMACRIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
	* HMACSHA1Test.cs: Fixed tests so they work on both NET_1_1 and
	NET_2_0 profiles (as HMACSHA1 changed it's base class).
	* HashAlgorithmTest.cs: Fixed different reported exception in Fx 2.0.
	Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
	* MACTripleDESTest.cs: Fixed tests so they work on both NET_1_1 and
	NET_2_0 profiles.
	* PKCS1MaskGenerationMethodTest.cs: Removed [Ignore] in NET_2_0 as the
	MS class has been fixed.
	* PaddingModeTest.cs: Added new tests for the two new padding mode
	introduced in Fx 2.0. Converted to NUnit 2.2.
	* PasswordDeriveBytesTest.cs: Removed [ExpectedException] for
	StrangeBehaviour test as it is fixed in Fx 2.0.
	* RC2Test.cs: Changed exception from CryptographicException to
	CryptographicUnexpectedOperationException for Fx 1.1/2.0.
	* RIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
	* RSACryptoServiceProviderTest.cs: Added new tests for new public
	properties and methods added in Fx 2.0. Duplicated test to import a
	key pair into a disposed instance (works in Fx 2.0). Duplicated test
	to sign with a null OID (Fx 2.0 use SHA1 oid in this case).
	* RSAOAEPKeyExchangeDeformatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0).
	* RSAOAEPKeyExchangeFormatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0).
	* RSAPKCS1KeyExchangeFormatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0). Removed [Ignore] in NET_2_0 as
	the MS class/runtime has been fixed.
	* RSAPKCS1SignatureDeformatterTest.cs: Null keys, in constructor or in
	SetKey method, now throw an ArgumentNullException in Fx 2.0.
	* RSAPKCS1SignatureFormatterTest.cs: Null keys, in constructor or in
	SetKey method, now throw an ArgumentNullException in Fx 2.0.
	* Rfc2898DeriveBytesTest.cs: Typecasted a null as a string.
	* SymmetricAlgorithm2Test.cs: In Fx 2.0 an empty IV now throws a
	CryptographicException.
	* ToBase64TransformTest.cs: Fixed different reported exception in Fx 2.0.
	Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.

svn path=/trunk/mcs/; revision=30836
2004-07-07 14:20:04 +00:00
Sebastien Pouliot 764ba7255a 2004-07-07 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Added new files for NET_2_0:
		System.Runtime.InteropServices/_Exception.cs
		System.Security.Cryptography/RijndaelManagedTransform.cs
		System.Security.Cryptography/RIPEMD160.cs
		System.Security.Cryptography/RIPEMD160Managed.cs

svn path=/trunk/mcs/; revision=30835
2004-07-07 14:12:08 +00:00
Sebastien Pouliot 44b32ca6f4 2004-07-07 Sebastien Pouliot <[email protected]>
* MACAlgorithm.cs: Removed the hardcoded PaddingMode.Zeros as this is
	now selectable in Fx 2.0.

svn path=/trunk/mcs/; revision=30834
2004-07-07 14:08:08 +00:00
Sebastien Pouliot 7c32587fbf 2004-07-07 Sebastien Pouliot <[email protected]>
* CryptoAPITransform.cs: Added the new Reset method for NET_2_0. This
	is a NOP as this class isn't used by Mono (all crypto transforms are
	managed).
	* CryptographicException.cs: Added _Exception interface for NET_2_0
	profile.
	* CspProviderFlags.cs: Added new enum's members for NET_2_0.
	* DSA.cs: Changed constructor to protected for NET_2_0. It is now
	possible to inherit from DSA in other assemblies.
	* DSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface
	ICspAsymmetricAlgorithm (stub),	removed (unrequired) LegalKeySizes
	override, fixed visibility of PublicOnly property.
	* HMACSHA1.cs: Fixed #if for NET_2_0 profile.
	* KeyNumber.cs: Fixed values for new enum in Fx 2.0.
	* MACTripleDES.cs: Added new Padding property to NET_2_0 profile.
	* ProtectedData.cs: Added missing private constructor.
	* ProtectedMemory.cs: Added missing private constructor.
	* RC2CryptoServiceProvider.cs: Added UseSalt property to NET_2_0
	profile. Salt usage must be added to the transforms.
	* RIPEMD160Managed.cs: Removed unrequired [CLSCompliant] attributes.
	* RSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface
	ICspAsymmetricAlgorithm (stub),	fixed visibility of PublicOnly
	property.
	* RijndaelManaged.cs: Use the new RijndaelManagedTransform for Fx 2.0.
	* RijndaelManagedTransform.cs: New. Class is now public in Fx 2.0.

svn path=/trunk/mcs/; revision=30833
2004-07-07 14:02:27 +00:00
Sebastien Pouliot 021f4ee4e8 2004-07-07 Sebastien Pouliot <[email protected]>
* _Exception.cs: New interface in Fx 2.0 to preserve member's order
	for COM interop.

svn path=/trunk/mcs/; revision=30832
2004-07-07 13:49:39 +00:00
Paolo Molaro 6d42d62ae5 Rewrote to explain how things are done and why.
Removed misleading and incorrect info.

svn path=/trunk/mono/; revision=30831
2004-07-07 10:17:05 +00:00
Umadevi S 4798ceff9f 2004-07-07 Umadevi S <[email protected]>
* DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
                SetItemForDataRecord method for the DateTimeClass
		(patch submitted by Aleksey Demakov)

svn path=/branches/mono-1-0/mcs/; revision=30830
2004-07-07 09:42:55 +00:00
Umadevi S 58c4a474da 2004-07-07 Umadevi S <[email protected]>
* DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
                SetItemForDataRecord method for the DateTimeClass
	(patch submitted by Aleksey Demakov)

svn path=/trunk/mcs/; revision=30829
2004-07-07 09:39:02 +00:00
Paolo Molaro d303868738 Wed Jul 7 12:32:29 CEST 2004 Paolo Molaro <[email protected]>
* gc.c, object.h: add nice GC handle API for embedders.

svn path=/trunk/mono/; revision=30828
2004-07-07 09:38:17 +00:00
Umadevi S ef28045d37 2004-07-07 Umadevi S ([email protected])
* OdbcConnection.cs - Allowed Close to be called multiple times
                            - Implementation of Dispose method
        (patch submitted by Sebastien Robitaille)

svn path=/branches/mono-1-0/mcs/; revision=30827
2004-07-07 09:20:28 +00:00
Umadevi S 500a09486f 2004-07-07 Umadevi S ([email protected])
* OdbcConnection.cs - Allowed Close to be called multiple times
                            - Implementation of Dispose method
        (patch submitted by Sebastien Robitaille), corrected a typo

svn path=/trunk/mcs/; revision=30826
2004-07-07 09:19:12 +00:00
Umadevi S 493228944f 2004-07-07 Umadevi S ([email protected])
* OdbcConnection.cs - Allowed Close to be called multiple times
                            - Implementation of Dispose method
	(patch submitted by Sebastien Robitaille)

svn path=/trunk/mcs/; revision=30825
2004-07-07 09:15:52 +00:00
Umadevi S b466b55a14 2004-07-07 Umadevi S ([email protected])
* OdbcCommand.cs : fixed set method for Transaction
	(patch submitted by Sebastien Robitaille)

svn path=/trunk/mcs/; revision=30824
2004-07-07 08:39:49 +00:00
Umadevi S 8307ce34db 2004-07-07 Umadevi S ([email protected])
* OdbcCommand.cs : fixed set method for Transaction
	(patch submitted by Sebastien Robitaille)

svn path=/branches/mono-1-0/mcs/; revision=30823
2004-07-07 08:34:23 +00:00
Juraj Skripsky aeb214d196 Same thing as in HEAD.
2004-07-07  Juraj Skripsky <[email protected]>

        * SessionStateModule.cs: set path in session cookie to application
        path.

svn path=/branches/mono-1-0/mcs/; revision=30821
2004-07-07 05:11:45 +00:00
Juraj Skripsky 60b3b3c049 2004-07-07 Juraj Skripsky <[email protected]>
* SessionStateModule.cs: set path in session cookie to application
        path.

svn path=/trunk/mcs/; revision=30820
2004-07-07 04:53:46 +00:00
Miguel de Icaza b17d5744ff Update TODO OTODO
svn path=/trunk/mcs/; revision=30816
2004-07-07 04:24:19 +00:00
Miguel de Icaza de335d544b 2004-07-07 Miguel de Icaza <[email protected]>
* cs-parser.jay (fixed_statement): flag this as Pinned.

2004-07-06  Miguel de Icaza  <[email protected]>

	* typemanager.cs (TypeManager): Removed MakePinned method, this
	mechanism is replaced with the .NET 2.x compatible mechanism of
	calling `ILGenerator.DeclareLocal (Type t, bool pinned)'.

	* statement.cs (LocalInfo): Remove MakePinned, add Pinned property
	Rename `Fixed' to `Pinned' as a flag, to distinguish from the
	`IsFixed' property which has a different meaning.

svn path=/trunk/mcs/; revision=30815
2004-07-07 03:55:54 +00:00
Miguel de Icaza 62110d8297 2004-07-07 Miguel de Icaza <[email protected]>
* LocalBuilder.cs: Remove MakePinned, we are now going to use
	ILGenerator.DeclaraLocal that takes the `bool pinned' argument.

	* ILGenerator.cs (DeclareLocal): Add `pinned' version of the
	method on the 2.0 profile.

svn path=/trunk/mcs/; revision=30814
2004-07-07 03:53:54 +00:00
Gonzalo Paniagua Javier decb2e11aa 2004-07-07 Gonzalo Paniagua Javier <[email protected]>
* BaseCompiler.cs:
	* WebServiceCompiler.cs: really create the dlls under DynamicBase

svn path=/branches/mono-1-0/mcs/; revision=30809
2004-07-07 00:46:26 +00:00
Gonzalo Paniagua Javier 358ae990ef 2004-07-02 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: added internal HaveTrace property whose
	value is true when the page has a Trace attribute.

	* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
	throw.

	* System.Web.UI/Page.cs: added additional checks for saving/displaying
	trace data.

	* System.Web.UI/PageParser.cs: removed checks for trace enabled in
	configuration files.

	Thanks to David Taylor for most of these patch and the tests.

svn path=/trunk/mcs/; revision=30808
2004-07-07 00:45:56 +00:00
Zoltan Varga 0249402d99 2004-07-06 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_SAVE_LMF and OP_RESTORE_LMF.

svn path=/trunk/mono/; revision=30802
2004-07-06 20:23:57 +00:00
Ben Maurer 69429eec13 document about gc roots in C
svn path=/trunk/mono/; revision=30800
2004-07-06 20:19:17 +00:00
Zoltan Varga 0631696d1e 2004-07-06 Zoltan Varga <[email protected]>
* Makefile.am (EXTRA_DIST): Add inssel-long[32].brg.

svn path=/trunk/mono/; revision=30798
2004-07-06 19:48:50 +00:00
Zoltan Varga 335216afa8 2004-07-06 Zoltan Varga <[email protected]>
* inssel.brg: Fix warning. Add rules for SAVE_LMF and RESTORE_LMF.

svn path=/trunk/mono/; revision=30797
2004-07-06 19:28:01 +00:00
Jackson Harper a7d7414faf * NumberHelper.cs: Handle real numbers. Thanks to steve brown for
pointing this out. Also don't bother scanning the string again,
	its allready been scanned.

svn path=/trunk/mcs/; revision=30796
2004-07-06 17:00:06 +00:00
Ben Maurer afe8c349de 2004-07-06 Ben Maurer <[email protected]>
* reflection.c: more changes for the new api

	* object.c: When we reflect on a field w/ a constant value, it
	will not have a memory location, so we must access metadata. Also,
	allow easier reading of strings so that we can read them from
	the constant data.

	* class.c (mono_class_layout_fields): no need for literal fields here.

	* class-internals.h: api changes for const fields

	* icall.c (ves_icall_get_enum_info): use new apis for const fields

svn path=/trunk/mono/; revision=30794
2004-07-06 15:35:03 +00:00
Ben Maurer 69b263e693 2004-07-06 Ben Maurer <[email protected]>
* reflection-const-field.cs: New test for reflection on
	constant fields.

svn path=/trunk/mono/; revision=30793
2004-07-06 15:24:42 +00:00
Ben Maurer db2ab7e334 2004-07-06 Ben Maurer <[email protected]>
* liveness.c: If liveness is recomputated we need to reset the information
	for each variable. This way, if the liveness range has been narrowed
	by optimizations that happened after the last computation, we can return
	a smaller range.

	For example, if you have

	{
		int i = 0;

		// Tons of code that does not affect i

		i = foo ();
		...
	}

	i = 0 is dead code and will be removed by SSA. However, when
	linear scan gets to the code, i will still appear to be live
	throughout the entire block. This prevents good register allocation.

svn path=/trunk/mono/; revision=30791
2004-07-06 15:00:51 +00:00
Jackson Harper 59216cee4b * get.c: Add float cast for outputing floats. Patch by Steve
Brown.

svn path=/trunk/mono/; revision=30790
2004-07-06 14:24:34 +00:00
Dick Porter cc5595320e 2004-07-06 Dick Porter <[email protected]>
* MonoIO.cs: Add ERROR_INVALID_PARAMETER to the exception list.
	Don't blow away the SetFileTime() error before the caller gets to
	see it.  Part of the bug fix to 60970.

svn path=/branches/mono-1-0/mcs/; revision=30789
2004-07-06 13:49:50 +00:00
Dick Porter 31b57b209d 2004-07-06 Dick Porter <[email protected]>
* io.c (file_setfiletime): Check for underflow when converting to
	time_t values.  Set error codes when returning failure.  Fixes bug
	60970.

svn path=/branches/mono-1-0/mono/; revision=30788
2004-07-06 13:49:49 +00:00
Dick Porter 9106dd2968 2004-07-06 Dick Porter <[email protected]>
* MonoIO.cs: Add ERROR_INVALID_PARAMETER to the exception list.
	Don't blow away the SetFileTime() error before the caller gets to
	see it.  Part of the bug fix to 60970.

svn path=/trunk/mcs/; revision=30787
2004-07-06 13:49:44 +00:00
Dick Porter 48e741dbdf 2004-07-06 Dick Porter <[email protected]>
* io.c (file_setfiletime): Check for underflow when converting to
	time_t values.  Set error codes when returning failure.  Fixes bug
	60970.

svn path=/trunk/mono/; revision=30786
2004-07-06 13:49:41 +00:00
Lluis Sanchez b563590b6a * SoapMessageFormatter.cs: In BuildMethodCallFromSoapMessage, set get the
parameters from the SoapMessage by position, not by name, since names
	  may be different. This fixes bug #60427.

svn path=/branches/mono-1-0/mcs/; revision=30784
2004-07-06 08:52:04 +00:00
Lluis Sanchez 10333b362b * SoapMessageFormatter.cs: In BuildMethodCallFromSoapMessage, set get the
parameters from the SoapMessage by position, not by name, since names
	  may be different. This fixes bug #60427.

svn path=/trunk/mcs/; revision=30783
2004-07-06 08:51:47 +00:00
Raja R Harinath a4a3d5c5e9 List newly added NET 2.0 stubs.
svn path=/trunk/mcs/; revision=30780
2004-07-06 05:56:25 +00:00
Gonzalo Paniagua Javier 127f529ec9 2004-07-06 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
	#61181.

svn path=/branches/mono-1-0/mcs/; revision=30766
2004-07-05 23:51:43 +00:00
Gonzalo Paniagua Javier 1166c99e06 2004-07-06 Gonzalo Paniagua Javier <[email protected]>
* HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
	#61181.

svn path=/trunk/mcs/; revision=30765
2004-07-05 23:50:41 +00:00
Martin Baulig 50bf4b4797 2004-07-06 Martin Baulig <[email protected]>
* debug-mini.c (mono_debug_init_method): Allow
	MONO_WRAPPER_MANAGED_TO_NATIVE wrappers.
	(mono_debug_add_icall_wrapper): New method.

	* mini.c (mono_icall_get_wrapper): Call mono_debug_add_icall_wrapper().

svn path=/trunk/mono/; revision=30764
2004-07-05 23:35:35 +00:00
Martin Baulig 3d13c548d8 2004-07-06 Martin Baulig <[email protected]>
* mono-debug.h: Increment version number to 44.

	* mono-debug.c (mono_debug_add_wrapper): The second argument is
	now a gpointer, rewrote this whole method.

	* mono-debug-debugger.c (mono_debugger_add_wrapper): New
	function.  Add information about the wrapper in a new "misc table".

	* mono-debug-debugger.h (MonoDebuggerSymbolTable): Added fields
	for the new misc table.

svn path=/trunk/mono/; revision=30763
2004-07-05 23:33:29 +00:00
Lluis Sanchez c397230784 * CodeIdentifier.cs: Removed constructor for NET_2_0.
* SoapCodeExporter.cs, SoapSchemaImporter.cs, XmlCodeExporter.cs,
	  XmlMapping.cs, XmlMemberMapping.cs, XmlReflectionImporter.cs,
	  XmlSchemaExporter.cs, XmlSchemaImporter.cs, XmlSchemas.cs,
	  XmlSerializationReader.cs, XmlSerializationWriter.cs, XmlSerializer.cs,
	  XmlSerializerNamespaces.cs: Added 2.0 stubs.
	* XmlMembersMapping.cs, XmlTypeMapping.cs: 2.0 fixage.
	* IXmlTextParser.cs, CodeExporter.cs, CodeGenerationOptions.cs,
	  ImportContext.cs, SchemaImporter.cs, SchemaImporterExtension.cs,
	  SchemaImporterExtensionCollection.cs, XmlDeserializationEvents.cs,
	  XmlSchemaProviderAttribute.cs, XmlSerializationGeneratedCode.cs,
	  XmlSerializerAssemblyAttribute.cs, XmlSerializerFactory.cs,
	  XmlSerializerVersionAttribute.cs: New files. More 2.0 stubs.

svn path=/trunk/mcs/; revision=30757
2004-07-05 18:12:19 +00:00
Zoltan Varga 47a05e7afc 2004-07-05 Zoltan Varga <[email protected]>
* metadata-internals.h image.c: Add a cache for helper signatures.

svn path=/trunk/mono/; revision=30751
2004-07-05 16:47:38 +00:00
Jackson Harper 449432ab5e * RegexTest.cs: Add some simple tests for debugging/zen
building.

svn path=/trunk/mcs/; revision=30750
2004-07-05 16:30:06 +00:00
Jackson Harper b1f84a518a * RegexTest.cs: Add some simple tests for debugging/zen
building.

svn path=/trunk/mcs/; revision=30749
2004-07-05 16:11:37 +00:00
Dick Porter 254baa76a0 2004-07-05 Dick Porter <[email protected]>
* mutexes.c (mutex_ops_init): Make the named mutex mutex sharable.

	* daemon.c (unref_handle): Only destroy a handle if all processes
	have released it, not just the current one.  Fixes bug 60887.

svn path=/branches/mono-1-0/mono/; revision=30747
2004-07-05 15:29:12 +00:00
Dick Porter 888e98bb82 2004-07-05 Dick Porter <[email protected]>
* mutexes.c (mutex_ops_init): Make the named mutex mutex sharable.

	* daemon.c (unref_handle): Only destroy a handle if all processes
	have released it, not just the current one.  Fixes bug 60887.

svn path=/trunk/mono/; revision=30746
2004-07-05 15:29:06 +00:00
Dick Porter ed513a7a08 2004-07-05 Dick Porter <[email protected]>
* CheckPermission.cs:
	* File.cs:
	* FileInfo.cs:
	* MonoIO.cs:
	* FileStream.cs: Give the filename when throwing
	FileNotFoundException.  Fixes bug 61120, based on patch from
	Carlos Alberto Cesario <[email protected]>.

svn path=/branches/mono-1-0/mcs/; revision=30745
2004-07-05 15:05:45 +00:00
Dick Porter 55e8d9fe73 2004-07-05 Dick Porter <[email protected]>
* CheckPermission.cs:
	* File.cs:
	* FileInfo.cs:
	* MonoIO.cs:
	* FileStream.cs: Give the filename when throwing
	FileNotFoundException.  Fixes bug 61120, based on patch from
	Carlos Alberto Cesario <[email protected]>.

svn path=/trunk/mcs/; revision=30744
2004-07-05 15:05:43 +00:00
Zoltan Varga 5cec32213c 2004-07-05 Zoltan Varga <[email protected]>
* Makefile.am pinvoke3.cs pinvoke9.cs: Merge pinvoke9 into pinvoke3.

svn path=/trunk/mono/; revision=30743
2004-07-05 14:37:03 +00:00
Dick Porter 77b500dac6 2004-07-05 Dick Porter <[email protected]>
* File.cs: File.Move() should check that the destination doesn't
	already exist.  Fixes bug 60915, patch based on one from Carlos
	Alberto Cesario <[email protected]>.

svn path=/branches/mono-1-0/mcs/; revision=30742
2004-07-05 14:30:29 +00:00
Dick Porter 5fd2b136bf 2004-07-05 Dick Porter <[email protected]>
* File.cs: File.Move() should check that the destination doesn't
	already exist.  Fixes bug 60915, patch based on one from Carlos
	Alberto Cesario <[email protected]>.

svn path=/trunk/mcs/; revision=30741
2004-07-05 14:30:28 +00:00
Rafael Teixeira 6a1d7702da oops
svn path=/trunk/mcs/; revision=30740
2004-07-05 14:13:02 +00:00
Rafael Teixeira 6fea64e409 2004-07-05 Rafael Teixeira <[email protected]>
* Strings.cs: corrected 3 long-standing errors as detected by our nunit tests

svn path=/trunk/mcs/; revision=30739
2004-07-05 14:09:20 +00:00
Zoltan Varga de4717d611 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=30738
2004-07-05 12:32:14 +00:00
Zoltan Varga 39e59b5b8b 2004-07-05 Zoltan Varga <[email protected]>
* mintops.h: Applied patch from Marcin Krzyzanowski ([email protected]). Add support for unaligned access on little endian machines.

	* interp.c:Applied patch from Marcin Krzyzanowski ([email protected]). Fix crash seen on amd64.

svn path=/trunk/mono/; revision=30737
2004-07-05 12:29:38 +00:00
Zoltan Varga 73e1915d7c 2004-07-05 Zoltan Varga <[email protected]>
* monosn.c: Applied patch from "grompf" ([email protected]). Fix compilation under OSX.

svn path=/trunk/mono/; revision=30736
2004-07-05 12:06:41 +00:00
Lluis Sanchez b5b5ac9edf * Methods.cs: When using RPC, ignore RequestElementName and MessageName,
and always uses the method name (MS.NET seems to do this).

svn path=/trunk/mcs/; revision=30735
2004-07-05 09:52:18 +00:00
Zoltan Varga f3ae3308ad Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=30734
2004-07-05 08:32:46 +00:00
Zoltan Varga c57e0d3528 2004-07-05 Zoltan Varga <[email protected]>
* mini.c (optimize_branches): Fix linking of bblocks in branch->branch
	optimization.

svn path=/trunk/mono/; revision=30733
2004-07-05 08:30:33 +00:00
Anirban Bhattacharjee 9cf6749a38 2004-07-04 Anirban Bhattacharjee <[email protected]>
* StringType.cs: Fix for bug #60983 - submitted by [email protected]

svn path=/trunk/mcs/; revision=30732
2004-07-05 07:41:12 +00:00
Zoltan Varga d7cd77ceb2 2004-07-03 Zoltan Varga <[email protected]>
* aot.c (mono_aot_load_method): Fix loading of debug info.

svn path=/trunk/mono/; revision=30707
2004-07-03 19:02:09 +00:00
Zoltan Varga 7b7d5e46f4 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=30704
2004-07-03 16:14:14 +00:00
Zoltan Varga 2dbdaba4d5 2004-07-03 Zoltan Varga <[email protected]>
* configure.in: Add --with-tls option to replace the misnamed
	--with-nptl option.

svn path=/trunk/mono/; revision=30703
2004-07-03 16:12:12 +00:00
Jackson Harper 16bc0ba7af oops
svn path=/trunk/mcs/; revision=30697
2004-07-02 23:29:51 +00:00
Jackson Harper 689a401527 * PlatformID.cs: New 2.0 values.
svn path=/trunk/mcs/; revision=30696
2004-07-02 23:25:49 +00:00
Jackson Harper 418456d7e5 * Compiler.cs:
* CompilerError.cs:
	* ErrorLevel.cs: Make obsolete in 2.0

svn path=/trunk/mcs/; revision=30692
2004-07-02 21:25:28 +00:00
Lluis Sanchez a551eeb2fd * RemotingConfiguration.cs: Avoid adding "id" and "type" as custom
properties of providers. This fixes bug #60934.
	* ServerIdentity.cs, RemotingServices.cs: When disposing an identity, detach
	  the identity from the object, so it can be safely marshalled again.

svn path=/branches/mono-1-0/mcs/; revision=30685
2004-07-02 15:37:50 +00:00
Lluis Sanchez be62236ebf * BinaryCommon.cs: Added CheckSerializable method.
* ObjectWriter.cs: Check for type serializability even for members with
	  null values.

svn path=/trunk/mcs/; revision=30684
2004-07-02 15:25:27 +00:00
Zoltan Varga d9482df336 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=30683
2004-07-02 15:24:55 +00:00
Miguel de Icaza 2cf6798080 Bring another patch from HEAD from Zoltan
svn path=/branches/mono-1-0/mono/; revision=30677
2004-07-02 14:48:15 +00:00
Miguel de Icaza 8dc9ab54cc Applied patch from Zoltan from HEAD
svn path=/branches/mono-1-0/mcs/; revision=30676
2004-07-02 14:46:45 +00:00
Miguel de Icaza cd4389011e Commit from head
svn path=/branches/mono-1-0/mono/; revision=30675
2004-07-02 14:44:05 +00:00
Lluis Sanchez 8b677cc9ec * ChannelServices.cs: In UnregisterChannel, look for registered channels
using reference compares.

svn path=/trunk/mcs/; revision=30671
2004-07-02 14:08:17 +00:00
Lluis Sanchez 56907edd29 * ServerIdentity.cs: When disposing an identity, detach the identity from
the object, so it can be safely marshalled again.
	* RemotingServices.cs: Fixed IsObjectOutOfContext and
	  IsObjectOutOfAppDomain. In SetObjectUriForMarshal, take into account
	  contextful objects.

svn path=/trunk/mcs/; revision=30670
2004-07-02 14:03:47 +00:00
Lluis Sanchez 9b8f2df735 * SerializationCodeGenerator.cs: Generate check that the object being
serialized has a known type. Little cast fix.
	* XmlCustomFormatter.cs: Little fix in Single conversion.

svn path=/trunk/mcs/; revision=30669
2004-07-02 13:59:56 +00:00
Lluis Sanchez 2a5ca4ac29 * XmlReturnWriter.cs: Add XmlIncludes to the reflection importer when
reflecting the return type.

svn path=/trunk/mcs/; revision=30668
2004-07-02 13:57:28 +00:00
Zoltan Varga 83dd930019 2004-07-03 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_managed_wrapper): Handle returning
	delegates from a delegate. Fixes #61033.

svn path=/trunk/mono/; revision=30667
2004-07-02 13:54:02 +00:00
Zoltan Varga a1f7112a5c 2004-07-03 Zoltan Varga <[email protected]>
* pinvoke3.cs libtest.c: New test for returning delegates from a
	delegate.

svn path=/trunk/mono/; revision=30666
2004-07-02 13:52:25 +00:00
Lluis Sanchez 47ac0d6681 * ActivationTests.cs: Fixed and enhanced tests.
* RemotingServicesTest.cs: Added.

svn path=/trunk/mcs/; revision=30665
2004-07-02 13:29:58 +00:00
Zoltan Varga cd0fb2445e 2004-07-03 Zoltan Varga <[email protected]>
* ModuleTest.cs: New tests for FindTypes.

svn path=/trunk/mcs/; revision=30663
2004-07-02 12:56:18 +00:00
Zoltan Varga 45d0bc41e7 2004-07-03 Zoltan Varga <[email protected]>
* Module.cs: Initialize FilterTypeName[IgnoreCase]. Fixes #61048.

svn path=/trunk/mcs/; revision=30662
2004-07-02 12:55:44 +00:00
Zoltan Varga 7b30a3f2e1 2004-07-03 Zoltan Varga <[email protected]>
* marshal.c: Fix managed->native stringbuilder marshalling. Implement
	marshalling of stringbuilder arrays. Fixes #59900.

svn path=/trunk/mono/; revision=30659
2004-07-02 12:21:17 +00:00
Zoltan Varga 3cbe744843 2004-07-03 Zoltan Varga <[email protected]>
* pinvoke2.cs libtest.c: New tests for stringbuilder marshalling.

svn path=/trunk/mono/; revision=30658
2004-07-02 12:15:55 +00:00
Jordi Mas i Hernandez 3e11b38841 fixes bug 61050 - backport to STABLE
svn path=/branches/mono-1-0/mcs/; revision=30657
2004-07-02 10:46:36 +00:00
Jordi Mas i Hernandez ab10a29588 fixes bug 61050
svn path=/trunk/mcs/; revision=30655
2004-07-02 10:08:07 +00:00
Raja R Harinath 0f303c45b4 (DoSimpleNameResolve): Expand CS0038 check to all names
visible from inside a nested class, not just the names of the
immediately enclosing class.
Fix for bug #60730.

svn path=/trunk/mcs/; revision=30654
2004-07-02 10:06:01 +00:00
Raja R Harinath 7b9799de93 * cs0038-3.cs: New testcase from #60730.
* cs0038-4.cs: Likewise.

svn path=/trunk/mcs/; revision=30653
2004-07-02 10:05:18 +00:00
Jochen Wezel ba03d63cf5 File had moved to /system/Microsoft.VisualBasic a long time ago
svn path=/trunk/mcs/; revision=30650
2004-07-02 09:42:23 +00:00
Raja R Harinath c950842ec2 Support for avoiding "sharing violations" while compiling core
libraries with an in-tree compiler.
* build/library.make (LIBRARY_USE_INTERMEDIATE_FILE): New toggle.
($(the_lib)): Use it.
* class/Mono.CSharp.Debugger/Makefile (LIBRARY_USE_INTERMEDIATE_FILE): Define.
(LIBRARY_COMPILE): Simplify.
* class/corlib/Makefile (LIBRARY_USE_INTERMEDIATE_FILE): Define.
* class/System/Makefile (LIBRARY_USE_INTERMEDIATE_FILE): Define.
* class/System.XML/Makefile (LIBRARY_USE_INTERMEDIATE_FILE): Define.

svn path=/trunk/mcs/; revision=30648
2004-07-02 08:54:08 +00:00
Raja R Harinath 77c26d6ab9 * Makefile (OVERRIDE_BARE_TARGETS): Remove.
(OVERRIDE_TARGET_ALL): Define.
(all-recursive,$(STD_TARGETS:=-recursive)): Depend on
'platform-check' and 'profile-check'.
(all.override): New.  Run two passes: once to build, and once to
sign libraries.

build/:
* rules.make (OVERRIDE_BARE_TARGETS): Remove.
(OVERRIDE_TARGET_ALL): New control for overriding the default all:
rule.  If set, 'make all' will run 'all.override' from the client
Makefile.
(all): Move commands ...
(all.real): ... here.  Make ordering assumptions explicit, and
parallel-safe.
(test,run-test,run-test-ondotnet,clean,install,uninstall):
Consolidate into ...
(STD_TARGETS): ... this new variable.  Make ordering assumption
between -recursive and -local targets explicit.
(%-recursive): Handle W32 GNU make that has --unix as the first
argument in $(MAKE).
* README.makefiles (Special recursion needs): Update to reflect
changes.
* library.make (all-local): Build $(the_lib_signature_stamp) when
NO_SIGN_ASSEMBLY is defined.
($(gacutil),$(sn)): Consolidate rules.
(test-local,run-test-local,run-test-ondotnet-local): Likewise.

class/:
* IBM.Data.DB2/Makefile (all-local $(STD_TARGETS:=-local)):
Simplify dummy rule somewhat.

class/Npgsql/:
* Makefile (OVERRIDE_BARE_TARGETS): Remove.
($(the_lib)): Make dependency explicit.

class/corlib/:
* Makefile ($(net20bootstrap_makefrag)): Build from net_2_0
profile response file.
(gmcs): Style update.

svn path=/trunk/mcs/; revision=30643
2004-07-02 08:31:03 +00:00
Raja R Harinath 8feefe364c (mcs-do-basic-build, mcs-do-short-build):
Pass NO_SIGN_ASSEMBLY=yes to sub-make.
($(tmpinst)/bin/mono) [PLATFORM_WIN32]: Make it work.

svn path=/trunk/mono/; revision=30642
2004-07-02 08:15:53 +00:00
Raja R Harinath 86f21eba3e * config-default.make (TEST_RUNTIME): Use 'mono' by default.
* platforms/win32.make (TEST_RUNTIME): Remove.
* profiles/default.make (TEST_RUNTIME): Remove.

svn path=/trunk/mcs/; revision=30640
2004-07-02 07:25:17 +00:00
Gonzalo Paniagua Javier 3441ae31c5 Same thing as in HEAD.
2004-07-02 Gonzalo Paniagua Javier <[email protected]>

	* System.Web/TraceContext.cs: added internal HaveTrace property whose
	value is true when the page has a Trace attribute.

	* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
	throw.

	* System.Web.UI/Page.cs: added additional checks for saving/displaying
	trace data.

	* System.Web.UI/PageParser.cs: removed checks for trace enabled in
	configuration files.

	Thanks to David Taylor for most of these patch and the tests.

svn path=/branches/mono-1-0/mcs/; revision=30639
2004-07-02 01:56:38 +00:00
Gonzalo Paniagua Javier 8432e31ff8 2004-07-02 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: added internal HaveTrace property whose
	value is true when the page has a Trace attribute.

	* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
	throw.

	* System.Web.UI/Page.cs: added additional checks for saving/displaying
	trace data.

	* System.Web.UI/PageParser.cs: removed checks for trace enabled in
	configuration files.

	Thanks to David Taylor for most of these patch and the tests.

svn path=/trunk/mcs/; revision=30638
2004-07-02 01:54:48 +00:00
Lluis Sanchez f6b470089d * TypeData.cs: In the constructor, set the correct xml type name if the
type is an array (for example, instead of StringCollection, use
	  ArrayOfString).

svn path=/trunk/mcs/; revision=30629
2004-07-01 17:32:17 +00:00
Lluis Sanchez fb4719a1c9 * Conv.asmx.template, Conv.cs.template, client/localhost/ConvDoc*,
server/Conv*: Added tests for unknown headers.
	* proxies.net.xml.gz, wsdlfiles.tar.gz: Updated.

svn path=/trunk/mcs/; revision=30628
2004-07-01 17:29:48 +00:00
Lluis Sanchez 26c519a5c8 * Methods.cs: Check for null when looking for a header serializer, since
unknown headers don't have a serializer.
	* SoapHeader.cs: Check for empty string before setting
	  EncodedMustUnderstand.

svn path=/trunk/mcs/; revision=30627
2004-07-01 17:24:21 +00:00
Lluis Sanchez 1e7a58a2e7 * SoapProtocolReflector.cs: Don't generate wsdl for unknown header
attributes.

svn path=/trunk/mcs/; revision=30626
2004-07-01 17:20:52 +00:00
Lluis Sanchez d3ce74361e * Methods.cs, SoapMessage.cs: Added support for unknown headers.
* SoapHeader.cs, SoapUnknownHeader.cs: Added new constructor that takes an
	  XmlElement with header info.
	* WebServiceHelper.cs: Write the encodingStyle attribute when using the
	  encoded format. Added support for unknown headers.

svn path=/trunk/mcs/; revision=30622
2004-07-01 14:11:28 +00:00
Lluis Sanchez 6bf582e92d * WebServiceTest.cs, client/external/BankCodeEJBHomeTest.cs,
client/external/GlobalWeatherTest.cs, client/external/HPcatalogTest.cs,
	  client/external/IODCODESPOSTAUXTest.cs,
	  client/external/TemperatureServiceTest.cs,
	  client/localhost/DataServiceTest.cs,
	  client/localhost/DuplicateArrayTestTest.cs,
	  client/localhost/IncludeTestTest.cs,
	  client/localhost/TestBinding4Test.cs: Use new nunit 2.2 api.

	* server/ConvDocLitWra.asmx, server/ConvDocEncWra.asmx,
	  server/ConvDocLitBar.asmx, server/ConvDocLitWra.asmx,
	  server/ConvRpc.asmx,

	* wstest.cs: Added support for generating tests cases from a template.
	  Useful to test the same case in all formats and protocols.

	* proxies.net.xml.gz, wsdlfiles.tar.gz: Updated.

	* client/localhost/ConvDocEncBarTest.cs,
	  client/localhost/ConvDocLitBarTest.cs,
	  client/localhost/ConvDocLitWraTest.cs,
	  client/localhost/ConvRpcTest.cs,
	  client/localhost/ConvDocEncBar.asmx:
	  Improved tests. Use new nunit 2.2 api.

	* Conv.cs.template: template for ConverterService client tests.

	* Conv.asmx.template: template for ConverterService services.

	* templates.xml: Configuration file for generating the tests.

svn path=/trunk/mcs/; revision=30621
2004-07-01 14:04:31 +00:00
Zoltan Varga f1af90bdee 2004-07-02 Zoltan Varga <[email protected]>
* EnumBuilder.cs (CreateType): Call a new icall to set the internal
	type field. Fixes #59833.

svn path=/trunk/mcs/; revision=30620
2004-07-01 12:59:57 +00:00
Zoltan Varga 65b5dbe70c 2004-07-02 Zoltan Varga <[email protected]>
* icall.c: Add EnumBuilder:setup_enum_type icall.

svn path=/trunk/mono/; revision=30619
2004-07-01 12:58:31 +00:00
Zoltan Varga 311dcbd59f 2004-07-02 Zoltan Varga <[email protected]>
* aot.c: Add logging support.

svn path=/trunk/mono/; revision=30615
2004-07-01 11:29:54 +00:00
Zoltan Varga 2cfe840c30 2004-07-02 Zoltan Varga <[email protected]>
* man/mono.1: Added 'aot' to trace options.

svn path=/trunk/mono/; revision=30614
2004-07-01 11:28:20 +00:00
Zoltan Varga 5383f53024 2004-07-02 Zoltan Varga <[email protected]>
* mono-logger.h mono-logger.c: Added AOT component.

svn path=/trunk/mono/; revision=30613
2004-07-01 11:27:16 +00:00
Zoltan Varga 25817da862 2004-07-01 Zoltan Varga <[email protected]>
* mini.h: Add prototype for mono_print_method_from_ip.

svn path=/trunk/mono/; revision=30612
2004-07-01 11:05:40 +00:00
Zoltan Varga e2690b1889 2004-07-01 Zoltan Varga <[email protected]>
* mini.c: 64 bit fixes. Use LCOMPARE for comparing longs.

	* inssel.brg: 64 bit fixes.

	* inssel.brg inssel-long32.brg: Move 32 bit arithmetic rules to
	inssel-long32.brg.

svn path=/trunk/mono/; revision=30611
2004-07-01 11:03:12 +00:00
Lluis Sanchez b41f3fa30e * RemotingConfiguration.cs: Avoid adding "id" and "type" as custom
properties of providers. This fixes bug #60934.

svn path=/trunk/mcs/; revision=30610
2004-07-01 11:02:33 +00:00
Zoltan Varga 6a6bb6466b 2004-07-01 Zoltan Varga <[email protected]>
* Makefile.am: Add SPARC64 support.

svn path=/trunk/mono/; revision=30609
2004-07-01 10:59:51 +00:00
Zoltan Varga 3c5660e0c6 2004-07-02 Zoltan Varga <[email protected]>
* Makefile.am (CLEANFILES): Delete .stdout files too.

svn path=/trunk/mono/; revision=30608
2004-07-01 10:49:50 +00:00
Zoltan Varga 43cabfc1bb 2004-07-02 Zoltan Varga <[email protected]>
* aot.c: Fix alignment problems on 32 bit platforms.

svn path=/trunk/mono/; revision=30607
2004-07-01 10:45:02 +00:00
Zoltan Varga 914b9672a9 2004-07-01 Zoltan Varga <[email protected]>
* helpers.c (mono_disassemble_code): Pass -xarch=v9 to assembler on
	SPARC64.

svn path=/trunk/mono/; revision=30606
2004-07-01 10:42:26 +00:00
Zoltan Varga c72b629e45 2004-07-01 Zoltan Varga <[email protected]>
* aot.c: Add SPARC64 support. Reorganize patch table to fix alignment
	problems.

	* mini.h: Bump AOT file version. Some 64 bit fixes.

svn path=/trunk/mono/; revision=30605
2004-07-01 09:22:34 +00:00
Sureshkumar T ff4c7a1a3b 2004-07-01 Sureshkumar T <[email protected]>
* Added test case for OdbcCommand.ExecuteScalar Method
        * New files:
                OdbcCommandTest.cs      - test suite for OdbcCommand class.

svn path=/branches/mono-1-0/mcs/; revision=30604
2004-07-01 06:06:17 +00:00
Sureshkumar T d29fd25493 2004-07-01 Sureshkumar T ([email protected])
* OdbcCommand.cs   : fixed reader problem with ExecuteScalar

svn path=/branches/mono-1-0/mcs/; revision=30603
2004-07-01 05:59:11 +00:00
nobody 7ff8f29ff2 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mcs/; revision=30602
2004-07-01 05:59:11 +00:00
nobody bd3d09bc82 This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
svn path=/branches/mono-1-0/mono/; revision=30602
2004-07-01 05:59:11 +00:00
Sureshkumar T b3fcae2543 2004-07-01 Sureshkumar T <[email protected]>
* Added test case for OdbcCommand.ExecuteScalar Method
        * New files:
                OdbcCommandTest.cs      - test suite for OdbcCommand class.

svn path=/trunk/mcs/; revision=30601
2004-07-01 05:38:51 +00:00
Sureshkumar T e45bd026b8 2004-07-01 Sureshkumar T ([email protected])
* OdbcCommand.cs   : fixed reader problem with ExecuteScalar

svn path=/trunk/mcs/; revision=30600
2004-07-01 05:30:37 +00:00
Zoltan Varga f6f47e0a41 2004-06-30 Zoltan Varga <[email protected]>
* inssel-sparc.brg: Add new rule to avoid register moves.

svn path=/trunk/mono/; revision=30589
2004-06-30 19:33:10 +00:00
Zoltan Varga 38b97371bb 2004-06-30 Zoltan Varga <[email protected]>
* inssel.brg: Add ldind_to_load_membase helper function.

svn path=/trunk/mono/; revision=30587
2004-06-30 19:28:53 +00:00
Ben Maurer 7b6cc1376d 2004-06-30 Ben Maurer <[email protected]>
* RuntimeHelpers.cs: OffsetToStringData is now and intrinsic,

svn path=/trunk/mcs/; revision=30586
2004-06-30 17:46:17 +00:00
Ben Maurer d011bcc972 the runtime part of the intrinsic OffsetToStringData patch
svn path=/trunk/mono/; revision=30585
2004-06-30 17:46:01 +00:00
Zoltan Varga 14be840c31 2004-06-30 Zoltan Varga <[email protected]>
* ssa.c: Handle OP_LCOMPARE the same as OP_COMPARE.

svn path=/trunk/mono/; revision=30581
2004-06-30 15:14:21 +00:00
Zoltan Varga 82e7e5bb99 2004-06-30 Zoltan Varga <[email protected]>
* objects.cs exceptions.cs basic.cs basic-long.cs basic-calls.cs: New
	regression tests.

svn path=/trunk/mono/; revision=30580
2004-06-30 15:13:03 +00:00
Zoltan Varga 52086817ce 2004-06-30 Zoltan Varga <[email protected]>
* inssel-sparc.brg: Add SPARC64 support.

svn path=/trunk/mono/; revision=30579
2004-06-30 15:10:46 +00:00
Zoltan Varga 6b27b55a02 2004-06-30 Zoltan Varga <[email protected]>
* mini-ops.h cpu-sparc.md mini-sparc.h mini-sparc.c exceptions-sparc.c tramp-sparc.c inssel-long.brg: Add SPARC64 support.

svn path=/trunk/mono/; revision=30578
2004-06-30 15:08:54 +00:00
Zoltan Varga 0c3b1698d6 2004-06-30 Zoltan Varga <[email protected]>
* sparc/sparc-codegen.h: Add SPARC64 support.

svn path=/trunk/mono/; revision=30577
2004-06-30 15:04:48 +00:00
Zoltan Varga d499cd4cfc 2004-06-30 Zoltan Varga <[email protected]>
* configure.in: Fix trunc check + add SPARC64 defines.

svn path=/trunk/mono/; revision=30576
2004-06-30 14:55:05 +00:00
Zoltan Varga f1007b5b32 2004-06-30 Zoltan Varga <[email protected]>
* mono-mutex.h atomic.h: Add G_GNUC_UNUSED to static inline functions
	to prevent warnings.

svn path=/trunk/mono/; revision=30575
2004-06-30 14:52:11 +00:00
Zoltan Varga 62d61f8472 2004-06-30 Zoltan Varga <[email protected]>
* class-internals.h (MonoVTable): Make max_interface_id a guint32 so
	it has a constant size across platforms.

svn path=/trunk/mono/; revision=30574
2004-06-30 14:45:08 +00:00
Zoltan Varga 29426ba37a 2004-06-30 Zoltan Varga <[email protected]>
* marshal.c (mono_delegate_end_invoke): Avoid crash when there is no
	stack trace.

svn path=/trunk/mono/; revision=30573
2004-06-30 14:43:23 +00:00
Zoltan Varga ede46accad 2004-06-30 Zoltan Varga <[email protected]>
* strtod.c: Use gint32 for 32 bit types.

svn path=/trunk/mono/; revision=30571
2004-06-30 14:39:48 +00:00
Miguel de Icaza 1fc3540d15 Update CVS policies
svn path=/trunk/mono/; revision=30570
2004-06-30 14:29:44 +00:00
Miguel de Icaza 26c7b44618 Flush
svn path=/trunk/mono/; revision=30569
2004-06-30 14:22:43 +00:00
Paolo Molaro 4cb9b2f954 Wed Jun 30 17:06:43 CEST 2004 Paolo Molaro <[email protected]>
* NumberFormatInfo.cs: workaround for bug 55978.

svn path=/trunk/mcs/; revision=30568
2004-06-30 14:13:48 +00:00
Umadevi S c5d82e771a 2004-06-30 Umadevi S <[email protected]>
* Tds.cs - In the NextResult method handling TdsPacketSubType. TableName.
	Fixed reading the baseschematable problem. Bugs 59946 and 59948

svn path=/trunk/mcs/; revision=30562
2004-06-30 04:27:52 +00:00
Umadevi S e2e9c7e803 2004-06-30 Umadevi S <[email protected]>
* SqlCommand.cs : In the Execute Method the commandbehavior parameters were ignored correct
these Fixes bugs 59946 and 59948.

svn path=/trunk/mcs/; revision=30561
2004-06-30 04:23:58 +00:00
Miguel de Icaza 74666bdb71 Flushage
svn path=/trunk/mono/; revision=30559
2004-06-30 00:18:39 +00:00
Duncan Mak 198c316a65 A bit more
svn path=/trunk/mono/; revision=30558
2004-06-29 23:43:44 +00:00
Duncan Mak 3e23705cee Little fix
svn path=/trunk/mono/; revision=30557
2004-06-29 23:43:11 +00:00
Duncan Mak 5ed836eb64 ONE POINT OH, BABY!
svn path=/trunk/mono/; revision=30556
2004-06-29 23:42:36 +00:00
Marek Safar 30cf47ab7e fixed error message text
svn path=/trunk/mcs/; revision=30529
2004-06-29 15:20:53 +00:00
Miguel de Icaza c68ea769ee update
svn path=/trunk/mcs/; revision=30527
2004-06-29 15:11:06 +00:00
Jackson Harper 6a0ef2bda3 * man/gacutil.1: Update man with new command line options.
svn path=/trunk/mono/; revision=30522
2004-06-29 14:49:15 +00:00
Miguel de Icaza 120479c4b4 Update
svn path=/trunk/mcs/; revision=30521
2004-06-29 14:40:51 +00:00
Miguel de Icaza 62622e734b 1.0
svn path=/trunk/mono/; revision=30517
2004-06-29 14:29:44 +00:00
Gonzalo Paniagua Javier 7ed97db90a 2004-06-29 Gonzalo Paniagua Javier <[email protected]>
* ControlCollection.cs: when clearing the control collection, tell the
	owners about the removal. Fixes bug #60800.

svn path=/trunk/mcs/; revision=30508
2004-06-29 12:42:25 +00:00
Gonzalo Paniagua Javier a6237f8e1f 2004-06-29 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: don't nullify _context after processing the request as there
	are events not triggered yet. Fixes bug #60726.

svn path=/trunk/mcs/; revision=30507
2004-06-29 10:49:23 +00:00
Raja R Harinath 60633644e5 (GAC_ROOT_DIR): Renamed from GAC_DIR.
(GAC_DIR): New define that doesn't include $(DESTDIR).
(install-data-local,uninstall-local): Use them.  Use in-tree mono
runtime, not the installed one.

svn path=/trunk/mono/; revision=30506
2004-06-29 10:23:13 +00:00
Martin Baulig 3b6be82db4 2004-06-29 Martin Baulig <[email protected]>
* mono-debug.c (mono_debug_add_method): Protect the whole function
	in mono_debugger_lock(), not just parts of it.

svn path=/trunk/mono/; revision=30505
2004-06-29 06:22:18 +00:00
Raja R Harinath da7a16cbc0 (gmcs_exe): New. Set only if not W32.
(monotwo_DATA): Use it.
From Atsushi Enomoto.

svn path=/trunk/mono/; revision=30503
2004-06-29 05:25:33 +00:00
Raja R Harinath cd4559a82f Use $(RESGEN) instead of $(INTERNAL_RESGEN).
svn path=/trunk/mcs/; revision=30501
2004-06-29 04:51:48 +00:00
Paolo Molaro 7f5cc73b41 Mon Jun 28 18:05:09 CEST 2004 Paolo Molaro <[email protected]>
* mini.c: reinstated mono_compile_get_interface_var()
	on x86, too, since the change breaks the Gtk# build there as well.

svn path=/trunk/mono/; revision=30479
2004-06-28 15:18:27 +00:00
Gonzalo Paniagua Javier 004725da98 2004-06-28 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: connect on non-blocking sockets returns EINPROGRESS. Fixes
	bug #60811.

svn path=/trunk/mcs/; revision=30478
2004-06-28 15:06:02 +00:00
Ben Maurer b678c0c3a7 Add some new benchmarks. They will be added to the makefile after the freeze
svn path=/trunk/mono/; revision=30477
2004-06-28 14:45:50 +00:00
Miguel de Icaza 188421611f Fix for NetBSD from Marc Recht
svn path=/trunk/mono/; revision=30476
2004-06-28 14:39:01 +00:00
Zoltan Varga 1d2f1b057d 2004-06-29 Zoltan Varga <[email protected]>
* mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption
	in SHA1Transform on 64 bit systems.

svn path=/trunk/mono/; revision=30474
2004-06-28 11:32:30 +00:00
Atsushi Eno 9f0265a347 2004-06-28 Atsushi Enomoto <[email protected]>
* VBCodeCompiler.cs : (only for windows) First check mono.bat, then
	  check mono.exe. It enables xsp working with mono windows installer.

svn path=/trunk/mcs/; revision=30473
2004-06-28 09:45:36 +00:00
Atsushi Eno 28ff9d2fd7 2004-06-28 Atsushi Enomoto <[email protected]>
* CSharpCodeCompiler.cs : (only for windows) First check mcs.bat, then
	  check mcs.exe. It enables xsp working with mono windows installer.

svn path=/trunk/mcs/; revision=30472
2004-06-28 09:43:53 +00:00
Atsushi Eno 69821227f0 2004-06-27 Atsushi Enomoto <[email protected]>
* XmlDocument.cs:
	  Close XmlReader only when it is created. This fixes bug #60809.

svn path=/trunk/mcs/; revision=30471
2004-06-28 02:00:58 +00:00
Atsushi Eno bd513c3726 2004-06-27 Atsushi Enomoto <[email protected]>
* XmlDataInferenceLoader.cs : It was not always filling relation
	  child table information correctly. This fixes bug #60742.

svn path=/trunk/mcs/; revision=30467
2004-06-27 21:21:46 +00:00
Jackson Harper bd07011a8c * Report.cs: Fix quiet.
svn path=/trunk/mcs/; revision=30461
2004-06-27 03:14:06 +00:00
Jackson Harper 141bfda2f4 * ILParser.jay: vtable fixups use the int32 or int64 keyword, not
actual int values. When adding modules for pinvoke info use the
	ExternTable so we dont get duplicate modules.

svn path=/trunk/mcs/; revision=30460
2004-06-27 03:13:28 +00:00
Jackson Harper 3878ea2fb0 * TypeDef.cs: Preserve the order of fields in a class. Then after
all the fields have been defined reset the order in PEAPI to the
	correct order. This is done so sequential layouts actually
	work. The order needs to be reset because it can be lost during
	the recursive definition phase.
	* MethodDef.cs: Use and ExternModule for pinvoke data's module
	refs. This way we don't get duplicate module refs.

svn path=/trunk/mcs/; revision=30459
2004-06-27 03:12:33 +00:00
Jackson Harper 54c716697c * PEAPI.cs: Add a method to set the fields list. This is needed so
that sequentially laid out fields are laid out in the right
	order. When building custom attribute tables actually emit the
	custom attribute data. When writing the .sdata section make sure
	to pad to its size. The constants itself will not make up the
	entire section because it is aligned on 512 byte blocks.

svn path=/trunk/mcs/; revision=30458
2004-06-27 03:11:40 +00:00
Sebastien Pouliot 331cac28ce 2004-06-26 Sebastien Pouliot <[email protected]>
* crypto: Updated status for Release Candidate 1.

svn path=/trunk/mono/; revision=30447
2004-06-26 14:37:06 +00:00
César Natarén 8c0e59cf8b updates from grammar changes
svn path=/trunk/mcs/; revision=30436
2004-06-25 23:47:03 +00:00
César Natarén 8e431dd371 back to M.J namespace
svn path=/trunk/mcs/; revision=30435
2004-06-25 23:45:31 +00:00
César Natarén 5949706c8e changelog entries
svn path=/trunk/mcs/; revision=30434
2004-06-25 23:43:58 +00:00
César Natarén 1ad8b99f3d * Globals.cs, ASTList.cs: Back to the useful namespace (M.J).
svn path=/trunk/mcs/; revision=30433
2004-06-25 23:41:17 +00:00
César Natarén a736ad10d6 * ASTList.cs: added Size property.CVS: ----------------------------------------------------------------------
svn path=/trunk/mcs/; revision=30432
2004-06-25 23:41:02 +00:00
César Natarén 03122029ce * ArrayLiteral.cs: added internal size field as an ArrayLiteral can have
elisions we keep track of the "real" size here. Added constructor. Added initial
        Resolve and Emit code.

svn path=/trunk/mcs/; revision=30431
2004-06-25 23:40:48 +00:00
César Natarén 939166e9a7 * Literal.cs: fixed the negative numbers code generation (we must
optimize this). Added initial ObjectLiteral's class, code generation and
        Resolve process. Added class ObjectLiteralItem and PropertyName.

svn path=/trunk/mcs/; revision=30430
2004-06-25 23:40:31 +00:00
César Natarén 0cd2596b30 * jscript-lexer-parser.g: added ast building for object_literal, it's disabled for now while I fix the block Vs object_literal nodeterminism problem on the parser. Added rule for array_literal. Build PropertyName ast build.
svn path=/trunk/mcs/; revision=30429
2004-06-25 23:36:32 +00:00
Duncan Mak def80a53e2 Fix date
svn path=/trunk/mono/; revision=30428
2004-06-25 23:16:51 +00:00
Duncan Mak db74ae145b Fix version number in CVS, fix already on the live server
svn path=/trunk/mono/; revision=30427
2004-06-25 22:37:44 +00:00
Duncan Mak 5ca3ca5217 Add RC info
svn path=/trunk/mono/; revision=30425
2004-06-25 21:18:26 +00:00
Atsushi Eno 0ba7943335 2004-06-25 Atsushi Enomoto <[email protected]>
* RncParser.jay : added MIT license.

svn path=/trunk/mcs/; revision=30420
2004-06-25 20:44:23 +00:00
Atsushi Eno 2da7b509d6 2004-06-25 Atsushi Enomoto <[email protected]>
* RdpContentType.cs, RdpNameClass.cs, RdpObjects.cs, RdpPatterns.cs,
	  Util.cs : added novell license term.

svn path=/trunk/mcs/; revision=30419
2004-06-25 20:43:55 +00:00
Atsushi Eno a544b0c730 2004-06-25 Atsushi Enomoto <[email protected]>
* Misc.cs, RelaxngDatatype.cs, RelaxngDatatypeProvider.cs,
	  RelaxngDefaultDatatype.cs, RelaxngException.cs, RelaxngGrammar.cs,
	  RelaxngMergedProvider.cs, RelaxngNameClass.cs, RelaxngPattern.cs,
	  RelaxngPatternType.cs, RelaxngReader.cs, RelaxngValidatingReader.cs,
	  XsdDatatypeProvider.cs : Added/replaced novell license term.

svn path=/trunk/mcs/; revision=30418
2004-06-25 20:43:15 +00:00
Atsushi Eno ffcffd34d9 2004-06-25 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : Added novell's license (avoid confusion).

svn path=/trunk/mcs/; revision=30416
2004-06-25 20:42:06 +00:00
Ben Maurer e9c345319d 2004-06-25 Ben Maurer <[email protected]>
* Environment.cs: GetFolderPath has new behavior. r=miguel

svn path=/trunk/mcs/; revision=30410
2004-06-25 19:08:20 +00:00
Miguel de Icaza ec388a7eb3 Flush
svn path=/trunk/mono/; revision=30407
2004-06-25 19:02:34 +00:00
Jackson Harper d8dde95cc1 * get.c: Add a few more keywords to be escaped.
* main.c: MS's ildasm writes '// end of class' not '// end of
	type'. The python.net tool searches for this string.

svn path=/trunk/mono/; revision=30406
2004-06-25 18:54:50 +00:00
Paolo Molaro 0f082aa0ab Fri Jun 25 21:36:26 CEST 2004 Paolo Molaro <[email protected]>
* reflection.c: make sure padding bytes in heaps are zeroed.

svn path=/trunk/mono/; revision=30403
2004-06-25 18:46:24 +00:00
Lluis Sanchez 173508fd68 * HttpSimpleProtocolImporter.cs: Added null check. The XmlTypeMapping for
the return type will be null if the method returns void.

svn path=/trunk/mcs/; revision=30394
2004-06-25 15:53:30 +00:00
Paolo Molaro 9bd2937f67 Fri Jun 25 17:36:28 CEST 2004 Paolo Molaro <[email protected]>
* driver.c: remove loop from the default optimizations: it seems to
	interact badly with some of the other options (see bug #60613).

svn path=/trunk/mono/; revision=30383
2004-06-25 14:45:17 +00:00
Miguel de Icaza a8dea00dfb Fixed licenses
svn path=/trunk/mcs/; revision=30382
2004-06-25 14:42:22 +00:00
Ravindra eeb7486b59 * LinearGradientBrush.cs: Added checks for the values of
focus and scale parameters in SetBlendTriangularShape and
	SetSigmaBellShape methods.
	* PathGradientBrush.cs: Same as above.

svn path=/trunk/mcs/; revision=30377
2004-06-25 10:41:37 +00:00
Raja R Harinath 8b5958d00e Enable test-277. The bugfix went in before the freeze :-)
svn path=/trunk/mcs/; revision=30375
2004-06-25 07:42:28 +00:00
Paolo Molaro 7673091063 Add prototype for encode_constant().
svn path=/trunk/mono/; revision=30374
2004-06-25 07:02:44 +00:00
Miguel de Icaza 72ae0a236d Up
svn path=/trunk/mono/; revision=30351
2004-06-24 21:55:21 +00:00
Duncan Mak f1fdcca8f5 Remove duplicate license
svn path=/trunk/mcs/; revision=30350
2004-06-24 21:48:47 +00:00
Duncan Mak bab786ade5 Add licensing info
svn path=/trunk/mcs/; revision=30348
2004-06-24 21:38:17 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Duncan Mak 93bcd78c01 Remove the keyword "abstract" to fix the build.
svn path=/trunk/mcs/; revision=30339
2004-06-24 20:42:07 +00:00
David Waite d635611b29 06/24/2004 David Waite <[email protected]>
* Changed comments in ikvm-jni, mono/dis, mono/interpreter,
	mono/metadata, mono/monoburg and mono/utils to be C90-style instead
	of C99/C++-style

svn path=/trunk/mono/; revision=30337
2004-06-24 20:41:39 +00:00
Jackson Harper f31fd0b1a2 * MethodDef.cs: Report when defining methods just like MS.
* TypeDef.cs: Error message when we can't find a locla method.

svn path=/trunk/mcs/; revision=30328
2004-06-24 19:12:01 +00:00
Jackson Harper 3677158928 * Report.cs: Add new mehtod for displaying messages.
svn path=/trunk/mcs/; revision=30327
2004-06-24 19:10:11 +00:00
Jambunathan K dd0da93a79 * RandomVBFile.cs: Fixed FileGet() for Date and Decimal types
* FileSystem.cs: Fixed ChDir, FileCopy
* ControlChars.cs:  corcompare based fixes

* Utils.cs:
* StringType.cs: corcompare based fixes

svn path=/trunk/mcs/; revision=30323
2004-06-24 16:56:07 +00:00
Atsushi Eno eb17094994 2004-06-22 Atsushi Enomoto <[email protected]>
* SqlCommandBuilder.cs : Avoid cast exception caused by DbNull.

svn path=/trunk/mcs/; revision=30322
2004-06-24 16:48:11 +00:00
Atsushi Eno 3e2821d002 2004-06-24 Atsushi Enomoto <[email protected]>
* DataColumnMappingCollection.cs : fixed typo.
	* DbDataAdapter.cs : column mappings were not filled.

svn path=/trunk/mcs/; revision=30321
2004-06-24 16:25:02 +00:00
Gonzalo Paniagua Javier 093071fda3 2004-06-24 Gonzalo Paniagua Javier <[email protected]>
* HtmlTextWriter.cs: only create a closing tag for unknown tags. Fixes
	bug #60681.

svn path=/trunk/mcs/; revision=30317
2004-06-24 15:12:20 +00:00
Atsushi Eno b4bdf95c9d 2004-06-24 Atsushi Enomoto <[email protected]>
* DataTableMapping.cs : Clone() should also clone ColumnMappings.

svn path=/trunk/mcs/; revision=30316
2004-06-24 14:53:54 +00:00
Raja R Harinath f6e4fb2e6a * IBM.Data.DB2/Makefile: Disable for 'net_2_0'.
* ICSharpCode.SharpZipLib/AssemblyInfo.cs (AssemblyVersion): Set different version for the
net_2_0 profile.

svn path=/trunk/mcs/; revision=30315
2004-06-24 14:43:35 +00:00
Raja R Harinath cd66bf8192 (gac_assemblies_list): Put back
ICSharpCode.SharpZipLib, not that it has a different version.

svn path=/trunk/mono/; revision=30314
2004-06-24 14:42:24 +00:00
Gonzalo Paniagua Javier f04f14f3a7 2004-06-24 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: fixed subdirectories notifications and don't
	fail when any directory is removed. Closes bug #59840.

svn path=/trunk/mcs/; revision=30313
2004-06-24 14:22:29 +00:00
Dick Porter cb491f6063 2004-06-24 Dick Porter <[email protected]>
* mutexes.c: Indicate when a named mutex was reused

2004-06-24  Dick Porter  <[email protected]>

	* threads.c
	(ves_icall_System_Threading_Mutex_CreateMutex_internal): Correctly
	return createdNew.  Fixes bug 60412.

	* threads-types.h:
	* icall.c: Add createdNew parameter to CreateMutex icall

svn path=/trunk/mono/; revision=30312
2004-06-24 14:22:00 +00:00
Zoltan Varga 3851261a9a 2004-06-25 Zoltan Varga <[email protected]>
* mini.c mini-x86.h mini-x86.c: Applied patch from Guenter Feldmann
	([email protected]): Add Solaris x86 support.

svn path=/trunk/mono/; revision=30311
2004-06-24 14:21:20 +00:00
Dick Porter 128b0c1159 2004-06-24 Dick Porter <[email protected]>
* Mutex.cs: Implement the createdNew parameter

svn path=/trunk/mcs/; revision=30310
2004-06-24 14:21:03 +00:00
Raja R Harinath f0c1c8324c (BetterConversion): Remove buggy special-case
handling of "implicit constant expression conversions".  At this
point, we already know that the conversion is possible -- we're
only checking to see which is better.

svn path=/trunk/mcs/; revision=30309
2004-06-24 14:19:26 +00:00
Sachin Kumar 5c2898d0d8 Added license and copyright
svn path=/trunk/mcs/; revision=30306
2004-06-24 14:06:50 +00:00
Raja R Harinath 14995f2132 * test-252.cs: Avoid reference to System.dll.
* test-277.cs: New test for #56774.

svn path=/trunk/mcs/; revision=30303
2004-06-24 13:33:42 +00:00
Marek Safar f4d4ebdc7e fixed test
svn path=/trunk/mcs/; revision=30302
2004-06-24 13:19:22 +00:00
Paolo Molaro 1dc753bdc6 Thu Jun 24 16:06:41 CEST 2004 Paolo Molaro <[email protected]>
* reflection.c, object-internals.h: save default value in params.

svn path=/trunk/mono/; revision=30301
2004-06-24 13:14:51 +00:00
Gonzalo Paniagua Javier 809c3d5843 2004-06-24 Gonzalo Paniagua Javier <[email protected]>
* Directory.cs: implemented GetLogicalDrives.

svn path=/trunk/mcs/; revision=30300
2004-06-24 13:14:24 +00:00
Marek Safar df7da47215 new test
svn path=/trunk/mcs/; revision=30299
2004-06-24 13:14:20 +00:00
Sanja Gupta 79b13a3e46 ChangeLog: Updated ChangeLog.
ImageAnimator.cs: Rewrote complete implementation. Tested on Windows.

svn path=/trunk/mcs/; revision=30297
2004-06-24 12:55:10 +00:00
Paolo Molaro 41172aa516 Thu Jun 24 15:33:04 CEST 2004 Paolo Molaro <[email protected]>
* ParameterBuilder.cs: implement SetConstant ().

svn path=/trunk/mcs/; revision=30295
2004-06-24 12:40:53 +00:00
Marek Safar f78807a86c enabled test-273 (Bug #60411 closed)
svn path=/trunk/mcs/; revision=30294
2004-06-24 12:35:02 +00:00
Atsushi Eno 5698135a41 2004-06-24 Atsushi Enomoto <[email protected]>
* VBCodeCompiler.cs : On windows we use fixed mono.exe and mbas.exe
	  located by mscorlib.dll. (The same fix as that of CSharpCodeCompiler)

svn path=/trunk/mcs/; revision=30292
2004-06-24 12:23:39 +00:00
Dick Porter 673a502e27 2004-06-24 Dick Porter <[email protected]>
* threads.c (SuspendThread):
	* timed-thread.c (_wapi_timed_thread_suspend): Wrap sem_wait in a
	while loop.  See bug 58161.

svn path=/trunk/mono/; revision=30291
2004-06-24 12:17:40 +00:00
Atsushi Eno d4cbaa798f 2004-06-24 Atsushi Enomoto <[email protected]>
* Process.cs : quick fix for UseShellExecute=false on windows. See
	  the code comment.

svn path=/trunk/mcs/; revision=30290
2004-06-24 11:57:36 +00:00
Atsushi Eno edb0c6019c 2004-06-24 Atsushi Enomoto <[email protected]>
* CSharpCodeCompiler.cs : On windows we use fixed mono.exe and mcs.exe
	  located by mscorlib.dll.

svn path=/trunk/mcs/; revision=30289
2004-06-24 11:56:57 +00:00
Lluis Sanchez 92673ba006 * StreamReader.cs: In DiscardBufferedData(), reset the mayBlock flag.
svn path=/trunk/mcs/; revision=30288
2004-06-24 09:34:12 +00:00
Raja R Harinath 856016dd57 * Makefile.am (MCS_DIRS, MCS_FILES): Add back Mono.CSharp.Debugger.
(tmpinst-dir-contents, $(tmpinst)/bin/mono.bat): Remove mono.bat
in W32.  Use 'mono' and 'mcs' in W32 too.
(bootstrap) [PLATFORM_WIN32]: Back to single stage bootstrap.
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Don't mention
nunit.*, IBM.Data.DB2, ICSharpCode.SharpZipLib.
Fix for #60443, the GAC .DLL-Hell.

svn path=/trunk/mono/; revision=30287
2004-06-24 08:40:10 +00:00
Anirban Bhattacharjee e3109b9199 2004-06-24 Anirban Bhattacharjee <[email protected]>
* Strings.cs: Enabled case insensitive search in InStr aand InStrRev functions
                      Fixed Filter method

svn path=/trunk/mcs/; revision=30286
2004-06-24 08:22:28 +00:00
Marek Safar 773e1f90b5 2004-06-24 Marek Safar <[email protected]>
* test-205.cs: Removed because become invalid.

svn path=/trunk/mcs/; revision=30285
2004-06-24 08:19:28 +00:00
Marek Safar 396b130290 2004-06-24 Marek Safar <[email protected]>
* cs-parser.jay: Added error CS0210 test.

svn path=/trunk/mcs/; revision=30284
2004-06-24 08:09:25 +00:00
Marek Safar 4f556d1a67 2004-06-24 Marek Safar <[email protected]>
* cs-parser.jay: Added error CS0134 test.

svn path=/trunk/mcs/; revision=30283
2004-06-24 07:51:48 +00:00
Marek Safar e59ff96c48 2004-06-24 Marek Safar <[email protected]>
Fix bug #52507
	* cs-parser.jay: Added error CS0145 test.

svn path=/trunk/mcs/; revision=30282
2004-06-24 07:25:20 +00:00
Marek Safar 08efe906f1 unsafe-8 without .cs extension
svn path=/trunk/mcs/; revision=30281
2004-06-24 07:24:05 +00:00
Marek Safar 6246d43ed9 2004-06-24 Marek Safar <[email protected]>
* class.cs (Operator.Define): Added test for errors CS0553, CS0554.

svn path=/trunk/mcs/; revision=30280
2004-06-24 06:58:00 +00:00
Raja R Harinath e49aacd981 (gac_assemblies_list): Don't mention nunit.*.
Fix for #60443.

svn path=/trunk/mono/; revision=30277
2004-06-24 06:08:32 +00:00
Raja R Harinath 7d3c788eb8 New test for #60459.
svn path=/trunk/mcs/; revision=30276
2004-06-24 06:04:41 +00:00
Raja R Harinath fb28cf618d (LIBRARY_COMPILE): Only define for W32.
Unbreak the build on Linux.

svn path=/trunk/mcs/; revision=30275
2004-06-24 05:59:44 +00:00
Sanja Gupta 16bea13f66 ChangeLog: Updated Changelog
gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
        If read function was called after seek function call, the
        implementation  was returning data from bytes already peeked and
        not from the new position in stream, which we have seeked.

svn path=/trunk/mcs/; revision=30274
2004-06-24 05:56:02 +00:00
Sebastien Pouliot 83eefc994f 2004-06-23 Sebastien Pouliot <[email protected]>
* UTF7Encoding.cs: Fixed decoding table. Fixed char count calculation.
	Follow the RFC1642 rules for "overbits".

svn path=/trunk/mcs/; revision=30262
2004-06-24 02:39:31 +00:00
Sebastien Pouliot 4f4f9d7e08 2004-06-23 Sebastien Pouliot <[email protected]>
* UTF7EncodingTest.cs: Added 3 more test cases from RFC1642 to decode
	and re-encode UTF7 from/to unicode.

svn path=/trunk/mcs/; revision=30257
2004-06-24 02:10:12 +00:00
Miguel de Icaza c07c3f3d19 Flush
svn path=/trunk/mono/; revision=30255
2004-06-24 00:54:16 +00:00
Miguel de Icaza 9db2e99647 flush
svn path=/trunk/mono/; revision=30254
2004-06-24 00:19:08 +00:00
Miguel de Icaza 7aea17d6fc flush
svn path=/trunk/mono/; revision=30253
2004-06-24 00:14:22 +00:00
Ben Maurer 6dba22de31 test case for 60669
svn path=/trunk/mcs/; revision=30251
2004-06-23 23:33:35 +00:00
Ben Maurer 49f99785d3 2004-06-23 Ben Maurer <[email protected]>
* expression.cs (StackAlloc.Resolve): The argument may not
	be a constant; deal with this case.

svn path=/trunk/mcs/; revision=30250
2004-06-23 23:30:25 +00:00
Paolo Molaro c95c3fcd08 Wed Jun 23 23:29:04 CEST 2004 Paolo Molaro <[email protected]>
* io.c: don't use sharemode for on-disk file permissions: it's used
	for shared access to the open file.

svn path=/trunk/mono/; revision=30240
2004-06-23 20:37:54 +00:00
Marek Safar 45a6eb1331 2004-06-23 Marek Safar <[email protected]>
* attribute.cs (IndexerName_GetIndexerName): Renamed to
	GetIndexerAttributeValue.
	(ScanForIndexerName): Renamed to GetIndexerNameAttribute.

	* class.cs (Indexer.Define): Added error tests for CS0415,
	CS0609.

svn path=/trunk/mcs/; revision=30239
2004-06-23 20:32:33 +00:00
Miguel de Icaza 15c56ab327 Add Edd's Catalog
svn path=/trunk/mcs/; revision=30238
2004-06-23 20:00:36 +00:00
Jackson Harper d43da25048 * Driver.cs: Use the same success message as MS.
svn path=/trunk/mcs/; revision=30237
2004-06-23 19:56:26 +00:00
Jackson Harper dabba3f6d8 * MethodDef.cs: sigh, another varargs fix that probably breaks
other varargs tets. Someday I will get this right, I don't think
	today is that day though. This fix basically just makes sure to
	trim the sentinel off of signatures. Also eliminated some code
	duplication.
	* ParamDef.cs: Make IsSentinel work for both cases of generating a
	sentinel param def.

svn path=/trunk/mcs/; revision=30233
2004-06-23 18:50:54 +00:00
Sebastien Pouliot cfbd5912f8 2004-06-23 Sebastien Pouliot <[email protected]>
* DateTime.cs: Throw ArgumentOutOfRangeException if the year is
	bigger than 9999. Fix bug #41845.

svn path=/trunk/mcs/; revision=30230
2004-06-23 18:19:15 +00:00
Gonzalo Paniagua Javier 193970990d 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* PageParser.cs:
	* UserControlParser.cs: set the page/user control base type even when no
	default directive provided. Fixes bug #60572.

svn path=/trunk/mcs/; revision=30227
2004-06-23 17:55:50 +00:00
Gonzalo Paniagua Javier 2a958dc772 Store browscap.ini as a text file
svn path=/trunk/mono/; revision=30224
2004-06-23 17:47:20 +00:00
Sebastien Pouliot 62a65807c9 2004-06-23 Sebastien Pouliot <[email protected]>
* SymmetricTransform.cs: The condition to keep a block is a little
	more complex so it was moved as a private property.

svn path=/trunk/mcs/; revision=30223
2004-06-23 17:37:27 +00:00
Miguel de Icaza 59312205f7 Add INTL macro, for the libintl library
svn path=/trunk/mono/; revision=30220
2004-06-23 17:21:02 +00:00
Gonzalo Paniagua Javier af5142b4d2 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: for paths in PrivateBinPath that are absolute, there's
	no need to build a new path combining that with the application base.
	Fixes bug #60442.

svn path=/trunk/mono/; revision=30217
2004-06-23 17:14:08 +00:00
Jackson Harper 7b90b85077 * CSharpCodeGenerator.cs (GenerateLabeledStatement): Append a ": "
to the statement name. Make sure the statement isn't null before
	writing. Patch by Alex Yakunin.

svn path=/trunk/mcs/; revision=30211
2004-06-23 16:25:02 +00:00
Paolo Molaro cc7454d782 Wed Jun 23 18:36:58 CEST 2004 Paolo Molaro <[email protected]>
* reflection.c: fixed minor standard compliance issues.

svn path=/trunk/mono/; revision=30210
2004-06-23 15:45:52 +00:00
Gonzalo Paniagua Javier f58acb1bab 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* HtmlForm.cs: disabled smartnavigation as we have no scripts to support
	it and failed when the browser was IE.

svn path=/trunk/mcs/; revision=30208
2004-06-23 15:16:27 +00:00
Paolo Molaro fcaf1f7d66 Wed Jun 23 17:59:29 CEST 2004 Paolo Molaro <[email protected]>
* reflection.c: fixed issue with encoding some custom attributes
	(arrays in properties and fields, bug #60411).

svn path=/trunk/mono/; revision=30207
2004-06-23 15:09:05 +00:00
Gonzalo Paniagua Javier 7371e09828 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* PageParser.cs: use default trace settings from web.config and check
	if trace is only requested for local connections. Fixes bug #60180.

svn path=/trunk/mcs/; revision=30206
2004-06-23 15:02:35 +00:00
Miguel de Icaza 54f8a7282c 2004-06-23 Miguel de Icaza <[email protected]>
* attribute.cs (Attribute.Resolve): Keep field code in sync with
	property code.

svn path=/trunk/mcs/; revision=30205
2004-06-23 15:02:33 +00:00
Sebastien Pouliot 3e4be5e128 2004-06-23 Sebastien Pouliot <[email protected]>
* FloatingPointFormatter.cs: Applied correction from Jon Skeet on
	the "R"eversible format for negative numbers.

svn path=/trunk/mcs/; revision=30204
2004-06-23 14:54:54 +00:00
Sebastien Pouliot 76f44be2f3 2004-06-23 Sebastien Pouliot <[email protected]>
* DoubleFormatterTest.cs: Added a new test for a negative roundtrip
	(which was broken).

svn path=/trunk/mcs/; revision=30203
2004-06-23 14:52:50 +00:00
Sebastien Pouliot 8c8082be00 2004-06-23 Sebastien Pouliot <[email protected]>
* CryptoStreamTest.cs: Added two tests for bug #60573. One shows that
	an encryptor doesn't reduce the number of block on Write while the
	second shows that a decryptor does reduce the number of blocks on
	Write.

svn path=/trunk/mcs/; revision=30200
2004-06-23 14:39:00 +00:00
Sebastien Pouliot 4ba33a11f2 2004-06-23 Sebastien Pouliot <[email protected]>
* SymmetricTransform.cs: Reduce by one the number of block when
	decrypting. This operation was in CryptoStream before but is only
	required for decryption (which CryptoStream can't know).
	Fix bug #60573.

svn path=/trunk/mcs/; revision=30199
2004-06-23 14:29:59 +00:00
Sebastien Pouliot 0d0a717190 2004-06-23 Sebastien Pouliot <[email protected]>
* CryptoStream.cs: Removed the block reduction. This seems to be done
	only for Decryptor so it was moved to SymmetricTransform.

svn path=/trunk/mcs/; revision=30198
2004-06-23 14:25:11 +00:00
Gonzalo Paniagua Javier 9eced4ea4b 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* reflection.c: fix start address when copying the public key token.

svn path=/trunk/mono/; revision=30194
2004-06-23 13:52:13 +00:00
Martin Baulig b36b756a32 2004-06-23 Martin Baulig <[email protected]>
* mono-debug-debugger.c (mono_debugger_unhandled_exception): Store
	the `exc' object in a static object to put it into the GC's root set.

svn path=/trunk/mono/; revision=30193
2004-06-23 13:41:56 +00:00
Gonzalo Paniagua Javier 73a1a3866c updated
svn path=/trunk/mono/; revision=30190
2004-06-23 13:31:42 +00:00
Jambunathan K fa54ec10b2 corcompare based fixes
svn path=/trunk/mcs/; revision=30188
2004-06-23 13:01:11 +00:00
Paolo Molaro 24ed1ebc0b Enable alpha and hppa/linux builds, though they probably need more work.
svn path=/trunk/mono/; revision=30187
2004-06-23 12:53:45 +00:00
Miguel de Icaza 6971b9943f fix
svn path=/trunk/mono/; revision=30186
2004-06-23 12:51:26 +00:00
Paolo Molaro bb4d01190c Wed Jun 23 15:40:48 CEST 2004 Paolo Molaro <[email protected]>
* TypeBuilder.cs: handle properly the case when SetParent()
	is called (requires an updated runtime, too bug#60474).

svn path=/trunk/mcs/; revision=30185
2004-06-23 12:50:05 +00:00
Paolo Molaro 8a99e745e0 Wed Jun 23 15:37:31 CEST 2004 Paolo Molaro <[email protected]>
* reflection.c: make mono_reflection_setup_internal_class ()
	callable a second time to setup a new parent class.

svn path=/trunk/mono/; revision=30184
2004-06-23 12:47:14 +00:00
Sachin Kumar 3e99ece0ea Trivial Fixes
svn path=/trunk/mcs/; revision=30183
2004-06-23 12:46:21 +00:00
Marek Safar e6ab4f17b8 fixed type
svn path=/trunk/mcs/; revision=30182
2004-06-23 12:17:02 +00:00
Marek Safar 4e06d30c9c new tests
svn path=/trunk/mcs/; revision=30181
2004-06-23 12:05:00 +00:00
Paolo Molaro 0243a47fd9 Wed Jun 23 14:20:47 CEST 2004 Paolo Molaro <[email protected]>
* EnumBuilder.cs, TypeBuilder.cs: patch from Gert Driesen
	to implement EnumBuilder (slightly tweaked).

svn path=/trunk/mcs/; revision=30180
2004-06-23 12:02:37 +00:00
Gonzalo Paniagua Javier 40181c2c94 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* AuthorizationConfig.cs: really fix bug #60482. Thanks David!

svn path=/trunk/mcs/; revision=30178
2004-06-23 11:13:28 +00:00
Anirban Bhattacharjee 126a962029 2004-06-23 Anirban Bhattacharjee <[email protected]>
* Strings.cs: Several trivial bug fixing

svn path=/trunk/mcs/; revision=30176
2004-06-23 11:09:58 +00:00
Miguel de Icaza 3330deac71 Flush
svn path=/trunk/mono/; revision=30175
2004-06-23 10:53:57 +00:00
Lluis Sanchez 0e8cc54621 * System.Runtime.Remoting_test.dll.sources: Added ActivationTests.cs.
svn path=/trunk/mcs/; revision=30174
2004-06-23 10:26:13 +00:00
Lluis Sanchez a8a6c2431d * ActivationTests.cs: New tests.
* BaseCalls.cs, CallSeq.cs: Use Assert instead of the deprecated Assertion.

svn path=/trunk/mcs/; revision=30173
2004-06-23 10:25:15 +00:00
Gonzalo Paniagua Javier 55827b6f12 enable Mono.CSharp.Debugger on windows
svn path=/trunk/mono/; revision=30172
2004-06-23 09:59:27 +00:00
Gonzalo Paniagua Javier 220966f782 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* Makefile: enabled Mono.CSharp.Debugger on windows.

svn path=/trunk/mcs/; revision=30171
2004-06-23 09:58:18 +00:00
Gonzalo Paniagua Javier 4c581a0e59 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* Makefile: build using mcs on windows.

svn path=/trunk/mcs/; revision=30170
2004-06-23 09:57:13 +00:00
Gonzalo Paniagua Javier c5512254ac 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: wrong error code in connect and accept. EWOULDBLOCK is
	10035. Fixes bug #60563.

svn path=/trunk/mcs/; revision=30169
2004-06-23 09:38:50 +00:00
Dick Porter 460f2a77c8 2004-06-23 Dick Porter <[email protected]>
* threads.c: Check for WAIT_IO_COMPLETION return values.

svn path=/trunk/mono/; revision=30167
2004-06-23 08:59:54 +00:00
Dick Porter 71613dce13 Fix the build
svn path=/trunk/mono/; revision=30166
2004-06-23 08:32:16 +00:00
Anirban Bhattacharjee 3769a33f45 2004-06-23 Anirban Bhattacharjee <[email protected]>
* DateTime.cs: More date formats supported by DateValue function now

svn path=/trunk/mcs/; revision=30165
2004-06-23 06:16:41 +00:00
Umadevi S f742f2b454 2004-06-23 Umadevi S <[email protected]>
* UniqueConstraint.cs :changed a ifdef true to ifdef NET_1_1

svn path=/trunk/mcs/; revision=30164
2004-06-23 05:51:35 +00:00
Umadevi S 26968ca6e2 2004-06-23 Umadevi S <[email protected]>
* DataTableTest.cs :Corrected Testcases to .net 1.1 specifications

svn path=/trunk/mcs/; revision=30163
2004-06-23 05:44:04 +00:00
Anirban Bhattacharjee 5a230b617f 2004-06-23 Anirban Bhattacharjee <[email protected]>
* Strings.cs: Trivial changes

svn path=/trunk/mcs/; revision=30162
2004-06-23 05:39:17 +00:00
Sureshkumar T 19abd41ef6 2004-06-23 Sureshkumar T ([email protected])
* OdbcConnection.cs: Fix: Moved env allocation to Open method.
                             Disconnection & freeing handles are done in Close
                             method to avoid simultaneous connections.
        * libodbc.cs       : Added constants for odbc version.

svn path=/trunk/mcs/; revision=30161
2004-06-23 05:19:59 +00:00
Sureshkumar T db3105e999 2004-06-23 Sureshkumar T <[email protected]>
* Added test to check whether the OdbcConnection.Close method closes
          all the handles.
        * New files:
                OdbcConnectionTest.cs   - test suite for OdbcConnection class.

svn path=/trunk/mcs/; revision=30160
2004-06-23 05:13:42 +00:00
Umadevi S c8a01883b7 2004-06-23 Umadevi S <[email protected]>
* DataRelationTest.cs : Corrected AddRelation testcases

svn path=/trunk/mcs/; revision=30158
2004-06-23 04:12:13 +00:00
Raja R Harinath 42b467bbdd (dis_event_signature): Decode and print event_flags.
svn path=/trunk/mono/; revision=30157
2004-06-23 04:10:50 +00:00
Umadevi S 899c87a148 2004-06-23 Umadevi S <[email protected]>
* ConstraintCollectionTest.cs : Corrected AddRange testcases

svn path=/trunk/mcs/; revision=30155
2004-06-23 03:44:36 +00:00
Anirban Bhattacharjee 74962a8e93 bug fixes
svn path=/trunk/mcs/; revision=30154
2004-06-23 03:35:06 +00:00
Martin Baulig 1cf7bcfc62 2004-06-23 Martin Baulig <[email protected]>
* flowanalysis.cs (UsageVector.MergeChild): If we're a loop and we
	neither return nor throw, reset the barrier as well.  Fixes #60457.

svn path=/trunk/mcs/; revision=30150
2004-06-23 00:18:28 +00:00
Martin Baulig a0b25ef280 New test for #60457.
svn path=/trunk/mcs/; revision=30149
2004-06-23 00:16:45 +00:00
Jackson Harper ff5f9c382d fix typo
svn path=/trunk/mono/; revision=30148
2004-06-22 23:18:59 +00:00
Miguel de Icaza ef8e81dbcf Flush
svn path=/trunk/mono/; revision=30146
2004-06-22 23:00:23 +00:00
Atsushi Eno 907fb23d3d 2004-06-22 Atsushi Enomoto <[email protected]>
* Uri.cs : Such ctor arg string that starts with "//" should be
	  regarded as a local file path that will be condensed to single "/",
	  so handle such path differently under Windows and under *nix.
	  Since '\\' is a valid path character on Unix, so we should not
	  replace it with '/' in LocalPath.

svn path=/trunk/mcs/; revision=30142
2004-06-22 20:18:01 +00:00
Atsushi Eno ee12fd768b 2004-06-22 Atsushi Enomoto <[email protected]>
* UriTest.cs : As Unix paths, //foo/bar never means host == foo,
	  file path == /bar. So on *nix environment, interpret LocalPath of
	  file://foo/bar as /bar, not //foo/bar.
	* test-uri-list.txt, tset-uri-props.txt : We cannot test such path
	  that starts with "//" in automatic one, since on Windows it is
	  UNC host name but on Unix it is condensed to /foo style abs path.
	* UriTest2.cs : Test only on windows such path that starts with "\\".

svn path=/trunk/mcs/; revision=30141
2004-06-22 20:10:39 +00:00
Sebastien Pouliot f111ad1180 2004-06-22 Sebastien Pouliot <[email protected]>
* appdomain.c: Removed the g_free on the public key token. Now copy
	the pk token string into the MonoAssemblyName buffer using g_strlcpy.
	* assembly.c: Added public key token string value when loading
	assemblies. Fix bug #60439.
	* icall.c: Added missing informations (like public key) in
	GetReferencedAssemblies. Fix #60519.
	* image.h: Changed definition for public key token from const char*
	public_tok_value to guchar public_key_token [17];
	* reflection.c: Updated for changes to public key token.

svn path=/trunk/mono/; revision=30140
2004-06-22 20:09:27 +00:00
Dick Porter 4b7c1d9725 2004-06-22 Dick Porter <[email protected]>
* events.c (CreateEvent): When creating an auto-reset event that
	is initially owned, make sure the set count starts at 1.

svn path=/trunk/mono/; revision=30137
2004-06-22 19:34:47 +00:00
Atsushi Eno 805fd0c41d 2004-06-22 Atsushi Enomoto <[email protected]>
* class.cs : EventAttributes is now set to None by default.
	  This fixes bug #60459.

svn path=/trunk/mcs/; revision=30133
2004-06-22 19:00:15 +00:00
Atsushi Eno a2343da0de 2004-06-22 Atsushi Enomoto <[email protected]>
* CSharpCodeGenerator.cs :
	  Check null argument in CreateValidIdentifier().

svn path=/trunk/mcs/; revision=30132
2004-06-22 18:53:16 +00:00
Jambunathan K 39051eab8f Added BinaryVBFile.cs and RandomVBFile.cs. Just preliminary changes.
All changes need to be reviewed and committed.

I have pulled off Rob's changes on FileSystem.cs temporarily. I will
remerge it another day or two.

svn path=/trunk/mcs/; revision=30131
2004-06-22 18:49:09 +00:00
Atsushi Eno 420991e86a 2004-06-22 Atsushi Enomoto <[email protected]>
* DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
	  schema is inside the document element (as created in XmlWriteMode
	  .WriteSchema), it should read schema from that non-document element.
	  This fixes one case reported in bug #60470.

svn path=/trunk/mcs/; revision=30130
2004-06-22 18:42:26 +00:00
Paolo Molaro bb55581111 Tue Jun 22 21:29:11 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c, cpu-g4.md: small updates to be able to compile
	vararg-using methods.

svn path=/trunk/mono/; revision=30129
2004-06-22 18:38:07 +00:00
Jordi Mas i Hernandez b5fd3413ce fixes class name in filename
svn path=/trunk/mcs/; revision=30128
2004-06-22 16:49:20 +00:00
Jordi Mas i Hernandez 70b35b408e MeasureString wrappers
svn path=/trunk/mcs/; revision=30127
2004-06-22 16:40:48 +00:00
Lluis Sanchez 24e25ee390 * icall.c: In ves_icall_InternalExecute, when setting a filed, also look
for the field in base classes.

svn path=/trunk/mono/; revision=30125
2004-06-22 15:19:08 +00:00
Miguel de Icaza df6cb78b0c Add Marek to the about section
svn path=/trunk/mcs/; revision=30123
2004-06-22 15:06:48 +00:00
Sachin Kumar cb4a5378f2 Fixed few bugs
svn path=/trunk/mcs/; revision=30122
2004-06-22 14:27:52 +00:00
Marek Safar 0ae7041cc4 fixed error text
svn path=/trunk/mcs/; revision=30121
2004-06-22 14:24:59 +00:00
Paolo Molaro b83501a6b1 Tue Jun 22 16:48:02 CEST 2004 Paolo Molaro <[email protected]>
* mono-debug.h, mono-debug-debugger.h, debug-mono-symfile.h:
	mark headers as not supported, they are installed only for use by the
	debugger.

svn path=/trunk/mono/; revision=30119
2004-06-22 13:57:15 +00:00
Paolo Molaro 14ec9a1363 Tue Jun 22 16:32:03 CEST 2004 Paolo Molaro <[email protected]>
* *.c, *.h: avoid namespace pollution in public headers.

svn path=/trunk/mono/; revision=30116
2004-06-22 13:44:46 +00:00
Dick Porter 631b27e200 Fix for older automake
svn path=/trunk/mono/; revision=30115
2004-06-22 13:41:32 +00:00
Marek Safar 2b850af228 new tests
svn path=/trunk/mcs/; revision=30114
2004-06-22 13:40:12 +00:00
Joerg Rosenkranz 03f9ca4f63 Patch submitted by Gert Driesen:
2004-06-19  Gert Driesen <[email protected]>

        * Makefile: added references to System.EnterpriseServices and
        System.Drawing assemblies
        * System.Data.OracleClient.dll: added Assembly/Consts.cs and
        System.Data.OracleClient/OracleMonthSpan.cs
        * OracleCommand.cs: added missing attributes, marked class sealed,
        fixed signature of ExecuteOracleScalar method
        * OracleCommandBuilder.cs: added missing attributes
        * OracleConnection.cs: marked class sealed, added missing attributes,
        stubbed missing propertie, methods and events
        * OracleDataAdapter.cs: added missing attributes, removed extra
        stubbed Dispose method
        * OracleDataReader.cs: stubbed missing methods
        * OracleDataTime.cs: fixed signature and implementation of operator
        * OracleException.cs: marked serializable, added serialization ctor
        * OracleParameter.cs: added missing attributes, marked extra methods
        private
        * OracleParameterCollection.cs: marked class sealed, added missing
        attributes
        * OracleString.cs: added missing methods, added missing operators

svn path=/trunk/mcs/; revision=30112
2004-06-22 13:21:08 +00:00
Sanja Gupta 5f4cfdad82 ChangeLog: Updated ChangeLog.
TestIconConverter.cs, TestImageConverter.cs: Commented out some tests.

svn path=/trunk/mcs/; revision=30111
2004-06-22 13:06:00 +00:00
Dick Porter 0b31cdd230 2004-06-22 Dick Porter <[email protected]>
* MutexTest.cs: No need to ignore these tests now

	* ThreadTest.cs: You can't Start() a thread that's been aborted.
	Improve state tests.

svn path=/trunk/mcs/; revision=30108
2004-06-22 11:55:25 +00:00
Lluis Sanchez dab9b5e951 * proxies.net.xml.gz: Updated.
* wsdlfiles.tar.gz: Updated.

svn path=/trunk/mcs/; revision=30107
2004-06-22 10:05:08 +00:00
Lluis Sanchez e23c82103d * XmlReturnReader.cs, XmlReturnWriter.cs: Generate the serializer with
the root attribute taken from the method attributes.

svn path=/trunk/mcs/; revision=30106
2004-06-22 10:03:21 +00:00
Lluis Sanchez 3680906902 * HttpSimpleProtocolImporter.cs: Import return types as XmlTypeMapping,
not as XmlMemberMapping. This allows the use of the correct AddMetadata
	  method for generating attributes.

svn path=/trunk/mcs/; revision=30105
2004-06-22 09:59:34 +00:00
Lluis Sanchez 360208e654 * ReflectionHelper.cs: Correctly detect private types.
* XmlCodeExporter.cs: Implemented missing method.
	* XmlSchemaImporter.cs: Allow import of root primitive types.

svn path=/trunk/mcs/; revision=30104
2004-06-22 09:51:50 +00:00
Raja R Harinath ad194e0f96 (bootstrap) [PLATFORM_WIN32]: Make two-stage.
svn path=/trunk/mono/; revision=30102
2004-06-22 09:30:49 +00:00
Raja R Harinath 62183b530c Use $(PLATFORM_PATH_SEPARATOR) in MONO_PATH.
svn path=/trunk/mcs/; revision=30101
2004-06-22 09:19:37 +00:00
Jordi Mas i Hernandez df668cb4c0 define and use GdipSetVisibleClip_linux
svn path=/trunk/mcs/; revision=30100
2004-06-22 09:17:28 +00:00
Raja R Harinath 5d884fd231 Use $(PLATFORM_PATH_SEPARATOR) when setting MONO_PATH.
svn path=/trunk/mcs/; revision=30099
2004-06-22 09:15:58 +00:00
Jordi Mas i Hernandez 1f0f46a3dd add clip sample
svn path=/trunk/mcs/; revision=30098
2004-06-22 09:12:36 +00:00
Raja R Harinath b915bc6dfd Refine previous change to work with mcs 0.31.
* Consts.cs (UnmanagedType_80): While bootstrapping, refer to new
internal bootstrap-only define in UnmanagedType.

svn path=/trunk/mcs/; revision=30097
2004-06-22 08:36:47 +00:00
Raja R Harinath d83f98c524 Fix bootstrap with mcs 0.31.
* UnmanagedType.cs (UnmanagedType.__mono_bootstrap_NativeTypeMax):
New bootstrap-only constant.

svn path=/trunk/mcs/; revision=30096
2004-06-22 08:36:05 +00:00
Gonzalo Paniagua Javier 72d5a6809b 2004-06-22 Gonzalo Paniagua Javier <[email protected]>
* AuthorizationConfig.cs: we must match [verb +] (role|user). Fixes bug
	#60482.

svn path=/trunk/mcs/; revision=30095
2004-06-22 08:18:48 +00:00
Todd Berman eb6cb51857 2004-06-22 Todd Berman <[email protected]>
* configure: Patch from Mariano Su��rez-Alvarez
        <[email protected]> to make configure accept jhbuild style
        /prefix /usr options, and to continue past unknown options. Currently
        this patch is a bit spammy with multiple unknown options, anyone
        who is interested is welcome to fix this.

svn path=/trunk/mcs/; revision=30093
2004-06-22 06:02:06 +00:00
Miguel de Icaza ccd3ed614a Add more inline docs, to be extracted later with a tool
svn path=/trunk/mono/; revision=30090
2004-06-22 04:18:17 +00:00
Duncan Mak d74ee6abee Remove duplicate licenses
svn path=/trunk/mcs/; revision=30084
2004-06-22 03:46:33 +00:00
Atsushi Eno a5ef8bedd7 2004-06-21 Atsushi Enomoto <[email protected]>
* XmlSecureResolverTests.cs : Just [Ignore] EmptyEvidenceDeniedAccess.
	  It requires CAS.

svn path=/trunk/mcs/; revision=30074
2004-06-22 01:22:07 +00:00
Atsushi Eno 606f7ce490 2004-06-21 Atsushi Enomoto <[email protected]>
* CSharpCodeGenerator.cs : Fix for tests. Check type names in
	  CreateValidIdentifier. Implemented IsValidIdentifier.

svn path=/trunk/mcs/; revision=30073
2004-06-22 00:58:11 +00:00
Atsushi Eno ea228cfdfe 2004-06-21 Atsushi Enomoto <[email protected]>
* Misc.cs,
	  RelaxngPattern.cs,
	  RelaxngReader.cs :
	  Use XmlResolver (or XmlUrlResolver) directly. XmlResolver was
	  incorrectly _used_ before null check. Don't create XmlResolver
	  instance for _every_ pattern object.
	* RelaxngPattern.cs : UnresolvedRef.ExpandRef() should return not
	  try to find target derivative pattern twice. It was the culprit of
	  infinite loop. Removed dirty switches.
	* RelaxngGrammar.cs : code cleanup.

svn path=/trunk/mcs/; revision=30070
2004-06-21 20:54:39 +00:00
Atsushi Eno 77c7d595f8 2004-06-21 Atsushi Enomoto <[email protected]>
* RdpPatterns.cs : Fixed ExpandRef() that caused incorrect nest error.

svn path=/trunk/mcs/; revision=30069
2004-06-21 20:40:30 +00:00
Martin Baulig 8c2b9a1af2 2004-06-21 Martin Baulig <[email protected]>
* exception.c (mono_get_exception_security): It's in
	"System.Security", not in "System".

	* mono-debug-debugger.c (mono_debugger_add_builtin_types): Add all
	the exception classes.

svn path=/trunk/mono/; revision=30067
2004-06-21 20:23:21 +00:00
Miguel de Icaza 5d9705bf2b Add inline documentation to the class API
svn path=/trunk/mono/; revision=30065
2004-06-21 19:51:36 +00:00
Martin Baulig 1886261c12 2004-06-21 Martin Baulig <[email protected]>
* mono-debug-debugger.c (mono_debugger_unhandled_exception):
	Protect the exception object from being finalized.

svn path=/trunk/mono/; revision=30061
2004-06-21 18:43:21 +00:00
Duncan Mak 25e1e7ccfd Add MIT license to System.Security.DLL
svn path=/trunk/mcs/; revision=30060
2004-06-21 18:32:17 +00:00
Duncan Mak 58a0067567 Add MIT license to System.Web.Services.DLL
svn path=/trunk/mcs/; revision=30058
2004-06-21 18:30:28 +00:00
Martin Baulig 83f27b4135 2004-06-21 Martin Baulig <[email protected]>
* mini/mini-exceptions.c
	(mono_handle_exception): Added `gpointer original_ip' argument.
	After calling mono_unhandled_exception(), call
	mono_debugger_unhandled_exception() and if that returns true,
	restore the context and return.

svn path=/trunk/mono/; revision=30057
2004-06-21 18:27:42 +00:00
Martin Baulig 7fd64f5c24 2004-06-21 Martin Baulig <[email protected]>
* mono-debug-debugger.h (mono_debugger_unhandled_exception): New
	public function.

svn path=/trunk/mono/; revision=30056
2004-06-21 18:23:30 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Duncan Mak 9286403c14 Add license and copyright to Mono.Cairo
svn path=/trunk/mcs/; revision=30051
2004-06-21 17:36:11 +00:00
Paolo Molaro 49d673df71 Mon Jun 21 19:26:40 CEST 2004 Paolo Molaro <[email protected]>
* mini-ppc.c: prefer the use of relative branches so
	they won't need to be patched in aot code (patch from Patrick Beard).

svn path=/trunk/mono/; revision=30046
2004-06-21 16:36:33 +00:00
Paolo Molaro bb9f5fdc12 Mon Jun 21 19:03:18 CEST 2004 Paolo Molaro <[email protected]>
* aot.c: patch from Patrick Beard to make the output assembly
	more correct for the MacOSX assembler. Small tweak to
	generate sane images on Linux/PPC, too.

svn path=/trunk/mono/; revision=30045
2004-06-21 16:29:32 +00:00
Jackson Harper 1f28102aae * Decimal.cs: Make sure to use invariant culture when parsing
floats stringified with the invariant culture. Patch by Rodrigo
	B. de Oliveira.

svn path=/trunk/mcs/; revision=30044
2004-06-21 16:10:13 +00:00
Atsushi Eno 7d1ecfd7c4 2004-06-21 Atsushi Enomoto <[email protected]>
* FileStreamTest.cs : Added some tests on .ctor() without FileShare.

svn path=/trunk/mcs/; revision=30041
2004-06-21 14:46:14 +00:00
Atsushi Eno d28b4f66c0 2004-06-21 Atsushi Enomoto <[email protected]>
* FileStream.cs :
	  .ctor() should block write access when created with FileAccess.Write.

svn path=/trunk/mcs/; revision=30040
2004-06-21 14:45:01 +00:00
Atsushi Eno 8c0f1bb9d5 2004-06-21 Atsushi Enomoto <[email protected]>
FileInfoTest.cs : more '/' and Path.DirectorySeparatorChar fixes

svn path=/trunk/mcs/; revision=30038
2004-06-21 13:46:04 +00:00
Atsushi Eno 8fa49e6e35 2004-06-16 Atsushi Enomoto <[email protected]>
* DirectoryInfoTest.cs,
	  DirectoryTest.cs,
	  FileStreamTest.cs,
	  FileSystemInfoTest.cs:
	  Replace all '/' in path with Path.DirectorySeparatorChar.

svn path=/trunk/mcs/; revision=30037
2004-06-21 13:42:39 +00:00
Sebastien Pouliot e9c375e394 2004-06-21 Sebastien Pouliot <[email protected]>
* reflection.c: Load the assembly in mono_reflection_type_from_name,
	if it was not loaded before. Fix parts of #60439.

svn path=/trunk/mono/; revision=30036
2004-06-21 13:38:29 +00:00
Paolo Molaro e21b1e1c26 More tests for runtime_invoke ().
svn path=/trunk/mono/; revision=30035
2004-06-21 13:37:29 +00:00
Paolo Molaro e9969921c0 More embedding samples.
svn path=/trunk/mono/; revision=30034
2004-06-21 13:32:25 +00:00
Atsushi Eno 5412643255 2004-06-21 Atsushi Enomoto <[email protected]>
* FileStream.cs : Check buffer size before creating file.
	* StreamReader.cs : Check encoding!=null before creating file.
	* File.cs,
	  MonoIO.cs : Convert DateTime to FileTime after checking
	  file IO sharing violation (it just fixes the type of exception).

svn path=/trunk/mcs/; revision=30033
2004-06-21 13:30:46 +00:00
Paolo Molaro df246a4f9c Mon Jun 21 16:04:43 CEST 2004 Paolo Molaro <[email protected]>
* marshal.c, icall.c, object.c, image.c: fix the runtime_invoke ()
	code that was broken since Ben's change: wrappers are now
	dependent on the method signature only again.

svn path=/trunk/mono/; revision=30032
2004-06-21 13:28:25 +00:00
Raja R Harinath 3f42416e8a (ReSign): Return a bool indicating success or failure.
(Main): Return with failure if ReSign() fails.

svn path=/trunk/mcs/; revision=30031
2004-06-21 12:23:41 +00:00
Raja R Harinath 3dd1fabda2 (LIBRARY_SNK): Sign with nunit.key.
svn path=/trunk/mcs/; revision=30030
2004-06-21 12:15:49 +00:00
Raja R Harinath 51b4a7a71a Avoid spurious "unexpected incorrect error".
svn path=/trunk/mcs/; revision=30029
2004-06-21 12:12:07 +00:00
Raja R Harinath f3834ac171 (LIBRARY_SNK): Sign with Npgsql/Npgsql.snk.
svn path=/trunk/mcs/; revision=30028
2004-06-21 12:08:12 +00:00
Raja R Harinath dbc4617b0c (LIBRARY_SNK): Sign with SharpZipLib.key. The library
is delay-signed according to ICSharpCode.SharpZipLib/AssemblyInfo.cs.

svn path=/trunk/mcs/; revision=30027
2004-06-21 12:07:29 +00:00
Marek Safar 8dd59d7659 new tests
svn path=/trunk/mcs/; revision=30026
2004-06-21 12:07:23 +00:00
Raja R Harinath 092ade872e update
svn path=/trunk/mcs/; revision=30025
2004-06-21 12:07:00 +00:00
Raja R Harinath cb2f17a4ed * executable.make ($(PROGRAM)): Move depend on the makefrags ...
(all-local): ... here.
* library.make ($(the_lib), $(test_lib), $(btest_lib), all-local):
Likewise.
(LIBRARY_SNK): New default define.  Allows library to be signed
with a key other than mono.snk.
($(the_lib_signature_stamp)): New stamp file created when an
assembly is signed.
(install-local, uninstall-local, maybe-sign-lib): Set MONO_PATH.

svn path=/trunk/mcs/; revision=30024
2004-06-21 12:06:34 +00:00
Paolo Molaro ebb4ae0126 Mon Jun 21 14:06:03 CEST 2004 Paolo Molaro <[email protected]>
* interp.h: API updates.

svn path=/trunk/mono/; revision=30023
2004-06-21 11:14:42 +00:00
Marek Safar 66e7897cc9 2004-06-21 Marek Safar <[email protected]>
* test-275.cs: New test for #59792

svn path=/trunk/mcs/; revision=30022
2004-06-21 09:46:14 +00:00
Sachin Kumar c3046ba7a7 Minor bug fixes
svn path=/trunk/mcs/; revision=30021
2004-06-21 07:41:21 +00:00
Atsushi Eno ae05f2b3f8 2004-06-21 Atsushi Enomoto <[email protected]>
* mono-sha1.c : close opened file in case of successful read. This
	  saves a bunch of System.Reflection Emit failures under windows.

svn path=/trunk/mono/; revision=30019
2004-06-21 07:18:40 +00:00
César Natarén 76cc01191d updates from grammar changes
svn path=/trunk/mcs/; revision=30004
2004-06-21 00:50:46 +00:00
César Natarén 3624f7d92f changelog entries
svn path=/trunk/mcs/; revision=30003
2004-06-21 00:48:54 +00:00
César Natarén 1275c3782c * jscript-lexer-parser.g: pass parent to break_stm. Added block as
a statement. Temporarily disabled object_literal in order to test
        the block structure and continue and break statements.

svn path=/trunk/mcs/; revision=30002
2004-06-21 00:45:45 +00:00
César Natarén 9cab3b6de1 * ast.cs: Added InLoop and InSwitch.
svn path=/trunk/mcs/; revision=30000
2004-06-21 00:45:16 +00:00
César Natarén 5b05aba516 * Statement.cs: class If.Emit, call fall_true instead of fall_false so we don't
need to jump if the expression evaluates to true. Continue class,
        replaced ParentIsItrStm with InLoop, emit jump to correct
        place. Break class, implemented Resolve; deleted
        ParentIsCorrect. DoWhile, While classes, set LoopBegin and
        LoopEnd. While class, set LoopBegin and LoopEnd.

svn path=/trunk/mcs/; revision=29999
2004-06-21 00:44:52 +00:00
César Natarén 0e0a64c8ec * CodeGenerator.cs: Added LoopBegin and LoopEnd to EmitContext, they are used by
break and continue in order to jump to the desired place. Added
        check for converting to boolean if we encounter an identifier (at need_convert_to_boolean).

svn path=/trunk/mcs/; revision=29998
2004-06-21 00:44:16 +00:00
Martin Baulig a825eb4c52 2004-06-21 Martin Baulig <[email protected]>
* mono-debug-debugger.c (write_class): Cleaned this up a bit and
	added interface support.

svn path=/trunk/mono/; revision=29996
2004-06-21 00:37:56 +00:00
Jackson Harper 2968f8c40c * dis-cil.c: Handle switch statements with no labels.
svn path=/trunk/mono/; revision=29994
2004-06-20 23:23:38 +00:00
Jackson Harper 87e28b49cb * SwitchInstr.cs: Allow switches with no labels.
svn path=/trunk/mcs/; revision=29993
2004-06-20 23:12:12 +00:00
Jackson Harper 8002eb6ae8 * InstrTable.cs: Add .u8 opcodes for ldind and ldelem these are
just aliases to their .i8 equivelents.

svn path=/trunk/mcs/; revision=29992
2004-06-20 22:38:27 +00:00
Martin Baulig df61aada92 2004-06-21 Martin Baulig <[email protected]>
* class.c (mono_vtable_get_static_field_data): New public method.

svn path=/trunk/mono/; revision=29990
2004-06-20 22:29:00 +00:00
Atsushi Eno 79a84de0fa 2004-06-20 Atsushi Enomoto <[email protected]>
* filewatcher.c : Windows build fix to be compliant with API changes.

svn path=/trunk/mono/; revision=29989
2004-06-20 21:30:31 +00:00
Gonzalo Paniagua Javier acf93ff574 2004-06-20 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: fixed Accept for non-blocking sockets.

svn path=/trunk/mcs/; revision=29980
2004-06-20 19:00:11 +00:00
Atsushi Eno eeb7788acc 2004-06-20 Atsushi Enomoto <[email protected]>
* XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
	  inference target. For bug #60470. (MS does not support schema
	  document inference and results in unconsistent dataset structure.)

svn path=/trunk/mcs/; revision=29977
2004-06-20 18:52:23 +00:00
Atsushi Eno 2949e66c28 2004-06-20 Atsushi Enomoto <[email protected]>
* DataTableCollection.cs : reset the table's DataSet to null when
	  removing a table from this collection.
	* DataTable.cs : When Namespace is not specified explicitly, its
	  Namespace property reflects DataSet's Namespace if exist.
	  This fixes bug #60469.

svn path=/trunk/mcs/; revision=29975
2004-06-20 17:35:14 +00:00
Atsushi Eno dcfd1cffa9 2004-06-20 Atsushi Enomoto <[email protected]>
* DataTableCollectionTest.cs : Added test for DataSet and Namespace
	  adjustment.

svn path=/trunk/mcs/; revision=29974
2004-06-20 17:34:40 +00:00
Jordi Mas i Hernandez 87664ecf85 added missing wrappers
svn path=/trunk/mcs/; revision=29973
2004-06-20 14:44:35 +00:00
Jackson Harper 2ce4a3f049 * monodis.1: Document --blob
svn path=/trunk/mono/; revision=29968
2004-06-20 01:50:13 +00:00
Jackson Harper bcffb8c467 * dump.c/h: New function to dump the contents of the blob
stream. I found it useful for debugging so I will share.
	* main.c: Add --blob switch to dump the blob stream.

svn path=/trunk/mono/; revision=29967
2004-06-20 01:46:44 +00:00
Jackson Harper 4db788efc0 * get.c/h: New function to stringify function pointers.
svn path=/trunk/mono/; revision=29966
2004-06-20 01:40:32 +00:00
Jackson Harper 42cb196921 * get.c: New function to stringify function pointers.
svn path=/trunk/mono/; revision=29965
2004-06-20 01:36:36 +00:00
Jackson Harper 709e98a759 * get.c: Fix name escaping so we dont escape everything in the
world anymore.

svn path=/trunk/mono/; revision=29964
2004-06-20 01:13:56 +00:00
Jackson Harper d7bec71731 * ILParser.jay: Resolve method pointers that are being treated as
typerefs.

svn path=/trunk/mcs/; revision=29963
2004-06-19 23:25:52 +00:00
Jackson Harper 141bac3ad0 * ilasm.exe.sources: Add MethodPointerTypeRef.cs to the build.
svn path=/trunk/mcs/; revision=29962
2004-06-19 23:23:09 +00:00
Jackson Harper 2b7087f3bc * MethodPointerTypeRef.cs: New File - represents a method pointer
that is being treated as a typeref. For example method void*() in
	the statement castclass method void*().

svn path=/trunk/mcs/; revision=29961
2004-06-19 23:21:31 +00:00
Jackson Harper 94c0773c00 * PEAPI.cs: Make sure the sentinel is placed properly for vararg
method pointers.

svn path=/trunk/mcs/; revision=29960
2004-06-19 23:12:20 +00:00
Jackson Harper ddecf09809 Give a little love
svn path=/trunk/mcs/; revision=29959
2004-06-19 22:30:13 +00:00
Jackson Harper b94c1f6680 * PEAPI.cs: Allow MethPtrTypes to be created from a signature
instead of from a method reference because it really doesn't make
	sense to do it that way ;-).

svn path=/trunk/mcs/; revision=29958
2004-06-19 21:14:45 +00:00
Jackson Harper 4a7b3fcc5a Add instructions on setting multiple mask values.
svn path=/trunk/mono/; revision=29953
2004-06-19 17:34:26 +00:00
Jackson Harper 8ae5262c72 * InstrTable.cs: Add undocumented brnull opcode. This is really
just an alias for brfalse.

svn path=/trunk/mcs/; revision=29952
2004-06-19 17:21:57 +00:00
Jackson Harper 0c95afbde4 * ILParser.jay: Resolve other modules global 'type'.
svn path=/trunk/mcs/; revision=29949
2004-06-19 16:43:00 +00:00
Miguel de Icaza 57d706aa4d Floush
svn path=/trunk/mono/; revision=29947
2004-06-19 16:29:08 +00:00
Paolo Molaro 63b0272887 Sat Jun 19 19:04:50 CEST 2004 Paolo Molaro <[email protected]>
* class.h, class.c: more accessors.
	* metadata.h, metadata.c: prepare for hiding MonoType and
	MonoMethodSignature: people should use the accessors from now on
	outside of the tree.

svn path=/trunk/mono/; revision=29946
2004-06-19 16:17:04 +00:00
Jackson Harper 12357e691b * MethodDef.cs: Add a method to create vararg signatures from a
list of typerefs that matches the algorithm for creating vararg
	signatures from paramdefs. This is used when creating methodref
	signatures.
	* MethodRef.cs: Use the new CreateVarargSignature method to create
	the methods signature if it is a vararg method.

svn path=/trunk/mcs/; revision=29945
2004-06-19 16:12:47 +00:00
Paolo Molaro 0e43f1677e Test with metadata-related API sample usage.
svn path=/trunk/mono/; revision=29943
2004-06-19 15:10:45 +00:00
Paolo Molaro ca60c99375 Sat Jun 19 17:56:50 CEST 2004 Paolo Molaro <[email protected]>
* *.c, *.h: more API cleanups.

svn path=/trunk/mono/; revision=29942
2004-06-19 15:08:58 +00:00
Atsushi Eno 666767aaf6 2004-06-19 Atsushi Enomoto <[email protected]>
* FloatingPointFormatter.cs : Literal string should be kept in the
	  output.

svn path=/trunk/mcs/; revision=29940
2004-06-19 13:11:50 +00:00
Atsushi Eno 2e8bfb9d63 2004-06-19 Atsushi Enomoto <[email protected]>
* FloatingPointFormatterTest.cs : Format literal (i.e. '...') in
	  format string should be kept as is.

svn path=/trunk/mcs/; revision=29939
2004-06-19 13:11:23 +00:00
Jochen Wezel e18c1d37e0 Changed some public constructors to private to match MS' implementation
svn path=/trunk/mcs/; revision=29938
2004-06-19 11:03:42 +00:00
Gert Driesen 187b6e8dd9 * Consts.cs: Added
svn path=/trunk/mcs/; revision=29937
2004-06-19 10:42:34 +00:00
Gonzalo Paniagua Javier e640278680 2004-06-19 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: for system colors, use SystemColors class
	instead of Color. Fixes bug #60249.

svn path=/trunk/mcs/; revision=29936
2004-06-19 10:24:16 +00:00
Paolo Molaro 18f0189f44 Document function remapping, too.
svn path=/trunk/mono/; revision=29935
2004-06-19 09:42:23 +00:00
Atsushi Eno 448baf251a 2004-06-19 Atsushi Enomoto <[email protected]>
* mono-api-diff.cs : tiny fix on warning output.

svn path=/trunk/mcs/; revision=29934
2004-06-19 07:29:22 +00:00
Martin Baulig dda8f8dd35 2004-06-19 Martin Baulig <[email protected]>
* MonoSymbolTable.cs
	(SourceFileTable.Namespaces): New public property.

svn path=/trunk/mcs/; revision=29931
2004-06-19 01:26:02 +00:00
Jackson Harper 0fa628e921 * man/mono.1: Add MONO_LOG_LEVEL and MONO_LOG_MASK
svn path=/trunk/mono/; revision=29930
2004-06-18 23:35:58 +00:00
Jackson Harper 1ed5f785d1 * assembly.c: Trace loading assemblies.
* loader.c: Trace loading native libraries.
	* mono-config.c: Trace loading config files.

svn path=/trunk/mono/; revision=29926
2004-06-18 22:06:53 +00:00
Jackson Harper bdffef14b9 * mono-logger.c/h: Add a trace mask option for tracing loading
config files. A little white space love.

svn path=/trunk/mono/; revision=29925
2004-06-18 22:03:10 +00:00
Martin Baulig 3daec2987b 2004-06-18 Martin Baulig <[email protected]>
* generics.cs (GenericMethod.ctor): Don't take an Attributes
	argument.  Fixes #60441.

svn path=/trunk/mcs/; revision=29922
2004-06-18 21:07:55 +00:00
Duncan Mak 67e9efed0b Enable FC2
svn path=/trunk/mono/; revision=29920
2004-06-18 21:03:35 +00:00
Neale Ferguson 8ded928d50 Fix broken ABI for stack parameters
svn path=/trunk/mono/; revision=29915
2004-06-18 20:03:01 +00:00
Miguel de Icaza 7cb1ef2bf4 Fix
svn path=/trunk/mono/; revision=29914
2004-06-18 19:30:24 +00:00
Sebastien Pouliot cfcb5ae03f 2004-06-18 Sebastien Pouliot <[email protected]>
* ReturnMessage.cs: Added IMessage interface to class definition.

svn path=/trunk/mcs/; revision=29913
2004-06-18 19:12:03 +00:00
Sebastien Pouliot 6bff3db4ae 2004-06-18 Sebastien Pouliot <[email protected]>
* StrongNameMembershipCondition.cs: Added missing [Serializable]
	attribute.
	* ZoneMembershipCondition.cs: Added missing [Serializable] attribute.

svn path=/trunk/mcs/; revision=29912
2004-06-18 19:08:04 +00:00
Ben Maurer 8d8ea7c773 more v2 classes some workarounds are here for gmcs bugs
svn path=/trunk/mcs/; revision=29910
2004-06-18 18:32:31 +00:00
Dick Porter 8dabaf7398 2004-06-18 Dick Porter <[email protected]>
* event-private.h:
	* events.c: Auto-reset events need to release one thread for each
	time SetEvent() is called.  Fixes bug 41292.

	* threads.h:
	* mutex-private.h:
	* mutexes.c: Scan for mutexes that are still locked by a thread
	when it exits.  Fixes the MS demo app linked by bug 41292.

	* wait.c (test_and_own): Make sure a handle is signalled before it
	is owned.

svn path=/trunk/mono/; revision=29909
2004-06-18 18:15:56 +00:00
Atsushi Eno cc6dc18eec 2004-06-18 Atsushi Enomoto <[email protected]>
* DateTime.cs : Concatenating whitespace removal was not working fine.
	  Modified FormatException message (1 cent kindness).

svn path=/trunk/mcs/; revision=29903
2004-06-18 17:48:27 +00:00
Dick Porter ddbb177a02 Thread exiting behaviour
svn path=/trunk/mono/; revision=29902
2004-06-18 17:29:27 +00:00
Gert Driesen 23c68894ff * IStateRuntime.cs: added missing marshalling attributes
svn path=/trunk/mcs/; revision=29901
2004-06-18 17:24:05 +00:00
Gert Driesen 3f09099bcd * IAppDomainFactory.cs: added missing marshalling attributes
* IISAPIRuntime.cs: added missing marshalling attributes

svn path=/trunk/mcs/; revision=29900
2004-06-18 17:22:44 +00:00
Ben Maurer 3939fcd228 2004-06-18 Ben Maurer <[email protected]>
* Action.cs, ArraySegment.cs, Comparison.cs, Converter.cs, Predicate.cs:
	new generics classes
	* IComparable.cs: add the new <T> version.
	* EventHandler.cs: new <T> version.

svn path=/trunk/mcs/; revision=29899
2004-06-18 17:18:10 +00:00
Paolo Molaro d294c046c6 Fix windows build.
svn path=/trunk/mono/; revision=29898
2004-06-18 17:16:14 +00:00
Gert Driesen a34e54fc99 * IComManagedImportUtil.cs: added missing marshalling attributes
* IComSoapIISVRoot.cs: added missing marshalling attributes
* IComSoapMetadata.cs: added missing marshalling attributes
* IComSoapPublisher.cs: added missing marshalling attributes
* IServerWebConfig.cs: added missing marshalling attributes
* ISoapClientImport.cs: added missing marshalling attributes
* ISoapServerTlb.cs: added missing marshalling attributes
* ISoapServerVRoot.cs: added missing marshalling attributes
* ISoapUtility.cs: added missing marshalling attributes

svn path=/trunk/mcs/; revision=29897
2004-06-18 17:08:49 +00:00
Gert Driesen 9d77ba7a02 * Compensator.cs: fixed return value of CommitRecord method
svn path=/trunk/mcs/; revision=29896
2004-06-18 17:01:51 +00:00
Gert Driesen db58d33746 * AuthenticationOption.cs: fixed enum field values to match MS.NET
* IProcessInitializer.cs: added missing marshalling attributes
* IRegistrationHelper.cs: added missing marshalling attributes
* ImpersonationLevelOption: fixed enum field values to match MS.NET
* InstallationFlags: fixed enum field values to match MS.NET
* PropertyLockMode: fixed enum field values to match MS.NET
* PropertyReleaseMode: fixed enum field values to match MS.NET
* RegistrationHelper: added missing marshalling attributes
* RegistrationHelperTx: added missing marshalling attributes
* SynchronizationOption: fixed enum field values to match MS.NET
* TransactionIsolationLevel: fixed enum field values to match MS.NET
* TransactionVote: fixed enum field values to match MS.NET

svn path=/trunk/mcs/; revision=29895
2004-06-18 16:59:14 +00:00
Paolo Molaro abd8757538 Fri Jun 18 19:39:09 CEST 2004 Paolo Molaro <[email protected]>
* Makefile.am: process data before runtime, so the config file is
	installed and gacutil has a chance to work (finding symlink).

svn path=/trunk/mono/; revision=29890
2004-06-18 16:49:57 +00:00
Gert Driesen f9dddf5374 * SqlNullValueException.cs: fixed serialization
* SqlTruncateException.cs: fixed serialization
* SqlTypeException.cs: fixed serialization

svn path=/trunk/mcs/; revision=29887
2004-06-18 15:40:47 +00:00
Gert Driesen f776ed3720 * OleDbError.cs: fixed serialization compatibility with MS.NET
* OleDbErrorCollection.cs: fixed serialization compatibility with
MS.NET

svn path=/trunk/mcs/; revision=29886
2004-06-18 15:38:10 +00:00
Gert Driesen 8c65905adb * OdbcError.cs: fixed serialization compatibility with MS.NET
* OdbcErrorCollection.cs: fixed serialization compatibility with
MS.NET
* OdbcException.cs: fixed serialization compatibility with MS.NET

svn path=/trunk/mcs/; revision=29885
2004-06-18 15:37:16 +00:00
Paolo Molaro 0a9afb7fdc Fri Jun 18 18:24:28 CEST 2004 Paolo Molaro <[email protected]>
* mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
	case until bug #59509 is fixed (shows up in #60332).

svn path=/trunk/mono/; revision=29884
2004-06-18 15:34:57 +00:00
Gert Driesen 04d75f32c3 * DBConcurrentcyException.cs: CRLF to LF
* DataViewSetting.cs: CRLF to LF

svn path=/trunk/mcs/; revision=29883
2004-06-18 15:34:23 +00:00
Gert Driesen f8ef4fd803 *** empty log message ***
svn path=/trunk/mcs/; revision=29882
2004-06-18 15:29:34 +00:00
Ravindra 2ef8dce743 Correcting some errors of last checkin.
svn path=/trunk/mcs/; revision=29881
2004-06-18 15:12:34 +00:00
Ravindra 263e9fc081 * FontConverter.cs: Implemented the missing functions.
* Font.cs: Added some notes.

svn path=/trunk/mcs/; revision=29879
2004-06-18 14:56:07 +00:00
Jackson Harper 4a5ee6c278 * mono-logger.c: Change default logging level to ERROR. Make sure
that mono_trace_init is called if mono_tracev is our first trace
	statement is mono_tracev. Little indentation fix.

svn path=/trunk/mono/; revision=29878
2004-06-18 14:46:40 +00:00
Dick Porter a31d672375 2004-06-18 Dick Porter <[email protected]>
* String.cs: The icall can cope with embedded \0 now.

svn path=/trunk/mcs/; revision=29876
2004-06-18 13:53:19 +00:00
Dick Porter e40302bd2b 2004-06-18 Dick Porter <[email protected]>
* locales.c: Tell ICU the lengths of strings, it can cope with
	embedded \0 then.  Fixes bug 59274, and doesn't break bug 55822.

svn path=/trunk/mono/; revision=29875
2004-06-18 13:52:57 +00:00
Atsushi Eno bb1ebb19b8 2004-06-18 Atsushi Enomoto <[email protected]>
* XmlDataDocumentTest2.cs : When line ending is LF, CR is preserved.
	  To reproduce on windows too, set NewLine as LF.

svn path=/trunk/mcs/; revision=29874
2004-06-18 12:32:14 +00:00
Marek Safar 73d81a98dd 2004-06-18 Marek Safar <[email protected]>
* test-274.cs: New test for #60219

svn path=/trunk/mcs/; revision=29873
2004-06-18 12:27:03 +00:00
Marek Safar 1109c9ac7c 2004-06-18 Marek Safar <[email protected]>
Fix bug #60219
 	* class.cs (ConstructorInitializer.GetOverloadedConstructor):
 	Don't throw exception but return null (it's sufficient now).

svn path=/trunk/mcs/; revision=29872
2004-06-18 12:23:29 +00:00
Raja R Harinath 5ebd13b632 * runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Test if files exist in the mcs/ tree before creating symlinks.
Remove symlinks before creating them again.
* runtime/net_1_1/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.
* runtime/net_2_0/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.

Make real bug more explicit.

svn path=/trunk/mono/; revision=29871
2004-06-18 12:07:45 +00:00
Marek Safar 70e0204235 2004-06-18 Marek Safar <[email protected]>
* typemanager.cs (GetArgumentTypes): Faster implementation.

svn path=/trunk/mcs/; revision=29870
2004-06-18 12:00:32 +00:00
Marek Safar bf40fee8a3 2004-06-18 Marek Safar <[email protected]>
* test-273.cs: New test for #55971

svn path=/trunk/mcs/; revision=29869
2004-06-18 11:31:25 +00:00
Paolo Molaro ff785c3085 Fri Jun 18 13:46:05 CEST 2004 Paolo Molaro <[email protected]>
* mono-jni.c: updates for the API cleanups.

svn path=/trunk/mono/; revision=29867
2004-06-18 10:55:21 +00:00
Umadevi S 41e1f3ce9f 2004-06-18 Umadevi S <[email protected]>
* DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
                SetItemForDataRecord method for all the classes.

svn path=/trunk/mcs/; revision=29866
2004-06-18 10:33:17 +00:00
Atsushi Eno a5eaabf6f1 2004-06-18 Atsushi Enomoto <[email protected]>
* CodeIdentifier.cs, CodeIdentifiers.cs, MapCodeGenerator.cs,
	  SerializationCodeGenerator.cs, SerializationSource.cs,
	  TypeTranslator.cs, XmlAttributeOverrides.cs, XmlCustomFormatter.cs,
	  XmlSerializationReader.cs, XmlSerializationWriter.cs,
	  XmlSerializer.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs
	  : Globalization fixes.
	    In XmlCustomFormatter.GenerateToXmlString() time was not
	    generated correctly.
	    Replaced all CRLF XmlAttributeOverrides.cs into LF.

svn path=/trunk/mcs/; revision=29865
2004-06-18 09:50:34 +00:00
Anirban Bhattacharjee e2041f94d7 Interaction.cs: Shell method implemented
svn path=/trunk/mcs/; revision=29864
2004-06-18 09:32:18 +00:00
Atsushi Eno a51abf2aab 2004-06-18 Atsushi Enomoto <[email protected]>
* DateTime.cs :
	  - Added new common pattern "yyyy/M/dZ"
	  - empty string should not be compared in _ParseEnum()
	  - Use culture independent string comparison in _ParseString()
	  - Whitespace removal should be checked after '..' token check (some
	    pattern such like es-ES LongDatePattern contains spaces in '..').
	  - formats null check should be done (to throw ArgumentNullException)
	    in ParseExact().
	  - When specified one character format, dates are incorrectly regarded
	    as to use invariant culture.

svn path=/trunk/mcs/; revision=29863
2004-06-18 09:11:48 +00:00
Paolo Molaro 3f57d35c68 Fri Jun 18 11:59:57 CEST 2004 Paolo Molaro <[email protected]>
* image.c: swapped name/filename;

svn path=/trunk/mono/; revision=29862
2004-06-18 09:09:37 +00:00
Atsushi Eno 0036fb7850 2004-06-18 Atsushi Enomoto <[email protected]>
* DateTimeTest.cs : Improved CultureIndependentTests(). Error message
	  contains specific locale and error location. Verified by run-test-
	  ondotnet and commented out X509-like pattern.(not all culture passes)

svn path=/trunk/mcs/; revision=29861
2004-06-18 09:04:39 +00:00
Ravindra 61667876de Some formatting and cleanup.
svn path=/trunk/mcs/; revision=29860
2004-06-18 08:39:39 +00:00
Raja R Harinath 2ea89aa1cc (REWRITE): New. Common rewriting 'sed' command.
(bin_SCRIPTS): Unify all the script generating rules into one.

svn path=/trunk/mono/; revision=29859
2004-06-18 08:36:21 +00:00
Raja R Harinath a58b9ee05b fix line-delete-o.
svn path=/trunk/mcs/; revision=29857
2004-06-18 07:53:04 +00:00
Raja R Harinath 4b3f825831 Fix breaking build (see tests/test-272.cs). Since corlib is a
bootstrap library, we have to keep this fix even if the in-tree
mcs compiler is fixed.
* UCOMIEnumConnections.cs: Replace '(UnmanagedType) 80' in
attribute field initialization with Consts.UnmanagedType_80.
* UCOMIEnumMoniker.cs: Likewise.
* UCOMIEnumString.cs: Likewise.
* UCOMIStream.cs: Likewise.
* UCOMITypeInfo.cs: Likewise.
* UCOMITypeLib.cs: Likewise.

svn path=/trunk/mcs/; revision=29856
2004-06-18 07:45:21 +00:00
Raja R Harinath 1c1b502115 (UnmanagedType_80): New constant. Used to workaround
problems like in tests/test-272.cs.

svn path=/trunk/mcs/; revision=29855
2004-06-18 07:44:55 +00:00
Raja R Harinath 7d38cc94b0 New test case for the breaking build.
svn path=/trunk/mcs/; revision=29854
2004-06-18 07:39:32 +00:00
Gert Driesen 2bcaebf1cc * ArgIterator.cs: changed layout to Auto
* DateTime.cs: changed layout to Auto

svn path=/trunk/mcs/; revision=29853
2004-06-18 06:33:49 +00:00
Gert Driesen 1b8b2a501d * DateTime.cs: CRLF to LF
svn path=/trunk/mcs/; revision=29852
2004-06-18 06:30:40 +00:00
Sachin Kumar f47e31b6bf Fixed bugs in Val(string)
svn path=/trunk/mcs/; revision=29851
2004-06-18 06:21:09 +00:00
Anirban Bhattacharjee 16f6cb8223 2004-06-18 Anirban Bhattacharjee <[email protected]>
* Interaction.cs: Few methods implemented - Contribution by Jambunathan and Anirban

svn path=/trunk/mcs/; revision=29850
2004-06-18 06:08:10 +00:00
Umadevi S aeb993c977 2004-06-18 Umadevi S <[email protected]>
* SqlCommand.cs - ExecuteNonQuery returns -1 in all cases except
                insert,update or delete.

svn path=/trunk/mcs/; revision=29849
2004-06-18 06:01:40 +00:00
Gert Driesen d7536995bf * BINDPTR.cs: have layout and charset match MS.NET
* CONNECTDATA.cs: have layout and charset match MS.NET
* DISPPARAMS.cs: have layout and charset match MS.NET
* ELEMDESC.cs: have layout and charset match MS.NET
* EXCEPINFO.cs: have layout and charset match MS.NET
* IDLDESC.cs: have layout and charset match MS.NET
* PARAMDESC.cs: have layout and charset match MS.NET
* STATSTG.cs: have layout and charset match MS.NET
* TYPEATTR.cs: have layout and charset match MS.NET
* TYPEDESC.cs: have layout and charset match MS.NET
* TYPELIBATTR.cs: have layout and charset match MS.NET
* VARDESC.cs: have layout and charset match MS.NET

svn path=/trunk/mcs/; revision=29848
2004-06-18 05:53:26 +00:00
Gert Driesen 48447ddacb * ArrayWithOffset.cs: fixed GetOffset to return int instead of
object
* CONNECTDATA.cs: added missing MarshalAs attribute
* EXCEPINFO.cs: added missing MarshalAs attributes
* ITypeLibConverter.cs: added missing MarshalAs attributes
* ITypeLibImporterNotifySink.cs: added missing MarshalAs attributes
* Marshal.cs: added missing MarshalAs attributues, and missing
Out attributes
* TypeLibConverter.cs: added missing MarshalAs attributes
* UCOMIBindCtx.cs: added missing MarshalAs attributes
* UCOMIConnectionPoint.cs: added missing MarshalAs attributes
* UCOMIEnumConnectionPoints.cs: added missing MarshalAs attributes
* UCOMIEnumConnections.cs: added missing PreserveSig attributes,
added missing MarshalAs attributes
* UCOMIEnumMoniker.cs: added missing PreserveSig attributes,
added missing MarshalAs attributes
* UCOMIEnumString.cs: added missing PreserveSig attributes,
added missing MarshalAs attributes
* UCOMIMoniker.cs: added missing MarshalAs attributes
* UCOMIPersistFile.cs: added missing PreserveSig attribute,
added missing MarshalAs attributes
* UCOMIRunningObjectTable.cs: added missing MarshalAs attributes
* UCOMIStream.cs: added missing MarshalAs attributes
* UCOMITypeComp.cs: added missing MarshalAs attributes
* UCOMITypeInfo.cs: added missing MarshalAs attributes
* UCOMITypeLib.cs: added missing PreserveSig attributes, added
missing MarshalAs attributes

svn path=/trunk/mcs/; revision=29847
2004-06-18 05:17:25 +00:00
Umadevi S 46aa685e63 2004-06-18 Umadevi S <[email protected]>
* SqlConnection.cs - handled null being passed as a connectionstring
          - checked for minimal set of parameters in connectionstring.
          - handled unrecogonized keywords similar to MS.NET

svn path=/trunk/mcs/; revision=29846
2004-06-18 04:23:08 +00:00
Miguel de Icaza 927f734e4a Flush
svn path=/trunk/mono/; revision=29845
2004-06-18 03:44:21 +00:00
Martin Baulig f6f244119f 2004-06-18 Martin Baulig <[email protected]>
* mono-debug-debugger.c (write_class): Write the parent class at
	the end of the header.

svn path=/trunk/mono/; revision=29841
2004-06-18 03:12:01 +00:00
Francisco Figueiredo Jr. c1dbd1467d 2004-06-18 Francisco Figueiredo Jr. <[email protected]>
* Synchronized files with gborg cvs up to release 0.6.

svn path=/trunk/mcs/; revision=29840
2004-06-18 02:58:45 +00:00
Francisco Figueiredo Jr. 8efff70c78 2004-06-18 Francisco Figueiredo Jr. <[email protected]>
* Synchronized files with gborg cvs up to release 0.6

svn path=/trunk/mcs/; revision=29839
2004-06-18 02:56:25 +00:00
Francisco Figueiredo Jr. 249109f582 2004-06-18 Francisco Figueiredo Jr. <[email protected]>
* Synchronized files from gborg cvs up to release 0.6.

svn path=/trunk/mcs/; revision=29838
2004-06-18 02:54:48 +00:00
Geoff Norton 55481f6dfa Updated for B3
svn path=/trunk/mono/; revision=29835
2004-06-18 02:17:48 +00:00
Atsushi Eno ae938f1f66 2004-06-18 Atsushi Enomoto <[email protected]>
* XmlSecureResolverTests.cs : [TestFixture] was missing.

svn path=/trunk/mcs/; revision=29833
2004-06-18 02:06:08 +00:00
Atsushi Eno 5c8ecfc986 2004-06-18 Atsushi Enomoto <[email protected]>
* MonoMicro.Test.csproj : updated.

svn path=/trunk/mcs/; revision=29830
2004-06-18 01:40:17 +00:00
Atsushi Eno 9f2763e462 2004-06-18 Atsushi Enomoto <[email protected]>
* Mono.System.XML.csproj : now contains new NET_2_0 files.

svn path=/trunk/mcs/; revision=29829
2004-06-18 01:36:53 +00:00
Atsushi Eno 6f208edbf7 2004-06-18 Atsushi Enomoto <[email protected]>
* DefaultContext.cs : Globalization.
	* Iterator.cs : In SlashIterator.MoveNext() position might keep 0
	  in case of empty list. Thus extraneous iteration might happened.
	  Removed unused (and clone unsafe) EnumeratorIterator.

svn path=/trunk/mcs/; revision=29828
2004-06-18 01:30:02 +00:00
Atsushi Eno 4cf0759319 2004-06-18 Atsushi Enomoto <[email protected]>
* CustomSerializer.cs, XmlSchemaException.cs,
	  XmlSchemaParticle.cs, XmlSchemaSimpleTypeRestriction.cs
	  : Globalization.

svn path=/trunk/mcs/; revision=29827
2004-06-18 01:25:07 +00:00
Atsushi Eno 47029604e8 2004-06-18 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
	  XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
	  XmlTextWriter.cs : Globalization.
	* XmlNode.cs : Fixed error message that confused node type.

svn path=/trunk/mcs/; revision=29825
2004-06-18 01:22:07 +00:00
Atsushi Eno 72fd119cf8 2004-06-18 Atsushi Enomoto <[email protected]>
* XslNumber.cs : Globalization. Removed unused code.

svn path=/trunk/mcs/; revision=29824
2004-06-18 01:14:29 +00:00
Atsushi Eno dd26fb65db 2004-06-18 Atsushi Enomoto <[email protected]>
* Debug.cs, HtmlEmitter.cs, MSXslScriptManager.cs,
	  ScriptCompilerInfo.cs, XslFunctions.cs, XslTemplate.cs
	  : Globalization. Removed unused code.

svn path=/trunk/mcs/; revision=29823
2004-06-18 01:13:58 +00:00
Atsushi Eno a658ed86da 2004-06-18 Atsushi Enomoto <[email protected]>
* XsdIdentityPath.cs : removed unused code.
	* XsdIdentityState.cs : Globalization.

svn path=/trunk/mcs/; revision=29822
2004-06-18 01:09:03 +00:00
Martin Baulig 043e069ece 2004-06-18 Martin Baulig <[email protected]>
* attribute.cs (Attribute.Resolve): Check whether we're an
	EmptyCast which a Constant child.  Fixes #60333.

svn path=/trunk/mcs/; revision=29821
2004-06-18 00:51:27 +00:00
Atsushi Eno 57a33056a1 2004-06-18 Atsushi Enomoto <[email protected]>
* CodeGeneratorIdentifierTest.cs : [TestFixture] was missing.

svn path=/trunk/mcs/; revision=29819
2004-06-17 23:28:23 +00:00
Atsushi Eno 063a735387 2004-06-18 Atsushi Enomoto <[email protected]>
* TypedDataSetGeneratorTest.cs : [TestFixture] was missing.

svn path=/trunk/mcs/; revision=29818
2004-06-17 23:24:54 +00:00
Sebastien Pouliot e858743eaf 2004-06-17 Sebastien Pouliot <[email protected]>
* KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
	undocumented structure (now documented, and public, in Fx 2.0).
	* X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
	internal before that.

svn path=/trunk/mcs/; revision=29817
2004-06-17 23:12:52 +00:00
Jackson Harper 6e115c811b * Uri.cs: Use invariant culture.
svn path=/trunk/mcs/; revision=29816
2004-06-17 21:48:29 +00:00
Miguel de Icaza 034f6535bb Revert
svn path=/trunk/mono/; revision=29815
2004-06-17 21:36:48 +00:00
Martin Baulig 79f1f8ead4 Revert.
svn path=/trunk/mono/; revision=29814
2004-06-17 21:29:47 +00:00
Ben Maurer 765b9b1d2f new test
svn path=/trunk/mcs/; revision=29813
2004-06-17 20:50:27 +00:00
Ben Maurer c817f917dc 2004-06-17 Ben Maurer <[email protected]>
* statement.cs (EmitCollectionForeach): Account for the fact that
	not all valuetypes are in areas which we can take the address of.
	For these variables, we store to a temporary variable. Also, make
	sure that we dont emit a `callvirt' on a valuetype method.

svn path=/trunk/mcs/; revision=29812
2004-06-17 20:50:10 +00:00
Jackson Harper 13bd73bd49 * CompilerError.cs:
* CodeGenerator.cs: Make sure we are using invariant for non
	culture sensitive operations.

svn path=/trunk/mcs/; revision=29807
2004-06-17 19:27:12 +00:00
Jackson Harper 9fcdd687af * CodeGenerator.cs: Make sure we are using invariant for non
culture sensitive operations.

svn path=/trunk/mcs/; revision=29806
2004-06-17 19:11:43 +00:00
Gert Driesen 1618604541 * ReturnMessage.cs: remove serializable attribute to match MS.NET
svn path=/trunk/mcs/; revision=29805
2004-06-17 19:01:55 +00:00
Duncan Mak 6fd8b12076 In sounds better than On
svn path=/trunk/mono/; revision=29804
2004-06-17 18:56:43 +00:00
Duncan Mak ead6e02f60 Uncomment the MacOS X section
svn path=/trunk/mono/; revision=29803
2004-06-17 18:53:40 +00:00
Sebastien Pouliot 29cb77e547 2004-06-18 Sebastien Pouliot <[email protected]>
* SqlMoney.cs: Removed old "hack" to correct scale after rounding as
	Decimal has been fixed (in fact this code was moved and adapted for
	Decimal as it was better than the previous fix).

svn path=/trunk/mcs/; revision=29802
2004-06-17 18:46:45 +00:00
Gert Driesen 68419f70e1 * MarshalDirectiveException.cs: marked serializable to match MS.NET
* SafeArrayRankMismatchException.cs: marked serializable to match
MS.NET
* SafeArrayTypeMismatchException.cs: marked serializable to match
MS.NET

svn path=/trunk/mcs/; revision=29801
2004-06-17 18:35:35 +00:00
Gert Driesen 1bdec1beee * InvalidComObjectException.cs: marked serializable to match MS.NET
* InvalidOleVarianTypeException.cs: marked serializable to match
MS.NET

svn path=/trunk/mcs/; revision=29800
2004-06-17 18:28:49 +00:00
Sebastien Pouliot d50232bbb4 2004-06-17 Sebastien Pouliot <[email protected]>
* Decimal.cs: Removed unused (and unusable) IsOne and fixed IsZero
	(where scale has no importance).

svn path=/trunk/mcs/; revision=29799
2004-06-17 18:25:02 +00:00
Gert Driesen 83d87af40c * BestFitMappingAttribute.cs: removed serializable attribute
to match MS.NET

svn path=/trunk/mcs/; revision=29798
2004-06-17 18:17:47 +00:00
Gert Driesen d150fc45d4 * Pointer.cs: remove serializable attribute to match MS.NET
svn path=/trunk/mcs/; revision=29797
2004-06-17 18:15:01 +00:00
Gert Driesen 44629757bd * ParameterModifier.cs: marked serializable, renamed field to match
MS.NET, throw ArgumentException when parameter count is less than or
equal to zero

svn path=/trunk/mcs/; revision=29796
2004-06-17 18:09:37 +00:00
Sebastien Pouliot d2adcc4530 2004-06-17 Sebastien Pouliot <[email protected]>
* Decimal.cs: Fixed regression in System.Data caused by the recent
	changes. Adapted (and moved) the code to correct the scale from
	SqlMoney.

svn path=/trunk/mcs/; revision=29795
2004-06-17 18:09:09 +00:00
Lluis Sanchez 77ed91f3ce Restored accents.
svn path=/trunk/mcs/; revision=29794
2004-06-17 18:04:26 +00:00
Lluis Sanchez b7c580bd3a * Activator.cs: In CreateInstance(), use Public|Instance if access binding
attributes are omitted.

svn path=/trunk/mcs/; revision=29793
2004-06-17 17:55:06 +00:00
Miguel de Icaza 8140f5c896 Flush
svn path=/trunk/mono/; revision=29790
2004-06-17 17:01:15 +00:00
Victor Vatamanescu 6c5f412fff *** empty log message ***
svn path=/trunk/mono/; revision=29788
2004-06-17 16:46:56 +00:00
Paolo Molaro 3407807e1d API cleanup fixes.
svn path=/trunk/mono/; revision=29787
2004-06-17 16:25:19 +00:00
Atsushi Eno 5942a2137a 2004-06-17 Atsushi Enomoto <[email protected]>
* relaxngtest.cs : Now we can test all cases (though resulting in
	  failure). Catch unexpected exception and report them as such.

svn path=/trunk/mcs/; revision=29782
2004-06-17 15:31:15 +00:00
Atsushi Eno d8509c465b 2004-06-17 Atsushi Enomoto <[email protected]>
* RdpPatterns.cs : Quick workaround for infinite loop happening in
	  some kind of recursive expansion.

svn path=/trunk/mcs/; revision=29781
2004-06-17 15:22:58 +00:00
Jambunathan K 389b310d7e Ported OutPutVBFile.cs from Mainsoft's codebase. No assurance beyond the
fact that it would compile just fine !

svn path=/trunk/mcs/; revision=29780
2004-06-17 15:20:57 +00:00
Ravindra 33c0975994 Moving samples from Test/System.Drawing to Samples/General and Samples/System.Drawing directories.
svn path=/trunk/mcs/; revision=29778
2004-06-17 14:20:20 +00:00
Paolo Molaro 77c6d215a3 Thu Jun 17 16:50:44 CEST 2004 Paolo Molaro <[email protected]>
* *.c, *.h, Makefile.am: more API cleanups and bugfixes.

svn path=/trunk/mono/; revision=29777
2004-06-17 14:10:57 +00:00
Atsushi Eno 63f2b74047 2004-06-17 Atsushi Enomoto <[email protected]>
* DateTime.cs : GetDateTimeFormats(char, IFormatProvider) should also
	  check if the format character is valid.

svn path=/trunk/mcs/; revision=29776
2004-06-17 13:17:43 +00:00
Victor Vatamanescu f60c78a067 *** empty log message ***
svn path=/trunk/mono/; revision=29775
2004-06-17 13:12:05 +00:00
Anirban Bhattacharjee cac7679961 2004-06-17 Anirban Bhattacharjee <[email protected]>
* ControlChars.cs: StandardModuleAttribute added

svn path=/trunk/mcs/; revision=29774
2004-06-17 13:08:50 +00:00
Anirban Bhattacharjee f4a7959f92 2004-06-17 Anirban Bhattacharjee <[email protected]>
* Strings.cs: An effort make this file feature complete

svn path=/trunk/mcs/; revision=29772
2004-06-17 13:02:26 +00:00
Atsushi Eno 9176188dc8 2004-06-17 Atsushi Enomoto <[email protected]>
* DateTime.cs : AddDays(double) rounds the input.

svn path=/trunk/mcs/; revision=29771
2004-06-17 12:42:29 +00:00
Sachin Kumar 8ece8b55cd Added license and copyright
svn path=/trunk/mcs/; revision=29770
2004-06-17 12:42:08 +00:00
Jambunathan K 28ed14ccca Committed a couple of FileSystem methods and associated Test cases
submitted by Rob Tillie.

svn path=/trunk/mcs/; revision=29769
2004-06-17 12:37:44 +00:00
Boris Kirzner cea45c8670 * ChangeLog : Fix for misspelled words.
svn path=/trunk/mcs/; revision=29768
2004-06-17 12:29:05 +00:00
Sachin Kumar 86caa35d31 Added license and copyright
svn path=/trunk/mcs/; revision=29767
2004-06-17 12:24:22 +00:00
Boris Kirzner 6e8bc9f17c * DataRowCollection.cs : Removed onColumnRemoved since it iss not in use.
svn path=/trunk/mcs/; revision=29766
2004-06-17 12:23:49 +00:00
Boris Kirzner 04e47fce7d * DataTable.cs :
- Table stores default values for columns in soecial default values row. It is allocated once (in NewRow)
  - DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
  - OnRemoveColumn has nothing to perform by now.

svn path=/trunk/mcs/; revision=29765
2004-06-17 12:13:57 +00:00
Sachin Kumar 3c6ea8cfd6 Added license and copyright
svn path=/trunk/mcs/; revision=29764
2004-06-17 12:12:59 +00:00
Boris Kirzner 299108b770 * DataRow.cs :
- Changed access of original, current and proposed indexes to internal.
  - ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
  - Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
  - Use DataContainer.CopyValue and default values row for faster set of default values in row.
  - SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness.  Care about Null and DBNull values is now in DataContainer.
  - Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
  - Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
  - Fix in CopyState : clone column errors.
  - Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.

svn path=/trunk/mcs/; revision=29763
2004-06-17 12:00:58 +00:00
Sachin Kumar f9504dbf49 Made corrections as suggested by Hari
svn path=/trunk/mcs/; revision=29762
2004-06-17 11:51:54 +00:00
Boris Kirzner 6878db0601 * DataColumnCollection.cs :
- Fix : Add() now delegates to Add(DataColumn).
  - autoIncrement list holds DataColumn objects, and not just column names.

svn path=/trunk/mcs/; revision=29760
2004-06-17 11:42:55 +00:00
Boris Kirzner edddb534ed * DataColumn.cs :
- AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
  - DefaultValue fixes. Default value from now on is also stored in special record in DataTable, so we're able to set default value for the column faster (typed).

svn path=/trunk/mcs/; revision=29759
2004-06-17 11:36:24 +00:00
Victor Vatamanescu dced06f7cb *** empty log message ***
svn path=/trunk/mcs/; revision=29758
2004-06-17 11:09:59 +00:00
Umadevi S a855975ad5 2004-06-17 Umadevi S <[email protected]>
* SqlTransaction.cs - isRolledBack reset in the internal constructor

svn path=/trunk/mcs/; revision=29757
2004-06-17 10:30:55 +00:00
Victor Vatamanescu 67178abef4 *** empty log message ***
svn path=/trunk/mcs/; revision=29756
2004-06-17 10:14:35 +00:00
Umadevi S 6c50e0cd4b 2004-06-17 Umadevi S <[email protected]>
* SqlTransaction.cs - fixed  multiple rollbacks being called causes invalidoperationexception

svn path=/trunk/mcs/; revision=29755
2004-06-17 08:41:54 +00:00
Boris Kirzner 351b27d360 * RecordCache.cs : Added CopyRecord mathod that copies single record from one table to another.
svn path=/trunk/mcs/; revision=29754
2004-06-17 08:39:07 +00:00
Boris Kirzner 08f68bf0c9 * Datacontainer.cs :
- Store and retreival of null and DBNull values reviewed.
  - Added GetInt64 to support AutoIncrement of DataColumn.
  - Added missing CopyValue method to BitDataContainer.
  - Added FillValues method to propagate single value to whole container.

svn path=/trunk/mcs/; revision=29753
2004-06-17 08:35:21 +00:00
Raja R Harinath 5a1eee2e6a revert wierd commit error
svn path=/trunk/mono/; revision=29752
2004-06-17 08:34:44 +00:00
Boris Kirzner a01de3070a * Comparison.cs - use 'as' to avoid NullReferenceExeption in casting.
svn path=/trunk/mcs/; revision=29751
2004-06-17 08:22:13 +00:00
Raja R Harinath 04ab2a3565 (PLATFORM_LIB): New. Possibly refer to ../os/libmonoos.la.
(bundle_obj): New conditional define.
(BUILT_SOURCES): Remove.
($(bundle_srcs)): Make parallel-make safe.
(libmonoruntime_la_LIBADD): Make unconditional.
(libmetadata_la_LIBADD): Make unconditional.  Refer to $(bundle_obj).
(libmetadata_la_SOURCES): Don't refer to $(bundle_srcs).

svn path=/trunk/mono/; revision=29750
2004-06-17 07:50:24 +00:00
Atsushi Eno 8b736d47b9 2004-06-17 Atsushi Enomoto <[email protected]>
* Misc.cs, RelaxngGrammar.cs, RelaxngPattern.cs, RelaxngReader.cs :
	  Added XmlResolver property to fix bug #60334.
	  Check incrrect recursion check that caused possible infinite loop.

svn path=/trunk/mcs/; revision=29749
2004-06-17 07:06:07 +00:00
Atsushi Eno bfa352dcab 2004-06-17 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : don't catch the exception.

svn path=/trunk/mcs/; revision=29748
2004-06-17 07:05:13 +00:00
Gert Driesen 30237d0377 * AspNetHostingPermission.cs: marked serialiable, renamed field to
match MS.NET
* AspNetHostingPermissionAttribute.cs: marked serializable, renamed
field to match MS.NET

svn path=/trunk/mcs/; revision=29745
2004-06-17 05:58:32 +00:00
Gert Driesen 2dd841e9d8 * AccessControlEntryType.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* AcknowledgeTypes.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* CryptographicProviderType.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* EncryptionAlgorithm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* EncryptionRequired.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* GenericAccessRights.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* HashAlgortihm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessagePriority.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessageQueueErrorCode.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* MessageQueueException.cs: marked serializable
* MessageQueuePermissionAccess.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionStatus.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionType.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageType.cs: fixed enum field values to correspond with MS.NET,
removed TODO
* StandardAccessRights.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* TrusteeType.cs: fixed enum field values to correspond with MS.NET,
removed TODO

svn path=/trunk/mcs/; revision=29741
2004-06-17 05:41:58 +00:00
Gert Driesen 75b1140307 * DirectoryServicesPermission.cs: renamed field to match MS.NET
* DirectoryServicesPermissionEntry.cs: fixed serialization
compatibility with MS.NET
* DirectoryServicesPermissionEntryCollection.cs: marked serializable,
added TODO for serialization compatibility
* ReferralChasingOption.cs: changed enum field values to match MS.NET

svn path=/trunk/mcs/; revision=29739
2004-06-17 05:08:24 +00:00
Atsushi Eno 1609b697b0 2004-06-17 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfo.cs : check if pattern array is empty or not. Now
	  icall fills them as possible empty list.

svn path=/trunk/mcs/; revision=29737
2004-06-17 04:29:50 +00:00
Atsushi Eno 4acb7f3eb2 2004-06-17 Atsushi Enomoto <[email protected]>
* culture-info-tables.h: It was inconsistent with the latest
	  supp info files.

svn path=/trunk/mono/; revision=29735
2004-06-17 04:08:33 +00:00
Sebastien Pouliot 00e39cb7f7 2004-06-16 Sebastien Pouliot <[email protected]>
* SignatureDescription.cs: Implemented .ctor(SecurityElement) using
	documentation from VS.NET 2005.

svn path=/trunk/mcs/; revision=29731
2004-06-17 01:45:31 +00:00
Sebastien Pouliot 7314c4cbd1 2004-06-16 Sebastien Pouliot <[email protected]>
* SignatureDescriptionTest.cs: Added missing [TestFixture] :( and
	cases for the previously undocumented .ctor(SecurityElement) - which
	is now, backwardly, documented in VS.NET 2005.

svn path=/trunk/mcs/; revision=29730
2004-06-17 01:34:44 +00:00
Atsushi Eno 78ee678180 2004-06-17 Atsushi Enomoto <[email protected]>
* DateTime.cs : Incorrect maxvalue comparison in ToUniversalTime().
	  Fixed ToLocalTime() as well, but it does check range for MinValue.

svn path=/trunk/mcs/; revision=29729
2004-06-17 01:28:32 +00:00
Atsushi Eno a431a616d1 2004-06-17 Atsushi Enomoto <[email protected]>
* DateTime.cs : Added overflow check in ToUniversalTime() and
	  ToLocalTime(). Fixed bug #60253.

svn path=/trunk/mcs/; revision=29726
2004-06-17 00:48:06 +00:00
Lluis Sanchez 4235983de0 * SoapServerFormatterSink.cs: Removed unneded method.
svn path=/trunk/mcs/; revision=29722
2004-06-16 23:19:51 +00:00
Lluis Sanchez add2bf8f69 * Process.cs: Added missing check in HasExited property.
svn path=/trunk/mcs/; revision=29721
2004-06-16 23:16:49 +00:00
Lluis Sanchez e51bb93c12 * ThreadTest.cs: Improved test.
svn path=/trunk/mcs/; revision=29719
2004-06-16 23:12:10 +00:00
Marek Safar edfced107c new test
svn path=/trunk/mcs/; revision=29709
2004-06-16 19:40:49 +00:00
Zoltan Varga 15a3a676e0 2004-06-17 Zoltan Varga <[email protected]>
* assembly.c (mono_assembly_open): Fix crash when the assembly can't
	be loaded.

svn path=/trunk/mono/; revision=29708
2004-06-16 19:09:00 +00:00
Zoltan Varga c6000e5bc5 2004-06-17 Zoltan Varga <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_Resume): Fix compilation
	with gcc 2.95.

svn path=/trunk/mono/; revision=29707
2004-06-16 19:03:51 +00:00
Gert Driesen 17e50e1260 * mono-api-diff.cs:
- check method/ctor parameters
  - use target attribute for attributes in key for attributes
    (if available). This allows us to differentiate between method
    and return type attributes for methods
  - check field values (for literal fields)
  - LoadExtraData was not always called, causing certain signature
    mismatches not to be reported
  - now also check charset, layout and serializability of
    types

* mono-api-info.cs:
  - check field values of literal fields
  - document parameters of method/ctors
  - also output attribute applied to return type of methods
  - output charset, layout and flag indicating whether type
    is serializable

svn path=/trunk/mcs/; revision=29706
2004-06-16 18:46:13 +00:00
Sebastien Pouliot 4a5457ed45 2004-06-16 Sebastien Pouliot <[email protected]>
* FloatingPointFormatter.cs: Implemented "R" format using Jon Skeet
	source code (with permission). Fix (biggest) part of bug #60110.
	http://www.yoda.arachsys.com/csharp/floatingpoint.html

svn path=/trunk/mcs/; revision=29704
2004-06-16 18:12:24 +00:00
Sebastien Pouliot 44f1f6c2f3 2004-06-16 Sebastien Pouliot <[email protected]>
* DoubleFormatterTest.cs: Splitted test case for #60110 in two - what
	works with Mono and what's not working.

svn path=/trunk/mcs/; revision=29698
2004-06-16 17:41:05 +00:00
Atsushi Eno 456bd7f06c 2004-06-16 Atsushi Enomoto <[email protected]>
* Manager.cs : If ecoding is not detected it always throws useless
	  null reference exception.

svn path=/trunk/mcs/; revision=29697
2004-06-16 17:39:53 +00:00
Marek Safar 19f5449e51 new test
svn path=/trunk/mcs/; revision=29696
2004-06-16 17:29:27 +00:00
Ben Maurer 58c3cc6ef9 *** empty log message ***
svn path=/trunk/mcs/; revision=29695
2004-06-16 17:13:41 +00:00
Jambunathan K 812007d231 Ported VBFile.cs, BaseVBFile.cs and InputVBFile.cs from Mainsoft's codebase.
Currently these files compile fine. That's it. All these files require
both review and testing.

svn path=/trunk/mcs/; revision=29694
2004-06-16 16:04:42 +00:00
Paolo Molaro 1569b0978d Wed Jun 16 18:23:45 CEST 2004 Paolo Molaro <[email protected]>
* threads.h, icall.c, object.c, threadpool.c, threads-types.h:
	cleaned up public header threads.h.

svn path=/trunk/mono/; revision=29692
2004-06-16 15:34:26 +00:00
Paolo Molaro 1c9ec4be0d Wed Jun 16 18:11:41 CEST 2004 Paolo Molaro <[email protected]>
* Makefile.am, *.c, *.h: more API cleanups.

svn path=/trunk/mono/; revision=29691
2004-06-16 15:24:15 +00:00
Sebastien Pouliot 5e0c65188f 2004-06-16 Sebastien Pouliot <[email protected]>
* DoubleFormatterTest.cs: Added new cases from bug reports 60110
	(roundtrip format) and 60111 (non-banker rounding).

svn path=/trunk/mcs/; revision=29690
2004-06-16 15:11:50 +00:00
Dick Porter 76c7a995de 2004-06-16 Dick Porter <[email protected]>
* timed-thread.c: Call the thread cleanup exit routine before taking
	the join mutex, because this could deadlock if another thread tries
	to join in the meantime.  This fixes the hang-at-exit problem seen
	on macos.

svn path=/trunk/mono/; revision=29689
2004-06-16 14:11:39 +00:00
Sachin Kumar ec81df777c Add license and copyright to all source files in System.Data
svn path=/trunk/mcs/; revision=29688
2004-06-16 13:52:11 +00:00
Paolo Molaro f5c646ed36 Updates fro API cleanups.
svn path=/trunk/mono/; revision=29687
2004-06-16 13:34:45 +00:00
Marek Safar 809f24fe47 new tests
svn path=/trunk/mcs/; revision=29685
2004-06-16 13:19:33 +00:00
Sanja Gupta ce7abd8456 ChangeLog: Updated ChangeLog.
gdipFunctions.cs: Modified Function signature for
        GdipSaveImageToDelegate_linux() method for saving tiff images
        to streams.
image.cs: Modified function call GdipSaveImageToDelegate_linux()
        with new signature.

svn path=/trunk/mcs/; revision=29684
2004-06-16 13:17:22 +00:00
Sachin Kumar ce459e6e2a Java code converted from Mainsoft
svn path=/trunk/mcs/; revision=29683
2004-06-16 12:52:47 +00:00
Paolo Molaro 99864ffc60 Updates for API cleanups.
svn path=/trunk/mono/; revision=29681
2004-06-16 11:49:22 +00:00
Paolo Molaro ee3e267c3a Wed Jun 16 14:33:22 CEST 2004 Paolo Molaro <[email protected]>
* Makefile.am: removed monosn from compilation.
	* appdomain.c, assembly.c, assembly.h, blob.h, class.c,
	debug-helpers.c, debug-mono-symfile.c, domain.c, icall.c,
	image.c, image.h, loader.c, marshal.c, metadata-internals.h,
	metadata.c, metadata.h, mono-config.c, mono-debug-debugger.c,
	mono-debug.c, object.c, opcodes.c, opcodes.h, pedump.c, process.c,
	reflection.c, reflection.h, verify.c: more API cleanups and fixes.

svn path=/trunk/mono/; revision=29680
2004-06-16 11:48:32 +00:00
Atsushi Eno e005caa547 2004-06-16 Atsushi Enomoto <[email protected]>
* Uri.cs : Fixed LocalPath. In that condition, path is always UNC.

svn path=/trunk/mcs/; revision=29679
2004-06-16 10:17:25 +00:00
Atsushi Eno 62bba9af32 2004-06-16 Atsushi Enomoto <[email protected]>
* Uri.cs : Reimplemented HexUnescape() (It was too broken to handle
	  multi-byte utf-8 characters.)

svn path=/trunk/mcs/; revision=29678
2004-06-16 10:05:44 +00:00
Atsushi Eno 376c149fd1 2004-06-16 Atsushi Enomoto <[email protected]>
* test-uri-list.txt, test-uri-props.txt, test-uri-props-manual.txt :
	  The autogenerated test contained Unix path case. Moved to manual.

svn path=/trunk/mcs/; revision=29677
2004-06-16 10:03:02 +00:00
Raja R Harinath 4977b50340 * library.make ($(makefrag),$(test_makefrag),$(btest_makefrag)):
Depend on library.make.
* executable.make ($(makefrag)): Depend on executable.make.

svn path=/trunk/mcs/; revision=29676
2004-06-16 08:31:51 +00:00
Gonzalo Paniagua Javier a87e673a2c uploaded windows beta3 installer
svn path=/trunk/mono/; revision=29675
2004-06-16 08:23:55 +00:00
Raja R Harinath fbe700235c (populate-runtime-subdir): Rewrite sanity check.
svn path=/trunk/mono/; revision=29674
2004-06-16 08:03:23 +00:00
Raja R Harinath 7bb66c3cac Fix typo
svn path=/trunk/mcs/; revision=29672
2004-06-16 07:40:20 +00:00
Atsushi Eno 75027362fd 2004-06-16 Atsushi Enomoto <[email protected]>
* Makefile.am : GAC path fixie for windows build.

svn path=/trunk/mono/; revision=29671
2004-06-16 07:12:08 +00:00
Atsushi Eno 536e1c2bef 2004-06-16 Atsushi Enomoto <[email protected]>
* library.make : Added GACDIR. Use cygpath -w on windows.

svn path=/trunk/mcs/; revision=29670
2004-06-16 07:10:24 +00:00
Sureshkumar T 15a71c6dbd 2004-06-16 Sureshkumar T <[email protected]>
* Added Odbc tests using MySql test database
        * New files:
                ChangeLog
                OdbcDataReaderTest.cs   - test suite for OdbcDataReader class.
                OdbcDataAdapterTest.cs  - test suite for OdbcDataAdapter class.

svn path=/trunk/mcs/; revision=29668
2004-06-16 06:34:10 +00:00
Sachin Kumar 15a49e8b92 Add license and copyright to all source files in System.Drawing
svn path=/trunk/mcs/; revision=29667
2004-06-16 06:32:39 +00:00
Sureshkumar T 78c2dbbc00 04-06-16 Sureshkumar T <[email protected]>
* Added standalone NUnit test cases for MySql db related tests.
        * Created sub-directory for System.Data.Odbc
        * New Files :
                MySqlTestBed.cs         - Base class for all MySql db based tests.
                                          contains instructions to run these tests.
                MySqlTestBed.dll.config - configurable parameters to this test suite.
                System.Data.Odbc/OdbcDataReaderTest.cs
                System.Data.Odbc/OdbcDataAdapterTest.cs

svn path=/trunk/mcs/; revision=29666
2004-06-16 06:31:24 +00:00
Raja R Harinath da525a5466 (MCS_DIRS, MCS_FILES, MONO_CSHARP_DEBUGGER_DIR, MONO_CSHARP_DEBUGGER_FILE):
Avoid automake conditional/+= problems.

svn path=/trunk/mono/; revision=29665
2004-06-16 06:23:48 +00:00
Sureshkumar T 1193274a28 2004-06-16 Sureshkumar T ([email protected])
* OdbcDataReader.cs: Added GetValue support for Sql Binary type to return byte array.
                             Implemented GetBytes method.
        * libodbc.cs       : Added enums, constants & imports for above fix.

svn path=/trunk/mcs/; revision=29664
2004-06-16 06:23:05 +00:00
Sachin Kumar d391f555ee Add license and copyright to all source files in System.Drawing
svn path=/trunk/mcs/; revision=29662
2004-06-16 06:11:12 +00:00
Raja R Harinath 1d73024b83 (bootstrap) [PLATFORM_WIN32]: Open code. Don't
build and populate net_2_0 profile.
(populate-runtime-subdir): Make into subroutine that takes list of
profiles to populate.
(faststrap): Update.

svn path=/trunk/mono/; revision=29661
2004-06-16 05:57:59 +00:00
Sachin Kumar cb6d808af9 Add license and copyright to all source files in System.Drawing
svn path=/trunk/mcs/; revision=29660
2004-06-16 05:38:50 +00:00
Raja R Harinath efcc851c41 Include prototype completely-untested 'make bootstrap' support for W32.
* Makefile.am (bootstrap): Define to fasterstrap for W32.
(MCS_DIRS, MCS_FILES): Don't refer to Mono.CSharp.Debugger in W32.
(tmpinst-dir): Change sub-make invoke to ...
(tmpinst-dir-contents): ... this.  Build 'mono.bat' in W32 instead
of 'mono' and 'mcs'.
($(tmpinst)/bin/mono.bat): New.

svn path=/trunk/mono/; revision=29659
2004-06-16 04:13:15 +00:00
Miguel de Icaza 9db358014d Lets hide this
svn path=/trunk/mono/; revision=29658
2004-06-16 03:44:07 +00:00
Miguel de Icaza 8851829869 Flush
svn path=/trunk/mono/; revision=29657
2004-06-16 03:33:51 +00:00
Ben Maurer ea6bf9e946 2004-06-16 Ben Maurer <[email protected]>
* ecore.cs (MethodGroupExpr.Name): Revert Martin's patch.
	The name needs to have the actual name of the method in order
	for other tests (such as the one in OverloadResolve for Invoke
	on a delegate) to work. As well, it does not really help
	error reporting because the method group had multiple methods.

svn path=/trunk/mcs/; revision=29656
2004-06-16 03:23:54 +00:00
Atsushi Eno 667f01181e 2004-06-16 Atsushi Enomoto <[email protected]>
* UriTest2.cs : LocalPath values should vary depending on the running
	  environment - so replace '/' and '\\' each other.

svn path=/trunk/mcs/; revision=29655
2004-06-16 02:52:59 +00:00
Atsushi Eno 9c0b280afa 2004-06-16 Atsushi Enomoto
mono.1 : unmanaged xslt is not officially supported now.

svn path=/trunk/mono/; revision=29654
2004-06-16 02:24:31 +00:00
Sebastien Pouliot 2c787153a4 2004-06-15 Sebastien Pouliot <[email protected]>
* FloatingPointFormatter.cs: Fixed ToString which doesn't use banker's
	rounding (which is the rounding provided by Math.Round). This fix bug
	#60111. The code (new Round methods) should be moved elsewhere (as it
	may also be required elsewhere) post Mono 1.0.

svn path=/trunk/mcs/; revision=29653
2004-06-16 01:54:52 +00:00
Gonzalo Paniagua Javier be31b0ce2d 2004-06-16 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/BaseCompiler.cs: try getting the Type from
	the cache before doing the real work. Remove temporary files right after
	successful compilation.

	* System.Web.Compilation/CachingCompiler.cs: added GetTypeFromCache.

	* System.Web.Compilation/UserControlCompiler.cs: nothing interesting.

	* System.Web.Compilation/WebServiceCompiler.cs: try getting the Type
	from the cache before doing anything else. Remove temp files on
	sucessful compilation.

	* System.Web.UI/SimpleWebHandlerParser.cs: implemented
	GetCompiledTypeFromCache. When we read the default directive, check the
	cache for the Type and if present, don't keep reading and store the
	type found.

	* System.Web.UI/WebHandlerParser.cs:
	* System.Web.UI/WebServiceParser.cs: try GetCompiledTypeFromCache
	before actually compiling.

svn path=/trunk/mcs/; revision=29652
2004-06-16 01:41:10 +00:00
Duncan Mak d6877df05d Add section for beta 3
svn path=/trunk/mono/; revision=29651
2004-06-16 01:25:22 +00:00
Jackson Harper 33420bc369 * assembly.c: Make locales lower case when searching the GAC for
assemblies. gacutil will always make locales lowercase when
	installing so this effectively makes them case insensitive.

svn path=/trunk/mono/; revision=29647
2004-06-15 21:56:11 +00:00
Sebastien Pouliot 89ed662547 2004-06-15 Sebastien Pouliot <[email protected]>
* crypto: Updated status for beta 3. Removed stuff that is better
	documented in monodoc.

svn path=/trunk/mono/; revision=29645
2004-06-15 20:05:00 +00:00
Jackson Harper 50662a8a48 * driver.cs: Ensure that the -gacdir ends with /lib if it does not
appened one. The reason for this is that the runtime expects it,
	and existing makefiles user -gacdir $(destdir)/$(libdir) so auto
	appending it without checking would break many things.

svn path=/trunk/mcs/; revision=29644
2004-06-15 19:27:56 +00:00
Miguel de Icaza 541a601b6e Revert Gert's patch until its fixed
svn path=/trunk/mcs/; revision=29642
2004-06-15 18:56:28 +00:00
Gert Driesen d356b3dd28 * SoapMessage.cs: fixed serialization compatibility with MS.NET
svn path=/trunk/mcs/; revision=29640
2004-06-15 18:42:46 +00:00
Gert Driesen 7f2ede041e * ObjectIDGenerator.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29639
2004-06-15 18:42:15 +00:00
Gert Driesen 6b001a6c75 * SoapHexBinary.cs: fixed serialization compatibility with MS.NET
* SoapQName.cs: fixed serialization compatibility with MS.NET

svn path=/trunk/mcs/; revision=29638
2004-06-15 18:41:20 +00:00
Gert Driesen 7e7c331dc6 * SynchronizationAttribute.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29637
2004-06-15 18:40:47 +00:00
Gert Driesen b301575dd6 * TransportHeaders.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29634
2004-06-15 18:40:13 +00:00
Gert Driesen fba8ec682a * RemotingTimeoutException.cs: added missing serialization ctor
* ServerException.cs: added missing serialization ctor

svn path=/trunk/mcs/; revision=29633
2004-06-15 18:39:20 +00:00
Sebastien Pouliot 09b1b14e35 2004-06-15 Sebastien Pouliot <[email protected]>
* ConvertTest.cs: Changed compare between Decimals (from a string
	compare to Decimal.Equals) because the issue wasn't related to the
	Convert class. See #60227 for more details.

svn path=/trunk/mcs/; revision=29632
2004-06-15 18:26:22 +00:00
Gert Driesen 4e2abb9d75 * ArrayWithOffset.cs: fixed GetOffset to return int instead of
object
* CONNECTDATA.cs: added missing MarshalAs attribute
* EXCEPINFO.cs: added missing MarshalAs attributes
* ITypeLibConverter.cs:
* ITypeLibImporterNotifySink.cs:
* Marshal.cs: added missing MarshalAs attributues, and missing
Out attributes
* TypeLibConverter.cs: added missing MarshalAs attributes
* UCOMIBindCtx.cs:
* UCOMIConnectionPoint.cs:
* UCOMIEnumConnectionPoints.cs:
* UCOMIEnumConnections.cs: added missing PreserveSig attributes,
added missing MarshalAs attributes
* UCOMIEnumMoniker.cs: added missing PreserveSig attributes,
added missing MarshalAs attributes
* UCOMIEnumString.cs: added missing PreserveSig attributes,
added missing MarshalAs attributes
* UCOMIMoniker.cs: added missing MarshalAs attributes
* UCOMIPersistFile.cs: added missing PreserveSig attribute,
added missing MarshalAs attributes
* UCOMIRunningObjectTable.cs: added missing MarshalAs attributes
* UCOMIStream.cs: added missing MarshalAs attributes
* UCOMITypeComp.cs: added missing MarshalAs attributes
* UCOMITypeInfo.cs: added missing MarshalAs attributes
* UCOMITypeLib.cs: added missing PreserveSig attributes, added
missing MarshalAs attributes

svn path=/trunk/mcs/; revision=29631
2004-06-15 18:23:16 +00:00
Gert Driesen 24f35b6a4b * MethodImplAttribute.cs: changed field name to fix serialization
compatibility with MS.NET

svn path=/trunk/mcs/; revision=29630
2004-06-15 18:21:14 +00:00
Gert Driesen bf01781d2e * MethodRental.cs: fixed value of JitOnDemand
svn path=/trunk/mcs/; revision=29629
2004-06-15 18:19:45 +00:00
Gert Driesen 678c1fac55 * AssemblyName.cs: added TODO for serialization
* Pointer.cs: fixed Box method to return object instead of
Pointer

svn path=/trunk/mcs/; revision=29628
2004-06-15 18:18:59 +00:00
Gert Driesen b11894b5c3 * StackTrace.cs: added TODO for serialization
* StackFrame.cs: added TODO for serialization

svn path=/trunk/mcs/; revision=29627
2004-06-15 18:03:10 +00:00
Gert Driesen 7d73431646 * CaseInsensitiveComparer.cs: added TODO for serialization
* CaseInsensitiveHashCodeProvider.cs: added TODO for serialization
* SortedList.cs: added TODO for serialization
* Stack.cs: added TODO for serialization

svn path=/trunk/mcs/; revision=29626
2004-06-15 18:02:16 +00:00
Sebastien Pouliot 5f765610b8 2004-06-15 Sebastien Pouliot <[email protected]>
* Decimal.cs: Fixed scale after Round (a different scale is correct
	from a math point of view but affect the string representation of the
	value). Note: other operations also have scale problems!
	* DecimalFormatter.cs: Fixed FormatGeneral to match Fx 1.1 output.

svn path=/trunk/mcs/; revision=29625
2004-06-15 18:00:42 +00:00
Gert Driesen 8fe65ae3dc * DateTimeFormatInfo.cs: added TODO for serialization
* GregorianCalendar.cs:: added TODO for serialization
* HebrewCalendar.cs: added TODO for serialization
* HijriCalendar.cs: added TODO for serialization
* JapaneseCalendar.cs: added TODO for serialization
* JulianCalendar.cs: added TODO for serialization
* KoreanCalendar.cs: added TODO for serialization
* TaiwanCalendar.cs: added TODO for serialization
* ThaiBuddhistCalendar.cs: added TODO for serialization

svn path=/trunk/mcs/; revision=29624
2004-06-15 17:56:56 +00:00
Gert Driesen b26ef71adf * Evidence.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29623
2004-06-15 17:55:41 +00:00
Gert Driesen 2eec8e2a38 * Thread.cs: changed return type of VolatileRead to UIntPtr
* ThreadPool.cs: set return type of SetMinThreads to bool

svn path=/trunk/mcs/; revision=29622
2004-06-15 17:55:07 +00:00
Gert Driesen b447caed96 * ASCIIEncoding.cs: added TODO for serialization
* StringBuilder.cs: added TODO for serialization
* UnicodeEncoding.cs: added TODO for serialization
* UTF7Encoding.cs: added TODO for serialization
* UTF8Encoding.cs: added TODO for serialization

svn path=/trunk/mcs/; revision=29621
2004-06-15 17:53:18 +00:00
Gert Driesen 2acc2aed04 * XmlSyntaxException.cs: added missing serialization ctor
* SecurityException.cs: fixed typo

svn path=/trunk/mcs/; revision=29620
2004-06-15 17:52:25 +00:00
Gert Driesen 0d5fadd9d0 * MemoryStream.cs: added TODO for serialization
* StringWriter.cs: added TODO for serialization
* TextWriter.cs: fixed CoreNewLine to return char[]

svn path=/trunk/mcs/; revision=29619
2004-06-15 17:51:32 +00:00
Gert Driesen 10a4773f38 * AppDomainSetup.cs: added TODO for serialization
* ExecutionEngineException.cs: added missing serialization ctor
* InvalidProgramException.cs: added missing serialization ctor
* MulticastNotSupportedException.cs: added missing serialization ctor
* ObsoleteAttribute.cs: fixed serialization compatibility with MS.NET
* Random.cs: fixed serialization compatibility with MS.NET

svn path=/trunk/mcs/; revision=29618
2004-06-15 17:47:32 +00:00
Dick Porter 1e44fbf47f 2004-06-15 Dick Porter <[email protected]>
* configure.in: Check for struct ip_mreqn and struct ip_mreq on
	windows too.  Fixes bug 55040.

svn path=/trunk/mono/; revision=29613
2004-06-15 16:23:59 +00:00
Sebastien Pouliot 136d70a9fa 2004-06-15 Sebastien Pouliot <[email protected]>
* DecimalTest.cs: Added test to ensure we keep/output the decimals
	precision (#59425). Added tests to see how many decimals are supported
	in "G" before switching to "E".

svn path=/trunk/mcs/; revision=29610
2004-06-15 16:21:23 +00:00
Lluis Sanchez 3c1cf1969b * locales.c, threadpool.c: use mono_monitor_enter instead of mono_monitor_try_enter.
* monitor.c: New method mono_monitor_try_enter_internal, which takes a new
	  parameter which allows to choose whether the wait can be interrupted or
	  not. Also added the method mono_monitor_enter(), which locks the monitor
	  using an infinite wait and without allowing interruption.
	  In the Monitor.Enter and Wait icalls, retry the lock if the wait is
	  interrupted.
	* object.h: Added new fields in MonoThread. suspend_event holds the event
	  used to susped/resume the thread. synch_lock is the lock object to use for
	  modifying the thread state.
	* threads.c: Use the new synch_lock object for locking, instead of "this",
	  which can generate deadlocks.
	  Moved thread state change in Thread.Sleep and Thread.Join from managed
	  to unmanaged code. This avoids a deadlock when the thread was suspended
	  just after acquiring the thread lock.
	  In general, use mono_monitor_enter instead of mono_monitor_try_enter.
	  Implemented Thread.Suspend using an event instead of ThreadSuspend,
	  which is not fully implemented in the io-layer.
	* socket-io.c: Only try IPv6 DNS lookup if IPv4 fails.

svn path=/trunk/mono/; revision=29609
2004-06-15 16:20:06 +00:00
Lluis Sanchez 1ac40a0de2 * Thread.cs: Added new fields to keep sync with MonoThread.
Removed state changes in Sleep and Join. The state change is now done
	  in the icall. For accessing to internal fields lock with synch_lock
	  instead of this, which can be a source of deadlocks.

svn path=/trunk/mcs/; revision=29605
2004-06-15 15:56:24 +00:00
Paolo Molaro 4b20312cfb Tue Jun 15 18:34:21 CEST 2004 Paolo Molaro <[email protected]>
* Makefile.am, monitor.h, object.h, threadpool.c, threadpool.h,
	threads-types.h: more API cleanups.

svn path=/trunk/mono/; revision=29604
2004-06-15 15:45:03 +00:00
Sachin Kumar 7a2e814372 Conversion.cs: Implemented few type conversion methods
svn path=/trunk/mcs/; revision=29602
2004-06-15 15:29:58 +00:00
Paolo Molaro b90f596a18 Tue Jun 15 16:40:19 CEST 2004 Paolo Molaro <[email protected]>
* domain-internals.h, Makefile.am, appdomain.c, appdomain.h,
	domain.c, gc.c, icall.c, mono-debug.c, object.c, reflection.c,
	threadpool.c, threads.c: first pass at the exported API cleanup.

svn path=/trunk/mono/; revision=29601
2004-06-15 13:55:28 +00:00
Paolo Molaro 5e05daf849 Tue Jun 15 16:36:51 CEST 2004 Paolo Molaro <[email protected]>
* mini.c: make sure the needed wrappers are compiled, too, with
	precomp.

svn path=/trunk/mono/; revision=29600
2004-06-15 13:47:13 +00:00
Paolo Molaro d4777f804a Tue Jun 15 15:29:47 CEST 2004 Paolo Molaro <[email protected]>
* icall.c: fix signatures of some VolatileRead and VolatileWrite icalls.

svn path=/trunk/mono/; revision=29597
2004-06-15 12:40:35 +00:00
Paolo Molaro 0ce7a42525 Tue Jun 15 15:15:44 CEST 2004 Paolo Molaro <[email protected]>
* Type.cs: removed unused (and non-existing) icall type_is_instance.

svn path=/trunk/mcs/; revision=29596
2004-06-15 12:34:47 +00:00
Sebastien Pouliot e02b362573 2004-06-15 Sebastien Pouliot <[email protected]>
* MemberInfo.cs: Changed constructor from internal to protected.

svn path=/trunk/mcs/; revision=29595
2004-06-15 11:12:48 +00:00
Lluis Sanchez 1c38fe8835 * Timer.cs: The timer thread must be a background thread.
This fixes #58816.

svn path=/trunk/mcs/; revision=29594
2004-06-15 10:15:00 +00:00
Lluis Sanchez 6f79c6d07e * Timer.cs: Don't abort the thread if Dispose() is called from the runner
thread.

svn path=/trunk/mcs/; revision=29593
2004-06-15 09:51:58 +00:00
Atsushi Eno 15596d15bd 2004-06-15 Atsushi Enomoto <[email protected]>
* DataSetTest.cs : Added regression for #53959.

svn path=/trunk/mcs/; revision=29592
2004-06-15 09:51:54 +00:00
Atsushi Eno a657ff5bba 2004-06-15 Atsushi Enomoto <[email protected]>
* DataSet.cs : children of non-root rows were not properly written.
	  Fixed bug #53959.

svn path=/trunk/mcs/; revision=29591
2004-06-15 09:50:39 +00:00
Marek Safar de4a77467d 2004-06-15 Marek Safar <[email protected]>
* expression.cs (StackAlloc.DoReSolve): Added test for
	negative parameter (CS0247).

svn path=/trunk/mcs/; revision=29590
2004-06-15 09:44:07 +00:00
Jambunathan K 44bc84e25c Added FinancialTest.cs to the list of test files
svn path=/trunk/mcs/; revision=29589
2004-06-15 08:52:37 +00:00
Sanja Gupta 82ed3e2366 ChangeLog: Update ChangeLog.
gdipFunctions.cs: Added delegate and StreamHelper functions, Close
        and Size, required by TIFFCodec. Modifed Function signature for
        GdipLoadImageFromDelegate_linux() method.
image.cs: Modified function call GdipLoadImageFromDelegate_linux()
        with new signature.

svn path=/trunk/mcs/; revision=29587
2004-06-15 08:39:16 +00:00
Marek Safar 78c8381095 2004-06-15 Marek Safar <[email protected]>
Fix bug #59792
	* class.cs: (Event.DelegateMethod.Emit): Added synchronization flag.

svn path=/trunk/mcs/; revision=29586
2004-06-15 07:30:43 +00:00
Jambunathan K e64fc9d0a1 Trivial changes to ExceptionUtils.cs
svn path=/trunk/mcs/; revision=29585
2004-06-15 07:08:14 +00:00
Marek Safar 71f584929d 2004-06-15 Marek Safar <[email protected]>
Fix bug #59781
	* expression.cs: (Binary.DoNumericPromotions): Added conversion for
	ulong.

svn path=/trunk/mcs/; revision=29584
2004-06-15 07:07:46 +00:00
Jambunathan K 50f7d0dda4 Fixed a minor bug in Information.LBound() and Information.UBound()
svn path=/trunk/mcs/; revision=29583
2004-06-15 06:52:05 +00:00
Jambunathan K 5efbd856c9 Added back Conversion.cs !
svn path=/trunk/mcs/; revision=29582
2004-06-15 06:20:13 +00:00
Jambunathan K f8098cad73 Accidentally removed Conversion.cs from CVS. The file will be added back
very soon !

svn path=/trunk/mcs/; revision=29581
2004-06-15 06:18:46 +00:00
Gert Driesen 32de3952e4 * OleDbLiteral.cs: changed enum field values to match MS.NET
* OleDbType.cs: changed enum field values to match MS.NET

svn path=/trunk/mcs/; revision=29580
2004-06-15 05:01:54 +00:00
Gert Driesen 82c7d52cc9 * OdbcDataReader.cs: changed GetData method to return IDataReader
to match MS.NET

svn path=/trunk/mcs/; revision=29579
2004-06-15 05:01:26 +00:00
Gonzalo Paniagua Javier e649fb3261 2004-06-15 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationSettings.cs: allow empty <configSections>.

svn path=/trunk/mcs/; revision=29578
2004-06-15 04:59:43 +00:00
Gonzalo Paniagua Javier cee0aa4219 2004-06-15 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: allow empty <configSections>.

svn path=/trunk/mcs/; revision=29577
2004-06-15 04:59:18 +00:00
Anirban Bhattacharjee 9ad4888182 2004-05-15 Anirban Bhattacharjee <[email protected]>
* FinancialTest.cs: Tests for Financial class

svn path=/trunk/mcs/; revision=29576
2004-06-15 04:36:06 +00:00
Anirban Bhattacharjee 50723a3752 2004-06-15 Anirban Bhattacharjee <[email protected]>
* VBUtils.txt: Exception messages for Financial functions by Rob Tillie

svn path=/trunk/mcs/; revision=29575
2004-06-15 04:30:39 +00:00
Jackson Harper ec934f4aad * ilasm.exe.sources: Add FileRef.cs
svn path=/trunk/mcs/; revision=29574
2004-06-15 04:12:40 +00:00
Jackson Harper a8b72380fa * ILParser.jay: Add file refs.
svn path=/trunk/mcs/; revision=29572
2004-06-15 04:11:10 +00:00
Jackson Harper 993802a9c6 * CodeGen.cs: Allow file refs to be added.
* FileRef.cs: New file - represents a file ref.

svn path=/trunk/mcs/; revision=29571
2004-06-15 04:08:41 +00:00
Anirban Bhattacharjee 7baeea3dc9 2004-06-15 Anirban Bhattacharjee <[email protected]>
* Financial.cs: Complete implementation by Rob Tillie

svn path=/trunk/mcs/; revision=29570
2004-06-15 04:02:42 +00:00
Gonzalo Paniagua Javier 7a86616f87 2004-06-15 Gonzalo Paniagua Javier <[email protected]>
* TraceData.cs: fixed <br> output. Closes bug #60181.

svn path=/trunk/mcs/; revision=29569
2004-06-15 03:58:43 +00:00
Gonzalo Paniagua Javier 6cf50976b3 2004-06-15 Gonzalo Paniagua Javier <[email protected]>
* DefaultProxyHandler.cs: removed Console.WriteLine's.

svn path=/trunk/mcs/; revision=29568
2004-06-15 03:55:58 +00:00
Gonzalo Paniagua Javier 668a710f63 aded a few default clientTargets
svn path=/trunk/mono/; revision=29567
2004-06-15 03:55:04 +00:00
Gonzalo Paniagua Javier d7dc90b03a 2004-06-15 Gonzalo Paniagua Javier <[email protected]>
* Environment.cs: use internalGetHome instead of getting "HOME" as
	that variable may not be defined.

svn path=/trunk/mcs/; revision=29566
2004-06-15 03:54:22 +00:00
Gonzalo Paniagua Javier 3ed3fd9e1f 2004-06-15 Gonzalo Paniagua Javier <[email protected]>
* icall.c: added internalGetHome.

svn path=/trunk/mono/; revision=29565
2004-06-15 03:54:15 +00:00
Jackson Harper 4cce9d7fd2 flush
svn path=/trunk/mcs/; revision=29563
2004-06-15 02:57:07 +00:00
Jackson Harper 03abbb0d27 * PEAPI.cs: Add IExternRef interface and modify sigs so it can be
used. So we can easily add stuff to modules and assemblies. Fix
	the nometadata flag, it should be set when there is NO metadata
	not when there is metadata.

svn path=/trunk/mcs/; revision=29562
2004-06-15 02:51:00 +00:00
Sebastien Pouliot 63a9ea5d17 2004-06-14 Sebastien Pouliot <[email protected]>
* EnumBuilderTest.cs: Fixed typos so the test is reported in
	alphabetical order by NUnit.

svn path=/trunk/mcs/; revision=29561
2004-06-15 01:28:15 +00:00
Jackson Harper 6431f5fa76 * ILParser.jay: Add module refs, allow them to be referenced.
svn path=/trunk/mcs/; revision=29560
2004-06-15 00:51:07 +00:00
Jackson Harper 66bfaaa6f7 * CodeGen.cs: Allow adding module refs.
* ExternTable.cs: Add ExternModule refs.
	* ExternTypeRef.cs: Take an ExternRef which can be either an
	assmebly ref or a module ref.

svn path=/trunk/mcs/; revision=29559
2004-06-15 00:50:39 +00:00
Lluis Sanchez 142390ed0a * TimerTest.cs: Added more tests.
* ThreadTest.cs: Added new tests for Thread.Suspend.

svn path=/trunk/mcs/; revision=29556
2004-06-14 21:49:38 +00:00
Lluis Sanchez 0036436ef6 * RemotingConfiguration.cs: Read application name from configuraation file.
svn path=/trunk/mcs/; revision=29555
2004-06-14 21:41:02 +00:00
Sebastien Pouliot 9abca3e9dd 2004-06-14 Sebastien Pouliot <[email protected]>
* NameObjectCollectionBase.cs: Now use IComparer to compare keys. This
	completes a TODO and fix Remove in NameValueCollection.

svn path=/trunk/mcs/; revision=29550
2004-06-14 20:43:18 +00:00
Sebastien Pouliot 0bae4d8bb1 2004-06-14 Sebastien Pouliot <[email protected]>
* NameValueCollectionTest.cs: Added test for remove (case insensitive).

svn path=/trunk/mcs/; revision=29545
2004-06-14 20:09:06 +00:00
Sebastien Pouliot 55b671bb85 2004-06-14 Sebastien Pouliot <[email protected]>
* Hashtable.cs: Compare index and length in CopyTo only when length > 0.

svn path=/trunk/mcs/; revision=29538
2004-06-14 19:53:00 +00:00
Sebastien Pouliot 80ccb2b7d0 2004-06-14 Sebastien Pouliot <[email protected]>
* HashtableTest.cs: Added new case to CopyTo(Array,int) an empty
	hashtable.

svn path=/trunk/mcs/; revision=29536
2004-06-14 19:30:21 +00:00
Sebastien Pouliot 95d1497d5f 2004-06-14 Sebastien Pouliot <[email protected]>
* HybridDictionary.cs: Fixed Contains for null argument (again). Return
	false when dictionary is empty or else throw an ArgumentNullException.
	* NameValueCollection.cs: Added missing Rank check in CopyTo (Array,
	int).

svn path=/trunk/mcs/; revision=29534
2004-06-14 19:12:47 +00:00
Sebastien Pouliot 4c43e39933 2004-06-14 Sebastien Pouliot <[email protected]>
* HybridDictionaryTest.cs: Added cases with an non-empty dictionary.
	* NameValueCollectionTest.cs: Added tests for CopyTo(Array,int).

svn path=/trunk/mcs/; revision=29533
2004-06-14 19:06:10 +00:00
Sebastien Pouliot 8eef9e5f2a 2004-06-14 Sebastien Pouliot <[email protected]>
* ResourceReaderTest.cs: Un-ignored an old test case (probably fixed a
	long time ago). Converted tests to NUnit 2.x format to be more
	specific when checking exceptions.

svn path=/trunk/mcs/; revision=29530
2004-06-14 17:43:17 +00:00
Gert Driesen 84bbaf253d * DisplayMode.cs: changed enum field values to match MS.NET
svn path=/trunk/mcs/; revision=29528
2004-06-14 17:01:18 +00:00
Gert Driesen 1c052d21b8 * XmlSerializationWriter.cs: changed signature of protected method
FromByteArrayBase64 to match MS.NET

svn path=/trunk/mcs/; revision=29527
2004-06-14 17:00:12 +00:00
Gert Driesen 4004241887 * SchemaReference.cs: corrected namespace
* SoapBinding.cs: corrected namespace

svn path=/trunk/mcs/; revision=29526
2004-06-14 16:59:10 +00:00
nobody 4e4824afab This commit was manufactured by cvs2svn to create branch 'SAVANNAH_CVS'.
svn path=/branches/SAVANNAH_CVS/mcs/; revision=6844
2002-08-21 10:08:33 +00:00
4706 changed files with 136052 additions and 17745 deletions

No files matched your search

+81
View File
@@ -1,3 +1,84 @@
2004-06-29 Raja R Harinath <[email protected]>
Atsushi Enomoto <[email protected]>
* runtime/net_1_1/Makefile.am (GAC_ROOT_DIR): Renamed from GAC_DIR.
(GAC_DIR): New define that doesn't include $(DESTDIR).
(install-data-local,uninstall-local): Use them. Use in-tree mono
runtime, not the installed one.
2004-06-29 Raja R Harinath <[email protected]>
* runtime/Makefile.am (gmcs_exe): New. Set only if not W32.
(monotwo_DATA): Use it.
From Atsushi Enomoto.
2004-06-24 Raja R Harinath <[email protected]>
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Put back
ICSharpCode.SharpZipLib, not that it has a different version.
2004-06-24 Raja R Harinath <[email protected]>
* Makefile.am (MCS_DIRS, MCS_FILES): Add back Mono.CSharp.Debugger.
(tmpinst-dir-contents, $(tmpinst)/bin/mono.bat): Remove mono.bat
in W32. Use 'mono' and 'mcs' in W32 too.
(bootstrap) [PLATFORM_WIN32]: Back to single stage bootstrap.
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Don't mention
nunit.*, IBM.Data.DB2, ICSharpCode.SharpZipLib.
Fix for #60443, the GAC .DLL-Hell.
2004-06-22 Raja R Harinath <[email protected]>
* Makefile.am (bootstrap) [PLATFORM_WIN32]: Make two-stage.
2004-06-18 Jackson Harper <[email protected]>
* man/mono.1: Add MONO_LOG_LEVEL and MONO_LOG_MASK. Add
instructions on setting multiple mask values.
Fri Jun 18 19:39:09 CEST 2004 Paolo Molaro <[email protected]>
* Makefile.am: process data before runtime, so the config file is
installed and gacutil has a chance to work (finding symlink).
2004-06-18 Raja R Harinath <[email protected]>
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Test if files exist in the mcs/ tree before creating symlinks.
Remove symlinks before creating them again.
* runtime/net_1_1/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.
* runtime/net_2_0/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.
2004-06-18 Raja R Harinath <[email protected]>
* scripts/Makefile.am (REWRITE): New. Common rewriting 'sed' command.
(bin_SCRIPTS): Unify all the script generating rules into one.
2004-06-16 Raja R Harinath <[email protected]>
* Makefile.am (bootstrap) [PLATFORM_WIN32]: Open code. Don't
build and populate net_2_0 profile.
(populate-runtime-subdir): Make into subroutine that takes list of
profiles to populate.
(faststrap): Update.
(MCS_DIRS, MCS_FILES, MONO_CSHARP_DEBUGGER_DIR, MONO_CSHARP_DEBUGGER_FILE):
Avoid automake conditional/+= problems.
(populate-runtime-subdir): Rewrite sanity check.
2004-06-16 Raja R Harinath <[email protected]>
Include prototype completely-untested 'make bootstrap' support for W32.
* Makefile.am (bootstrap): Define to fasterstrap for W32.
(MCS_DIRS, MCS_FILES): Don't refer to Mono.CSharp.Debugger in W32.
(tmpinst-dir): Change sub-make invoke to ...
(tmpinst-dir-contents): ... this. Build 'mono.bat' in W32 instead
of 'mono' and 'mcs'.
($(tmpinst)/bin/mono.bat): New.
2004-06-15 Dick Porter <[email protected]>
* configure.in: Check for struct ip_mreqn and struct ip_mreq on
windows too. Fixes bug 55040.
Mon Jun 14 18:38:34 CEST 2004 Paolo Molaro <[email protected]>
+50 -16
View File
@@ -1,11 +1,11 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
SUBDIRS = @libgc_dir@ mono @ikvm_jni_dir@ docs runtime scripts man data samples support web
SUBDIRS = $(libgc_dir) mono $(ikvm_jni_dir) docs data runtime scripts man samples support web
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = libgc mono ikvm-jni docs runtime scripts man data samples support web tools
DIST_SUBDIRS = libgc mono ikvm-jni docs data runtime scripts man samples support web tools
EXTRA_DIST= mono.pc.in mono.spec.in mint.pc.in
@@ -28,6 +28,7 @@ mcs_topdir=$(top_srcdir)/../mcs
.PHONY: bootstrap faststrap fasterstrap bootstrap-clean bootstrap-check get-monolite-latest monolite-bootstrap
.PHONY: tmpinst-dir tmpinst-mcs-basic-build tmpinst-mcs-short-build tmpinst-mcs-full-build tmpinst-monolite
.PHONY: mono-do-runtime-only mcs-do-basic-build mcs-do-short-build mcs-do-full-build mcs-do-clean-profiles mcs-do-run-test
.PHONY: populate-runtime-subdir
if USE_JIT
mono_runtime = mono/mini/mono
@@ -51,27 +52,28 @@ MCS_FILES = $(MCS_BASIC_FILES) \
tmpinst = _tmpinst
if PLATFORM_WIN32
populate_profiles = default:net_1_1
# bootstraps using the .NET C# compiler
bootstrap: tmpinst-dir mono-do-runtime-only
$(MAKE) fasterstrap
else
populate_profiles = default:net_1_1 net_2_0:net_2_0
bootstrap: tmpinst-mcs-basic-build mono-do-runtime-only
$(MAKE) tmpinst-mcs-short-build
$(MAKE) fasterstrap
endif
faststrap: tmpinst-mcs-short-build
$(MAKE) mono-do-runtime-only
$(MAKE) fasterstrap
.PHONY: populate-runtime-subdir
## *** warning ***: tested only with GNU make
populate-runtime-subdir:
srcdir=`cd $(srcdir) && pwd`; tmpinst=`pwd`/$(tmpinst) ; \
PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
cd $(mcs_topdir) \
&& $(MAKE) PROGRAM_INSTALL_DIR=$$srcdir/runtime LIBRARY_INSTALL_DIR=$$srcdir/runtime/net_1_1 prefix=$$tmpinst/prefix PROFILE=default install \
&& $(MAKE) PROGRAM_INSTALL_DIR=$$srcdir/runtime LIBRARY_INSTALL_DIR=$$srcdir/runtime/net_2_0 prefix=$$tmpinst/prefix PROFILE=net_2_0 install
test -z "`find $(tmpinst)/prefix -name '*.dll'`"
test -z "`find $(tmpinst)/prefix -name '*.exe'`"
set fnord `find $(tmpinst)/prefix -type f | wc -l` ; test "$$2" = 9
rm -rf $(tmpinst)/prefix
fasterstrap: tmpinst-mcs-full-build
$(MAKE) populate-runtime-subdir
$(MAKE)
@@ -139,9 +141,39 @@ mcs-do-run-test: tmpinst-dir
PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
cd $(mcs_topdir) && $(MAKE) PROFILE=default run-test
populate-runtime-subdir:
test -n '$(populate_profiles)'
@srcdir=`cd $(srcdir) && pwd`; tmpinst=`pwd`/$(tmpinst) ; \
PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
for profile in $(populate_profiles); do \
( set fnord `echo $$profile | sed 's,:, ,g'` && \
echo "cd $(mcs_topdir) && $(MAKE) PROGRAM_INSTALL_DIR=$$srcdir/runtime PROFILE=$$2 LIBRARY_INSTALL_DIR=$$srcdir/runtime/$$3 prefix=$$tmpinst/prefix install" && \
cd $(mcs_topdir) && \
$(MAKE) PROGRAM_INSTALL_DIR=$$srcdir/runtime PROFILE=$$2 LIBRARY_INSTALL_DIR=$$srcdir/runtime/$$3 prefix=$$tmpinst/prefix install ) || exit 1 ; \
done
find $(tmpinst)/prefix -type f -path '*/jay*' -exec rm -f '{}' ';'
test -z "`find $(tmpinst)/prefix -type f -print`"
rm -rf $(tmpinst)/prefix
tmpinst-dir:
mkdir -p $(tmpinst) $(tmpinst)/bin $(tmpinst)/lib $(tmpinst)/etc/mono
$(MAKE) $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/etc/mono/machine.config
$(MAKE) tmpinst-dir-contents
tmpinst-dir-contents: $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/etc/mono/machine.config
if PLATFORM_WIN32
$(tmpinst)/bin/mono: $(srcdir)/Makefile.am
echo '#! /bin/sh' > $@
echo 'builddir="'`pwd`'"; win_builddir="'`cygpath -w -a .`'"' >> $@
echo 'tmpinst="$$win_builddir\\$(tmpinst)"' >> $@
echo 'if test -z "$$MONO_PATH" ; then MONO_PATH="$$tmpinst\\lib"; else MONO_PATH="$${MONO_PATH};$$tmpinst\\lib" ; fi' >> $@
echo 'MONO_CFG_DIR="$$tmpinst\\etc"' >> $@
echo 'export MONO_PATH MONO_CFG_DIR' >> $@
echo 'exec "$$builddir/libtool" --mode=execute "$$builddir/mono.exe" "$$@"' >> $@
chmod +x $@
else
$(tmpinst)/bin/mono: $(srcdir)/Makefile.am
echo '#! /bin/sh' > $@
@@ -152,6 +184,8 @@ $(tmpinst)/bin/mono: $(srcdir)/Makefile.am
echo 'exec "$$builddir/libtool" --mode=execute "$$builddir/$(mono_runtime)" --config "$$builddir/data/config" "$$@"' >> $@
chmod +x $@
endif
$(tmpinst)/bin/mcs: $(srcdir)/Makefile.am
(t=`cd $(tmpinst) && pwd`; echo '#! /bin/sh'; echo 'exec "'"$$t/bin/mono"'" "'"$$t/lib/mcs.exe"'" "$$@"') > $@
chmod +x $@
+45 -5
View File
@@ -1,7 +1,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,0.96)
AM_INIT_AUTOMAKE(mono,1.0)
AM_MAINTAINER_MODE
AC_PROG_LN_S
@@ -908,6 +908,34 @@ else
jdk_headers_found=no
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
dnl *********************************
dnl *** Check for struct ip_mreqn ***
dnl *********************************
AC_MSG_CHECKING(for struct ip_mreqn)
AC_TRY_COMPILE([#include <ws2tcpip.h>], [
struct ip_mreqn mreq;
mreq.imr_address.s_addr = 0;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_STRUCT_IP_MREQN)
], [
# We'll just have to try and use struct ip_mreq
AC_MSG_RESULT(no)
AC_MSG_CHECKING(for struct ip_mreq)
AC_TRY_COMPILE([#include <ws2tcpip.h>], [
struct ip_mreq mreq;
mreq.imr_interface.s_addr = 0;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_STRUCT_IP_MREQ)
], [
# No multicast support
AC_MSG_RESULT(no)
])
])
fi
dnl socklen_t check
@@ -1048,6 +1076,7 @@ ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=no
LIBC="libc.so.6"
INTL="libc.so.6"
jit_wanted=false
case "$host" in
@@ -1072,12 +1101,15 @@ case "$host" in
JIT_SUPPORTED=yes
ACCESS_UNALIGNED="no"
LIBC="libc.so"
INTL="libintl.so"
jit_wanted=true
;;
# alpha*-*-linux* | alpha*-*-osf*)
# TARGET=ALPHA;
# ACCESS_UNALIGNED="no"
# ;;
alpha*-*-linux* | alpha*-*-osf*)
TARGET=ALPHA;
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=no
arch_target=alpha;
;;
# ia64-*-linux* | ia64-*-hpux*)
# TARGET=IA64;
# arch_target=ia64;
@@ -1097,6 +1129,11 @@ case "$host" in
LIBC="libc.sl"
ACCESS_UNALIGNED="no"
;;
hppa*linux*)
TARGET=HPPA;
arch_target=hppa;
ACCESS_UNALIGNED="no"
;;
macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | \
powerpc-*-sysv* | powerpc-*-darwin*)
TARGET=POWERPC;
@@ -1141,9 +1178,11 @@ case "$host" in
powerpc-*-darwin*)
libsuffix=".dylib"
LIBC="libc.dylib"
INTL="libintl.dylib"
;;
*-*-*netbsd*)
LIBC="libc.so.12"
INTL="libintl.so.0"
;;
esac
AC_SUBST(libsuffix)
@@ -1201,6 +1240,7 @@ AM_CONDITIONAL(HPPA, test x$TARGET = xHPPA)
AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
AC_SUBST(LIBC)
AC_SUBST(INTL)
AC_SUBST(arch_target)
AC_SUBST(CFLAGS)
-1
View File
@@ -2,4 +2,3 @@ Makefile.in
Makefile
config
.cvsignore
browscap.ini
+1 -6
View File
@@ -3,15 +3,10 @@ monodir = $(sysconfdir)/mono
EXTRA_DIST = config.in \
machine.config \
DefaultWsdlHelpGenerator.aspx \
browscap.ini.gz
browscap.ini
mono_DATA = config \
machine.config \
DefaultWsdlHelpGenerator.aspx \
browscap.ini
CLEANFILES = browscap.ini
browscap.ini: browscap.ini.gz
gunzip -c $^ > $@
+13082
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.
+1
View File
@@ -1,6 +1,7 @@
<configuration>
<dllmap dll="cygwin1.dll" target="@LIBC@" />
<dllmap dll="libc" target="@LIBC@" />
<dllmap dll="libintl" target="@INTL@" />
<dllmap dll="libxslt.dll" target="libxslt@libsuffix@" />
<dllmap dll="libmySQL.dll" target="libmysqlclient@libsuffix@" />
<dllmap dll="odbc32.dll" target="libodbc@libsuffix@" />
+6
View File
@@ -152,6 +152,12 @@
enableSessionState="true"
autoEventWireup="true"
validateRequest="true" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="downlevel" userAgent="Unknown" />
</clientTarget>
</system.web>
<system.runtime.remoting>
+8
View File
@@ -1,3 +1,11 @@
2004-06-24 David Waite <[email protected]>
* mono-jni.c: change to C90-style comments from C99/C++-style
Fri Jun 18 13:46:05 CEST 2004 Paolo Molaro <[email protected]>
* mono-jni.c: updates for the API cleanups.
2004-05-05 Zoltan Varga <[email protected]>
* mono-jni.c: Implement some missing JNI functions.
+25 -25
View File
@@ -149,8 +149,8 @@ StringFromUTF8 (const char* psz)
/* TODO: */
return mono_string_new (mono_domain_get (), psz);
#if 0
// Sun's modified UTF8 encoding is not compatible with System::Text::Encoding::UTF8, so
// we need to roll our own
/* Sun's modified UTF8 encoding is not compatible with System::Text::Encoding::UTF8, so */
/* we need to roll our own */
int len, res_len, i;
int *res;
@@ -163,16 +163,16 @@ StringFromUTF8 (const char* psz)
switch (c >> 4)
{
case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7:
// 0xxxxxxx
/* 0xxxxxxx */
break;
case 12: case 13:
// 110x xxxx 10xx xxxx
/* 110x xxxx 10xx xxxx */
char2 = *psz++;
i++;
c = (((c & 0x1F) << 6) | (char2 & 0x3F));
break;
case 14:
// 1110 xxxx 10xx xxxx 10xx xxxx
/* 1110 xxxx 10xx xxxx 10xx xxxx */
char2 = *psz++;
char3 = *psz++;
i++;
@@ -263,50 +263,50 @@ static jobject JNICALL CallObjectMethodA (JNIEnv *env, jobject obj, jmethodID me
static MonoObject *
box_Boolean (jboolean val)
{
return mono_value_box (mono_domain_get (), mono_defaults.boolean_class, &val);
return mono_value_box (mono_domain_get (), mono_get_boolean_class (), &val);
}
static MonoObject *
box_Byte (jbyte val)
{
/* Sbyte ! */
return mono_value_box (mono_domain_get (), mono_defaults.sbyte_class, &val);
return mono_value_box (mono_domain_get (), mono_get_sbyte_class (), &val);
}
static MonoObject *
box_Char (jchar val)
{
return mono_value_box (mono_domain_get (), mono_defaults.char_class, &val);
return mono_value_box (mono_domain_get (), mono_get_char_class (), &val);
}
static MonoObject *
box_Short (jshort val)
{
return mono_value_box (mono_domain_get (), mono_defaults.int16_class, &val);
return mono_value_box (mono_domain_get (), mono_get_int16_class (), &val);
}
static MonoObject *
box_Int (jint val)
{
return mono_value_box (mono_domain_get (), mono_defaults.int32_class, &val);
return mono_value_box (mono_domain_get (), mono_get_int32_class (), &val);
}
static MonoObject *
box_Long (jlong val)
{
return mono_value_box (mono_domain_get (), mono_defaults.int64_class, &val);
return mono_value_box (mono_domain_get (), mono_get_int64_class (), &val);
}
static MonoObject *
box_Float (jfloat val)
{
return mono_value_box (mono_domain_get (), mono_defaults.single_class, &val);
return mono_value_box (mono_domain_get (), mono_get_single_class (), &val);
}
static MonoObject *
box_Double (jdouble val)
{
return mono_value_box (mono_domain_get (), mono_defaults.double_class, &val);
return mono_value_box (mono_domain_get (), mono_get_double_class (), &val);
}
static int
@@ -327,7 +327,7 @@ InvokeHelper (JNIEnv *env, jobject object, jmethodID methodID, jvalue* args)
MonoObject **argarray;
MonoArray *args2;
// assert(!pLocalRefs->PendingException);
/* assert(!pLocalRefs->PendingException); */
g_assert(methodID);
argc = GetMethodArgs(methodID, sig);
@@ -368,7 +368,7 @@ InvokeHelper (JNIEnv *env, jobject object, jmethodID methodID, jvalue* args)
}
}
args2 = mono_array_new (mono_domain_get (), mono_defaults.object_class, argc);
args2 = mono_array_new (mono_domain_get (), mono_get_object_class (), argc);
for (i = 0; i < argc; ++i)
mono_array_set (args2, MonoObject*, i, argarray [i]);
@@ -475,7 +475,7 @@ METHOD_IMPL(Double,jdouble)
// TODO: These should be put into the macros above...
/* TODO: These should be put into the macros above... */
static void JNICALL CallVoidMethodA (JNIEnv *env, jobject obj, jmethodID methodID, jvalue * args) {
InvokeHelper(env, obj, methodID, args);
}
@@ -581,7 +581,7 @@ static type JNICALL GetStatic##Type##Field(JNIEnv *env, jclass clazz, jfieldID f
// return *(cpptype*)BOXED_VALUE (jniFuncs.GetFieldValue (fieldID, jniFuncs.UnwrapRef (obj)));
/* return *(cpptype*)BOXED_VALUE (jniFuncs.GetFieldValue (fieldID, jniFuncs.UnwrapRef (obj))); */
GET_SET_FIELD(Boolean,jboolean,gboolean)
GET_SET_FIELD(Byte,jbyte, gchar)
@@ -734,42 +734,42 @@ static jobjectArray JNICALL NewObjectArray (JNIEnv *env, jsize len, jclass clazz
static jbooleanArray JNICALL NewBooleanArray (JNIEnv *env, jsize len)
{
return (jbooleanArray)new_java_array (env, mono_defaults.boolean_class, len);
return (jbooleanArray)new_java_array (env, mono_get_boolean_class (), len);
}
static jbyteArray JNICALL NewByteArray (JNIEnv *env, jsize len)
{
return (jbyteArray)new_java_array (env, mono_defaults.sbyte_class, len);
return (jbyteArray)new_java_array (env, mono_get_sbyte_class (), len);
}
static jcharArray JNICALL NewCharArray (JNIEnv *env, jsize len)
{
return (jcharArray)new_java_array (env, mono_defaults.char_class, len);
return (jcharArray)new_java_array (env, mono_get_char_class (), len);
}
static jshortArray JNICALL NewShortArray (JNIEnv *env, jsize len)
{
return (jshortArray)new_java_array (env, mono_defaults.int16_class, len);
return (jshortArray)new_java_array (env, mono_get_int16_class (), len);
}
static jintArray JNICALL NewIntArray (JNIEnv *env, jsize len)
{
return (jintArray)new_java_array (env, mono_defaults.int32_class, len);
return (jintArray)new_java_array (env, mono_get_int32_class (), len);
}
static jlongArray JNICALL NewLongArray (JNIEnv *env, jsize len)
{
return (jlongArray)new_java_array (env, mono_defaults.int64_class, len);
return (jlongArray)new_java_array (env, mono_get_int64_class (), len);
}
static jfloatArray JNICALL NewFloatArray (JNIEnv *env, jsize len)
{
return (jfloatArray)new_java_array (env, mono_defaults.single_class, len);
return (jfloatArray)new_java_array (env, mono_get_single_class (), len);
}
static jdoubleArray JNICALL NewDoubleArray (JNIEnv *env, jsize len)
{
return (jdoubleArray)new_java_array (env, mono_defaults.double_class, len);
return (jdoubleArray)new_java_array (env, mono_get_double_class (), len);
}
/* Original version with copy */
+55 -2
View File
@@ -1,8 +1,9 @@
.\"
.\" mono configuration page.
.\" mono-config configuration page.
.\" (C) Ximian, Inc.
.\" Author:
.\" Miguel de Icaza ([email protected])
.\" Paolo Molaro ([email protected])
.\"
.TH Mono "Mono 1.0"
.SH NAME
@@ -12,6 +13,9 @@ The Mono runtime will load configuration data from the
installation prefix /etc/mono/config file, the ~/.mono/config or from
the file pointed by the MONO_CONFIG environment variable.
.PP
For each assembly loaded a config file with the name:
/path/to/the/assembly.exe.config is loaded, too.
.PP
This file controls the behavior of the runtime.
.PP
The file contains an XML-like file with various sections, all of them
@@ -24,6 +28,37 @@ You use the dllmap directive to map shared libraries referenced by
P/Invoke in your assemblies to a different shared library.
.PP
This is typically used to map Windows libraries to Unix library names.
The
.B dllmap
element takes two attributes:
.TP
.I dll
This should be the same string used in the DllImport attribute
.TP
.I target
This should be the name of the library where the function can be found:
this name should be suitable for use with the platform native shared library
loading routines (dlopen etc.), so you may want to check the manpages for that, too.
.SH <dllentry> directive
This directive can be used to map a specific dll/function pair to a different
library and also a different function name. It should appear inside a
.B dllmap
element with only the dll attribute specified.
.PP
The
.B dllentry
element takes 3 attributes:
.TP
.I dll
This is the target library, where the function can be found.
.TP
.I name
This is the name of the fuction as it appears in the metadata: it is the name
of the P/Invoke method.
.TP
.I target
This is the name of the function to lookup instead of the name specified in the
P/Invoke method.
.SH EXAMPLES
The following example maps references to the `cygwin1.dll' shared
library to the `libc.so.6' file.
@@ -32,5 +67,23 @@ library to the `libc.so.6' file.
<dllmap dll="cygwin1.dll" target="libc.so.6"/>
</configuration>
.fi
.PP
This one maps the following C# method:
.nf
[DllImport ("libc")]
static extern void somefunction ();
.fi
to
.B differentfunction
in
.B libdifferent.so.
.nf
<configuration>
<dllmap dll="libc">
<dllentry dll="libdifferent.so" name="somefunction" target="differentfunction" />
</dllmap>
</configuration>
.fi
.SH SEE ALSO
.BR mono(1), monodis(1), mint(1)
.BR mono(1), monodis(1), mint(1)
+15 -9
View File
@@ -252,6 +252,21 @@ If set, this variable overrides the default runtime configuration file
($PREFIX/etc/mono/config). The --config command line options overrides the
environment variable.
.TP
.I "MONO_LOG_LEVEL"
If set, the logging level is changed to the set value. Possible values
are "error", "critical", "warning", "message", "info", "debug". The
default value is "error". Messages with a logging level greater then
or equal to the log level will be printed to stdout/stderr.
.TP
.I "MONO_LOG_MASK"
If set, the log mask is changed to the set value. Possible values are
"asm" (assembly loader), "type", "dll" (native library loader), "gc"
(garbage collector), "cfg" (config file loader), "all". The default value is
"all". Changing the mask value allows you to display only messages for
a certain component. You can use multiple masks by comma separating
them. For example to see config file messages and assembly loader
messages set you mask to "asm,cfg".
.TP
.I "MONO_DEBUG"
If set, enables some features of the runtime useful for debugging.
It makes the runtime display the stack traces for all the threads
@@ -310,15 +325,6 @@ If set its the directory where the ".wapi" handle state is stored.
This is the directory where the Windows I/O Emulation layer stores its
shared state data (files, events, mutexes, pipes). By default Mono
will store the ".wapi" directory in the users's home directory.
.TP
.I "MONO_UNMANAGED_XSLT"
If set any value, System.Xml.Xsl.XslTransform uses libxslt-based
transformation engine (a.k.a Unmanaged XSLT). Unmanaged XSLT has
long been used for XSLT engine while Managed XSLT engine is so
new and might have some bugs. Basically we recommend Managed XSLT
solution, but if it contains some blocking bugs, then you can also
use traditional libxslt. If you want to use msxsl:script, you have
to select Managed XSLT.
.SH FILES
On Unix assemblies are loaded from the installation lib directory. If you set
`prefix' to /usr, the assemblies will be located in /usr/lib. On
+6
View File
@@ -1,3 +1,9 @@
This list of authors is outdated. For a full list of contributors
see:
http://www.go-mono.com/archive/mono-1.0.html
C# Compiler:
Miguel de Icaza ([email protected])
Ravi Pratap ([email protected])
+8
View File
@@ -1,3 +1,11 @@
2004-06-22 Todd Berman <[email protected]>
* configure: Patch from Mariano Suárez-Alvarez
<[email protected]> to make configure accept jhbuild style
/prefix /usr options, and to continue past unknown options. Currently
this patch is a bit spammy with multiple unknown options, anyone
who is interested is welcome to fix this.
2004-06-14 Raja R Harinath <[email protected]>
* Makefile (all-profiles, clean-profiles): Simplify slightly.
+26
View File
@@ -1,3 +1,29 @@
2004-06-28 Raja R Harinath <[email protected]>
* platforms/linux.make (RESGEN): Define using $(INTERNAL_RESGEN).
2004-06-21 Raja R Harinath <[email protected]>
* executable.make ($(PROGRAM)): Move depend on the makefrags ...
(all-local): ... here.
* library.make ($(the_lib), $(test_lib), $(btest_lib), all-local):
Likewise.
(LIBRARY_SNK): New default define. Allows library to be signed
with a key other than mono.snk.
($(the_lib_signature_stamp)): New stamp file created when an
assembly is signed.
(install-local, uninstall-local, maybe-sign-lib): Set MONO_PATH.
2004-06-16 Raja R Harinath <[email protected]>
* library.make ($(makefrag),$(test_makefrag),$(btest_makefrag)):
Depend on library.make.
* executable.make ($(makefrag)): Depend on executable.make.
2004-06-16 Atsushi Enomoto <[email protected]>
* library.make : Added GACDIR. Use cygpath -w on windows.
2004-06-14 Raja R Harinath <[email protected]>
* platforms/linux.make (PLATFORM_CHANGE_SEPARATOR_CMD): Define to 'cat'.
+1
View File
@@ -1,3 +1,4 @@
*.makefrag
*.response
*.stamp
*.was_signed
+4 -1
View File
@@ -55,7 +55,7 @@ ifndef PROGRAM_COMPILE
PROGRAM_COMPILE = $(CSCOMPILE)
endif
$(PROGRAM): $(makefrag) $(BUILT_SOURCES) $(response)
$(PROGRAM): $(BUILT_SOURCES) $(response)
$(PROGRAM_COMPILE) /target:exe /out:$@ $(BUILT_SOURCES) @$(response)
$(makefrag): $(sourcefile)
@@ -69,3 +69,6 @@ $(response): $(sourcefile)
endif
-include $(makefrag)
all-local: $(makefrag)
$(makefrag): $(topdir)/build/executable.make
+26 -10
View File
@@ -28,8 +28,9 @@ endif
makefrag = $(depsdir)/$(PROFILE)_$(LIBRARY).makefrag
the_lib = $(topdir)/class/lib/$(PROFILE)/$(LIBRARY_NAME)
the_lib_signature_stamp = $(makefrag:.makefrag=.was_signed)
the_pdb = $(the_lib:.dll=.pdb)
library_CLEAN_FILES += $(makefrag) $(the_lib) $(the_pdb)
library_CLEAN_FILES += $(makefrag) $(the_lib) $(the_pdb) $(the_lib_signature_stamp)
ifndef NO_TEST
test_nunit_lib = nunit.framework.dll nunit.core.dll nunit.util.dll
@@ -80,9 +81,15 @@ ifeq ($(PROFILE), net_2_0)
PACKAGE = 2.0
endif
ifeq ($(PLATFORM), win32)
GACDIR = `cygpath -w $(DESTDIR)$(prefix)/lib`
else
GACDIR = $(DESTDIR)$(prefix)/lib
endif
all-local: $(the_lib)
install-local: $(the_lib) maybe-sign-lib
install-local: $(the_lib)
ifdef LIBRARY_INSTALL_DIR
install-local:
@@ -95,20 +102,26 @@ uninstall-local:
else
install-local: $(gacutil)
$(RUNTIME) $(gacutil) /i $(the_lib) /f /root $(DESTDIR)$(prefix)/lib /package $(PACKAGE)
MONO_PATH="$(topdir)/class/lib/$(PROFILE):$$MONO_PATH" $(RUNTIME) $(gacutil) /i $(the_lib) /f /root $(GACDIR) /package $(PACKAGE)
uninstall-local: $(gacutil)
$(RUNTIME) $(gacutil) /u $(LIBRARY_NAME:.dll=)
MONO_PATH="$(topdir)/class/lib/$(PROFILE):$$MONO_PATH" $(RUNTIME) $(gacutil) /u $(LIBRARY_NAME:.dll=)
$(gacutil):
cd $(topdir)/tools/gacutil && $(MAKE)
endif
maybe-sign-lib:
ifndef NO_SIGN_ASSEMBLY
maybe-sign-lib: $(sn)
$(RUNTIME) $(sn) -q -R $(the_lib) $(topdir)/class/mono.snk
install-local: $(the_lib_signature_stamp)
ifndef LIBRARY_SNK
LIBRARY_SNK = $(topdir)/class/mono.snk
endif
$(the_lib_signature_stamp): $(the_lib) $(sn)
MONO_PATH="$(topdir)/class/lib/$(PROFILE):$$MONO_PATH" $(RUNTIME) $(sn) -q -R $(the_lib) $(LIBRARY_SNK)
echo stamp > $@
endif
$(sn):
@@ -194,7 +207,7 @@ endif
# Fun with dependency tracking
$(the_lib): $(makefrag) $(response)
$(the_lib): $(response)
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) /target:library /out:$@ @$(response)
$(makefrag): $(sourcefile)
@@ -214,7 +227,7 @@ endif
ifdef HAVE_CS_TESTS
$(test_lib): $(test_makefrag) $(test_dep) $(test_response) $(test_nunit_dep)
$(test_lib): $(test_dep) $(test_response) $(test_nunit_dep)
$(TEST_COMPILE) /target:library /out:$@ $(test_flags) @$(test_response)
$(test_response): $(test_sourcefile)
@@ -231,7 +244,7 @@ endif
ifdef HAVE_VB_TESTS
$(btest_lib): $(btest_makefrag) $(test_dep) $(btest_response) $(test_nunit_dep)
$(btest_lib): $(test_dep) $(btest_response) $(test_nunit_dep)
$(BTEST_COMPILE) /target:library /out:$@ $(btest_flags) @$(btest_response)
$(btest_response): $(btest_sourcefile)
@@ -245,3 +258,6 @@ $(btest_makefrag): $(btest_response)
-include $(btest_makefrag)
endif
all-local: $(makefrag) $(test_makefrag) $(btest_makefrag)
$(makefrag) $(test_makefrag) $(btest_makefrag): $(topdir)/build/library.make
+1 -1
View File
@@ -9,7 +9,7 @@ PLATFORM_RUNTIME = $(RUNTIME)
PLATFORM_CORLIB = mscorlib.dll
BOOTSTRAP_MCS = mcs
RESGEN = monoresgen
RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN)
PLATFORM_PATH_SEPARATOR = :
@@ -4,6 +4,27 @@
// What a horrible interface.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Accessibility {
public interface IAccessible {
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
interface IAccessibleHandler {
// Opaque for now.
}
@@ -7,6 +7,27 @@
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Resources;
+8
View File
@@ -1,3 +1,11 @@
2004-06-24 Raja R Harinath <[email protected]>
* IBM.Data.DB2/Makefile: Disable for 'net_2_0'.
2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* Makefile: enabled Mono.CSharp.Debugger on windows.
2004-06-11 Duncan Mak <[email protected]>
* IBM.Data.DB2/IBM.Data.DB2.dll.sources:
@@ -8,6 +8,27 @@
// (C) 2004 Novell (http://www.novell.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Runtime.InteropServices;
@@ -8,6 +8,27 @@
// (C) 2001 - 2003 Ximian, Inc (http://www.ximian.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
internal sealed class Locale {
private Locale ()
@@ -1,3 +1,17 @@
2004-06-25 Atsushi Enomoto <[email protected]>
* RdpContentType.cs, RdpNameClass.cs, RdpObjects.cs, RdpPatterns.cs,
Util.cs : added novell license term.
2004-06-21 Atsushi Enomoto <[email protected]>
* RdpPatterns.cs : Fixed ExpandRef() that caused incorrect nest error.
2004-06-17 Atsushi Enomoto <[email protected]>
* RdpPatterns.cs : Quick workaround for infinite loop happening in
some kind of recursive expansion.
2004-03-12 Atsushi Enomoto <[email protected]>
* RdpPatterns.cs : Fixed TextDeriv() to allow whitespace text nodes
@@ -4,10 +4,32 @@
// Author:
// Atsushi Enomoto <[email protected]>
//
// (C)2004 Novell Inc.
//
// See RELAX NG spec 7.2
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Commons.Xml.Relaxng.Derivative
{
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Xml;
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -1383,11 +1407,17 @@ namespace Commons.Xml.Relaxng.Derivative
bool isExpanded;
short expanding; // FIXME: It is totally not required, but there is
// some bugs in simplification and without it it causes infinite loop.
internal override RdpPattern ExpandRef (Hashtable defs)
{
if (!isExpanded) {
isExpanded = true;
if (expanding == 100)
throw new RelaxngException (String.Format ("Invalid recursion was found. Name is {0}", nameClass));
expanding++;
children = children.ExpandRef (defs);
expanding--;
}
return this;
}
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -1,3 +1,7 @@
2004-06-25 Atsushi Enomoto <[email protected]>
* RncParser.jay : added MIT license.
2004-06-07 Atsushi Enomoto <[email protected]>
* RncParser.jay : removed unused code. Fixed LookupNamespace() to
@@ -6,7 +6,30 @@
// Atsushi Enomoto <[email protected]>
//
// (C)2003 Atsushi Enomoto
// (C)2004 Novell Inc.
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
@@ -7,6 +7,27 @@
// (C)2003 Atsushi Enomoto
// (C)2004 Novell Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -1,3 +1,30 @@
2004-06-25 Atsushi Enomoto <[email protected]>
* Misc.cs, RelaxngDatatype.cs, RelaxngDatatypeProvider.cs,
RelaxngDefaultDatatype.cs, RelaxngException.cs, RelaxngGrammar.cs,
RelaxngMergedProvider.cs, RelaxngNameClass.cs, RelaxngPattern.cs,
RelaxngPatternType.cs, RelaxngReader.cs, RelaxngValidatingReader.cs,
XsdDatatypeProvider.cs : Added/replaced novell license term.
2004-06-21 Atsushi Enomoto <[email protected]>
* Misc.cs,
RelaxngPattern.cs,
RelaxngReader.cs :
Use XmlResolver (or XmlUrlResolver) directly. XmlResolver was
incorrectly _used_ before null check. Don't create XmlResolver
instance for _every_ pattern object.
* RelaxngPattern.cs : UnresolvedRef.ExpandRef() should return not
try to find target derivative pattern twice. It was the culprit of
infinite loop. Removed dirty switches.
* RelaxngGrammar.cs : code cleanup.
2004-06-17 Atsushi Enomoto <[email protected]>
* Misc.cs, RelaxngGrammar.cs, RelaxngPattern.cs, RelaxngReader.cs :
Added XmlResolver property to fix bug #60334.
Check incrrect recursion check that caused possible infinite loop.
2004-05-31 Atsushi Enomoto <[email protected]>
* Misc.cs : made Util class internal.
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.IO;
@@ -16,42 +40,18 @@ namespace Commons.Xml.Relaxng
{
internal class Util
{
public static string ResolveUri (string baseUri, string href)
/*
public static string ResolveUri (string baseUri, string href, XmlResolver resolver)
{
#if true
Uri uri = null;
if (baseUri != null && baseUri.Length > 0)
uri = new Uri (baseUri);
Uri result = new XmlUrlResolver ().ResolveUri (uri, href);
Uri result = resolver.ResolveUri (uri, href);
if (result.Query.Length > 0 || result.Fragment.Length > 0)
throw new RelaxngException ("Invalid URI format: " + href);
return result.ToString ();
#else
// If baseUri does not exist, then it is only the way.
if (baseUri == String.Empty)
return href;
// If href itself is a uri, then return it directly.
try {
return new Uri (href).ToString ();
} catch (UriFormatException) {
}
// If baseUri is a valid uri, then make relative uri.
try {
return new Uri (
new Uri (baseUri), href).ToString ();
} catch (UriFormatException) {
}
// Otherwise, they might be filesystem path.
if (Path.IsPathRooted (href))
return href;
return Path.Combine (
Path.GetDirectoryName (baseUri), href);
#endif
}
*/
public static string NormalizeWhitespace (string s)
{
@@ -4,8 +4,30 @@
// Author:
// Atsushi Enomoto <[email protected]>
//
// (C)2004 Novell Inc.
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Xml;
@@ -4,8 +4,30 @@
// Author:
// Atsushi Enomoto <[email protected]>
//
// (C)2004 Novell Inc.
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Xml;
@@ -4,8 +4,30 @@
// Author:
// Atsushi Enomoto <[email protected]>
//
// (C)2004 Novell Inc.
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Xml;
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.IO;
@@ -6,7 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.IO;
@@ -41,7 +64,6 @@ namespace Commons.Xml.Relaxng
Hashtable includedUris = new Hashtable ();
RelaxngGrammar parentGrammar;
ArrayList includedGrammars;
Hashtable refPatterns = new Hashtable (); // key = RdpPattern of assembledDefs
// only for checkRecursion()
@@ -176,13 +198,7 @@ namespace Commons.Xml.Relaxng
// here we collected element-replaced definitions
foreach (DictionaryEntry entry in elementReplacedDefs)
assembledDefs.Add (entry.Key, entry.Value);
#if REPLACE_IN_ADVANCE
// Well, actual expandRef should be done after checking constraints
// 4.19 (c) expandRef
startPattern = compiledStart.ExpandRef (assembledDefs);
#else
startPattern = compiledStart;
#endif
// 4.20,21 reduce notAllowed and empty.
bool b;
do {
@@ -207,10 +223,8 @@ namespace Commons.Xml.Relaxng
// TODO: 7.3
#if !REPLACE_IN_ADVANCE
// 4.19 (c) expandRef - actual replacement
startPattern = compiledStart.ExpandRef (assembledDefs);
#endif
// return its start pattern.
IsCompiled = true;
@@ -220,10 +234,8 @@ namespace Commons.Xml.Relaxng
private void CheckStartPatternContent (RdpPattern p)
{
switch (p.PatternType) {
#if !REPLACE_IN_ADVANCE
case RelaxngPatternType.Ref:
CheckStartPatternContent (((RdpUnresolvedRef) p).RefPattern);
#endif
break;
case RelaxngPatternType.Element:
break;
@@ -277,8 +289,8 @@ namespace Commons.Xml.Relaxng
checkRecursionDepth = (int) checkedDepth;
// get refPattern
RdpUnresolvedRef pref = p as RdpUnresolvedRef;
RelaxngGrammar target = pref.TargetGrammar;//pref.IsParentRef ? parentGrammar : this;
RdpPattern refPattern = pref.RefPattern;//target.assembledDefs [pref.Name] as RdpPattern;
RelaxngGrammar target = pref.TargetGrammar;
RdpPattern refPattern = pref.RefPattern;
if (refPattern == null)
throw new RelaxngException ("No matching define found for " + pref.Name);
@@ -315,21 +327,15 @@ namespace Commons.Xml.Relaxng
private void CollectGrammars ()
{
// collect ref and parentRef for each define.
includedGrammars = (parentGrammar != null) ?
parentGrammar.includedGrammars : new ArrayList ();
// FIXME: This should be assembledStart.
CheckReferences (compiledStart);
FixupReference ();
this.unresolvedPatterns.Clear ();
// Hashtable ht = assembledDefs.Clone () as Hashtable;
// foreach (string name in ht.Keys) {
foreach (string name in assembledDefs.Keys) {
RdpPattern p = (RdpPattern) assembledDefs [name];
CheckReferences (p);
FixupReference ();
this.unresolvedPatterns.Clear ();
}
// If it is child of any other pattern:
@@ -344,15 +350,22 @@ namespace Commons.Xml.Relaxng
if (al == null)
continue; // Not referenced.
if (parentGrammar.assembledDefs [name] == null)
parentGrammar.assembledDefs [name] =
this.assembledDefs [name];
else
replaceDefines (name, al);
// At this point, parent grammar doesn't
// collect assembledDefs as yet
string uname = GetUniqueName (name, parentGrammar);
parentGrammar.assembledDefs [uname] = assembledDefs [name];
}
}
}
private static string GetUniqueName (string name, RelaxngGrammar grammar)
{
foreach (RelaxngDefine def in grammar.Defines)
if (def.Name == name)
return GetUniqueName (name + '_', grammar);
return name;
}
private void FixupReference ()
{
foreach (RdpUnresolvedRef pref in this.unresolvedPatterns) {
@@ -366,6 +379,7 @@ namespace Commons.Xml.Relaxng
}
al.Add (pref);
}
this.unresolvedPatterns.Clear ();
}
private void replaceDefines (string name, ArrayList al)
@@ -4,8 +4,30 @@
// Author:
// Atsushi Enomoto <[email protected]>
//
// (C)2004 Novell Inc.
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using Commons.Xml.Relaxng.XmlSchema;
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -267,10 +291,13 @@ namespace Commons.Xml.Relaxng
{
grammar.CheckIncludeRecursion (Href);
grammar.IncludedUris.Add (Href, Href);
string url = Util.ResolveUri (BaseUri, href);
XmlTextReader xtr = new XmlTextReader (url);
if (grammar.Resolver == null)
throw new RelaxngException ("To compile 'include' element, XmlResolver is required.");
Uri uri = grammar.Resolver.ResolveUri (BaseUri != String.Empty ? new Uri (BaseUri) : null, Href);
XmlTextReader xtr = null;
RelaxngGrammar g = null;
try {
xtr = new XmlTextReader (uri.AbsoluteUri, (Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream)));
RelaxngReader r = new RelaxngReader (xtr, ns);
r.MoveToContent ();
g = r.ReadPattern () as RelaxngGrammar;
@@ -408,8 +435,17 @@ namespace Commons.Xml.Relaxng
// Private Fields
RdpPattern startRelaxngPattern;
RelaxngDatatypeProvider provider;
XmlResolver resolver;
bool nullResolver;
// Public
public XmlResolver XmlResolver {
set {
nullResolver = value == null;
resolver = value;
}
}
public abstract RelaxngPatternType PatternType { get; }
public RelaxngDatatypeProvider DataProvider {
get {
@@ -427,6 +463,7 @@ namespace Commons.Xml.Relaxng
g = (RelaxngGrammar) this;
else {
g = new RelaxngGrammar ();
g.XmlResolver = this.Resolver;
g.BaseUri = this.BaseUri;
g.LineNumber = this.LineNumber;
g.LinePosition = this.LinePosition;
@@ -444,6 +481,16 @@ namespace Commons.Xml.Relaxng
// Internal
internal XmlResolver Resolver {
get {
if (nullResolver)
return null;
if (resolver == null)
resolver = new XmlUrlResolver ();
return resolver;
}
}
internal abstract void CheckConstraints ();
protected RelaxngPattern ()
@@ -917,11 +964,7 @@ namespace Commons.Xml.Relaxng
}
public override RdpContentType ContentType {
#if REPLACE_IN_ADVANCE
get { throw new InvalidOperationException (); }
#else
get { return RdpContentType.Empty; }
#endif
}
@@ -933,10 +976,7 @@ namespace Commons.Xml.Relaxng
internal override RdpPattern ExpandRef (Hashtable defs)
{
RdpPattern target = (RdpPattern) defs [this.name];
if (target == null)
throw new RelaxngException ("Target definition " + name + " not found.");
return target.ExpandRef (defs);
return referencedPattern.ExpandRef (defs);
}
internal override void MarkReachableDefs ()
@@ -1063,17 +1103,27 @@ namespace Commons.Xml.Relaxng
{
grammar.CheckIncludeRecursion (Href);
grammar.IncludedUris.Add (Href, Href);
string uri = Util.ResolveUri (this.BaseUri, href);
RelaxngReader r = new RelaxngReader (new XmlTextReader (uri), ns);
r.MoveToContent ();
RelaxngPattern p = r.ReadPattern ();
p.DataProvider = grammar.Provider;
if (grammar.Resolver == null)
throw new RelaxngException ("To compile 'include' element, XmlResolver is required.");
Uri uri = grammar.Resolver.ResolveUri (BaseUri != String.Empty ? new Uri (BaseUri) : null, Href);
XmlTextReader xtr = null;
try {
xtr = new XmlTextReader (uri.AbsoluteUri, (Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream)));
RelaxngReader r = new RelaxngReader (xtr, ns);
r.MoveToContent ();
RelaxngPattern p = r.ReadPattern ();
p.DataProvider = grammar.Provider;
RdpPattern ret = p.Compile (grammar);
RdpPattern ret = p.Compile (grammar);
grammar.IncludedUris.Remove (Href);
grammar.IncludedUris.Remove (Href);
return ret;
} finally {
if (xtr != null)
xtr.Close ();
}
return ret;
}
internal override void CheckConstraints ()
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Collections.Specialized;
@@ -6,6 +6,30 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -33,6 +57,7 @@ namespace Commons.Xml.Relaxng
// fields
Stack nsStack = new Stack ();
Stack datatypeLibraryStack = new Stack ();
XmlResolver resolver = new XmlUrlResolver ();
// ctor
public RelaxngReader (XmlReader reader)
@@ -52,6 +77,14 @@ namespace Commons.Xml.Relaxng
MoveToContent ();
}
public XmlResolver XmlResolver {
set { resolver = value; }
}
internal XmlResolver Resolver {
get { return resolver; }
}
private void FillLocation (RelaxngElementBase el)
{
el.BaseUri = BaseURI;
@@ -432,7 +465,8 @@ namespace Commons.Xml.Relaxng
string href = GetSpaceStrippedAttribute ("href");
if (href == null)
throw new RelaxngException ("Required attribute href was not found.");
i.Href = Util.ResolveUri (BaseURI, href);
XmlResolver res = resolver != null ? resolver : new XmlUrlResolver ();
i.Href = res.ResolveUri (BaseURI != null ? new Uri (BaseURI) : null, href).AbsoluteUri;
if (!IsEmptyElement) {
Read ();
this.readGrammarIncludeContent (i.Starts, i.Defines, i.Divs, null);
@@ -631,7 +665,8 @@ namespace Commons.Xml.Relaxng
string href = GetSpaceStrippedAttribute ("href");
if (href == null)
throw new RelaxngException ("Required attribute href was not found.");
r.Href = Util.ResolveUri (BaseURI, href);
XmlResolver res = resolver != null ? resolver : new XmlUrlResolver ();
r.Href = res.ResolveUri (BaseURI != null ? new Uri (BaseURI) : null, href).AbsoluteUri;
r.NSContext = ContextNamespace;
if (!IsEmptyElement) {
Read ();
@@ -4,8 +4,32 @@
// Author:
// Atsushi Enomoto <[email protected]>
//
// (C)2003 Atsushi Enomoto. "Some rights reserved."
// 2003 Atsushi Enomoto. "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Xml;
@@ -4,8 +4,30 @@
// Author:
// Atsushi Enomoto <[email protected]>
//
// (C)2004 Novell Inc.
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Text;
@@ -1,3 +1,11 @@
2004-06-25 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : Added novell's license (avoid confusion).
2004-06-17 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : don't catch the exception.
2004-02-25 Atsushi Enomoto <[email protected]>
* XmlDefaultReader.cs : Added support for IXmlLineInfo.
@@ -6,6 +6,28 @@
//
// 2003 Atsushi Enomoto "No rights reserved."
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Similar to SAX DefaultHandler
@@ -186,11 +208,7 @@ namespace Commons.Xml
public override bool Read ()
{
try {
return Reader.Read ();
} catch (Exception ex) {
throw ex;
}
return Reader.Read ();
}
public override string ReadString ()
@@ -1,3 +1,8 @@
2004-06-17 Atsushi Enomoto <[email protected]>
* relaxngtest.cs : Now we can test all cases (though resulting in
failure). Catch unexpected exception and report them as such.
2004-05-31 Atsushi Enomoto <[email protected]>
* anglia-test-runner.cs : Added support for RELAX NG compact syntax
@@ -20,6 +20,7 @@ Console.WriteLine ("Finished: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:ss.ff
foreach (DirectoryInfo di in
new DirectoryInfo (@"relax-ng").GetDirectories ()) {
/*
if (di.Name == "056") // baseURI
continue;
if (di.Name == "102") // invalid URI fragment
@@ -28,6 +29,7 @@ if (di.Name == "208") // infinite loop!!
continue;
if (di.Name == "210") // infinite loop!!
continue;
*/
XmlTextReader xtr = null;
FileInfo fi = new FileInfo (di.FullName + "/i.rng");
@@ -40,9 +42,9 @@ if (di.Name == "210") // infinite loop!!
} catch (RelaxngException ex) {
} catch (XmlException ex) {
} catch (ArgumentNullException ex) {
// } catch (UriFormatException ex) {
// } catch (Exception ex) {
// Console.WriteLine ("Unexpected error type : " + di.Name + " : " + ex.Message);
} catch (UriFormatException ex) {
} catch (Exception ex) {
Console.WriteLine ("Unexpected error type : " + di.Name + " : " + ex.Message);
} finally {
xtr.Close ();
}
@@ -55,9 +57,9 @@ if (di.Name == "210") // infinite loop!!
try {
p = RelaxngPattern.Read (xtr);
p.Compile ();
// } catch (Exception ex) {
// Console.WriteLine ("Invalidated grammar: " + di.Name + " : " + ex.Message);
// continue;
} catch (Exception ex) {
Console.WriteLine ("Invalidated grammar: " + di.Name + " : " + ex.Message);
continue;
} finally {
xtr.Close ();
}
@@ -7,6 +7,27 @@
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Runtime.InteropServices;
+21
View File
@@ -8,6 +8,27 @@
// (C) 2001 - 2003 Ximian, Inc (http://www.ximian.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
internal sealed class Locale {
private Locale ()
@@ -6,6 +6,27 @@
// (C) 2002 Jackson Harper, All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.IO;
using System.Text;
@@ -6,6 +6,27 @@
// (C) 2002 Jackson Harper, All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Text;
@@ -6,6 +6,27 @@
// (C) 2002 Jackson Harper, All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace Microsoft.CSharp {
public enum ErrorLevel {
@@ -6,6 +6,27 @@
//
// (C) Ximian, Inc. http://www.ximian.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace Microsoft.CSharp {
@@ -7,6 +7,27 @@
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Runtime.InteropServices;
@@ -8,6 +8,27 @@
// (C) 2001 - 2003 Ximian, Inc (http://www.ximian.com)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
internal sealed class Locale {
private Locale ()
@@ -6,6 +6,27 @@
//
// (C) Ximian, Inc. http://www.ximian.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
/// <summary>
@@ -7,6 +7,27 @@
// (C) 2003 Martin Willemoes Hansen
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Runtime.InteropServices.CustomMarshalers
{
public class EnumerableToDispatchMarshaler : ICustomMarshaler {
@@ -7,6 +7,27 @@
// (C) 2003 Martin Willemoes Hansen
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Runtime.InteropServices.CustomMarshalers
{
public class EnumeratorToEnumVariantMarshaler : ICustomMarshaler {
@@ -7,6 +7,27 @@
// (C) 2003 Martin Willemoes Hansen
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Runtime.InteropServices.CustomMarshalers
{
public class ExpandoToDispatchExMarshaler : ICustomMarshaler {
@@ -7,6 +7,27 @@
// (C) 2003 Martin Willemoes Hansen
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Runtime.InteropServices.CustomMarshalers
{
public class TypeToTypeInfoMarshaler : ICustomMarshaler {
+2
View File
@@ -122,6 +122,8 @@ public class Manager
e = Instantiate (alias) as Encoding;
}
}
if (e == null)
return null;
// e.g. Neither euc_jp nor shift-jis not allowed (Normalize() badness)
if (orgName.IndexOf ('_') > 0 && e.WebName.IndexOf ('-') > 0)
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Reflection;
using System.Runtime.CompilerServices;
@@ -1,18 +1,20 @@
./Assembly/AssemblyInfo.cs
./IBM.Data.DB2/DB2CLIWrapper.cs
./IBM.Data.DB2/DB2ClientUtils.cs
./IBM.Data.DB2/DB2OpenConnection.cs
./IBM.Data.DB2/DB2CLIWrapper.cs
./IBM.Data.DB2/DB2Command.cs
./IBM.Data.DB2/DB2CommandBuilder.cs
./IBM.Data.DB2/DB2OpenConnection.cs
./IBM.Data.DB2/DB2Connection.cs
./IBM.Data.DB2/DB2ConnectionPool.cs
./IBM.Data.DB2/DB2ConnectionSettings.cs
./IBM.Data.DB2/DB2Constants.cs
./IBM.Data.DB2/DB2DataAdapter.cs
./IBM.Data.DB2/DB2DataReader.cs
./IBM.Data.DB2/DB2Environment.cs
./IBM.Data.DB2/DB2Error.cs
./IBM.Data.DB2/DB2ErrorCollection.cs
./IBM.Data.DB2/DB2Exception.cs
./IBM.Data.DB2/DB2InfoMessageEventArgs.cs
./IBM.Data.DB2/DB2InfoMessageEventHandler.cs
./IBM.Data.DB2/DB2Parameter.cs
./IBM.Data.DB2/DB2ParameterCollection.cs
./IBM.Data.DB2/DB2RowUpdatedEventArgs.cs
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Runtime.InteropServices;
@@ -9,6 +30,134 @@ namespace IBM.Data.DB2
/// DB2Prototypes class is a wrapper for the DB2.lib, IBM's Call Level Interface to DB2
/// </summary>
///
#region comented
/*internal class DB2CLIWrapper
{
#if (OS_LINUX)
private const string libname = "db2_36";
#endif
#if (OS_WINDOWS)
private const string libname = "db2cli";
#endif
[DllImport("db2cli", EntryPoint = "SQLAllocHandle")]
internal static extern short SQLAllocHandle(short handleType, IntPtr inputHandle, ref IntPtr outputHandle);
[DllImport("db2cli", EntryPoint = "SQLFreeHandle")]
internal static extern short SQLFreeHandle(short handleType, IntPtr inputHandle);
[DllImport("db2cli", EntryPoint = "SQLGetConnectAttrW")]
internal static extern short SQLGetConnectAttr(IntPtr ConnectionHandle, int Attribute, [Out] IntPtr ValuePtr, int BufferLength, out int StringLengthPtr);
[DllImport("db2cli", EntryPoint = "SQLGetConnectAttrW")]
internal static extern short SQLGetConnectAttr(IntPtr ConnectionHandle, int Attribute, out int Value, int BufferLength, IntPtr Zero);
[DllImport("db2cli", EntryPoint = "SQLFreeStmt")]
internal static extern short SQLFreeStmt(IntPtr StatementHandle, short option);
[DllImport("db2cli", EntryPoint = "SQLConnect")]
internal static extern short SQLConnect(IntPtr sqlHdbc, string serverName, short serverNameLength, string userName, short userNameLength, string authentication, short authenticationLength);
[DllImport("db2cli", EntryPoint = "SQLColAttribute")]
internal static extern short SQLColAttribute(IntPtr StatementHandle, short ColumnNumber, short FieldIdentifier, IntPtr CharacterAttribute, short BufferLength, ref short StringLength, ref int NumericAttribute);
//[DllImport("db2cli", EntryPoint = "SQLGetData")]
// internal static extern short SQLGetData(IntPtr StatementHandle, short ColumnNumber, short TargetType, IntPtr TargetPtr, IntPtr BufferLength, ref IntPtr StrLen_or_Ind);
[DllImport("db2cli", EntryPoint="SQLMoreResults")]
internal static extern short SQLMoreResults(IntPtr StatementHandle);
//[DllImport("db2cli", EntryPoint = "SQLGetData")]
//internal static extern short SQLGetData(IntPtr StatementHandle, short ColumnNumber, short TargetType, IntPtr TargetPtr, IntPtr BufferLength, out int StrLen_or_Ind);
[DllImport("db2cli", EntryPoint = "SQLGetData")]
internal static extern short SQLGetData(IntPtr StatementHandle, short ColumnNumber, short TargetType, IntPtr TargetPtr, int BufferLength, out int StrLen_or_Ind);
//[DllImport("db2cli", EntryPoint = "SQLGetData")]
//internal static extern short SQLGetData(IntPtr StatementHandle, short ColumnNumber, short TargetType, byte[] TargetPtr, IntPtr BufferLength, ref IntPtr StrLen_or_Ind);
[DllImport("db2cli", EntryPoint = "SQLGetData")]
internal static extern short SQLGetData(IntPtr StatementHandle, short ColumnNumber, short TargetType, byte[] TargetPtr, int BufferLength, out int StrLen_or_Ind);
[DllImport("db2cli", EntryPoint = "SQLGetData")]
internal static extern short SQLGetData(IntPtr StatementHandle, short ColumnNumber, short TargetType, [Out] StringBuilder sb, int BufferLength, out int StrLen_or_Ind);
[DllImport("db2cli", EntryPoint = "SQLColAttributeW")]
internal static extern short SQLColAttribute(IntPtr StatementHandle, short ColumnNumber, short FieldIdentifier, [Out] StringBuilder CharacterAttribute, short BufferLength, out short StringLength, out int NumericAttribute);
[DllImport("db2cli", CharSet = CharSet.Auto, EntryPoint = "SQLDisconnect")]
internal static extern short SQLDisconnect(IntPtr sqlHdbc);
[DllImport("db2cli", EntryPoint = "SQLGetDiagRec")]
internal static extern short SQLGetDiagRec( short handleType, IntPtr handle, short recNum, [Out] StringBuilder sqlState, ref IntPtr nativeErrorPtr, [Out] StringBuilder errorMessage, short bufferLength, ref IntPtr shortTextLengthPtr);
[DllImport("db2cli", EntryPoint = "SQLSetConnectAttr")]
internal static extern short SQLSetConnectAttr(IntPtr sqlHdbc, long sqlAttr, [In] IntPtr sqlValuePtr, long sqlValueLength);
[DllImport("db2cli", EntryPoint = "SQLSetStmtAttr")]
internal static extern short SQLSetStmtAttr(IntPtr sqlHstmt, long sqlAttr, [In] IntPtr sqlValuePtr, long sqlValueLength);
[DllImport("db2cli", EntryPoint = "SQLEndTran")]
internal static extern short SQLEndTran (short handleType, IntPtr handle, short fType);
[DllImport("db2cli", EntryPoint = "SQLCancel")]
internal static extern short SQLCancel(IntPtr handle);
[DllImport("db2cli", EntryPoint = "SQLNumResultCols")]
internal static extern short SQLNumResultCols(IntPtr handle, ref int numCols);
[DllImport("db2cli", EntryPoint = "SQLFetch")]
internal static extern short SQLFetch(IntPtr handle);
[DllImport("db2cli", EntryPoint = "SQLRowCount")]
internal static extern short SQLRowCount(IntPtr stmtHandle, ref int numRows);
[DllImport("db2cli", EntryPoint = "SQLExecute")]
internal static extern short SQLExecute(IntPtr handle);
[DllImport ("db2cli", EntryPoint = "SQLExecDirect")]
internal static extern short SQLExecDirect(IntPtr stmtHandle, string stmt, int length);
[DllImport("db2cli", EntryPoint = "SQLDescribeCol")]
internal static extern short SQLDescribeCol(IntPtr stmtHandle, ushort colNum, StringBuilder colName, short colNameMaxLength, IntPtr colNameLength, ref IntPtr dataType, ref IntPtr colSizePtr, ref IntPtr scalePtr, ref IntPtr nullablePtr );
[DllImport("db2cli", EntryPoint = "SQLBindCol")]
internal static extern short SQLBindCol(IntPtr StatementHandle, short ColumnNumber, short TargetType, IntPtr TargetValue, IntPtr BufferLength, ref IntPtr StrLen_or_Ind);
[DllImport("db2cli", EntryPoint = "SQLDriverConnect")]
internal static extern short SQLDriverConnect(IntPtr hdbc, int centered, [In] string inConnectStr, [In] int inStrLength, [Out] StringBuilder outConnectStr, [Out] int outStrCapacity, [Out] IntPtr outStrLengthReturned, [In] int completion);
[DllImport("db2cli", EntryPoint = "SQLPrepare")]
internal static extern short SQLPrepare(IntPtr stmtHandle, string stmt, int length);
[DllImport("db2cli", EntryPoint = "SQLDescribeParam")]
internal static extern short SQLDescribeParam(IntPtr stmtHandle, short paramNumber,ref IntPtr dataType, ref IntPtr paramSize, ref IntPtr decimalDigits, ref IntPtr nullable);
[DllImport("db2cli", EntryPoint = "SQLNumParams")]
internal static extern short SQLNumParams(IntPtr stmtHandle, ref IntPtr numParams);
[DllImport("db2cli")]
internal static extern short SQLBindParameter(IntPtr stmtHandle, ushort paramNumber,
short dataType, short valueType, short paramType, uint colSize, short decDigits,
IntPtr dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport("db2cli")]
internal static extern short SQLBindParameter(IntPtr stmtHandle, ushort paramNumber,
short dataType, short valueType, short paramType, uint colSize, short decDigits,
byte[] dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport("db2cli", EntryPoint = "SQLBindParameter")]
internal static extern short SQLBindParameter(IntPtr stmtHandle, ushort paramNumber,
short dataType, short valueType, short paramType, uint colSize, short decDigits,
ref int dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport("db2cli", EntryPoint = "SQLBindParameter")]
internal static extern short SQLBindParameter(IntPtr stmtHandle, ushort paramNumber,
short dataType, short valueType, short paramType, uint colSize, short decDigits,
ref double dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport("db2cli", EntryPoint = "SQLDescribeParam")]
internal static extern short SQLDescribeParam(IntPtr stmtHandle, short ParameterNumber, IntPtr DataTypePtr, IntPtr ParameterSizePtr, IntPtr DecimalDigitsPtr, IntPtr NullablePtr);
[DllImport("db2cli", EntryPoint = "SQLGetLength")]
internal static extern short SQLGetLength( IntPtr stmtHandle, short locatorCType, int Locator,
IntPtr stringLength, IntPtr indicatorValue);
[DllImport("db2cli", EntryPoint = "SQLGetPosition")]
internal static extern short SQLGetPosition(IntPtr stmtHandle, short locatorCType, int sourceLocator, int searchLocator,
string searchLiteral, int searchLiteralLength, uint fromPosition, IntPtr locatedAt, IntPtr indicatorValue);
[DllImport("db2cli", EntryPoint = "SQLGetPosition")]
internal static extern short SQLBindFileToCol (IntPtr stmtHandle, ushort colNum, string fileName, IntPtr fileNameLength,
IntPtr fileOptions, short maxFileNameLength, IntPtr stringLength, IntPtr indicatorValue);
[DllImport("db2cli", EntryPoint = "SQLGetPosition")]
internal static extern short SQLBindFileToParam (IntPtr stmtHandle, ushort targetType, short dataType, string fileName,
IntPtr fileNameLength, short maxFileNameLength, IntPtr indicatorValue);
}*/
#endregion
internal class DB2CLIWrapper
{
@@ -16,16 +165,14 @@ namespace IBM.Data.DB2
static public short Initialize(ref IntPtr pEnvHandle)
{
useLibCli = false;
try
{
return DB2CLIWrapper.SQLAllocHandle(DB2Constants.SQL_HANDLE_ENV, IntPtr.Zero, out pEnvHandle);
string OSVersion = Environment.OSVersion.ToString();
useLibCli = true;
if(OSVersion.Substring(0,4)=="Unix"){
useLibCli = false;
}
catch {}
useLibCli = false;
return DB2CLIWrapper.SQLAllocHandle(DB2Constants.SQL_HANDLE_ENV, IntPtr.Zero, out pEnvHandle);
return DB2CLIWrapper.SQLAllocHandle(DB2Constants.SQL_HANDLE_ENV, IntPtr.Zero, out pEnvHandle);
}
static public short SQLAllocHandle(short handleType, IntPtr inputHandle, out IntPtr outputHandle)
{
if(useLibCli)
@@ -122,6 +269,15 @@ namespace IBM.Data.DB2
return StaticWrapperCli.SQLSetStmtAttr(sqlHdbc, sqlAttr, sqlValuePtr, sqlValueLength);
return StaticWrapper36.SQLSetStmtAttr(sqlHdbc, sqlAttr, sqlValuePtr, sqlValueLength);
}
//for bulk operations
static public short SQLSetStmtAttr(IntPtr sqlHdbc, int sqlAttr, ushort[] sqlValuePtr, int sqlValueLength)
{
if(useLibCli)
return StaticWrapperCli.SQLSetStmtAttr(sqlHdbc, sqlAttr, sqlValuePtr, sqlValueLength);
return StaticWrapper36.SQLSetStmtAttr(sqlHdbc, sqlAttr, sqlValuePtr, sqlValueLength);
}
static public short SQLEndTran (short handleType, IntPtr handle, short fType)
{
if(useLibCli)
@@ -182,6 +338,13 @@ namespace IBM.Data.DB2
return StaticWrapperCli.SQLBindParameter(stmtHandle, paramNumber, dataType, valueType, paramType, colSize, decDigits, dataBufferPtr, dataBufferLength, StrLen_or_IndPtr);
return StaticWrapper36.SQLBindParameter(stmtHandle, paramNumber, dataType, valueType, paramType, colSize, decDigits, dataBufferPtr, dataBufferLength, StrLen_or_IndPtr);
}
static public short SQLBindParameter(IntPtr stmtHandle, short paramNumber, short dataType, short valueType, short paramType, int colSize, short decDigits, int[] dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr)
{
if(useLibCli)
return StaticWrapperCli.SQLBindParameter(stmtHandle, paramNumber, dataType, valueType, paramType, colSize, decDigits, dataBufferPtr, dataBufferLength, StrLen_or_IndPtr);
return StaticWrapper36.SQLBindParameter(stmtHandle, paramNumber, dataType, valueType, paramType, colSize, decDigits, dataBufferPtr, dataBufferLength, StrLen_or_IndPtr);
}
public static short SQLGetInfo(IntPtr sqlHdbc, short fInfoType, [Out] StringBuilder rgbInfoValue, short cbInfoValueMax, out short pcbInfoValue)
{
if(useLibCli)
@@ -238,8 +401,14 @@ namespace IBM.Data.DB2
[DllImport(libname, EntryPoint = "SQLSetConnectAttr")]
public static extern short SQLSetConnectAttr(IntPtr sqlHdbc, int sqlAttr, [In] IntPtr sqlValuePtr, int sqlValueLength);
[DllImport(libname, EntryPoint = "SQLSetStmtAttr")]
public static extern short SQLSetStmtAttr(IntPtr sqlHdbc, int sqlAttr, [In] IntPtr sqlValuePtr, int sqlValueLength);
//For bulk operations
[DllImport(libname, EntryPoint = "SQLSetStmtAttr")]
public static extern short SQLSetStmtAttr(IntPtr sqlHdbc, int sqlAttr, ushort[] sqlValuePtr, int sqlValueLength);
[DllImport(libname, EntryPoint = "SQLEndTran")]
public static extern short SQLEndTran (short handleType, IntPtr handle, short fType);
[DllImport(libname, EntryPoint = "SQLCancel")]
@@ -262,6 +431,12 @@ namespace IBM.Data.DB2
public static extern short SQLBindParameter(IntPtr stmtHandle, short paramNumber,
short dataType, short valueType, short paramType, int colSize, short decDigits,
IntPtr dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport(libname)]
public static extern short SQLBindParameter(IntPtr stmtHandle, short paramNumber,
short dataType, short valueType, short paramType, int colSize, short decDigits,
int[] dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport(libname, EntryPoint = "SQLGetInfoW", CharSet=CharSet.Unicode)]
public static extern short SQLGetInfo(IntPtr sqlHdbc, short fInfoType, [Out] StringBuilder rgbInfoValue, short cbInfoValueMax, out short pcbInfoValue);
}
@@ -278,7 +453,7 @@ namespace IBM.Data.DB2
[DllImport(libname, EntryPoint = "SQLFreeStmt")]
public static extern short SQLFreeStmt(IntPtr StatementHandle, short option);
[DllImport(libname, EntryPoint = "SQLConnect")]
[DllImport(libname, EntryPoint = "SQLConnect", CharSet=CharSet.Ansi)]
public static extern short SQLConnect(IntPtr sqlHdbc, string serverName, short serverNameLength, string userName, short userNameLength, string authentication, short authenticationLength);
[DllImport(libname, EntryPoint = "SQLColAttributeW", CharSet=CharSet.Unicode)]
@@ -314,6 +489,11 @@ namespace IBM.Data.DB2
public static extern short SQLSetConnectAttr(IntPtr sqlHdbc, int sqlAttr, [In] IntPtr sqlValuePtr, int sqlValueLength);
[DllImport(libname, EntryPoint = "SQLSetStmtAttr")]
public static extern short SQLSetStmtAttr(IntPtr sqlHdbc, int sqlAttr, [In] IntPtr sqlValuePtr, int sqlValueLength);
//for bulk operations
[DllImport(libname, EntryPoint = "SQLSetStmtAttr")]
public static extern short SQLSetStmtAttr(IntPtr sqlHdbc, int sqlAttr, ushort[] sqlValuePtr, int sqlValueLength);
[DllImport(libname, EntryPoint = "SQLEndTran")]
public static extern short SQLEndTran (short handleType, IntPtr handle, short fType);
[DllImport(libname, EntryPoint = "SQLCancel")]
@@ -336,7 +516,13 @@ namespace IBM.Data.DB2
public static extern short SQLBindParameter(IntPtr stmtHandle, short paramNumber,
short dataType, short valueType, short paramType, int colSize, short decDigits,
IntPtr dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport(libname, EntryPoint = "SQLGetInfo")]
[DllImport(libname)]
public static extern short SQLBindParameter(IntPtr stmtHandle, short paramNumber,
short dataType, short valueType, short paramType, int colSize, short decDigits,
int[] dataBufferPtr, int dataBufferLength, IntPtr StrLen_or_IndPtr);
[DllImport(libname, EntryPoint = "SQLGetInfoW", CharSet=CharSet.Unicode)]
public static extern short SQLGetInfo(IntPtr sqlHdbc, short fInfoType, [Out] StringBuilder rgbInfoValue, short cbInfoValueMax, out short pcbInfoValue);
}
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace IBM.Data.DB2
+437 -405
View File
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Runtime.InteropServices;
@@ -10,20 +31,21 @@ namespace IBM.Data.DB2
{
#region Private data members
private WeakReference refDataReader;
private string commandText;
private CommandType commandType = CommandType.Text;
private DB2Connection db2Conn;
private DB2Transaction db2Trans;
private int commandTimeout = 30;
private bool prepared = false;
private IntPtr hwndStmt = IntPtr.Zero; //Our statement handle
private DB2ParameterCollection parameters = new DB2ParameterCollection();
private bool disposed = false;
private bool statementOpen;
private CommandBehavior previousBehavior;
private UpdateRowSource updatedRowSource = UpdateRowSource.Both;
private IntPtr statementParametersMemory;
private WeakReference refDataReader;
private string commandText;
private CommandType commandType = CommandType.Text;
private DB2Connection db2Conn;
private DB2Transaction db2Trans;
private int commandTimeout = 30;
private bool prepared = false;
private bool binded = false;
private IntPtr hwndStmt = IntPtr.Zero; //Our statement handle
private DB2ParameterCollection parameters = new DB2ParameterCollection();
private bool disposed = false;
private bool statementOpen;
private CommandBehavior previousBehavior;
private UpdateRowSource updatedRowSource = UpdateRowSource.Both;
private IntPtr statementParametersMemory;
private int statementParametersMemorySize;
#endregion
@@ -34,114 +56,113 @@ namespace IBM.Data.DB2
{
hwndStmt = IntPtr.Zero;
}
public DB2Command(string commandStr)
public DB2Command(string commandStr):this()
{
commandText = commandStr;
hwndStmt = IntPtr.Zero;
}
public DB2Command(string commandStr, DB2Connection con) :this()
public DB2Command(string commandStr, DB2Connection con) : this()
{
db2Conn = con;
commandText = commandStr;
if(con != null)
{
con.AddCommand(this);
if(con != null)
{
con.AddCommand(this);
}
}
public DB2Command (string commandStr, DB2Connection con, DB2Transaction trans)
{
commandText = commandStr;
db2Conn = con;
db2Trans = trans;
if(con != null)
{
con.AddCommand(this);
commandText = commandStr;
db2Conn = con;
db2Trans = trans;
if(con != null)
{
con.AddCommand(this);
}
}
#endregion
#region Dispose
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected override void Dispose(bool disposing)
{
if(!disposed)
{
if(disposing)
{
ConnectionClosed();
if(db2Conn != null)
{
db2Conn.RemoveCommand(this);
db2Conn = null;
}
}
if(statementParametersMemory != IntPtr.Zero)
{
Marshal.FreeHGlobal(statementParametersMemory);
statementParametersMemory = IntPtr.Zero;
}
}
base.Dispose(disposing);
disposed = true;
}
~DB2Command()
{
Dispose(false);
}
internal void DataReaderClosed()
{
CloseStatementHandle(false);
if((previousBehavior & CommandBehavior.CloseConnection) != 0)
Connection.Close();
refDataReader = null;
}
private void CloseStatementHandle(bool dispose)
{
if(hwndStmt != IntPtr.Zero)
{
if(statementOpen)
{
short sqlRet = DB2CLIWrapper.SQLFreeStmt(hwndStmt, DB2Constants.SQL_CLOSE);
}
if((!prepared && statementOpen) ||
dispose)
{
short sqlRet = DB2CLIWrapper.SQLFreeHandle(DB2Constants.SQL_HANDLE_STMT, hwndStmt);
hwndStmt = IntPtr.Zero;
prepared = false;
}
statementOpen = false;
}
}
internal void ConnectionClosed()
{
DB2DataReader reader = null;
if((refDataReader != null) && refDataReader.IsAlive)
{
reader = (DB2DataReader)refDataReader.Target;
}
if((reader != null) && refDataReader.IsAlive)
{
reader.Dispose();
refDataReader = null;
}
CloseStatementHandle(true);
db2Trans = null;
}
#region Dispose
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected override void Dispose(bool disposing)
{
if(!disposed)
{
if(disposing)
{
ConnectionClosed();
if(db2Conn != null)
{
db2Conn.RemoveCommand(this);
db2Conn = null;
}
}
if(statementParametersMemory != IntPtr.Zero)
{
Marshal.FreeHGlobal(statementParametersMemory);
statementParametersMemory = IntPtr.Zero;
}
}
base.Dispose(disposing);
disposed = true;
}
~DB2Command()
{
Dispose(false);
}
internal void DataReaderClosed()
{
CloseStatementHandle(false);
if((previousBehavior & CommandBehavior.CloseConnection) != 0)
Connection.Close();
refDataReader = null;
}
private void CloseStatementHandle(bool dispose)
{
if(hwndStmt != IntPtr.Zero)
{
if(statementOpen)
{
short sqlRet = DB2CLIWrapper.SQLFreeStmt(hwndStmt, DB2Constants.SQL_CLOSE);
}
if((!prepared && statementOpen) ||
dispose)
{
short sqlRet = DB2CLIWrapper.SQLFreeHandle(DB2Constants.SQL_HANDLE_STMT, hwndStmt);
hwndStmt = IntPtr.Zero;
prepared = false;
}
statementOpen = false;
}
}
internal void ConnectionClosed()
{
DB2DataReader reader = null;
if((refDataReader != null) && refDataReader.IsAlive)
{
reader = (DB2DataReader)refDataReader.Target;
}
if((reader != null) && refDataReader.IsAlive)
{
reader.Dispose();
refDataReader = null;
}
CloseStatementHandle(true);
db2Trans = null;
}
#endregion
#region SelfDescribe property
@@ -185,18 +206,18 @@ namespace IBM.Data.DB2
///
/// The Timeout property states how long we wait for results to return
///
public int CommandTimeout
{
get
{
return commandTimeout;
}
set
{
commandTimeout = value;
if(hwndStmt != IntPtr.Zero)
SetStatementTimeout();
}
public int CommandTimeout
{
get
{
return commandTimeout;
}
set
{
commandTimeout = value;
if(hwndStmt != IntPtr.Zero)
SetStatementTimeout();
}
}
#endregion
@@ -231,24 +252,24 @@ namespace IBM.Data.DB2
}
}
public DB2Connection Connection
{
get
{
return db2Conn;
}
set
{
if(db2Conn != null)
{
db2Conn.RemoveCommand(this);
}
db2Conn = value;
if(db2Conn != null)
{
db2Conn.AddCommand(this);
}
}
public DB2Connection Connection
{
get
{
return db2Conn;
}
set
{
if(db2Conn != null)
{
db2Conn.RemoveCommand(this);
}
db2Conn = value;
if(db2Conn != null)
{
db2Conn.AddCommand(this);
}
}
}
#endregion
@@ -288,25 +309,25 @@ namespace IBM.Data.DB2
}
}
public DB2Transaction Transaction
{
get
{
return db2Trans;
}
set
{
db2Trans = value;
}
public DB2Transaction Transaction
{
get
{
return db2Trans;
}
set
{
db2Trans = value;
}
}
#endregion
#region UpdatedRowSource property
public UpdateRowSource UpdatedRowSource
{
get { return updatedRowSource; }
set { updatedRowSource = value; }
public UpdateRowSource UpdatedRowSource
{
get { return updatedRowSource; }
set { updatedRowSource = value; }
}
#endregion
@@ -325,23 +346,23 @@ namespace IBM.Data.DB2
#region AllocateStatement function
internal void AllocateStatement(string location)
{
if (db2Conn.DBHandle.ToInt32() == 0) return;
short sqlRet;
sqlRet = DB2CLIWrapper.SQLAllocHandle(DB2Constants.SQL_HANDLE_STMT, db2Conn.DBHandle, out hwndStmt);
if ((sqlRet != DB2Constants.SQL_SUCCESS) && (sqlRet != DB2Constants.SQL_SUCCESS_WITH_INFO))
throw new DB2Exception(DB2Constants.SQL_HANDLE_DBC, db2Conn.DBHandle, location +": Unable to allocate statement handle.");
parameters.HwndStmt = hwndStmt;
SetStatementTimeout();
internal void AllocateStatement(string location)
{
if (db2Conn.DBHandle.ToInt32() == 0) return;
short sqlRet;
sqlRet = DB2CLIWrapper.SQLAllocHandle(DB2Constants.SQL_HANDLE_STMT, db2Conn.DBHandle, out hwndStmt);
if ((sqlRet != DB2Constants.SQL_SUCCESS) && (sqlRet != DB2Constants.SQL_SUCCESS_WITH_INFO))
throw new DB2Exception(DB2Constants.SQL_HANDLE_DBC, db2Conn.DBHandle, location +": Unable to allocate statement handle.");
parameters.HwndStmt = hwndStmt;
SetStatementTimeout();
}
private void SetStatementTimeout()
{
short sqlRet = DB2CLIWrapper.SQLSetStmtAttr(hwndStmt, DB2Constants.SQL_ATTR_QUERY_TIMEOUT, new IntPtr(commandTimeout), 0);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Set statement timeout.", db2Conn);
private void SetStatementTimeout()
{
short sqlRet = DB2CLIWrapper.SQLSetStmtAttr(hwndStmt, DB2Constants.SQL_ATTR_QUERY_TIMEOUT, new IntPtr(commandTimeout), 0);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Set statement timeout.", db2Conn);
}
#endregion
@@ -349,13 +370,13 @@ namespace IBM.Data.DB2
/// <summary>
/// Attempt to cancel an executing command
/// </summary>
public void Cancel()
{
if(hwndStmt == IntPtr.Zero)
{
throw new InvalidOperationException("Nothing to Cancel.");
}
DB2CLIWrapper.SQLCancel(hwndStmt);
public void Cancel()
{
if(hwndStmt == IntPtr.Zero)
{
throw new InvalidOperationException("Nothing to Cancel.");
}
DB2CLIWrapper.SQLCancel(hwndStmt);
}
#endregion
@@ -371,161 +392,135 @@ namespace IBM.Data.DB2
#region ExecuteNonQuery
public int ExecuteNonQuery()
{
ExecuteNonQueryInternal(CommandBehavior.Default);
int numRows;
//How many rows affected. numRows will be -1 if we aren't dealing with an Insert, Delete or Update, or if the statement did not execute successfully
short sqlRet = DB2CLIWrapper.SQLRowCount(hwndStmt, out numRows);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLExecDirect error.", db2Conn);
do
{
sqlRet = DB2CLIWrapper.SQLMoreResults(this.hwndStmt);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLMoreResults", db2Conn);
} while(sqlRet != DB2Constants.SQL_NO_DATA_FOUND);
CloseStatementHandle(false);
return numRows;
}
public void ExecuteNonQueryInternal(CommandBehavior behavior)
{
short sqlRet;
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
if((refDataReader != null) &&
(refDataReader.IsAlive))
throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
DB2Transaction connectionTransaction = null;
if(db2Conn.WeakRefTransaction != null)
connectionTransaction = (DB2Transaction)db2Conn.WeakRefTransaction.Target;
if(!Object.ReferenceEquals(connectionTransaction, Transaction))
{
if(Transaction == null)
throw new InvalidOperationException("A transaction was started in the connection, but the command doesn't specify a transaction");
throw new InvalidOperationException("The transaction specified at the connection doesn't belong to the connection");
}
if (hwndStmt == IntPtr.Zero)
{
AllocateStatement("InternalExecuteNonQuery");
previousBehavior = 0;
}
if(previousBehavior != behavior)
{
if(((previousBehavior ^ behavior) & CommandBehavior.SchemaOnly) != 0)
{
sqlRet = DB2CLIWrapper.SQLSetStmtAttr(hwndStmt, DB2Constants.SQL_ATTR_DEFERRED_PREPARE,
new IntPtr((behavior & CommandBehavior.SchemaOnly) != 0 ? 0 : 1), 0);
// TODO: don't check. what if it is not supported???
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Defered prepare.", db2Conn);
previousBehavior = (previousBehavior & ~CommandBehavior.SchemaOnly) | (behavior & CommandBehavior.SchemaOnly);
}
if(((previousBehavior ^ behavior) & CommandBehavior.SingleRow) != 0)
{
sqlRet = DB2CLIWrapper.SQLSetStmtAttr(hwndStmt, DB2Constants.SQL_ATTR_MAX_ROWS,
new IntPtr((behavior & CommandBehavior.SingleRow) == 0 ? 0 : 1), 0);
// TODO: don't check. what if it is not supported???
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Set max rows", db2Conn);
previousBehavior = (previousBehavior & ~CommandBehavior.SingleRow) | (behavior & CommandBehavior.SingleRow);
}
previousBehavior = behavior;
}
if((Transaction == null) &&
!db2Conn.openConnection.autoCommit)
{
sqlRet = DB2CLIWrapper.SQLSetConnectAttr(db2Conn.DBHandle, DB2Constants.SQL_ATTR_AUTOCOMMIT, new IntPtr(DB2Constants.SQL_AUTOCOMMIT_ON), 0);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, db2Conn.DBHandle, "Error setting AUTOCOMMIT ON in transaction CTOR.", db2Conn);
db2Conn.openConnection.autoCommit = true;
sqlRet = DB2CLIWrapper.SQLSetConnectAttr(db2Conn.DBHandle, DB2Constants.SQL_ATTR_TXN_ISOLATION, new IntPtr(DB2Constants.SQL_TXN_READ_COMMITTED), 0);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, db2Conn.DBHandle, "Error setting isolation level.", db2Conn);
}
if ((commandText == null) ||(commandText.Length == 0))
throw new InvalidOperationException("Command string is empty");
if(CommandType.StoredProcedure == commandType && !commandText.StartsWith("CALL "))
commandText = "CALL " + commandText;
// if(!prepared)
// {
// Prepare();
// }
if((behavior & CommandBehavior.SchemaOnly) != 0)
{
if(!prepared)
{
Prepare();
}
}
else
{
if(statementParametersMemory != IntPtr.Zero)
{
Marshal.FreeHGlobal(statementParametersMemory);
statementParametersMemory = IntPtr.Zero;
}
if(parameters.Count > 0)
{
statementParametersMemorySize = 0;
for(int i = 0; i < parameters.Count; i++)
{
DB2Parameter param = parameters[i];
param.CalculateRequiredmemory();
statementParametersMemorySize += param.requiredMemory + 8;
}
statementParametersMemory = Marshal.AllocHGlobal(statementParametersMemorySize);
int offset = 0;
for(int i = 0; i < parameters.Count; i++)
{
DB2Parameter param = parameters[i];
//param.internalBuffer = new IntPtr(statementParametersMemory.ToInt64() + offset);
int memSize = statementParametersMemory.ToInt32() + offset;
param.internalBuffer = Marshal.AllocHGlobal(memSize);
offset += param.requiredMemory;
//param.internalLengthBuffer = new IntPtr(statementParametersMemory.ToInt32() + offset);
param.internalLengthBuffer = Marshal.AllocHGlobal(4);
offset += 8;
sqlRet = param.Bind(this.hwndStmt, (short)(i + 1));
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Error binding parameter in DB2Command: ", db2Conn);
}
}
if (prepared)
{
sqlRet = DB2CLIWrapper.SQLExecute(hwndStmt);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLExecute error.", db2Conn);
}
else
{
sqlRet = DB2CLIWrapper.SQLExecDirect(hwndStmt, commandText, commandText.Length);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLExecDirect error.", db2Conn);
}
statementOpen = true;
parameters.GetOutValues();
if(statementParametersMemory != IntPtr.Zero)
{
Marshal.FreeHGlobal(statementParametersMemory);
statementParametersMemory = IntPtr.Zero;
}
}
public int ExecuteNonQuery()
{
ExecuteNonQueryInternal(CommandBehavior.Default);
int numRows;
//How many rows affected. numRows will be -1 if we aren't dealing with an Insert, Delete or Update, or if the statement did not execute successfully
short sqlRet = DB2CLIWrapper.SQLRowCount(hwndStmt, out numRows);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLExecDirect error.", db2Conn);
do
{
sqlRet = DB2CLIWrapper.SQLMoreResults(this.hwndStmt);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLMoreResults", db2Conn);
} while(sqlRet != DB2Constants.SQL_NO_DATA_FOUND);
CloseStatementHandle(false);
return numRows;
}
public void ExecuteNonQueryInternal(CommandBehavior behavior)
{
short sqlRet;
if(prepared && binded)
{
sqlRet = DB2CLIWrapper.SQLExecute(hwndStmt);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLExecute error.", db2Conn);
return;
}
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
if((refDataReader != null) &&
(refDataReader.IsAlive))
throw new InvalidOperationException("There is already an open DataReader associated with this Connection which must be closed first.");
DB2Transaction connectionTransaction = null;
if(db2Conn.WeakRefTransaction != null)
connectionTransaction = (DB2Transaction)db2Conn.WeakRefTransaction.Target;
if(!Object.ReferenceEquals(connectionTransaction, Transaction))
{
if(Transaction == null)
throw new InvalidOperationException("A transaction was started in the connection, but the command doesn't specify a transaction");
throw new InvalidOperationException("The transaction specified at the connection doesn't belong to the connection");
}
if (hwndStmt == IntPtr.Zero)
{
AllocateStatement("InternalExecuteNonQuery");
previousBehavior = 0;
}
if(previousBehavior != behavior)
{
if(((previousBehavior ^ behavior) & CommandBehavior.SchemaOnly) != 0)
{
sqlRet = DB2CLIWrapper.SQLSetStmtAttr(hwndStmt, DB2Constants.SQL_ATTR_DEFERRED_PREPARE,
new IntPtr((behavior & CommandBehavior.SchemaOnly) != 0 ? 0 : 1), 0);
// TODO: don't check. what if it is not supported???
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Defered prepare.", db2Conn);
previousBehavior = (previousBehavior & ~CommandBehavior.SchemaOnly) | (behavior & CommandBehavior.SchemaOnly);
}
if(((previousBehavior ^ behavior) & CommandBehavior.SingleRow) != 0)
{
sqlRet = DB2CLIWrapper.SQLSetStmtAttr(hwndStmt, DB2Constants.SQL_ATTR_MAX_ROWS,
new IntPtr((behavior & CommandBehavior.SingleRow) == 0 ? 0 : 1), 0);
// TODO: don't check. what if it is not supported???
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Set max rows", db2Conn);
previousBehavior = (previousBehavior & ~CommandBehavior.SingleRow) | (behavior & CommandBehavior.SingleRow);
}
previousBehavior = behavior;
}
if((Transaction == null) &&
!db2Conn.openConnection.autoCommit)
{
sqlRet = DB2CLIWrapper.SQLSetConnectAttr(db2Conn.DBHandle, DB2Constants.SQL_ATTR_AUTOCOMMIT, new IntPtr(DB2Constants.SQL_AUTOCOMMIT_ON), 0);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, db2Conn.DBHandle, "Error setting AUTOCOMMIT ON in transaction CTOR.", db2Conn);
db2Conn.openConnection.autoCommit = true;
sqlRet = DB2CLIWrapper.SQLSetConnectAttr(db2Conn.DBHandle, DB2Constants.SQL_ATTR_TXN_ISOLATION, new IntPtr(DB2Constants.SQL_TXN_READ_COMMITTED), 0);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, db2Conn.DBHandle, "Error setting isolation level.", db2Conn);
}
if ((commandText == null) ||(commandText.Length == 0))
throw new InvalidOperationException("Command string is empty");
if(CommandType.StoredProcedure == commandType && !commandText.StartsWith("CALL "))
commandText = "CALL " + commandText + " ()";
if((behavior & CommandBehavior.SchemaOnly) != 0)
{
if(!prepared)
{
Prepare();
}
}
else
{
if(statementParametersMemory != IntPtr.Zero)
{
Marshal.FreeHGlobal(statementParametersMemory);
statementParametersMemory = IntPtr.Zero;
}
BindParams();
if (prepared)
{
sqlRet = DB2CLIWrapper.SQLExecute(hwndStmt);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLExecute error.", db2Conn);
}
else
{
sqlRet = DB2CLIWrapper.SQLExecDirect(hwndStmt, commandText, commandText.Length);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLExecDirect error.", db2Conn);
}
statementOpen = true;
parameters.GetOutValues();
if(statementParametersMemory != IntPtr.Zero)
{
Marshal.FreeHGlobal(statementParametersMemory);
statementParametersMemory = IntPtr.Zero;
}
}
}
#endregion
@@ -533,34 +528,34 @@ namespace IBM.Data.DB2
///
///ExecuteReader
///
IDataReader IDbCommand.ExecuteReader()
{
return ExecuteReader(CommandBehavior.Default);
}
IDataReader IDbCommand.ExecuteReader(CommandBehavior behavior)
{
return ExecuteReader(behavior);
}
public DB2DataReader ExecuteReader()
{
return ExecuteReader(CommandBehavior.Default);
}
public DB2DataReader ExecuteReader(CommandBehavior behavior)
{
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
DB2DataReader reader;
ExecuteNonQueryInternal(behavior);
reader = new DB2DataReader(db2Conn, this, behavior);
refDataReader = new WeakReference(reader);
return reader;
IDataReader IDbCommand.ExecuteReader()
{
return ExecuteReader(CommandBehavior.Default);
}
IDataReader IDbCommand.ExecuteReader(CommandBehavior behavior)
{
return ExecuteReader(behavior);
}
public DB2DataReader ExecuteReader()
{
return ExecuteReader(CommandBehavior.Default);
}
public DB2DataReader ExecuteReader(CommandBehavior behavior)
{
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
DB2DataReader reader;
ExecuteNonQueryInternal(behavior);
reader = new DB2DataReader(db2Conn, this, behavior);
refDataReader = new WeakReference(reader);
return reader;
}
#endregion
@@ -568,65 +563,102 @@ namespace IBM.Data.DB2
///
/// ExecuteScalar
///
public object ExecuteScalar()
{
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
using(DB2DataReader reader = ExecuteReader(CommandBehavior.SingleResult | CommandBehavior.SingleRow))
{
if(reader.Read() && (reader.FieldCount > 0))
{
return reader[0];
}
}
return null;
public object ExecuteScalar()
{
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
using(DB2DataReader reader = ExecuteReader(CommandBehavior.SingleResult | CommandBehavior.SingleRow))
{
if(reader.Read() && (reader.FieldCount > 0))
{
return reader[0];
}
}
return null;
}
#endregion
#region Prepare ()
public void Prepare ()
{
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
CloseStatementHandle(false);
if (hwndStmt == IntPtr.Zero)
{
AllocateStatement("InternalExecuteNonQuery");
}
short sqlRet = 0;
IntPtr numParams = IntPtr.Zero;
sqlRet = DB2CLIWrapper.SQLPrepare(hwndStmt, commandText, commandText.Length);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLPrepare error.", db2Conn);
statementOpen = true;
prepared=true;
public void Prepare ()
{
if((db2Conn == null) || (db2Conn.State != ConnectionState.Open))
throw new InvalidOperationException("Prepare needs an open connection");
CloseStatementHandle(false);
if (hwndStmt == IntPtr.Zero)
{
AllocateStatement("InternalExecuteNonQuery");
}
short sqlRet = 0;
IntPtr numParams = IntPtr.Zero;
sqlRet = DB2CLIWrapper.SQLPrepare(hwndStmt, commandText, commandText.Length);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "SQLPrepare error.", db2Conn);
statementOpen = true;
prepared=true;
}
#endregion
#region ICloneable Members
object ICloneable.Clone()
private string AddCallParam( string _cmString)
{
DB2Command clone = new DB2Command();
clone.Connection = Connection;
clone.commandText = commandText;
clone.commandType = commandType;
clone.Transaction = db2Trans;
clone.commandTimeout = commandTimeout;
clone.updatedRowSource = updatedRowSource;
clone.parameters = new DB2ParameterCollection();
for(int i = 0; i < parameters.Count; i++)
clone.Parameters.Add(((ICloneable)parameters[i]).Clone());
return clone;
if(_cmString.IndexOf("()") != -1)
{
return _cmString.Replace("()","(?)");
}
return _cmString.Replace(")", ",?)");
}
private void BindParams()
{
if(parameters.Count > 0)
{
statementParametersMemorySize = 0;
int offset = 0;
short sqlRet;
for(int i = 0; i < parameters.Count; i++)
{
if(commandType == CommandType.StoredProcedure)
{
commandText = AddCallParam(commandText);
}
DB2Parameter param = parameters[i];
param.CalculateRequiredmemory();
statementParametersMemorySize += param.requiredMemory + 8;
param.internalBuffer = Marshal.AllocHGlobal(param.requiredMemory);
offset += param.requiredMemory;
param.internalLengthBuffer = Marshal.AllocHGlobal(4);
Marshal.WriteInt32(param.internalLengthBuffer, param.requiredMemory);
sqlRet = param.Bind(this.hwndStmt, (short)(i + 1));
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Error binding parameter in DB2Command: ", db2Conn);
}
binded = true;
}
}
#region ICloneable Members
object ICloneable.Clone()
{
DB2Command clone = new DB2Command();
clone.Connection = Connection;
clone.commandText = commandText;
clone.commandType = commandType;
clone.Transaction = db2Trans;
clone.commandTimeout = commandTimeout;
clone.updatedRowSource = updatedRowSource;
clone.parameters = new DB2ParameterCollection();
for(int i = 0; i < parameters.Count; i++)
clone.Parameters.Add(((ICloneable)parameters[i]).Clone());
return clone;
}
#endregion
}
}
+291
View File
@@ -0,0 +1,291 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.ComponentModel;
namespace IBM.Data.DB2
{
public sealed class DB2CommandBuilder : Component
{
bool disposed = false;
private DB2DataAdapter dataAdapter;
private DB2Command insertCommand;
private DB2Command updateCommand;
private DB2Command deleteCommand;
private string tableName = String.Empty;
public DB2CommandBuilder ()
{}
public DB2CommandBuilder (DB2DataAdapter adapter)
{
DataAdapter = adapter;
}
public DB2DataAdapter DataAdapter
{
get
{
return dataAdapter;
}
set
{
if (dataAdapter != null)
{
throw new Exception ("DataAdapter is already set");
}
dataAdapter = value;
string select_text = dataAdapter.SelectCommand.CommandText;
string[] words = select_text.Split(new char [] {' '});
bool from_found = false;
for (int i = 0; i < words.Length; i++)
{
if (from_found && (words[i] != String.Empty))
{
tableName = words[i];
break;
}
if (words[i].ToLower() == "from")
{
from_found = true;
}
}
}
}
public string QuotePrefix
{
get
{
return "";
}
set
{ }
}
public string QuoteSuffix
{
get
{
return "";
}
set
{ }
}
public static void DeriveParameters (DB2Command command)
{}
public DB2Command GetInsertCommand ()
{
DataTable dt = GetSchema();
if (insertCommand == null)
{
string fields = "";
string values = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
//DataColumn column = dt.Columns[i];
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if (fields.Length != 0 && !((bool)dr["IsAutoIncrement"]))
{
fields += ", ";
values += ", ";
}
if(!((bool)dr["IsAutoIncrement"]))
{
fields += column.ColumnName;
//values += ":v_" + column.ColumnName;
values += "?";
}
}
if (tableName == String.Empty)
{
tableName = dt.TableName;
}
DB2Command cmdaux = new DB2Command("insert into " + tableName + " (" + fields + ") values (" + values + ")", dataAdapter.SelectCommand.Connection);
for (int i = 0;i < dt.Rows.Count;i++)
{
//DataColumn column = dt.Columns[i];
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if (!((bool)dr["IsAutoIncrement"]))
{
DB2Parameter aux = new DB2Parameter("v_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
aux.SourceColumn = column.ColumnName;
cmdaux.Parameters.Add(aux);
}
}
insertCommand = cmdaux;
}
return insertCommand;
}
public DB2Command GetUpdateCommand ()
{
DataTable dt = GetSchema();
if (updateCommand == null)
{
string sets = "";
string wheres = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
if (sets.Length != 0 && !((bool)dt.Rows[i]["IsAutoIncrement"]))
{
sets += ", ";
}
if (i != 0)
{
wheres += " and ";
}
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if(!((bool)dr["IsAutoIncrement"])){sets += String.Format("{0} = ? ", column.ColumnName);}
wheres += String.Format("(({0} is null) or ({0} = ?))", column.ColumnName);
}
if (tableName == String.Empty)
{
tableName = (string)dt.Rows[0]["BaseTableName"];
}
DB2Command cmdaux = new DB2Command("update " + tableName + " set " + sets + " where ( " + wheres + " )", dataAdapter.SelectCommand.Connection);
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if (!((bool)dr["IsAutoIncrement"]))
{
DB2Parameter aux = new DB2Parameter("s_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
aux.SourceColumn = column.ColumnName;
aux.SourceVersion = DataRowVersion.Current;
cmdaux.Parameters.Add(aux);
}
}
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
DB2Parameter aux = new DB2Parameter("w_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
aux.SourceColumn = column.ColumnName;
aux.SourceVersion = DataRowVersion.Original;
cmdaux.Parameters.Add(aux);
}
updateCommand = cmdaux;
}
return updateCommand;
}
public DB2Command GetDeleteCommand ()
{
DataTable dt = GetSchema();
if (deleteCommand == null)
{
string wheres = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
//DataColumn column = row.Table.Columns[i];
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if (i != 0)
{
wheres += " and ";
}
//wheres += String.Format("(({0} is null) or ({0} = v_{0}))", column.ColumnName);
wheres += String.Format("(({0} is null) or ({0} = ?))", column.ColumnName);
}
if (tableName == String.Empty)
{
tableName = (string)dt.Rows[0]["BaseTableName"];
}
DB2Command cmdaux = new DB2Command("delete from " + tableName + " where ( " + wheres + " )", dataAdapter.SelectCommand.Connection);
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
DB2Parameter aux = new DB2Parameter("v_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
aux.SourceColumn = column.ColumnName;
aux.SourceVersion = DataRowVersion.Original;
cmdaux.Parameters.Add(aux);
}
deleteCommand = cmdaux;
}
return deleteCommand;
}
public void RefreshSchema ()
{
insertCommand = null;
updateCommand = null;
deleteCommand = null;
}
private DataTable GetSchema()
{
dataAdapter.SelectCommand.Connection.Open();
DB2Command cmd = new DB2Command(dataAdapter.SelectCommand.CommandText, dataAdapter.SelectCommand.Connection);
DB2DataReader fake = cmd.ExecuteReader(CommandBehavior.KeyInfo);
DataTable dt = fake.GetSchemaTable();
fake.Close();
dataAdapter.SelectCommand.Connection.Close();
return dt;
}
protected override void Dispose (bool disposing)
{
if (!disposed)
{
if (disposing)
{
if (insertCommand != null)
{
insertCommand.Dispose();
}
if (updateCommand != null)
{
updateCommand.Dispose();
}
if (deleteCommand != null)
{
deleteCommand.Dispose();
}
}
}
}
}
}
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Collections.Specialized;
@@ -9,7 +30,7 @@ namespace IBM.Data.DB2
{
public sealed class DB2Connection : System.ComponentModel.Component, IDbConnection, ICloneable
public class DB2Connection : System.ComponentModel.Component, IDbConnection, ICloneable
{
#region private data members
@@ -25,7 +46,9 @@ namespace IBM.Data.DB2
#region Constructors
public DB2Connection()
{
{
connectionTimeout = 15;
}
public DB2Connection(string conString)
@@ -84,6 +107,7 @@ namespace IBM.Data.DB2
{
get
{
//if ((long)dbHandle.ToPointer() == DB2Constants.SQL_NULL_HANDLE)
if (openConnection == null)
return ConnectionState.Closed;
return ConnectionState.Open;
@@ -246,6 +270,7 @@ namespace IBM.Data.DB2
#endregion
#region Open
unsafe public void Open()
{
if(disposed)
@@ -1,194 +1,214 @@
using System;
using System.Collections;
using System.Text;
using System.Threading;
namespace IBM.Data.DB2
{
/// <summary>
///
/// </summary>
/// <remarks>One connection pool per connectionstring</remarks>
internal sealed class DB2ConnectionPool
{
private ArrayList openFreeConnections; // list of pooled connections sorted by age. First connection is present at index 'connectionsUsableOffset'
private Queue openFreeMinimalAllocated;
private int connectionsOpen; // total number of connections open (in pool, an in use by application)
private int connectionsInUse; // total connection in use by application
private int connectionsUsableOffset; // Offset to the first pooled connection in 'openFreeConnections'
private Timer timer;
public string databaseProductName;
public string databaseVersion;
public int majorVersion;
public int minorVersion;
private DB2ConnectionSettings connectionSettings;
public DB2ConnectionPool(DB2ConnectionSettings connectionSettings)
{
this.connectionSettings = connectionSettings;
openFreeConnections = new ArrayList();
}
public DB2ConnectionSettings ConnectionSettings
{
get { return connectionSettings; }
}
public DB2OpenConnection GetOpenConnection(DB2Connection db2Conn)
{
DB2OpenConnection connection = null;
lock(openFreeConnections.SyncRoot)
{
if((connectionSettings.ConnectionPoolSizeMax > 0) &&
(connectionsOpen >= connectionSettings.ConnectionPoolSizeMax))
{
throw new ArgumentException("Maximum connections reached for connectionstring");
}
while(connectionsOpen > connectionsInUse)
{
connection = (DB2OpenConnection)openFreeConnections[openFreeConnections.Count - 1];
openFreeConnections.RemoveAt(openFreeConnections.Count - 1);
// check if connection is dead
int isDead;
short sqlRet = DB2CLIWrapper.SQLGetConnectAttr(connection.DBHandle, DB2Constants.SQL_ATTR_CONNECTION_DEAD, out isDead, 0, IntPtr.Zero);
if(((sqlRet == DB2Constants.SQL_SUCCESS_WITH_INFO) || (sqlRet == DB2Constants.SQL_SUCCESS)) &&
(isDead == DB2Constants.SQL_CD_FALSE))
{
connectionsInUse++;
break;
}
else
{
connectionsOpen--;
connection.Dispose();
connection = null;
}
}
if(connectionsOpen == connectionsInUse)
{
if(timer != null)
{
timer.Dispose();
timer = null;
}
}
}
if(connection == null)
{
openFreeConnections.Clear();
connectionsUsableOffset = 0;
connection = new DB2OpenConnection(connectionSettings, db2Conn);
connectionsOpen++;
connectionsInUse++;
}
return connection;
}
private void DisposeTimedoutConnections(object state)
{
lock(openFreeConnections.SyncRoot)
{
if(timer != null)
{
TimeSpan timeToDispose = TimeSpan.Zero;
DB2OpenConnection connection;
while(connectionsOpen > connectionsInUse)
{
connection = (DB2OpenConnection)openFreeConnections[connectionsUsableOffset];
timeToDispose = connection.poolDisposalTime.Subtract(DateTime.Now);
if((timeToDispose.Ticks < 0) || // time to die
(timeToDispose > connectionSettings.ConnectionLifeTime)) // messing with system clock
{
connection.Dispose();
openFreeConnections[connectionsUsableOffset] = null;
connectionsOpen--;
connectionsUsableOffset++;
}
else
{
break;
}
}
if(connectionsOpen > connectionsInUse)
{
connection = (DB2OpenConnection)openFreeConnections[connectionsUsableOffset];
timer.Change(timeToDispose, new TimeSpan(-1));
}
else
{
timer.Dispose();
timer = null;
}
}
if((connectionsUsableOffset > (openFreeConnections.Capacity / 2)) &&
(connectionsOpen > connectionsInUse))
{
openFreeConnections.RemoveRange(0, connectionsUsableOffset); // cleanup once in a while
connectionsUsableOffset = 0;
}
}
}
public void AddToFreeConnections(DB2OpenConnection connection)
{
lock(openFreeConnections.SyncRoot)
{
connection.poolDisposalTime = DateTime.Now.Add(connectionSettings.ConnectionLifeTime);
if(timer == null)
{
timer = new Timer(new TimerCallback(DisposeTimedoutConnections), null,
connectionSettings.ConnectionLifeTime, new TimeSpan(-1));
}
connectionsInUse--;
openFreeConnections.Add(connection);
}
}
public void OpenConnectionFinalized()
{
lock(openFreeConnections.SyncRoot)
{
connectionsOpen--;
connectionsInUse--;
}
}
/// <summary>
/// Find a specific connection pool
/// </summary>
/// <param name="connectionString"></param>
/// <returns></returns>
static public DB2ConnectionPool FindConnectionPool(string connectionString)
{
return (DB2ConnectionPool)DB2Environment.Instance.connectionPools[connectionString];
}
/// <summary>
/// Get a connection pool. If it doesn't exist yet, create it
/// </summary>
/// <param name="connectionSettings"></param>
/// <returns></returns>
static public DB2ConnectionPool GetConnectionPool(DB2ConnectionSettings connectionSettings)
{
DB2Environment environment = DB2Environment.Instance;
lock(environment.connectionPools.SyncRoot)
{
DB2ConnectionPool pool = (DB2ConnectionPool)environment.connectionPools[connectionSettings.ConnectionString];
if(pool == null)
{
pool = new DB2ConnectionPool(connectionSettings);
environment.connectionPools.Add(connectionSettings.ConnectionString, pool);
}
return pool;
}
}
}
}
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Text;
using System.Threading;
namespace IBM.Data.DB2
{
/// <summary>
///
/// </summary>
/// <remarks>One connection pool per connectionstring</remarks>
internal sealed class DB2ConnectionPool
{
private ArrayList openFreeConnections; // list of pooled connections sorted by age. First connection is present at index 'connectionsUsableOffset'
private Queue openFreeMinimalAllocated;
private int connectionsOpen; // total number of connections open (in pool, an in use by application)
private int connectionsInUse; // total connection in use by application
private int connectionsUsableOffset; // Offset to the first pooled connection in 'openFreeConnections'
private Timer timer;
public string databaseProductName;
public string databaseVersion;
public int majorVersion;
public int minorVersion;
private DB2ConnectionSettings connectionSettings;
public DB2ConnectionPool(DB2ConnectionSettings connectionSettings)
{
this.connectionSettings = connectionSettings;
openFreeConnections = new ArrayList();
}
public DB2ConnectionSettings ConnectionSettings
{
get { return connectionSettings; }
}
public DB2OpenConnection GetOpenConnection(DB2Connection db2Conn)
{
DB2OpenConnection connection = null;
lock(openFreeConnections.SyncRoot)
{
if((connectionSettings.ConnectionPoolSizeMax > 0) &&
(connectionsOpen >= connectionSettings.ConnectionPoolSizeMax))
{
throw new ArgumentException("Maximum connections reached for connectionstring");
}
while(connectionsOpen > connectionsInUse)
{
connection = (DB2OpenConnection)openFreeConnections[openFreeConnections.Count - 1];
openFreeConnections.RemoveAt(openFreeConnections.Count - 1);
// check if connection is dead
int isDead;
short sqlRet = DB2CLIWrapper.SQLGetConnectAttr(connection.DBHandle, DB2Constants.SQL_ATTR_CONNECTION_DEAD, out isDead, 0, IntPtr.Zero);
if(((sqlRet == DB2Constants.SQL_SUCCESS_WITH_INFO) || (sqlRet == DB2Constants.SQL_SUCCESS)) &&
(isDead == DB2Constants.SQL_CD_FALSE))
{
connectionsInUse++;
break;
}
else
{
connectionsOpen--;
connection.Dispose();
connection = null;
}
}
if(connectionsOpen == connectionsInUse)
{
if(timer != null)
{
timer.Dispose();
timer = null;
}
}
}
if(connection == null)
{
openFreeConnections.Clear();
connectionsUsableOffset = 0;
connection = new DB2OpenConnection(connectionSettings, db2Conn);
connectionsOpen++;
connectionsInUse++;
}
return connection;
}
private void DisposeTimedoutConnections(object state)
{
lock(openFreeConnections.SyncRoot)
{
if(timer != null)
{
TimeSpan timeToDispose = TimeSpan.Zero;
DB2OpenConnection connection;
while(connectionsOpen > connectionsInUse)
{
connection = (DB2OpenConnection)openFreeConnections[connectionsUsableOffset];
timeToDispose = connection.poolDisposalTime.Subtract(DateTime.Now);
if((timeToDispose.Ticks < 0) || // time to die
(timeToDispose > connectionSettings.ConnectionLifeTime)) // messing with system clock
{
connection.Dispose();
openFreeConnections[connectionsUsableOffset] = null;
connectionsOpen--;
connectionsUsableOffset++;
}
else
{
break;
}
}
if(connectionsOpen > connectionsInUse)
{
connection = (DB2OpenConnection)openFreeConnections[connectionsUsableOffset];
timer.Change(timeToDispose, new TimeSpan(-1));
}
else
{
timer.Dispose();
timer = null;
}
}
if((connectionsUsableOffset > (openFreeConnections.Capacity / 2)) &&
(connectionsOpen > connectionsInUse))
{
openFreeConnections.RemoveRange(0, connectionsUsableOffset); // cleanup once in a while
connectionsUsableOffset = 0;
}
}
}
public void AddToFreeConnections(DB2OpenConnection connection)
{
lock(openFreeConnections.SyncRoot)
{
connection.poolDisposalTime = DateTime.Now.Add(connectionSettings.ConnectionLifeTime);
if(timer == null)
{
timer = new Timer(new TimerCallback(DisposeTimedoutConnections), null,
connectionSettings.ConnectionLifeTime, new TimeSpan(-1));
}
connectionsInUse--;
openFreeConnections.Add(connection);
}
}
public void OpenConnectionFinalized()
{
lock(openFreeConnections.SyncRoot)
{
connectionsOpen--;
connectionsInUse--;
}
}
/// <summary>
/// Find a specific connection pool
/// </summary>
/// <param name="connectionString"></param>
/// <returns></returns>
static public DB2ConnectionPool FindConnectionPool(string connectionString)
{
return (DB2ConnectionPool)DB2Environment.Instance.connectionPools[connectionString];
}
/// <summary>
/// Get a connection pool. If it doesn't exist yet, create it
/// </summary>
/// <param name="connectionSettings"></param>
/// <returns></returns>
static public DB2ConnectionPool GetConnectionPool(DB2ConnectionSettings connectionSettings)
{
DB2Environment environment = DB2Environment.Instance;
lock(environment.connectionPools.SyncRoot)
{
DB2ConnectionPool pool = (DB2ConnectionPool)environment.connectionPools[connectionSettings.ConnectionString];
if(pool == null)
{
pool = new DB2ConnectionPool(connectionSettings);
environment.connectionPools.Add(connectionSettings.ConnectionString, pool);
}
return pool;
}
}
}
}
@@ -1,181 +1,202 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace IBM.Data.DB2
{
internal sealed class DB2ConnectionSettings
{
private string connectionString;
private string userName = "";
private string passWord = "";
private string databaseAlias = "";
private string server = "";
private bool pooling = true;
private TimeSpan connectTimeout = new TimeSpan(0, 0, 15);
private TimeSpan connectionLifeTime = new TimeSpan(0, 0, 15); // 15 seconds
private int connectionPoolSizeMin = 0;
private int connectionPoolSizeMax = -1; // no maximum
private DB2ConnectionPool pool;
private DB2ConnectionSettings(string connectionString)
{
this.connectionString = connectionString;
this.Parse();
}
public static DB2ConnectionSettings GetConnectionSettings(string connectionString)
{
DB2ConnectionPool pool = DB2ConnectionPool.FindConnectionPool(connectionString);
if(pool != null)
{
return pool.ConnectionSettings;
}
DB2ConnectionSettings settings = new DB2ConnectionSettings(connectionString);
if(settings.Pooling)
{
settings.pool = DB2ConnectionPool.GetConnectionPool(settings);
}
return settings;
}
public DB2OpenConnection GetRealOpenConnection(DB2Connection connection)
{
if(pool != null)
{
return pool.GetOpenConnection(connection);
}
else
{
return new DB2OpenConnection(this, connection);
}
}
public DB2ConnectionPool Pool
{
get { return pool; }
}
public string ConnectionString
{
get { return connectionString; }
}
public string UserName
{
get { return userName; }
}
public string PassWord
{
get { return passWord; }
}
/// <summary>
/// database alias (for cataloged database)
/// </summary>
public string DatabaseAlias
{
get { return databaseAlias; }
}
/// <summary>
/// server name with optional port number for direct connection (<server name/ip address>[:<port>])
/// </summary>
public string Server
{
get { return server; }
}
public TimeSpan ConnectTimeout
{
get { return connectTimeout; }
}
/// <summary>
/// Connection pooling yes/no
/// </summary>
public bool Pooling
{
get { return pooling; }
}
public int ConnectionPoolSizeMin
{
get { return connectionPoolSizeMin; }
}
public int ConnectionPoolSizeMax
{
get { return connectionPoolSizeMin; }
}
public TimeSpan ConnectionLifeTime
{
get { return connectionLifeTime; }
}
/// <summary>
/// parsed according to IBM DB2 .NET data provider help
/// </summary>
public void Parse()
{
string[] parts = connectionString.Split(new char[]{';'});
foreach(string part in parts)
{
string[] pairs = part.Split(new char[]{'='});
switch(pairs[0].ToLower())
{
case "database":
case "dsn":
databaseAlias = pairs[1];
break;
case "uid":
case "user id":
userName = pairs[1];
break;
case "pwd":
case "password":
passWord = pairs[1];
break;
case "server":
server = pairs[1];
break;
case "pooling":
pooling = (pairs[1].ToLower() == "true") || (pairs[1]== "1");
break;
case "connect timeout":
case "timeout":
case "connection timeout":
connectTimeout = new TimeSpan(0, 0, int.Parse(pairs[1]));
break;
case "min pool size":
connectionPoolSizeMin = int.Parse(pairs[1]);
break;
case "max pool size":
connectionPoolSizeMax = int.Parse(pairs[1]);
break;
case "connection lifetime":
connectionLifeTime = new TimeSpan(0, 0, int.Parse(pairs[1]));
break;
}
}
if(connectionLifeTime.Ticks <= 0)
{
pooling = false;
}
}
public override int GetHashCode()
{
return connectionString.GetHashCode ();
}
public override bool Equals(object obj)
{
return connectionString.Equals (obj);
}
}
}
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace IBM.Data.DB2
{
internal sealed class DB2ConnectionSettings
{
private string connectionString;
private string userName = "";
private string passWord = "";
private string databaseAlias = "";
private string server = "";
private bool pooling = true;
private TimeSpan connectTimeout = new TimeSpan(0, 0, 15);
private TimeSpan connectionLifeTime = new TimeSpan(0, 0, 15); // 15 seconds
private int connectionPoolSizeMin = 0;
private int connectionPoolSizeMax = -1; // no maximum
private DB2ConnectionPool pool;
private DB2ConnectionSettings(string connectionString)
{
this.connectionString = connectionString;
this.Parse();
}
public static DB2ConnectionSettings GetConnectionSettings(string connectionString)
{
DB2ConnectionPool pool = DB2ConnectionPool.FindConnectionPool(connectionString);
if(pool != null)
{
return pool.ConnectionSettings;
}
DB2ConnectionSettings settings = new DB2ConnectionSettings(connectionString);
if(settings.Pooling)
{
settings.pool = DB2ConnectionPool.GetConnectionPool(settings);
}
return settings;
}
public DB2OpenConnection GetRealOpenConnection(DB2Connection connection)
{
if(pool != null)
{
return pool.GetOpenConnection(connection);
}
else
{
return new DB2OpenConnection(this, connection);
}
}
public DB2ConnectionPool Pool
{
get { return pool; }
}
public string ConnectionString
{
get { return connectionString; }
}
public string UserName
{
get { return userName; }
}
public string PassWord
{
get { return passWord; }
}
/// <summary>
/// database alias (for cataloged database)
/// </summary>
public string DatabaseAlias
{
get { return databaseAlias; }
}
/// <summary>
/// server name with optional port number for direct connection (<server name/ip address>[:<port>])
/// </summary>
public string Server
{
get { return server; }
}
public TimeSpan ConnectTimeout
{
get { return connectTimeout; }
}
/// <summary>
/// Connection pooling yes/no
/// </summary>
public bool Pooling
{
get { return pooling; }
}
public int ConnectionPoolSizeMin
{
get { return connectionPoolSizeMin; }
}
public int ConnectionPoolSizeMax
{
get { return connectionPoolSizeMin; }
}
public TimeSpan ConnectionLifeTime
{
get { return connectionLifeTime; }
}
/// <summary>
/// parsed according to IBM DB2 .NET data provider help
/// </summary>
public void Parse()
{
string[] parts = connectionString.Split(new char[]{';'});
foreach(string part in parts)
{
string[] pairs = part.Split(new char[]{'='});
switch(pairs[0].ToLower())
{
case "database":
case "dsn":
databaseAlias = pairs[1];
break;
case "uid":
case "user id":
userName = pairs[1];
break;
case "pwd":
case "password":
passWord = pairs[1];
break;
case "server":
server = pairs[1];
break;
case "pooling":
pooling = (pairs[1].ToLower() == "true") || (pairs[1]== "1");
break;
case "connect timeout":
case "timeout":
case "connection timeout":
connectTimeout = new TimeSpan(0, 0, int.Parse(pairs[1]));
break;
case "min pool size":
connectionPoolSizeMin = int.Parse(pairs[1]);
break;
case "max pool size":
connectionPoolSizeMax = int.Parse(pairs[1]);
break;
case "connection lifetime":
connectionLifeTime = new TimeSpan(0, 0, int.Parse(pairs[1]));
break;
}
}
if(connectionLifeTime.Ticks <= 0)
{
pooling = false;
}
}
public override int GetHashCode()
{
return connectionString.GetHashCode ();
}
public override bool Equals(object obj)
{
return connectionString.Equals (obj);
}
}
}
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace IBM.Data.DB2
@@ -57,6 +78,12 @@ namespace IBM.Data.DB2
public const int SQL_ATTR_MAX_ROWS = 1;
public const int SQL_ATTR_DEFERRED_PREPARE = 1277;
/*Used for batch operations*/
public const int SQL_ATTR_PARAMSET_SIZE = 22;
public const int SQL_ATTR_PARAM_STATUS_PTR = 20;
public const int SQL_ATTR_PARAMS_PROCESSED_PTR = 21;
public const int SQL_ATTR_PARAM_BIND_TYPE = 18;
public const int SQL_IS_POINTER = -4;
public const int SQL_IS_UINTEGER = -5;
public const int SQL_IS_INTEGER = -6;
@@ -141,6 +168,8 @@ namespace IBM.Data.DB2
public const int SQL_NULLABLE = 1;
public const int SQL_NULLABLE_UNKNOWN = 2;
public const int SQL_PARAM_BIND_BY_COLUMN = 0;
/* Defines for SQLBindParameter and SQLProcedureColumns */
public const int SQL_PARAM_TYPE_UNKNOWN = 0;
public const int SQL_PARAM_INPUT = 1;
+184
View File
@@ -0,0 +1,184 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.ComponentModel;
using System.Data;
using System.Data.Common;
namespace IBM.Data.DB2 {
public sealed class DB2DataAdapter : DbDataAdapter, IDbDataAdapter
{
#region Fields
bool disposed = false;
DB2Command deleteCommand;
DB2Command insertCommand;
DB2Command selectCommand;
DB2Command updateCommand;
#endregion
#region Constructors
public DB2DataAdapter ()
: this (new DB2Command ())
{
}
public DB2DataAdapter (DB2Command selectCommand)
{
DeleteCommand = null;
InsertCommand = null;
SelectCommand = selectCommand;
UpdateCommand = null;
}
public DB2DataAdapter (string selectCommandText, DB2Connection selectConnection)
: this (new DB2Command (selectCommandText, selectConnection))
{
}
public DB2DataAdapter (string selectCommandText, string selectConnectionString)
: this (selectCommandText, new DB2Connection (selectConnectionString))
{
}
#endregion
#region Properties
public DB2Command DeleteCommand {
get { return deleteCommand; }
set { deleteCommand = value; }
}
public DB2Command InsertCommand {
get { return insertCommand; }
set { insertCommand = value; }
}
public DB2Command SelectCommand {
get { return selectCommand; }
set { selectCommand = value; }
}
public DB2Command UpdateCommand {
get { return updateCommand; }
set { updateCommand = value; }
}
IDbCommand IDbDataAdapter.DeleteCommand {
get { return DeleteCommand; }
set {
if (!(value is DB2Command))
throw new ArgumentException ();
DeleteCommand = (DB2Command)value;
}
}
IDbCommand IDbDataAdapter.InsertCommand {
get { return InsertCommand; }
set {
if (!(value is DB2Command))
throw new ArgumentException ();
InsertCommand = (DB2Command)value;
}
}
IDbCommand IDbDataAdapter.SelectCommand {
get { return SelectCommand; }
set {
if (!(value is DB2Command))
throw new ArgumentException ();
SelectCommand = (DB2Command)value;
}
}
IDbCommand IDbDataAdapter.UpdateCommand {
get { return UpdateCommand; }
set {
if (!(value is DB2Command))
throw new ArgumentException ();
UpdateCommand = (DB2Command)value;
}
}
ITableMappingCollection IDataAdapter.TableMappings {
get { return TableMappings; }
}
#endregion
#region Methods
protected override RowUpdatedEventArgs CreateRowUpdatedEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
{
return new DB2RowUpdatedEventArgs (dataRow, command, statementType, tableMapping);
}
protected override RowUpdatingEventArgs CreateRowUpdatingEvent (DataRow dataRow, IDbCommand command, StatementType statementType, DataTableMapping tableMapping)
{
return new DB2RowUpdatingEventArgs (dataRow, command, statementType, tableMapping);
}
protected override void Dispose (bool disposing)
{
if (!disposed) {
if (disposing) {
}
disposed = true;
}
}
protected override void OnRowUpdated (RowUpdatedEventArgs value)
{
if (RowUpdated != null)
RowUpdated (this, (DB2RowUpdatedEventArgs) value);
}
protected override void OnRowUpdating (RowUpdatingEventArgs value)
{
if (RowUpdating != null)
RowUpdating (this, (DB2RowUpdatingEventArgs) value);
}
#endregion
#region Events and Delegates
public event DB2RowUpdatedEventHandler RowUpdated;
public event DB2RowUpdatingEventHandler RowUpdating;
#endregion
}
}
File diff suppressed because it is too large. Load diff
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.InteropServices;
using System.Text;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Text;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.InteropServices;
using System.Text;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Runtime.InteropServices;
@@ -0,0 +1,69 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Runtime.InteropServices;
namespace IBM.Data.DB2
{
public delegate void DB2InfoMessageEventHandler(object sender, DB2InfoMessageEventArgs e);
public sealed class DB2InfoMessageEventArgs : EventArgs
{
private DB2ErrorCollection errors;
public DB2InfoMessageEventArgs(DB2ErrorCollection errors)
{
this.errors = errors;
}
public DB2ErrorCollection Errors
{
get
{
return errors;
}
}
public string Message
{
get
{
if(errors.Count > 0)
{
string result = "";
for(int i = 0; i < errors.Count; i++)
{
if(i > 0)
{
result += " ";
}
result += "INFO [" + errors[i].SQLState + "] " + errors[i].Message;
}
return result;
}
return "No information";
}
}
}
}
@@ -1,196 +1,211 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
namespace IBM.Data.DB2
{
internal sealed class DB2OpenConnection : IDisposable
{
private IntPtr dbHandle = IntPtr.Zero;
private DB2ConnectionSettings settings;
private bool disposed = false;
internal DateTime poolDisposalTime; // time to live used for disposal of connections in the connection pool
public bool transactionOpen;
public bool autoCommit = true;
private string databaseProductName;
private string databaseVersion;
private int majorVersion;
private int minorVersion;
public IntPtr DBHandle
{
get { return dbHandle; }
}
public string DatabaseProductName
{
get { return databaseProductName; }
}
public string DatabaseVersion
{
get { return databaseVersion; }
}
public int MajorVersion
{
get { return majorVersion; }
}
public int MinorVersion
{
get { return minorVersion; }
}
public DB2OpenConnection(DB2ConnectionSettings settings, DB2Connection connection)
{
this.settings = settings;
try
{
short sqlRet = DB2CLIWrapper.SQLAllocHandle(DB2Constants.SQL_HANDLE_DBC, DB2Environment.Instance.penvHandle, out dbHandle);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, DB2Environment.Instance.penvHandle, "Unable to allocate database handle in DB2Connection.", connection);
if(settings.Server.Length > 0)
{
StringBuilder outConnectStr = new StringBuilder(60); // TODO: ????
short numOutCharsReturned;
sqlRet = DB2CLIWrapper.SQLDriverConnect(dbHandle, IntPtr.Zero,
settings.ConnectionString, (short)settings.ConnectionString.Length,
outConnectStr, (short)outConnectStr.Length, out numOutCharsReturned,
DB2Constants.SQL_DRIVER_NOPROMPT /*SQL_DRIVER_COMPLETE*/);
}
else
{
sqlRet = DB2CLIWrapper.SQLConnect(dbHandle,
settings.DatabaseAlias, (short)settings.DatabaseAlias.Length,
settings.UserName, (short)settings.UserName.Length,
settings.PassWord, (short)settings.PassWord.Length);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, dbHandle, "Unable to connect to the database.", connection);
}
if((settings.Pool == null) || (settings.Pool.databaseProductName == null))
{
StringBuilder sb = new StringBuilder(256);
short stringLength;
sqlRet = DB2CLIWrapper.SQLGetInfo(dbHandle, /*SQL_DBMS_NAME*/17, sb, (short)(sb.Capacity / 2), out stringLength);
new DB2ErrorCollection(DB2Constants.SQL_HANDLE_DBC, dbHandle).ToString();
if(sqlRet == 0)
databaseProductName = sb.ToString(); //(0, Math.Min(sb.Capacity, stringLength / 2));
sqlRet = DB2CLIWrapper.SQLGetInfo(dbHandle, /*SQL_DBMS_VER*/18, sb, (short)(sb.Capacity / 2), out stringLength);
if(sqlRet == 0)
{
databaseVersion = sb.ToString(0, Math.Min(sb.Capacity, stringLength / 2));
try
{
string[] splitVersion = databaseVersion.Split('.');
majorVersion = int.Parse(splitVersion[0]);
minorVersion = int.Parse(splitVersion[1]);
}
catch{}
}
if(settings.Pool != null)
{
settings.Pool.databaseProductName = databaseProductName;
settings.Pool.databaseVersion = databaseVersion;
settings.Pool.majorVersion = majorVersion;
settings.Pool.minorVersion = minorVersion;
}
}
else if(settings.Pool != null)
{
if(settings.Pool != null)
{
databaseProductName = settings.Pool.databaseProductName;
databaseVersion = settings.Pool.databaseVersion;
majorVersion = settings.Pool.majorVersion;
minorVersion = settings.Pool.minorVersion;
}
}
}
catch
{
if(dbHandle != IntPtr.Zero)
{
DB2CLIWrapper.SQLFreeHandle(DB2Constants.SQL_HANDLE_DBC, dbHandle);
dbHandle = IntPtr.Zero;
}
throw;
}
}
public void RollbackDeadTransaction()
{
DB2CLIWrapper.SQLEndTran(DB2Constants.SQL_HANDLE_DBC, DBHandle, DB2Constants.SQL_ROLLBACK);
transactionOpen = false;
}
public void Close()
{
if(transactionOpen)
RollbackDeadTransaction();
if(settings.Pool != null)
{
settings.Pool.AddToFreeConnections(this);
}
else
{
Dispose();
}
}
private void FreeHandles()
{
if(dbHandle != IntPtr.Zero)
{
short sqlRet = DB2CLIWrapper.SQLDisconnect(dbHandle);
// Note that SQLDisconnect() automatically drops any statements and
// descriptors open on the connection.
sqlRet = DB2CLIWrapper.SQLFreeHandle(DB2Constants.SQL_HANDLE_DBC, dbHandle);
dbHandle = IntPtr.Zero;
}
}
#region IDisposable Members
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
private void Dispose(bool disposing)
{
if(!disposed)
{
if(disposing)
{
// dispose managed resources
}
FreeHandles();
}
disposed = true;
}
~DB2OpenConnection()
{
if(settings.Pool != null)
{
settings.Pool.OpenConnectionFinalized();
}
Dispose(false);
}
#endregion
}
}
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
namespace IBM.Data.DB2
{
internal sealed class DB2OpenConnection : IDisposable
{
private IntPtr dbHandle = IntPtr.Zero;
private DB2ConnectionSettings settings;
private bool disposed = false;
internal DateTime poolDisposalTime; // time to live used for disposal of connections in the connection pool
public bool transactionOpen;
public bool autoCommit = true;
private string databaseProductName;
private string databaseVersion;
private int majorVersion;
private int minorVersion;
public IntPtr DBHandle
{
get { return dbHandle; }
}
public string DatabaseProductName
{
get { return databaseProductName; }
}
public string DatabaseVersion
{
get { return databaseVersion; }
}
public int MajorVersion
{
get { return majorVersion; }
}
public int MinorVersion
{
get { return minorVersion; }
}
public DB2OpenConnection(DB2ConnectionSettings settings, DB2Connection connection)
{
this.settings = settings;
try
{
short sqlRet = DB2CLIWrapper.SQLAllocHandle(DB2Constants.SQL_HANDLE_DBC, DB2Environment.Instance.penvHandle, out dbHandle);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, DB2Environment.Instance.penvHandle, "Unable to allocate database handle in DB2Connection.", connection);
if(settings.Server.Length > 0)
{
StringBuilder outConnectStr = new StringBuilder(60); // TODO: ????
short numOutCharsReturned;
sqlRet = DB2CLIWrapper.SQLDriverConnect(dbHandle, IntPtr.Zero,
settings.ConnectionString, (short)settings.ConnectionString.Length,
outConnectStr, (short)outConnectStr.Length, out numOutCharsReturned,
DB2Constants.SQL_DRIVER_NOPROMPT /*SQL_DRIVER_COMPLETE*/);
}
else
{
sqlRet = DB2CLIWrapper.SQLConnect(dbHandle,
settings.DatabaseAlias, (short)settings.DatabaseAlias.Length,
settings.UserName, (short)settings.UserName.Length,
settings.PassWord, (short)settings.PassWord.Length);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_DBC, dbHandle, "Unable to connect to the database.", connection);
}
if((settings.Pool == null) || (settings.Pool.databaseProductName == null))
{
StringBuilder sb = new StringBuilder(256);
short stringLength;
sqlRet = DB2CLIWrapper.SQLGetInfo(dbHandle, /*SQL_DBMS_NAME*/17, sb, (short)(sb.Capacity / 2), out stringLength);
new DB2ErrorCollection(DB2Constants.SQL_HANDLE_DBC, dbHandle).ToString();
if(sqlRet == 0)
databaseProductName = sb.ToString(0, Math.Min(sb.Capacity, stringLength / 2));
sqlRet = DB2CLIWrapper.SQLGetInfo(dbHandle, /*SQL_DBMS_VER*/18, sb, (short)(sb.Capacity / 2), out stringLength);
if(sqlRet == 0)
{
databaseVersion = sb.ToString(0, Math.Min(sb.Capacity, stringLength / 2));
try
{
string[] splitVersion = databaseVersion.Split('.');
majorVersion = int.Parse(splitVersion[0]);
minorVersion = int.Parse(splitVersion[1]);
}
catch{}
}
if(settings.Pool != null)
{
settings.Pool.databaseProductName = databaseProductName;
settings.Pool.databaseVersion = databaseVersion;
settings.Pool.majorVersion = majorVersion;
settings.Pool.minorVersion = minorVersion;
}
}
else if(settings.Pool != null)
{
if(settings.Pool != null)
{
databaseProductName = settings.Pool.databaseProductName;
databaseVersion = settings.Pool.databaseVersion;
majorVersion = settings.Pool.majorVersion;
minorVersion = settings.Pool.minorVersion;
}
}
}
catch
{
if(dbHandle != IntPtr.Zero)
{
DB2CLIWrapper.SQLFreeHandle(DB2Constants.SQL_HANDLE_DBC, dbHandle);
dbHandle = IntPtr.Zero;
}
throw;
}
}
public void RollbackDeadTransaction()
{
DB2CLIWrapper.SQLEndTran(DB2Constants.SQL_HANDLE_DBC, DBHandle, DB2Constants.SQL_ROLLBACK);
transactionOpen = false;
}
public void Close()
{
if(transactionOpen)
RollbackDeadTransaction();
if(settings.Pool != null)
{
settings.Pool.AddToFreeConnections(this);
}
else
{
Dispose();
}
}
private void FreeHandles()
{
if(dbHandle != IntPtr.Zero)
{
short sqlRet = DB2CLIWrapper.SQLDisconnect(dbHandle);
// Note that SQLDisconnect() automatically drops any statements and
// descriptors open on the connection.
sqlRet = DB2CLIWrapper.SQLFreeHandle(DB2Constants.SQL_HANDLE_DBC, dbHandle);
dbHandle = IntPtr.Zero;
}
}
#region IDisposable Members
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
private void Dispose(bool disposing)
{
if(!disposed)
{
if(disposing)
{
// dispose managed resources
}
FreeHandles();
}
disposed = true;
}
~DB2OpenConnection()
{
if(settings.Pool != null)
{
settings.Pool.OpenConnectionFinalized();
}
Dispose(false);
}
#endregion
}
}
File diff suppressed because it is too large. Load diff
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Collections;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Data.Common;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace IBM.Data.DB2 {
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Data.Common;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace IBM.Data.DB2 {
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Data;
using System.Runtime.InteropServices;
@@ -1,3 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace IBM.Data.DB2
@@ -32,4 +53,39 @@ namespace IBM.Data.DB2
RowId = 25,
XmlReader = 26,
}
public class DB2TypeConverter
{
public static Type GetManagedType(int sql_type)
{
switch(sql_type)
{
case DB2Constants.SQL_INTEGER:
return typeof(int);
case DB2Constants.SQL_SMALLINT:
return typeof(short);
case DB2Constants.SQL_BIGINT:
return typeof(long);
case DB2Constants.SQL_DOUBLE:
return typeof(double);
case DB2Constants.SQL_DECIMAL:
return typeof(decimal);
case DB2Constants.SQL_DATETIME:
case DB2Constants.SQL_TYPE_DATE:
case DB2Constants.SQL_TYPE_TIMESTAMP:
return typeof(DateTime);
case DB2Constants.SQL_TYPE_TIME:
return typeof(TimeSpan);
case DB2Constants.SQL_CHAR:
case DB2Constants.SQL_VARCHAR:
case DB2Constants.SQL_TYPE_CLOB:
return typeof(string);
case DB2Constants.SQL_TYPE_BLOB:
case DB2Constants.SQL_TYPE_BINARY:
case DB2Constants.SQL_LONGVARBINARY:
case DB2Constants.SQL_VARBINARY:
return typeof(byte[]);
}
throw new NotImplementedException("Unknown SQL type " + sql_type);
}
}
}
+4
View File
@@ -7,5 +7,9 @@ LIB_MCS_FLAGS = /unsafe /r:$(corlib) /r:System.dll \
/r:System.Xml.dll /r:System.Data.dll
NO_TEST = yes
ifeq (net_2_0, $(PROFILE))
all-local install-local test-local run-test-local clean-local dist-local uninstall-local:
else
include ../../build/library.make
endif
@@ -1,3 +1,8 @@
2004-06-21 Raja R Harinath <[email protected]>
* Makefile (LIBRARY_SNK): Sign with SharpZipLib.key. The library
is delay-signed according to ICSharpCode.SharpZipLib/AssemblyInfo.cs.
2004-06-09 Sebastien Pouliot <[email protected]>
* Makefile: Don't sign this assembly as it is fully signed during
@@ -47,7 +47,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
#if NET_2_0
[assembly: AssemblyVersion("2.6.0.0")]
#else
// not worrying about the NET_1_0 profile for now.
[assembly: AssemblyVersion("0.6.0.0")]
#endif
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyKeyFile ("SharpZipLib.pub")]
@@ -1,5 +1,10 @@
2004-06-24 Raja R Harinath <[email protected]>
* AssemblyInfo.cs (AssemblyVersion): Set different version for the
net_2_0 profile.
2004-05-28 Duncan Mak <[email protected]>
* AssemblyInfo.cs: Use the new SharpZipLib.pub.
* Zip/Compression/DeflaterHuffman.cs (FlushBlock): Add some
parenthesis to help the generics compiler read this source.
parenthesis to help the generics compiler read this source.
+3 -3
View File
@@ -3,10 +3,10 @@ SUBDIRS =
include ../../build/rules.make
LIBRARY = ICSharpCode.SharpZipLib.dll
LIBRARY_SNK = SharpZipLib.key
LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Xml.dll
NO_TEST = yes
EXTRA_DISTFILES = SharpZipLib.key
NO_SIGN_ASSEMBLY = yes
EXTRA_DISTFILES = $(LIBRARY_SNK)
include ../../build/library.make
+1 -4
View File
@@ -2,11 +2,8 @@ thisdir = class
include ../build/rules.make
MONO_POSIX = Mono.Posix
ifeq ($(PLATFORM),linux)
MONO_CSHARP_DEBUGGER = Mono.CSharp.Debugger
else
MONO_CSHARP_DEBUGGER =
endif
SUBDIRS = \
corlib \
System \
Loaded 100 of 4706 files, more files were not shown because too many files have changed in this diff. Show more