Compare commits

...
395 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
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 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
Zoltan Varga 7fc7f6f8e6 Merge from HEAD
svn path=/branches/mono-1-0/mcs/; revision=34753
2004-10-06 08:22:41 +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 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 19141d7309 removed Console
svn path=/branches/mono-1-0/mcs/; revision=34731
2004-10-05 18:13:53 +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 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
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
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 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
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
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
Zoltan Varga 9a81eb4339 Merge from HEAD
svn path=/branches/mono-1-0/mcs/; revision=34674
2004-10-04 16:25:41 +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
Zoltan Varga 348fbc5da2 Merge from HEAD.
svn path=/branches/mono-1-0/mcs/; revision=34658
2004-10-04 09:25:50 +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
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
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 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 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
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 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 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
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 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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Miguel de Icaza 7d63ea42e6 plug
svn path=/branches/mono-1-0/mcs/; revision=34188
2004-09-21 18:14:28 +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
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
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
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
Martin Baulig e16f34ab8d Ooops.
svn path=/branches/mono-1-0/mono/; revision=34047
2004-09-18 17:56:47 +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
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 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 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
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
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
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
Zoltan Varga edbe3285e7 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33948
2004-09-15 21:03:11 +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
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
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
Ravindra e72545bebf Backporting a fix.
svn path=/branches/mono-1-0/mcs/; revision=33806
2004-09-13 12:03:24 +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
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 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
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
Ravindra 309fa659d6 Backporting some fixes.
svn path=/branches/mono-1-0/mcs/; revision=33698
2004-09-10 08:42:59 +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 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
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
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
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 e1b7e8c457 Merge from HEAD.
svn path=/branches/mono-1-0/mcs/; revision=33634
2004-09-09 10:17:03 +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
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
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
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
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
Zoltan Varga 71d75502b2 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33543
2004-09-07 21:06:24 +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
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
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
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
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
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
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 17fcabfef8 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33429
2004-09-06 17:09:09 +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
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 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
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
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 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 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
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 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 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 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 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 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 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 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
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
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 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
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
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 64a7cc482e Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=33220
2004-09-02 12:02:52 +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
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 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 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 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
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
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
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 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 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 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
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
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
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 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
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
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 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
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
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 71f930e16a Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=32696
2004-08-23 13:32:22 +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
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 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 159118e15c fixes from HEAD
svn path=/branches/mono-1-0/mcs/; revision=32662
2004-08-22 20:05:24 +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
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
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
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
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
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 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
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
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
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
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
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
Gonzalo Paniagua Javier e91035e48e 1.0.1
svn path=/branches/mono-1-0/mono/; revision=32269
2004-08-12 15:36:20 +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
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 a21cc56436 same fix as in HEAD
svn path=/branches/mono-1-0/mcs/; revision=32164
2004-08-10 18:06:42 +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
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
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
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
Zoltan Varga 255c706677 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=32059
2004-08-09 02:12:25 +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
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
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
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
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 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
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
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
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
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
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 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
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 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
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
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
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
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 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
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 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
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
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
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
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 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
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
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
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 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 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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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 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
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 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
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 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 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 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
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 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
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 33ba34e3f6 from head
svn path=/branches/mono-1-0/mcs/; revision=31206
2004-07-16 04:35:13 +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
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 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 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
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 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 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
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 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 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
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
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
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
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
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
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 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
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
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 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
Ben Maurer da3adada99 merge
svn path=/branches/mono-1-0/mcs/; revision=31005
2004-07-11 17:37:24 +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 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
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
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
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
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 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
Zoltan Varga 3f33023748 Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=30898
2004-07-08 19:15:11 +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
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
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
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
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 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 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
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
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
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
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
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 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 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
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 f3ae3308ad Merge from HEAD.
svn path=/branches/mono-1-0/mono/; revision=30734
2004-07-05 08:32:46 +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
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
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
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
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
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
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
4391 changed files with 69399 additions and 333247 deletions

No files matched your search

-2
View File
@@ -21,5 +21,3 @@ autom4te.cache
mint.pc
stamp-h1
config.h.in
_tmpinst
tmpinst-dir.stamp
-197
View File
@@ -1,200 +1,3 @@
2004-09-28 Neale Ferguson <[email protected]>
* mini-s390.c: Fix AND_IMM/OR_IMM/DIV_IMM/REM_IMM
2004-09-28 Raja R Harinath <[email protected]>
* Makefile.am ($(tmpinst)/bin/pedump): New.
(mcs-do-run-test-profiles): Depend on it.
2004-09-27 Raja R Harinath <[email protected]>
* Makefile.am (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.
2004-09-21 Neale Ferguson <[email protected]>
* configure.in: Cater for S/390 on Linux
2004-09-21 <[email protected]>
* configure.in: Link with ole32 on windows.
2004-09-20 Jackson Harper <[email protected]>
* support/map.c/h: Add poll events map functions. Use values
instead of names for defines.
2004-09-17 Martin Baulig <[email protected]>
* Makefile.am (mcs-do-compiler-tests): Reverted Raja's latest
change in this target.
2004-09-14 Raja R Harinath <[email protected]>
* 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.
2004-09-10 Zoltan Varga <[email protected]>
* Makefile.am (populate-runtime-subdir): Avoid -path argument to find
since it is not supported on solaris.
2004-09-03 Martin Baulig <[email protected]>
* Makefile.am (bootstrap-world): New target.
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.
2004-08-30 Zoltan Varga <[email protected]>
* scripts/mcs.in: Remove obsolete comment.
2004-08-27 Lluis Sanchez Gual <[email protected]>
* 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.
2004-08-26 Raja R Harinath <[email protected]>
* Makefile.am (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'.
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.
* configure.in (PLATFORM_WIN32): Make the included libgc the default on windows.
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]).
2004-08-16 Zoltan Varga <[email protected]>
* configure.in: Set new automake variable LIBGC_STATIC_LIBS.
2004-08-14 Zoltan Varga <[email protected]>
* configure.in (HAVE_KW_THREAD): Pass USE_COMPILER_TLS to libgc if
__thread works.
2004-08-11 Zoltan Varga <[email protected]>
* configure.in: Fix __thread test.
2004-08-07 Zoltan Varga <[email protected]>
* configure.in: Add proper checks for the 'undefined reference to '__tls_get_addr' problem.
2004-08-06 Geoff Norton <[email protected]>
* configure.in: Add a kqueue check
2004-08-03 Neale Ferguson <[email protected]>
* configure.in: Enable S/390 64-bit JIT.
2004-07-31 Zoltan Varga <[email protected]>
* configure.in: Enable AMD64 JIT.
2004-07-30 Martin Baulig <[email protected]>
* Makefile.am: The symbol writer is now called
Mono.CompilerServices.SymbolWriter.dll.
2004-07-30 Raja R Harinath <[email protected]>
* runtime/Makefile.am (monoone_DATA): Add mcs.exe.config.
(gmcs_exe): Add gmcs.exe.config.
($(monoone_DATA) $(monotwo_DATA) ...): Add location of the .config
files too.
2004-07-29 Lluis Sanchez Gual <[email protected]>
* Makefile.am: Copy machine.config in the correct _tmpinst subdirectory.
2004-07-28 Lluis Sanchez Gual <[email protected]>
* 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.
2004-07-27 John Merryweather Cooper <[email protected]>
* configure.in: Disable __thread test (TLS) for FreeBSD as
it succeeds on FreeBSD 5.x when it should fail. Fix pthread
library detection for FreeBSD 4.x since pthread is embedded
in libc_r on this platform. Fix some typos in my host
regexes for freebsd.
2004-07-23 Dick Porter <[email protected]>
* configure.in: Changes for FreeBSD thread support by John
Merryweather Cooper <[email protected]>.
2004-07-15 Jackson Harper <[email protected]>
* man/gacutil.1: MONO_GAC_PREFIX not MONO_GAC_PATH
2004-07-12 Massimiliano Mantione <[email protected]>
* docs/abc-removal.txt: Updated documentation for ABC removal.
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).
2004-07-03 Zoltan Varga <[email protected]>
* configure.in: Add --with-tls option to replace the misnamed
--with-nptl option.
2004-07-02 Raja R Harinath <[email protected]>
* Makefile.am (mcs-do-basic-build, mcs-do-short-build):
Pass NO_SIGN_ASSEMBLY=yes to sub-make.
($(tmpinst)/bin/mono) [PLATFORM_WIN32]: Make it work.
2004-07-02 Zoltan Varga <[email protected]>
* man/mono.1: Added 'aot' to trace options.
2004-06-30 Zoltan Varga <[email protected]>
* configure.in: Fix trunc check + add SPARC64 defines.
2004-06-29 Jackson Harper <[email protected]>
* man/gacutil.1: Update man with new command line options.
2004-06-29 Raja R Harinath <[email protected]>
Atsushi Enomoto <[email protected]>
+13 -45
View File
@@ -48,7 +48,7 @@ MCS_BASIC_FILES = \
MCS_DIRS = $(MCS_BASIC_DIRS) class/System.XML class/System class/Mono.CSharp.Debugger
MCS_FILES = $(MCS_BASIC_FILES) \
$(mcs_topdir)/class/lib/default/System.Xml.dll \
$(mcs_topdir)/class/lib/default/Mono.CompilerServices.SymbolWriter.dll
$(mcs_topdir)/class/lib/default/Mono.CSharp.Debugger.dll
tmpinst = _tmpinst
@@ -79,13 +79,7 @@ fasterstrap: tmpinst-mcs-full-build
$(MAKE)
bootstrap-clean: clean mcs-do-clean-profiles
bootstrap-check: check mcs-do-run-test-profiles #mono-do-testjit
mono-do-testjit: $(tmpinst)/bin/ilasm
tmpinst=`cd $(tmpinst) && pwd` ; \
PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
cd mono/tests && $(MAKE) test
bootstrap-check: check mcs-do-run-test
# building with monolite
@@ -97,12 +91,6 @@ monolite-bootstrap: tmpinst-monolite mono-do-runtime-only
$(MAKE) tmpinst-mcs-short-build
$(MAKE) fasterstrap
bootstrap-world:
$(MAKE) bootstrap-clean
$(MAKE) bootstrap
$(MAKE) install
$(MAKE) mcs-do-compiler-tests
# internal targets
tmpinst-mcs-basic-build: mcs-do-basic-build tmpinst-dir
@@ -130,33 +118,28 @@ mono-do-runtime-only: $(CONFIG_HEADER)
mcs-do-basic-build:
rm -f $(MCS_FILES)
for dir in $(MCS_BASIC_DIRS); do \
(cd $(mcs_topdir)/$$dir && $(MAKE) PROFILE=default NO_SIGN_ASSEMBLY=yes USE_BOOT_COMPILE=yes BOOTSTRAP_MCS="mcs -d:BOOTSTRAP_WITH_OLDLIB") || exit 1 ; \
(cd $(mcs_topdir)/$$dir && $(MAKE) PROFILE=default USE_BOOT_COMPILE=yes BOOTSTRAP_MCS="mcs -d:BOOTSTRAP_WITH_OLDLIB") || exit 1 ; \
done
mcs-do-short-build:
tmpinst=`cd $(tmpinst) && pwd` ; \
PATH=$$tmpinst/bin:$$PATH; export PATH ; \
for dir in $(MCS_DIRS); do \
(cd $(mcs_topdir)/$$dir && $(MAKE) PROFILE=default NO_SIGN_ASSEMBLY=yes) || exit 1 ; \
(cd $(mcs_topdir)/$$dir && $(MAKE) PROFILE=default) || exit 1 ; \
done
mcs-do-full-build:
tmpinst=`cd $(tmpinst) && pwd` ; \
PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
cd $(mcs_topdir) && $(MAKE) NO_SIGN_ASSEMBLY=yes all-profiles
cd $(mcs_topdir) && $(MAKE) all-profiles
mcs-do-clean-profiles:
cd $(mcs_topdir) && $(MAKE) clean-profiles
mcs-do-run-test-profiles: tmpinst-dir $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/pedump
mcs-do-run-test: tmpinst-dir
tmpinst=`cd $(tmpinst) && pwd` ; \
PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
cd $(mcs_topdir) && $(MAKE) run-test-profiles
mcs-do-compiler-tests:
tmpinst=`cd $(tmpinst) && pwd` ; \
PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
cd $(mcs_topdir) && $(MAKE) compiler-tests
cd $(mcs_topdir) && $(MAKE) PROFILE=default run-test
populate-runtime-subdir:
test -n '$(populate_profiles)'
@@ -168,16 +151,15 @@ populate-runtime-subdir:
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 -name '*jay*' -exec rm -f '{}' ';'
for i in `find $(tmpinst)/prefix -type d -name '*jay*' -print`; do rm -f $$i/*; 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/1.0 $(tmpinst)/etc/mono/2.0
mkdir -p $(tmpinst) $(tmpinst)/bin $(tmpinst)/lib $(tmpinst)/etc/mono
$(MAKE) tmpinst-dir-contents
tmpinst-dir-contents: $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/etc/mono/1.0/machine.config $(tmpinst)/etc/mono/2.0/machine.config
tmpinst-dir-contents: $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/etc/mono/machine.config
if PLATFORM_WIN32
@@ -188,7 +170,7 @@ $(tmpinst)/bin/mono: $(srcdir)/Makefile.am
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_runtime).exe" "$$@"' >> $@
echo 'exec "$$builddir/libtool" --mode=execute "$$builddir/mono.exe" "$$@"' >> $@
chmod +x $@
else
@@ -204,27 +186,13 @@ $(tmpinst)/bin/mono: $(srcdir)/Makefile.am
endif
$(tmpinst)/bin/pedump: $(srcdir)/Makefile.am
(b=`pwd`; echo '#! /bin/sh'; echo 'exec "'"$$b/libtool"'" --mode=execute "'"$$b/mono/metadata/pedump"'" "$$@"') > $@
chmod +x $@
$(tmpinst)/bin/mcs: $(srcdir)/Makefile.am
(t=`cd $(tmpinst) && pwd`; echo '#! /bin/sh'; echo 'exec "'"$$t/bin/mono"'" "'"$$t/lib/mcs.exe"'" "$$@"') > $@
chmod +x $@
# Used only by 'bootstrap-check' -- so, can safely use runtime/.
$(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm: $(srcdir)/Makefile.am
t=`cd $(tmpinst) && pwd`; r=`cd $(srcdir)/runtime && pwd`; \
( echo '#! /bin/sh'; echo 'exec "'"$$t/bin/mono"'" "'"$$r/$(@F).exe"'" "$$@"' ) > $@
chmod +x $@
$(tmpinst)/etc/mono/1.0/machine.config: $(srcdir)/data/net_1_1/machine.config
$(tmpinst)/etc/mono/machine.config: $(srcdir)/data/machine.config
rm -f $@
srcdir=`cd $(srcdir) && pwd`; cd $(tmpinst)/etc/mono/1.0 && $(LN_S) $$srcdir/data/net_1_1/machine.config machine.config
$(tmpinst)/etc/mono/2.0/machine.config: $(srcdir)/data/net_2_0/machine.config
rm -f $@
srcdir=`cd $(srcdir) && pwd`; cd $(tmpinst)/etc/mono/2.0 && $(LN_S) $$srcdir/data/net_2_0/machine.config machine.config
srcdir=`cd $(srcdir) && pwd`; cd $(tmpinst)/etc/mono && $(LN_S) $$srcdir/data/machine.config machine.config
# Obsolete target -- don't use.
.PHONY: fullbuild
+18 -166
View File
@@ -1,7 +1,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,1.1.1)
AM_INIT_AUTOMAKE(mono,1.0)
AM_MAINTAINER_MODE
AC_PROG_LN_S
@@ -42,7 +42,7 @@ case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32])
CC="gcc -mno-cygwin -g"
CC="gcc -mno-cygwin"
HOST_CC="gcc"
# So libgc configure gets -mno-cygwin
export CC
@@ -51,8 +51,8 @@ case "$host" in
CPPFLAGS="$CPPFLAGS -DWIN32_THREADS"
libdl=
libgc_threads=win32
gc_default=included
with_nptl=default
gc_default=boehm
with_nptl=no
with_sigaltstack=no
LN_S=cp
@@ -67,62 +67,7 @@ case "$host" in
libdl=
libgc_threads=no
;;
# these flags will work for all versions of -STABLE
#
*-*-*freebsd4*)
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
libmono_cflags="-D_THREAD_SAFE"
else
CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags="$PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
else
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
libmono_ldflags="$PTHREAD_LIBS"
fi
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
libgc_threads=pthreads
# TLS isn't implemented at all on -STABLE
with_nptl=no
with_tls=pthread
;;
# older versions of -CURRENT will break with these flags but testing
# indicates these older versions won't run Mono anyway
#
*-*-*freebsd5*)
platform_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags=
else
CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS -DGC_FREEBSD_THREADS"
libmono_cflags="$PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
LDFLAGS="$LDFLAGS -lpthread"
libmono_ldflags="-lpthread"
else
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
libmono_ldflags="$PTHREAD_LIBS"
fi
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
libgc_threads=pthreads
# TLS is only partially implemented on -CURRENT (compiler support
# but NOT library support)
#
with_nptl=no
with_tls=pthread
;;
*-*-*openbsd*)
*-*-*freebsd*|*-*-*openbsd*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
libmono_cflags="-D_THREAD_SAFE"
@@ -231,6 +176,9 @@ AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h sys/un.h)
# for mono/mini/tramp-x86.c
AC_CHECK_HEADERS(valgrind/memcheck.h)
# for mono/metadata/debug-symfile.c
AC_CHECK_HEADERS(elf.h)
@@ -300,21 +248,9 @@ AC_ARG_WITH(gc, [ --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default]
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation],[],[with_tls=__thread])
# Kept for compatibility
AC_ARG_WITH(nptl, [ --with-nptl=yes,no deprecated, use --with-tls instead],[],[with_nptl=default])
if test "x$with_nptl" != "xdefault"; then
if test "x$with_nptl" = "xyes"; then
AC_MSG_WARN([--with-nptl=yes is deprecated, use --with-tls=__thread option instead.])
with_tls=__thread
fi
if test "x$with_nptl" = "xno"; then
AC_MSG_WARN([--with-nptl=no is deprecated, use --with-tls=pthread option instead.])
with_tls=pthread
fi
fi
# This is misnamed: __thread support has no relation to NPTL,
# but people already use it...
AC_ARG_WITH(nptl, [ --with-nptl=yes,no enable/disable support for __thread support],[],[with_nptl=yes])
# Enable support for using sigaltstack for SIGSEGV and stack overflow handling
# This does not work on some platforms (bug #55253)
@@ -330,7 +266,6 @@ AM_CONDITIONAL(WITH_BUNDLE, test x$with_bundle != xno)
LIBGC_CFLAGS=
LIBGC_LIBS=
LIBGC_STATIC_LIBS=
libgc_dir=
case "x$gc" in
xboehm|xbohem|xyes)
@@ -347,7 +282,6 @@ case "x$gc" in
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
LIBGC_LIBS="-lgc $libdl"
LIBGC_STATIC_LIBS="$LIBGC_LIBS"
# AC_CHECK_FUNCS does not work for some reason...
AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
@@ -370,7 +304,6 @@ case "x$gc" in
LIBGC_CFLAGS='-I$(top_srcdir)/libgc/include'
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
@@ -398,7 +331,6 @@ ac_configure_args="$ac_configure_args --disable-embed-check --with-libgc-threads
AM_CONDITIONAL(INCLUDED_LIBGC, test x$use_included_gc = xyes)
AC_SUBST(LIBGC_CFLAGS)
AC_SUBST(LIBGC_LIBS)
AC_SUBST(LIBGC_STATIC_LIBS)
AC_SUBST(libgc_dir)
dnl
@@ -467,7 +399,6 @@ if test x$platform_win32 = xno; then
AC_CHECK_FUNCS(getpwuid_r)
AC_CHECK_FUNCS(getresuid)
AC_CHECK_FUNCS(setresuid)
AC_CHECK_FUNCS(kqueue)
dnl ******************************************************************
dnl *** Check for large file support ***
@@ -710,17 +641,7 @@ if test x$platform_win32 = xno; then
dnl *****************************
dnl *** Checks for libpthread ***
dnl *****************************
# on FreeBSD -STABLE, the pthreads functions all reside in libc_r
# and libpthread does not exist
#
case "${host}" in
*-*-*freebsd4*)
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
;;
*)
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
;;
esac
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_FUNCS(pthread_mutex_timedlock)
AC_CHECK_FUNCS(pthread_getattr_np pthread_attr_get_np)
@@ -741,7 +662,7 @@ if test x$platform_win32 = xno; then
dnl *** Checks for working __thread ***
dnl ***********************************
AC_MSG_CHECKING(for working __thread)
if test "x$with_tls" != "x__thread"; then
if test "x$with_nptl" != "xyes"; then
AC_MSG_RESULT(disabled)
else
AC_TRY_RUN([
@@ -775,9 +696,9 @@ if test x$platform_win32 = xno; then
}
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_KW_THREAD)
], [
AC_MSG_RESULT(no)
with_tls=pthread
])
fi
@@ -987,7 +908,6 @@ 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?))
AC_CHECK_LIB(ole32, main, LIBS="$LIBS -lole32", AC_ERROR(bad mingw install?))
dnl *********************************
dnl *** Check for struct ip_mreqn ***
@@ -1033,22 +953,9 @@ ac_cv_c_socklen_t=yes
AC_MSG_RESULT(no)
])
AC_MSG_CHECKING(for array element initalizer support)
AC_TRY_COMPILE([#include <sys/socket.h>], [
const int array[] = {[1] = 2,};
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_ARRAY_ELEM_INIT,1,[Supports C99 array initialization])
], [
# We'll have to use signals
AC_MSG_RESULT(no)
])
AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
# Simply calling trunc (0.0) is no good since gcc will optimize the call away
AC_TRY_LINK([#include <math.h>],
[ static void *p = &trunc; ],
[ trunc(0.0); ],
[
AC_DEFINE(HAVE_TRUNC)
AC_MSG_RESULT(yes)
@@ -1186,15 +1093,10 @@ case "$host" in
x86_64-*-* | amd64-*-*)
TARGET=AMD64;
arch_target=amd64;
JIT_SUPPORTED=yes
jit_wanted=true
JIT_SUPPORTED=no
;;
sparc*-*-*)
if test "x$ac_cv_sizeof_void_p" = "x8"; then
TARGET=SPARC64
else
TARGET=SPARC
fi
TARGET=SPARC;
arch_target=sparc;
JIT_SUPPORTED=yes
ACCESS_UNALIGNED="no"
@@ -1250,12 +1152,6 @@ case "$host" in
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
;;
s390x-*-linux*)
TARGET=S390x;
arch_target=s390x;
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
;;
esac
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT],[
@@ -1288,48 +1184,9 @@ case "$host" in
LIBC="libc.so.12"
INTL="libintl.so.0"
;;
*-*-*freebsd*)
LIBC="libc.so"
INTL="libintl.so"
;;
*-*-*openbsd*)
LIBC="libc.so"
INTL="libintl.so"
;;
esac
AC_SUBST(libsuffix)
if test "x$TARGET" != "xAMD64"; then
# valgrind headers don't compile under x86-64
AC_CHECK_HEADERS(valgrind/memcheck.h)
fi
if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86"; then
if test "x$with_tls" = "x__thread"; then
#
# On some linux distributions, TLS works in executables, but linking
# against a shared library containing TLS fails with:
# undefined reference to `__tls_get_addr'
#
rm -f conftest.c conftest.so conftest
echo "static __thread int foo; void main () { foo = 5; }" > conftest.c
gcc -fPIC --shared -o conftest.so conftest.c > /dev/null 2>&1
gcc -o conftest conftest.so > /dev/null 2>&1
if test ! -f conftest; then
AC_MSG_WARN([Disabling usage of __thread.]);
with_tls=pthread
fi
rm -f conftest.c conftest.so conftest
fi
fi
if test "x$with_tls" = "x__thread"; then
AC_DEFINE(HAVE_KW_THREAD)
# Pass the information to libgc
CPPFLAGS="$CPPFLAGS -DUSE_COMPILER_TLS"
export CPPFLAGS
fi
if test ${TARGET} = ARM; then
dnl ******************************************
dnl *** Check to see what FPU is available ***
@@ -1370,7 +1227,6 @@ AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
AM_CONDITIONAL(SPARC64, test x$TARGET = xSPARC64)
AM_CONDITIONAL(X86, test x$TARGET = xX86)
AM_CONDITIONAL(AMD64, test x$TARGET = xAMD64)
AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
@@ -1379,7 +1235,6 @@ AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
AM_CONDITIONAL(ARM, test x$TARGET = xARM)
AM_CONDITIONAL(S390, test x$TARGET = xS390)
AM_CONDITIONAL(S390x, test x$TARGET = xS390x)
AM_CONDITIONAL(HPPA, test x$TARGET = xHPPA)
AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
@@ -1411,7 +1266,6 @@ mono/arch/hppa/Makefile
mono/arch/ppc/Makefile
mono/arch/sparc/Makefile
mono/arch/s390/Makefile
mono/arch/s390x/Makefile
mono/arch/arm/Makefile
mono/arch/alpha/Makefile
mono/interpreter/Makefile
@@ -1433,8 +1287,6 @@ man/Makefile
web/Makefile
docs/Makefile
data/Makefile
data/net_1_1/Makefile
data/net_2_0/Makefile
samples/Makefile
support/Makefile
data/config
@@ -1447,7 +1299,7 @@ echo "
GC: $gc
ICU: $enable_icu
TLS: $with_tls
__thread: $with_nptl
SIGALTSTACK: $with_sigaltstack
Engine: $jit_status
2.0 Alpha: $PREVIEW
+4 -2
View File
@@ -1,10 +1,12 @@
SUBDIRS = net_1_1 net_2_0
monodir = $(sysconfdir)/mono
EXTRA_DIST = config.in \
machine.config \
DefaultWsdlHelpGenerator.aspx \
browscap.ini
mono_DATA = config \
machine.config \
DefaultWsdlHelpGenerator.aspx \
browscap.ini
-2
View File
@@ -1,2 +0,0 @@
Makefile
Makefile.in
File diff suppressed because it is too large. Load diff
-8
View File
@@ -1,8 +0,0 @@
monodir = $(sysconfdir)/mono/1.0
EXTRA_DIST = machine.config \
DefaultWsdlHelpGenerator.aspx
mono_DATA = machine.config \
DefaultWsdlHelpGenerator.aspx
-216
View File
@@ -1,216 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="appSettings" type="System.Configuration.NameValueFileSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.web">
<section name="httpHandlers"
type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules"
type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey"
type="System.Web.Configuration.MachineKeyConfigHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="authentication"
type="System.Web.Configuration.AuthenticationConfigHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="authorization"
type="System.Web.Configuration.AuthorizationConfigHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="globalization"
type="System.Web.Configuration.GlobalizationConfigurationHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState"
type="System.Web.SessionState.SessionStateSectionHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trace"
type="System.Web.Configuration.TraceConfigurationHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices"
type="System.Web.Services.Configuration.WebServicesConfigurationSectionHandler, System.Web.Services, Version=1.0.5000.0 Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webControls"
type="System.Web.Configuration.WebControlsSectionHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation"
type="System.Web.Configuration.CompilationConfigurationHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime"
type="System.Web.Configuration.HttpRuntimeConfigurationHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors"
type="System.Web.Configuration.CustomErrorsConfigHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="pages"
type="System.Web.Configuration.PagesConfigurationHandler, System.Web, Version=1.0.5000.0, Culture=neutral" />
<section name="clientTarget"
type="System.Web.Configuration.ClientTargetSectionHandler, System.Web, Version=1.0.5000.0, Culture=neutral" />
</sectionGroup>
<sectionGroup name="system.net">
<section name="settings"
type="System.Net.Configuration.NetConfigurationHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement"
type="System.Net.Configuration.ConnectionManagementHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="authenticationModules"
type="System.Net.Configuration.NetAuthenticationModuleHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy"
type="System.Net.Configuration.DefaultProxyHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules"
type="System.Net.Configuration.WebRequestModuleHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<system.net>
<connectionManagement>
<add address="*" maxconnection="2" />
</connectionManagement>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<defaultProxy>
<proxy />
<!-- bypassonlocal and proxyaddress are ok -->
<!-- usessystemdefault is not supported -->
</defaultProxy>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.web>
<httpHandlers>
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<httpModules>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="Clear">
<!--<user name="gonzalo" password="gonz"/>-->
</credentials>
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"/>
<!--
culture="en-US"
uiculture="en-US" />
-->
<sessionState mode="InProc" />
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#">
<compilers>
<compiler language="cs;c#;csharp" extension=".cs" warningLevel="1" compilerOptions=""
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
warningLevel="1" compilerOptions=""
type="Microsoft.VisualBasic.VBCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilers>
<assemblies>
<!--<add assembly="mscorlib" /> -->
<add assembly="System" />
<add assembly="System.Xml" />
<add assembly="System.Data" />
<add assembly="System.Web" />
<add assembly="System.Web.Services" />
<add assembly="System.Drawing" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
</compilation>
<httpRuntime executionTimeout="90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />
<pages buffer="true"
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>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
</pubTokenMapping>
</strongNames>
</configuration>
-2
View File
@@ -1,2 +0,0 @@
Makefile
Makefile.in
File diff suppressed because it is too large. Load diff
-8
View File
@@ -1,8 +0,0 @@
monodir = $(sysconfdir)/mono/2.0
EXTRA_DIST = machine.config \
DefaultWsdlHelpGenerator.aspx
mono_DATA = machine.config \
DefaultWsdlHelpGenerator.aspx
-216
View File
@@ -1,216 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="appSettings" type="System.Configuration.NameValueFileSectionHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSectionHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.web">
<section name="httpHandlers"
type="System.Web.Configuration.HttpHandlersSectionHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules"
type="System.Web.Configuration.HttpModulesConfigurationHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey"
type="System.Web.Configuration.MachineKeyConfigHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="authentication"
type="System.Web.Configuration.AuthenticationConfigHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="authorization"
type="System.Web.Configuration.AuthorizationConfigHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="globalization"
type="System.Web.Configuration.GlobalizationConfigurationHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState"
type="System.Web.SessionState.SessionStateSectionHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trace"
type="System.Web.Configuration.TraceConfigurationHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices"
type="System.Web.Services.Configuration.WebServicesConfigurationSectionHandler, System.Web.Services, Version=2.0.3600.0 Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webControls"
type="System.Web.Configuration.WebControlsSectionHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation"
type="System.Web.Configuration.CompilationConfigurationHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime"
type="System.Web.Configuration.HttpRuntimeConfigurationHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors"
type="System.Web.Configuration.CustomErrorsConfigHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="pages"
type="System.Web.Configuration.PagesConfigurationHandler, System.Web, Version=2.0.3600.0, Culture=neutral" />
<section name="clientTarget"
type="System.Web.Configuration.ClientTargetSectionHandler, System.Web, Version=2.0.3600.0, Culture=neutral" />
</sectionGroup>
<sectionGroup name="system.net">
<section name="settings"
type="System.Net.Configuration.NetConfigurationHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement"
type="System.Net.Configuration.ConnectionManagementHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="authenticationModules"
type="System.Net.Configuration.NetAuthenticationModuleHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy"
type="System.Net.Configuration.DefaultProxyHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules"
type="System.Net.Configuration.WebRequestModuleHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<system.net>
<connectionManagement>
<add address="*" maxconnection="2" />
</connectionManagement>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<defaultProxy>
<proxy />
<!-- bypassonlocal and proxyaddress are ok -->
<!-- usessystemdefault is not supported -->
</defaultProxy>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.web>
<httpHandlers>
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
<httpModules>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="Clear">
<!--<user name="gonzalo" password="gonz"/>-->
</credentials>
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"/>
<!--
culture="en-US"
uiculture="en-US" />
-->
<sessionState mode="InProc" />
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#">
<compilers>
<compiler language="cs;c#;csharp" extension=".cs" warningLevel="1" compilerOptions=""
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"
warningLevel="1" compilerOptions=""
type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilers>
<assemblies>
<!--<add assembly="mscorlib" /> -->
<add assembly="System" />
<add assembly="System.Xml" />
<add assembly="System.Data" />
<add assembly="System.Web" />
<add assembly="System.Web.Services" />
<add assembly="System.Drawing" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
</compilation>
<httpRuntime executionTimeout="90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100" />
<pages buffer="true"
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>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
</pubTokenMapping>
</strongNames>
</configuration>
+301 -78
View File
@@ -30,10 +30,8 @@ Unfortunately, analyzing complex expressions is not so easy (see below for
details), so the capabilities of this "abc remover" are limited.
These are simple guidelines:
- Only expressions of the following kinds are handled:
- constant
- variable [+/- constant]
- Only comparisons between "handled" expressions are understood.
- Only simple comparisons between variables are understood.
- Only increment-decrement operations are handled.
- "switch" statements are not yet handled.
This means that code like this will be handled well:
@@ -61,24 +59,16 @@ for (int i = l; i > 0; i--) {
a [i] = .....
}
The following two examples would work:
for (int i = 0; i < (a.Length -1); i++) .....
for (int i = 0; i < a.Length; i += 2) .....
But just something like this
int delta = -1;
for (int i = 0; i < (a.Length + delta); i++) .....
for (int i = 0; i < (a.Length -1); i++) .....
or like this
int delta = +2;
for (int i = 0; i < a.Length; i += delta) .....
for (int i = 0; i < a.Length; i += 2) .....
would not work, the check would stay there, sorry :-(
(unless a combination of cfold, consprop and copyprop is used, too, which
would make the constant value of "delta" explicit).
Just to make you understand how things are tricky... this would work!
@@ -91,9 +81,26 @@ for (int i = 0; i < limit; i++) {
A detailed explanation of the reason why things are done like this is given
below...
All in all, the compiling phase is generally non so fast, and the abc removed
are so few, that there is hardly a performance gain in using the "abcrem"
flag in the compiling options for short programs like the ones I tried.
Anyway, various bound checks *are* removed, and this is good :-)
------------------------------------------------------------------------------
THE ALGORITHM
Unfortunately, this time google has not been my friend, and I did not
find an algorithm I could reasonably implement in the time frame I had,
so I had to invent one. The two cleasses of algorithms I found were either
simply an analisys of variable ranges (which is not very different from
what I'm doing), or they were based on type systems richer than the .NET
one (particularly, they required integer types to have an explicit range,
which could be related to array ranges). By the way, it seems that the
gcj people do not have an array bound check removal optimization (they
just have a compiler flag that unconditionally removes all the checks,
but this is not what we want).
This array bound check removal (abc removal) algorithm is based on
symbolic execution concepts. I handle the removal like an "unreachable
code elimination" (and in fact the optimization could be extended to remove
@@ -195,9 +202,9 @@ one of the definitions of i is a PHI that can be either 0 or "i + 1".
Now, we know that mathematically "i = i + 1" does not make sense, and in
fact symbolic values are not "equations", they are "symbolic definitions".
The actual symbolic value of i is a generic "n", where "n" is the number of
The symbolic value of i is a generic "n", where "n" is the number of
iterations of the loop, but this is terrible to handle (and in more complex
examples the symbolic value of i simply cannot be written, because i is
examples the symbolic definition of i simply cannot be written, because i is
calculated in an iterative way).
However, the definition "i = i + 1" tells us something about i: it tells us
@@ -220,25 +227,13 @@ conditions that could have caused to the removal of an abc, but will
not remove checks "by mistake" (so the resulting code will be in any case
correct).
The expressions we handle are the following (all of integer type):
- constant
- variable
- variable + constant
- constant + variable
- variable - constant
In a first attempt, we can consider only conditions that have the simple
possible form, which is "(compare simpleExpression simpleExpression)",
where "simpleExpression" is either "(ldind.* local[*])" or
"(ldlen (ldind.ref local[*]))" (or a constant, of course).
And, of course, PHI definitions.
Any other expression causes the introduction of an "any" value in the
evaluation, which makes all values that depend from it unknown as well.
We will call these kind of definitions "summarizable" definitions.
In a first attempt, we can consider only branch conditions that have the
simplest possible form (the comparison of two summarizable expressions).
We can also simplify the effect of variable definitions, keeping only
what is relevant to know: their value range with respect to zero and with
respect to the length of the array we are currently handling.
We can also "summarize" variable definitions, keeping only what is relevant
to know: if they are greater or smaller than zero or other variables.
One particular note on PHI functions: they work (obviously) like the logical
"or" of their definitions, and therefore are equivalent to the "logical or"
@@ -250,53 +245,281 @@ if the recursive definition (which, as we said above, must happen because
of a loop) always "grows" or "gets smaller". In all other cases, we decide
we cannot handle it.
So, the algorithm to optimize one method could be something like:
One critical thing, once we have defined all these data structures, is how
the evaluation is actually performed.
In a first attempt I coded a "brute force" approach, which for each BB
tried to examine all possible conditions between all variables, filling
a sort of "evaluation matrix". The problem was that the complexity of this
evaluation was quadratic (or worse) on the number of variables, and that
many wariables were examined even if they were not involved in any array
access.
Following the ABCD paper (http://citeseer.ist.psu.edu/bodik00abcd.html),
I rewrote the algorithm in a more "sparse" way.
Now, the main data structure is a graph of relations between variables, and
each attempt to remove a check performs a traversal of the graph, looking
for a path from the index to the array length that satisfies the properties
"index >= 0" and "index < length". If such a path is found, the check is
removed. It is true that in theory *each* traversal has a complexity which
is exponential on the number of variables, but in practice the graph is not
very connected, so the traversal terminates quickly.
[1] Build the SSA representation.
[2] Analyze each BB. Particularly, do the following:
[2a] summarize its exit conditions
[2b] summarize all the variable definitions occurring in the BB
[2c] check if it contains array accesses (only as optimization, so that
step 3 will be performed only when necessary)
[3] Perform the removal. For each BB that contains array accesses, do:
[3a] build an evaluation area where for each variable we keep track
of its relations with zero and with each other variable.
[3b] populate the evaluation area with the initial data (the variable
definitions and the complete entry condition of the BB)
[3c] propagate the relations between variables (so that from "a<b" and
"b<c" we know that "a<c") in the evaluation area
[3d] for each array access in the BB, use the evaluation area to "match
conditions", to see if the goal functions are satisfied
Then, the algorithm to optimize one method looks like this:
------------------------------------------------------------------------------
LOW LEVEL DESIGN DECISIONS
[1] Preparation:
[1a] Build the SSA representation.
[1b] Prepare the evaluation graph (empty)
[1b] Summarize each varible definition, and put the resulting relations
in the evaluation graph
[2] Analyze each BB, starting from the entry point and following the
dominator tree:
[2a] Summarize its entry condition, and put the resulting relations
in the evaluation graph (this is the reason why the BBs are examined
following the dominator tree, so that conditions are added to the
graph in a "cumulative" way)
[2b] Scan the BB instructions, and for each array access perform step [3]
[2c] Process children BBs following the dominator tree (step [2])
[2d] Remove from the evaluation area the conditions added at step [2a]
(so that backtracking along the tree the area is properly cleared)
[3] Attempt the removal:
[3a] Summarize the index expression, to see if we can handle it; there
are three cases: the index is either a constant, or a variable (with
an optional delta) or cannot be handled (is a "any")
[3b] If the index can be handled, traverse the evaluation area searching
a path from the index variable to the array length (if the index is
a constant, just examine the array length to see if it has some
relation with this constant)
[3c] Use the results of step [3b] to decide if the check is redundant
One of the problems I had to solve was the representation of the relations
between symbolic values.
The "canonical" solution would be to have a complex, potentially recursive
data structure, somewhat similar to MonoInst, and use it all the time (maybe
MonoInst could be used "as is").
The problem is that, at this point, the software would have to "play" with
these structures, for instance to deduce "b < a-1" from "a > b+1", because we
are interested in what value b has, and not a. And maybe the software should
be able to do this without modifying the original condition, because it was
used elsewhere (or could be reused).
Then, the software should also be able to apply logical relations to
conditions (like "(a>0)||(c<1)"), and manipulate them, too.
In my opinion, an optimizer written in this way risks to be too complex, and
its performance not acceptable in a JIT compiler.
Therefore, I decided to represent values in a "summarized" way.
For instance, "x = a + 1" becomes "x > a" (and, by the way, "x = x + 1"
would look like "x > x", which means that "x grows").
So, each variable value is simply a "relation" of the variable with other
variables or constants. Anything more complex is ignored.
Relations are represented with flags (EQ, LT and GT), so that it is easy
to combine them logically (it is enough to perform the bitwise operations
on the flags). The condition (EQ|LT|GT) means we know nothing special, any
value is possible. The empty condition would mean an unreachable statement
(because no value is acceptable).
There is still the problem of identifying variables, and where to store all
these relations. After some thinking, I decided that a "brute force" approach
is the easier, and probably also the fastest. In practice, I keep in memory
an array of "variable relations", where for each variable I record its
relation with the constants 0 and 1 and an array of its relations with all
other variables. The evaluation area, therefore, looks like a square matrix
as large as the number of variables. I *know* that the matrix is rather sparse
(in the sense that only few of its cells are significant), but I decided that
this data structure was the simplest and more efficient anyway. After all,
each cell takes just one byte, and any other data structure must be some
kind of associative array (like a g_hash_table). Such a data structue is
difficult to use with a MonoMemPool, and in the end is slower than a plain
array, and has the storage overhead of all the pointers... in the end, maybe
the full matrix is not a waste at all.
<note>
After a few benchmarks, I clearly see that the matrix works well if the
variables are not too much, otherwise it gets "too sparse", and much time
is wasted in the propagation phase. Maybe the data structure could be changed
after a more careful evaluation of the problem...
</note>
With these assumptions, all the memory used to represent values, conditions
and the evaluation area can be allocated in advance (from a MonoMemPool), and
used for all the analysis of one method. Moreover, the performance of logical
operations is high (they are simple bitwise operations on bytes).
<note>
For the propagation phase, there was a function I could not easily code
with bitwise operations. As that phase is a real pain for the performance
(the complexity is quadratic, and it must be executed iteratively until
nothing changes), I decided to code it in perl, and generate a precomputed
table then used by the C code (just 64 bytes). I think this is faster than
all those branches... Really, I could think again to phases 3c and 3d (see
above), maybe there is a better way to do them.
</note>
Of course not all expressions can be handled by the summarization, so the
optimizer is not as effective as a full blown theorem prover...
Another thing related to design... the implementation is as less intrusive
as possible.
I "patched" the main files to add an option for abc removal, and handle it
just like any other option, and then wrote all the relevant code in two
separated files (one header for data structures, and a C file for the code).
If the patch turns out to be useful also for other pourposes (like a more
generic "unreachable code elimination", that detects branches that will never
be taken using the analysis of variable values), it will not be difficult
to integrate the branch summarizations into the BasicBlock data structures,
and so on.
One last thing... in some places, I knowingly coded in an inefficient way.
For instance, "remove_abc_from_block" does something only if the flag
"has_array_access_instructions" is true, but I call it anyway, letting it
do nothing (calling it conditionally would be better). There are several
things like this in the code, but I was in a hurry, and preferred to make
the code more readable (it is already difficult to understand as it is).
------------------------------------------------------------------------------
WHEN IS ABC REMOVAL POSSIBLE? WHEN IS IT USEFUL?
Warning! Random ideas ahead!
In general, managed code should be safe, so abc removal is possible only if
there already is some branch in the method that does the check.
So, one check on the index is "mandatory", the abc removal can only avoid a
second one (which is useless *because* of the first one).
If in the code there is not a conditional branch that "avoids" to access
an array out of its bounds, in general the abc removal cannot occur.
It could happen, however, that one method is called from another one, and
the check on the index is performed in the caller.
For instance:
void
caller( int[] a, int n ) {
if ( n <= a.Length ) {
for ( int i = 0; i < n; i++ ) {
callee( a, i );
}
}
}
void callee( int[] a, int i ) {
Console.WriteLine( "a [i] = " + a [i] );
}
In this case, it should be possible to have two versions of the callee, one
without checks, to be called from methods that do the check themselves, and
another to be called otherwise.
This kind of optimization could be profile driven: if one method is executed
several times, wastes CPU time for bound checks, and is mostly called from
another one, it could make sense to analyze the situation in detail.
However, one simple way to perform this optimization would be to inline
the callee (so that the abc removal algorithm can see both methods at once).
The biggest benefits of abc removal can be seen for array accesses that
occur "often", like the ones inside inner loops. This is why I tried to
handle "recursive" variable definitions, because without them you cannot
optimize inside loops, which is also where you need it most.
Another possible optimization (alwais related to loops) is the following:
void method( int[] a, int n ) {
for ( int i = 0; i < n; i++ ) {
Console.WriteLine( "a [i] = " + a [i] );
}
}
In this case, the check on n is missing, so the abc could not be removed.
However, this would mean that i will be checked twice at each loop iteration,
one against n, and the other against a.Length. The code could be transformed
like this:
void method( int[] a, int n ) {
if ( n < a.Length ) {
for ( int i = 0; i < n; i++ ) {
Console.WriteLine( "a [i] = " + a [i] ); // Remove abc
}
} else {
for ( int i = 0; i < n; i++ ) {
Console.WriteLine( "a [i] = " + a [i] ); // Leave abc
}
}
}
This could result in performance improvements (again, probably this
optimization should be profile driven).
------------------------------------------------------------------------------
OPEN ISSUES
There are several issues that should still be addressed...
One is related to aliasing. For now, I decided to operate only on local
variables, and ignore aliasing problems (and alias analisys has not yet
been implemented anyway).
Actually, I identified the local arrays with their length, because I
totally ignore the contents of arrays (and objects in general).
Also, in several places in the code I only handle some cases, and ignore
other more complex ones, which could anyway work (there are comments where
this happens). Anyway, this is not harmful (the code is not as effective
as it could be).
Another possible improvement is the explicit handling of all constants.
For now, code like
void
method () {
int[] a = new int [16];
for ( int i = 0; i < 16; i++ ) {
a [i] = i;
}
}
is not handled, because the two constants "16" are lost when variable
relations are summarized (actually they are not lost, they are stored in the
summarized values, but they are not yet used correctly).
The worst thing, anyway, is that for now I fail completely in distinguishing
between signed and unsigned variables/operations/conditions, and between
different integer sizes (in bytes). I did this on pourpose, just for lack of
time, but this can turn out to be terribly wrong.
The problem is caused by the fact that I handle arithmetical operations and
conditions as "ideal" operations, but actually they can overflow and/or
underflow, giving "surprising" results.
For instance, look at the following two methods:
public static void testSignedOverflow()
{
Console.WriteLine( "Testing signed overflow..." );
int[] ia = new int[70000];
int i = 1;
while ( i <ia.Length )
{
try
{
Console.WriteLine( " i = " + i );
ia[i] = i;
}
catch ( IndexOutOfRangeException e )
{
Console.WriteLine( "Yes, we had an overflow (i = " + i + ")" );
}
i *= 60000;
}
Console.WriteLine( "Testing signed overflow done." );
}
public static void testUnsignedOverflow()
{
Console.WriteLine( "Testing unsigned overflow..." );
int[] ia = new int[70000];
uint i = 1;
while ( i <ia.Length )
{
try
{
Console.WriteLine( " i = " + i );
ia[i] = (int) i;
}
catch ( IndexOutOfRangeException e )
{
Console.WriteLine( "Yes, we had an overflow (i = " + i + ")" );
}
i *= 60000;
}
Console.WriteLine( "Testing unsigned overflow done." );
}
In the "testSignedOverflow" method, the exception will be thrown, while
in the "testUnsignedOverflow" everything will go on smoothly.
The problem is that the test "i <ia.Length" is a signed comparison in the
first case, and will not exit from the loop if the index is negative.
Therefore, in the first method, the abc should not be removed.
In practice, the abc removal code should try to predict if any given
expression could over/under-flow, and act accordingly.
For now, I made so that the only accepted expressions are plain increments
and decrements of variables (which cannot over/under-flow without being
trapped by the existing conditions). Anyway, this issue should be analyzed
better.
By the way, in summarizations there is a field that keeps track of the
relation with "1", which I planned to use exactly to summarize products and
quotients, but it is never used (as I said, only increment and decrement
operations are properly summarized).
+1 -14
View File
@@ -69,16 +69,7 @@
not interfere with code in other domains. This is useful if
you want to host different applications in your program.
Now, it is necessary to transfer control to Mono, and setup
the threading infrastructure, you do this like this:
void *user_data = NULL;
mono_runtime_exec_managed_code (domain, main_thread_handler, user_data);
Where your main_thread_handler can load your assembly and execute it:
static void main_thread_handler (gpointer user_data)
Then you can load an assembly containing code into the domain:
MonoAssembly *assembly;
@@ -121,10 +112,6 @@
layer, so in each file where you use pthread.h you should
include the <gc/gc.h> file.
If you can not do this for any reasons, just remember that you
can not store pointers to Mono Objects on the stack, you can
store them safely in the heap, or in global variables though
* Exposing C code to the CIL universe
The Mono runtime provides two mechanisms to expose C code to
-96
View File
@@ -1,96 +0,0 @@
Handling GC allocated objects in C
As part of an effort to improve our GC, we need to keep track
precisely of where objects are stored, so we can incrementally move
from the current conservative GC to a more advanced precise and moving GC.
Previously, all global C variables were considered GC roots, but this makes
the GC less efficient and increases the chances false references are found
to GC memory, hence retaining more memory than needed.
We need to tell the GC that some object is supposed to be kept alive
as if it was referenced in a global variable.
For Mono embedders
------------------
In C#, if you say:
class T {
static object o;
}
Any object which is stored in `o' is considered to be alive -- it will
not be collected. `o' is a member of the root set for the GC.
However, in C code, this is not the case. If you have:
static MonoObject* o = NULL;
The object in `o' will *NOT* be scanned.
If you need to store an object in a C variable and prevent it from being
collected, you need to acquire a GC handle for it.
guint32 handle = mono_gchandle_new (my_object, TRUE);
TRUE means the object will be pinned, so it won't move in memory
when we'll use a moving GC. You can access the MonoObject* referenced by
a handle with:
MonoObject* obj = mono_gchandle_get_target (handle);
When you don't need the handle anymore you need to call:
mono_gchandle_free (handle);
Note that if you assign a new object to the C var, you need to get a new
handle, it's not enough to store a new object in the C var.
So code that looked like this:
static MonoObject* o = NULL;
...
o = mono_object_new (...);
/* use o */
...
/* when done to allow the GC to collect o */
o = NULL;
should now be changed to:
static guint32 o_handle;
...
MonoObject *o = mono_object_new (...);
o_handle = mono_gchandle_new (o, TRUE);
/* use o or mono_gchandle_get_target (o_handle) */
...
/* when done to allow the GC to collect o */
mono_gchandle_free (o_handle);
For Mono runtime developers
---------------------------
There are two kinds of static vars used to store pointers to GC memory
that we need to consider:
*) objects
*) other memory chunks allocated with GC_MALLOC().
Objects should be dealt with the GC handle support as detailed above.
Other items should register the static pointer as an area to be considered
part of the root set with the following:
static gpointer my_gc_data = NULL;
...
MONO_GC_REGISTER_ROOT (my_gc_data);
my_gc_data = GC_MALLOC (...);
Note that this registration is not necessary for *LOCAL* variables,
as they are stored on the stack. It is only necessary for global variables,
as they are not a part of the GC's root set.
Once you have done the MONO_GC_REGISTER_ROOT, the variable is just like
a static variable in C#. To keep an object alive, you have the variable reference
the GC memory, to remove the reference, set the variable to NULL.
As we prepare the code for a precise GC, GC_MALLOC () will not be used anymore
in this way in most cases: we'll have a mechanism to specify exactly where
references to GC memory is stored.
+14 -35
View File
@@ -1,15 +1,20 @@
Mono Intermediate Representation Documentation
Operation: OP_ADDCC_IMM
Operation: OP_LOCALLOC
inst_left:
The value
ins->inst_left = *sp;
ins->cil_code = ip;
Add immediate that will set the carry flag.
dreg:
Destination register
inst_imm
Immediate value to add.
sreg1:
Source register to add.
This is the equivalent of alloca() in a C implementation: it
allocates a bunch of bytes on the stack dynamically. Local
variables are allocated statically in the stack instead.
It is implemented by moving the stack pointer according to the
platform ABI: you may need to keep a specific frame register
to address local variables when LOCALLOC is used (the PPC code
does this, for example: ifyou're doing the s390 port I suggest
starting from that)
Operation: OP_CALL_HANDLER.
@@ -47,29 +52,3 @@ Operation: OP_CCASTCLASS
throws an InvalidCastException exception otherwise.
Operation: OP_LOCALLOC
inst_left:
The value
ins->inst_left = *sp;
ins->cil_code = ip;
This is the equivalent of alloca() in a C implementation: it
allocates a bunch of bytes on the stack dynamically. Local
variables are allocated statically in the stack instead.
It is implemented by moving the stack pointer according to the
platform ABI: you may need to keep a specific frame register
to address local variables when LOCALLOC is used (the PPC code
does this, for example: ifyou're doing the s390 port I suggest
starting from that)
Operation: OP_SUBCC_IMM
Substract immediate that will set the borrow flag.
dreg:
Destination register
inst_imm
Immediate value to add.
sreg1:
Source register to add.
-27
View File
@@ -422,30 +422,3 @@
we replace one or more instructions with others that perform
better for the given architecture or CPU.
* 64 bit support tips, by Zoltan Varga ([email protected])
For a 64-bit port of the Mono runtime, you will typically do
the following:
* need to use inssel-long.brg instead of
inssel-long32.brg.
* need to implement lots of new opcodes:
OP_I<OP> is 32 bit op
OP_L<OP> and CEE_<OP> are 64 bit ops
The 64 bit version of an existing port might share the code
with the 32 bit port (for example SPARC/SPARV9), or it might
be separate (x86/AMD64).
That will depend on the similarities of the two instructions
sets/ABIs etc.
The runtime and most parts of the JIT are 64 bit clean
at this point, so the only parts which require changing are
the arch dependent files.
-68
View File
@@ -1,68 +0,0 @@
We need to switch to a new register allocator.
The current one is split in a global and a local register allocator.
The global one can assign only callee-saves registers and happens
on the tree-based internal representation: it assigns local variables
to hardware registers.
The local one happens on the linear representation on a per basic
block basis and assigns hard registers to virtual registers (which
hold temporary values during expression executions) and it deals also
with the platform-specific issues (fixed registers, call conventions).
Moving to a different register will help solve some of the performance
issues introduced by the above split, make the register more easily
portable and solve some of the issues generated by dealing with trees.
The general design ideas are below.
The new allocator should have a global view of all the method, so it can be
able to assign variables also to some of the volatile registers if possible,
even across basic blocks (this would improve performance).
The allocator would be driven by per-arch declarative data, so porting
should be easier: an architecture needs to specify register classes,
call convention and instructions requirements (similar to the gcc code).
The allocator should operate on the linear representation, this way it's
easier and faster to track usages more correctly. We need to assign virtual
registers on a per-method basis instead of per basic block. We can assign
virtual registers to variables, too. Note that since we fix the stack offset
of local vars only after this step (which happens after the burg rules are run),
some of the burg rules that try to optimize the code won't apply anymore:
the peephole code may need to be enhanced to do the optimizations instead.
We need to handle floating point registers in the global allocator, too.
The new allocator also needs to keep track precisely of which registers
contain references or managed pointers to allow us to move to a precise GC.
It may be worth to use a single increasing set of integers for the virtual
registers, with the class of the register stored separately (unless the
current local allocator which keeps interger and fp registers separate).
Since this is a large task, we need to do it in steps as much as possible.
The first is to run the register allocator _after_ the burg rules: this
requires a rewrite of the liveness code, too, to use linear indexes instead
of basic-block/tree number combinations. This can be done by:
*) allocating virtual regs to all the locals that can be register allocated
*) running the burg rules (some may require adjustments): the local virtual
registers are assigned starting from global-virt-regs+1, instead of the current
hardware-regs+1, so we can tell apart global and local virt regs.
*) running the liveness/whatever code is needed to allocate the global registers
*) allocate the rest of the local variables to stack slots
*) continue with the current local allocator
This work could take 2-3 weeks.
The next step is to define the kind of declarative data an architecture needs
and assigning virtual regs to all the registers and making the allocator
assign from the volatile registers, too.
Note that some of the code that is currently emitted in the arch-specific
code, will need to be emitted as instructions that the reg allocator
can inspect: think of a method that returns the first argument which is
received in a register: the current code copies it to either a local slot or
to a global reg in the prolog an copies it back to the return register
int he basic block, but since neither the regallocator nor the peephole code
knows about the prolog code, the first store cannot be optimized away.
The gcc code has some example of how to specify register classes in a
declarative way.
-77
View File
@@ -1,77 +0,0 @@
While the Boehm GC is quite good, we need to move to a
precise, generational GC for better performance and smaller
memory usage (no false-positives memory retentions with big
allocations).
This is a large task, but it can be done in steps.
1) use the GCJ support to mark reference fields in objects, so
scanning the heap is faster. This is mostly done already, needs
checking that it is always used correctly (big objects, arrays).
There are also some data structures we use in the runtime that are
currently untyped that are allocated in the Gc heap and used to
keep references to GC objects. We need to make them typed as to
precisely track GC references or make them non-GC memory,
by using more the GC hnadle support code (MonoGHashTable, MonoDomain,
etc).
2) don't include in the static roots the .bss and .data segments
to save in scanning time and limit false-positives. This is mostly
done already.
3) keep track precisely of stack locations and registers in native
code generation. This basically requires the regalloc rewrite code
first, if we don't want to duplicate much of it. This is the hardest
task of all, since proving it's correctness is very hard. Some tricks,
like having a build that injects GC.Collect() after every few simple
operations may help. We also need to decide if we want to handle safe
points at calls and back jumps only or at every instruction. The latter
case is harder to implement and requires we keep around much more data
(it potentially makes for faster stop-the-world phases).
The first case requires us to be able to advance a thread until it
reaches the next safe point: this can be done with the same techniques
used by a debugger. We already need something like this to handle
safely aborts happening in the middle of a prolog in managed code,
for example, so this could be an additional sub-task that can be done
separately from the GC work.
Note that we can adapt the libgc code to use the info we collect
when scanning the stack in managed methods and still use the conservative
approach for the unmanaged stack, until we have our own collector,
which requires we define a proper icall interface to switch from managed
to unmanaged code (hwo to we handle object references in the icall
implementations, for example).
4) we could make use of the generational capabilities of the
Boehm GC, but not with the current method involving signals which
may create incompatibilities and is not supported on all platforms.
We need to start using write barriers: they will be required anyway
for the generational GC we'll use. When a field holding a reference
is changed in an object (or an item in an array), we mark the card
or page where the field is stored as dirty. Later, when a collection
is run, only objects in pages marked as dirty are scanned for
references instead of the whole heap. This could take a few days to
implement and probably much more time to debug if all the cases were
not catched:-)
5) actually write the new generational and precise collector. There are
several examples out there as open source projects, though the CLR
needs some specific semantics so the code needs to be written from
scratch anyway. Compared to item 3 this is relatively easer and it can
be tested outside of mono, too, until mono is ready to use it.
The important features needed:
*) precise, so there is no false positive memory retention
*) generational to reduce collection times
*) pointer-hopping allocation to reduce alloc time
*) possibly per-thread lock-free allocation
*) handle weakrefs and finalizers with the CLR semantics
Note: some GC engines use a single mmap area, because it makes
handling generations and the implementation much easier, but this also
limits the expension of the heap, so people may need to use a command-line
option to set the max heap size etc. It would be better to have a design
that allows mmapping a few megabytes chunks at a time.
The different tasks can be done in parallel. 1, 2 and 4 can be done in time
for the mono 1.2 release. Parts of 3 and 5 could be done as well.
The complete switch is supposed to happen with the mono 2.0 release.
+14 -48
View File
@@ -24,17 +24,20 @@ convention is that assemblies must also be placed in a separate
directory for being accessed to the compiler. This is done with the
-package directive to gacutil.
.PP
The tool allows for installation, removal, and listing of the
The tool allows for installationl, removal, and listing of the
contents of the assembly cache.
.PP
The GAC is relative to the Mono installation prefix:
mono_prefix/lib/mono.
.SH FLAGS
The "-user" flag enables you to install/remove the assembly into the
user's assembly cache, as opposed to the global one.
.PP
.SH COMMANDS
.I -i <assembly_path> [-check_refs] [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
.I "-i path_to_assembly" [-f] [-root ROOTDIR] [-package NAME]
.Sp
Installs an assembly into the global assembly cache. <assembly_path>
is the name of the file that contains the assembly manifest
The above installs the assembly into the GAC, use the -f flag to force
an installation an overwrite anything in there.
.Sp
The -package option can be used to also create a directory in in
prefix/lib/mono with the name NAME, and a symlink is created from
@@ -44,32 +47,18 @@ developers can reference a set of libraries at once.
The -root option is used by developers integrating this with automake
tools or packaging tools that require a prefix directory to be
specified. The root represents the "libdir" component of a prefix
(typically prefix/lib).
.Sp
The -gacdir option is used to specify the GACs base directory. Once an
assembly has been installed to a non standard gacdir the MONO_GAC_PREFIX
environment variable must be used to access the assembly.
.Sp
The -check_refs option is used to ensure that the assembly being
installed into the GAC does not reference any non strong named
assemblies. Assemblies being installed to the GAC should not reference
non strong named assemblies, however the is an optional check.
(typically prefix/lib).
.fi
.PP
.I "-l" [assembly_name] [-root ROOTDIR] [-gacdir GACDIR]
.I "-l"
.Sp
Lists the contents of the global assembly cache. When the
<assembly_name> parameter is specified only matching assemblies are
listed.
Lists the contents of the Global Assembly Cache
.PP
.I "-u" <assembly_display_name> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
.I "-u assembly_name [-root]"
.Sp
Uninstalls an assembly from the global assembly cache.
<assembly_display_name> is the name of the assembly (partial or
fully qualified) to remove from the global assembly cache. If a
partial name is specified all matching assemblies will be
uninstalled. As opposed to the install option that takes a filename,
this takes as an argument the assembly name, which looks like this:
The above removes the given assembly name from the Global Assembly
Cache. As opposed to the install option that takes a filename, this
takes as an argument the assembly name, which looks like this:
.nf
MyLibrary.Something, version=1.0.0.0, publicKeyToken=xxxx,culture=neutral
.fi
@@ -80,29 +69,6 @@ to quote them.
The removal performs a greedy removal, if you only specifiy one
component like, "MyLibrary.Something", it will remove all versions of
the library.
.Sp
.I "-us" <assembly_path> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
Uninstalls an assembly using the specifed assemblies full name.
<assembly path> is the path to an assembly. The full assembly name
is retrieved from the specified assembly if there is an assembly in
the GAC with a matching name, it is removed. Unlike the -u option this
option takes a file name, like this:
.nf
Example: -us myDll.dll
.fi
.Sp
.I "-ul" <assembly_list_file> [-package NAME] [-root ROOTDIR] [-gacdir GACDIR]
Uninstalls one or more assemblies from the global assembly cache.
<assembly_list_file> is the path to a test file containing a list of
assembly names on separate lines.
.nf
Example -ul assembly_list.txt
.fi
.nf
assembly_list.txt contents:
assembly1,Version=1.0.0.0,Culture=en,PublicKeyToken=0123456789abcdef
assembly2,Version=2.0.0.0,Culture=en,PublicKeyToken=0123456789abcdef
.fi
.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
-14
View File
@@ -108,20 +108,6 @@ key containers. The option is equivalent to including [assembly:
AssemblyKeyName ("CONTAINER")] in your source code. Compiler option
takes precedence over the attributes.
.TP
.I \-langversion:TEXT
The option specifies the version of the language to use. The feature
set is different in each C# version. This switch can be used to force
the compiler to allow only a subset of the features.
The possible values are:
.nf
Default - Instruct compiler to use the latest version. Equivalent
is to omit the switch.
ISO-1 - Restrict compiler to use only ISO standardized features.
The usage of features such as generics, static classes, anonymous
methods will lead to error.
.TP
.I -lib:PATHLIST
Each path specified in the comma-separated list will direct the
compiler to look for libraries in that specified path.
+4 -13
View File
@@ -232,13 +232,6 @@ Finally, namespaces can be specified using the N: prefix:
mono --trace=N:System.Xml
.fi
.SH DEBUGGING
.PP
If you are interested in debugging P/Invoke problems with your
application, you might want to use:
.nf
$ MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll" mono glue.exe
.fi
.SH ENVIRONMENT VARIABLES
.TP
.I "GC_DONT_GC"
@@ -264,16 +257,14 @@ 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.
.PP
Use info to track the dynamic loading of assemblies.
.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), "aot" (precompiler), "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
(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"
+4 -8
View File
@@ -13,13 +13,9 @@ wsdl \- Mono's Web Service Proxy Generator
[options] [path | url]
.SH DESCRIPTION
.I wsdl
is a tool for generating proxy classes that can be used to access to
web services. The tool reads a WSDL document from the provided path
or url, and downloads referenced schemas or other WSDL documents if
needed.
.PP
This tool is used to target the 1.x API, for targetting the 2.x API,
please use the wsdl2 tool.
is a tool for generating proxy classes that can be used to access to web services.
The tool reads a WSDL document from the provided path or url, and downloads
referenced schemas or other WSDL documents if needed.
.PP
.SH OPTIONS
The following options are available:
@@ -77,4 +73,4 @@ Lluis Sanchez Gual ([email protected])
wsdl is released under the terms of the GNU GPL.
.PP
.SH SEE ALSO
disco(1), soapsuds(1), mono(1), mcs(1), wsdl2(1)
disco(1), soapsuds(1), mono(1), mcs(1)
-79
View File
@@ -1,79 +0,0 @@
.\"
.\" wsdl manual page.
.\" (C) 2003 Novell, Inc.
.\" Author:
.\" Lluis Sanchez Gual ([email protected])
.\"
.TH wsdl 1
.SH NAME
wsdl \- Mono's Web Service Proxy Generator
.SH SYNOPSIS
.PP
.B wsdl
[options] [path | url]
.SH DESCRIPTION
.I wsdl
is a tool for generating proxy classes that can be used to access to web services.
The tool reads a WSDL document from the provided path or url, and downloads
referenced schemas or other WSDL documents if needed.
.PP
This tool is used to target the 2.x API, for targetting the 1.x API,
please use the wsdl tool.
.PP
.SH OPTIONS
The following options are available:
.TP
.I "-appsettingurlkey:key" "-urlkey:key"
Specifies that the url for the services should be read from the <appsettings> section
of the configuration file, using the provided key.
.TP
.I "-appsettingbaseurl:url", "-baseurl:url"
Specifies a base URL for the service. The final URL will be constructed by
combining this value with the URL read from the
.I -appsettingurlkey
option, and the
.I location
attribute specified in the WSDL document.
.TP
.I "-language:language", "-l"
Language of the code to generate. It can be CS (default) or VB.
.TP
.I "-namespace:name", "-n:name"
The namespace of the generated classes. If none is specified, the default
namespace is used.
.TP
.I "-out:filename", "-o:filename"
The target file for generated code.
.TP
.I "-protocol:protocol", "-p:protocol"
The protocol for which to generate code. It can be Soap (default), HttpGet or
HttpPost.
.TP
.I "-sample:METHOD"
This will display XML request and reply of the sample invocations to
that SOAP message. You can use the -protocol: option to render the
message in different forms.
.TP
.I "-server"
Generate a server skeleton instead of a client proxy.
.TP
.I "-nologo"
Supress the startup logo.
.TP
.I "-u:username", "-user:username"
The user name to use when connecting to the server.
.TP
.I "-p:password", "-password:password"
The password to use when connecting to the server.
.TP
.I "-d:domain", "-domain:domain"
The domain to use when connecting to the server.
.PP
.SH AUTHORS
Lluis Sanchez Gual ([email protected])
.PP
.SH LICENSE
wsdl is released under the terms of the GNU GPL.
.PP
.SH SEE ALSO
disco(1), soapsuds(1), mono(1), mcs(1), wsdl(1)
-32
View File
@@ -1,35 +1,3 @@
2004-09-27 Raja R Harinath <[email protected]>
* nunit20/nunit-console/Makefile (PROGRAM): Put in
profile-specific directory.
2004-09-21 Raja R Harinath <[email protected]>
* Makefile (DIST_ONLY_SUBDIRS): Add 'gmcs' since it is specially
handled by 'class/corlib/Makefile'.
(test-installed-compiler): Run compiler tests using the installed
compiler.
2004-09-14 Raja R Harinath <[email protected]>
* Makefile (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.
2004-09-03 Martin Baulig <[email protected]>
* Makefile (test-compiler): New target to run the compiler test.
2004-07-02 Raja R Harinath <[email protected]>
* 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.
2004-06-22 Todd Berman <[email protected]>
* configure: Patch from Mariano Suárez-Alvarez
-313
View File
@@ -1,313 +0,0 @@
The class libraries are grouped together in the assemblies they belong.
Each directory here represents an assembly, and inside each directory we
divide the code based on the namespace they implement.
In addition, each assembly directory contains a Test directory that holds the
NUnit tests for that assembly.
We use a new build system which is described by various README files
in mcs/build
The build process typically builds an assembly, but in some cases it
also builds special versions of the assemblies intended to be used for
testing.
* Missing implementation bits
If you implement a class and you are missing implementation bits,
please use the attribute [MonoTODO]. This attribute can be used
to programatically generate our status web pages:
[MonoTODO]
int MyFunction ()
{
throw new NotImplementedException ();
}
* Supporting .NET 1.2, .NET 1.1 and .NET 1.0 builds
The defines NET_1_1 and NET_2_0 are used to include
features. When NET_2_0 is defined, it also implies that the
NET_1_1 is defined.
To have code which is only available in an old version, use ONLY_1_0,
ONLY_1_1
* Tagging buggy code
If there is a bug in your implementation tag the problem by using
the word "FIXME" in the code, together with a description of the
problem.
Do not use XXX or obscure descriptions, because otherwise people
will not be able to understand what you mean.
* Tagging Problematic specs.
If the documentation and the Microsoft implementation do
differ (you wrote a test case to prove this), I suggest that you edit
the file `mcs/class/doc/API-notes' so we can keep track of these problems
and submit our comments to ECMA or Microsoft and seek clarification.
Sometimes the documentation might be buggy, and sometimes the implementation
might be buggy. Lets try to identify and pinpoint which one
is the correct one.
Sometimes the specification will be lame (consider Version.ToString (fieldCount)
where there is no way of knowing how many fields are available, making the API
not only stupid, but leading to unreliable code).
In those cases, use the keyword "LAMESPEC".
* Coding considerations and style.
In order to keep the code consistent, please use the following
conventions. From here on `good' and `bad' are used to attribute
things that would make the coding style match, or not match. It is not
a judgement call on your coding abilities, but more of a style and
look call. Please try to follow these guidelines to ensure prettiness.
Use 8 space tabs for writing your code (hopefully we can keep
this consistent). If you are modifying someone else's code, try
to keep the coding style similar.
Since we are using 8-space tabs, you might want to consider the Linus
Torvals trick to reduce code nesting. Many times in a loop, you will
find yourself doing a test, and if the test is true, you will nest.
Many times this can be changed. Example:
for (i = 0; i < 10; i++) {
if (something (i)) {
do_more ();
}
}
This take precious space, instead write it like this:
for (i = 0; i < 10; i++) {
if (!something (i))
continue;
do_more ();
}
A few guidelines:
* Use a space before an opening parenthesis when calling
functions, or indexing, like this:
method (a);
b [10];
* Do not put a space after the opening parenthesis and the
closing one, ie:
good: method (a); array [10];
bad: method ( a ); array[ 10 ];
* Inside a code block, put the opening brace on the same line
as the statement:
good:
if (a) {
code ();
code ();
}
bad:
if (a)
{
code ();
code ();
}
* Avoid using unecessary open/close braces, vertical space
is usually limited:
good:
if (a)
code ();
bad:
if (a) {
code ();
}
* When defining a method, use the C style for brace placement,
that means, use a new line for the brace, like this:
good:
void Method ()
{
}
bad:
void Method () {
}
* Properties and indexers are an exception, keep the
brace on the same line as the property declaration.
Rationale: this makes it visually
simple to distinguish them.
good:
int Property {
get {
return value;
}
}
bad:
int Property
{
get {
return value;
}
}
Notice how the accessor "get" also keeps its brace on the same
line.
For very small properties, you can compress things:
ok:
int Property {
get { return value; }
set { x = value; }
}
* Use white space in expressions liberally, except in the presence
of parenthesis:
good:
if (a + 5 > method (blah () + 4))
bad:
if (a+5>method(blah()+4))
* For any new files, please use a descriptive introduction, like
this:
//
// System.Comment.cs: Handles comments in System files.
//
// Author:
// Juan Perez ([email protected])
//
// (C) 2002 Address, Inc (http://www.address.com)
//
* If you are modyfing someone else's code, and your contribution
is significant, please add yourself to the Authors list.
* Switch statements have the case at the same indentation as the
switch:
switch (x) {
case 'a':
...
case 'b':
...
}
* Argument names should use the camel casing for
identifiers, like this:
good:
void Method (string myArgument)
bad:
void Method (string lpstrArgument)
void Method (string my_string)
* Empty methods: They should have the body of code using two
lines, in consistency with the rest:
good:
void EmptyMethod ()
{
}
bad:
void EmptyMethod () {}
void EmptyMethod ()
{}
* Line length: The line length for C# source code is 134 columns.
If your function declaration arguments go beyond
this point, please align your arguments to match the
opening brace, like this:
void Function (int arg, string argb,
int argc)
{
}
When invoking functions, the rule is different, the
arguments are not aligned with the previous
argument, instead they begin at the tabbed position,
like this:
void M ()
{
MethodCall ("Very long string that will force",
"Next argument on the 8-tab pos",
"Just like this one")
}
Here are a couple of examples:
class X : Y {
bool Method (int argument_1, int argument_2)
{
if (argument_1 == argument_2)
throw new Exception (Locale.GetText ("They are equal!");
if (argument_1 < argument_2) {
if (argument_1 * 3 > 4)
return true;
else
return false;
}
//
// This sample helps keep your sanity while using 8-spaces for tabs
//
VeryLongIdentifierWhichTakesManyArguments (
Argument1, Argument2, Argument3,
NestedCallHere (
MoreNested));
}
bool MyProperty {
get {
return x;
}
set {
x = value;
}
}
void AnotherMethod ()
{
if ((a + 5) != 4) {
}
while (blah) {
if (a)
continue;
b++;
}
}
}
+32 -39
View File
@@ -1,48 +1,41 @@
thisdir := .
SUBDIRS := build jay mcs monoresgen class mbas nunit20 ilasm tools tests errors docs
# 'gmcs' is specially built by rules inside class/corlib.
DIST_ONLY_SUBDIRS := gmcs
ifdef TEST_SUBDIRS
SUBDIRS := $(TEST_SUBDIRS)
endif
ifndef NO_SIGN_ASSEMBLIES
OVERRIDE_TARGET_ALL = yes
endif
OVERRIDE_BARE_TARGETS = hells yeah
include build/rules.make
all-recursive $(STD_TARGETS:=-recursive): platform-check profile-check
# Define these ourselves to that the platform checks come first
# Used only if OVERRIDE_TARGET_ALL is defined
all.override:
$(MAKE) NO_SIGN_ASSEMBLY=yes all.real
$(MAKE) all.real
#all: platform-check profile-check all-recursive #all-local
.PHONY: all-local $(STD_TARGETS:=-local)
all-local $(STD_TARGETS:=-local):
@:
.PHONY: all clean all-profiles clean-profiles install uninstall test run-test testcorlib
all: platform-check profile-check all-recursive
install: platform-check profile-check install-recursive #install-local
uninstall: platform-check profile-check uninstall-recursive #uninstall-local
test: platform-check profile-check test-recursive #test-local
run-test: run-test-recursive #run-test-local
run-test-ondotnet: run-test-ondotnet-recursive # run-test-ondotnet-local
clean: clean-recursive #clean-local
# fun specialty targets
.PHONY: all-profiles $(STD_TARGETS:=-profiles)
all-profiles $(STD_TARGETS:=-profiles):
$(MAKE) PROFILE=default $(@:-profiles=)
$(MAKE) PROFILE=net_2_0 $(@:-profiles=)
all-profiles:
$(MAKE) PROFILE=default all
$(MAKE) PROFILE=net_2_0 all
clean-profiles:
$(MAKE) PROFILE=default clean
$(MAKE) PROFILE=net_2_0 clean
testcorlib:
@cd class/corlib && $(MAKE) test run-test
compiler-tests:
$(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
test-installed-compiler:
$(MAKE) TEST_SUBDIRS="tests errors" PROFILE=default TEST_RUNTIME=mono MCS=mcs run-test
$(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_2_0 TEST_RUNTIME=mono MCS=gmcs run-test
# Disting. We need to override $(distdir) here.
package := mcs-$(VERSION)
@@ -67,17 +60,16 @@ DISTFILES = \
ScalableMonoIcon.svg \
winexe.in
dist-local: dist-default
dist-recursive: dist-pre
dist-pre:
rm -rf $(package)
mkdir $(package)
dist-tarball: dist-recursive
dist-post:
tar cvzf $(package).tar.gz $(package)
dist-local: dist-default
dist-tarball: dist-pre dist-recursive dist-post
dist: dist-tarball
rm -rf $(package)
@@ -88,10 +80,11 @@ dist: dist-tarball
# We need to set prefix on make so class/System/Makefile can find
# the installed System.Xml to build properly
distcheck: dist-tarball
distcheck:
rm -rf InstallTest Distcheck-MCS ; \
mkdir InstallTest ; \
destdir=`cd InstallTest && pwd` ; \
$(MAKE) dist-tarball || exit 1 ; \
mv $(package) Distcheck-MCS ; \
(cd Distcheck-MCS && \
$(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
-24
View File
@@ -1,24 +0,0 @@
'==========================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Reference:
'APR-1.0.0: Argument Passing by Reference, which means the procedure can modify the variable
' itself.
'===========================================================================================
Imports System
Module APR_1_0_0
Sub F(ByRef p As Integer)
p += 1
End Sub
Sub Main()
Dim a As Integer = 1
F(a)
if (a=1)
Throw New System.Exception("#A1, Unexcepted Behaviour in Arguments_ByReferenceA.vb")
end if
End Sub
End Module
'============================================================================================
-25
View File
@@ -1,25 +0,0 @@
'=============================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Reference:
'APR-1.4.0: If procedure is define by passing argument by reference and while calling the
' procedure it is passes by giving parentheses around the variable then it protect
' it from change
'=============================================================================================
Imports System
Module APR_1_4_0
Sub F(ByRef p As Integer)
p += 1
End Sub
Sub Main()
Dim a As Integer = 1
F((a))
if(a<>1)
Throw new System.Exception ("#A1, Unexpected behavior in Arguments_ByReferenceB.vb")
end if
End Sub
End Module
'==============================================================================================
-23
View File
@@ -1,23 +0,0 @@
'=============================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Reference:
'APR-1.1.0: If variable elements is of value type, i.e. it contains only a value then procedure ' can change the variable or any of its members
'=============================================================================================
Imports System
Module APR_1_1_0
Sub F(ByRef p As String)
p = "Sinha"
End Sub
Sub Main()
Dim a As String = "Manish"
F(a)
if (a="Manish")
Throw New System.Exception("#A1, Unexcepted behaviour of ByRef of String Datatype")
end if
End Sub
End Module
'=============================================================================================
-51
View File
@@ -1,51 +0,0 @@
'==============================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Reference:
'APR-1.3.0: If the variable elements is of reference type i.e. it contain a pointers to a class
' then procedure can change the members of instance to which it points
'==============================================================================================
Imports System
Imports System.Array
Module APR_1_3_0
Public Sub Increase(ByRef A() As Long)
Dim J As Integer
For J = 0 To 3
A(J) = A(J) + 1
Next J
End Sub
' ...
Public Sub Replace(ByRef A() As Long)
Dim J As Integer
Dim K() As Long = {100, 200, 300,400}
A = K
For J = 0 To 3
A(J) = A(J) + 1
Next J
End Sub
' ...
Sub Main()
Dim N() As Long = {10, 20, 30, 40}
Dim N1() As Long = {11, 21, 31, 41}
Dim N2() As Long = {101, 201, 301, 401}
Dim i As Integer
Increase(N)
For i = 0 to 3
if (N(i) <> N1(i))
Throw New System.Exception("#A1, Unexception Behaviour in Increase Function")
end if
Next i
Replace(N)
For i= 0 to 3
if ( N(i) <> N2(i))
Throw New System.Exception("#A2, Unexception Behaviour in Increase Function")
end if
Next i
End Sub
End Module
'==============================================================================================
-22
View File
@@ -1,22 +0,0 @@
'==========================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Value:
'APV-1.0.0: Argument Passing by value, which means the procedure cannot modify the variable
' itself.
'==========================================================================================
Imports System
Module APV1_0
Sub F(ByVal p As Integer)
p += 1
End Sub
Sub Main()
Dim a As Integer = 1
F(a)
if a<>1
Throw new System.Exception("#A1, Unexcepted behaviour")
end if
End Sub
End Module
'============================================================================================
-22
View File
@@ -1,22 +0,0 @@
'=============================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Value:
'APV-1.4.0: By Default VB pass arguments by values, i.e if procedure is pass without mentioning
' type then it take as ByVal type
'=============================================================================================
Imports System
Module APV1_4_0
Sub F(p As Integer)
p += 1
End Sub
Sub Main()
Dim a As Integer = 1
F(a)
if a<>1
Throw new System.Exception("#A1, uncexcepted behaviour of Default VB pass arguments")
end if
End Sub
End Module
'=============================================================================================
-22
View File
@@ -1,22 +0,0 @@
'=============================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Value:
'APV-1.1.0: If variable elements is of value type, i.e. it contains only a value then procedure ' cannot change the variable or any of its members
'=============================================================================================
Imports System
Module APV1_1_0
Sub F(p As String)
p = "Sinha"
End Sub
Sub Main()
Dim a As String = "Manish"
F(a)
if a<>"Manish"
Throw New System.Exception("#A1, Unexcepted behaviour in string of APV1_1_0")
end if
End Sub
End Module
'=============================================================================================
-50
View File
@@ -1,50 +0,0 @@
'=============================================================================================
'Name:Manish Kumar Sinha
'Email Address: [email protected]
'Test Case Name: Argument passing by Value:
'APV-1.0.0: If the variable elements is of reference type i.e. it contain a pointers to a class
' then procedure can change the members of instance to which it points
'==============================================================================================
Imports System
Imports System.Array
Module APV1_0
Public Sub Increase(ByVal A() As Long)
Dim J As Integer
For J = 0 To 3
A(J) = A(J) + 1
Next J
End Sub
' ...
Public Sub Replace(ByVal A() As Long)
Dim J As Integer
Dim K() As Long = {100, 200, 300, 400}
A = K
For J = 0 To 3
A(J) = A(J) + 1
Next J
End Sub
' ...
Sub Main()
Dim N() As Long = {10, 20, 30, 40}
Dim N1() As Long = {11, 21, 31, 41}
Dim N2() As Long = {100, 200, 300, 400}
Dim i As Integer
Increase(N)
For i=0 To 3
if(N(i)<>N1(i))
Throw new System.Exception ("#A1, Unexpected behavior in Increase function")
end if
Next i
i=0
Replace(N)
For i=0 To 3
if(N(i)=N2(i))
Throw new System.Exception ("#A2, Unexpected behavior in Replace function")
end if
Next i
End Sub
End Module
'============================================================================================
-53
View File
@@ -1,53 +0,0 @@
Imports System
Module ArithmeticOperators
Sub main()
Dim a1, a3 As Integer
Dim a2 As String
a1 = 2 + 3
If a1 <> 5 Then
Console.WriteLine("#A1-AdditionOperator:Failed")
End If
a1 = 1204.08 + 3433
If a1 <> 4637 Then
Console.WriteLine("#A2-AdditionOperator:Failed")
End If
a3 = 2
a2 = "235"
a1 = a2 + a3
If a1 <> 237 Then
Console.WriteLine("#A3-AdditionOperator:Failed")
End If
a1 = a3 + Nothing
If a1 <> 2 Then
Console.WriteLine("#A4-AdditionOperator:Failed")
End If
Dim b1, b2, b3 As Char
b1 = "a"
b2 = "c"
b3 = b1 + b2
If b3 <> "a" Then
Console.WriteLine("#A5-AdditionOperator:Failed")
End If
Dim c1 As Double
c1 = 463.338 - 338.333
If c1 <> 125.005 Then
Console.WriteLine("#A6-SubtractionOperator:Failed")
End If
c1 = 463.338 * 338.3
If c1 <> 156747.2454 Then
Console.WriteLine("#A7-MultiplicationOperator:Failed")
End If
End Sub
End Module
-15
View File
@@ -1,15 +0,0 @@
Imports System
Module ArithmeticOperators1
Sub main()
Dim b1 As Decimal
b1 = 34.45
b1 = b1 / 0
Console.WriteLine(b1)
End Sub
End Module
-14
View File
@@ -1,14 +0,0 @@
Imports System
Module ArithmeticOperators2
Sub main()
Dim c1 As Decimal
c1 = 12.345
c1 = c1 Mod 0
End Sub
End Module
-15
View File
@@ -1,15 +0,0 @@
Imports System
Module ArithmeticOperators3
Sub main()
Dim a1 As Decimal
a1 = System.Decimal.MaxValue
a1 = a1 ^ 2
Console.WriteLine(a1)
End Sub
End Module
-54
View File
@@ -1,54 +0,0 @@
Imports System
Module ArithmeticOperatorsA
Sub main()
Dim a1, a2 As Double
a1 = 3 / 2
If a1 <> 1.5 Then
Console.WriteLine("#A1-RegularDivisionOperator:Failed")
End If
Dim b1 As Integer
b1 = 12 \ 2.5
If b1 <> 6 Then
Console.WriteLine("#A2-IntegerDivisionOperator:Failed")
End If
b1 = 11 \ 4
If b1 <> 2 Then
Console.WriteLine("#A3-IntegerDivisionOperator:Failed")
End If
b1 = 67 \ -4
If b1 <> -16 Then
Console.WriteLine("#A4-IntegerDivisionOperator:Failed")
End If
a1 = 12 Mod 2
If a1 <> 0 Then
Console.WriteLine("#A5-ModOperator:Failed")
End If
'a1 = 12.6 Mod 5
'If a1 <> 2.6 Then
'Console.WriteLine("#A6-ModOperator:Failed")
'End If
a1 = 2 ^ 3
If a1 <> 8 Then
Console.WriteLine("#A7-ExponentialOperator:Failed")
End If
a1 = (-2) ^ 3
If a1 <> -8 Then
Console.WriteLine("#A8-ExponentialOperator:Failed")
End If
End Sub
End Module
-22
View File
@@ -1,22 +0,0 @@
' BC30542: Division by zero occurred while evaluating this expression.
Imports System
Module ArithmeticOperatorsC1
Sub main()
Dim a1, a2 As Integer
Dim b1 As Double
a1 = 10 \ Nothing
Console.WriteLine(a1)
b1 = 12.35 / 0
Console.WriteLine(b1)
a1 = 10 Mod 0
End Sub
End Module
-19
View File
@@ -1,19 +0,0 @@
' BC30512: Option strict On disallows implicit conversions
Option Strict On
Imports System
Module ArithmeticOperatorsC2
Sub main()
Dim a1, a2 As Integer
a1 = 12 \ 2.5
Dim b1 As Decimal
b1 = 34.45D
a1 = b1 / 0
End Sub
End Module
-14
View File
@@ -1,14 +0,0 @@
'Unhandled Exception: System.ArrayTypeMismatchException: 'ReDim' can
' only change the rightmost dimension.
Imports System
Module Array1
Sub Main()
Dim arr As Integer(,) = {{1, 2}, {3, 4}}
ReDim Preserve arr(3, 3)
arr(2, 2) = 12
End Sub
End Module
-15
View File
@@ -1,15 +0,0 @@
' System.InvalidCastException: Cast from string to integer not valid
Imports System
Module Array2
Sub Main()
Dim arr As Integer(,) = {{1, "Hello"}, {3, 4}}
If arr(0, 0) <> 1 Then
Throw New Exception("#A1")
End If
End Sub
End Module
-20
View File
@@ -1,20 +0,0 @@
' Unhandled Exception: System.IndexOutOfRangeException: Index was outside
' the bounds of the array.
Imports System
Module Array3
Sub Main()
Dim arr As Integer(,) = {{1, 2, 3}, {3, 4, 7}}
arr(0, 2) = arr(0, 0) * arr(0, 1)
arr(1, 2) = arr(1, 0) * arr(1, 1)
If arr(0, 2) <> 2 Or arr(1, 2) <> 12 Then
Throw New Exception("#A1 - Array Handling Statement failed")
End If
ReDim Preserve arr(1, 1)
arr(1, 2) = 2
End Sub
End Module
-15
View File
@@ -1,15 +0,0 @@
REM LineNo: 11
REM ExpectedError: BC30415
REM ErrorMessage: 'ReDim' cannot change the number of dimensions of an array
Imports System
Module ArrayC3
Sub Main()
Dim arr As Integer(,) = {{1, 2}, {3, 4}}
ReDim arr(2)
End Sub
End Module
-23
View File
@@ -1,23 +0,0 @@
REM LineNo: 18
REM ExpectedError: BC30526
REM ErrorMessage: Property 'myprop' is 'ReadOnly'
Imports System
Module ArrayC4
Dim a As Integer() = {1, 2, 3, 4}
Public ReadOnly Property myprop() As Integer()
Get
Return a
End Get
End Property
Sub main()
ReDim Preserve myprop(6)
myprop(4) = 10
myprop(5) = 12
End Sub
End Module
-25
View File
@@ -1,25 +0,0 @@
REM LineNo: 18
REM ExpectedError: BC30524
REM ErrorMessage: Property 'myprop' is 'WriteOnly'
Imports System
Module ArrayC5
Dim a As Integer() = {1, 2, 3, 4}
Public WriteOnly Property myprop() As Integer()
Set(ByVal Value As Integer())
a = Value
End Set
End Property
Sub Main()
ReDim Preserve myprop(5)
myprop(4) = 10
For i As Integer = 0 to myprop.Length - 1
Console.WriteLine(myprop(i))
Next
End Sub
End Module
-18
View File
@@ -1,18 +0,0 @@
REM LineNo: 10
REM ExpectedError: BC30689
REM ErrorMessage: Statement cannot appear outside of a method body.
Imports System
Module ArrayC6
Dim a As Integer() = {1, 2, 3, 4}
ReDim Preserve a(5)
Erase a
Sub Main()
ReDim Preserve a(6)
Erase a
Console.WriteLine(a(0))
End Sub
End Module
-33
View File
@@ -1,33 +0,0 @@
Imports System
Module ArrayE
Dim a As Integer() = {1, 2, 3, 4}
Public Property myprop() As Integer()
Get
Return a
End Get
Set(ByVal Value As Integer())
a = Value
End Set
End Property
Sub main()
ReDim Preserve myprop(6)
Dim arr As Integer() = {1, 2, 3, 4, 10, 12, 14}
myprop(4) = 10
myprop(5) = 12
myprop(6) = 14
For i As Integer = 0 to myprop.Length - 1
Console.WriteLine(myprop(i))
If myprop(i) <> arr(i) Then
Throw New Exception("#AE1 - Array Statement failed")
End If
Next
End Sub
End Module
-29
View File
@@ -1,29 +0,0 @@
Imports System
Module ArrayF
Sub Main()
Dim arr As Integer(,) = {{1, 2, 3}, {3, 4, 7}}
ReDim arr(1, 1)
If arr(0, 0) = 1 Then
Throw New Exception("#AF1 - ReDim Statement failed")
End If
arr(0, 0) = 1
arr(0, 1) = 2
If arr(0, 0) <> 1 Then
Throw New Exception("#AF2 - ReDim Statement failed")
End If
Try
Erase arr
Console.WriteLine(arr(0, 0))
Catch e As Exception
If e.GetType.ToString <> "System.NullReferenceException" Then
Throw New Exception("#AF3 - Erase Statement failed")
End If
End Try
End Sub
End Module
-22
View File
@@ -1,22 +0,0 @@
Imports System
Module ArrayG
Sub Main()
Dim arr As Integer(,) = {{1, 2, 3}, {3, 4, 7}}
ReDim arr(-1, -1)
If arr.Length <> 0 Then
Throw New Exception("#AG1 - ReDim Statement failed")
End If
If arr Is Nothing Then
Throw New Exception("#AG2 - ReDim Statement failed")
End If
Erase arr
If Not arr Is Nothing Then
Throw New Exception("#AG3 - Erase Statement failed")
End If
End Sub
End Module
-35
View File
@@ -1,35 +0,0 @@
Imports System
Module M1
Function Main() As Integer
Dim x As Integer = 7
Dim y As Integer = 2
y += 3
x = y + 10
If y <> 5 Then
Return 1
End If
If x <> 15 Then
Return 2
End If
x += 9
If x <> 24 Then
Return 3
End If
Dim c As Byte = 3
Dim d As Byte = 5
d ^= c
Console.WriteLine(d)
Dim s As Short = 5
Dim i As Integer = 400001
s <<= i
Console.WriteLine(s)
End Function
End Module
-20
View File
@@ -1,20 +0,0 @@
' ErrorMessage: System.ArrayTypeMismatchException: Attempted to store
' an element of the incorrect type into the array.
Imports System
Module AssignmentStatements1
Sub main()
Dim sa(10) As String
Dim oa As Object() = sa
oa(0) = Nothing
oa(1) = "Hello "
oa(2) = "World"
oa(3) = New Date(2004, 8, 17)
End Sub
End Module
-13
View File
@@ -1,13 +0,0 @@
' System.InvalidCastException: Cast from string "Hello World" to type 'Integer' is not valid.
Imports System
Module AssignmentStatements2
Sub main()
Dim a As Integer
a = "Hello " + "World"
Console.WriteLine(a)
End Sub
End Module
-18
View File
@@ -1,18 +0,0 @@
' ErrorMessage: System.OverflowException: Arithmetic operation resulted in an overflow.
Imports System
Module AssignmentStatements3
Sub main()
Dim b As Byte = 0
b += 1000
If b <> 1000 Then
Throw New Exception("#AS3-Assignment Statement Failed")
End If
End Sub
End Module
-16
View File
@@ -1,16 +0,0 @@
' ErrorMessage: System.InvalidCastException: Cast from string "Hello " to type 'Double'
' is not valid.
Imports System
Module AssignmentStatements4
Sub main()
Dim i As Integer = 0
Dim str As String = "Hello "
str += i
Console.WriteLine(str)
End Sub
End Module
-24
View File
@@ -1,24 +0,0 @@
Imports System
Module AssignmentStatements5
Private str As String = "Hello VB.NET World"
Public ReadOnly Property mystr() As String
Get
Return str
End Get
End Property
Sub main()
Mid(mystr, 7) = "MS.NET"
Console.WriteLine(mystr)
If mystr <> "Hello MS.NETBasic " Then
Throw New Exception("#AS5 - Assignment Statement failed")
End If
End Sub
End Module
-54
View File
@@ -1,54 +0,0 @@
Imports System
Module AssignmentStatementsA
Sub main()
Dim i As Integer
i = 2
If i <> 2 Then
Throw New Exception("#ASA1 - Assignment Statement failed")
End If
i = 2.3 * 3.45 / 2.3 ' Implicit type conversion
If i <> 3 Then
Throw New Exception("#ASA2 - Assignment Statement failed")
End If
Dim s As String = 2.3 * 3.45 / 2.3
If s <> 3.45 Then
Throw New Exception("#ASA3 - Assignment Statement failed")
End If
s = New Date(2004, 8, 17)
If s <> New Date(2004, 8, 17) Then
Throw New Exception("#ASA4 - Assignment Statement failed")
End If
If s <> "8/17/2004" Then
Throw New Exception("#ASA5 - Assignment Statement failed")
End If
Dim obj As New Object()
Dim obj1, obj2 As Object
obj1 = obj
obj2 = obj
If Not obj1 Is obj2 Then
Throw New Exception("#ASA6 - Assignment Statement failed")
End If
Dim obj3 As Object
obj3 = i
If obj3 <> 3 Then
Throw New Exception("#ASA7 - Assignment Statement failed")
End If
i = 12
i = obj3
If i <> 3 Then
Throw New Exception("#ASA8 - Assignment Statement failed")
End If
End Sub
End Module
-45
View File
@@ -1,45 +0,0 @@
Imports System
Imports Microsoft.VisualBasic
Module AssignmentStatementsB
Sub main()
Dim b As Byte = 0
Dim ch As Char = "a"
Dim i As Integer = 0
Dim str As String = "Hello "
b += 1
If b <> CByte(1) Then
Throw New Exception("#ASB1-Assignment Statement Failed")
End If
b += i
If b <> CByte(1) Then
Throw New Exception("#ASB2-Assignment Statement Failed")
End If
b += CByte(i)
If b <> CByte(1) Then
Throw New Exception("#ASB3-Assignment Statement Failed")
End If
ch += ChrW(65)
If ch <> CChar("aA") Then
Throw New Exception("#ASB4-Assignment Statement Failed")
End If
str &= "World"
If str <> "Hello World" Then
Throw New Exception("#ASB5-Assignment Statement Failed")
End If
i += "12"
If i <> 12 Then
Throw New Exception("#ASB6-Assignment Statement Failed")
End If
End Sub
End Module
-45
View File
@@ -1,45 +0,0 @@
Imports System
Imports Microsoft.VisualBasic
Module AssignmentStatementsC
Private str As String = "Hello VB.NET World"
Public Property mystr() As String
Get
Return str
End Get
Set(ByVal Value As String)
str = Value
End Set
End Property
Sub main()
Mid(str, 7) = "MS.NET"
If str <> "Hello MS.NET World" Then
Throw New Exception("#ASC1 - Assignment Statement failed")
End If
Mid(str, 7, 5) = "ASP.NET"
If str <> "Hello ASP.NT World" Then
Throw New Exception("#ASC2 - Assignment Statement failed")
End If
Mid(str, 7) = "VisualBasic .NET World"
If str <> "Hello VisualBasic " Then
Throw New Exception("#ASC3 - Assignment Statement failed")
End If
Mid(str, 7) = 2.5 * 34.59
If str <> "Hello 86.475Basic " Then
Throw New Exception("#ASC4 - Assignment Statement failed")
End If
Mid(mystr, 7) = "MS.NET"
If mystr <> "Hello MS.NETBasic " Then
Throw New Exception("#ASC5 - Assignment Statement failed")
End If
End Sub
End Module
-16
View File
@@ -1,16 +0,0 @@
REM LineNo: 11
REM ExpectedError: BC30311
REM ErrorMessage: Value of type 'Date' cannot be converted to 'Integer'.
Imports System
Module AssignmentStatementsC1
Sub main()
Dim a As Integer
a = New Date(200)
Console.WriteLine(a)
End Sub
End Module
-18
View File
@@ -1,18 +0,0 @@
REM LineNo: 13
REM ExpectedError: BC32007
REM ErrorMessage: 'Integer' values cannot be converted to 'Char'. Use 'Microsoft.VisualBasic.ChrW'
REM to interpret a numeric value as a Unicode character or first convert it to 'String' to produce a digit.
Imports System
Module AssignmentStatementsC2
Sub main()
Dim ch As Char
ch = 1
Console.WriteLine(ch)
End Sub
End Module
-21
View File
@@ -1,21 +0,0 @@
REM LineNo: 17
REM ExpectedError: BC30512
REM ErrorMessage: Option Strict On disallows implicit conversions
Option Strict On
Imports System
Imports Microsoft.VisualBasic
Module AssignmentStatementsC3
Sub main()
Dim b As Byte = 0
Dim i As Integer = 0
b += 1000
b += i
End Sub
End Module
-26
View File
@@ -1,26 +0,0 @@
REM LineNo: 19
REM ExpectedError: BC30524
REM ErrorMessage: Property 'mystr' is 'WriteOnly'.
Imports System
Imports Microsoft.VisualBasic
Module AssignmentStatementsC4
Private str As String = "Hello VB.NET World"
Public WriteOnly Property mystr() As String
Set(ByVal Value As String)
str = Value
End Set
End Property
Sub main()
Mid(mystr, 7) = "MS.NET"
If mystr <> "Hello MS.NETBasic " Then
Throw New Exception("#ASC41 - Assignment Statement failed")
End If
End Sub
End Module
-42
View File
@@ -1,42 +0,0 @@
Imports System
Module BlockStatementsA
Sub Main()
Dim a As Integer = 10
If a = 10 Then
GoTo a
End If
label: a = 11
a: a = 5
If a = 5 Then
GoTo 123
End If
123: a = 7
If a = 7 Then
GoTo _12ab
End If
_12ab: a = 8
If a = 8 Then
GoTo [class]
End If
[class]: a = 0
Console.WriteLine(a)
' label declaration always takes precedence in any ambiguous situation
f1: Console.WriteLine("Heh") : a = 1 : f1:
End Sub
Function f1() As Boolean
Console.WriteLine("Inside function f1()")
Return True
End Function
End Module
-12
View File
@@ -1,12 +0,0 @@
' BC30451: Name 'b' is not declared
Imports System
Module BlockStatementsC1
sub main
Dim a As Integer = 10
a: b:
Console.WriteLine(a)
end sub
End Module
-20
View File
@@ -1,20 +0,0 @@
' BC30094: Label 'a' is already defined in the current method.
Imports System
Module BlockStatementsC2
Sub Main()
Dim a As Integer = 10
If a = 10 Then
GoTo b
a: a = 11
b: a = 12
Else
GoTo a
End If
a:
Console.WriteLine("Outside label")
End Sub
End Module
-26
View File
@@ -1,26 +0,0 @@
'BC30132: Label 'c' is not defined
Imports System
Module BlockStatementsC3
Sub Main()
Dim a As Integer = 10
If a = 10 Then
GoTo b
a: a = 11
b: a = 12
Else
GoTo c
End If
End Sub
Sub f()
Console.WriteLine("Inside sub f()")
a:
Console.WriteLine("label a")
c:
Console.WriteLine("label c")
End Sub
End Module
-14
View File
@@ -1,14 +0,0 @@
' BC30801: Labels that are numbers must be followed by colons
' BC30451: Name 'a' is not declared
' BC30203: Identifier expected
Imports System
Module BlockStatementsC4
sub main
1a:
_#$%dd:
Console.WriteLine("Invalid labels")
end sub
End Module
-428
View File
@@ -1,431 +1,3 @@
2004-09-30 Anirban Bhattacharjee <[email protected]>
* EventH.vb:
* EventI.vb:
Couple of more scenario got covered
2004-09-29 K Satya Sudha
* Makefile : Modified it to log the names of the testcases that
passed successfully
2004-09-21 Anirban Bhattacharjee <[email protected]>
* EventF.vb: Modified
* EventI.vb: New test
* Test.Sources: Modified
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
2004-09-09 Bernie Solomon <[email protected]>
* Test.Sources: fix case of a couple of filenames
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.
2004-07-07 Bernie Solomon <[email protected]>
* Test.Sources: make file names match actual files
2004-07-07 Bernie Solomon <[email protected]>
* OptionalA.vb: new test for optional args + overloads
* Test.Sources:
2004-09-03 Sachin Kumar <[email protected]>
* ConversionsA.vb:
2004-09-02 Sachin Kumar <[email protected]>
* ControlFlowA.vb;
* ControlFlowC1.vb:
* SyncLock1.vb:
* SyncLockA.vb:
* SyncLockC1.vb:
* SyncLockC2.vb:
* SyncLockC3.vb:
* Test.Sources: added more tests
2004-09-01 Sachin Kumar <[email protected]>
* Array1.vb:
* Array2.vb:
* Array3.vb:
* ArrayC3.vb:
* ArrayC4.vb:
* ArrayC5.vb:
* ArrayC6.vb:
* ArrayF.vb:
* ArrayG.vb:
* Test.Sources: included new tests
2004-08-31 Sachin Kumar <[email protected]>
* ArrayE.vb:
* InvocationStatementA.vb:
* Test.Sources: included new tests
2004-08-27 Sachin Kumar <[email protected]>
* ExceptionHandlingC.vb:
* ExceptionHandlingC10.vb:
* ExceptionHandlingC11.vb:
* ExceptionHandlingC12.vb:
* ExceptionHandlingC13.vb:
* ExceptionHandlingC14.vb:
* ExceptionHandlingC15.vb:
* ExceptionHandlingC16.vb:
* ExceptionHandlingC17.vb:
* Test.Sources: included new tests
2004-08-26 Sachin Kumar <[email protected]>
* ExceptionHandlingA.vb:
* ExceptionHandlingB.vb:
* ExceptionHandlingC1.vb:
* ExceptionHandlingC2.vb:
* ExceptionHandlingC3.vb:
* ExceptionHandlingC4.vb:
* ExceptionHandlingC5.vb:
* ExceptionHandlingC6.vb:
* ExceptionHandlingC7.vb:
* ExceptionHandlingC8.vb:
* ExceptionHandlingC9.vb:
* Test.Sources: included new tests
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
2004-08-25 Sachin Kumar <[email protected]>
* ConditionalStatementsC.vb:
Added small test for nested Select Case Statement
* ConditionalStatementsC15.vb:
A new negative compilation test case
2004-08-24 Sachin Kumar <[email protected]>
* ForA.vb:
* ForB.vb:
* ForC1.vb:
* ForC2.vb:
* ForC3.vb:
* ForC4.vb:
* ForC5.vb:
* ForC6.vb:
* ForC7.vb:
* ForC8.vb:
* ForC9.vb:
* ForEachB.vb:
* ForEachC1.vb:
* ForEachC2.vb:
* ForEachC3.vb:
* ForEachC4.vb:
* ForEachC5.vb:
* ForEachC6.vb:
* ForEachC7.vb:
* ForEachC8.vb:
* LoopStatements1.vb:
* LoopStatementsA.vb:
* Test.Sources: included new tests
2004-08-24 Sachin Kumar <[email protected]>
* LoopStatementsC1.vb:
* LoopStatementsC2.vb:
* LoopStatementsC3.vb:
* LoopStatementsC4.vb:
* LoopStatementsC5.vb:
* LoopStatementsC6.vb:
* LoopStatementsC7.vb:
* LoopStatementsC8.vb:
* Test.Sources: included new tests
2004-08-23 Bernie Solomon <[email protected]>
* DoubleTypeCharTest.vb: needs an Imports System
2004-08-23 Anirban Bhattacharjee <[email protected]>
* Makefile: Trivial bug fixing
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
2004-08-20 Sachin Kumar <[email protected]>
* ConditionalStatementsB.vb:
* ConditionalStatementsC.vb:
* ConditionalStatementsD.vb:
* ConditionalStatementsC8.vb:
* ConditionalStatementsC9.vb:
* ConditionalStatementsC10.vb:
* ConditionalStatementsC11.vb:
* ConditionalStatementsC12.vb:
* ConditionalStatementsC13.vb:
* ConditionalStatementsC14.vb:
* Test.Sources: included new tests
2004-08-19 Anirban Bhattacharjee <[email protected]>
* NameSpaceTestA.vb: New test
* NameSpaceTestB.vb: New test
* Test.Source: Added new test names
2004-08-19 Sachin Kumar <[email protected]>
* ConditionalStatements1.vb:
* ConditionalStatementsA.vb:
* ConditionalStatementsC1.vb:
* ConditionalStatementsC2.vb:
* ConditionalStatementsC3.vb:
* ConditionalStatementsC4.vb:
* ConditionalStatementsC5.vb:
* ConditionalStatementsC6.vb:
* ConditionalStatementsC7.vb:
* Test.Sources: included new tests
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
2004-08-19 Sachin Kumar <[email protected]>
* AssignmentStatements5.vb:
* AssignmentStatementsC.vb:
* AssignmentStatementsC4.vb:
* Test.Sources: included new tests
2004-08-19 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
2004-08-19 Anirban Bhattacharjee <[email protected]>
* EventG.vb: New test case
* EventH.vb: New test case
2004-08-17 Sachin Kumar <[email protected]>
* AssignmentStatements1.vb:
* AssignmentStatements2.vb:
* AssignmentStatements3.vb:
* AssignmentStatements4.vb:
* AssignmentStatementsA.vb:
* AssignmentStatementsB.vb:
* AssignmentStatementsC1.vb:
* AssignmentStatementsC2.vb:
* AssignmentStatementsC3.vb:
* Test.Sources: included new tests
2004-08-16 Sachin Kumar <[email protected]>
* WithStatementC.vb:
* WithStatementC3.vb:
* WithStatementC4.vb:
* Test.Sources: included new tests
2004-08-14 Bernie Solomon <[email protected]>
* ForEachA.vb:
* Test.Sources: new test
2004-08-12 Sachin Kumar <[email protected]>
* WithStatementA.vb:
* WithStatementB.vb:
* WithStatementC1.vb:
* WithStatementC2.vb:
* Test.Sources: included new tests
2004-08-12 Sachin Kumar <[email protected]>
* LocalDeclarationA.vb:
* LocalDeclarationC1.vb:
* LocalDeclarationC2.vb:
* Test.Sources: Included new tests
2004-08-11 Bernie Solomon <[email protected]>
* TypeOf.vb:
* Test.Sources: New test
2004-08-11 Bernie Solomon <[email protected]>
* EnumB.vb:
* Test.Sources: New test
2004-08-11 Sachin Kumar <[email protected]>
* LocalVariables1.vb:
* LocalVariablesA.vb:
* LocalVariablesB.vb:
* LocalVariablesC1.vb:
* LocalVariablesC2.vb:
* LocalVariablesC3.vb:
* Test.Sources: Included new tests
2004-08-11 Sachin Kumar <[email protected]>
* BlockStatementsA.vb:
* BlockStatementsC1.vb:
* BlockStatementsC2.vb:
* BlockStatementsC3.vb:
* BlockStatementsC4.vb:
* Test.Sources: Included new tests
2004-08-07 Bernie Solomon <[email protected]>
* GetType.vb:
* Test.sources: add a test for GetType
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
2004-08-06 Sachin Kumar <[email protected]>
* ArithmeticOperators.vb:
* ArithmeticOperators1.vb:
* ArithmeticOperators2.vb:
* ArithmeticOperators3.vb:
* ArithmeticOperatorsA.vb:
* ArithmeticOperatorsC1.vb:
* ArithmeticOperatorsC2.vb:
* LikeOperator.vb:
* LikeOperator1.vb:
* LikeOperatorA.vb:
* LikeOperatorC1.vb:
* RelationalOperators1.vb:
* RelationalOperatorsC1.vb:
* Test.Sources: Included newly added operators tests
2004-08-06 Jambunathan K <[email protected]>
* Makefile: Added 'mkdir -p $$logpath'
2004-08-05 Sachin Kumar <[email protected]>
* ConcatenationOperator.vb:
* ConcatenationOperatorC1.vb:
* LogicalOperators1.vb:
* LogicalOperatorsA.vb:
* LogicalOperatorsC1.vb:
* LogicalOperatorsC2.vb:
* LogicalOperatorsC3.vb:
* ShiftOperators1.vb:
* ShiftOperatorsA.vb:
* ShiftOperatorsC1.vb:
* ShiftOperatorsC2.vb:
* Test.Sources: Included newly added tests
2004-08-05 Anirban Bhattacharjee <[email protected]>
* InheritanceJ.vb: New test case
* InheritanceA.vb: made corrections
* InterfaceC.vb: Enhanced
2004-08-05 Anirban Bhattacharjee <[email protected]>
* InterfaceH.vb: New test case
2004-08-05 Anirban Bhattacharjee <[email protected]>
* InterfaceA.vb: Test now covers all Interface members.
2004-08-04 Jambunathan K <[email protected]>
* RegionDirectivesC5.vb:
* ConditionalCompilation9.vb:
* ConditionalCompilation10.vb: Removed all these redundant test
cases
* Test.Sources: Included the newly added pre-processor test cases
2004-08-04 Sachin Kumar <[email protected]>
* Makefile: Create clean set of test results log files
* Readme: Updated readme appropriately.
2004-08-03 Jambunathan K <[email protected]>
* Readme: Reworded and Reformatted.
2004-08-01 Rafael Teixeira <[email protected]>
* LabelA.vb, LabelB.vb, LabelC.vb, LabelD.vb : new positive tests for labelled statements
2004-07-30 Jambunathan K <[email protected]>
* 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
2004-07-29 Sachin Kumar <[email protected]>
* LogicalOperators.vb: Added tests for logical operators
2004-07-29 Sachin Kumar <[email protected]>
* RelationalOperators.vb: Added tests for relational operators
* RelationalOperatorsA.vb: Added more tests for relational operators
* AssignmentOperators.vb: Added tests for assignment operators
2004-07-26 Anirban Bhattacharjee <[email protected]>
* InheritanceC3.vb: Little correction in the test
2004-07-18 Anirban Bhattacharjee <[email protected]>
* DelegateA.vb: The test for passing AddressOf operator in method parameter is added.
2004-06-11 Anirban Bhattacharjee <[email protected]>
* Makefile: Removed inclusion of rules.make from Makefile for two reasons :
- This Makefile as of now has no dependency on rules.make what so ever
+12
View File
@@ -0,0 +1,12 @@
2004-06-11 Anirban Bhattacharjee <[email protected]>
* Makefile: Removed inclusion of rules.make from Makefile for two reasons :
- This Makefile as of now has no dependency on rules.make what so ever
- Because of inclusion of INTENAL_MBAS in rules.make it was causing confliction with existing INTERNAL_MBAS in this makefile and causing lots of tests to fail
2004-05-15 Rafael Teixeira ([email protected])
* Makefile: corrected /libpath: compiler flag (parameter) to point to ../class/lib/default/ the new location of libraries
2004-03-16 Rafael Teixeira ([email protected])
* Test1.vb: corrected mispelling in keyword
* Test.Sources: no misc1.vb or CharacterLiteralsA.vb sources
* ConditionalCompilationC.vb: added some tests with #Const
-40
View File
@@ -1,40 +0,0 @@
Imports System
Module ConcatenationOperator
Sub main()
Dim a As String = "Hello "
Dim b As String = "World"
Dim c As String = a & b
If c <> "Hello World" Then
Console.WriteLine("#A1-Concatenation Failed")
End If
c = a & CInt(123)
If c <> "Hello 123" Then
Console.WriteLine("#A2-Concatenation Failed")
End If
c = a & Nothing
If c <> "Hello " Then
Console.WriteLine("#A3-Concatenation Failed")
End If
c = Nothing & a
If c <> "Hello " Then
Console.WriteLine("#A4-Concatenation Failed")
End If
c = a & CDec(123.23)
If c <> "Hello 123.23" Then
Console.WriteLine("#A5-Concatenation Failed")
End If
c = a & CBool(123)
If c <> "Hello True" Then
Console.WriteLine("#A6-Concatenation Failed")
End If
End Sub
End Module
-21
View File
@@ -1,21 +0,0 @@
' BC30201: Expression expected
Imports System
Module ConcatenationOperatorC1
Sub main()
Dim a As String = "Hello "
Dim b As String = "World"
Dim c As String
c = a &
c = & b
c = a & b
If c <> "Hello World" Then
Console.WriteLine("#A1-Concatenation Failed")
End If
End Sub
End Module
+16 -5
View File
@@ -1,16 +1,27 @@
Imports System
Module ConditionalCompilation
Sub Main()
Dim value As Integer
Try
'Using syntatically wrong statements inside a #If block that does not satisfy condition
#If False
Console.WriteLine("Hello)
'Testing #If and #End If Block
#If True
value=10
#End If
If value<>10 Then
Throw New Exception("#A1-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
#If False
Throw New Exception("#A2-Conditional Compilation:Failed")")
#End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
End Sub
End Module
+4 -48
View File
@@ -1,58 +1,14 @@
Imports System
Module ConditionalCompilation
Sub Main()
Dim value As Integer
Try
'Testing #If and #End If Block - Variation 1
#If True
value=10
'Using syntatically wrong statements inside a #If block that does not satisfy condition
#If False
Console.WriteLine("Hello)
#End If
If value<>10 Then
Throw New Exception("#A11-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If and #End If Block - Variation 2
#If False
Throw New Exception("#A21-Conditional Compilation:Failed")
#End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If, #Else and #End If Block - Variation 3
#If True
value=30
#Else
Throw New Exception("#A31-Conditional Compilation:Failed")
#End If
If value<>30
Throw New Exception("#A32-Conditional Compilation:Failed")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If, #Else and #End If Block - Variation 4
#If False
Throw New Exception("#A41-Conditional Compilation:Failed")
#Else
value=40
#End If
If value<>40
Throw New Exception("#A42-Conditional Compilation:Failed")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
End Sub
End Module
+17 -96
View File
@@ -3,117 +3,38 @@ Module ConditionalCompilation
Sub Main()
Dim value As Integer
Try
'Testing #If,#Elseif, #Else and #End If block - Variation 1
'Testing #If,#Elseif, #Else and #End If block
#If False
Throw New Exception("#B11-Conditional Compilation :Failed")
Throw New Exception("#A1-Conditional Compilation :Failed")
#ElseIf True
value=10
value=30
#Else
Throw New Exception("#B12-Conditional Compilation :Failed")
#End If
If value<>10 Then
Throw New Exception("#B13-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If,#Elseif, #Else and #End If block - Variation 2
#If True
value=20
#ElseIf True
Throw New Exception("#B21-Conditional Compilation :Failed")
#Else
Throw New Exception("#B22-Conditional Compilation :Failed")
#End If
If value<>20 Then
Throw New Exception("#B23-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If,#Elseif, #Else and #End If block - Variation 3
#If False
Throw New Exception("#B31-Conditional Compilation :Failed")
#ElseIf False
Throw New Exception("#B32-Conditional Compilation :Failed")
#Else
value=30
Throw New Exception("#A2-Conditional Compilation :Failed")
#End If
If value<>30 Then
Throw New Exception("#B33-Conditional Compilation:Failed ")
Throw New Exception("#A3-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If,#Elseif, #Else and #End If block - Variation 4
'Testing nested #If and #End If Block
Try
#If True
#If True
value=40
#End If
#End If
value=40
#If False
Throw New Exception("#B41-Conditional Compilation :Failed")
#ElseIf False
Throw New Exception("#B42-Conditional Compilation :Failed")
#ElseIf True
value=40
#Else
Throw New Exception("#B42-Conditional Compilation :Failed")
#End If
If value<>40 Then
Throw New Exception("#B33-Conditional Compilation:Failed ")
If value<>40
Throw New Exception("#A4-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If,#Elseif and #End If block - Variation 5
value=50
#If False
Throw New Exception("#B51-Conditional Compilation :Failed")
#ElseIf False
Throw New Exception("#B52-Conditional Compilation :Failed")
#ElseIf False
Throw New Exception("#B53-Conditional Compilation :Failed")
#End If
If value<>50 Then
Throw New Exception("#B54-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Try
'Testing #If,#Elseif and #End If block - Variation 6
#If False
Throw New Exception("#B61-Conditional Compilation :Failed")
#ElseIf True
value=60
#ElseIf False
Throw New Exception("#B63-Conditional Compilation :Failed")
#End If
If value<>60 Then
Throw New Exception("#B64-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
End Sub
End Module
+31 -55
View File
@@ -1,62 +1,38 @@
#If True
Imports System
Module ConditionalCompilation
Sub Main()
Dim value As Integer
Try
'Testing nested #If,#Elseif, #Else and #End If block
#If False
Throw New Exception("#C01-Conditional Compilation :Failed")
#If False
Throw New Exception("#C02-Conditional Compilation :Failed")
#ElseIf True
value=10
#Else
Throw New Exception("#C03-Conditional Compilation :Failed")
#End If
Throw New Exception("#C04-Conditional Compilation :Failed")
#ElseIf True
#If True
value=20
#ElseIf True
Throw New Exception("#C05-Conditional Compilation :Failed")
#Else
Throw New Exception("#C06-Conditional Compilation :Failed")
#End If
If value<>20 Then
Throw New Exception("#C07-Conditional Compilation:Failed ")
'Testing whitespaces between #If
Try
# If True
value=50
#End If
If value<>50
Throw New Exception("#A1-Conditional Compilation:Failed ")
End If
#ElseIf True
#If False
Throw New Exception("#C08-Conditional Compilation :Failed")
#ElseIf False
Throw New Exception("#C09-Conditional Compilation :Failed")
#Else
value=30
#End If
If value<>30 Then
Throw New Exception("#C10-Conditional Compilation:Failed ")
End If
#Else
#If False
Throw New Exception("#C11-Conditional Compilation :Failed")
#ElseIf True
Throw New Exception("#C12-Conditional Compilation :Failed")
#ElseIf False
Throw New Exception("#C13-Conditional Compilation :Failed")
#End If
Throw New Exception("#C14-Conditional Compilation:Failed ")
#End If
Catch e As Exception
Catch e As Exception
Console.WriteLine(e.Message)
End Try
End Sub
End Try
End Sub
#Const A = True
#Const B = False
#If A Then
Sub Z()
End Sub
#Else
Sub W()
End Sub
#End If
#If B Then
Sub X()
End Sub
#Else
Sub Y()
End Sub
#End If
End Module
#End If
-3
View File
@@ -1,6 +1,3 @@
'Line 9, BC30648: String constants must end with a double quote.
'Line 14, BC30037: Character is not valid.
Imports System
Module ConditionalCompilation
Sub Main()
-20
View File
@@ -1,20 +0,0 @@
'Line 8, BC30012: '#If' block must end with a matching '#End If'.
Imports System
Module ConditionalCompilation
Sub Main()
Console.WriteLine("Hello World 1")
End Sub
#If False
Sub A()
Console.WriteLine("Hello World 2")
End Sub
#ElseIf True
Sub B()
Console.WriteLine("Hello World 3")
End Sub
#Else
Sub C()
Console.WriteLine("Hello World 4")
End Sub
End Module
-2
View File
@@ -1,5 +1,3 @@
'Line 11, BC30459: 'Nothing' is not valid in this context.
Imports System
Module ConditionalCompilation
Sub Main()
-13
View File
@@ -1,13 +0,0 @@
'Line 10, BC30012: '#If' must end with a matching '#EndIf'
Imports System
Module ConditionalCompilation
Sub Main()
#If False
Console.WriteLine("Hello World 1")
#End If
#If True
Console.WriteLine("Hello World 2")
End Sub
End Module
-15
View File
@@ -1,15 +0,0 @@
'Line 7, BC30014: '#ElseIf' must be preceded by a matching '#If' or '#ElseIf'
Imports System
Module ConditionalCompilation
Sub Main()
Console.WriteLine("Hello World 1")
#ElseIf True
Console.WriteLine("Hello World 2")
#Else
Console.WriteLine("Hello World 3")
#End If
End Sub
End Module
-13
View File
@@ -1,13 +0,0 @@
'Line 7, BC30028: '#Else' must be preceded by a matching '#If' or '#ElseIf'
Imports System
Module ConditionalCompilation
Sub Main()
Console.WriteLine("Hello World 2")
#Else
Console.WriteLine("Hello World 3")
#End If
End Sub
End Module
-9
View File
@@ -1,9 +0,0 @@
'Line 9, BC30013: '#EndIf' must be preceded by a matching '#If'
Imports System
Module ConditionalCompilation
Sub Main()
Console.WriteLine("Hello World")
End Sub
End Module
#End If
-14
View File
@@ -1,14 +0,0 @@
'Line 6, BC30012: '#If' must end with a matching '#End If'
Imports System
Module ConditionalCompilation
#If True
Sub Main()
Console.WriteLine("Hello World 1")
End Sub
#ElseIf False
Sub R()
Console.WriteLine("Hello World 2")
End Sub
End Module
-25
View File
@@ -1,25 +0,0 @@
'Line 20, BC32030: '#ElseIf' cannot follow another '#ElseIf' in a conditional compilation block
Imports System
Module ConditionalCompilation
Sub Main()
Console.WriteLine("Hello World 1")
End Sub
#If False
Sub A()
Console.WriteLine("Hello World 2")
End Sub
#ElseIf True
Sub B()
Console.WriteLine("Hello World 3")
End Sub
#Else
Sub C()
Console.WriteLine("Hello World 4")
End Sub
#ElseIf False
Sub D()
Console.WriteLine("Hello World 5")
End Sub
#End If
End Module
-25
View File
@@ -1,25 +0,0 @@
'BC32030: '#Else' cannot follow another '#Else' in a conditional compilation block
Imports System
Module ConditionalCompilation
Sub Main()
Console.WriteLine("Hello World 1")
End Sub
#If False
Sub A()
Console.WriteLine("Hello World 2")
End Sub
#Else
Sub B()
Console.WriteLine("Hello World 3")
End Sub
#Else
Sub C()
Console.WriteLine("Hello World 4")
End Sub
#ElseIf True
Sub D()
Console.WriteLine("Hello World 5")
End Sub
#End If
End Module
+5 -12
View File
@@ -1,20 +1,13 @@
Imports System
Module ConditionalCompilation
Sub Main()
'Testing line continuation within conditional compilation statement
Dim value As Integer
#If _
True
value=10
#Else _
_
Throw New Exception("#D11-Conditional Compilation: Failed")
#End If
If value<>10 Then
Throw New Exception("#D12-Conditional Compilation: Failed")
End If
True _
#End If
End Sub
End Module
+13 -31
View File
@@ -2,37 +2,19 @@ Imports System
Module ConditionalCompilation
Sub Main()
Dim value As Integer
'Testing whitespaces between #If
Try
# If True
value=50
#End If
If value<>50
Throw New Exception("#A1-Conditional Compilation:Failed ")
End If
Catch e As Exception
Try
'Testing #If Then and #End If Block
#If True Then
value=10
#End If
If value<>10 Then
Throw New Exception("#A1-Conditional Compilation:Failed ")
End If
Catch e As Exception
Console.WriteLine(e.Message)
End Try
End Sub
#Const A = True
#Const B = False
#If A Then
Sub Z()
End Sub
#Else
Sub W()
End Sub
#End If
#If B Then
Sub X()
End Sub
#Else
Sub Y()
End Sub
#End If
End Try
End Sub
End Module
-15
View File
@@ -1,15 +0,0 @@
'System.InvalidCastException: Cast from string "String" to type 'Boolean' is not valid.
Imports System
Module ConditionalStatements1
Sub Main()
if "String" Then
throw new exception("#CSC2")
end If
End Sub
End Module
-48
View File
@@ -1,48 +0,0 @@
Imports System
Module ConditionalStatementsA
Sub Main()
Dim i As Integer = 0
if i = 0 then i = 1
if i <> 1 then throw new exception("#CSA1") else i = 2
if i = 1 then else i = 3
if i <> 3 then i = 2 else ' Should give compile time error
if i <> 2
i = 3
end if
if i = 3
end if
if i <> 3
throw new exception("#CSA2")
else
i = 4
end if
if i <> 4 then
throw new exception("#CSA3")
elseif i = 4
i = 5
end if
if i <> 5
throw new exception("#CSA4")
elseif i = 6
throw new exception("#CSA5")
elseif i = 5 then
i = 6
else
throw new exception("#CSA6")
end if
End Sub
End Module
-44
View File
@@ -1,44 +0,0 @@
Imports System
Module ConditionalStatementsB
Sub Main()
Dim i As Integer = 0
' With the single-line form, it is possible to have multiple
' statements executed as the result of an If...Then decision.
If i = 0 Then i += 1 : i += 2 : i += 3
If i <> 6 Then throw new exception("#CSB1 - LineIfThenStatement failed") _
else i += 6 : i += 12
If i <> 24 Then
throw new exception("#CSB2 - LineIfThenStatement failed")
End If
' Execution of a Case block is not permitted to "fall through" to
' next switch section
Dim j As Integer = 0
for i = 0 To 3
Select Case i
Case 0
Case 2
j += 2
Case 1
Case 3
j += 3
End Select
next
if j <> 5 then
throw new exception("#CSB3 - Switch Case Statement failed")
end if
End Sub
End Module
-48
View File
@@ -1,48 +0,0 @@
Imports System
Module ConditionalStatementsC
Sub Main()
Dim i As Integer
Dim arr(10) As Integer
Dim flag As Boolean
For i = 0 To 10
Select Case i
Case 0 To 2
arr(i) = 1
Case Is < 2, 3, 6 To 7
arr(i) = 2
Select Case i ' Nested Select Case Statement
Case 0 To 2
flag = False
Case 3, 6 To 7
flag = True
Case Else
flag = False
End Select
Case Is <= 8, Is >= 7
arr(i) = 3
Case Else
arr(i) = 4
End Select
Next
If arr(0) <> 1 Or arr(1) <> 1 Or arr(2) <> 1 Then
Throw New Exception("#CSC1 - Select Case Statement failed")
ElseIf arr(3) <> 2 Or arr(6) <> 2 Or arr(7) <> 2 Then
Throw New Exception("#CSC2 - Select Case Statement failed")
ElseIf arr(4) <> 3 Or arr(5) <> 3 Or arr(8) <> 3 Or arr(9) <> 3 Or arr(10) <> 3 Then
Throw New Exception("#CSC3 - Select Case Statement failed")
ElseIf flag = False Then
Throw New Exception("#CSC4 - Nested Select Case Statement failed")
Else
Console.WriteLine("OK")
End If
End Sub
End Module
-20
View File
@@ -1,20 +0,0 @@
REM LineNo: 16
REM ExpectedError: BC30081
REM ErrorMessage: 'If' must end with a matching 'End If'.
REM LineNo: 16
REM ExpectedError: BC30205
REM ErrorMessage: End of statement expected.
Imports System
Module ConditionalStatementsC1
Sub Main()
Dim i As Integer = 0
If i = 0 i =2
End Sub
End Module
-19
View File
@@ -1,19 +0,0 @@
REM LineNo: 14
REM ExpectedError: BC30095
REM ErrorMessage: 'Select Case' must end with a matching 'End Select'.
Imports System
Module ConditionalStatementsC10
Sub Main()
Dim i As Integer = 0
Select case i
case 0 To 1
Console.WriteLine("i is either 0 or 1")
End Sub
End Module
-22
View File
@@ -1,22 +0,0 @@
REM LineNo: 14
REM ExpectedError: BC30205
REM ErrorMessage: End of statement expected
Imports System
Module ConditionalStatementsC11
Sub Main()
Dim i As Integer = 0
Select i
Case 0 To 2 i++
Case Is < 2, 3, 6 To 7
i = i + 2
End Select
End Sub
End Module
-22
View File
@@ -1,22 +0,0 @@
REM LineNo: 16
REM ExpectedError: BC30072
REM ErrorMessage: 'Case' can only appear inside a 'Select Case' statement.
REM LineNo: 18
REM ExpectedError: BC30088
REM ErrorMessage: 'End Select' must be preceded by a matching 'Select Case'.
Imports System
Module ConditionalStatementsC12
Sub Main()
Case 0
Console.WriteLine("Hello World")
End Select
End Sub
End Module
-23
View File
@@ -1,23 +0,0 @@
REM LineNo: 17
REM ExpectedError: BC30071
REM ErrorMessage: 'Case Else' can only appear inside a 'Select Case' statement.
REM LineNo: 19
REM ExpectedError: BC30088
REM ErrorMessage: 'End Select' must be preceded by a matching 'Select Case'.
Imports System
Module ConditionalStatementsC13
Sub Main()
Dim i As Integer = 0
Case Else
Console.WriteLine("Hello World")
End Select
End Sub
End Module
Loaded 100 of 4391 files, more files were not shown because too many files have changed in this diff. Show more