Compare commits

..
570 Commits
Author SHA1 Message Date
nobody 3c95965b2e This commit was manufactured by cvs2svn to create tag 'MONO_0_27'.
svn path=/tags/MONO_0_27/mono/; revision=18118
2003-09-15 22:43:56 +00:00
Duncan Mak 682dfc4f67 Update the version to 0.27 for the interim release
svn path=/trunk/mono/; revision=18117
2003-09-15 22:43:56 +00:00
Duncan Mak c65be54d3f Update version to 0.27 for the interim release
svn path=/trunk/mcs/; revision=18115
2003-09-15 22:42:27 +00:00
Lluis Sanchez 81e1b42ff9 * daemon.c: In compare_process(), discard handles already signalled.
svn path=/trunk/mono/; revision=18114
2003-09-15 21:16:24 +00:00
Rafael Teixeira 548826df4d *** empty log message ***
svn path=/trunk/mcs/; revision=18113
2003-09-15 19:37:07 +00:00
Martin Baulig 8a719f24be Added -218 invalid contraints clause.
svn path=/trunk/mcs/; revision=18112
2003-09-15 19:27:45 +00:00
Martin Baulig 8387cfcb06 2003-09-15 Martin Baulig <[email protected]>
* cs-parser.jay: Fix grammar wrt. type_parameter_constraints.

	* generic.cs (Constraints.Resolve): New public method; this is
	called to resolve the constraint types and to check whether all
	the constraints are correct.
	(Constraints.Types): New public property.
	(TypeParameter.Resolve): New public method; resolves all the
	type's constraints.

	* class.cs (TypeContainer.DefineType): Call
	TypeParameter.Resolve() before actually defining the type.

svn path=/trunk/mcs/; revision=18111
2003-09-15 18:57:27 +00:00
Martin Baulig 88bfcbc68d Merged from MCS.
svn path=/trunk/mcs/; revision=18110
2003-09-15 18:26:47 +00:00
Miguel de Icaza 6944a2c41c Flush
svn path=/trunk/mono/; revision=18109
2003-09-15 17:46:26 +00:00
Martin Baulig 4dd58e00a4 2003-09-15 Martin Baulig <[email protected]>
* class.cs (TypeContainer.DefineType): Added an error flag to
	avoid reporting duplicate CS0146's ("class definition is
	circular.").

	* driver.cs (Driver.MainDriver): Abort if
	RootContext.ResolveTree() reported any errors.

svn path=/trunk/mcs/; revision=18108
2003-09-15 16:50:42 +00:00
Zoltan Varga a773287762 2003-09-15 Zoltan Varga <[email protected]>
* icall.c (ves_icall_Type_IsArrayImpl): Added MONO_ARCH_SAVE_REGS.

svn path=/trunk/mono/; revision=18105
2003-09-15 13:59:36 +00:00
Zoltan Varga bbd693e7e4 2003-09-15 Zoltan Varga <[email protected]>
* appdomain.h domain.c (MonoDomain): Added new hashtable to store the
	class init trampolines.

svn path=/trunk/mono/; revision=18104
2003-09-15 13:58:11 +00:00
Zoltan Varga 560f84181c 2003-09-15 Zoltan Varga <[email protected]>
* TODO: New todo item.

svn path=/trunk/mono/; revision=18103
2003-09-15 10:39:30 +00:00
Zoltan Varga b1e980ac0b 2003-09-15 Zoltan Varga <[email protected]>
* tramp-x86.c (x86_class_init_trampoline): New trampoline function
	which calls mono_runtime_class_init and patches the call site to
	avoid further calls.
	(mono_arch_create_class_init_trampoline): New arch specific function
	to create a class init trampoline.
	(create_trampoline_code): Generalized so it can create
	class init trampolines as well.

	* mini.c (helper_sig_class_init_trampoline): New helper variable.
	(mono_create_class_init_trampoline): New function to create and cache
	class init trampolines.
	(mono_find_class_init_trampoline_by_addr): New function to lookup the
	vtable given the address of a class init trampoline. Used by the
	patching process.
	(mono_codegen): Generate a call to a trampoline instead of
	mono_runtime_class_init in LDSFLD[A].
	(mono_codegen): Add relocations for the new trampoline.

	* mini.h mini-x86.c aot.c: Added a new relocation type:
	MONO_PATCH_INFO_CLASS_INIT.

	* mini.h: Bump AOT version number.

	* aot.c: Create a copy of the loaded code instead of using the original
	so methods which call each other will be close in memory, improving
	cache behaviour.

svn path=/trunk/mono/; revision=18102
2003-09-15 09:12:45 +00:00
Zoltan Varga 86eaaf8769 2003-09-15 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
	patch since it breaks the regression tests.

svn path=/trunk/mono/; revision=18101
2003-09-15 08:25:35 +00:00
Zoltan Varga 9a999d46b0 2003-09-15 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
	for the register saving instruction sequence since the
	frame_state_for function in glibc 2.3.2 don't seem to detect it.

svn path=/trunk/mono/; revision=18100
2003-09-15 07:29:03 +00:00
Oleg Tkachenko dac1cf4505 Newlines normalizing
svn path=/trunk/mcs/; revision=18096
2003-09-14 22:01:24 +00:00
Sebastien Pouliot 0cf9ed8994 2003-09-14 Sebastien Pouliot <[email protected]>
* AllTests.cs: New. Common methods to compare DateTimes and longs.
	* ReceivedCollectionTest.cs: New. Unit tests for ReceivedCollection.
	* ReceivedTest.cs: New. Unit test for Received.
	* TimestampFormatExceptionTest.cs: Unit test for TimestampFormatException.
	* TimestampInputFilterTest.cs: Unit test for TimestampInputFilter.
	* TimestampOutputFilterTest.cs: Unit test for TimestampOutputFilter.
	* TimestampTest.cs: Unit test for Timestamp.
	* WSTimestampTest.cs: Unit test for WSTimestamp.

svn path=/trunk/mcs/; revision=18095
2003-09-14 20:31:44 +00:00
Oleg Tkachenko 452b74dec0 Outputter fixup
svn path=/trunk/mcs/; revision=18093
2003-09-14 19:39:25 +00:00
Sebastien Pouliot b516ceee5b 2003-09-14 Sebastien Pouliot <[email protected]>
* ConfigurationBaseTest.cs: New. Test all WSE1 static protected methods.
	* FilterConfigurationTest.cs: New. Test presence of default input/output
	SOAP filters.
	* WebServicesConfigurationTest.cs: New. Test FilterConfiguration.

svn path=/trunk/mcs/; revision=18090
2003-09-14 18:38:38 +00:00
Pedro Martínez Juliá c636980011 2003-09-14 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Add the necessary castings to char
    conversions.

svn path=/trunk/mcs/; revision=18089
2003-09-14 18:10:03 +00:00
Atsushi Eno fe4a3e9dc4 2003-09-14 Atsushi Enomoto <[email protected]>
* DTMXPathNavigator.cs,
	  DTMXPathDocument.cs,
	  DTMXPathDocumentBuilder.cs : Added IXmlLineInfo support. Removed
	  node's extraneous schemaType. Some code reformatting.

svn path=/trunk/mcs/; revision=18087
2003-09-14 16:15:44 +00:00
Zoltan Varga 25841cdc75 2003-09-14 Zoltan Varga <[email protected]>
* TODO: Fix todo item && remove another.

svn path=/trunk/mono/; revision=18086
2003-09-14 14:29:07 +00:00
Lluis Sanchez d33e81ef0a * XmlCustomFormatter.cs: added support for additional string types in
GenerateToXmlString().
	* XmlSchemaExporter.cs: Fixed generation of XmlMembersMapping using
	  encoded format.

svn path=/trunk/mcs/; revision=18085
2003-09-14 13:08:11 +00:00
Lluis Sanchez 9e3160473a * XmlSchema.cs: Do not add schema namespace declaration if it is already
declared.

svn path=/trunk/mcs/; revision=18084
2003-09-14 13:04:24 +00:00
Lluis Sanchez 16442aeba9 * XmlTextWriter.cs: Attributes that have a namespace must be always
prefixed.

svn path=/trunk/mcs/; revision=18083
2003-09-14 13:01:47 +00:00
Lluis Sanchez b5995f67d8 * SoapDocumentationHandler.cs: Added support for on-the-fly proxy
code generation in documentation pages.

svn path=/trunk/mcs/; revision=18082
2003-09-14 12:53:38 +00:00
Lluis Sanchez 14bfe8a3c2 * System.Web.Services_test.dll.sources: Added BindingCollectionTest.cs
ChangeLog DocumentableItemTest.cs OperationCollectionTest.cs
	  OperationMessageCollectionTest.cs OperationMessageTest.cs
	  PortTypeCollectionTest.cs PortTypeTest.cs ServiceCollectionTest.cs
	  ServiceDescriptionCollectionTest.cs
	  SoapBodyBindingTest.cs SoapOperationBindingTest.cs TypesTest.cs
	  New test files by Erik LeBel.

svn path=/trunk/mcs/; revision=18081
2003-09-14 12:51:31 +00:00
Lluis Sanchez 4a37f59ce1 BindingCollectionTest.cs ChangeLog DocumentableItemTest.cs
OperationCollectionTest.cs OperationMessageCollectionTest.cs
	  OperationMessageTest.cs PortTypeCollectionTest.cs PortTypeTest.cs
	  ServiceCollectionTest.cs ServiceDescriptionCollectionTest.cs
	  SoapBodyBindingTest.cs SoapOperationBindingTest.cs TypesTest.cs
	  New test files by Erik LeBel.

svn path=/trunk/mcs/; revision=18080
2003-09-14 12:44:10 +00:00
Lluis Sanchez 4a01835603 * DocumentableItem.cs MimeContentBinding.cs OperationMessage.cs
OperationMessageCollection.cs PortCollection.cs PortType.cs
	  PortTypeCollection.cs ServiceCollection.cs ServiceDescriptionCollection.cs
	  SoapBodyBinding.cs SoapOperationBinding.cs: Several fixes by Erik LeBel
	* ServiceDescriptionImporter.cs:
	* ServiceDescriptionSerializerBase.cs: regenerated after the changes in
	  the service description changes.
	* ServiceDescriptionReflector.cs: Fixed generation of message parts in
	  bare format.

svn path=/trunk/mcs/; revision=18079
2003-09-14 12:24:49 +00:00
Lluis Sanchez 4bf9efefcd * TcpClientChannel.cs: Fixed constructor.
svn path=/trunk/mcs/; revision=18078
2003-09-14 12:15:01 +00:00
Gonzalo Paniagua Javier f51d161a24 2003-09-14 Gonzalo Paniagua Javier <[email protected]>
* RegularExpressionValidator.cs: fix for EvaluateIsValid by Juraj
	Skripsky <[email protected]>

svn path=/trunk/mcs/; revision=18077
2003-09-14 12:05:36 +00:00
Duncan Mak 45d8f67e10 Some late-night patch commits for Miguel.
* TabPage.cs (constructor): added a constructor for constructing tab
pages with a title. Patch from Jonathan Hogg
<[email protected]>.

* EnumConverter.cs (ConvertFrom): Removed the special handling for
multiple values. This is done in Enum.Parse already.

* TypeDescriptor.cs (GetConverter): Does not work for enumeration
types because EnumConverter does not have a default
constructor. Fixed by changing the special handling for
enumeration types.

svn path=/trunk/mcs/; revision=18074
2003-09-14 04:06:42 +00:00
Miguel de Icaza 8860c43c4f :flush:
svn path=/trunk/mono/; revision=18070
2003-09-14 00:18:07 +00:00
Jackson Harper ff122d13a0 * MethodInstr.cs: callvirt operation is implicitly instance.
svn path=/trunk/mcs/; revision=18069
2003-09-13 22:11:39 +00:00
Pedro Martínez Juliá 0d484b075d 2003-09-13 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Make the method calls more functional
    for protecting the values from different threads (make it more
    thread safe).

svn path=/trunk/mcs/; revision=18068
2003-09-13 21:23:43 +00:00
Miguel de Icaza c9c61cc275 :flush:
svn path=/trunk/mono/; revision=18067
2003-09-13 20:55:29 +00:00
Pedro Martínez Juliá 9a98713268 2003-09-13 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Fix a bug with the negative value of
    count parameter.

2003-09-12  Pedro Mart�nez Juli�  <[email protected]>

    * FloatingPointFormatter.cs: Applied a lot of improvements in string
    construction, make use of Append/Insert with the "count" parameter.
    Thanks to Ben Maurer.

svn path=/trunk/mcs/; revision=18065
2003-09-13 18:40:26 +00:00
Ben Maurer b0d1119294 reduce enumerator allocation
svn path=/trunk/mcs/; revision=18064
2003-09-13 18:38:53 +00:00
Atsushi Eno 42f2e5051b 2003-09-13 Atsushi Enomoto <[email protected]>
* XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
	  in .ctor().
	* XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
	  Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
	  add Namespaces immediately, but adds at AddMissingElementXmlns so
	  that we don't have to have extra check than namespaceManager's
	  LookupPrefix(). 2) Removed writtenAttributes for performance reason
	  since it is no more required.

svn path=/trunk/mcs/; revision=18063
2003-09-13 17:33:09 +00:00
Ben Maurer add23d04b0 pass context to Evaluate* so that we dont have to clone the expression
svn path=/trunk/mcs/; revision=18062
2003-09-13 17:22:08 +00:00
Ben Maurer b1a1112338 get static context to Pattern
svn path=/trunk/mcs/; revision=18061
2003-09-13 16:53:51 +00:00
Gonzalo Paniagua Javier 441b4e3e3e 2003-09-13 Gonzalo Paniagua Javier <[email protected]>
* BaseValidator.cs: patch by Juraj Skripsky ([email protected]) that
	fixes rendering of the end tag.

svn path=/trunk/mcs/; revision=18059
2003-09-13 12:01:54 +00:00
Jackson Harper 41d1b33258 * TypeRef.cs: Remove unused enum, this has been moved to the
ModifiableType base class.

svn path=/trunk/mcs/; revision=18058
2003-09-13 06:49:54 +00:00
Jackson Harper a96fc882e0 * ILParser.jay: Fix typo in field inits. Methods attached to
modified types should be type spec method refs.

svn path=/trunk/mcs/; revision=18057
2003-09-13 06:46:39 +00:00
Ben Maurer 27b59455b5 tons of regressions char + long == char
svn path=/trunk/mcs/; revision=18056
2003-09-13 02:24:05 +00:00
Ben Maurer b70953fad1 lots o optimizations
svn path=/trunk/mcs/; revision=18055
2003-09-13 01:23:20 +00:00
Zoltan Varga 42bbcc05c2 2003-09-12 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
	previous checkin.

svn path=/trunk/mono/; revision=18054
2003-09-12 15:32:38 +00:00
Paolo Molaro 083c74988a Set the thread_abort function for the main thread, too.
svn path=/trunk/mono/; revision=18053
2003-09-12 14:57:24 +00:00
Zoltan Varga 81944e064b 2003-09-12 Zoltan Varga <[email protected]>
* aot.c: Moved the check for MONO_LASTAOT into the initialization
	function of the module.

	* mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
	turning on/off the usage of AOT code. Got rid of mono_no_aot and the
	--no-aot command line option.

svn path=/trunk/mono/; revision=18052
2003-09-12 11:08:17 +00:00
Paolo Molaro 297ce8631d Fri Sep 12 10:42:08 CEST 2003 Paolo Molaro <[email protected]>
* interp.c, interp.h: patch from Bernie Solomon <[email protected]>:
	64 bit/opcodes/exception handling fixes.

svn path=/trunk/mono/; revision=18051
2003-09-12 08:53:31 +00:00
Pedro Martínez Juliá e1841ed7fe 2003-09-12 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Applied a lot of improvements in string
    construction, make use of Append/Insert with the "count" parameter.
    Thanks to Ben Maurer.

svn path=/trunk/mcs/; revision=18049
2003-09-12 05:28:29 +00:00
Ben Maurer f863bda93f *** empty log message ***
svn path=/trunk/mcs/; revision=18046
2003-09-12 00:28:40 +00:00
Lluis Sanchez 2e53550cc7 * AsyncCalls.cs BaseCalls.cs DelegateCalls.cs ReflectionCalls.cs SyncCalls.cs:
Added tests for CallContext and for parameters with the Out flag.

svn path=/trunk/mcs/; revision=18045
2003-09-11 23:57:09 +00:00
Lluis Sanchez 883e5a9a06 * CryptoStream.cs: Added [In,Out] attributes to Read method.
svn path=/trunk/mcs/; revision=18044
2003-09-11 23:53:44 +00:00
Lluis Sanchez 9d82283043 * NetworkStream.cs: Added [In,Out] attributes to Read method.
svn path=/trunk/mcs/; revision=18043
2003-09-11 23:47:32 +00:00
Lluis Sanchez 965b3402a0 * BufferedStream.cs, FileStream.cs, MemoryStream.cs, Stream.cs:
Added [In,Out] attributes to Read method.

svn path=/trunk/mcs/; revision=18042
2003-09-11 23:44:33 +00:00
Lluis Sanchez 98857f6458 * RemotingProxy.cs: Return message check moved to RealProxy.
* RealProxy.cs: Added return message check and propagation of output
	  parameter values.

svn path=/trunk/mcs/; revision=18041
2003-09-11 23:41:51 +00:00
Lluis Sanchez 5607428d37 * ArgInfo.cs: Include parameters with the Out flag in the out parameters list.
* CallContext.cs: SetCurrentCallContext now returns the old context, so it
	  can be later restored with new new method RestoreCallContext().
	* ReturnMessage.cs: Some fixes in the way the class deals with output parameters,
	  to match MS.NET behavior.

svn path=/trunk/mcs/; revision=18040
2003-09-11 23:41:25 +00:00
Lluis Sanchez 6d12ea30d8 * ChannelServices.cs: Call context management moved to RemotingServices.
svn path=/trunk/mcs/; revision=18039
2003-09-11 23:40:57 +00:00
Lluis Sanchez 833b3c698d * RemotingServices.cs: Collect value of parameters with the Out flag into
the return message. Also set and reset CallContext.
	  Added method UpdateOutArgObject.

svn path=/trunk/mcs/; revision=18038
2003-09-11 23:40:21 +00:00
Ben Maurer 7a1008c321 Resolve local variables at compile time in XSLT. 2x speed on TOH test
svn path=/trunk/mcs/; revision=18037
2003-09-11 22:09:20 +00:00
Dick Porter 501a2b6bc6 Compile fix
svn path=/trunk/mono/; revision=18036
2003-09-11 18:50:15 +00:00
Zoltan Varga e96b7a70f8 2003-09-11 Zoltan Varga <[email protected]>
* helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
	by Bernie Solomon ([email protected]).

svn path=/trunk/mono/; revision=18035
2003-09-11 16:08:50 +00:00
Zoltan Varga ea0369bfa5 2003-09-11 Zoltan Varga <[email protected]>
* inssel.brg: Refactor the interface offset table related code into
	its separate functions and add support for the AOT case.

svn path=/trunk/mono/; revision=18034
2003-09-11 12:45:55 +00:00
Zoltan Varga ba0189a318 2003-09-11 Zoltan Varga <[email protected]>
* profiler.c (mono_profiler_load): Added '-time' and '-alloc' options
	to the built-in profiler to turn off time and allocation profiling
	respectively.

svn path=/trunk/mono/; revision=18033
2003-09-11 12:44:38 +00:00
Lluis Sanchez a7a78dd2b3 * SoapSchemaImporter.cs: implemented.
* XmlReflectionImporter.cs: Changed nullable default for array items to true.
	* XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
	* XmlSchemaImporter.cs: more support for encoded format.

svn path=/trunk/mcs/; revision=18032
2003-09-11 11:37:06 +00:00
Lluis Sanchez 510d8a73ef * ServiceDescriptionImporter.cs, ServiceDescriptionReflector.cs: Added
first bits of encoded format support.

svn path=/trunk/mcs/; revision=18031
2003-09-11 11:31:43 +00:00
Ben Maurer 24b0229c31 Memory conservation in AVTs
svn path=/trunk/mcs/; revision=18026
2003-09-10 23:36:42 +00:00
Ben Maurer 6102de78ee Boxing is evil
svn path=/trunk/mcs/; revision=18025
2003-09-10 22:28:44 +00:00
Atsushi Eno 0e1d16f71b 2003-09-10 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
	  that handled xmlns attributes inproperly.

svn path=/trunk/mcs/; revision=18024
2003-09-10 17:58:53 +00:00
Pedro Martínez Juliá b9aa007300 2003-09-10 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Fix a bug with Custm Format.
    * FloatingPointFormatter.cs: Fix a little bug I've introduced the
    last change.

svn path=/trunk/mcs/; revision=18023
2003-09-10 16:34:34 +00:00
Zoltan Varga 4a60bedd4c 2003-09-10 Zoltan Varga <[email protected]>
* aot.c (mono_aot_get_method_inner): Fix memory leak.

svn path=/trunk/mono/; revision=18022
2003-09-10 16:23:31 +00:00
Zoltan Varga 18af53e400 2003-09-10 Zoltan Varga <[email protected]>
* aot.c: Added mono_aot_verbose variable and made all debugging
	output depend on the value of this variable.

	* aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
	method_label and info_label.

	* mini.h mini-x86.c aot.c: Added a new relocation type
	MONO_PATCH_INFO_IID for klass->interface_id.

	* mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
	the MonoJitInfo structure.

	* mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
	a non-root appdomain in shared mode.

svn path=/trunk/mono/; revision=18021
2003-09-10 14:57:46 +00:00
Zoltan Varga a30bae61bb 2003-09-10 Zoltan Varga <[email protected]>
* profiler.c (mono_profiler_coverage_alloc): Use NULL instead of
	g_direct_equal.

	* debug-helpers.c (mono_method_full_name): Print the wrapper type
	in human readable form.

svn path=/trunk/mono/; revision=18020
2003-09-10 14:40:32 +00:00
Pedro Martínez Juliá 45c52ebdef 2003-09-10 Pedro Mart�nez Juli� <[email protected]>
* DoubleFormatter.cs: A few optimizations. Now, only one object
    is created to convert all double numbers.
    * SingleFormatter.cs: A few optimizations. Now, only one object
    is created to convert all float numbers.
    * FloatingPointFormatter.cs: Split the "number type parameters" from
    the "numver value and format parameters". The first ones are in the
    constructor and the others are in a method.

svn path=/trunk/mcs/; revision=18019
2003-09-10 09:46:01 +00:00
Miguel de Icaza ea61bb562d Flush
svn path=/trunk/mono/; revision=18017
2003-09-10 01:50:44 +00:00
Paolo Molaro 075316fdcb Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <[email protected]>
* aot.c: make aot loader less verbose. Remove free of unused variable.

svn path=/trunk/mono/; revision=18013
2003-09-09 14:44:24 +00:00
Zoltan Varga c37c61e2d1 2003-09-09 Zoltan Varga <[email protected]>
* ArrayTest.cs: Fix the expected exception on some methods.

svn path=/trunk/mcs/; revision=18011
2003-09-09 11:12:31 +00:00
Zoltan Varga d1f550da12 2003-09-09 Zoltan Varga <[email protected]>
* Array.cs: Added argument checking to some NET_1_1 methods.

svn path=/trunk/mcs/; revision=18010
2003-09-09 11:10:40 +00:00
Jackson Harper cc751e03b2 * TypeDef.cs: By default types will have System.Object as their
parent type if no parent type is specified (this is what PEAPI
	does) however if we are assembling corlib the System.Object type
	will not have System.Object as its parent type.

svn path=/trunk/mcs/; revision=18009
2003-09-09 04:39:40 +00:00
Duncan Mak b7b9bd7b5c * Mono.Cairo/Surface.cs (PutImage): Removed.
* Mono.Cairo/Object.cs (Copy): Wrapper for cairo_copy.

* Mono.Cairo/Cairo.cs (cairo_copy): New API
(cairo_surface_put_image): Removed.

svn path=/trunk/mcs/; revision=18008
2003-09-09 00:01:41 +00:00
Duncan Mak 7552a4f711 2003-09-08 Duncan Mak <[email protected]>
* Factories.cs (DefaultImplementationNamespace): Change it from
	"XrImpl" to "Cairo".

2003-09-08  Duncan Mak  <[email protected]>

	* gdk-helpers.cs: Remember to call gdk_init before hand.
	(gdk_pixbuf_finalize): Removed, as it is no longer available
	in the current API.
	(Helpers): New class to contain other misc. helper functions.
	(Init): Import gdk_init.
	(Unref): Import g_object_unref. This should be used in place of
	gdk_pixbuf_finalize.

	* cairo-api.cs: Updated to reflect recent API changes.
	(cairo_copy): New API.
	(cairo_surface_put_image): Removed to keep updated with current
	API.
	(cairo_current_foo): Renamed from the old cairo_get_foo methods.

svn path=/trunk/mcs/; revision=18007
2003-09-08 23:58:26 +00:00
Ben Maurer ddd0ce62f4 XSLT will never be able to tell the XPathResultType of a variable, so lets just save the lookup
svn path=/trunk/mcs/; revision=18006
2003-09-08 23:36:41 +00:00
Ben Maurer bd935f917b No IEnumerators, please
svn path=/trunk/mcs/; revision=18005
2003-09-08 23:20:33 +00:00
Ben Maurer 9db0c916ed optimize collection allocation
svn path=/trunk/mcs/; revision=18004
2003-09-08 22:45:02 +00:00
Ben Maurer b878abf6ab make one, not two calls to the hashtable
svn path=/trunk/mcs/; revision=18003
2003-09-08 22:10:32 +00:00
Ben Maurer d56057ac65 Flush after you use it
svn path=/trunk/mcs/; revision=18002
2003-09-08 21:26:32 +00:00
Zoltan Varga d93d481cb7 2003-09-08 Zoltan Varga <[email protected]>
* jit-icalls.c (mono_llmult_ovf): Fix warning.

svn path=/trunk/mono/; revision=18001
2003-09-08 20:09:44 +00:00
Zoltan Varga b99eff69c0 2003-09-08 Zoltan Varga <[email protected]>
* reflection.c icall.c: Fixed warnings.

svn path=/trunk/mono/; revision=18000
2003-09-08 20:04:33 +00:00
Miguel de Icaza d8b4b18789 Add wsdl script
svn path=/trunk/mono/; revision=17997
2003-09-08 17:46:15 +00:00
Atsushi Eno 22bae8654d 2003-09-08 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : GetEnumerator() should return all of the
	  available pairs (of prefix and namespace).
	* XmlQualifiedName.cs : Quick fix for NullReferenceException in case
	  of name (or ns) is null. (The description of the immediate previous
	  changes will be inserted below.)
	* XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
	* XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
	  will release resources it had allocated.

svn path=/trunk/mcs/; revision=17996
2003-09-08 16:36:38 +00:00
Zoltan Varga 62192ab847 2003-09-08 Zoltan Varga <[email protected]>
* aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.

svn path=/trunk/mono/; revision=17995
2003-09-08 14:53:00 +00:00
Zoltan Varga fe931dbbd3 2003-09-08 Zoltan Varga <[email protected]>
* .cvsignore: Added *.dll.

svn path=/trunk/mono/; revision=17994
2003-09-08 13:26:28 +00:00
Zoltan Varga 6e78ac21f9 2003-09-08 Zoltan Varga <[email protected]>
* mini.c (mono_print_tree_nl): New function callable while debugging.

	* mini.c (mono_print_code): Export this.

	* mini.h (MonoCompile): Added 'jit_info' field.

	* mini.c (mini_method_compile): Save the generated MonoJitInfo into
	the cfg structure, since it is needed by the AOT compiler.

	* mini.h (MONO_AOT_FILE_VERSION): Bump version number.

	* aot.c: A major rewrite. Changes include:
	- save exception tables for methods which have them.
	- cache failed lookups in aot_get_method () to avoid the (slow) calls
	to g_module_symbol.
	- reworked the file format so it is now much smaller and needs
	fewer relocation entries.

svn path=/trunk/mono/; revision=17993
2003-09-08 13:23:19 +00:00
Zoltan Varga abca05c3da 2003-09-08 Zoltan Varga <[email protected]>
* image.c (load_class_names): Use a temporary hash table to hold the
	namespaces in order to avoid doing many string comparisons.

	* image.h: Fix typo.

	* image.c class.c rawbuffer.c reflection.c threads.c verify.c domain.c:
	Pass NULL instead of g_direct_equal to the GHashTable constructor
	since the NULL case is short-circuited inside g_hash_table_lookup,
	leading to better performance.

svn path=/trunk/mono/; revision=17992
2003-09-08 13:16:46 +00:00
Zoltan Varga fa52b9ff7a 2003-09-08 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_custom_attrs_from_index): New function to
	obtain the first custom attribute for a given index. Depends on the
	CustomAttribute table being sorted by the parent field.

	* reflection.c (mono_custom_attrs_from_index): Use the new function
	for better performance.

svn path=/trunk/mono/; revision=17991
2003-09-08 13:06:15 +00:00
Zoltan Varga 9c23541650 2003-09-08 Zoltan Varga <[email protected]>
* tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
	patched code.

svn path=/trunk/mono/; revision=17990
2003-09-08 12:36:29 +00:00
Zoltan Varga e7b0e7b2f8 2003-09-08 Zoltan Varga <[email protected]>
* configure.in: Added check for valgrind headers.

svn path=/trunk/mono/; revision=17989
2003-09-08 12:29:22 +00:00
César Natarén 3e0b957917 2003-09-07 Cesar Lopez Nataren <[email protected]>
* Context.cs: Added constructor and Document field.
	* DocumentContext.cs: Added Name field.
	* JSParser.cs: Integration of antlr's generated parser with
	JSParser public API. ScriptBlock is now the principal data structure that
	represents a Jscript .Net program.
	* JSScanner.cs: Integration of antlr's generated lexer with
	JSScanner public API.

svn path=/trunk/mcs/; revision=17988
2003-09-08 05:22:00 +00:00
Sebastien Pouliot 9aa59873d9 2003-09-07 Sebastien Pouliot <[email protected]>
* Path.cs: RoutingFault not yet implemented (commented).

svn path=/trunk/mcs/; revision=17985
2003-09-08 02:04:14 +00:00
Sebastien Pouliot 324a07d7bc 2003-09-07 Sebastien Pouliot <[email protected]>
* Referral.cs: Oops - didn't compile when WSE1 was defined
	* ReferralCollection.cs: Oops - didn't compile when WSE1 was defined

svn path=/trunk/mcs/; revision=17984
2003-09-08 02:02:35 +00:00
Sebastien Pouliot 0ca27969b2 2003-09-07 Sebastien Pouliot <[email protected]>
* Path.cs: Constructors are internal and Clone is non virtual in WSE1
	(corcompare). Added missing properties (many are obsolete in WSE2).
	* RoutingInputFilter.cs: Added missing TODO.
	* RoutingOutputFilter.cs: Added missing TODO.
	* Via.cs: Removed virtual from Clone for WSE1 (corcompare).
	* ViaCollection.cs: Removed virtual from Clone/GetEnumerator/CopyTo/
	SyncRoot for WSE1 (corcompare).
	* WSRouting.cs: New. Routing constant strings.

svn path=/trunk/mcs/; revision=17983
2003-09-08 01:52:24 +00:00
Sebastien Pouliot 02034d82be 2003-09-07 Sebastien Pouliot <[email protected]>
* Referral.cs: Removed virtual from Clone/GetXml/LoadXml for WSE1
	(corcompare).
	* ReferralCollection.cs: Removed virtual from LoadXml/GetXml/
	GetEnumerator/CopyTo/Count/IsSynchronized/SyncRoot for WSE1
	(corcompare)
	* ReferralException.cs: Removed ReferralFormatException implementation
	and added ReferralException.
	* ReferralFormatException.cs: Moved code from ReferralException.cs and
	added missing string constants.
	* ReferralInputFilter.cs: Added missing TODO.
	* ReferralOutputFilter.cs: Added missing TODO.

svn path=/trunk/mcs/; revision=17982
2003-09-08 01:50:45 +00:00
Ben Maurer 68ec5ce1a6 Dont make function call to StringBuffer
svn path=/trunk/mcs/; revision=17981
2003-09-07 21:55:47 +00:00
Ben Maurer 55df2f030d more optimization
svn path=/trunk/mcs/; revision=17980
2003-09-07 21:38:21 +00:00
Ben Maurer bc43a0c5b3 Optimize
svn path=/trunk/mcs/; revision=17979
2003-09-07 19:40:30 +00:00
Martin Baulig 6c491eb01d Merged from MCS.
svn path=/trunk/mcs/; revision=17978
2003-09-07 17:48:58 +00:00
Martin Baulig 9444e39d02 2003-09-07 Martin Baulig <[email protected]>
* report.cs (Error, Warning): Added overloaded versions which take
	a `params object[] args' and call String.Format().

svn path=/trunk/mcs/; revision=17977
2003-09-07 17:46:26 +00:00
Martin Baulig 5dfb0f5dd0 2003-09-07 Martin Baulig <[email protected]>
* decl.cs (DeclSpace..ctor): Don't call
	NamespaceEntry.DefineName() here; do it in RecordDecl() which is
	called from Tree.RecordDecl().  Fixes the CS0101 reporting.
	(DeclSpace.RecordDecl): New method.

	* tree.cs (Tree.RecordDecl): Call ds.RecordDecl().

svn path=/trunk/mcs/; revision=17976
2003-09-07 17:33:45 +00:00
Martin Baulig 1596d9b64f Added error -217.
svn path=/trunk/mcs/; revision=17974
2003-09-07 16:09:16 +00:00
Martin Baulig 936f88c9bb *** empty log message ***
svn path=/trunk/mcs/; revision=17973
2003-09-07 16:08:55 +00:00
Martin Baulig 0286f88754 2003-09-07 Martin Baulig <[email protected]>
* generic.cs (ConstructedType.ResolveAsTypeStep): Report a CS8217
	if the number of type parameters doesn't match.

svn path=/trunk/mcs/; revision=17972
2003-09-07 16:08:21 +00:00
Martin Baulig b6a65fdb5a 2003-09-07 Martin Baulig <[email protected]>
* class.c (mono_class_init): If we're a generic instance, inflate
	all our methods instead of loading them from the image.
	(mono_class_from_generic): Set `class->methods = gklass->methods'.

svn path=/trunk/mono/; revision=17970
2003-09-07 14:59:09 +00:00
Dennis Hayes 1f4f9fb73c signture fixes
svn path=/trunk/mcs/; revision=17966
2003-09-07 09:17:53 +00:00
Dennis Hayes 02362af0e7 signiture fixes
svn path=/trunk/mcs/; revision=17965
2003-09-07 06:25:35 +00:00
Dennis Hayes c0063b75cd signiture fixes
svn path=/trunk/mcs/; revision=17964
2003-09-07 04:47:48 +00:00
Dennis Hayes 9009ac29f3 signture fixes.
svn path=/trunk/mcs/; revision=17963
2003-09-07 03:03:03 +00:00
Sebastien Pouliot af2d375b20 2003-09-06 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added stubbed input/output soap
	filters for Routing and Referral so Configuration can be compiled.

svn path=/trunk/mcs/; revision=17962
2003-09-07 02:24:47 +00:00
Dennis Hayes f7acc63dc8 signiture fixes
svn path=/trunk/mcs/; revision=17961
2003-09-07 02:23:34 +00:00
Sebastien Pouliot f0e3c263b0 2003-09-06 Sebastien Pouliot <[email protected]>
* ConfigurationBase.cs: Completed implementation (both WSE1 and WSE2).
	* FilterConfiguration.cs: Now returns the default input/output filters.
	* WebServicesConfiguration.cs: Works for WSE1. Added WSE2 stubs.

svn path=/trunk/mcs/; revision=17960
2003-09-07 02:23:03 +00:00
Sebastien Pouliot 5df1e2ac1b 2003-09-06 Sebastien Pouliot <[email protected]>
* ReferralInputFilter.cs: Stubbed for compilation (configuration).
	* ReferralOutputFilter.cs: Stubbed for compilation (configuration)

svn path=/trunk/mcs/; revision=17959
2003-09-07 02:21:10 +00:00
Sebastien Pouliot cffb298846 2003-09-06 Sebastien Pouliot <[email protected]>
* RoutingInputFilter.cs: Stubbed for compilation (configuration).
	* RoutingOutputFilter.cs: Stubbed for compilation (configuration)

svn path=/trunk/mcs/; revision=17958
2003-09-07 02:20:29 +00:00
Sebastien Pouliot 3e649c2041 2003-09-06 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallers

svn path=/trunk/mcs/; revision=17957
2003-09-07 02:19:15 +00:00
Ben Maurer 77949634ad thanks tberman, nice catch of the warning
svn path=/trunk/mcs/; revision=17956
2003-09-07 01:22:45 +00:00
Martin Baulig fb6787b98f 2003-09-07 Martin Baulig <[email protected]>
* mono-debug-debugger.c: Added support for constructors.

svn path=/trunk/mono/; revision=17953
2003-09-06 23:54:54 +00:00
Martin Baulig 865f7807b1 2003-09-06 Martin Baulig <[email protected]>
* MonoSymbolFile.cs: Removed debugging output.

svn path=/trunk/mcs/; revision=17952
2003-09-06 21:01:10 +00:00
Ben Maurer 09ca3f3ac0 performance hacking
svn path=/trunk/mcs/; revision=17951
2003-09-06 20:29:44 +00:00
Ben Maurer 9a14273e54 buggies
svn path=/trunk/mcs/; revision=17950
2003-09-06 19:57:06 +00:00
Ben Maurer 446f43d4be 2003-09-06 Ben Maurer <[email protected]>
* DefaultContext.cs, Expresssion.cs, Parser.jay: Rewrite so that
	system functions are actually expressions. Will allow for some
	nice optimizations.

svn path=/trunk/mcs/; revision=17947
2003-09-06 18:58:51 +00:00
Martin Baulig 8add181d95 2003-09-06 Martin Baulig <[email protected]>
* errors.txt: Added -216.

svn path=/trunk/mcs/; revision=17946
2003-09-06 18:15:29 +00:00
Martin Baulig 2574057134 Fixed error number.
svn path=/trunk/mcs/; revision=17944
2003-09-06 18:10:14 +00:00
Martin Baulig cbf8065b4c 2003-09-06 Martin Baulig <[email protected]>
* icall.c (ves_icall_TypeBuilder_get_IsUnboundGenericParameter):
	New interncall.

	* reflection.c (mono_reflection_setup_generic_class): Call
	ensure_runtime_vtable() to create the vtable.

svn path=/trunk/mono/; revision=17943
2003-09-06 18:09:24 +00:00
Martin Baulig b72d8c9935 2003-09-06 Martin Baulig <[email protected]>
* TypeBuilder.cs (TypeBuilder.IsUnboundGenericParameter): Implemented.

svn path=/trunk/mcs/; revision=17942
2003-09-06 18:08:02 +00:00
Sebastien Pouliot 22b9a22ee4 2003-09-06 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added another shared (and
	renamed) file from System.Security assembly (Signature.cs ->
	SignedXmlSignature.cs).

svn path=/trunk/mcs/; revision=17941
2003-09-06 03:57:47 +00:00
Sebastien Pouliot d8361220ec 2003-09-06 Sebastien Pouliot <[email protected]>
* EncryptedKey.cs: Fixed typo.
	* Security.cs: Fixed compilation issues.
	* SignedXml.cs: Fixed compilation issues.
	* SignedXmlSignature.cs: Copied from System.Security assembly (where
	it is known as Signature.cs) as MS duplicate the class (in WSE) to
	fixed some issues.
	* XmlSignature.cs: Added more missing string used in System.Security.

svn path=/trunk/mcs/; revision=17940
2003-09-06 03:55:44 +00:00
Sebastien Pouliot c12bf9a947 2003-09-06 Sebastien Pouliot <[email protected]>
* Pipeline.cs: Uncommented Microsoft.Web.Services.Configuration;

svn path=/trunk/mcs/; revision=17939
2003-09-06 03:52:54 +00:00
Sebastien Pouliot 57ca40b880 2003-09-05 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added stubbed classes from
	Microsoft.Web.Services.Configuration to fix compilation.

svn path=/trunk/mcs/; revision=17938
2003-09-06 01:14:15 +00:00
Sebastien Pouliot 60340f59db 2003-09-05 Sebastien Pouliot <[email protected]>
* ConfigurationBase.cs: New. Limited implementation to fix compile.
	* FilterConfiguration.cs: New. Stub to fix compile.
	* WebServicesConfiguration.cs: New. Stub to fix compile.

svn path=/trunk/mcs/; revision=17937
2003-09-06 01:05:15 +00:00
Sebastien Pouliot 626d78c7fe 2003-09-05 Sebastien Pouliot <[email protected]>
* KeyAttributesExtension.cs: New. Added for WSE.

svn path=/trunk/mcs/; revision=17935
2003-09-06 00:12:03 +00:00
Ben Maurer 734af89098 that was just a pathetic bug...
svn path=/trunk/mcs/; revision=17933
2003-09-05 21:19:34 +00:00
Martin Baulig 2b1bd6adbb 2003-09-05 Martin Baulig <[email protected]>
* class.c (mono_class_array_element_size): Added MONO_TYPE_VAR and
	MONO_TYPE_MVAR.

svn path=/trunk/mono/; revision=17911
2003-09-05 08:15:30 +00:00
Duncan Mak 1558ef9902 (Tolerance): Fix typo.
svn path=/trunk/mcs/; revision=17910
2003-09-05 05:01:51 +00:00
Sebastien Pouliot 0346525686 2003-09-04 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Removed unused files.
	Added Assembly files.

svn path=/trunk/mcs/; revision=17906
2003-09-05 03:57:13 +00:00
Sebastien Pouliot ba97b0201d 2003-09-04 Sebastien Pouliot <[email protected]>
* Reference.cs: Fixed compilation issues.
	* SignedInfo.cs: Fixed compilation issues.
	* XmlSignature.cs: Added missing string used in System.Security.

svn path=/trunk/mcs/; revision=17905
2003-09-05 03:54:22 +00:00
Miguel de Icaza 3bafc0d8b1 Flush
svn path=/trunk/mono/; revision=17904
2003-09-05 03:52:48 +00:00
Sebastien Pouliot 967558602c 2003-09-04 Sebastien Pouliot <[email protected]>
* Path.cs: Corrected typos to fix compilation.

svn path=/trunk/mcs/; revision=17903
2003-09-05 03:52:09 +00:00
Sebastien Pouliot baaa844efb 2003-09-04 Sebastien Pouliot <[email protected]>
* DimeAttachmentCollection.cs: Fixed compilation issues
	* DimeReader.cs: Fixed compilation issues

svn path=/trunk/mcs/; revision=17902
2003-09-05 03:50:51 +00:00
Sebastien Pouliot eec0c628e4 2003-09-04 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Added. Copied from corlib and ajusted for WSE.
	* Locale.cs: Added. Copied from corlib.
	* ChangeLog: Added

svn path=/trunk/mcs/; revision=17901
2003-09-05 03:49:18 +00:00
Sebastien Pouliot 23556136c6 2003-09-04 Sebastien Pouliot <[email protected]>
* Via.cs: Corrected typos to fix compilation.
	* ViaCollection.cs: Corrected typos to fix compilation.

svn path=/trunk/mcs/; revision=17900
2003-09-05 02:58:14 +00:00
Sebastien Pouliot 72df13062a 2003-09-04 Sebastien Pouliot <[email protected]>
* ReferralCollection.cs: Added missing ICollection properties.

svn path=/trunk/mcs/; revision=17898
2003-09-05 02:27:35 +00:00
Sebastien Pouliot 54950b6d6d 2003-09-04 Sebastien Pouliot <[email protected]>
* Makefile: Added reference to System.Security assembly and a define
	for WSE1 (required for classes shared between SS and WSE).
	* Microsoft.Web.Services.dll.sources: Added (shared) files from
	System.Security assembly.

svn path=/trunk/mcs/; revision=17897
2003-09-05 02:19:22 +00:00
Sebastien Pouliot 6ea59691fe 2003-09-04 Sebastien Pouliot <[email protected]>
* TimestampFormatException.cs: Added missing strings and #if for WSE2.

svn path=/trunk/mcs/; revision=17896
2003-09-05 02:17:45 +00:00
Sebastien Pouliot 7c9eaf9071 2003-09-04 Sebastien Pouliot <[email protected]>
* FileCertificateStore.cs: Fixed compilation.

svn path=/trunk/mcs/; revision=17895
2003-09-05 02:15:50 +00:00
Sebastien Pouliot 5b55c9f892 2003-09-04 Sebastien Pouliot <[email protected]>
* Reference.cs: Copied from System.Security assembly as MS duplicate
	the class (in WSE) to fixed some issues.
	* SignedInfo.cs: Copied from System.Security assembly as MS duplicate
	the class (in WSE) to fixed some issues.
	* SignedXml.cs: Copied from System.Security assembly as MS duplicate
	the class (in WSE) to fixed some issues.
	* TransformChain.cs: Copied from System.Security assembly as MS duplicate
	the class (in WSE) to fixed some issues.

svn path=/trunk/mcs/; revision=17894
2003-09-05 02:13:25 +00:00
Duncan Mak 5ab7064822 2003-09-04 Duncan Mak <[email protected]>
* Integrate the files from Sebastien.

svn path=/trunk/mcs/; revision=17892
2003-09-05 00:25:19 +00:00
Ben Maurer 8400c5fe2b Fixed typo; thanks Miguel for bug report
svn path=/trunk/mcs/; revision=17891
2003-09-04 23:03:38 +00:00
Martin Baulig a724e9473a Ooops, this was just for debugging.
svn path=/trunk/mcs/; revision=17890
2003-09-04 22:57:58 +00:00
Duncan Mak 1f2ff5537f (cairo_set_target_drawable):
(cairo_surface_create_for_drawable): Add CLSCompliantAttribute.
(cairo_current_tolerance):
(cairo_set_tolerance): Fix typo. Thanks Alp.

svn path=/trunk/mcs/; revision=17889
2003-09-04 20:07:26 +00:00
Martin Baulig 901fc09833 2003-09-04 Martin Baulig <[email protected]>
* expression.cs (ComposedCast.ResolveAsTypeStep): Added support
	for arrays of generic type params (ie. `!0[]').

svn path=/trunk/mcs/; revision=17888
2003-09-04 20:04:28 +00:00
Duncan Mak 9c24142151 * Mono.Cairo/Cairo.cs: Update to the new API in CVS. Change all
*_get_* to *_current_*.

* Mono.Cairo/Object.cs: Update binding to reflect changes in the
API.

svn path=/trunk/mcs/; revision=17887
2003-09-04 19:54:49 +00:00
Duncan Mak 4ac9cd9a40 Add Alon's name to the Authors.
svn path=/trunk/mcs/; revision=17886
2003-09-04 19:20:20 +00:00
Duncan Mak e61457e5ba Integrate the patches contributed by Alon Gazit <[email protected]>.
* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.

* ListDictionary.cs (CopyTo): If the array is null, it should
throw ArgumentNullException. If the index is less than 0, it
should throw ArgumentOutOfRangeException.
(Remove): Throw ArgumentNullException when the parameter is null.

* BitVector32Test.cs (TestNegativeIndexer, TestSectionIndexer,
TestCreateSection): new tests from Alon Gazit <[email protected]>.

* ListDictionaryTest.cs (CopyTo1, CopyTo2, Remove): New file, with
tests from Alon Gazit <[email protected]>.

svn path=/trunk/mcs/; revision=17885
2003-09-04 19:16:30 +00:00
Miguel de Icaza 9ac511b8e7 Flush
svn path=/trunk/mono/; revision=17883
2003-09-04 17:55:02 +00:00
Martin Baulig d4a12eaffa 2003-09-04 Martin Baulig <[email protected]>
* class.cs (TypeContainer.AsAccessible): Ignore generic parameters
	for the moment.

svn path=/trunk/mcs/; revision=17882
2003-09-04 17:11:38 +00:00
Martin Baulig 991e98fcbf 2003-09-04 Martin Baulig <[email protected]>
* decl.cs (DeclSpace.LookupGeneric): New method.
	(DeclSpace.CheckAccessLevel): Ignore generic parameters for the
	moment.

	* generic.cs (TypeParameterExpr): Take a TypeParameter as
	argument, not just a string.
	(TypeParameter.Define): New public method; this is called to
	actually define the generic parameter; after this, you can use the
	new `Type' property to get the type.

svn path=/trunk/mcs/; revision=17881
2003-09-04 16:58:53 +00:00
Martin Baulig 6fa7e1bbb1 2003-09-04 Martin Baulig <[email protected]>
* TypeBuilder.cs (TypeBuilder.MonoGenericParam): Make this nested
	class internal, not protected.

svn path=/trunk/mcs/; revision=17880
2003-09-04 16:55:59 +00:00
Martin Baulig f85828a56d 2003-09-04 Martin Baulig <[email protected]>
* reflection.c (mono_reflection_define_generic_parameter): Generic
	parameters start with zero.

svn path=/trunk/mono/; revision=17879
2003-09-04 16:49:52 +00:00
Zoltan Varga 0d3e4efef5 2003-09-04 Zoltan Varga <[email protected]>
* aot.c (load_aot_module): Fix build bustage on platforms without
	Boehm GC.

svn path=/trunk/mono/; revision=17878
2003-09-04 16:08:44 +00:00
Lluis Sanchez 06ccb34590 * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
(this will get the address from the request headers).

svn path=/trunk/mcs/; revision=17877
2003-09-04 15:57:03 +00:00
Miguel de Icaza 94e18df0ad Apply patch from David Sandor ([email protected]): LIKE expression was not working since the index used was always 0
svn path=/trunk/mcs/; revision=17875
2003-09-04 15:51:07 +00:00
Martin Baulig 8b60e8422e 2003-09-04 Martin Baulig <[email protected]>
* decl.cs (DeclSpace.SetParameterInfo): The `constraints' argument
	is now an ArrayList; initialize the result of the `TypeParameters'
	property here.
	(DeclSpace.GetGenericData): Removed.
	(DeclSpace.LookupGeneric): Temporarily removed; we need to
	implement this in a different way.
	(DeclSpace.GetTypeParameters): Removed; there's now a
	`TypeParameters' property.
	(DeclSpace.TypeParameters): New public property.

	* ecore.cs (SimpleName.ResolveAsTypeStep): Removed the generic
	lookup for the moment.

	* generic.cs (Constraints): Make this class public.
	(TypeParameter): New public class.

svn path=/trunk/mcs/; revision=17874
2003-09-04 15:13:13 +00:00
Martin Baulig 21de38f7df 2003-09-04 Martin Baulig <[email protected]>
* decl.cs (DeclSpace.GetTypeParameters): New method to return the
	generic parameters.

	* class.cs (TypeContainer.DefineType): Call
	TypeBuilder.DefineGenericParameter () on all generic parameters if
	this is a generic type.

svn path=/trunk/mcs/; revision=17873
2003-09-04 13:41:53 +00:00
Martin Baulig 1a3eff7d2f 2003-09-04 Martin Baulig <[email protected]>
* Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).

svn path=/trunk/mono/; revision=17872
2003-09-04 13:31:53 +00:00
Martin Baulig efb1b46471 2003-09-04 Martin Baulig <[email protected]>
* metadata.c (mono_type_size): Added MONO_TYPE_VAR and MONO_TYPE_MVAR.

	* reflection.h (MonoReflectionGenericParam): New typedef.
	(MonoReflectionTypeBuilder): Added `num_generic_params' and
	`generic_params' fields to get the generic parameters from the
	managed TypeBuilder.

	* reflection.c (mono_reflection_define_generic_parameter): New function.
	(mono_reflection_create_runtime_class): Encode generic parameters.
	(mono_reflection_setup_generic_class): New function; this is
	called after adding adding all generic params to the TypeBuilder.
	(encode_type): Added MONO_TYPE_VAR.

svn path=/trunk/mono/; revision=17871
2003-09-04 13:22:59 +00:00
Martin Baulig 2941646acd 2003-08-29 Martin Baulig <[email protected]>
* TypeBuilder.cs (TypeBuilder.DefineGenericParameter): New public
	method.  We can now create generic types.
	(TypeBuilder.GetGenericTypeDefinition): Override this; call the
	`setup_internal_class' interncall before calling our base impl.

svn path=/trunk/mcs/; revision=17870
2003-09-04 13:20:57 +00:00
Martin Baulig 346e9487ea 2003-09-04 Martin Baulig <[email protected]>
* Type.cs (GetGenericTypeDefinition): Make this method virtual.

svn path=/trunk/mcs/; revision=17869
2003-09-04 13:20:35 +00:00
Zoltan Varga 25fb12679d 2003-09-04 Zoltan Varga <[email protected]>
* TODO: Some new optimization ideas.

svn path=/trunk/mono/; revision=17868
2003-09-04 13:03:38 +00:00
Zoltan Varga e347c5d9b9 2003-09-04 Zoltan Varga <[email protected]>
* aot.c: Move AOT module loading logic here from mono_assembly_open.

	* aot.c: Save the optimization flags used to compile the code into
	the AOT module.

	* mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
	support emitting domain specific code.

	* mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
	no longer domain neutral. It can be made domain neutral by compiling
	with --optimize=shared.

	* aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
	between appdomains.

	* driver.c mini.h mini.c: New --no-aot debugging option which disables
	loading of AOT code.

	* inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.

svn path=/trunk/mono/; revision=17867
2003-09-04 13:02:16 +00:00
Zoltan Varga 605c98433c 2003-09-04 Zoltan Varga <[email protected]>
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
	if there is no domain neutrality information.

svn path=/trunk/mono/; revision=17866
2003-09-04 12:36:14 +00:00
Zoltan Varga 39d3c1e9ea 2003-09-04 Zoltan Varga <[email protected]>
* class.h class.c (mono_class_needs_cctor_run): Moved this method
	here from the JIT.

	* assembly.h assembly.c: Moved the AOT loading code into an assembly
	load hook.

svn path=/trunk/mono/; revision=17865
2003-09-04 12:29:17 +00:00
Gaurav Vaish e2e5b97f94 2003-09-04 Gaurav Vaish <gvaish_mono AT lycos.com>
* ControlAdapter.cs     : Control property         - Marked virtual
                        : LoadPostData(...)        - Marked virtual
* HtmlCommandAdapter.cs : Implemented.
* HtmlControlAdapter.cs : RenderEndLink(...)       - Correct signature
* HtmlMobileTextWriter.cs
                        : Added several properties,
                        : Stubbed several methods

svn path=/trunk/mcs/; revision=17861
2003-09-04 09:37:54 +00:00
Lluis Sanchez e49789fb8e * HttpServerUtility.cs: In Transfer(), preserve the query string if
told to do so.

svn path=/trunk/mcs/; revision=17858
2003-09-04 02:49:49 +00:00
Lluis Sanchez 48d4723389 * MonoWSDL.cs: Implemented support for WSDL documents that import other
documents and schemas.
	  Improved warning messages.

svn path=/trunk/mcs/; revision=17857
2003-09-04 02:43:47 +00:00
Lluis Sanchez 61080dc4f9 * SerializationCodeGenerator.cs: Minor fixes.
* SoapReflectionImporter.cs: More fixes.
	* SoapSchemaExporter.cs: implemented.
	* SoapSchemaImporter.cs: Initial implementation.
	* TypeTranslator.cs: new methods for dealing with encoded arrays: GetArrayName
	  and ParseArrayType
	* XmlCodeExporter.cs: Fix. When exporting a map, export all derived maps.
	* XmlMemberMapping.cs: Minor fixes.
	* XmlMembersMapping.cs: added some convenient constructors.
	* XmlSchemaExporter.cs: Added support for encoded format.
	* XmlSchemaImporter.cs: Added support for encoded format.
	* XmlSerializationReader.cs: changed some string literals by constants.
	  Implemented ParseWsdlArrayType.
	* XmlSerializationReaderInterpreter.cs: Read typeArray attribute when serializing
	  custom attributes.
	* XmlSerializationWriter.cs: Implemented WriteXmlAttribute.
	* XmlSerializationWriterInterpreter.cs: Use WriteXmlAttribute instead of
	  WriteAttribute to write custom attributes.
	* XmlSerializer.cs: added some namespace constants.
	* XmlTypeMapping.cs: added GetSchemaArrayName method.

svn path=/trunk/mcs/; revision=17856
2003-09-04 02:39:08 +00:00
Lluis Sanchez 98ddc29f0b * ServiceDescription.cs: minor fixes.
* ServiceDescriptionImporter.cs: initial implementation.
	* ServiceDescriptionReflector.cs: Added support for bare parameter style.
	  Added support for encoded format.

svn path=/trunk/mcs/; revision=17855
2003-09-04 02:26:25 +00:00
Lluis Sanchez c1d64cc212 * Methods.cs: Added support for bare parameter style. Fixed some defaults.
svn path=/trunk/mcs/; revision=17854
2003-09-04 02:21:38 +00:00
Lluis Sanchez b6c6935a5e * CSharpCodeGenerator.cs: Fixed generation of array construction with initializers.
Render return type custom attributes.

svn path=/trunk/mcs/; revision=17853
2003-09-04 02:15:31 +00:00
Duncan Mak bef7add9ef Update mono-wine packages.
svn path=/trunk/mono/; revision=17852
2003-09-03 23:39:53 +00:00
Alp Toker c8aa68a382 2003-09-03 Alp Toker <[email protected]>
cairo-api.cs: typos: drawble -> drawable, tolerence -> tolerance

svn path=/trunk/mcs/; revision=17851
2003-09-03 23:07:45 +00:00
Alp Toker 64295fc25b 2003-09-03 Alp Toker <[email protected]>
cairo-api.cs: drawble -> drawable typo

svn path=/trunk/mcs/; revision=17850
2003-09-03 23:04:46 +00:00
Gaurav Vaish ce6d775dce 2003-09-03 Gaurav Vaish <gvaish_mono AT lycos.com>
* HtmlControlAdapter.cs : Looks like done, at least stubbing.

svn path=/trunk/mcs/; revision=17847
2003-09-03 15:45:23 +00:00
Zoltan Varga 1e0e0537e1 2003-09-03 Zoltan Varga <[email protected]>
* reflection.h reflection.c class.h class.c: Delete duplicate
	definition of mono_type_get_name () from reflection.c and export the
	one in class.c.

	* class.c: Class loading fixes from Bernie Solomon
	([email protected]).

svn path=/trunk/mono/; revision=17841
2003-09-03 08:52:20 +00:00
Zoltan Varga 3fe1b6c830 2003-09-03 Zoltan Varga <[email protected]>
* reflection.c: Endianness fixes from Bernie Solomon
	([email protected]).

svn path=/trunk/mono/; revision=17840
2003-09-03 08:19:33 +00:00
Zoltan Varga 7e350f2f96 2003-09-03 Zoltan Varga <[email protected]>
* x86/tramp.c: Fixes from Bernie Solomon ([email protected]).

svn path=/trunk/mono/; revision=17839
2003-09-03 08:10:57 +00:00
Zoltan Varga b2c1fd7dcc 2003-09-03 Zoltan Varga <[email protected]>
* Makefile.am: Use $(MAKE) in even more places. Patch by Bernie Solomon
	([email protected]).

svn path=/trunk/mono/; revision=17838
2003-09-03 08:06:10 +00:00
Ben Maurer 73609e891b typo correction
svn path=/trunk/mcs/; revision=17837
2003-09-03 01:16:03 +00:00
Duncan Mak 73a91a8612 Remove this bogus assembly
svn path=/trunk/mcs/; revision=17836
2003-09-02 22:16:38 +00:00
Duncan Mak 9d10e0a743 2003-09-02 Duncan Mak <[email protected]>
* Microsoft.Web.Services/Soap.cs:
	* Microsoft.Web.Services/IXmlElement.cs: Implemented.

2003-09-02  Daniel Kornhauser  <[email protected]>

	* Microsoft.Web.Services: All Exceptions in this assembly
	implemented.

svn path=/trunk/mcs/; revision=17835
2003-09-02 22:12:45 +00:00
Ravi Pratap M 620f323b91 Remove some old code
svn path=/trunk/mcs/; revision=17834
2003-09-02 21:13:50 +00:00
Ravi Pratap M fadebb4cbb 2003-09-02 Ravi Pratap <[email protected]>
* class.cs (MethodCore.LabelParameters): Make static and more
	generic so that it can be used from other places - like interface
	methods, for instance.

	* interface.cs (Interface.Emit): Call LabelParameters before
	emitting attributes on the InterfaceMethod.

svn path=/trunk/mcs/; revision=17833
2003-09-02 21:09:44 +00:00
Ravi Pratap M c32725d1b4 Flush
svn path=/trunk/mcs/; revision=17832
2003-09-02 20:14:13 +00:00
Ravi Pratap M 3da8bd84bf 2003-09-02 Ravi Pratap <[email protected]>
* attribute.cs (CheckAttributeTarget): Ensure that we allow return
	value attributes to be applied to ParameterBuilders.

svn path=/trunk/mcs/; revision=17831
2003-09-02 19:55:22 +00:00
Ravi Pratap M 749b0fbeb6 Woops - wrong filename in ChangeLog entry
svn path=/trunk/mcs/; revision=17830
2003-09-02 19:21:49 +00:00
Ravi Pratap M 4268a7a585 2003-09-02 Ravi Pratap <[email protected]>
* DebuggableAttribute.cs: Fix allowable targets to include class
	and struct; remove property targets.

svn path=/trunk/mcs/; revision=17829
2003-09-02 19:21:06 +00:00
Miguel de Icaza 14c36f9789 When compiling CORLIB: pass the INSIDE_CORLIB setting, so X509Certificate class is internal, and not public: Fixes the build
svn path=/trunk/mcs/; revision=17828
2003-09-02 17:04:00 +00:00
Miguel de Icaza f191d64fcc Quick change to fix the build
svn path=/trunk/mcs/; revision=17827
2003-09-02 16:52:38 +00:00
Dick Porter ce0a38efe9 2003-09-02 Dick Porter <[email protected]>
* io.c: Work around glib brain-dead assumptions about utf8-encoded
	filenames.  Fixes bug 30781.

svn path=/trunk/mono/; revision=17826
2003-09-02 14:42:21 +00:00
Dennis Hayes 8c2265ada1 signiture stuff
svn path=/trunk/mcs/; revision=17823
2003-09-02 08:08:22 +00:00
Dennis Hayes ccffde46a5 signiture stuff
svn path=/trunk/mcs/; revision=17821
2003-09-02 03:26:06 +00:00
Miguel de Icaza efb4c1c4e8 Update errors
svn path=/trunk/mcs/; revision=17819
2003-09-02 01:51:41 +00:00
Dennis Hayes ca82832ff0 signiture fix
svn path=/trunk/mcs/; revision=17816
2003-09-02 01:05:59 +00:00
Dennis Hayes fd273f974d fixed signtures
svn path=/trunk/mcs/; revision=17815
2003-09-02 00:45:10 +00:00
Miguel de Icaza a2636c011b Flush
svn path=/trunk/mono/; revision=17814
2003-09-02 00:32:15 +00:00
Sebastien Pouliot 11b945ce2e 2003-09-01 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Updated version to 0.26.99 (all tools).
	* cert2spc.cs: Updated to use Mono.Security.X509.
	* chktrust.cs: Tool to validate Authenticode(tm) signatures on PE
	files (including assemblies).
	* signcode.cs: Tool to sign and timestamp PE files using
	Authenticode(tm) compatible certificates.
	* README: Updated to include a small tutorial on how to use
	Authenticode(tm) to sign/verify assemblies.
	* Makefile: Updated to build chktrust.exe and signcode.exe

svn path=/trunk/mcs/; revision=17813
2003-09-02 00:06:09 +00:00
Sebastien Pouliot 7d956e72c2 2003-09-01 Sebastien Pouliot <[email protected]>
* Mono.Security.dll.sources: Added support for Authenticode(tm)
	signatures.

svn path=/trunk/mcs/; revision=17812
2003-09-02 00:01:58 +00:00
Sebastien Pouliot 31f5c2e1d3 2003-09-01 Sebastien Pouliot <[email protected]>
* ITrustAnchors.cs: New. Interface to trust anchors.
	* TestAnchors.cs: New. Include 2 tests anchors: Microsoft Root Agency
	(for Windows compatibility) and Mono Test Root.
	* TrustAnchors.cs: New. Include some widely used (commercial) code
	signing root certificates.
	* X509CertificateCollection.cs: New. Collection for Mono's X509
	certificates.
	* X509Chain.cs: New. MINIMAL certificate chaining engine to support
	Authenticode(tm). VERY PARTIAL IMPLEMENTATION!!!

svn path=/trunk/mcs/; revision=17811
2003-09-02 00:01:01 +00:00
Sebastien Pouliot e3c3cb1a3b 2003-09-01 Sebastien Pouliot <[email protected]>
* AuthenticodeBase.cs: New. Base class including how to hash a
	PE file.
	* AuthenticodeDeformatter.cs: New. Class to decode Authenticode(tm)
	signatures.
	* AuthenticodeFormatter.cs: New. Class to encode a Authenticode(tm)
	signature, and optionally a timestamp, into a PE file.
	* SoftwarePublisherCertificate.cs: Now use Mono.Security.X509.
	X509Certificate class.

svn path=/trunk/mcs/; revision=17810
2003-09-02 00:00:09 +00:00
Sebastien Pouliot 72e5383d31 2003-09-01 Sebastien Pouliot <[email protected]>
* PKCS7.cs: Updated to use Mono.Security.X509.X509Certificate and to
	support countersignatures.

svn path=/trunk/mcs/; revision=17809
2003-09-01 23:58:52 +00:00
Ben Maurer aad7ab6a71 2003-09-01 Ben Maurer <[email protected]>
* XmlDocument.cs (Save): use the encoding of the document, if
	available.

svn path=/trunk/mcs/; revision=17808
2003-09-01 21:54:45 +00:00
Miguel de Icaza 7fe89c4676 2003-09-01 Miguel de Icaza <[email protected]>
* Encoding.cs (UTF8Unmarked): make it also not error out on
	invalid input, that is what the Microsoft default is for the
	StreamReader and BinaryReader expect (our main consumers).

svn path=/trunk/mcs/; revision=17807
2003-09-01 21:45:09 +00:00
Miguel de Icaza 363f3cd71a Add bug reporting page
svn path=/trunk/mono/; revision=17806
2003-09-01 20:09:38 +00:00
ct 93ca3a7daf added basic floating point support
svn path=/trunk/mono/; revision=17805
2003-09-01 20:07:08 +00:00
Ben Maurer 4ab5fa74fc typo fixing
svn path=/trunk/mcs/; revision=17803
2003-09-01 19:14:54 +00:00
Ben Maurer 572f874a3c Template priority; flush XmlWriter
svn path=/trunk/mcs/; revision=17802
2003-09-01 18:48:51 +00:00
Ben Maurer 84b11de105 WOOOOHOOOO PATTERNS WORK
svn path=/trunk/mcs/; revision=17801
2003-09-01 15:38:45 +00:00
Zoltan Varga 6a9f9f19ac 2003-09-01 Zoltan Varga <[email protected]>
* aot.c (mono_compile_assembly): Emit a symbol containing the file
	format version into the generated library.

	* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
	callee method into the caller since one of them could be shared.

	* mini.h mini-x86.c aot.c: Added two new relocations so throwing
	system exceptions from AOT code now works.

	* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
	method if it is domain neutral and the callee is not.

	* graph.c (cfg_emit_one_loop_level): Fix warning.

svn path=/trunk/mono/; revision=17800
2003-09-01 15:05:09 +00:00
Zoltan Varga 0d4a005d3e 2003-09-01 Zoltan Varga <[email protected]>
* assembly.h assembly.c: Define a file format version for AOT
	libraries.

	* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.

	* appdomain.h (MonoJitInfo): New field to determine whenever the
	code is domain neutral.

svn path=/trunk/mono/; revision=17799
2003-09-01 15:01:06 +00:00
Zoltan Varga 8b3c6bc8e0 2003-09-01 Zoltan Varga <[email protected]>
* aot.c (mono_compile_assembly): Emit a symbol containing the file
	format version into the generated library.

	* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
	callee method into the caller since one of them could be shared.

	* mini.h mini-x86.c aot.c: Added two new relocations so throwing
	system exceptions from AOT code now works.

	* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
	method if it is domain neutral and the callee is not.

	* graph.c (cfg_emit_one_loop_level): Fix warning.

svn path=/trunk/mono/; revision=17798
2003-09-01 14:56:19 +00:00
Lluis Sanchez 380f6113e1 * Methods.cs: In TypeStubInfo, added Documentation field.
svn path=/trunk/mcs/; revision=17797
2003-09-01 14:40:09 +00:00
Zoltan Varga 797016dd59 2003-09-01 Zoltan Varga <[email protected]>
* assembly.h assembly.c: Define a file format version for AOT
	libraries.

	* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.

	* appdomain.h (MonoJitInfo): New field to determine whenever the
	code is domain neutral.

svn path=/trunk/mono/; revision=17796
2003-09-01 14:34:33 +00:00
Lluis Sanchez 43aa27f77a * System.Web.Services.dll.sources: Added ExtensionManager.cs,
ServiceDescriptionSerializerBase.cs

svn path=/trunk/mcs/; revision=17795
2003-09-01 14:31:01 +00:00
Lluis Sanchez d7f7471efa * ExtensionManager.cs: Added
* ServiceDescriptionSerializerBase.cs. Added
	* ServiceDescription.cs: Reenabled suspport for serialization.
	* ServiceDescriptionReflector.cs: Import type and method documentation.

svn path=/trunk/mcs/; revision=17794
2003-09-01 14:29:20 +00:00
Lluis Sanchez 8ede651311 * System.Xml.dll.sources: added SerializationCodeGenerator.cs,
SerializationCodeGeneratorConfiguration.cs.

svn path=/trunk/mcs/; revision=17793
2003-09-01 14:17:39 +00:00
Lluis Sanchez 1f9698d02a * XmlSchemaImporter.cs: Implemented ImportMembersMapping.
* XmlTypeMapMemberElement.cs: Little fix.
	* XmlTypeMapping.cs: Added AllElementInfos property in ClassMap.
	* XmlCustomFormatter.cs: Added GenerateToXmlString and GenerateFromXmlString
	  methods.
	* SerializationCodeGenerator.cs, SerializationCodeGeneratorConfiguration.cs:
	  Added.

svn path=/trunk/mcs/; revision=17792
2003-09-01 14:13:23 +00:00
Malte Hildingson e2f81e3c33 * strtod.c: added missing Long define for big endian systems
svn path=/trunk/mono/; revision=17791
2003-09-01 10:52:11 +00:00
Nick Drochak 9ae480b952 Oops
svn path=/trunk/mcs/; revision=17790
2003-09-01 08:32:44 +00:00
Nick Drochak 8d51cf9f52 2003-09-01 Nick Drochak <[email protected]>
* AsyncCalls.cs: Fix Build breaker on .NET 1.1.

svn path=/trunk/mcs/; revision=17789
2003-09-01 08:29:35 +00:00
Ben Maurer a7578be9cf initial pattern work
svn path=/trunk/mcs/; revision=17786
2003-09-01 03:59:12 +00:00
Ben Maurer 3cc854f6d4 autogen jay
svn path=/trunk/mcs/; revision=17785
2003-09-01 03:58:26 +00:00
Miguel de Icaza 52ff034448 2003-08-31 Miguel de Icaza <[email protected]>
* marshal.c (emit_struct_conv): Add MONO_TYPE_CHAR

svn path=/trunk/mono/; revision=17783
2003-09-01 03:46:48 +00:00
Jonathan Pryor 7e7370ea4b Add some additional Visual Basic .NET compatibility information, which I
should have added last time.

svn path=/trunk/mono/; revision=17782
2003-09-01 00:54:42 +00:00
Jonathan Pryor bad2f2cac2 Add/update FAQ
- New questions & answers
  - revised answers for compatibility questions
  - moved some questions to more sensible categories (e.g. VB questions moved
    to "Compatibility" section, away from "Mono & Microsoft").
  - Spelling Fixes

Alas, all my editors (gedit & gvim) "fixed" the spelling of some names,
probably because those editors assume UTF-8 encoding...  This was seen for
Carlos Perell�� and Lluis S��nchez.

svn path=/trunk/mono/; revision=17780
2003-08-31 23:55:42 +00:00
Alexandre Pigolkine a772ea423f new test added
svn path=/trunk/mcs/; revision=17778
2003-08-31 23:41:30 +00:00
Alexandre Pigolkine d6c2f15a23 ServiceContainer implemented
svn path=/trunk/mcs/; revision=17777
2003-08-31 23:35:51 +00:00
Gonzalo Paniagua Javier 697999f997 Don't ask. Somehow this fixes compilation with csc 1.0
svn path=/trunk/mcs/; revision=17776
2003-08-31 21:39:26 +00:00
Miguel de Icaza be7b54cb3f Flush
svn path=/trunk/mono/; revision=17775
2003-08-31 21:19:40 +00:00
Miguel de Icaza 0c5f7bd5a2 Fix
svn path=/trunk/mcs/; revision=17771
2003-08-31 17:37:03 +00:00
Jerome Laban 4134c4b391 2003-08-31 Jerome Laban <[email protected]>
* Label.cs: Fixed Text property not redrawing the label correctly.

svn path=/trunk/mcs/; revision=17770
2003-08-31 17:22:04 +00:00
Jerome Laban f4e37bdd5c 2003-08-31 Jerome Laban <[email protected]>
* win32functions.cs: Added GetUpdateRect function.
        * Control.cs: Make sure to call OnPaint even if UserPaint style is not
        enabled. Get the appropriate DC for WM_PAINT operations.

svn path=/trunk/mcs/; revision=17769
2003-08-31 17:06:07 +00:00
Jerome Laban 8ac1b935d0 2003-08-31 Jerome Laban <[email protected]>
* Graphics.cs:
        * win32functions.cs: Added Win32 Ellipse implementation.

svn path=/trunk/mcs/; revision=17766
2003-08-31 16:21:36 +00:00
Gonzalo Paniagua Javier 654ed1b737 2003-08-31 Gonzalo Paniagua Javier <[email protected]>
* Repeater.cs: fix for Items property provided by [email protected]
	(Yaron Shkop). Closes bug #48060.

svn path=/trunk/mcs/; revision=17765
2003-08-31 14:45:11 +00:00
Jerome Laban db8ee2b426 2003-08-31 Jerome Laban <[email protected]>
* Container.cs: A site without name cannot be duplicate.

svn path=/trunk/mcs/; revision=17763
2003-08-31 13:53:23 +00:00
Jerome Laban 82996151aa 2003-08-31 Jerome Laban <[email protected]>
* Timer.cs: Fixed Enabled property bebavior.

svn path=/trunk/mcs/; revision=17762
2003-08-31 13:43:49 +00:00
Alexandre Pigolkine 82de61aee3 stubs added
svn path=/trunk/mcs/; revision=17759
2003-08-31 00:58:45 +00:00
Alexandre Pigolkine 17adce241c switch to linux line terminators
svn path=/trunk/mcs/; revision=17758
2003-08-31 00:55:04 +00:00
Alexandre Pigolkine 8a62b5c886 Screen.cs small fixes and few methods implemented
svn path=/trunk/mcs/; revision=17757
2003-08-31 00:51:39 +00:00
Ben Maurer 13dac8f114 Oleg's output patch
svn path=/trunk/mcs/; revision=17756
2003-08-30 22:19:58 +00:00
Zoltan Varga d4c0d41ac3 2003-08-30 Zoltan Varga <[email protected]>
* interp.c: Use mono_field_from_token () in the appropriate places.
	This simplifies the code and also fixes #48051.

svn path=/trunk/mono/; revision=17752
2003-08-30 17:21:54 +00:00
Marco Ridoni 025f156e76 More array handling fixes (Redim/Erase)
svn path=/trunk/mcs/; revision=17751
2003-08-30 17:03:49 +00:00
Marco Ridoni 7bb17d9b1e Small fix to ReDim which got broken during the last CVS update
svn path=/trunk/mcs/; revision=17750
2003-08-30 16:44:12 +00:00
Marco Ridoni 291d6d4f0c With statement added, several modifier fixes, ParamArray fixes, Array declaration
fixes

svn path=/trunk/mcs/; revision=17749
2003-08-30 16:33:57 +00:00
Marco Ridoni 14aba87ee2 The resolver should be fully case-insensitive
svn path=/trunk/mcs/; revision=17748
2003-08-30 16:32:26 +00:00
Marco Ridoni 741e732d73 Runtime conversion added for underlying types in Enums
svn path=/trunk/mcs/; revision=17747
2003-08-30 16:31:46 +00:00
Marco Ridoni 8c6ba9b6ba One more Runtime conversion (Byte)
svn path=/trunk/mcs/; revision=17746
2003-08-30 16:31:10 +00:00
Gonzalo Paniagua Javier 11a9575dee Undo workaround. Zoltan fixed it.
svn path=/trunk/mcs/; revision=17744
2003-08-30 14:54:47 +00:00
Zoltan Varga 0d464cbafa 2003-08-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Web_Util_ICalls_get_machine_install_dir):
	(ves_icall_System_Configuration_DefaultConfig_get_machine_config_path):
	Avoid caching the result since strings must be domain specific.	Fixes
	#48050.

svn path=/trunk/mono/; revision=17743
2003-08-30 14:38:39 +00:00
Zoltan Varga a92223031b 2003-08-30 Zoltan Varga <[email protected]>
* aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
	last checkin.

svn path=/trunk/mono/; revision=17742
2003-08-30 14:34:02 +00:00
Gonzalo Paniagua Javier c55bb99236 console
svn path=/trunk/mcs/; revision=17734
2003-08-30 02:18:03 +00:00
Gonzalo Paniagua Javier 948a55921a 2003-08-30 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs: workaround for bug #48050.

svn path=/trunk/mcs/; revision=17733
2003-08-30 02:13:39 +00:00
Gonzalo Paniagua Javier 722e6904ff added gthread
svn path=/trunk/mono/; revision=17732
2003-08-30 00:27:59 +00:00
Zoltan Varga 48942624b8 2003-08-29 Zoltan Varga <[email protected]>
* mini.c (mini_init): Call mono_marshal_init () explicitly since it
	is needed  by code which is executed before mono_runtime_init ().
	Thanks to Bernie Solomon ([email protected]) for noticing this.

svn path=/trunk/mono/; revision=17727
2003-08-29 14:53:27 +00:00
Zoltan Varga 93e4e20552 2003-08-29 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_init): Make this callable multiple times
	since it is hard to find a correct place to call it.

svn path=/trunk/mono/; revision=17726
2003-08-29 14:51:30 +00:00
Zoltan Varga b3ab8c444b 2003-08-29 Zoltan Varga <[email protected]>
* object.c (mono_runtime_class_init): Execute static constructors in
	the correct appdomain.

	* image.c (build_guid_table): Handle the case when multiple images have
	the same GUID.

svn path=/trunk/mono/; revision=17725
2003-08-29 14:19:37 +00:00
Zoltan Varga 0b48ad8a39 2003-08-29 Zoltan Varga <[email protected]>
* mini.c (mono_thread_abort): Fix warning.
	(mono_jit_compile_method): Call static constructor in the AOT case too.

	* aot.c (mono_compile_assembly): Fix warning.

svn path=/trunk/mono/; revision=17724
2003-08-29 14:15:30 +00:00
Lluis Sanchez e8ba6eec67 * Makefile: Fixed assembly reference.
svn path=/trunk/mcs/; revision=17723
2003-08-29 12:56:16 +00:00
Lluis Sanchez 614f65d798 * ServiceDescription.cs: Disabled suspport for serialization, until I found
an easy way of generate serialization readers and writers.

svn path=/trunk/mcs/; revision=17722
2003-08-29 12:31:35 +00:00
Lluis Sanchez fb0fca96f3 * SoapReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
* XmlMemberMapping.cs: Changed constructor.
	* XmlReflectionImporter.cs: Fixed construcion of XmlMemberMapping.
	* XmlSchemaImporter.cs: Implemented ImportMembersMapping().
	* XmlSerializationReaderInterpreter.cs: Added some helper methods. Changed visibility.
	* XmlSerializationWriterInterpreter.cs: Changed visibility.

svn path=/trunk/mcs/; revision=17721
2003-08-29 12:27:26 +00:00
Gonzalo Paniagua Javier e3abb2442d 2003-08-29 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added ICalls.cs.
	* System.Web.Hosting/ApplicationHost.cs: set hostingInstallDir.
	* System.Web.Hosting/SimpleWorkerRequest.cs: implemented a couple of
	properties.

svn path=/trunk/mcs/; revision=17719
2003-08-29 04:48:42 +00:00
Gonzalo Paniagua Javier 7ab1b6af3b 2003-08-29 Gonzalo Paniagua Javier <[email protected]>
* ICalls.cs: holds a couple of icalls.

svn path=/trunk/mcs/; revision=17718
2003-08-29 04:46:20 +00:00
Gonzalo Paniagua Javier 0f7817358d 2003-08-29 Gonzalo Paniagua Javier <[email protected]>
* icall.c: added a couple of icalls for System.Web.

svn path=/trunk/mono/; revision=17717
2003-08-29 04:44:06 +00:00
Gonzalo Paniagua Javier 657514abe5 2003-08-29 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: ensure we do all the EndRequest steps. Don't
	filter the output on error.

	* HttpResponse.cs: modified DoFilter to allow bypassing filtering.

svn path=/trunk/mcs/; revision=17713
2003-08-29 03:15:52 +00:00
Gonzalo Paniagua Javier 26fe2a737e 2003-08-29 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: fixed GetFilePathTranslated and added a
	paranoid condition to ExtractPathInfo.

svn path=/trunk/mcs/; revision=17712
2003-08-29 00:09:08 +00:00
Ben Maurer 52f615c07a 2003-08-28 Ben Maurer <[email protected]>
* cs0666.xml: added sample xml file for monodoc error provider.

svn path=/trunk/mcs/; revision=17711
2003-08-28 22:17:32 +00:00
Lluis Sanchez 692d094a5b XmlSerializer.cs: Fix in Deserialize() method.
svn path=/trunk/mcs/; revision=17709
2003-08-28 22:01:44 +00:00
Gonzalo Paniagua Javier d9f87f0196 2003-08-28 Gonzalo Paniagua Javier <[email protected]>
* mini.c: register a SIGINT handler if MONO_DEBUG is defined.

svn path=/trunk/mono/; revision=17708
2003-08-28 20:48:23 +00:00
Gonzalo Paniagua Javier ed06cc28fa new MONO_DEBUG env. var.
svn path=/trunk/mono/; revision=17707
2003-08-28 20:46:16 +00:00
Johannes Roith 9cb05b6e4e patch for Gtk+ integration. Needs external program. I'd love to do this automatically, but hat would require a manged xsettings implementation first.
svn path=/trunk/mcs/; revision=17706
2003-08-28 20:27:29 +00:00
Lluis Sanchez 2be706bc88 * Makefile: Added wsdl directory.
svn path=/trunk/mcs/; revision=17705
2003-08-28 17:34:55 +00:00
Lluis Sanchez 5fe9c0662f * Makefile: added
* wsdl.exe.sources: added
	* MonoWSDL.cs: Added wsdl code by Erik LeBel.

svn path=/trunk/mcs/; revision=17704
2003-08-28 17:34:17 +00:00
Zoltan Varga f97ea8ea9e 2003-08-28 Zoltan Varga <[email protected]>
* inssel.brg (OP_UNBOXCAST): Add support for the AOT case.

	* cpu-pentium.md: Fix the length of call opcodes so they include the
	ESP restoring instruction. Fixes #47968.

svn path=/trunk/mono/; revision=17700
2003-08-28 15:19:41 +00:00
Martin Baulig 175f324e3d Now it's working without any ugly hacks :-)
svn path=/trunk/mcs/; revision=17699
2003-08-28 14:48:24 +00:00
Martin Baulig 7dd5175eac 2003-08-28 Martin Baulig <[email protected]>
* icall.c (ves_icall_Type_BindGenericParameters): Use
	`klass->generic_inst' instead of `&klass->byval_arg' in the
	mono_type_get_object() call.  The returned type must be
	MONO_TYPE_GENERICINST and not MONO_TYPE_CLASS.

svn path=/trunk/mono/; revision=17698
2003-08-28 14:45:07 +00:00
Dick Porter 2aad678887 2003-08-28 Dick Porter <[email protected]>
* critical-sections.c:  Patch from Bernie Solomon                               <[email protected]> to emit a warning if locking a critical               section fails.

svn path=/trunk/mono/; revision=17697
2003-08-28 13:14:19 +00:00
Lluis Sanchez 2eac7d8c3e * MonoMethodMessage.cs: Moved CallType into namespace declaration.
svn path=/trunk/mcs/; revision=17695
2003-08-28 12:42:53 +00:00
Lluis Sanchez d4be452c21 * System.Web.Services.dll.sources: Added System.Web.Services.Protocols.SoapDocumentationHandler
svn path=/trunk/mcs/; revision=17694
2003-08-28 12:40:41 +00:00
Lluis Sanchez 2a90eb61b0 * MessageBinding.cs: Added default value attribute for Name property.
* OperationMessage.cs: Added default value attribute for Name property.
	* ServiceDescription.cs: Changed order of some properties, so they are
	  serialized in the right order.
	  Added GetNamespaceList(), which returns the namespaces to add when serializing
	  the document.
	  Implemented classes ServiceDescriptionSerializer and ServiceDescriptionWriter,
	  that extends the XmlSerializer by adding suport for XmlFormatExtensions.
	* ServiceDescriptionReflector.cs: Basic implementation (no support for
	  extensions yet).
	* SoapBinding.cs: Fixed namespace name.
	* SoapBodyBinding.cs: Added null check in PartsString property.
	* SoapOperationBinding.cs: Fixed namespace name.

svn path=/trunk/mcs/; revision=17693
2003-08-28 12:34:56 +00:00
Lluis Sanchez b0ebcda482 * HttpSoapWebServiceHandler.cs:
* Methods.cs: Added SoapBindingStyle, SoapBindingUse, InputMembersMapping
	  and OutputMembersMapping properties in MethodStubInfo.
	  Use default value defined in TypeStubInfo for RequestNamespace,
	  ResponseNamespace and other properties.
	  Added class BindingInfo to store information about class bindings.
	  In TypeStubInfo added SoapBindingStyle, DefaultBinding, Methods and
	  Bindings properties.
	* SoapRpcMethodAttribute.cs: Use WebServiceAttribute.DefaultNamespace constant
	  instead of hardcoded namespace name.
	* WebServiceHandlerFactory.cs: Create new SoapDocumentationHandler for
	  documentation requests.
	* SoapDocumentationHandler.cs: new handler that generates WS documentation.

svn path=/trunk/mcs/; revision=17692
2003-08-28 12:25:14 +00:00
Lluis Sanchez d19e51679d * XmlReflectionImporter.cs: Fill RelatedMaps property of the generated map.
* XmlSchemas.cs: Find method: make sure the returned object belongs to
	  the requested type.
	* XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
	  Add null checks for eventSource.
	* XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
	* XmlSerializationWriter.cs: In Initialize method, initialize the provided
	  namespece declarations. Virtual method WriteObject not needed any more.
	  In WriteStartElement, write the provided namespaces.
	* XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
	  Added GetTypeMap method, that returns the map for a given type. Added some
	  virtual methods, so writer behavior can be extended at several places by
	  derived classes.
	* XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
	  methods CreateReader and CreateWriter are not called unless no type or
	  type mapping was provided in the constructor.

svn path=/trunk/mcs/; revision=17690
2003-08-28 12:13:06 +00:00
Lluis Sanchez a3831a832f * BuiltInDatatypes.cs, XmlSchemaDatatype.cs: Added double type.
svn path=/trunk/mcs/; revision=17689
2003-08-28 11:58:13 +00:00
Lluis Sanchez cdb2f1f08b * XmlFormatExtensionPointAttribute.cs: Fixed constructor. Member name
was not set.

svn path=/trunk/mcs/; revision=17688
2003-08-28 11:55:53 +00:00
Zoltan Varga b9703bdf52 2003-08-28 Zoltan Varga <[email protected]>
* cpu-pentium.md: Fix the length of call opcodes so they include the
	ESP restoring instruction. Fixes #47968.

svn path=/trunk/mono/; revision=17687
2003-08-28 11:25:08 +00:00
Martin Baulig 1aa291a460 Also works with local variables :-)
svn path=/trunk/mcs/; revision=17684
2003-08-28 02:28:03 +00:00
Martin Baulig bd41f4c929 2003-08-28 Martin Baulig <[email protected]>
* sample-stack.il: Compile this with ilasm: "ilasm /dll
	sample-stack.il".

	* sample-hello.cs: Compile this with gmcs: "gmcs
	/r:sample-stack.dll sample-hello.cs".

svn path=/trunk/mcs/; revision=17683
2003-08-28 02:11:46 +00:00
Martin Baulig 6c14f6f7e2 2003-08-28 Martin Baulig <[email protected]>
* mini-x86.c (mono_arch_call_opcode): Added support for
	MONO_TYPE_GENERICINST.

	* mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.

svn path=/trunk/mono/; revision=17682
2003-08-28 02:09:40 +00:00
Martin Baulig 20ef8c1b5b 2003-08-28 Martin Baulig <[email protected]>
* generic.cs (ConstructedType.ResolveAsTypeStep): Actually bind
	the parameters to the generic type.

svn path=/trunk/mcs/; revision=17681
2003-08-28 02:02:45 +00:00
Martin Baulig ee23ff7550 2003-08-28 Martin Baulig <[email protected]>
* cs-tokenizer.cs (parse_less_than): Also allow all builtin types.

svn path=/trunk/mcs/; revision=17676
2003-08-27 23:52:00 +00:00
Martin Baulig f3b9533cb0 2003-08-28 Martin Baulig <[email protected]>
* cs-parser.jay (opt_type_argument_list): Use
	`OP_GENERICS_LT type_arguments OP_GENERICS_GT'.
	(primary_expression): Replace `qualified_identifier' with `type_name'.
	(type_parameter_list): Use `OP_GENERICS_LT type_parameters OP_GENERICS_GT'.

	* cs-tokenizer.cs (is_punct): When reading a `<', invoke a custom
	parser to check whether it is syntactically a type parameter list;
	return OP_GENERICS_LT/OP_GENERICS_GT instead of OP_LT/OP_GT in
	this case.

svn path=/trunk/mcs/; revision=17675
2003-08-27 23:11:18 +00:00
Martin Baulig 711870de87 2003-08-28 Martin Baulig <[email protected]>
* gen-3.cs: New generics test.

svn path=/trunk/mcs/; revision=17674
2003-08-27 22:57:19 +00:00
Zoltan Varga 96f001c002 2003-08-27 Zoltan Varga <[email protected]>
* Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
	a JIT. Patch by Bernie Solomon ([email protected]).

svn path=/trunk/mono/; revision=17670
2003-08-27 19:49:08 +00:00
Zoltan Varga 1eb0cf16be 2003-08-27 Zoltan Varga <[email protected]>
* interp.c (main): Fix the order of initialization calls so it maches
	the order in the JIT.Patch by Bernie Solomon ([email protected]).
	Also remove the unused ms mutex.

svn path=/trunk/mono/; revision=17669
2003-08-27 19:45:08 +00:00
Gonzalo Paniagua Javier 552152634d 2003-08-27 Gonzalo Paniagua Javier <[email protected]>
* Array.cs: added the new overloaded CreateInstance, GetValue, SetValue
	taking 'longs'. All tests pass.

svn path=/trunk/mcs/; revision=17667
2003-08-27 16:11:33 +00:00
Zoltan Varga 2f770fc4ba 2003-08-27 Zoltan Varga <[email protected]>
* Makefile.am: Use $(MAKE) instead of make. Patch by Bernie Solomon
	([email protected]).

svn path=/trunk/mono/; revision=17666
2003-08-27 15:22:36 +00:00
Zoltan Varga 8b508eeed8 2003-08-27 Zoltan Varga <[email protected]>
* NOTES: New file.

svn path=/trunk/mono/; revision=17665
2003-08-27 14:34:03 +00:00
Zoltan Varga 3046397311 2003-08-27 Zoltan Varga <[email protected]>
* object.c (mono_class_proxy_vtable): Make it thread safe.

	* pedump.c: Fix warning.

svn path=/trunk/mono/; revision=17664
2003-08-27 14:16:12 +00:00
Zoltan Varga b6d96325e3 2003-08-27 Zoltan Varga <[email protected]>
* mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
	metadata_section.

svn path=/trunk/mono/; revision=17663
2003-08-27 14:06:58 +00:00
Zoltan Varga 173bbbccee 2003-08-27 Zoltan Varga <[email protected]>
* interp.c: Get rid of metadata_section.

svn path=/trunk/mono/; revision=17662
2003-08-27 14:03:04 +00:00
Zoltan Varga 7eb62f833b 2003-08-27 Zoltan Varga <[email protected]>
* object.c appdomain.h: Get rid of metadata_section.
	It is no longer needed and it was causing deadlocks with domain->lock.

	* appdomain.c (add_assemblies_to_domain): Make it thread safe.

svn path=/trunk/mono/; revision=17661
2003-08-27 14:01:50 +00:00
Malte Hildingson a1b3ce257c * mono/utils/strtod.c: added arm define
svn path=/trunk/mono/; revision=17660
2003-08-27 13:55:48 +00:00
Malte Hildingson 4bfe117283 * mono/metadata/marshal.c: compiler compability fix
svn path=/trunk/mono/; revision=17659
2003-08-27 13:47:09 +00:00
Martin Baulig a463d04f9d Ooops ....
svn path=/trunk/mcs/; revision=17657
2003-08-27 08:34:06 +00:00
Gonzalo Paniagua Javier 1f3eefe431 2003-08-27 Gonzalo Paniagua Javier <[email protected]>
* CaseInsensitiveHashCodeProvider.cs: small speed improvement.

svn path=/trunk/mcs/; revision=17656
2003-08-27 08:27:06 +00:00
Gonzalo Paniagua Javier c5d0c4f249 2003-08-27 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: when the request is completed or an
	error happens, execute all the delegates attached to EndRequest, not
	only the last one. This makes xsp/test/authtest work again.

	* System.Web/HttpMethodNotAllowedHandler.cs: fixed description for http
	status code.

	* System.Web.Security/UrlAuthorizationModule.cs: fixed description for
	status code.

	* System.Web.Util/UrlUtils.cs: made Reduce work when a "/" is passed.

svn path=/trunk/mcs/; revision=17655
2003-08-27 08:12:52 +00:00
Martin Baulig 9f870d2159 Merged from MCS Wed Aug 27 09:42:30 CEST 2003.
svn path=/trunk/mcs/; revision=17654
2003-08-27 07:54:32 +00:00
Ben Maurer 8213cba722 2003-08-26 Ben Maurer <[email protected]>
* Exception.cs: Add ClassInterface attr. Implement TargetSite and
	Source. Remove MonoTODO attributes (class is 100% done). Also
	passes all Rotor tests for Exception!

svn path=/trunk/mcs/; revision=17650
2003-08-27 00:28:53 +00:00
Ben Maurer 3286a66fa1 2003-08-26 Ben Maurer <[email protected]>
* Enum.cs: Remove [MonoTODO]'s that had been completed.

svn path=/trunk/mcs/; revision=17649
2003-08-26 23:17:08 +00:00
Martin Baulig f625193d18 2003-08-26 Martin Baulig <[email protected]>
* ecore.cs (SimpleName.SimpleNameResolve): Look for members before
	resolving aliases; fixes #47927.

svn path=/trunk/mcs/; revision=17638
2003-08-26 20:28:22 +00:00
Martin Baulig 6837ddbab4 2003-08-26 Martin Baulig <[email protected]>
* test-215.cs: New test for bug #47927.

svn path=/trunk/mcs/; revision=17636
2003-08-26 20:17:25 +00:00
Gonzalo Paniagua Javier fb235e91a6 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
* HtmlGenericControl.cs: ConstructorNeedsTag defaults to false so we
	need to pass true here. Fixes bug #47918.

svn path=/trunk/mcs/; revision=17635
2003-08-26 19:57:28 +00:00
Martin Baulig 8afd58d894 2003-08-26 Martin Baulig <[email protected]>
* statement.cs (Using.DoResolve): This is internally emitting a
	try/finally clause, so we need to set ec.NeedExplicitReturn if we
	do not always return.  Fixes #47681.

svn path=/trunk/mcs/; revision=17634
2003-08-26 19:48:51 +00:00
Martin Baulig bdb398fa07 2003-08-26 Martin Baulig <[email protected]>
* verify-7.cs: New test buf bug #47681.

svn path=/trunk/mcs/; revision=17633
2003-08-26 19:45:51 +00:00
Martin Baulig e7ffa1a2c5 2003-08-26 Martin Baulig <[email protected]>
* pedump.c (main): Don't call mono_image_close() if `verify_pe'.

svn path=/trunk/mono/; revision=17632
2003-08-26 19:43:36 +00:00
Martin Baulig 068a8b6e6c 2003-08-26 Martin Baulig <[email protected]>
* mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
	when reporting an error, set this to the actual error location.
	(mono_method_to_ir): Report the correct error location if
	get_basic_blocks() returned an error.

svn path=/trunk/mono/; revision=17630
2003-08-26 19:29:59 +00:00
Martin Baulig f9946f2877 2003-08-26 Martin Baulig <[email protected]>
* pedump.c (main): Call mono_metadata_init(),
	mono_raw_buffer_init(), mono_images_init(), mono_assemblies_init()
	and mono_loader_init().

svn path=/trunk/mono/; revision=17629
2003-08-26 19:24:45 +00:00
Martin Baulig a95dbdef41 2003-08-26 Martin Baulig <[email protected]>
* test-214.cs: New test for bug #47853.

svn path=/trunk/mcs/; revision=17628
2003-08-26 18:59:49 +00:00
Martin Baulig 204cd1a2ee 2003-08-26 Martin Baulig <[email protected]>
* decl.cs (MemberCore): Moved WarningNotHiding(),
	Error_CannotChangeAccessModifiers() and CheckMethodAgainstBase()
	into MemberBase.
	(AdditionResult): Make this nested in DeclSpace.
	(DeclSpace.ctor): The .ctor now takes an additional NamespaceEntry
	argument; call NamespaceEntry.Define() unless we're nested in a
	class or struct.

	* namespace.cs (Namespace.DefineName): New public function.  This
	is called from DeclSpace's .ctor to add
	(Namespace.Lookup): Include DeclSpaces in the lookup.

	* class.cs (Operator): Derive from MemberBase, not MemberCore.

	* const.cs (Const): Derive from MemberBase, not MemberCore.

svn path=/trunk/mcs/; revision=17627
2003-08-26 18:50:23 +00:00
Alexandre Pigolkine 81a4cbd07e painting code and click logic updated
svn path=/trunk/mcs/; revision=17626
2003-08-26 15:44:54 +00:00
Miguel de Icaza 7d2d1a7d27 Flush
svn path=/trunk/mono/; revision=17625
2003-08-26 14:30:11 +00:00
Zoltan Varga 61c39af745 2003-08-26 Zoltan Varga <[email protected]>
* mono-hash.h mono-hash.c (mono_g_hash_table_remap): New function used
	to remap hashtable values during a copying collection. Not used at the
	moment.
	* mono-hash.c (g_hash_node_new): Restructured to avoid the global lock
	in the common case.
	* mono-hash.c (mono_g_hash_table_new_full): Enable the optimization of
	the key function even if the client supplied g_direct_equal instead of
	NULL.

svn path=/trunk/mono/; revision=17624
2003-08-26 13:38:34 +00:00
Gonzalo Paniagua Javier 9d7bca1564 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
	exception. Thanks to Mark Easton <[email protected]>.

svn path=/trunk/mcs/; revision=17622
2003-08-26 12:47:32 +00:00
Gonzalo Paniagua Javier 95aeaaf22d 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI.WebControls/CheckBox.cs: in LoadPostData, only return
	true when the new data is different from the one we had. Fixed
	conditions to save Checked state. Thanks to [email protected]
	(Yaron Shkop).

	* System.Web.UI/Page.cs: check if controls that require postback have
	been changed by an event and register them to be notified of data
	changed event.

	Fixes bug #47869.

svn path=/trunk/mcs/; revision=17621
2003-08-26 12:25:22 +00:00
Zoltan Varga 39ca97cbdc 2003-08-26 Zoltan Varga <[email protected]>
* loader.h: Add missing include to fix build.

svn path=/trunk/mono/; revision=17619
2003-08-26 10:04:03 +00:00
Zoltan Varga ff70dded05 2003-08-26 Zoltan Varga <[email protected]>
* image.h: mono_image_load_references is no more.

svn path=/trunk/mono/; revision=17618
2003-08-26 10:02:06 +00:00
Zoltan Varga 767cf93507 2003-08-26 Zoltan Varga <[email protected]>
* assembly.c: Reworked assembly loading to make it really thread safe.
	After these changes, the assembly returned by mono_assembly_open is
	fully initialized, i.e. all its references assemblies are loaded.

	* assembly.c (mono_image_load_references): Renamed to
	mono_assembly_load_references, and made private, since clients no
	longer need to call it.

	* class.c: Removed calls to mono_assembly_load_references, since it was
	a source of deadlocks.

	* loader.h loader.c class.h class.c: Protect data structures using a
	new lock, the loader lock.

	* class.c (mono_class_setup_vtable): Create temporary hash tables and
	GPtrArrays only when needed.

	* class.c (mono_class_layout_fields): Ignore the dummy field inserted
	into empty structures by mcs. Fixes pinvoke7.cs.

	* domain.c (mono_init): Call a new initialization function.

svn path=/trunk/mono/; revision=17617
2003-08-26 10:00:38 +00:00
Zoltan Varga 60f618c734 2003-08-26 Zoltan Varga <[email protected]>
* appdomain.c (mono_runtime_init): Call the new initializer function
	of the marshal module.

	* marshal.c (mono_marshal_load_type_info): Ignore the dummy field
	inserted into empty structures by mono. Fixes pinvoke7.cs.

	* marshal.h marshal.c: Added locks around the wrapper caches to make
	this module thread safe.

svn path=/trunk/mono/; revision=17616
2003-08-26 09:45:08 +00:00
Zoltan Varga 5d6b56f806 2003-08-26 Zoltan Varga <[email protected]>
* icall.c (ves_icall_InternalInvoke): Method wrappers doesn't require a
	this argument. Fixes pinvoke1.exe.

svn path=/trunk/mono/; revision=17615
2003-08-26 09:40:40 +00:00
Gonzalo Paniagua Javier 8f40e6c6a5 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: Font.Strikeout renders as 'line-through'. Fixes bug #47871.

svn path=/trunk/mcs/; revision=17608
2003-08-26 02:37:08 +00:00
Gonzalo Paniagua Javier cd3e8ca585 2003-08-26 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: patch by [email protected] (Yaron Shkop) that fixes
	bug #47866.

svn path=/trunk/mcs/; revision=17607
2003-08-26 02:07:48 +00:00
Ben Maurer ebd9cea070 2003-08-25 Ben Maurer <[email protected]>
* DTMXPathNavigator.cs: Allocate valueBuilder on first use.

svn path=/trunk/mcs/; revision=17600
2003-08-25 20:58:46 +00:00
Ben Maurer 2172fba668 2003-08-25 Ben Maurer <[email protected]>
* XPathNavigator.cs: "Smart" behavior in Matches. Nice 8x speed
	improvement in the method (5ms/call -> .7 ms / call) measured by
	monodoc's rendering of N:System.
	* Expression.cs: Utility methods to support above.

svn path=/trunk/mcs/; revision=17596
2003-08-25 18:28:19 +00:00
Gonzalo Paniagua Javier f67fde4ac6 2003-08-25 Gonzalo Paniagua Javier <[email protected]>
* WebControl.cs: removed dangling ^M and unneeded fields. Keep track
	of Enable in ViewState. Fixes bug #47865.

svn path=/trunk/mcs/; revision=17591
2003-08-25 16:42:15 +00:00
Miguel de Icaza 276df64049 Update profiles to use -d: and make generics build use NET_1_1
svn path=/trunk/mcs/; revision=17590
2003-08-25 15:48:24 +00:00
Martin Baulig b26a4afa53 2003-08-25 Martin Baulig <[email protected]>
* convert.cs (Convert.ExplicitReferenceConversion): When
	converting from an interface type to a class, unbox if the target
	type is a struct type.  Fixes #47822.

svn path=/trunk/mcs/; revision=17588
2003-08-25 15:09:30 +00:00
Martin Baulig 83390e2a3a 2003-08-25 Martin Baulig <[email protected]>
* test-213.cs: New test for bug #47822.

svn path=/trunk/mcs/; revision=17585
2003-08-25 15:02:13 +00:00
Rafael Teixeira 5399282d6d Copyright attribution was missing for a pair of files
svn path=/trunk/mcs/; revision=17583
2003-08-25 14:15:30 +00:00
Paolo Molaro bb5eea3d6d Small portability fix.
svn path=/trunk/mono/; revision=17582
2003-08-25 13:38:33 +00:00
Ben Maurer 6421ff5982 .cvsignore update
svn path=/trunk/mono/; revision=17581
2003-08-25 13:38:19 +00:00
Lluis Sanchez 6935b6f7a1 * object.h: Added call_type field to MonoMethodMessage and the corresponding
enumeration of values. Removed fields to store remote call output values in
	MonoAsyncResult. Not needed any more.
	* object.c: Initialize call_type and async_result fields in mono_message_init.
	* marshal.c: mono_delegate_begin_invoke(): for proxies, set call_type before
	dispatching the message.
	mono_delegate_end_invoke (): delegate to the proxy the work of waiting for the
	async call to finish. To do it use a message with EndInvoke call type.

svn path=/trunk/mono/; revision=17580
2003-08-25 12:09:25 +00:00
Lluis Sanchez abea4b4055 * RemotingProxy.cs: Use CallType property to check the type of
the message.

svn path=/trunk/mcs/; revision=17579
2003-08-25 11:32:52 +00:00
Lluis Sanchez ae06bf8b2e * AsyncResult.cs: Added method EndInvoke(). Fixed SyncProcessMessage().
* CallContext.cs: Clean current logical context before setting the new
	  values form LogicalCallContext (SetCurrentCallContext).
	* MonoMethodMessage.cs: Added new CallType field and enum.
	* StackBuilderSink.cs: Improved error message.

svn path=/trunk/mcs/; revision=17578
2003-08-25 11:31:16 +00:00
Lluis Sanchez a746d73296 * ClientChannelSinkStack.cs: Implemented DispatchException.
svn path=/trunk/mcs/; revision=17577
2003-08-25 11:23:33 +00:00
Lluis Sanchez 49c1878d48 * RemotingServices.cs: Some small fixes.
svn path=/trunk/mcs/; revision=17576
2003-08-25 11:21:55 +00:00
Lluis Sanchez 017e788ad7 * SoapTypeMapper.cs: Added mappings for more primitive types.
* SoapWriter.cs: Use XmlSchema.Namespace and XmlSchema.InstanceNamespace
	  instead of string constants.

svn path=/trunk/mcs/; revision=17575
2003-08-25 11:13:56 +00:00
Zoltan Varga 00a8dd7984 2003-08-25 Zoltan Varga <[email protected]>
* mono.pc.in: Added gthread-2.0.

svn path=/trunk/mono/; revision=17574
2003-08-25 10:28:50 +00:00
Zoltan Varga 496efd51a9 2003-08-25 Zoltan Varga <[email protected]>
* mini.c (mono_type_blittable): OBJECT is not blittable.
	(mono_method_blittable): Methods which have marshalling descriptors
	are not blittable either. Fixes #47842.

svn path=/trunk/mono/; revision=17573
2003-08-25 10:07:32 +00:00
Jackson Harper dabbee5779 * test-31.il: Added tests for static properties. Also made the code
for methods verifiable IL.

svn path=/trunk/mcs/; revision=17568
2003-08-25 00:49:08 +00:00
Vladimir Vukicevic 8a58dece91 * RealProxy.cs, RemotingProxy.cs: move the LogicalCallContext
setup/restoration into RealProxy's PrivateInvoke, so that custom
RealProxy's get a LogicalCallContext.

svn path=/trunk/mcs/; revision=17565
2003-08-24 23:37:12 +00:00
ct 3056359936 completed the set of floating point ops
svn path=/trunk/mono/; revision=17564
2003-08-24 22:49:45 +00:00
Alexandre Pigolkine d86f05e781 modified to be compatible with specification
svn path=/trunk/mcs/; revision=17563
2003-08-24 19:28:17 +00:00
Gonzalo Paniagua Javier 68466f3eb1 2003-08-24 Gonzalo Paniagua Javier <[email protected]>
* typemanager.cs: fixed the values of MethodFlags. Closes #47855 and
	#47854.

svn path=/trunk/mcs/; revision=17562
2003-08-24 19:23:25 +00:00
Atsushi Eno 4b0fc2dec7 2003-08-24 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : Implemented SchemaType. Added support for
	  ValidationType.Schema. Added support for XmlResolver. Fixed
	  ReadTypedValue() not to consume EndElement.

svn path=/trunk/mcs/; revision=17561
2003-08-24 19:10:41 +00:00
Atsushi Eno 78aa4de58c 2003-08-24 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XsdParticleValidationState.cs
	  and XsdValidatingReader.cs.
	* System.Xml_test.dll.sources : added XsdParticleValidationTests.cs
	  and XsdValidatingReaderTests.cs.

svn path=/trunk/mcs/; revision=17560
2003-08-24 19:10:01 +00:00
Atsushi Eno 96971683b0 2003-08-24 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs,
	  XsdParticleValidationState.cs : Initial checkin.

svn path=/trunk/mcs/; revision=17559
2003-08-24 19:06:49 +00:00
Atsushi Eno 08158153ce 2003-08-24 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : Added DefaultAttributeRemoval() and
	  EmptyStringHasTextNode().
	* XmlElementTests.cs : Added RemoveDoesNotRemoveDefaultAttributes().
	* XmlReaderCommonTests.cs : Added overroaded AssertNodeValues() and
	  ReadAttributeValue().
	* XmlTextReaderTests.cs :
	  Added NotAllowedCharRef() and ExpandParameterEntity().
	  Also added but ignored tests: UndeclaredEntityInIntSubsetOnlyXml()
	  and UndeclaredEntityInStandaloneXml().
	* XmlValidatingReaderTests.cs : TestAttributeDefaultContribution()
	  refactory.
	* Added XsdParticleValidationTests.cs and XsdValidatingReaderTests.cs.

svn path=/trunk/mcs/; revision=17558
2003-08-24 19:04:01 +00:00
Atsushi Eno 1ecb0afa6b 2003-08-24 Atsushi Enomoto <[email protected]>
* 1.xsd, 2.xsd, 3.xsd, 4.xsd : Initial checkin.

svn path=/trunk/mcs/; revision=17557
2003-08-24 19:02:20 +00:00
Gonzalo Paniagua Javier 62ab7bf0e8 added rss -> text/xml mimetype
svn path=/trunk/mcs/; revision=17556
2003-08-24 17:21:49 +00:00
Gonzalo Paniagua Javier cd23915e60 fixed the build on win
svn path=/trunk/mcs/; revision=17555
2003-08-24 17:19:32 +00:00
Duncan Mak 4d20f7fa6b * System.Drawing.dll.sources: Add Cairo implementation.
* cairo-api.cs: New file, replace Cairo.cs and cairo.cs. That
naming thing is just too confusing.

svn path=/trunk/mcs/; revision=17554
2003-08-24 17:15:59 +00:00
Duncan Mak 730c4cf70c Make all references to the enums (Cairo.Foo) be just
Foo. This should (hopefully) fix the build on Windows.

svn path=/trunk/mcs/; revision=17553
2003-08-24 17:07:23 +00:00
Duncan Mak 2eab01e1c6 Fix the link to the ADO.Net and ASP.Net page; thanks to John Thomas
<[email protected]> for noticing the bug.

svn path=/trunk/mono/; revision=17552
2003-08-24 16:49:51 +00:00
Sebastien Pouliot 79dd1d188c 2003-08-24 Sebastien Pouliot <[email protected]>
* SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
	(e.g. RC4) which don't uses IV. This needs more tests for small IV...

svn path=/trunk/mcs/; revision=17551
2003-08-24 16:48:45 +00:00
Gonzalo Paniagua Javier ebf9fc74a4 2003-08-24 Gonzalo Paniagua Javier <[email protected]>
* TcpListenerTest.cs: added more tests.

svn path=/trunk/mcs/; revision=17549
2003-08-24 16:13:43 +00:00
Gonzalo Paniagua Javier cca8eba0de 2003-08-24 Gonzalo Paniagua Javier <[email protected]>
* TcpListener.cs: various fixes to make the new tests pass. Closes
	bug #47848.

svn path=/trunk/mcs/; revision=17548
2003-08-24 16:04:24 +00:00
Duncan Mak beccc0690c 2003-08-24 Duncan Mak <[email protected]>
* ListControl.cs: Indentation, coding style fixes.

2003-08-24  Duncan Mak  <[email protected]>

	Patches from Brian Takita <[email protected]>

	* GroupBox.cs (OnPaintBackground): Commented out.
	* ListControl.cs (DataSource): Fixed visibility of property and
	field.
	* MonthCalander.cs: Should match Specs better.

svn path=/trunk/mcs/; revision=17547
2003-08-24 08:09:59 +00:00
Duncan Mak 29eb433c52 2003-08-24 Duncan Mak <[email protected]>
* System.Drawing.dll.sources: Add Cairo implementation.

2003-08-24  Duncan Mak  <[email protected]>

	Initial checkin of System.Drawing.XrImpl ported to use Cairo.

	* Graphics.cs (DrawCurve):
	(DrawImageUnscaled):
	(IsVisible):Implement the overloads in terms of the other overloads.

	(FillClosedCurve): Implement the simple APIs, the default tension
	is 0.5, the default FillMode is FillMode.Alternate.

	* cairo.cs: A copy of the CairoAPI class from the Mono.Cairo
	assembly, with some method parameter/return type changed to better
	fit the usage within System.Drawing.

	* gdk-helpers.cs: Emulate some of Gdk.Pixbuf's API here,
	basically the same as XrImpl's GDKfunctions.cs, but the names of
	the functions are nicer, with the help of the DllImportAttribute's
	EntryPoint field.

svn path=/trunk/mcs/; revision=17546
2003-08-24 07:59:54 +00:00
Duncan Mak d0537e6afb (FillEllipse): Implemented.
svn path=/trunk/mcs/; revision=17545
2003-08-24 07:28:28 +00:00
Ben Maurer c9db646432 Moving build to use the 1.1 target, per Miguel's request.
svn path=/trunk/mcs/; revision=17544
2003-08-24 04:37:00 +00:00
Alexandre Pigolkine 7777169131 Debug output removed
svn path=/trunk/mcs/; revision=17540
2003-08-23 23:57:21 +00:00
Alexandre Pigolkine df44a50529 DrawRadioButton and DrawCheckBox improved
svn path=/trunk/mcs/; revision=17539
2003-08-23 23:43:57 +00:00
Alexandre Pigolkine 9876bc3f01 Clear, DrawImage functions
svn path=/trunk/mcs/; revision=17538
2003-08-23 23:40:43 +00:00
Alexandre Pigolkine 7b6b61bcc5 delegate Clear to implementation
svn path=/trunk/mcs/; revision=17537
2003-08-23 23:39:09 +00:00
Alexandre Pigolkine 23675d7fd8 set ImageFormat and PixelFormat in contstuctors, GetDeviceCaps function and parameters
svn path=/trunk/mcs/; revision=17534
2003-08-23 09:39:37 +00:00
Gonzalo Paniagua Javier e211cea081 2003-08-23 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: fix the build on windows.

svn path=/trunk/mono/; revision=17533
2003-08-23 08:26:48 +00:00
Ben Maurer ff3f52b845 forgot to update this
svn path=/trunk/mcs/; revision=17532
2003-08-23 02:12:01 +00:00
Alexandre Pigolkine 1748a9d639 new keyword added, SetBoundsCore for ComboBox, Enabled property in Control.cs
svn path=/trunk/mcs/; revision=17531
2003-08-22 23:39:13 +00:00
Duncan Mak 2321b0689a 64-bit related fixes from Laurent Morichetti
<[email protected]>. Patch approval from Miguel.

svn path=/trunk/mono/; revision=17530
2003-08-22 21:59:10 +00:00
Ben Maurer 94eeaaaa01 Remove HighWaterStack for the time being.
svn path=/trunk/mcs/; revision=17529
2003-08-22 19:45:03 +00:00
Gonzalo Paniagua Javier 45e1afbb43 2003-08-22 Gonzalo Paniagua Javier <[email protected]>
* HttpRequest.cs: quick way of checking that the path is within the
	root for the application. Thanks to Johannes for reporting.

	* HttpRuntime.cs: use the status code from teh exception when it'ss a
	HttpException.

	* StaticFileHandler.cs: forbidden is 403.

svn path=/trunk/mcs/; revision=17525
2003-08-22 17:00:27 +00:00
Martin Baulig 7ea209efa1 2003-08-22 Martin Baulig <[email protected]>
* class.cs (TypeManager.DefineType): When defining a nested type,
	call DefineType() on our parent; fixes #47801.

svn path=/trunk/mcs/; revision=17524
2003-08-22 16:51:00 +00:00
Martin Baulig 3f75dedcfa 2003-08-22 Martin Baulig <[email protected]>
* class.cs (MethodData.Define): While checking if a method is an
	interface implementation, improve the test a bit more to fix #47654.

svn path=/trunk/mcs/; revision=17523
2003-08-22 16:29:21 +00:00
Alexandre Pigolkine f20540561b compile time warning removed
svn path=/trunk/mcs/; revision=17522
2003-08-22 16:28:20 +00:00
Zoltan Varga 23f971772a 2003-08-22 Zoltan Varga <[email protected]>
* main.c (dis_event_list): Same for event methods.

svn path=/trunk/mono/; revision=17521
2003-08-22 16:27:53 +00:00
Alexandre Pigolkine 3cc98a1b42 modified to be compatible with specification
svn path=/trunk/mcs/; revision=17520
2003-08-22 16:26:07 +00:00
Zoltan Varga 5685e0ca31 2003-08-22 Zoltan Varga <[email protected]>
* get.c (dis_stringify_method_signature): New argument specifying
	whenever to return a fully qualified method name.
	* dump.c main.c: Updated to work with the new function.

	* main.c (dis_property_methods): Print fully qualified method names
	for property methods. Fixes #46221.

svn path=/trunk/mono/; revision=17519
2003-08-22 16:24:06 +00:00
Zoltan Varga d44f96709e 2003-08-22 Zoltan Varga <[email protected]>
* driver.c mini.c: Use an environment variable instead of a global
	variable. Also fix the build.

svn path=/trunk/mono/; revision=17518
2003-08-22 15:21:29 +00:00
Martin Baulig 95e4a22f22 2003-08-22 Martin Baulig <[email protected]>
* expression.cs (Probe.DoResolve): Check whether `expr' resolved
	correctly; fixes #47722.

svn path=/trunk/mcs/; revision=17517
2003-08-22 14:57:12 +00:00
Lluis Sanchez ba8126e278 object.cs: Fixed bug #47785.
svn path=/trunk/mono/; revision=17516
2003-08-22 14:14:29 +00:00
Lluis Sanchez 92fe3d5d5d * HttpClientChannel.cs: Changed text for user-agent header (removed references
to MS.NET).
	  Removed try/catch from AsyncProcessRequest. If there is an exception it must
	  flow to the caller.
	  in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
	  throws an exception if the result code is 400, 500. Is is not a communication
	  error, but an application or server error. The content of the body must be
	  deserialized like in normal responses.
	  In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
	  efficient way of writing the content.
	  In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
	  new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
	* HttpHelper.cs: Removed some debugging code that is not needed.
	* HttpServer.cs: Improved formatting of some code.
	  In CheckRequest method, send a 100-continue response if the request has
	  the header: expect:100-continue.
	  Method SendResponse: the remoting formatter may include the result code and
	  reason phrase to use in the transport headers. Used them if provided.
	* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
	  a request.

svn path=/trunk/mcs/; revision=17515
2003-08-22 14:09:48 +00:00
Zoltan Varga 4611e751bd 2003-08-22 Zoltan Varga <[email protected]>
* mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
	Fixes #47682. Thanks to Laurent Morichetti ([email protected]) for
	reporting this.

svn path=/trunk/mono/; revision=17514
2003-08-22 13:57:44 +00:00
Zoltan Varga 1be7485944 2003-08-22 Zoltan Varga <[email protected]>
* interp.c (main): Call g_thread_init () to make glib thread-safe.
	Fixes #47682. Thanks to Laurent Morichetti ([email protected]) for
	reporting this.

svn path=/trunk/mono/; revision=17513
2003-08-22 13:56:26 +00:00
Zoltan Varga c92a7d8064 2003-08-22 Zoltan Varga <[email protected]>
* configure.in: Added gthread-2.0 to GLIB_CFLAGS and GLIB_LIBS, so we
	can call g_thread_init ().

svn path=/trunk/mono/; revision=17512
2003-08-22 13:54:36 +00:00
Lluis Sanchez ba85fdcf10 * SoapClientFormatterSink.cs: Fixed a some bugs to make async calls work.
* SoapMessageFormatter.cs: Fixed some problems with out and ref parameters.
	* SoapServerFormatterSink.cs: Improved catching of exceptions.

svn path=/trunk/mcs/; revision=17511
2003-08-22 12:51:34 +00:00
Zoltan Varga 2dc69b0e2a 2003-08-22 Zoltan Varga <[email protected]>
* driver.c mini.c: Added --with-valgrind option to turn off some
	code which prevents mono from running under valgrind.

	* mini.c (mono_emit_call_args): Fixed warning.

	* mini.c (mono_emulate_opcode): Fixed warning.

svn path=/trunk/mono/; revision=17509
2003-08-22 12:42:17 +00:00
Lluis Sanchez 263a3a9f09 * System.Runtime.Remoting_test.dll.sources: Added DelegateCalls.cs test file.
svn path=/trunk/mcs/; revision=17508
2003-08-22 12:39:22 +00:00
Lluis Sanchez de78cd1ed7 * BaseCalls.cs: Create 3 test remote objects, one for each kind of access,
to avoid reuse of client proxies.
	* CallSeq.cs: Now, "domain ID" is set manually.
	* ContextsTest.cs: Added initialization of common domain id. Other small fixes.
	* ReflectionCalls.cs: Get the method for the invoke for the correct type.
	  GetType() for a proxy to interface always return MarshalByRefObject.
	* TcpCalls.cs, HttpCalls.cs: Added delegate tests.
	* DelegateCalls.cs: New test suite for calls using delegates.

svn path=/trunk/mcs/; revision=17507
2003-08-22 12:39:02 +00:00
Alexandre Pigolkine 3e3cdbe7d3 modifications for ComboBox sample
svn path=/trunk/mcs/; revision=17502
2003-08-22 09:39:13 +00:00
Jackson Harper dba42c0edb * string-icalls.c (StringReplace): If their are no occurances of
the old string found return a reference to the supplied
	string. This saves some memory and matches MS behavoir.

svn path=/trunk/mono/; revision=17500
2003-08-22 06:31:39 +00:00
Duncan Mak feb35122c6 Brian Takita posted a revision to the winforms list.
svn path=/trunk/mcs/; revision=17499
2003-08-22 04:44:40 +00:00
Duncan Mak 1819079b83 Late night patch applying actions ...
The following two fixes bug #40315.

* Tds.cs (ProcessEndToken): RecordsAffected was not filled
correctly. I've found out that the record count was submitted for
TdsPacketSubType.Done. So I changed the behaviour to include this
(without deeper knowledge of the TDS protocol). Patch from J�rg
Rosenkranz <[email protected]>.

* SqlCommand.cs (ExecuteNonQuery): Return
Connection.Tds.RecordsAffected if it is successful.  Patch from
J�rg Rosenkranz <[email protected]>.


* ListControl.cs (DataSource): Implementation by Brian Takita
<[email protected]>.

svn path=/trunk/mcs/; revision=17498
2003-08-22 04:37:11 +00:00
Martin Baulig 5e14fba178 2003-08-22 Martin Baulig <[email protected]>
* expression.cs (UnaryMutator.ResolveVariable): If the target is a
	LocalVariableReference, ensure it's not read-only.  Fixes #47536.

	* statement.cs (Fixed.DoResolve): Make all variables read-only.

svn path=/trunk/mcs/; revision=17494
2003-08-22 03:04:19 +00:00
Martin Baulig 29a1a2d7a7 2003-08-22 Martin Baulig <[email protected]>
* ecore.cs (FieldExpr.DoResolveLValue): Static read-only fields
	can only be assigned in static constructors.  Fixes #47161.

svn path=/trunk/mcs/; revision=17493
2003-08-22 02:40:35 +00:00
Gonzalo Paniagua Javier f2b00eb9ea 2003-08-22 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: fixed compilation for systems that define AF_INET6
	and don't define SOL_IP/SOL_IPV6.

svn path=/trunk/mono/; revision=17492
2003-08-22 02:34:38 +00:00
Martin Baulig a435cabab6 2003-08-22 Martin Baulig <[email protected]>
Rewrote and improved the flow analysis code.

	* flowbranching.cs (FlowBranching): Make this class abstract.
	(FlowBranching.CreateBranching): New static function to create a
	new flow branching.
	(FlowBranchingBlock, FlowBranchingException): New classes.
	(FlowBranching.UsageVector.Type): New public readonly field.
	(FlowBranching.UsageVector.Breaks): Removed the setter.
	(FlowBranching.UsageVector.Returns): Removed the setter.
	(FlowBranching.UsageVector): Added Break(), Return(),
	NeverReachable() and Throw() methods to modify the reachability.
	(FlowBranching.UsageVector.MergeChildren): Removed, this is now
	done by FlowBranching.Merge().
	(FlowBranching.UsageVector.MergeChild): New method; merges the
	merge result into the current vector.
	(FlowBranching.Merge): New abstract method to merge a branching.

svn path=/trunk/mcs/; revision=17491
2003-08-22 02:17:22 +00:00
Martin Baulig cea72ba75b 2003-08-22 Martin Baulig <[email protected]>
* test-154.cs: Added testcase for bug #46949.

svn path=/trunk/mcs/; revision=17490
2003-08-22 02:14:30 +00:00
Martin Baulig f2b5bb64fb 2003-08-22 Martin Baulig <[email protected]>
* test-154.cs: Added testcase for bug #47095.

svn path=/trunk/mcs/; revision=17489
2003-08-22 02:12:21 +00:00
Martin Baulig 1e28c446f5 Comment out unreachable code.
svn path=/trunk/mcs/; revision=17488
2003-08-22 02:09:32 +00:00
Gonzalo Paniagua Javier 76cb51404d 2003-08-22 Gonzalo Paniagua Javier <[email protected]>
* StringTest.cs: added a couple of tests for Split. See bug #47802.

svn path=/trunk/mcs/; revision=17487
2003-08-22 00:34:14 +00:00
Gonzalo Paniagua Javier bad0bd529a 2003-08-22 Gonzalo Paniagua Javier <[email protected]>
* String.cs: fixed bug #47802.

svn path=/trunk/mcs/; revision=17486
2003-08-22 00:32:29 +00:00
Ben Maurer 85102c9991 2003-08-21 Ben Maurer <[email protected]>
* XslTransformProcessor.cs: evaluate variables at beginning
	when / is current node.

svn path=/trunk/mcs/; revision=17479
2003-08-21 18:52:53 +00:00
Gonzalo Paniagua Javier fc0c0b2c90 Console.WriteLine strikes back
svn path=/trunk/mcs/; revision=17478
2003-08-21 18:44:45 +00:00
Zoltan Varga 970cf75da9 2003-08-21 Zoltan Varga <[email protected]>
* mono/tests/threadpool.cs mono/tests/threadpool1.cs: Make increments
	of static variables atomic. Fixes bug #47683.

svn path=/trunk/mono/; revision=17477
2003-08-21 18:23:43 +00:00
Atsushi Eno accfeee29c 2003-08-21 Atsushi Enomoto <[email protected]>
* XslVariable.cs : use newly introduced XmlNodeWriter.ctor(false) to
	  support for tree fragment, not only for single element.

svn path=/trunk/mcs/; revision=17476
2003-08-21 18:05:46 +00:00
Atsushi Eno 26594de0c8 2003-08-21 Atsushi Enomoto <[email protected]>
* XmlNodeWriter.cs : Extended to support for non-document entity.

svn path=/trunk/mcs/; revision=17475
2003-08-21 18:05:03 +00:00
Paolo Molaro 3a215565f0 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <[email protected]>
* inssel.brg: 64bit fixes from Laurent Morichetti <[email protected]>.
	* linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
	regalloc.c, regalloc.h: specify available registers in arch-specific
	code and support floats in the regallocator (patch by Laurent Morichetti
	<[email protected]>)

svn path=/trunk/mono/; revision=17474
2003-08-21 17:26:35 +00:00
Ben Maurer 496bd38fe9 Get attributes working correctly for text output (Oleg).
svn path=/trunk/mcs/; revision=17473
2003-08-21 17:07:36 +00:00
Ben Maurer e088335a58 2003-08-21 Ben Maurer <[email protected]>
* Compiler.cs, XsltCompiledContext.cs, XslTransformProcessorcs:
	Fix up namespace handeling

svn path=/trunk/mcs/; revision=17472
2003-08-21 16:59:10 +00:00
Gonzalo Paniagua Javier ef086dd0f3 2003-08-21 Gonzalo Paniagua Javier <[email protected]>
* Stack.cs: patch by [email protected] (Joerg Rosenkranz) that fixes
	bug #47789.

svn path=/trunk/mcs/; revision=17471
2003-08-21 16:07:04 +00:00
Zoltan Varga f8b82f8493 2003-08-21 Zoltan Varga <[email protected]>
* x86/tramp.c: Fixes from Bernie Solomon ([email protected]).

svn path=/trunk/mono/; revision=17470
2003-08-21 15:23:31 +00:00
Gonzalo Paniagua Javier 7b266ecb09 Fixed dist target and updated version
svn path=/trunk/mcs/; revision=17469
2003-08-21 15:14:29 +00:00
Paolo Molaro b62a0f7001 Fixed (incorrect) magic number.
svn path=/trunk/mono/; revision=17468
2003-08-21 14:57:28 +00:00
Zoltan Varga 78e609a8a6 2003-08-21 Zoltan Varga <[email protected]>
* object.c (mono_object_isinst): Fix casts to TransparentProxy in
	the interpreter. Patch by Bernie Solomon ([email protected]).

svn path=/trunk/mono/; revision=17467
2003-08-21 14:55:05 +00:00
Ben Maurer 30a0ff2ba0 2003-08-21 Ben Maurer <[email protected]>
* String.cs: Created method FormatHelper that does formatting,
	using a StringBuilder.
	* StringBuilder.cs
	(AppendFormat) Use FormatHelper in System.String to avoid
	allocating an extra StringBuilder.
	(Append string, int, int), (Append char, int): Both were
	allocating extra strings.

svn path=/trunk/mcs/; revision=17466
2003-08-21 14:24:14 +00:00
Zoltan Varga c5a5a649d5 2003-08-21 Zoltan Varga <[email protected]>
* rawbuffer.c rawbuffer.h: Make this module thread safe.

	* domain.c: Make this module thread safe.

	* domain.c (mono_init): Call new initialization function.

svn path=/trunk/mono/; revision=17465
2003-08-21 14:05:05 +00:00
Johannes Roith 9c76690c43 little change for less mistakes on windows builds.
svn path=/trunk/mono/; revision=17464
2003-08-21 13:40:20 +00:00
Gonzalo Paniagua Javier d9518f6038 2003-08-21 Gonzalo Paniagua Javier <[email protected]>
* LosFormatter.cs: handle Unit and FonrUnit as special cases as they
	are not serializable. Fixes bug #47784.

svn path=/trunk/mcs/; revision=17463
2003-08-21 11:32:09 +00:00
Zoltan Varga 5b60ae131b 2003-08-21 Zoltan Varga <[email protected]>
* ArrayTest.cs: Added regression test for #38812.

svn path=/trunk/mcs/; revision=17460
2003-08-21 09:19:59 +00:00
Zoltan Varga 9dc717fdb9 2003-08-21 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Array_SetValueImpl): Check types for
	reference types too. Fixes #38812.

svn path=/trunk/mono/; revision=17459
2003-08-21 09:17:46 +00:00
Zoltan Varga 19deb94f28 2003-08-21 Zoltan Varga <[email protected]>
* image.c (mono_image_init): Fixed warnings.

	* class.c (mono_class_from_typeref): Handle assembly load failure
	correctly.

	* appdomain.c (add_assemblies_to_domain): Handle the case when
	the references of an assembly are not yet loaded.

	* metadata.c image.c assembly.c: Moved initialization of global
	variables to a separate function called at startup since lazy
	initialization of these variables is not thread safe.

	* image.c assembly.c: Made this module thread safe by adding locks in
	the appropriate places.

	* domain.c (mono_init): Call the new initialization functions of the
	three modules.

svn path=/trunk/mono/; revision=17458
2003-08-21 09:04:15 +00:00
Duncan Mak 613e7672ae Added DictionaryBaseTest.cs
svn path=/trunk/mcs/; revision=17455
2003-08-21 01:44:03 +00:00
Gonzalo Paniagua Javier ac82fd28bf 2003-08-21 Gonzalo Paniagua Javier <[email protected]>
* XslTransform.cs: commented out Cleanup () because of bug #47776.

svn path=/trunk/mcs/; revision=17454
2003-08-21 00:57:18 +00:00
Gonzalo Paniagua Javier 483f7eac2b 2003-08-21 Gonzalo Paniagua Javier <[email protected]>
* Multiplexer.cs: fixed infinite recursion bug.

svn path=/trunk/mcs/; revision=17453
2003-08-21 00:43:34 +00:00
Ben Maurer cd97a31f20 Small typo
svn path=/trunk/mcs/; revision=17452
2003-08-21 00:19:05 +00:00
Ben Maurer 48109b5c4d 2003-08-20 Ben Maurer <[email protected]>
* Compiler.cs, XslStylesheet.cs, XsltCompiledContext.cs: Stubs for
	format-number.
	* XslDecimalFormat.cs: Stub for decimal-format.

svn path=/trunk/mcs/; revision=17450
2003-08-20 20:08:05 +00:00
Paolo Molaro 6be17e4975 Initialize tls keys to -1, since 0 is a valid key value.
svn path=/trunk/mono/; revision=17449
2003-08-20 17:22:56 +00:00
Paolo Molaro 5f13006d26 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <[email protected]>
* mini.c: mono_thread_current() can be called only after
	mono_runtime_init(): rearrange code to not call it early on.

svn path=/trunk/mono/; revision=17448
2003-08-20 17:14:03 +00:00
Gonzalo Paniagua Javier f3c573e227 2003-08-20 Gonzalo Paniagua Javier <[email protected]>
* Array.cs: patch by [email protected] that fixes bug #47707.

svn path=/trunk/mcs/; revision=17447
2003-08-20 16:45:08 +00:00
Lluis Sanchez 32c4bccce2 * marshal.c: mono_delegate_begin_invoke(): If the target is a proxy,
make a direct call. It is proxy's work to make the call asynchronous.
	  mono_delegate_end_invoke(): If the targe is a proxy, just collect
	  the return values.
	* object.cs: mono_method_call_message_new(): read AsyncResult and
	  state object from parameters list, if this info is requested.
	* object.h: Added fields to store remote call output values in
	  MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.

svn path=/trunk/mono/; revision=17446
2003-08-20 16:38:30 +00:00
Gonzalo Paniagua Javier baca0bfba1 2003-08-20 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: index the viewstates saved by the control position, not the
	control name. Fixes bug #47697.

svn path=/trunk/mcs/; revision=17445
2003-08-20 16:26:26 +00:00
Lluis Sanchez 309488f3ab * MethodCall.cs: Changed exception text to match MS.NET (more or less).
* AsyncResult.cs: Added new fields to store async calls results.

svn path=/trunk/mcs/; revision=17444
2003-08-20 14:22:17 +00:00
Lluis Sanchez 5f832575a4 * TcpConnectionPool.cs: Check if a connection is alive before reusing
it. Added some properties to support this.

svn path=/trunk/mcs/; revision=17443
2003-08-20 14:17:32 +00:00
Lluis Sanchez 2aecfe4f76 * System.Runtime.Remoting_test.dll.sources: Added new test files.
svn path=/trunk/mcs/; revision=17442
2003-08-20 14:12:00 +00:00
Lluis Sanchez 2ee56ffe36 * AsyncCalls.cs, BaseCalls.cs, HttpCalls.cs, ReflectionCalls.cs, SyncCalls.cs,
TcpCalls.cs: new test suite for remoting. It tests sync calls, async calls
	  and reflection calls using tcp and http channels.
	* CallSeq.cs, ContextHookAttribute.cs: Add methods for getting a context and
	  domain ids that are the same between tests runs.
	* ContextsTest.cs: unregister channel on test shutdown.

svn path=/trunk/mcs/; revision=17441
2003-08-20 14:10:37 +00:00
Paolo Molaro 0dc48f97e1 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <[email protected]>
* mini.c: allocate jump tables in the code mempools.

svn path=/trunk/mono/; revision=17439
2003-08-20 11:24:43 +00:00
Paolo Molaro 4bcddd011f Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <[email protected]>
* mini.c, mini.h: make sure per-thread data allocated by the jit is
	freed.

svn path=/trunk/mono/; revision=17438
2003-08-20 11:15:15 +00:00
Paolo Molaro 00738b20ad Wed Aug 20 12:57:42 CEST 2003 Paolo Molaro <[email protected]>
* object.h: add needed fields to MonoThread.
	* threads.c, threads.h: allow registering a function to cleanup data
	allocated per thread by the JIT.

svn path=/trunk/mono/; revision=17437
2003-08-20 11:09:30 +00:00
Paolo Molaro ec3fa23e77 Wed Aug 20 12:01:36 CEST 2003 Paolo Molaro <[email protected]>
* Thread.cs: put all the fields at the start and add
	more fields needed by the runtime.

svn path=/trunk/mcs/; revision=17436
2003-08-20 10:11:51 +00:00
Jackson Harper 0464a7f049 * ILParser.jay: Implement address constants and string
constants. Add data definitions to their types, and create data
	item lists. Also implement long form overrides.

svn path=/trunk/mcs/; revision=17435
2003-08-20 06:07:46 +00:00
Jackson Harper 8f328fa1b3 * DataDef.cs: Make name public so data names can be looked up
* FieldDef.cs: Stub method for adding data values
	* TypeDef.cs: Implement long form overrides, fix some backwords
	variable naming, add a method to lookup data definitions.

svn path=/trunk/mcs/; revision=17434
2003-08-20 06:04:36 +00:00
Ben Maurer edf2bc3126 003-08-20 Ben Maurer <[email protected]>
* ManagedXslTransform.cs: sync API (Oleg).
	* XslComment.cs, XslMessage.cs, XslProcessingInsturction.cs:
	Ignore element contnet, per spec. (Oleg)
	* TextOutputter.cs: Add option to ignore element content (Oleg).

svn path=/trunk/mcs/; revision=17433
2003-08-20 05:40:13 +00:00
Duncan Mak 9fd493b7fe Add link to the Daily Snapshosts so that people can get to them
easily, achieving the sacred goal of presenting Information At Your
Fingertips.

svn path=/trunk/mono/; revision=17432
2003-08-20 05:30:28 +00:00
Duncan Mak 7e34f3d587 (ReleaseConnection): A patch from Joerg
Rosenkranz <[email protected]>. Currently, if a connection is
closed by an external event (network problem, etc.) it is pushed
back into the connection pool. The next Open call retrieves this
invalid connection which leads to exceptions when executing
statements.

This patch fixes this problem. This closes bug #47429.

svn path=/trunk/mcs/; revision=17431
2003-08-20 05:01:50 +00:00
Duncan Mak c3bb789165 2003-08-20 Duncan Mak <[email protected]>
* Hashtable.cs (PutImpl): Fix my previous checkin, see details
	posted on bug #47692.

	I really hope I don't mess up this time, because, if I do again,
	it will be really embarrassing.

svn path=/trunk/mcs/; revision=17430
2003-08-20 04:57:06 +00:00
Duncan Mak 47b4e7d057 Update links for Red Hat 8, added links to SuSE packages and Windows
installer from Johannes.

svn path=/trunk/mono/; revision=17429
2003-08-20 03:52:43 +00:00
Peter Williams d17bcc8e27 Add image, party hard
svn path=/trunk/mono/; revision=17428
2003-08-20 03:22:47 +00:00
Ben Maurer 2867be967d Passed file though syntax checker (aka, gonzalo) ;-).
svn path=/trunk/mcs/; revision=17427
2003-08-20 01:43:43 +00:00
Ben Maurer 34ed9e0c4b Passed file through bug filter (aka, gonzalo)
svn path=/trunk/mcs/; revision=17426
2003-08-20 01:40:47 +00:00
Ben Maurer b06e50cea9 2003-08-19 Ben Maurer <[email protected]>
* XslNumber.cs: Better support for formatting.

svn path=/trunk/mcs/; revision=17425
2003-08-20 01:26:17 +00:00
Gonzalo Paniagua Javier 4668e31142 2003-08-20 Gonzalo Paniagua Javier <[email protected]>
* ControlCollection.cs:
	* EmptyControlCollection.cs: create a minimum ArrayList for this.

	* BaseParser.cs: added setter for BaseVirtualDir.

	* Page.cs: fixed message when restoring view state fails.
	* UserControlParser.cs: set the BaseVirtualDirectory to handle the case
	when a relative path to the control is given. Fixes bug #47685.

svn path=/trunk/mcs/; revision=17424
2003-08-20 01:24:43 +00:00
Gonzalo Paniagua Javier d51e30ae5f 2003-08-20 Gonzalo Paniagua Javier <[email protected]>
* HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
	<[email protected]>.

svn path=/trunk/mcs/; revision=17423
2003-08-20 00:04:40 +00:00
Gonzalo Paniagua Javier 2d596f93ef 2003-08-20 Gonzalo Paniagua Javier <[email protected]>
* Color.cs: fixed FromArgb to handle alpha value correctly. Closes
	bug #47727.

svn path=/trunk/mcs/; revision=17422
2003-08-19 23:49:07 +00:00
Gonzalo Paniagua Javier 223c5498fb 2003-08-20 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: the MARKED bit is not send set in ViewState unless something
	is changed. Fixed TrackViewState condition.

	* WebControl.cs: save the base ViewState *after* ControlStyle is done,
	because it uses the same ViewState as the control. Fixes bug #47725.

svn path=/trunk/mcs/; revision=17421
2003-08-19 23:24:08 +00:00
Ben Maurer 9a4e63d66c 2003-08-19 Ben Maurer <[email protected]>
* XslNumber.cs: Support for multiple level numbering

svn path=/trunk/mcs/; revision=17420
2003-08-19 23:15:33 +00:00
Ben Maurer a8d038fdf2 2003-08-19 Ben Maurer <[email protected]>
* XslNumber.cs: Initial support.

svn path=/trunk/mcs/; revision=17419
2003-08-19 22:34:09 +00:00
Ben Maurer 6a24ce4f86 2003-08-19 Ben Maurer <[email protected]>
* Compiler.cs: Really give null for blank avt's

svn path=/trunk/mcs/; revision=17415
2003-08-19 20:24:53 +00:00
Atsushi Eno 7d1f83ba18 2003-08-19 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
	  infinite loop.
	* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
	  Commented out Console.Error.WriteLine().
	* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
	  escape and unescape for relative URI string.

svn path=/trunk/mcs/; revision=17414
2003-08-19 19:26:14 +00:00
Ben Maurer 8b824c07a1 2003-08-19 Ben Maurer <[email protected]>
* Compiler.cs: Fixed lre/lre04.

svn path=/trunk/mcs/; revision=17413
2003-08-19 18:43:00 +00:00
Atsushi Eno 0ded962042 2003-08-19 Atsushi Enomoto <[email protected]>
* Compiler.cs : Fixed XslNameUtil.FromString() so that unprefixed name
	  won't have default namespace. See http://www.w3.org/TR/xslt#qname

svn path=/trunk/mcs/; revision=17412
2003-08-19 18:17:08 +00:00
Ben Maurer 1b09b06a83 i will write change logs correctly
i will write change logs correctly
[47 lines omitted]
i will write change logs correctly

svn path=/trunk/mcs/; revision=17411
2003-08-19 18:01:30 +00:00
Ben Maurer 37002710b4 2003-08-19 Ben Maurer <[email protected]>
* XslTransformProcessor.cs: add support for resolving documents.
	* XsltCompiledContext: add support for document () function.

svn path=/trunk/mcs/; revision=17410
2003-08-19 17:58:31 +00:00
Ben Maurer 3056406ff1 2003-08-19 Ben Maurer <[email protected]>
* XmlParserContext.cs: Make each context inherit next.

svn path=/trunk/mcs/; revision=17409
2003-08-19 17:54:15 +00:00
Paolo Molaro 134a411b14 Tue Aug 19 18:22:08 CEST 2003 Paolo Molaro <[email protected]>
* loader.h: portability fix by Bernie Solomon
	* <[email protected]>.

svn path=/trunk/mono/; revision=17408
2003-08-19 16:32:49 +00:00
Ben Maurer 3917a22009 2003-08-19 Ben Maurer <[email protected]>
* Outputter.cs, TextOutputter.cs, XmlOutputter.cs: Implement some
	of the abstract methods in Outputter, making them call other
	functions with default values, remove impl's in derived classes.

svn path=/trunk/mcs/; revision=17407
2003-08-19 15:22:19 +00:00
Ben Maurer 6f6f39ffb4 2003-08-19 Ben Maurer <[email protected]>
* Outputter.cs: s/Close/Done
	* TextOutputter.cs, XmlOutputter.cs: Flush, don't close the backing.
	* XslTransformProcessor.cs: Flush output when popping, pop at end.

svn path=/trunk/mcs/; revision=17406
2003-08-19 15:08:43 +00:00
Ben Maurer f297ec3710 2003-08-19 Ben Maurer <[email protected]>
* Outputter.cs: Add support for namespaces.
	* XslCopyOf.cs, XslLiteralElement: Use namespace support in Outputter.

svn path=/trunk/mcs/; revision=17405
2003-08-19 15:00:09 +00:00
Ben Maurer d633cbcbc5 2003-08-19 Ben Maurer <[email protected]>
* Compiler.cs, XslOutput.cs, XslStylesheet.cs,
	XslTransformProcessor.cs: move output logic from XslStylesheet to
	Compiler.
	* XslVariable.cs: sync to API changes
	* ManagedXslTransform.cs: sync to API changes

svn path=/trunk/mcs/; revision=17404
2003-08-19 14:37:47 +00:00
Nick Drochak a2383bb1f6 2003-08-19 Nick Drochak <[email protected]>
* StackFrameTest.cs: Isolate test failure by making tests finer
	grained.

svn path=/trunk/mcs/; revision=17399
2003-08-19 07:00:15 +00:00
Nick Drochak a0a45e57c7 2003-08-19 Nick Drochak <[email protected]>
* Makefile: Turn on debug for the corlib tests on .NET.

svn path=/trunk/mcs/; revision=17398
2003-08-19 06:58:24 +00:00
Jackson Harper 36126233a4 * PEAPI.cs: Make no super method public so we can have types
with no super type.

svn path=/trunk/mcs/; revision=17396
2003-08-19 03:27:49 +00:00
Ben Maurer 014b09acff 2003-08-18 Ben Maurer <[email protected]>
* XslOutput.cs: add support for encoding.
	* ManagedXslTransform.cs, XslTransformImpl.cs: Add support for
	encoding.

svn path=/trunk/mcs/; revision=17395
2003-08-19 03:09:30 +00:00
ct e0bc4d7367 added more asm macros for floating point subtraction of single/double/quad
svn path=/trunk/mono/; revision=17394
2003-08-19 03:04:34 +00:00
ct a39d3a6031 added floating point instructions for adding double, single, and quad numbers
svn path=/trunk/mono/; revision=17393
2003-08-19 02:53:23 +00:00
Jackson Harper b8d72ead93 * ILParser.jay: Add override methods.
svn path=/trunk/mcs/; revision=17392
2003-08-19 02:24:30 +00:00
Jackson Harper 44db679e0f * IClassRef.cs: Removed methods that have been moved into ITypeRef
* MethodDef.cs: Make some properties public, Add method to get a
	list of parameter types. This is used to build signatures. Alow
	sentinels in signatures and in param lists. Fix some tabbing.
	* ParamDef.cs: Expose the parameters type so they can be used when
	building signatures.
	* TypeDef.cs: Add and emit overrides.

svn path=/trunk/mcs/; revision=17391
2003-08-19 02:22:40 +00:00
Gonzalo Paniagua Javier 67581d806c 2003-08-19 Gonzalo Paniagua Javier <[email protected]>
* HttpException.cs: make the unhandled error more like the MS one.
	* HttpRuntime.cs: set a 500 error code on unhandled exceptions.

svn path=/trunk/mcs/; revision=17390
2003-08-19 02:10:34 +00:00
Ben Maurer 5682ce0b61 forgot to commit
svn path=/trunk/mcs/; revision=17389
2003-08-19 02:05:34 +00:00
Ben Maurer ec458973a1 2003-08-18 Ben Maurer <[email protected]>
* System.Xml.dll.sources: add files from Oleg.
	* *.cs: Support for xsl:output. (Oleg)

svn path=/trunk/mcs/; revision=17388
2003-08-19 01:56:07 +00:00
Gonzalo Paniagua Javier 6361a835a3 2003-08-19 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: flush headers when the body length is 0.
	* StaticFileHandler.cs: added If-Modified-Since handling patch slightly
	modified from the original by Piers Haken <[email protected]>.

svn path=/trunk/mcs/; revision=17387
2003-08-19 01:38:49 +00:00
Ben Maurer 8afbfd9910 forgot to add
svn path=/trunk/mcs/; revision=17386
2003-08-18 21:55:23 +00:00
Ben Maurer e3dbc393a2 2003-08-18 Ben Maurer <[email protected]>
* System.Xml.dll.source: add System.Xml/HighWaterStack.cs
        * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
        * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
        fat, use low-fat loops instead. Even better, call the function
        inside XmlChar for code reuse.
        * HighWaterStack.cs (added): New class that acts like a Stack, but
        helps with memory allocation.
        * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
        HighWaterStack.
        * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
        use a variable that stores the position in the ArrayList.

svn path=/trunk/mcs/; revision=17385
2003-08-18 21:54:50 +00:00
Ben Maurer cc915720f0 2003-08-18 Ben Maurer <[email protected]>
* XmlTextWriter.cs: Begin diet. String.Format has too much
	saturated fat, lets replace with the fat-free .Write ()
	calls. Effects best seen when Paolo's StreamWriter patch is
	applied.

svn path=/trunk/mcs/; revision=17384
2003-08-18 20:16:58 +00:00
Lluis Sanchez 0a14773bc7 * HttpClientChannel.cs, HttpServerChannel.cs: Fixed bug #47703
svn path=/trunk/mcs/; revision=17383
2003-08-18 19:45:14 +00:00
Johannes Roith 3243192ff6 Update
svn path=/trunk/mono/; revision=17382
2003-08-18 17:28:38 +00:00
Gonzalo Paniagua Javier 4d491c40d3 2003-08-18 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: when we load the viewstate for a control that has children
	viewstates and the child is not found, keep its viewstate around and
	wait until the child is added to load the viewstate. Fixes bug #47697.

svn path=/trunk/mcs/; revision=17381
2003-08-18 16:57:44 +00:00
Zoltan Varga 12a767b37b 2003-08-18 Zoltan Varga <[email protected]>
* interp.c: Get rid of duplicate definition of CHECK_MUL_OVERFLOW.
	* interp.h interp.c: Get rid of VAL_VALUETA, use VAL_MP instead. Fix
	the INITOBJ opcode which was the only user of VALUETA.

svn path=/trunk/mono/; revision=17380
2003-08-18 16:51:43 +00:00
Johannes Roith f35602d3d0 add windows distribition scripts
svn path=/trunk/mono/; revision=17379
2003-08-18 16:45:22 +00:00
Nick Drochak 3bb19c4e77 2003-08-18 Nick Drochak <[email protected]>
* UriBuilderTest.cs: Separated tests into NUnit v2 style. Need to track
	down a test failure.

svn path=/trunk/mcs/; revision=17378
2003-08-18 06:40:14 +00:00
Duncan Mak 4acf8c6f82 (PutImpl): Patch from Luca Barbieri <[email protected]>.
Currently Hashtable.PutImpl has an incorrect test which causes the
key chain search to terminate as soon as a free slot is found,
causing key duplication.

svn path=/trunk/mcs/; revision=17376
2003-08-18 04:06:27 +00:00
Ben Maurer c0ba7b1331 2003-08-17 Ben Maurer <[email protected]>
* Compiler.cs: handle extension and excluded namespaces.
	* XslCopyOf.cs: handle default ns
	* XslFallback.cs: implement
	* XslLiteralElement.cs: copy namespaces that were declared.
	* XslTemplateContent.cs: handle ext elements

svn path=/trunk/mcs/; revision=17375
2003-08-18 03:56:46 +00:00
Ben Maurer 7b2cbd04db 003-08-17 Ben Maurer <[email protected]>
* XslComment.cs, XslTemplateContent.cs: remove dead variables.
        * XsltCompiledContext.cs, Compiler.cs: copy the XPathNavigator
        from the stylesheet for correct namespace resolution.
        * XslTransformImpl.cs: close XmlTextWriter when we create it.

svn path=/trunk/mcs/; revision=17374
2003-08-17 20:52:21 +00:00
Lluis Sanchez 389001660c * MethodCall.cs: Throw the right exception if the target object is not
found when resolving the target method.

svn path=/trunk/mcs/; revision=17373
2003-08-17 19:04:25 +00:00
Lluis Sanchez bf2d807ff9 * CallContext.cs: Fixed bug #47686
svn path=/trunk/mcs/; revision=17372
2003-08-17 18:30:42 +00:00
Miguel de Icaza a5982be0c5 Applied patch from J�rg Rosenkranz to fix bug 47639
svn path=/trunk/mcs/; revision=17370
2003-08-16 17:37:23 +00:00
Miguel de Icaza e69d252ebe Applied patch from: David Pickens <[email protected]>
svn path=/trunk/mcs/; revision=17369
2003-08-16 17:29:30 +00:00
Zoltan Varga 1c11105f16 2003-08-16 Zoltan Varga <[email protected]>
* mono/tests/checked.cs: Added mul.ovf tests.

svn path=/trunk/mono/; revision=17368
2003-08-16 15:01:07 +00:00
Zoltan Varga 03285da9bf 2003-08-16 Zoltan Varga <[email protected]>
* reflection.h reflection.c (mono_param_get_objects): Changed this to
	return a MonoArray. This simplifies the code and also ensures that
	the cache allways contains an object reference as a value.

	* icall.c (ves_icall_get_parameter_info): Simplified using the new
	function.

svn path=/trunk/mono/; revision=17367
2003-08-16 14:53:31 +00:00
Zoltan Varga 0012bd257e 2003-08-16 Zoltan Varga <[email protected]>
* interp.c (ves_exec_method): Implemented mul.ovf correctly for int32
	and int64. Implemented the conv.ovf opcodes for all argument types.

2003-08-15  Zoltan Varga  <[email protected]>

	(ves_exec_method): Added support for the synchronized flag to the
	interpreter. Also fixed the CALLI opcode, and made exception handling
	work though the managed-unmanaged barrier.

svn path=/trunk/mono/; revision=17366
2003-08-16 14:48:57 +00:00
Gonzalo Paniagua Javier d5ce33f2f8 2003-08-16 Gonzalo Paniagua Javier <[email protected]>
* HyperLinkColumn.cs: patch from David Pickens <[email protected]>
	that fixes databinding when only DataTextField or DataNavigateUrlField
	is set.

svn path=/trunk/mcs/; revision=17365
2003-08-16 11:10:38 +00:00
Gonzalo Paniagua Javier 983341868b 2003-08-16 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: patch by Bernie Solomon <[email protected]> that
	fixes a problem with byte ordering when getting the address family for
	a socket.

svn path=/trunk/mono/; revision=17364
2003-08-16 02:08:07 +00:00
Gonzalo Paniagua Javier 42df29f6a0 2003-08-15 Jaroslaw Kowalski <[email protected]>
* Microsoft.CSharp/CSharpCodeGenerator.cs:

         - fixed support for method references where target
               object is null
         - fixed CodeThrowExceptionStatement
         - disabled member access modifiers for private method
           implementations
         - disabled generation of empty method body for interface
           declarations
         - disabled generation of empty property accessor bodies
           in interface declarations
         - added support for indexers (properties named "Item")
         - added support for chained constructor arguments and
           base constructor arguments

       * System.CodeDom/CodeTypeDeclaration.cs:

         - TypeAttributes of CodeTypeDeclaration now defaults to
           TypeAttributes.Public (same as MS implementation)

svn path=/trunk/mcs/; revision=17363
2003-08-16 01:58:56 +00:00
Duncan Mak b22f0fcb49 Missed this one too.
svn path=/trunk/mono/; revision=17361
2003-08-15 22:07:57 +00:00
Duncan Mak 2b8f341abd Change references to ByteFX.Data.MySQLClient to the
correct ByteFX.Data.MySqlClient (note the change in
capitalization). Thanks to Tom Wagner <[email protected]> for
spotting the error.

svn path=/trunk/mono/; revision=17360
2003-08-15 22:05:20 +00:00
Zoltan Varga 884a055c2c 2003-08-15 Zoltan Varga <[email protected]>
* interp.c (ves_exec_method): Handle non-valuetypes in CEE_STOBJ.
	Fixes #46781.

svn path=/trunk/mono/; revision=17359
2003-08-15 17:49:28 +00:00
Zoltan Varga 611ee1f539 2003-08-15 Zoltan Varga <[email protected]>
* mono/tests/bug-47295.cs: Regression test for bug #47295.

svn path=/trunk/mono/; revision=17358
2003-08-15 13:59:41 +00:00
Zoltan Varga 120a246e00 2003-08-15 Zoltan Varga <[email protected]>
* .cvsignore: Added monosn.

svn path=/trunk/mono/; revision=17357
2003-08-15 13:53:06 +00:00
Zoltan Varga 6b7ad07f3f 2003-08-15 Zoltan Varga <[email protected]>
* reflection.h reflection.c loader.c: Added support for parameter
	marshalling to dynamically created types. Fixes #47295.

svn path=/trunk/mono/; revision=17356
2003-08-15 13:51:03 +00:00
Paolo Molaro e5d6454d40 Fri Aug 15 11:42:46 CEST 2003 Paolo Molaro <[email protected]>
* rand.c: remove useless warnings.

svn path=/trunk/mono/; revision=17355
2003-08-15 09:52:41 +00:00
Paolo Molaro c9a11f948b Include all the sources in make dist.
svn path=/trunk/mono/; revision=17354
2003-08-15 09:44:45 +00:00
Jackson Harper c98ea87afb * Driver.cs: Report entry for each il file processed
* Report.cs: New file - All error/warning/progress reporting will
	go through here.
	* ilasm.exe.sources: Add report to build

svn path=/trunk/mcs/; revision=17353
2003-08-15 05:52:37 +00:00
Miguel de Icaza 62eb72d9b3 Flush
svn path=/trunk/mono/; revision=17352
2003-08-15 03:24:17 +00:00
Miguel de Icaza 49f0640a80 Flushetyflush
svn path=/trunk/mono/; revision=17351
2003-08-15 01:24:55 +00:00
Miguel de Icaza d5a00338f1 Flush
svn path=/trunk/mono/; revision=17350
2003-08-15 00:48:11 +00:00
Duncan Mak d918ccb9e0 Add mod_mono 0.4.
svn path=/trunk/mono/; revision=17349
2003-08-15 00:42:40 +00:00
Duncan Mak a1963794aa Try my best to update the tables. I hate <table>s and <tr>s and <td>s.
svn path=/trunk/mono/; revision=17346
2003-08-15 00:32:23 +00:00
Lluis Sanchez 7cc9cadfc7 * Thread.cs: SetData() method: use Hashtable.Contains to check
if a dataslot has been allocated (value could be null).

svn path=/trunk/mcs/; revision=17344
2003-08-14 22:40:55 +00:00
Gonzalo Paniagua Javier 4205e41d2a 2003-08-14 Gonzalo Paniagua Javier <[email protected]>
* HttpResponse.cs: another patch from totte and me. This one prevents
	writing output if the client have disconnected and filters the data
	when there's a non-final Flush in the middle of the process.

svn path=/trunk/mcs/; revision=17343
2003-08-14 21:04:28 +00:00
Gonzalo Paniagua Javier 576e2af9c7 2003-08-14 Gonzalo Paniagua Javier <[email protected]>
* XslComment.cs: patch by BenM that implements Evaluate.

svn path=/trunk/mcs/; revision=17342
2003-08-14 20:55:21 +00:00
Lluis Sanchez c7cd609e5a * RemotingProxy.cs: On invoke, set the LogicalCallContext of the message.
svn path=/trunk/mcs/; revision=17341
2003-08-14 19:50:47 +00:00
Lluis Sanchez 2a32216d7a * ClientSponsor.cs: Implemented.
svn path=/trunk/mcs/; revision=17340
2003-08-14 19:49:17 +00:00
Lluis Sanchez cfcea8822b * ChannelServices.cs: Set call context info for the incoming
remote call, and restore the context after the call.

svn path=/trunk/mcs/; revision=17339
2003-08-14 19:38:30 +00:00
Lluis Sanchez 982fdccdfa * CADMessages.cs: Enabled smuggeling of primitive type parameters (as suggested
by Patrik).
	* CallContext.cs: Impplemented.
	* LogicalCallContext.cs: Implemented.
	* MonoMethodMessage.cs: Added setter for LogicalCallContext property.

svn path=/trunk/mcs/; revision=17338
2003-08-14 19:35:42 +00:00
Lluis Sanchez 7033eba810 * AppDomainLevelActivator.cs, ConstructionLevelActivator.cs,
ContextLevelActivator.cs, RemoteActivationAttribute.cs,
	  RemoteActivator.cs: Changed class from public to internal.

svn path=/trunk/mcs/; revision=17336
2003-08-14 18:59:14 +00:00
Lluis Sanchez 21733eca77 * ObjRef.cs: Implemented IsFromThisProcess().
* RemotingServices.cs: Implemented methods GetLifetimeService and
	  GetEnvoyChainForProxy. Stubbed LogRemotingStage.

svn path=/trunk/mcs/; revision=17335
2003-08-14 18:52:02 +00:00
Gonzalo Paniagua Javier 2cde1939f8 fix credits
svn path=/trunk/mcs/; revision=17334
2003-08-14 16:52:56 +00:00
Gonzalo Paniagua Javier df56a2ae8a 2003-08-14 Gonzalo Paniagua Javier <[email protected]>
* ListControl.cs: patch by Yaacov Akiba Slama <[email protected]> that
	fixes selection of values before assigning a data source and other
	issues.

svn path=/trunk/mcs/; revision=17333
2003-08-14 16:51:40 +00:00
Atsushi Eno 70f35c66e6 2003-08-14 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
	  vanishing current node.

svn path=/trunk/mcs/; revision=17332
2003-08-14 16:06:34 +00:00
Martin Baulig 45648c6703 Peter had a reason for this change; restore it (it was reverted in revision 1.4).
2003-07-17  Peter Williams  <[email protected]>

	* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
	than mcs. We need to disambiguate System.Math from Mono.Math here.

svn path=/trunk/mcs/; revision=17331
2003-08-14 16:00:37 +00:00
Atsushi Eno 8a41b1cdd2 2003-08-14 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Added SchemaType.
	  Read() Assures to return to element.
	* DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
	* XmlReader.cs : ReadString() should be virtual in NET_1_1.
	* XmlTextReader.cs : 1) Depth should consider Attribute and its values.
	  Introduced insideAttribute field to support them.
	  2) ReadAttributeValue() should consider empty string.
	* XmlValidatingReader.cs :
	  Fixed several properties which premised as if it was already read.
	  Encoding and Namespaces now throws NotSupportedException for other
	  than XmlTextReader.
	  Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.

svn path=/trunk/mcs/; revision=17330
2003-08-14 15:56:58 +00:00
Atsushi Eno 7c7257d1c7 2003-08-14 Atsushi Enomoto <[email protected]>
* XslCallTemplates.cs : Forgot to commit ;-)

svn path=/trunk/mcs/; revision=17329
2003-08-14 15:47:40 +00:00
Atsushi Eno b375a09a2a 2003-08-14 Atsushi Enomoto <[email protected]>
* DTMXPathDocument.cs,
	  DTMXPathDocumentBuilder.cs,
	  DTMXPathNavigator.cs :
	  - Implemented ID support using XmlValidatingReader.
	  - Prefix should be String.Empty even if XmlReader.Prefix is null.

svn path=/trunk/mcs/; revision=17328
2003-08-14 15:35:29 +00:00
Nick Drochak b38d984aac 2003-08-14 Nick Drochak <[email protected]>
* WebRequest.cs: Check lower case string since that is what we will add.

svn path=/trunk/mcs/; revision=17326
2003-08-14 14:11:28 +00:00
Atsushi Eno 14dc801f3c 2003-08-14 Atsushi Enomoto <[email protected]>
* Compiler.cs : 1) Changed public .ctor() to receive Evidence argument
	  introduced in .NET 1.1. 2) XmlResolver object is required for 'res'.

svn path=/trunk/mcs/; revision=17324
2003-08-14 12:57:03 +00:00
Atsushi Eno d5241852b8 2003-08-14 Atsushi Enomoto <[email protected]>
* XslApplyTemplates.cs,
	  XslCallTemplate.cs : Should accept other than element content such
	  as comment and PI.
	* XslNumber.cs : In Compile(), 'value' might not exist. (Think about
	  it later if how it should be.)
	* XslTemplateContent.cs : "comment" and "number" support. (I know they
	  are still incomplete.)

svn path=/trunk/mcs/; revision=17323
2003-08-14 12:56:35 +00:00
Atsushi Eno 00db4a05dc 2003-08-14 Atsushi Enomoto <[email protected]>
* XslTransformImpl.cs, XslTransform.cs, Multiplexer.cs,
	  ManagedXslTransform.cs : Added Evidence args introduced in .NET 1.1.

svn path=/trunk/mcs/; revision=17322
2003-08-14 12:54:01 +00:00
Atsushi Eno e615110e09 2003-08-14 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources: Added Mono.Xml.Xsl.Operation/XslComment.cs
	  and Mono.Xml/IHasXmlSchemaInfo.cs

svn path=/trunk/mcs/; revision=17321
2003-08-14 12:52:59 +00:00
Atsushi Eno 2fc2cb8972 2003-08-14 Atsushi Enomoto <[email protected]>
* added IHasXmlSchemaInfo.cs.

svn path=/trunk/mcs/; revision=17320
2003-08-14 12:51:28 +00:00
Atsushi Eno 50f79c7c0f 2003-08-14 Atsushi Enomoto <[email protected]>
* Added XslComment.cs.

svn path=/trunk/mcs/; revision=17319
2003-08-14 12:42:22 +00:00
Duncan Mak 537eb6e882 Adding xsd.in
svn path=/trunk/mono/; revision=17317
2003-08-14 06:09:25 +00:00
Duncan Mak 6a6dfd7024 Last minute: Add xsd to the release
svn path=/trunk/mono/; revision=17316
2003-08-14 06:06:49 +00:00
Gaurav Vaish 2d8bdaf0db 2003-08-14 Gaurav Vaish <gvaish_mono AT lycos.com>
* MobileControl.cs       : Style { get; }             - Completed.

svn path=/trunk/mcs/; revision=17315
2003-08-14 04:28:16 +00:00
Gaurav Vaish 84f638ea37 2003-08-13 Gaurav Vaish <gvaish_mono AT lycos.com>
* ControlAdapter.cs     : Style { get; }           - Implemented.
* HtmlControlAdapter.cs : Towards finishing.
* HtmlPageAdapter.cs    : PersistCookielessData    - Mocked.
* HtmlMobileTextWriter.cs
                        : EnterStyle(Style)        - Mocked.

svn path=/trunk/mcs/; revision=17314
2003-08-14 04:25:13 +00:00
840 changed files with 52471 additions and 15298 deletions

No files matched your search

+53
View File
@@ -1,3 +1,56 @@
2003-09-08 Zoltan Varga <[email protected]>
* configure.in: Added check for valgrind headers.
2003-09-03 Zoltan Varga <[email protected]>
* Makefile.am: Use $(MAKE) in even more places. Patch by Bernie Solomon
([email protected]).
2003-08-27 Zoltan Varga <[email protected]>
* Makefile.am: Use $(MAKE) instead of make. Patch by Bernie Solomon
([email protected]).
2003-08-25 Zoltan Varga <[email protected]>
* mono.pc.in: Added gthread-2.0.
2003-08-22 Zoltan Varga <[email protected]>
* configure.in: Added gthread-2.0 to GLIB_CFLAGS and GLIB_LIBS, so we
can call g_thread_init ().
2003-08-21 Zoltan Varga <[email protected]>
* mono/tests/threadpool.cs mono/tests/threadpool1.cs: Make increments
of static variables atomic. Fixes bug #47683.
2003-08-21 Johannes Roith <[email protected]>
* mono/Makefile.am: small update. make sure, glib makes it in the build, add optional target for dependencies
2003-08-18 Johannes Roith <[email protected]>
* mono/Makefile.am: add windows build option
* mono/monowiz.win32.nsi: add windows build script
* mono/mono-win32-light.bmp: add bitmap
2003-08-16 Zoltan Varga <[email protected]>
* mono/tests/checked.cs: Added mul.ovf tests.
2003-08-15 Duncan Mak <[email protected]>
* doc/mysql: Change references to ByteFX.Data.MySQLClient to the
correct ByteFX.Data.MySqlClient (note the change in
capitalization). Thanks to Tom Wagner <[email protected]> for
spotting the error.
2003-08-15 Zoltan Varga <[email protected]>
* mono/tests/bug-47295.cs: Regression test for bug #47295.
2003-08-11 Duncan Mak <[email protected]>
* runtime/Makefile.am (assemblies_DATA): Add Mono.Cairo.dll.
+33 -7
View File
@@ -19,18 +19,44 @@ DISTCLEANFILES= mono.pc
fullbuild: remove-binaries mcs-tree-safe-build xinstall-runtime mcs-rest install
mcs-tree-safe-build:
(cd ../mcs/jay; make)
(cd ../mcs/mcs; make MCS=mcs)
(cd ../mcs/class/corlib; make MCS=mcs)
(cd ../mcs/jay; $(MAKE))
(cd ../mcs/mcs; $(MAKE) MCS=mcs)
(cd ../mcs/class/corlib; $(MAKE) MCS=mcs)
cp ../mcs/class/lib/corlib.dll runtime
cp ../mcs/mcs/mcs.exe runtime
xinstall-runtime:
if echo $(SUBDIRS) | grep "libgc " > /dev/null; then (cd libgc; make && make install); fi
(cd mono; make && make install)
if echo $(SUBDIRS) | grep "libgc " > /dev/null; then (cd libgc; $(MAKE) && $(MAKE) install); fi
(cd mono; $(MAKE) && $(MAKE) install)
mcs-rest:
(cd ../mcs/class; make)
(cd ../mcs/class; $(MAKE))
remove-binaries:
rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe >& /dev/null; echo
rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe >& /dev/null; echo
win32getdeps:
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/libiconv-1.7.zip
wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
wget http://www.jroith.de/nsis4cygwin.zip
unzip -n -d / pkgconfig-0.11-20020310.zip
unzip -n -d / glib-2.0.4-20020703.zip
unzip -n -d / glib-dev-2.0.4-20020703.zip
unzip -n -d / libiconv-1.7.zip
unzip -n -d / libiconv-dev-1.7.zip
unzip -n -d / libintl-0.10.40-20020101.zip
unzip -n -d / nsis4cygwin.zip
win32setup:
cp /usr/lib/libglib-2.0-0.dll @prefix@/lib
cp /usr/lib/iconv.dll @prefix@/lib
cp /usr/lib/libgmodule-2.0-0.dll @prefix@/lib
cp /usr/lib/libgobject-2.0-0.dll @prefix@/lib
cp /usr/lib/libgthread-2.0-0.dll @prefix@/lib
cp /usr/lib/libintl-1.dll @prefix@/lib
makensis /DMILESTONE=@VERSION@ /DSOURCE_INSTALL_DIR=`cygpath -a -w @prefix@`\\* monowiz.win32.nsi
-51
View File
@@ -1,51 +0,0 @@
/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
#undef HAVE_INET_PTON
#undef HAVE_INET_ATON
#undef HAVE_SOL_IP
#undef HAVE_SOL_TCP
#undef HAVE_IP_PKTINFO
#undef HAVE_STRUCT_IP_MREQN
#undef HAVE_PTHREAD
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
#undef USE_MONO_MUTEX
#undef HAVE_LARGE_FILE_SUPPORT
#undef PLATFORM_WIN32
#undef HAVE_NEW_ICONV
#undef NAME_DEV_RANDOM
#undef HAVE_CRYPT_RNG
#undef HAVE_BOEHM_GC
/* The number of bytes in a void *. */
#undef SIZEOF_VOID_P
/* Define if you have the inet_aton function. */
#undef HAVE_INET_ATON
/* Define if you have the inet_pton function. */
#undef HAVE_INET_PTON
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H
/* Define if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
/* Define if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H
/* Define if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* Name of package */
#undef PACKAGE
/* Version number of package */
#undef VERSION
+8 -5
View File
@@ -1,7 +1,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,0.26)
AM_INIT_AUTOMAKE(mono,0.27)
AM_MAINTAINER_MODE
dnl
@@ -145,6 +145,9 @@ AM_PROG_LIBTOOL
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)
@@ -167,8 +170,8 @@ fi
dnl for use on the build system
dnl pkg-config is stupid
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
AC_SUBST(BUILD_GLIB_CFLAGS)
AC_SUBST(BUILD_GLIB_LIBS)
@@ -190,8 +193,8 @@ GLIB_REQUIRED_VERSION=1.3.11
PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
+4
View File
@@ -0,0 +1,4 @@
Makefile.in
Makefile
config
.cvsignore
+1
View File
@@ -6,6 +6,7 @@
<dllmap dll="odbc32.dll" target="libodbc.so" />
<dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so" />
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so" />
<dllmap dll="libgthread-2.0-0.dll" target="libgthread-2.0.so" />
<dllmap dll="libpango-1.0-0.dll" target="libpango-1.0.so" />
<dllmap dll="libatk-1.0-0.dll" target="libatk-1.0.so" />
<dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-2.0.so" />
+69
View File
@@ -0,0 +1,69 @@
* Bug reporting
To report bugs you need to create a <a
href="http://bugzilla.ximian.com/createaccount.cgi">Bugzilla
Account</a>.
Here are some convenient shortcuts to browse or add bug reports.
<ul>
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&newqueryname=&form_name=query&order=bugs.priority%2C%20bugs.bug_id">[Query]</> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FClass%20Libraries">[Add]</a> Class Libraries
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FAssembler&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FAssembler">[Add]</a> IL Assembler.
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FMCS&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FMCS">[Add]</a> C# Compiler.
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FRuntime">[Add]</a> Runtime
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FDoctools&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FDoctools">[Add]</a> Documentation system.
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=gtk%23&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=gtk%23">[Add]</a> Gtk#
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FDebugger&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FDebugger">[Add]</a> Debugger.
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">[Query]</a> All core components.
</ul>
<a name="goodbugreport"/>
** How to make good bug reports
<ol>
* Submit a test case, the smaller it is, the better
* Use <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> to report the bug.
<p>In <b>addition</b> to bugzilla, posting to the list is
fine if the bug merits larger exposure or design
discussions to solve; posting to the list twice or more
is just a way to annoy people and make them waste time,
specially when you start a new thread about it.
* If the test involves libraries or assemblies that are
not part of mono, add info about where to download all
the dependencies, and how to compile/install them.
* If compiling the test case requires more than:
<pre> mcs test.cs </pre>
provide the <b>full command line</b> you used to compile
the test.
* If running the test requires more than:
<pre> mono test.exe </pre>
provide the <b>full command line</b> needed to replicate
the bug.
* Provide info about the version of the software you're
using (both mono and the operating system or relevant
libraries).
* Provide the output you expect the test case to produce.
* Provide the actual output <b>you</b> get from the test case.
</ol>
A good bug report complies with at least 6 items from the list.
If your bug report complies with 3 or less items, it is very
poor and it means it will take much more time to fix (when it's
not ignored).
+9 -4
View File
@@ -17,6 +17,7 @@
<ul>
<li><a href="#monodoc">monodoc - A graphical documentation viewer.</a></li>
<li>xmllint: a tool used to validate a proper XML document.
</ul>
@@ -27,11 +28,15 @@
*** <a name="monodoc">MonoDoc</a>
A graphical documentation viewer written in Gtk#. In the
future we will have an ASP.NET front-end to present the
documentation on the web as well.
The MonoDoc system offers both a GUI client as well as a <a
href="http://www.go-mono.com:8080">Web-based interface</a> to
the documentation.
** Status and Roadmap
The GUI edition uses <a
href="http://gtk-sharp.sf.net">Gtk#</a> and the Web edition
uses Mono's ASP.NET implementation.
<img src="images/Screenshot-Monodoc.png">
** Get Involved
+4 -1
View File
@@ -128,7 +128,10 @@
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
<a name="goodbugreport"/>
Check our <a href="bugs.html">Bugs</a> that contains links to
easily add a bug report, or to query the existing bugs.
<a name="goodbugreport"/>
** How to make good bug reports
A mail from Paolo to mono-devel-list contained this check list:
+6 -2
View File
@@ -25,7 +25,11 @@
libraries as well as the class libraries produced by
the project).
* Tutorials on Mono and the specifics of running it.
* Tutorials on Mono and the specifics of running it
(The <a href="http://www.monohispano.org">Mono
Hispano</a> team has produced lots of <a
href="http://www.monohispano.org/tutoriales.php">tutorials
in spanish</a>
* A guide to Mono as compared to the Microsoft.NET
Framework SDK
@@ -199,7 +203,7 @@
</pre>
Use this to create lists. Lists contains &lt;item&gt;
elements
elements which have to contain &lt;term&gt; containers.
<pre>
&lt;list type="table"&gt; &lt;/lits&gt;
+106
View File
@@ -12,7 +12,113 @@
href="http://www.go-mono.org/mono-beginning.html">Resources/Beginning
section</a>, the <a
href="http://www.go-mono.org/faq.html">FAQ</a>.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
<td>
<b>Release 0.26</b><br>
<a href="archive/mono-0.26.html">Release notes</a><br>
Aug 14, 2003
</td>
<td>
<table cellspacing="1" cellpadding="3">
<tr bgcolor="#BBBBBB">
<td>
<b>Source Code</b>
</td>
<td>
<ul>
<li><a href="archive/mcs-0.26.tar.gz">Mono Class Libraries and C# Compiler.</a>
<li><a href="archive/mono-0.26.tar.gz">Mono Runtime</a>
<li><a href="archive/xsp-0.5.tar.gz">XSP web server (0.5)</a>
<li><a href="archive/mod_mono-0.4.tar.gz">Apache Mono module (mod_mono)</a>
<li><a href="archive/monodoc-0.6.tar.gz">MonoDoc 0.6</a>
</ul>
</td>
</tr>
<tr bgcolor="#BBBBBB">
<td>
<b>Source RPMs</b><br>
(No RPMS for XSP).
</td>
<td>
<ul>
<li><a href="archive/redhat-90-i386/mono-0.26-1.ximian.6.1.src.rpm">mono-0.26-1.src.rpm (RH9)</a>
<li><a href="archive/redhat-90-i386/mono-0.26-1.ximian.5.1.src.rpm">mono-0.26-1.src.rpm (RH8)</a>
</ul>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 9.0/x86</b>
<ul>
<li><a href="archive/redhat-90-i386/mono-0.26-1.ximian.6.1.i386.rpm">mono-0.26-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-devel-0.26-1.ximian.6.1.i386.rpm">mono-devel-0.26-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-debuginfo-0.26-1.ximian.6.1.i386.rpm">mono-debuginfo-0.26-1.i386.rpm</a>
<br>
<li><a href="archive/redhat-90-i386/libpixregion-0.1.0-1.ximian.6.1.i386.rpm">libpixregion-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/libpixregion-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">libpixregion-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/libic-0.1.0-1.ximian.6.1.i386.rpm">libic-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/libic-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">libic-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xc-0.1.0-1.ximian.6.1.i386.rpm">xc-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xc-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">xc-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xr-0.1.0-1.ximian.6.1.i386.rpm">xr-0.1.0-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/xr-debuginfo-0.1.0-1.ximian.6.1.i386.rpm">xr-debuginfo-0.1.0-1.ximian.6.1.i386.rpm</a>
<br>
<li><a href="archive/redhat-90-i386/monodoc-0.6-1.ximian.6.1.i386.rpm">monodoc-0.6-1.ximian.6.1.i386.rpm</a> (To be used only with CVS gtk-sharp)
<li><a href="archive/redhat-90-i386/monodoc-debuginfo-0.5-1.ximian.6.1.i386.rpm">monodoc-debuginfo-0.5-1.ximian.6.1.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-wine-20030318-1.ximian.6.3.i386.rpm">mono-wine-20030318-1.ximian.6.3.i386.rpm</a>
<li><a href="archive/redhat-90-i386/mono-wine-debuginfo-20030318-1.ximian.6.2.i386.rpm">mono-wine-debuginfo-20030318-1.ximian.6.3.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/redhat-36.gif"><b>Red Hat 8.0/x86</b>
<ul>
<li><a href="archive/redhat-80-i386/mono-0.26-2.ximian.5.1.i386.rpm">mono-0.26-2.ximian.5.1.i386.rpm</a>
<li><a href="archive/redhat-80-i386/mono-devel-0.26-2.ximian.5.1.i386.rpm">mono-devel-0.26-2.ximian.5.1.i386.rpm</a>
<br>
<li><a href="archive/redhat-80-i386/monodoc-0.5-1.ximian.5.1.i386.rpm">monodoc-0.5-1.ximian.5.1.i386.rpm</a> (To be used only with CVS gtk-sharp)
<li><a href="archive/redhat-80-i386/mono-wine-20030318-1.ximian.5.3.i386.rpm">mono-wine-20030318-1.ximian.5.3.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/debian-36.gif"><b>Debian</b>
<ul>
<li><a href="h#ttp://www.debianplanet.com/mono/">Debian Packages here.</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/mandrake-36.gif"><b>Mandrake 9.1/x86</b>
<ul>
<li><a href="archive/mandrake-91-i586/mono-0.26-1.ximian.6.1.i586.rpm">mono-0.26-1.ximian.6.1.i586.rpm</a>
<li><a href="archive/mandrake-91-i586/mono-devel-0.26-1.ximian.6.1.i586.rpm">mono-devel-0.26-1.ximian.6.1.i586.rpm</a>
<!-- <li><a href="archive/mandrake-91-i586/monodoc-0.5-1.ximian.6.1.i586.rpm">monodoc-0.5-1.ximian.6.1.i586.rpm</a> -->
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<img src="images/suse-36.gif"><b>SuSE 8.2</b>
<ul>
<li><a href="archive/suse-82-i586/mono-0.26-2.ximian.7.1.i586.rpm">mono-0.26-2.ximian.7.1.i586.rpm</a>
<li><a href="archive/suse-82-i586/mono-devel-0.26-2.ximian.7.1.i586.rpm">mono-devel-0.26-2.ximian.7.1.i586.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<img src="images/windows-36.gif"><b>Windows installer</b>
<ul>
<li><a href="archive/mono-0.26-win32-2.exe">mono-0.26-win32-2.exe</a>
</ul>
</td>
</tr>
</table>
</td>
<table>
<tbody>
<tr bgcolor="#DDDDDD">
+170 -25
View File
@@ -39,6 +39,48 @@ A: The Mono Project is an open development initiative sponsored by
implement various technologies developed by Microsoft that have now
been submitted to the ECMA for standardization.
The Mono project has also sparked a lot of interest in developing
C#-based components, libraries and frameworks. Today Mono is not
limited to implement the .NET Framework, but also contains other
components. Some of the components of the Mono platform were
developed by the Mono team, and some others we have incorporated
from other open source efforts, the most important ones:
<ul>
<li><a
href="http://remoting-corba.sourceforge.net/">Remoting.CORBA</a>: A
CORBA implementation for Mono.
<li>Ginzu: An implementation on top of Remoting for the <a
href="http://www.zeroc.com">ICE</a> stack
<li><a href="http://gtk-sharp.sf.net">Gtk#</a>: Bindings for
the popular Gtk+ GUI toolkit for Unix and Windows systems.
Other bindings are available: Diacanvas-Sharp and MrProject.
<li><a
href="http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx">#ZipLib</a>:
A library to manipulate various kinds of compressed files and
archives (Zip and tar).
<li>GlGen (available from the Mono CVS): Bindings for OpenGL.
<li>Mono.LDAP: LDAP access for .NET apps.
<li>Mono.Data: We ship support for Postgress, MySql, Sybase,
DB2, SqlLite, Tds (SQL server protocol) and Oracle databases.
<li>Mono.Cairo: Bindings for the <a
href="http://www.cairographics.org">Cairo</a> rendering
engine (Our System.Drawing is implemented on top of this).
<li>Mono.Posix: Bindings for building POSIX applications using
C#.
<li>Mono.Http: Support for creating custom, embedded HTTP
servers and common HTTP handlers for your applications.
</ul>
Q: What is the difference between Mono and the .NET Initiative?
A: The ".NET Initiative" is a somewhat nebulous company-wide effort by
@@ -59,7 +101,9 @@ A: Mono contains a number of components useful for building new
compiler, and a garbage collecting runtime.
* A class library that can work with any language
which works on the CLR.
which works on the CLR. Both .NET compatible class
libraries as well as Mono-provided class libraries
are included.
* A compiler for the C# language. In the future we
might work on other compilers that target the Common
@@ -133,7 +177,7 @@ A: Different parts of Mono will achieve usability at different stages,
Q: When will Mono 1.0 ship?
A: We are planning on releasing Mono 1.0 (Mono Core) which will ship all the
components of Mono that are known to be stable in Q4 2003.
components of Mono that are known to be stable in Q4 2003/Q1 2004.
This release will lack System.Windows.Forms and
Enterprise.Services, as they will not be production ready on this timeframe.
@@ -303,9 +347,14 @@ A: There are several reasons for this.
Win32 message loop. In order to maintain compatibility, Wine must be used,
and this is being done; see the
<a href="/winforms.html">System.Windows.Forms effort page</a>.
Additionally, Wine apps don't currently fit in -- visually -- with
Gtk+ or Qt apps.
Q: Wine applications do not look like native applications, what are
you going to do about this?
A: We have already a few patches into our version of Windows.Forms
that makes Wine use the colors and font settings from your desktop,
improving the integration a lot. In the future, we will continue
to improve this interoperability scenario.
Q: Will I be able to run my smart clients on systems powered by Mono?
@@ -346,6 +395,12 @@ A: We do not know, volunteers are working on this, but there is no set
date yet. The current approach is using the Wine Library to implement
it.
Q: Do you have a comparission chart about the various toolkit
offerings?
A: A document explaining this is available at: <a
href="http://primates.ximian.com/~miguel/toolkits.html">http://primates.ximian.com/~miguel/toolkits.html</a>.
<a name="msft"></a>
** Mono and Microsoft
@@ -401,13 +456,6 @@ A: No. MS Passport is unrelated to running .NET compatible applications
produced with the Mono tools. The only thing you will need is a
just-in-time compiler (JIT).
Q: What is a 100% .NET application?
A: A `100% .NET application' is one that only uses the APIs defined
under the System namespace and does not use PInvoke. These
applications would in theory run unmodified on Windows, Linux,
HP-UX, Solaris, MacOS X and others.
Q: If Microsoft will release a port of their .NET platform under the
`Shared Source' license, why should I bother with anything else?
@@ -445,12 +493,6 @@ A: No, it will not. Microsoft Office is a Windows application. To
learn more about running Windows applications on Intel Unix systems
refer to <a href="http://www.winehq.com">the Wine Project</a>.
Q: Will I be able to compile a Microsoft VB.NET application and execute
the resultant MSIL file under MONO on Linux without converting to C#
and recompiling?
A: Once we have a complete VisualBasic runtime, yes.
Q: Can mono run the WebMatrix?
A: No. That requires System.Windows.Forms support which is not
@@ -501,12 +543,33 @@ A: Mono requires Unicode versions of Win32 APIs to run,
Win32 libs. This is achieved by inserting -lunimono before
-lkerner32/user32 in the linker's specs file.
Q: Why support Windows, when you can run the real thing?
A: There are various reasons:
<ul>
<li> About half the contributors to Mono are Windows developers.
They have many different for contributing to the effort, and
we find it very important to let those developers run the runtime on Windows without forcing
them to use a new operating system.
<li> Supporting Windows helps us identify the portable portions
of Mono from the non-portable versions of it, helping Mono
become more portable in the future.
<li> Mono does not heavily modify the windows registry, update system DLLs,
install DLLs to the Windows/System32 path. Another words, I knew Mono would
not cause any legacy enterprise applications to stop working - and it
hasn't. However, our CIO er is againt it because of the changes that would
be made to Windows 2000, such as, affecting security.
</ul>
<a name="compatibility"></a>
** Compatibility
Q: Can Mono run applications developed with the Microsoft.NET fraemwork?
Q: Can Mono run applications developed with the Microsoft.NET framework?
A: Yes, Mono can run applications developed with the Microsft .NET Framework
A: Yes, Mono can run applications developed with the Microsoft .NET Framework
on Unix. There are a few caveats to keep in mind: Mono has not
been completed yet, so a few API calls might be missing; And in
some cases the Mono behavior *might* be incorrect.
@@ -540,6 +603,77 @@ A: Sometimes they will. But sometimes a .NET application might invoke
Win32 API calls, or assume certain patterns that are not correct
for cross-platform applications.
Q: What is a 100% .NET application?
A: A `100% .NET application' is one that only uses the APIs defined
under the System namespace and does not use P/Invoke. These
applications would in theory run unmodified on Windows, Linux,
HP-UX, Solaris, MacOS X and others.
Note that this requirement also holds for all assemblies used by the
application. If one of them is Windows-specific, then the entire program
is not a 100% .NET application.
Furthermore, a 100% .NET application must not contain non-standard data
streams in the assembly. For example, Visual Studio .NET will insert a
<tt>#-</tt> stream into assemblies built under the "Debug" target.
This stream contains debugging information for use by Visual Studio .NET;
however, this stream can not be interpreted by Mono (unless you're willing
to donate support).
Thus, it is recommended that all Visual Studio .NET-compiled code be
compiled under the Release target before it is executed under Mono.
Q: Can I execute my Visual Studio .NET program (Visual Basic .NET, Visual C#,
Managed Extensions for C++, etc.) under Mono?
A: Yes, with some reservations.
The .NET program must either be a 100% .NET application, or (somehow) have
all dependent assemblies available on all desired platforms. (How to do so
is outside the bounds of this FAQ.)
For example, since Mono's System.Windows.Forms implementation will use
Wine, System.Windows.Forms is only as portable as Wine is. It's possible
that Mono may run on a platform, but Wine will not, in which case a
System.Windows.Forms app will not run on that platform. This is similarly
true for all assemblies that are not 100% managed code.
Mono must also have an implementation for the .NET assemblies used. For
example the System.EnterpriseServices namespace is part of .NET, but it
has not been implemented in Mono. Thus, any applications using this
namespace will not run under Mono.
With regards to languages, C# applications tend to be most portable.
Visual Basic .NET applications are portable, but Mono's
Microsoft.VisualBasic.dll implementation is incomplete. It is recommended
to either avoid using this assembly in your own code, only use the
portions that Mono has implemented, or to help implement the missing
features. Additionally, you can set 'Option Strict On', which
eliminates the implicit calls to the unimplemented
Microsoft.VisualBasic.CompilerServices.ObjectType class.
(Thanks to Jörg Rosenkranz.)
Managed Extensions for C++ is least likely to operate under Mono. Mono
does not support mixed mode assemblies (that is, assemblies containing both
managed and unmanaged code, which Managed C++ can produce). You need a
fully-managed assembly to run under Mono, and getting the Visual C++ .NET
compiler to generate such an executable can be difficult. You need to use
only the .NET-framework assemblies, not the C libraries (you can't use
<b>printf</b>(3) for example.), and you need to use
the linker options <tt>/nodefaultlib /entry:main mscoree.lib</tt> in
addition to the <tt>/clr</tt> compiler flag. You can still use certain
compiler intrinsic functions (such as <b>memcpy</b>(3)) and the STL.
You should also see <a
href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmex/html/vcgrfconvertingmanagedextensionsforcprojectsfrommixed-modetopureil.asp"
>Converting Managed Extensions for C++ Projects from Mixed Mode to Pure
Intermediate Language</a> at MSDN.
Finally, you can use PEVERIFY.EXE from the .NET SDK to determine if the
assembly is fully managed.
Thanks to Serge Chaban for the linker flags to use.
<a name="pnpproject"></a>
** Mono and Portable.NET
@@ -818,7 +952,7 @@ A: Replace the __stdcall attribute with the STDCALL macro, and include this
Q: I want to be able to execute Mono binaries, without having to use the "mono"
command. How can I do this?
A: From Carlos Perelló:
A: From Carlos Perelló:
<i>I think that the best solution is the binfmt feature with the
wrapper that exists with Debian packages at:
@@ -887,7 +1021,7 @@ A: Modules developed for Apache 2 are not compatible with Apache 1.3
Q: Can I run Apache 1 and Apache 2 on the same machine?
You can always keep a copy of Apache 2 running in paralell with your Apache
You can always keep a copy of Apache 2 running in parallel with your Apache
1.3 (either different port or using a reverse proxy).
You can also bind the two servers to different IP addresses on the
@@ -1149,7 +1283,7 @@ A: There should not be any need to recode.
Q: What do I need to watch out for when programming in VB.NET so that I'm
sure to be able to run those apps on Linux?
A: Not making any PInvoke or DLL calls should and not using anything in
A: Not making any P/Invoke or DLL calls should and not using anything in
the Microsoft.* namespaces should suffice. Also do not use any
Methods/Classes marked as "This type/method supports the .NET Framework
infrastructure and is not intended to be used directly from your code."
@@ -1306,7 +1440,7 @@ A: First some background information.
The Mono strategy for dealing with these technologies is as
follows: (1) work around the patent by using a different
implementation techinque that retains the API, but changes the
implementation technique that retains the API, but changes the
mechanism; if that is not possible, we would (2) remove the pieces
of code that were covered by those patents, and also (3) find prior
art that would render the patent useless.
@@ -1323,6 +1457,17 @@ A: First some background information.
components, and things that we have developed (like Gtk#) or Apache
integration.
Q: Is Mono only an implementation of the .NET Framework?
A: Mono implements both the .NET Framework, as well as plenty of class
libraries that are either Unix specific, <a
href="http://www.gnome.org">Gnome</a> specific, or that are not
part of the .NET Framework but people find useful.
The following map shows the relationship between the components:
<img src="http://primates.ximian.com/~miguel/tmp/map.png">
<a name="etc"></a>
** Miscellaneous Questions
@@ -1421,4 +1566,4 @@ A: It's possible to run VC++ generated apps under Mono, but we do not
** Credits
The FAQ contains material contributed by Miguel de Icaza, Jaime Anguiano, Lluis Sánchez.
The FAQ contains material contributed by Miguel de Icaza, Jaime Anguiano, Lluis Sánchez.
+60 -15
View File
@@ -12,10 +12,8 @@
Common Language Infrastructure (also referred as the CLR) and a
set of <a href="class-library.html">class libraries</a>. The
runtime can be <a href="embedded-api.html">embedded</a> into your
application.
Mono has implementations of both <a href="ado-net">ADO.NET</a>
and <a href="asp-net">ASP.NET</a> as part of its distribution.
application. It implements of both <a href="ado-net.html">ADO.NET</a>
and <a href="asp-net.html">ASP.NET</a>.
You can read our <a href="rationale.html">rationale</a> for
this project. If you have questions about the project, please
@@ -34,16 +32,9 @@
href="http://www.gotmono.com/cgi-bin/yabb/YaBB.pl">forum</a> at <a
href="http://www.gotmono.com">GotMono</a>.
You can contact the team at: <a
href="mailto:mono-list@ximian.com">mono[email protected]</a>
In order to follow the process of the project and to learn more
about the team members we have created the <a
href="http://monoevo.sf.net/mwn/index.html">Mono Weekly News letter</a>.
Which archives can be found <a
href="http://monoevo.sf.net/mwn/archives.html">here</a>.
We have a <a href="http://www.nullenvoid.com/gtksharp/wiki">Gtk# Wiki</a>
and a <a href="http://www.nullenvoid.com/mono/wiki">Mono Wiki</a>
Wikis: <a href="http://www.nullenvoid.com/gtksharp/wiki">Gtk# Wiki</a>
and <a href="http://www.nullenvoid.com/mono/wiki">Mono
Wiki</a>
</td>
<td>
@@ -151,6 +142,60 @@
</tr>
</table>
@item Sep 1st, 2003: Ice for Mono; XmlSerializer generators; Monodoc progress.
<b>Ice:</b> Vladimir has checked into CVS (Module ginzu) an
implementation of <a href="http://www.zeroc.com">ZeroC's</a>
<a href="http://www.zeroc.com/ice.html">ICE</a> protocol. It
is implemented using Remoting. If you were looking for an
efficient binary protocol to use with Remoting, this is it.
ICE is simpler to use than CORBA, and was created by people
who were deeply involved in CORBA and wanted to fix its
problems (you can see a <a
href="http://www.zeroc.com/iceVsCorba.html">list of
differences</a>).
<b>XmlSerializer</b>: Lluis has checked in a new technology
for use in our XmlSerializer: the XmlSerializer code
generator. Currently our XmlSerializer generates a
description of instructions for serializing data, these
instructions are later interpreted while using it: Reflection
is used to pull all the data. The code generator is the first
step into turning the Serializer from an intepreter into a
compiler and improving the performance of it.
Currently was used internally to implement the WSDL
serializer, in the future it will just be part of the standard
serialization process.
<b>MonoDoc:</b> New providers! Thanks to <a
href="http://www.jaggersoft.com/">Jon Jagger</a> for providing
us with his master XML files for the C# specification we now
have integrated the C# spec into Monodoc. Another provider is
the Error provider: now we include all the C# compiler errors
in the help system.
Alp has contributed various user interface improvement, and
updated our list widget for key navigation; Ben made the
matches window more useful and Joshua has helped us clean up
the ECMA provider even more.
@item Aug 14th, 2003: Mono 0.26 has been released
A new version of Mono is available, the new features include:
<a href="http://www.cairographics.org/">Cairo support</a>, <a
href="http://remoting-corba.sf.net">Remoting.Corba</a>
support, as well as a managed XSLT implementation.
Existing features have been improved vastly: better
Windows.Forms, runtime, faster compiler, web services, better
compliance to the spec and more.
Check out the <a
href="http://www.go-mono.com/archive/mono-0.26.html">Release
notes</a> for details.
@item Aug 9th, 2003: Python for .NET Preview 2 available; Mono Documentation site up.
Brian Lloyd has <a
@@ -394,7 +439,7 @@
that SourceGear Corporation will use Mono\x{2122} Project
technology to offer cross-platform versions of its
products. In addition, the companies have entered into a
development partnership under which Ximian® will provide
development partnership under which Ximian will provide
custom Mono development to enable delivery of SourceGear
products later this year. As a result, SourceGear will offer
both UNIX and Linux clients for its SourceGear Vault source
+1 -1
View File
@@ -111,7 +111,7 @@
<a href="mailto:[email protected]">Brian Lloyd</a> is
working on linking the Python runtime with the .NET runtime.
More information on the PS.NET project can be found <a
href="http://www.zope.org/Members/Brian/PythonNet/index_html">here</a>.
href="http://www.zope.org/Members/Brian/PythonNet">here</a>.
An FAQ document is available <a
href="http://www.zope.org/Members/Brian/PythonNet/FAQ.html">here</a>.
+5 -5
View File
@@ -43,7 +43,7 @@
in the Microsoft .NET Environment</a> is an article
by Mr. Venu who is a MySQL AB developer.</li>
<p>Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySQLClient is below.
<p>Testing for Mono's Mono.Data.MySql and ByteFX's ByteFX.Data.MySqlClient is below.
** Current Status
@@ -51,7 +51,7 @@
<ul>
<li>ByteFX.Data.MySQLClient
<li>ByteFX.Data.MySqlClient
<ul>
<li>Build and Runs on Microsoft .NET and Mono</li>
<li>Works with SQL# (command-line and GTK# GUI versions)</li>
@@ -109,7 +109,7 @@
The current plan for the MySQL data providers:
<ul>
<li>ByteFX.Data.MySQLClient
<li>ByteFX.Data.MySqlClient
<ul>
<li>Testing and fixes</li>
<li>Implement missing features</li>
@@ -163,7 +163,7 @@
<pre>
using System;
using System.Data;
using ByteFX.Data.MySQLClient;
using ByteFX.Data.MySqlClient;
public class Test
{
@@ -175,7 +175,7 @@
"User ID=myuserid;" +
"Password=mypassword;";
IDbConnection dbcon;
dbcon = new MySQLConnection(connectionString);
dbcon = new MySqlConnection(connectionString);
dbcon.Open();
IDbCommand dbcmd = dbcon.CreateCommand();
// requires a table to be created named employee
-246
View File
@@ -1,246 +0,0 @@
System.Object
System.Exception
System.ValueType
System.Delegate
System.MulticastDelegate
System.Enum
System.Activator
System.ArgIterator
System.__ComObject
System.TypedReference
System.Security.AllowPartiallyTrustedCallersAttribute
System.Runtime.Serialization.Formatter
System.Runtime.Serialization.FormatterConverter
System.Runtime.Serialization.FormatterServices
System.Runtime.Serialization.ObjectIDGenerator
System.Runtime.Serialization.ObjectManager
System.Reflection.ModuleResolveEventHandler
System.Reflection.Pointer
System.Globalization.CompareInfo
System.Globalization.HebrewCalendar
System.Globalization.HijriCalendar
System.Globalization.JapaneseCalendar
System.Globalization.KoreanCalendar
System.Globalization.SortKey
System.Globalization.StringInfo
System.Globalization.TaiwanCalendar
System.Globalization.TextElementEnumerator
System.Globalization.TextInfo
System.Globalization.ThaiBuddhistCalendar
System.IO.IsolatedStorage.IsolatedStorageFile
System.Reflection.Emit.MethodRental
System.Runtime.CompilerServices.AccessedThroughPropertyAttribute
System.Runtime.CompilerServices.CallConvCdecl
System.Runtime.CompilerServices.CallConvStdcall
System.Runtime.CompilerServices.CallConvThiscall
System.Runtime.CompilerServices.CallConvFastcall
System.Runtime.CompilerServices.CustomConstantAttribute
System.Runtime.CompilerServices.DateTimeConstantAttribute
System.Runtime.CompilerServices.DiscardableAttribute
System.Runtime.CompilerServices.DecimalConstantAttribute
System.Runtime.CompilerServices.CompilationRelaxationsAttribute
System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
System.Runtime.CompilerServices.IDispatchConstantAttribute
System.Runtime.CompilerServices.IsVolatile
System.Runtime.CompilerServices.IUnknownConstantAttribute
System.Runtime.CompilerServices.RequiredAttributeAttribute
System.Runtime.InteropServices.ArrayWithOffset
System.Runtime.InteropServices.DispIdAttribute
System.Runtime.InteropServices.ClassInterfaceType
System.Runtime.InteropServices.ClassInterfaceAttribute
System.Runtime.InteropServices.ComVisibleAttribute
System.Runtime.InteropServices.LCIDConversionAttribute
System.Runtime.InteropServices.ComRegisterFunctionAttribute
System.Runtime.InteropServices.ComUnregisterFunctionAttribute
System.Runtime.InteropServices.ProgIdAttribute
System.Runtime.InteropServices.ImportedFromTypeLibAttribute
System.Runtime.InteropServices.IDispatchImplType
System.Runtime.InteropServices.IDispatchImplAttribute
System.Runtime.InteropServices.ComSourceInterfacesAttribute
System.Runtime.InteropServices.ComConversionLossAttribute
System.Runtime.InteropServices.TypeLibTypeFlags
System.Runtime.InteropServices.TypeLibFuncFlags
System.Runtime.InteropServices.TypeLibVarFlags
System.Runtime.InteropServices.TypeLibTypeAttribute
System.Runtime.InteropServices.TypeLibFuncAttribute
System.Runtime.InteropServices.TypeLibVarAttribute
System.Runtime.InteropServices.ComImportAttribute
System.Runtime.InteropServices.PreserveSigAttribute
System.Runtime.InteropServices.ComAliasNameAttribute
System.Runtime.InteropServices.AutomationProxyAttribute
System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute
System.Runtime.InteropServices.CoClassAttribute
System.Runtime.InteropServices.ComEventInterfaceAttribute
System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.ComMemberType
System.Runtime.InteropServices.CurrencyWrapper
System.Runtime.InteropServices.DispatchWrapper
System.Runtime.InteropServices.ErrorWrapper
System.Runtime.InteropServices.ExtensibleClassFactory
System.Runtime.InteropServices.HandleRef
System.Runtime.InteropServices.InvalidComObjectException
System.Runtime.InteropServices.InvalidOleVariantTypeException
System.Runtime.InteropServices.TypeLibImporterFlags
System.Runtime.InteropServices.ExporterEventKind
System.Runtime.InteropServices.ITypeLibExporterNotifySink
System.Runtime.InteropServices.ITypeLibConverter
System.Runtime.InteropServices.MarshalDirectiveException
System.Runtime.InteropServices.ObjectCreationDelegate
System.Runtime.InteropServices.RuntimeEnvironment
System.Runtime.InteropServices.RegistrationServices
System.Runtime.InteropServices.SafeArrayRankMismatchException
System.Runtime.InteropServices.SafeArrayTypeMismatchException
System.Runtime.InteropServices.SEHException
System.Runtime.InteropServices.TypeLibConverter
System.Runtime.InteropServices.BIND_OPTS
System.Runtime.InteropServices.UCOMIBindCtx
System.Runtime.InteropServices.UCOMIConnectionPointContainer
System.Runtime.InteropServices.UCOMIConnectionPoint
System.Runtime.InteropServices.UCOMIEnumMoniker
System.Runtime.InteropServices.CONNECTDATA
System.Runtime.InteropServices.UCOMIEnumConnections
System.Runtime.InteropServices.UCOMIEnumConnectionPoints
System.Runtime.InteropServices.UCOMIEnumString
System.Runtime.InteropServices.UCOMIEnumVARIANT
System.Runtime.InteropServices.FILETIME
System.Runtime.InteropServices.UCOMIMoniker
System.Runtime.InteropServices.UCOMIPersistFile
System.Runtime.InteropServices.UCOMIRunningObjectTable
System.Runtime.InteropServices.STATSTG
System.Runtime.InteropServices.UCOMIStream
System.Runtime.InteropServices.DESCKIND
System.Runtime.InteropServices.BINDPTR
System.Runtime.InteropServices.UCOMITypeComp
System.Runtime.InteropServices.TYPEKIND
System.Runtime.InteropServices.TYPEFLAGS
System.Runtime.InteropServices.IMPLTYPEFLAGS
System.Runtime.InteropServices.TYPEATTR
System.Runtime.InteropServices.FUNCDESC
System.Runtime.InteropServices.IDLFLAG
System.Runtime.InteropServices.IDLDESC
System.Runtime.InteropServices.PARAMFLAG
System.Runtime.InteropServices.PARAMDESC
System.Runtime.InteropServices.TYPEDESC
System.Runtime.InteropServices.ELEMDESC
System.Runtime.InteropServices.VARDESC
System.Runtime.InteropServices.DISPPARAMS
System.Runtime.InteropServices.EXCEPINFO
System.Runtime.InteropServices.FUNCKIND
System.Runtime.InteropServices.INVOKEKIND
System.Runtime.InteropServices.CALLCONV
System.Runtime.InteropServices.FUNCFLAGS
System.Runtime.InteropServices.VARFLAGS
System.Runtime.InteropServices.UCOMITypeInfo
System.Runtime.InteropServices.SYSKIND
System.Runtime.InteropServices.LIBFLAGS
System.Runtime.InteropServices.TYPELIBATTR
System.Runtime.InteropServices.UCOMITypeLib
System.Runtime.InteropServices.UnknownWrapper
System.Runtime.Remoting.IObjectHandle
System.Runtime.Remoting.IRemotingTypeInfo
System.Runtime.Remoting.IChannelInfo
System.Runtime.Remoting.IEnvoyInfo
System.Runtime.Remoting.RemotingConfiguration
System.Runtime.Remoting.TypeEntry
System.Runtime.Remoting.ActivatedClientTypeEntry
System.Runtime.Remoting.ActivatedServiceTypeEntry
System.Runtime.Remoting.WellKnownClientTypeEntry
System.Runtime.Remoting.WellKnownServiceTypeEntry
System.Runtime.Remoting.RemotingException
System.Runtime.Remoting.ServerException
System.Runtime.Remoting.RemotingTimeoutException
System.Runtime.Remoting.RemotingServices
System.Runtime.Remoting.InternalRemotingServices
System.Runtime.Remoting.SoapServices
System.Runtime.Remoting.Activation.UrlAttribute
System.Runtime.Remoting.Messaging.IMessageSink
System.Runtime.Remoting.Messaging.AsyncResult
System.Runtime.Remoting.Messaging.CallContext
System.Runtime.Remoting.Messaging.ILogicalThreadAffinative
System.Runtime.Remoting.Messaging.InternalMessageWrapper
System.Runtime.Remoting.Messaging.IMethodCallMessage
System.Runtime.Remoting.Messaging.MethodCallMessageWrapper
System.Runtime.Remoting.Messaging.HeaderHandler
System.Runtime.Remoting.Messaging.IMessageCtrl
System.Runtime.Remoting.Messaging.IRemotingFormatter
System.Runtime.Remoting.Messaging.ReturnMessage
System.Runtime.Remoting.Messaging.MethodCall
System.Runtime.Remoting.Messaging.ConstructionCall
System.Runtime.Remoting.Messaging.MethodResponse
System.Runtime.Remoting.Messaging.ConstructionResponse
System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper
System.Runtime.Remoting.Messaging.OneWayAttribute
System.Runtime.Remoting.Messaging.MessageSurrogateFilter
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
System.Runtime.Remoting.Contexts.CrossContextDelegate
System.Runtime.Remoting.Contexts.ContextProperty
System.Runtime.Remoting.Contexts.IContextPropertyActivator
System.Runtime.Remoting.Contexts.IContributeClientContextSink
System.Runtime.Remoting.Contexts.IContributeDynamicSink
System.Runtime.Remoting.Contexts.IContributeEnvoySink
System.Runtime.Remoting.Contexts.IContributeObjectSink
System.Runtime.Remoting.Contexts.IContributeServerContextSink
System.Runtime.Serialization.Formatters.InternalRM
System.Runtime.Serialization.Formatters.InternalST
System.Runtime.Serialization.Formatters.SoapMessage
System.Runtime.Serialization.Formatters.SoapFault
System.Runtime.Serialization.Formatters.ServerFault
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
System.Security.Cryptography.CryptoConfig
System.Security.Cryptography.KeyedHashAlgorithm
System.Security.Cryptography.HMACSHA1
System.Security.Cryptography.MACTripleDES
System.Security.Cryptography.MaskGenerationMethod
System.Security.Cryptography.PasswordDeriveBytes
System.Security.Cryptography.PKCS1MaskGenerationMethod
System.Security.Cryptography.RC2
System.Security.Cryptography.RC2CryptoServiceProvider
System.Security.Cryptography.RSACryptoServiceProvider
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter
System.Security.Cryptography.RSAOAEPKeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1SignatureDeformatter
System.Security.Cryptography.RSAPKCS1SignatureFormatter
System.Security.Cryptography.SHA1Managed
System.Security.Cryptography.TripleDES
System.Security.Cryptography.TripleDESCryptoServiceProvider
System.Security.Permissions.EnvironmentPermission
System.Security.Permissions.FileDialogPermission
System.Security.Permissions.IsolatedStorageFilePermission
System.Security.Permissions.PrincipalPermissionAttribute
System.Security.Permissions.SecurityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermission
System.Security.Permissions.ReflectionPermission
System.Security.Permissions.RegistryPermission
System.Security.Permissions.PrincipalPermission
System.Security.Permissions.SiteIdentityPermission
System.Security.Permissions.StrongNameIdentityPermission
System.Security.Permissions.StrongNamePublicKeyBlob
System.Security.Permissions.UIPermission
System.Security.Permissions.UrlIdentityPermission
System.Security.Permissions.ZoneIdentityPermission
System.Security.Policy.ApplicationDirectory
System.Security.Policy.ApplicationDirectoryMembershipCondition
System.Security.Policy.FirstMatchCodeGroup
System.Security.Policy.Hash
System.Security.Policy.HashMembershipCondition
System.Security.Policy.NetCodeGroup
System.Security.Policy.PermissionRequestEvidence
System.Security.Policy.Publisher
System.Security.Policy.PublisherMembershipCondition
System.Security.Policy.Site
System.Security.Policy.SiteMembershipCondition
System.Security.Policy.StrongName
System.Security.Policy.StrongNameMembershipCondition
System.Security.Policy.UnionCodeGroup
System.Security.Policy.Url
System.Security.Policy.UrlMembershipCondition
System.Security.Policy.Zone
System.Security.Policy.ZoneMembershipCondition
System.Security.Principal.WindowsIdentity
System.Security.Principal.WindowsImpersonationContext
System.Security.Principal.WindowsPrincipal
System.Threading.CompressedStack
+1
View File
@@ -5,6 +5,7 @@
1,Team,team.html,team.src
1,Other sites,other.html,other.src
1,Old News,oldnews.html,oldnews.src
1,Bug Reporting,bugs.html,bugs.src
0,Mono,rationale.html,rationale.src
1,Runtime,runtime.html,runtime.src
2,Embedding,embedded-api.html,embedded-api.src
+7 -19
View File
@@ -9,7 +9,8 @@ CORCOMPARE=../../../mcs/tools/corcompare
OBJECTS= \
deploy/ado-net.html \
deploy/provider-factory.html \
deploy/bugs.html \
deploy/provider-factory.html \
deploy/mysql.html \
deploy/odbc.html \
deploy/oledb.html \
@@ -64,20 +65,6 @@ OBJECTS= \
deploy/testing.html \
deploy/tools.html \
deploy/winforms.html \
deploy/class-status.html \
deploy/class-status-corlib.html \
deploy/class-status-System.html \
deploy/class-status-System.Xml.html \
deploy/class-status-System.Drawing.html \
deploy/class-status-System.Data.html \
deploy/class-status-System.Web.html \
deploy/class-status-System.Web.Services.html \
deploy/class-status-Microsoft.VisualBasic.html \
deploy/class-status-System.EnterpriseServices.html \
deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html \
deploy/class-status-System.Security.html \
deploy/class-status-System.Windows.Forms.html \
deploy/class-status-Cscompmgd.html \
deploy/class-library.html \
deploy/classlib-doc.html
@@ -91,7 +78,7 @@ NON_HTML_SOURCES= \
../mono-build.sh \
../mono-build-w32.sh
all: $(OBJECTS) deploy/index.rss ../team
all: $(OBJECT) deploy/index.rss ../team
perl process.pl commands template.html.in deploy
-mkdir deploy/team
cp team/*png deploy/team
@@ -126,8 +113,9 @@ clean:
push:
cp -f $(NON_HTML_SOURCES) deploy
echo scp -P 2200 -r deploy/* [email protected]:/web/cvsmodules/mono
(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
#echo scp -P 2200 -r deploy/* [email protected]:/web/cvsmodules/mono
#(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
(cd deploy; rsync --verbose --recursive --checksum --update --rsh='ssh' . [email protected]:/web/cvsmodules/mono )
push2:
scp -r deploy/* primates:public_html/xxx
@@ -141,7 +129,7 @@ transform.exe: transform.cs
.PRECIOUS: src/%.src
src/%.src: ../% commands template.html.in #makefile
src/%.src: ../% commands template.html.in makefile
perl htmlify $< > $@
.PRECIOUS: ../class-status-%
+11 -2
View File
@@ -6,18 +6,21 @@
using System;
using System.IO;
using System.Xml;
using System.Text;
using RSS;
class X {
static RSS.RSS rss;
static Channel c;
static int item_count;
static int line;
static void PopulateRSS (StreamReader input)
{
string s;
while ((s = input.ReadLine ()) != null){
line++;
if (s.StartsWith ("@item "))
break;
}
@@ -52,6 +55,7 @@ class X {
} else {
description += "\n" + (s == "\n" ? "<p>" : s);
}
line++;
} while ((s = input.ReadLine ()) != null);
if (i != null){
@@ -76,7 +80,12 @@ class X {
using (FileStream fs = new FileStream (input, FileMode.Open)){
using (StreamReader input_stream = new StreamReader (fs)){
PopulateRSS (input_stream);
try {
PopulateRSS (input_stream);
} catch {
Console.WriteLine ("{0} failure while loading: {1}", line, input);
throw;
}
}
}
+1 -1
View File
@@ -1453,7 +1453,7 @@
<e-mail>[email protected]</e-mail>
<image>none.png</image>
<image>peterw.png</image>
<location>Cambridge, MA</location>
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

+26 -5
View File
@@ -15,6 +15,7 @@
.navi0 { font-size: 14px; font-weight: bold; background: #444444; }
.navi1 { font-size: 14px; font-weight: bold; left-margin: 10pt}
.navi2 { font-size: 10px; font-weight: bold; left-margin: 20pt}
.topmenu { font-size: 14px; font-weight: bold; }
.footnote { font-size: 12px; color: #aaaaaa; }
a.navi0 { color: #ffffff; text-decoration: none}
@@ -29,6 +30,10 @@
a.navi2:visited { color: #cccccc; }
a.navi2:hover { color: #ee9900; text-decoration: underline; }
a.topmenu { color: #ffffff; text-decoration: none; margin-left: 7px;}
a.topmenu:visited { color: #cccccc; }
a.topmenu:hover { color: #ee9900; text-decoration: underline; }
// -->
</style>
#CSS#
@@ -38,11 +43,27 @@
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><img src="images/pixel.gif" alt=""></td><!-- left border -->
<td colspan="4">
<a href="http://www.go-mono.com"><img src="images/mono-new.gif"
alt="mono-logo" border="0"></a></td>
<td><img src="images/pixel.gif" alt=""></td><!-- right border -->
<td><img src="images/pixel.gif" alt=""></td><!-- left border
-->
<td colspan="4">
<table>
<tr>
<td>
<a href="http://www.go-mono.com"><img
src="images/mono-new.gif" alt="mono-logo" border="0"></a>
</td>
<td>
<a class="topmenu" href="download.html">Downloads</a> |
<a class="topmenu" href="http://go-mono.com/daily">Daily snapshots</a> |
<a class="topmenu" href="screenshots.html">Screenshots</a> |
<a class="topmenu" href="http://www.go-mono.com:8080">Documentation</a> |
<a class="topmenu" href="bugs.html">Bugs</a>
</td>
</tr>
</table>
</td>
<td><img src="images/pixel.gif" alt=""></td><!-- right border
-->
</tr>
<tr>
<td><img src="images/pixel.gif" width="1" height="1" alt=""></td>
+3 -1
View File
@@ -195,7 +195,9 @@ for details on how to use this file.
.SH NOTES
During compilation the MCS compiler defines the __MonoCS__ symbol,
this can be used by pre-processor instructions to compile Mono C#
compiler specific code.
compiler specific code. Please note that this symbol is only to test
for the compiler, and is not useful to distinguish compilation or
deployment platforms.
.SH AUTHORS
The Mono C# Compiler was written by Miguel de Icaza, Ravi Pratap and
Martin Baulig at Ximian.
+9 -2
View File
@@ -115,8 +115,9 @@ Instructs the runtime to collect profiling information about execution
times and memory allocation, and dump it at the end of the execution.
If a profiler is not specified, the default profiler is used. profiler_args
is a profiler-specific string of options for the profiler itself.
.PP
The default profiler accepts -time and -alloc to options to disable
the time profiling or the memory allocation profilng.
.SH JIT MAINTAINER OPTIONS
The maintainer options are only used by those developing the runtime
itself, and not typically of interest to runtime users or developers.
@@ -195,6 +196,12 @@ If set, this variable overrides the default system configuration directory
If set, this variable overrides the default runtime configuration file
($PREFIX/etc/mono/config). The --config command line options overrides the
environment variable.
.TP
.I "MONO_DEBUG"
If set, enables some features of the runtime useful for debugging.
Currently it only makes the runtime display the stack traces for all the
threads running and exit. It may not exit cleanly. Use at your own risk.
.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
-1
View File
@@ -41,7 +41,6 @@ DISTFILES = \
MIT.X11 \
MonoIcon.png \
README \
README.building \
ScalableMonoIcon.svg \
winexe.in
+1 -2
View File
@@ -25,5 +25,4 @@ endif
profile-check:
# Causes some build errors
#PROFILE_MCS_FLAGS = /d:NET_1_1
PROFILE_MCS_FLAGS = -d:NET_1_1
+1 -1
View File
@@ -26,4 +26,4 @@ endif
profile-check:
# Causes some build errors
PROFILE_MCS_FLAGS = -d:GENERICS
PROFILE_MCS_FLAGS = -d:GENERICS -d:NET_1_1
+1 -1
View File
@@ -13,7 +13,7 @@
dots := $(shell echo $(thisdir) |sed -e 's,[^./][^/]*,..,g')
topdir := $(dots)
VERSION = 0.25.99
VERSION = 0.26.99
USE_MCS_FLAGS = $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS)
USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS)
@@ -1,3 +1,13 @@
2003-09-07 Cesar Lopez Nataren <[email protected]>
* Context.cs: Added constructor and Document field.
* DocumentContext.cs: Added Name field.
* JSParser.cs: Integration of antlr's generated parser with
JSParser public API. ScriptBlock is now the principal data structure that
represents a Jscript .Net program.
* JSScanner.cs: Integration of antlr's generated lexer with
JSScanner public API.
2003-07-27 Cesar Lopez Nataren <[email protected]>
* Added files StringLiteral.cs, CodeGenerator.cs and Print.cs.
@@ -1,9 +1,10 @@
//
// Context.cs:
//
// Author: Cesar Octavio Lopez Nataren
// Author:
// Cesar Lopez Nataren ([email protected])
//
// (C) 2003, Cesar Octavio Lopez Nataren, <[email protected]>
// (C) 2003, Cesar Lopez Nataren
//
namespace Microsoft.JScript.Tmp
@@ -12,6 +13,13 @@ namespace Microsoft.JScript.Tmp
public class Context
{
internal DocumentContext Document;
internal Context (string filename)
{
Document = new DocumentContext (filename);
}
public int EndColumn {
get { throw new NotImplementedException (); }
}
@@ -10,5 +10,12 @@
namespace Microsoft.JScript.Tmp
{
public class DocumentContext
{}
{
internal string Name;
internal DocumentContext (string filename)
{
Name = filename;
}
}
}
@@ -13,15 +13,21 @@ namespace Microsoft.JScript.Tmp
public class JSParser
{
internal JScriptParser Parser;
public JSParser (Context context)
{
throw new NotImplementedException ();
JSScanner scanner = new JSScanner (context);
Parser = new JScriptParser (scanner.Lexer);
}
public ScriptBlock Parse ()
{
throw new NotImplementedException ();
ScriptBlock prog = new ScriptBlock ();
Parser.program (prog);
return prog;
}
@@ -10,18 +10,21 @@
namespace Microsoft.JScript.Tmp
{
using System;
using System.IO;
public sealed class JSScanner
{
public JSScanner ()
{
throw new NotImplementedException ();
}
internal JScriptLexer Lexer;
public JSScanner ()
{}
public JSScanner (Context sourceContext)
{
throw new NotImplementedException ();
string filename = sourceContext.Document.Name;
StreamReader file = new StreamReader (filename);
Lexer = new JScriptLexer (file);
}
+43
View File
@@ -0,0 +1,43 @@
//
// AssemblyInfo.cs
//
// Author:
// Andreas Nahr ([email protected])
//
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Reflection;
using System.Resources;
using System.Security;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about the system assembly
#if (WSE1)
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: SatelliteContractVersion("1.0.0.0")]
#endif
#if (WSE2)
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: SatelliteContractVersion("2.0.0.0")]
// [assembly: ComCompatibleVersion(1, 0, 3300, 0)]
// [assembly: TypeLibVersion(1, 10)]
#endif
[assembly: AssemblyTitle("Microsoft.Web.Services.dll")]
[assembly: AssemblyDescription("Web Service Enhancement")]
[assembly: AssemblyConfiguration("Development version")]
[assembly: AssemblyCompany("MONO development team")]
[assembly: AssemblyProduct("MONO CLI")]
[assembly: AssemblyCopyright("(c) 2003 Various Authors")]
[assembly: CLSCompliant(true)]
[assembly: AssemblyDefaultAlias("Microsoft.Web.Services.dll")]
[assembly: AssemblyInformationalVersion("0.0.0.1")]
[assembly: NeutralResourcesLanguage("en-US")]
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]
+9
View File
@@ -0,0 +1,9 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Removed AllowPartiallyTrustedCallers
2003-09-04 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Added. Copied from corlib and ajusted for WSE.
* Locale.cs: Added. Copied from corlib.
* ChangeLog: Added
+24
View File
@@ -0,0 +1,24 @@
//
// Locale.cs
//
// Author:
// Miguel de Icaza ([email protected])
// Andreas Nahr ([email protected])
//
// (C) 2001 - 2003 Ximian, Inc (http://www.ximian.com)
//
internal sealed class Locale {
private Locale ()
{
}
/// <summary>
/// Returns the translated message for the current locale
/// </summary>
public static string GetText (string msg)
{
return msg;
}
}
@@ -0,0 +1,36 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added stubbed input/output soap
filters for Routing and Referral so Configuration can be compiled.
2003-09-06 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added another shared (and
renamed) file from System.Security assembly (Signature.cs ->
SignedXmlSignature.cs).
2003-09-05 Sebastien Pouliot <[email protected]>
* Microsoft.Web.Services.dll.sources: Added stubbed classes from
Microsoft.Web.Services.Configuration to fix compilation.
2003-09-04 Sebastien Pouliot <[email protected]>
* Makefile: Added reference to System.Security assembly and a define
for WSE1 (required for classes shared between SS and WSE).
* Microsoft.Web.Services.dll.sources: Added (shared) files from
System.Security assembly. Removed unused files. Added Assembly files.
2003-09-04 Duncan Mak <[email protected]>
* Integrate the files from Sebastien.
2003-09-02 Duncan Mak <[email protected]>
* Microsoft.Web.Services/Soap.cs:
* Microsoft.Web.Services/IXmlElement.cs: Implemented.
2003-09-02 Daniel Kornhauser <[email protected]>
* Microsoft.Web.Services: All Exceptions in this assembly
implemented.
@@ -0,0 +1,9 @@
thisdir = class/Microsoft.Web.Services
SUBDIRS =
include ../../build/rules.make
LIBRARY = Microsoft.Web.Services.dll
LIB_MCS_FLAGS = /r:System.dll /r:System.Security.dll /r:System.Web.dll /r:System.Web.Services.dll /r:System.Xml.dll /r:System.Security.dll /r:Mono.Security.dll /d:WSE1
NO_TEST = yes
include ../../build/library.make
@@ -0,0 +1,28 @@
//
// Microsoft.Web.Services.Addressing.AddressingFormatException.cs
//
// Author: Daniel Kornhauser [email protected]
//
// (C) Copyright, Ximian, Inc.
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Addressing {
[Serializable]
public class AddressingFormatException : SoapHeaderException
{
public static readonly string MissingActionElement
= "The <{0}> element should not have any child nodes other than text.";
public AddressingFormatException (string message)
: base (message, XmlQualifiedName.Empty)
{
}
}
}
@@ -0,0 +1,11 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* ConfigurationBase.cs: Completed implementation (both WSE1 and WSE2).
* FilterConfiguration.cs: Now returns the default input/output filters.
* WebServicesConfiguration.cs: Works for WSE1. Added WSE2 stubs.
2003-09-05 Sebastien Pouliot <[email protected]>
* ConfigurationBase.cs: New. Limited implementation to fix compile.
* FilterConfiguration.cs: New. Stub to fix compile.
* WebServicesConfiguration.cs: New. Stub to fix compile.
@@ -0,0 +1,106 @@
//
// FilterConfiguration.cs: Filter Configuration
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.Configuration;
using System.Xml;
namespace Microsoft.Web.Services.Configuration {
public class ConfigurationBase {
public ConfigurationBase () {}
protected static void CheckForChildNodes (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.HasChildNodes)
throw new ConfigurationException (Locale.GetText ("has child nodes"));
}
protected static void CheckForDuplicateChildNodes (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
int n = node.ChildNodes.Count;
if (n > 1) {
// (n - 1) last is unimportant
for (int i=0; i < n - 1; i++) {
string xname = node.ChildNodes [i].Name;
// (i + 1) don't look back (again)
for (int j=i+1; j < n; i++) {
if (xname == node.ChildNodes [j].Name)
throw new ConfigurationException (Locale.GetText ("found duplicate nodes"));
}
}
}
}
protected static void CheckForUnrecognizedAttributes (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.Attributes.Count > 0)
throw new ConfigurationException (Locale.GetText ("node has attributes"));
}
protected static XmlNode GetAndRemoveAttribute (XmlNode node, string attrib, bool fRequired)
{
if (node == null)
throw new ArgumentNullException ("node");
XmlNode xn = node.Attributes [attrib];
if (xn != null)
node.Attributes.Remove (xn as XmlAttribute);
else if (fRequired)
throw new ConfigurationException (Locale.GetText ("missing required attribute"));
return xn;
}
protected static XmlNode GetAndRemoveBoolAttribute (XmlNode node, string attrib, bool fRequired, ref bool val)
{
XmlNode xn = GetAndRemoveAttribute (node, attrib, fRequired);
if (xn != null)
val = Convert.ToBoolean (xn.Value);
return xn;
}
#if WSE2
protected static XmlNode GetAndRemoveIntegerAttribute (XmlNode node, string attrib, bool fRequired, ref int val)
{
XmlNode xn = GetAndRemoveAttribute (node, attrib, fRequired);
if (xn != null)
val = Convert.ToInt32 (xn.Value);
return xn;
}
#endif
protected static XmlNode GetAndRemoveStringAttribute (XmlNode node, string attrib, bool fRequired, ref string val)
{
XmlNode xn = GetAndRemoveAttribute (node, attrib, fRequired);
if (xn != null)
val = xn.Value;
return xn;
}
protected static void ThrowIfElement (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.NodeType == XmlNodeType.Element)
throw new ConfigurationException (Locale.GetText ("node is XmlNodeType.Element"));
}
protected static void ThrowIfNotComment (XmlNode node)
{
if (node == null)
throw new ArgumentNullException ("node");
if (node.NodeType != XmlNodeType.Comment)
throw new ConfigurationException (Locale.GetText ("node isn't XmlNodeType.Comment"));
}
}
}
@@ -0,0 +1,54 @@
//
// FilterConfiguration.cs: Filter Configuration
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using Microsoft.Web.Services;
using Microsoft.Web.Services.Configuration;
using Microsoft.Web.Services.Security;
using Microsoft.Web.Services.Timestamp;
using Microsoft.Web.Services.Referral;
using Microsoft.Web.Services.Routing;
namespace Microsoft.Web.Services.Configuration {
public sealed class FilterConfiguration : ConfigurationBase {
private SoapInputFilterCollection input;
private SoapOutputFilterCollection output;
[MonoTODO("see <filters> in WSE documentation")]
internal FilterConfiguration ()
{
input = new SoapInputFilterCollection ();
// the following 4 filters always seems present (notwithstanding config)
input.Add (new SecurityInputFilter ());
input.Add (new TimestampInputFilter ());
input.Add (new ReferralInputFilter ());
input.Add (new RoutingInputFilter ());
// TODO: add custom input filters
output = new SoapOutputFilterCollection ();
// the following 4 filters always seems present (notwithstanding config)
output.Add (new SecurityOutputFilter ());
output.Add (new TimestampOutputFilter ());
output.Add (new ReferralOutputFilter ());
output.Add (new RoutingOutputFilter ());
// TODO: add custom output filters
}
public SoapInputFilterCollection InputFilters {
get { return input; }
}
public SoapOutputFilterCollection OutputFilters {
get { return output; }
}
}
}
@@ -0,0 +1,41 @@
//
// WebServicesConfiguration.cs: Web Services Configuration
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.Configuration;
using System.Xml;
namespace Microsoft.Web.Services.Configuration {
public sealed class WebServicesConfiguration : ConfigurationBase, IConfigurationSectionHandler {
public static FilterConfiguration FilterConfiguration {
get { return new FilterConfiguration (); }
}
#if WSE2
[MonoTODO()]
public static MessagingConfiguration MessagingConfiguration {
get { return null; }
}
[MonoTODO()]
public static TokenIssuerConfiguration TokenIssuerConfiguration {
get { return null; }
}
#endif
// from IConfigurationSectionHandler
[MonoTODO()]
object IConfigurationSectionHandler.Create (object parent, object configContext, XmlNode section)
{
return null;
}
}
}
@@ -0,0 +1,4 @@
2003-09-04 Sebastien Pouliot <[email protected]>
* DimeAttachmentCollection.cs: Fixed compilation issues
* DimeReader.cs: Fixed compilation issues
@@ -0,0 +1,99 @@
//
// Microsoft.Web.Services.Dime.DimeAttachment.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.IO;
namespace Microsoft.Web.Services.Dime {
public class DimeAttachment
{
int chunk_size = Int32.MaxValue; // docs list this as default
string id;
string type;
Stream stream;
TypeFormatEnum type_format;
public DimeAttachment ()
{
id = String.Empty;
stream = null;
type = null;
type_format = TypeFormatEnum.Unchanged;
}
public DimeAttachment (string type, TypeFormatEnum typeFormat, string path)
{
this.type = type;
this.type_format = typeFormat;
if (File.Exists (path) == false)
throw new FileNotFoundException (
Locale.GetText ("The path is not valid."));
}
public DimeAttachment (string type, TypeFormatEnum typeFormat, Stream stream)
{
this.type = type;
this.type_format = typeFormat;
this.stream = stream;
}
public DimeAttachment (string id, string type, TypeFormatEnum typeFormat, string path)
: this (type, typeFormat, path)
{
this.id = id;
}
public DimeAttachment (string id, string type, TypeFormatEnum typeFormat, Stream stream)
: this (type, typeFormat, stream)
{
this.id = id;
}
public int ChunkSize {
get { return chunk_size; }
set { chunk_size = value; }
}
public string Id {
get { return id; }
set { id = value; }
}
public Stream Stream {
get { return stream; }
set {
if (value == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
stream = value;
}
}
public string Type {
get { return type; }
set { type = value; }
}
public TypeFormatEnum TypeFormat {
get { return type_format; }
set { type_format = value; }
}
}
}
@@ -0,0 +1,91 @@
//
// Microsoft.Web.Services.Dime.DimeAttachmentCollection.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using Microsoft.Web.Services;
using System;
using System.Collections;
using System.Globalization;
namespace Microsoft.Web.Services.Dime {
public class DimeAttachmentCollection : CollectionBase
{
DimeReader reader;
public DimeAttachmentCollection ()
{
}
public DimeAttachmentCollection (DimeReader reader)
{
if (reader == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
if (reader.CanRead == false)
throw new ArgumentException (
Locale.GetText ("The reader is not readable"));
this.reader = reader;
}
public DimeAttachment this [int key] {
get {
return (DimeAttachment) InnerList [key];
}
}
public DimeAttachment this [string key] {
get {
// FIXME: must iterate in collection
return null;
}
}
public void Add (DimeAttachment attachment)
{
InnerList.Add (attachment);
}
public void AddRange (ICollection collection)
{
foreach (object o in collection)
InnerList.Add (o);
}
public bool Contains (string id)
{
return InnerList.Contains (id);
}
public void CopyTo (DimeAttachment[] attachments, int index)
{
InnerList.CopyTo (attachments, index);
}
public int IndexOf (DimeAttachment attachment)
{
return InnerList.IndexOf(attachment);
}
public int IndexOf (string id)
{
return InnerList.IndexOf(id);
}
public void Remove (DimeAttachment attachment)
{
InnerList.Remove (attachment);
}
}
}
@@ -0,0 +1,29 @@
//
// Microsoft.Web.Services.DimeFormatException.cs
//
// Author: Daniel Kornhauser [email protected]
//
// (C) Copyright, Ximian, Inc.
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Dime {
[Serializable]
public class DimeFormatException: SoapHeaderException
{
public DimeFormatException (string message)
: base (String.Empty, XmlQualifiedName.Empty)
{
}
public DimeFormatException (string message, Exception ex)
: base (message, XmlQualifiedName.Empty, ex)
{
}
}
}
@@ -0,0 +1,59 @@
//
// Microsoft.Web.Services.Dime.DimeReader.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.IO;
namespace Microsoft.Web.Services.Dime {
public class DimeReader
{
Stream stream;
bool opened;
public DimeReader (Stream stream)
{
if (stream == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
if (stream.CanRead == false)
throw new ArgumentException (
Locale.GetText ("The stream is not readable"));
this.stream = stream;
opened = true;
}
public void Close ()
{
if (opened == false)
throw new InvalidOperationException (
Locale.GetText ("The stream is currently open."));
stream.Close ();
opened = false;
}
public bool CanRead {
get { return stream.CanRead; }
}
[MonoTODO]
public DimeRecord ReadRecord ()
{
if (opened == false)
throw new InvalidOperationException (
Locale.GetText ("The stream is currently closed."));
opened = true;
throw new NotImplementedException ();
}
}
}
@@ -0,0 +1,18 @@
//
// Microsoft.Web.Services.Dime.DimeRecord.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.IO;
namespace Microsoft.Web.Services.Dime {
[MonoTODO]
public class DimeRecord
{
}
}
@@ -0,0 +1,20 @@
//
// Microsfot.Web.Services.TypeFormatEnum.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// (C) Copyright, Ximian, Inc.
//
namespace Microsoft.Web.Services.Dime {
public enum TypeFormatEnum
{
Unchanged = 0,
MediaType = 16,
AbsoluteUri = 32,
Unknown = 48,
None = 64
}
}
@@ -0,0 +1,17 @@
// Microsoft.Web.Services.Messaging.ISoapFormmatter.cs
//
// Author: Duncan Mak <[email protected]>
//
// (C) Ximian, Inc. 2003.
using System.IO;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Messaging {
public interface ISoapFormatter {
SoapEnvelope Deserialize (Stream stream);
void Serialize (SoapEnvelope envelope, Stream stream);
}
}
@@ -0,0 +1,50 @@
//
// Microsoft.Web.Services.Messaging.ISoapTransport.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// (C) Ximian, Inc. 2003.
//
using System;
using System.IO;
using System.Net;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Messaging {
public interface ISoapTransport {
ICredentials Credentials { get; set; }
int IdleTimeout { get; set; }
string Scheme { get; }
IAsyncResult BeginSend (
SoapEnvelope envelope,
Uri destination,
AsyncCallback callback,
object state);
void EndSend (IAsyncResult result);
void RegisterPort (Uri to, Type port);
void RegisterPort (Uri to, SoapReceiver receiver);
void Send (SoapEnvelope envelop, Uri destination);
void UnregisterAll ();
void UnregisterPort (Uri to);
}
}
@@ -0,0 +1,6 @@
namespace Microsoft.Web.Services.Messaging {
public abstract class SoapPort
{
}
}
@@ -0,0 +1,22 @@
using System;
using System.Web;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Messaging {
public abstract class SoapReceiver : SoapPort, IHttpHandler
{
[MonoTODO]
public bool IsReusable {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public void ProcessRequest (HttpContext context)
{
throw new NotImplementedException ();
}
}
}
@@ -0,0 +1,24 @@
//
// Microsoft.Web.Services.PolicyEnforcementException.cs
//
// Author Daniel Kornhauser [email protected]
//
// (C) Copyright, Ximian, Inc. 2003.
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Policy {
[Serializable]
public class PolicyEnforcementException : SoapException
{
public PolicyEnforcementException (string message)
: base (message, XmlQualifiedName.Empty)
{
}
}
}
@@ -0,0 +1,22 @@
2003-09-07 Sebastien Pouliot <[email protected]>
* Referral.cs: Removed virtual from Clone/GetXml/LoadXml for WSE1
(corcompare).
* ReferralCollection.cs: Removed virtual from LoadXml/GetXml/
GetEnumerator/CopyTo/Count/IsSynchronized/SyncRoot for WSE1
(corcompare)
* ReferralException.cs: Removed ReferralFormatException implementation
and added ReferralException.
* ReferralFormatException.cs: Moved code from ReferralException.cs and
added missing string constants.
* ReferralInputFilter.cs: Added missing TODO.
* ReferralOutputFilter.cs: Added missing TODO.
2003-09-06 Sebastien Pouliot <[email protected]>
* ReferralInputFilter.cs: Stubbed for compilation (configuration).
* ReferralOutputFilter.cs: Stubbed for compilation (configuration)
2003-09-04 Sebastien Pouliot <[email protected]>
* ReferralCollection.cs: Added missing ICollection properties.
@@ -0,0 +1,34 @@
//
// Microsoft.Web.Services.Referral.Desc.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
namespace Microsoft.Web.Services.Referral {
public class Desc
{
Uri uri;
public Desc ()
{
}
public Uri RefAddr {
get {
return uri;
}
set {
if (value.AbsoluteUri != value.ToString ())
throw new ArgumentException (
Locale.GetText ("uri is not absolute"));
uri = value;
}
}
}
}
@@ -0,0 +1,45 @@
//
// Microsoft.Web.Services.Referral.For.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
namespace Microsoft.Web.Services.Referral {
public class For
{
Uri exact;
Uri prefix;
public For ()
{
}
[MonoTODO]
public Uri Exact {
get {
return exact;
}
set {
exact = value;
}
}
[MonoTODO]
public Uri Prefix {
get {
return prefix;
}
set {
prefix = value;
}
}
}
}
@@ -0,0 +1,43 @@
//
// Microsoft.Web.Service.Referral.If.cs
//
// Name: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
namespace Microsoft.Web.Services.Referral {
public class If
{
UriList uris;
long milliseconds;
public If()
{
}
public UriList Invalidates{
get {
return uris;
}
}
[MonoTODO]
public long Ttl {
get {
return milliseconds;
}
set {
milliseconds = value;
}
}
}
}
@@ -0,0 +1,117 @@
//
// Microsoft.Web.Services.Referral.Referral.cs
//
// Authors:
// Duncan Mak ([email protected])
// Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Collections;
using System.Globalization;
using System.Web.Services.Protocols;
using System.Xml;
using Microsoft.Web.Services.Routing;
namespace Microsoft.Web.Services.Referral {
public class Referral : ICloneable, IXmlElement
{
Uri uri;
public Referral ()
{
}
public Referral (Uri uri)
{
this.uri = uri;
}
[MonoTODO]
public void CheckValid ()
{
}
#if WSE1
public object Clone ()
#else
public virtual object Clone ()
#endif
{
return new Referral (uri);
}
[MonoTODO]
#if WSE1
public XmlElement GetXml (XmlDocument document)
#else
public virtual XmlElement GetXml (XmlDocument document)
#endif
{
if (document == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
[MonoTODO]
#if WSE1
public void LoadXml (XmlElement element)
#else
public virtual void LoadXml (XmlElement element)
#endif
{
if (element == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
[MonoTODO]
public Desc Desc {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public ViaCollection Go {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public For For{
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public If If {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public Uri RefId {
get {
throw new NotImplementedException ();
}
set {
if (value == null)
throw new ArgumentNullException ();
throw new NotImplementedException ();
}
}
}
}
@@ -0,0 +1,130 @@
//
// Microsoft.Web.Services.Referral.ReferralCollection.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Collections;
using System.Globalization;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Referral {
public class ReferralCollection : SoapHeader, ICollection, IEnumerable, IXmlElement
{
ArrayList list;
public ReferralCollection ()
{
list = new ArrayList ();
}
public void Add (Referral referral)
{
list.Add (referral);
}
public void AddRange (Referral [] referrals)
{
list.AddRange (referrals);
}
public void Clear ()
{
list.Clear ();
}
public bool Contains (Referral referral)
{
return list.Contains (referral);
}
public bool Contains (Uri uri)
{
return list.Contains (new Referral (uri));
}
#if WSE1
public void CopyTo (Array array, int index)
#else
public virtual void CopyTo (Array array, int index)
#endif
{
list.CopyTo (array, index);
}
#if WSE1
public int Count {
#else
public virtual int Count {
#endif
get { return list.Count; }
}
#if WSE1
public IEnumerator GetEnumerator ()
#else
public virtual IEnumerator GetEnumerator ()
#endif
{
return list.GetEnumerator ();
}
[MonoTODO]
#if WSE1
public XmlElement GetXml (XmlDocument document)
#else
public virtual XmlElement GetXml (XmlDocument document)
#endif
{
if (document == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
#if WSE1
public bool IsSynchronized {
#else
public virtual bool IsSynchronized {
#endif
get { return list.IsSynchronized; }
}
[MonoTODO]
#if WSE1
public void LoadXml (XmlElement element)
#else
public virtual void LoadXml (XmlElement element)
#endif
{
if (element == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
public void Remove (Referral referral)
{
list.Remove (referral);
}
public void Remove (Uri uri)
{
list.Remove (new Referral (uri));
}
#if WSE1
public object SyncRoot {
#else
public virtual object SyncRoot {
#endif
get { return list.SyncRoot; }
}
}
}
@@ -0,0 +1,24 @@
//
// Microsoft.Web.Services.Referral.ReferralException.cs
//
// Authors:
// Daniel Kornhauser <[email protected]>
// Sebastien Pouliot ([email protected])
//
// (C) Ximian, Inc. 2003.
// Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Referral {
[Serializable]
public class ReferralException : SystemException {
public ReferralException (string message) : base (message) {}
public ReferralException (string message, Exception ex) : base (message, ex) {}
}
}
@@ -0,0 +1,70 @@
//
// Microsoft.Web.Services.Referral.ReferralFormatException.cs
//
// Authors:
// Daniel Kornhauser <[email protected]>
// Sebastien Pouliot ([email protected])
//
// (C) Ximian, Inc. 2003.
// Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// TODO: Figure out what the Uri parameter does.
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Referral {
[Serializable]
[MonoTODO("I18N")]
public class ReferralFormatException : SoapHeaderException {
public static readonly string BadDescValue = Locale.GetText ("BadDescValue");
public static readonly string BadExactValue = Locale.GetText ("BadExactValue");
public static readonly string BadMatchCombination = Locale.GetText ("BadMatchCombination");
public static readonly string BadPrefixValue = Locale.GetText ("BadPrefixValue");
public static readonly string BadRefAddrValue = Locale.GetText ("BadRefAddrValue");
public static readonly string BadRefIdValue = Locale.GetText ("BadRefIdValue");
public static readonly string BadRidValue = Locale.GetText ("BadRidValue");
public static readonly string BadTransport = Locale.GetText ("BadTransport");
public static readonly string BadTtlValue = Locale.GetText ("BadTtlValue");
public static readonly string BadViaValue = Locale.GetText ("BadViaValue");
public static readonly string DuplicateDescElement = Locale.GetText ("DuplicateDescElement");
public static readonly string DuplicateExactElement = Locale.GetText ("DuplicateExactElement");
public static readonly string DuplicateForElement = Locale.GetText ("DuplicateForElement");
public static readonly string DuplicateGoElement = Locale.GetText ("DuplicateGoElement");
public static readonly string DuplicateIfElement = Locale.GetText ("DuplicateIfElement");
public static readonly string DuplicatePrefixElement = Locale.GetText ("DuplicatePrefixElement");
public static readonly string DuplicateRefIdElement = Locale.GetText ("DuplicateRefIdElement");
public static readonly string ExactIsNotAbsoluteUri = Locale.GetText ("ExactIsNotAbsoluteUri");
public static readonly string MissingForElement = Locale.GetText ("MissingForElement");
public static readonly string MissingGoElement = Locale.GetText ("MissingGoElement");
public static readonly string MissingRefIdElement = Locale.GetText ("MissingRefIdElement");
public static readonly string MissingRidElement = Locale.GetText ("MissingRidElement");
public static readonly string MissingViaElement = Locale.GetText ("MissingViaElement");
public static readonly string MoreThanOneReferralHeaders = Locale.GetText ("MoreThanOneReferralHeaders");
public static readonly string NegativeTtlValue = Locale.GetText ("NegativeTtlValue");
public static readonly string PrefixIsNotAbsoluteUri = Locale.GetText ("PrefixIsNotAbsoluteUri");
public static readonly string RefAddrIsNotAbsoluteUri = Locale.GetText ("RefAddrIsNotAbsoluteUri");
public static readonly string SignedTtlValue = Locale.GetText ("SignedTtlValue");
public static readonly string ViaIsNotAbsoluteUri = Locale.GetText ("ViaIsNotAbsoluteUri");
Uri reference;
public ReferralFormatException (string message)
: base (message, XmlQualifiedName.Empty) {
}
public ReferralFormatException (Uri refid, string message)
: base (message, XmlQualifiedName.Empty) {
reference = refid;
}
public ReferralFormatException (Uri refid, string message, Exception innerException)
: base (message, XmlQualifiedName.Empty, innerException) {
reference = refid;
}
}
}
@@ -0,0 +1,26 @@
//
// ReferralInputFilter.cs: Referral SOAP Input Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Referral {
public class ReferralInputFilter : SoapInputFilter {
public ReferralInputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -0,0 +1,26 @@
//
// ReferralOutputFilter.cs: Referral SOAP Output Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Referral {
public class ReferralOutputFilter : SoapOutputFilter {
public ReferralOutputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -0,0 +1,21 @@
2003-09-07 Sebastien Pouliot <[email protected]>
* Path.cs: Constructors are internal and Clone is non virtual in WSE1
(corcompare). Added missing properties (many are obsolete in WSE2).
* RoutingInputFilter.cs: Added missing TODO.
* RoutingOutputFilter.cs: Added missing TODO.
* Via.cs: Removed virtual from Clone for WSE1 (corcompare).
* ViaCollection.cs: Removed virtual from Clone/GetEnumerator/CopyTo/
SyncRoot for WSE1 (corcompare).
* WSRouting.cs: New. Routing constant strings.
2003-09-06 Sebastien Pouliot <[email protected]>
* RoutingInputFilter.cs: Stubbed for compilation (configuration).
* RoutingOutputFilter.cs: Stubbed for compilation (configuration).
2003-09-04 Sebastien Pouliot <[email protected]>
* Path.cs: Corrected typos to fix compilation.
* Via.cs: Corrected typos to fix compilation.
* ViaCollection.cs: Corrected typos to fix compilation.
@@ -0,0 +1,127 @@
//
// Microsoft.Web.Services.Routing.Path.cs
//
// Name: Duncan Mak ([email protected])
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Globalization;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Routing {
[MonoTODO]
public class Path : SoapHeader, ICloneable
{
XmlElement element;
#if WSE1
internal Path () {}
#else
public Path () {}
#endif
#if WSE1
internal Path (XmlElement element)
#else
public Path (XmlElement element)
#endif
{
this.element = element;
}
[MonoTODO]
public void CheckValid ()
{
}
[MonoTODO]
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
throw new NotImplementedException ();
}
[MonoTODO]
public void LoadXml (XmlElement element)
{
if (element == null)
throw new ArgumentNullException (
Locale.GetText ("Argument is null."));
}
[MonoTODO]
#if WSE1
public object Clone ()
#else
public virtual object Clone ()
#endif
{
throw new NotImplementedException ();
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public string Action {
get { return null; }
set { ; }
}
/* [MonoTODO]
public RoutingFault Fault {
get { return null; }
set { ; }
}*/
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri From {
get { return null; }
set { ; }
}
[MonoTODO]
public ViaCollection Fwd {
get { return null; }
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri Id {
get { return null; }
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri RelatesTo {
get { return null; }
set { ; }
}
[MonoTODO]
public ViaCollection Rev {
get { return null; }
set { ; }
}
#if !WSE1
[Obsolete]
#endif
[MonoTODO]
public Uri To {
get { return null; }
}
}
}
@@ -0,0 +1,25 @@
// Microsoft.Web.Services.Routing.RoutingFormatException.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// (C) Ximian, Inc. 2003
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Routing {
[Serializable]
public class RoutingFormatException : SoapHeaderException
{
public RoutingFormatException (string message) : base (message, XmlQualifiedName.Empty)
{
}
public RoutingFormatException (string message, Exception ex) : base (message, XmlQualifiedName.Empty, ex)
{
}
}
}
@@ -0,0 +1,26 @@
//
// RoutingInputFilter.cs: Routing SOAP Input Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Routing {
public class RoutingInputFilter : SoapInputFilter {
public RoutingInputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -0,0 +1,26 @@
//
// SecurityOutputFilter.cs: Security SOAP Output Filter
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Routing {
public class RoutingOutputFilter : SoapOutputFilter {
public RoutingOutputFilter () {}
[MonoTODO]
public override void ProcessMessage (SoapEnvelope envelope)
{
if (envelope == null)
throw new ArgumentNullException ("envelope");
// TODO
}
}
}
@@ -0,0 +1,57 @@
//
// Microsfot.Web.Services.Routing.Via.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
namespace Microsoft.Web.Services.Routing {
public class Via: ICloneable
{
Uri val;
Uri vid;
public Via()
{
}
public Via (Uri value)
{
this.val = value;
}
private Via (Uri value, Uri vid)
{
this.val = value;
this.vid = vid;
}
public Uri Value
{
get { return val; }
set { val = value; }
}
public Uri Vid
{
get { return vid; }
set { vid = value; }
}
#if WSE1
public object Clone ()
#else
public virtual object Clone ()
#endif
{
return new Via (val, vid);
}
}
}
@@ -0,0 +1,90 @@
//
// Microsoft.Web.Services.Routing.ViaCollection.cs
//
// Author: Daniel Kornhauser <[email protected]>
//
// Copyright (C) Ximian, Inc. 2003
//
using System;
using System.Collections;
namespace Microsoft.Web.Services.Routing {
public class ViaCollection : ICollection, IEnumerable, ICloneable
{
ArrayList list;
public ViaCollection ()
{
list = new ArrayList ();
}
ViaCollection (ArrayList list)
{
this.list = list;
}
public int Count {
get { return list.Count; }
}
public bool IsSynchronized {
get { return list.IsSynchronized; }
}
public Via this [int filter] {
get {
return (Via) list [filter];
}
set {
list[filter] = value;
}
}
public virtual object SyncRoot {
get {
return list.SyncRoot;
}
}
public int Add (Via via)
{
return list.Add (via);
}
public virtual object Clone ()
{
return new ViaCollection (list);
}
public virtual void CopyTo (Array array, int index)
{
list.CopyTo(array, index);
}
public virtual IEnumerator GetEnumerator ()
{
return list.GetEnumerator();
}
public void Insert (int index, Via via)
{
list.Insert(index, via);
}
public void InsertRange (int index, ViaCollection collection)
{
list.InsertRange(index, collection);
}
public void RemoveAt (int index)
{
list.RemoveAt(index);
}
}
}
@@ -0,0 +1,51 @@
//
// WSRouting.cs: WSRouting definitions
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Routing {
public class WSRouting {
public class ActionUri {
public const string Fault = "http://schemas.xmlsoap.org/soap/fault";
public ActionUri () {}
}
public class ElementNames {
public const string Action = "action";
public const string Code = "code";
public const string Endpoint = "endpoint";
public const string Fault = "fault";
public const string Found = "found";
public const string From = "from";
public const string Fwd = "fwd";
public const string Id = "id";
public const string MaxSize = "maxsize";
public const string MaxTime = "maxtime";
public const string Path = "path";
public const string Reason = "reason";
public const string RelatesTo = "relatesTo";
public const string RetryAfter = "retryAfter";
public const string Rev = "rev";
public const string To = "to";
public const string Via = "via";
public ElementNames () {}
}
public const string NamespaceURI = "http://schemas.xmlsoap.org/rp";
public const string Prefix = "wsrp";
public WSRouting () {}
}
}
@@ -0,0 +1,3 @@
2003-09-04 Sebastien Pouliot <[email protected]>
* FileCertificateStore.cs: Fixed compilation.
@@ -0,0 +1,48 @@
//
// FileCertificateStore.cs: Handles a file-based certificate store.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using Mono.Security.Authenticode;
namespace Microsoft.Web.Services.Security.X509 {
internal class FileCertificateStore : ICertificateStore {
private string _storeName;
private X509CertificateStore.StoreOpenFlags _flags;
private X509CertificateStore.StoreLocation _location;
private IntPtr _handle;
public FileCertificateStore (X509CertificateStore.StoreLocation location, string storeName, X509CertificateStore.StoreOpenFlags flags)
{
_location = location;
_storeName = storeName;
_flags = flags;
}
public IntPtr Handle {
get { return (IntPtr) 0; }
}
public X509CertificateCollection GetCollection ()
{
if (_spc == null) {
_spc = SoftwarePublisherCertificate.CreateFromFile (_storeName);
}
X509CertificateCollection coll = new X509CertificateCollection ();
Mono.Security.X509.X509CertificateCollection spcoll = _spc.Certificates;
foreach (Mono.Security.X509.X509Certificate x in spcoll) {
coll.Add (new X509Certificate (x.RawData));
}
return coll;
}
public void Close () {}
}
}
@@ -0,0 +1,15 @@
using System;
namespace Microsoft.Web.Services.Security.X509 {
public interface ICertificateStore {
void Close ();
IntPtr Handle {
get;
}
X509CertificateCollection GetCollection ();
}
}
@@ -0,0 +1,52 @@
//
// MemoryCertificateStore.cs: Handles an in-memory certificate store.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
namespace Microsoft.Web.Services.Security.X509 {
internal class MemoryCertificateStore : ICertificateStore {
private string _storeName;
private X509CertificateStore.StoreOpenFlags _flags;
private X509CertificateStore.StoreLocation _location;
private IntPtr _handle;
private X509CertificateCollection _coll;
public MemoryCertificateStore (X509CertificateStore.StoreLocation location, string storeName, X509CertificateStore.StoreOpenFlags flags)
{
_location = location;
_storeName = storeName;
_flags = flags;
_coll = new X509CertificateCollection ();
}
public void Close ()
{
}
public IntPtr Handle {
get { return (IntPtr) _coll.GetHashCode (); }
}
public X509CertificateCollection GetCollection ()
{
if (_flags == X509CertificateStore.StoreOpenFlags.ReadOnly) {
// return a copy of the collection so changes aren't persisted
X509CertificateCollection copy = new X509CertificateCollection ();
foreach (X509Certificate x in _coll) {
copy.Add (x);
}
return copy;
}
else
return _coll;
}
}
}
@@ -0,0 +1,182 @@
//
// X509Certificates.cs: Handles (a little better) X509 certificates.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.ComponentModel;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using Mono.Security;
using MX = Mono.Security.X509;
using Mono.Security.X509.Extensions;
namespace Microsoft.Web.Services.Security.X509 {
public class X509Certificate : System.Security.Cryptography.X509Certificates.X509Certificate, IDisposable {
// do not includes: KeyUsage.keyEncipherment and KeyUsage.keyAgreement (see "OWN.cer")
private static KeyUsage[] dataEncryption = new KeyUsage [3] { KeyUsage.dataEncipherment, KeyUsage.decipherOnly, KeyUsage.encipherOnly };
// do not includes KeyUsage.cRLSign, KeyUsage.keyCertSign
private static KeyUsage[] digitalSignature = new KeyUsage [2] { KeyUsage.digitalSignature, KeyUsage.nonRepudiation };
private MX.X509Certificate x509;
private bool m_disposed;
public X509Certificate (byte[] rawCertificate) : base (rawCertificate)
{
x509 = new MX.X509Certificate (rawCertificate);
m_disposed = false;
}
public X509Certificate (IntPtr handle) : base (handle)
{
x509 = new MX.X509Certificate (base.GetRawCertData ());
m_disposed = false;
}
~X509Certificate ()
{
Dispose ();
}
// IDisposable
public void Dispose ()
{
if (!m_disposed) {
// Finalization is now unnecessary
GC.SuppressFinalize (this);
}
// call base class
// no need as they all are abstract before us
m_disposed = true;
}
// LAMESPEC: Do not confuse with CreateFromCertFile
public static X509Certificate CreateCertFromFile (string fileName)
{
System.Security.Cryptography.X509Certificates.X509Certificate x = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile (fileName);
return new X509Certificate (x.GetRawCertData ());
}
// LAMESPEC: Do not confuse with CreateFromSignedFile
public static X509Certificate CreateCertFromSignedFile (string fileName)
{
System.Security.Cryptography.X509Certificates.X509Certificate x = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromSignedFile (fileName);
return new X509Certificate (x.GetRawCertData ());
}
// I knew that using string for date were a bad idea!
public bool IsCurrent {
get { return x509.IsCurrent; }
}
// Well it seems that DSA certificates aren't popular enough :-(
// Note: Private key isn't available
[MonoTODO("Private key isn't yet supported - requires cert stores")]
public RSA Key {
get {
throw new Win32Exception (0, "Private key is unavailable (TODO)");
}
}
// Well it seems that DSA certificates aren't popular enough :-(
public RSA PublicKey {
get { return x509.RSA; }
}
// Just KeyUsage or also ExtendedKeyUsage ?
// it doesn't seems to interpret NetscapeCertType
private bool Supports (KeyUsage[] usages)
{
// X.509 KeyUsage
MX.X509Extension extn = x509.Extensions ["2.5.29.15"];
if (extn != null) {
KeyUsageExtension keyUsage = new KeyUsageExtension (extn);
foreach (KeyUsage usage in usages) {
if (keyUsage.Support (usage))
return true;
}
return false;
}
// DEPRECATED keyAttributes
extn = x509.Extensions ["2.5.29.2"];
if (extn != null) {
KeyAttributesExtension keyAttr = new KeyAttributesExtension (extn);
foreach (KeyUsage usage in usages) {
if (keyAttr.Support (usage))
return true;
}
return false;
}
// key usage isn't specified (so it's not limited)
return true;
}
public bool SupportsDataEncryption {
get {
// always true for older certificates
if (x509.Version < 3)
return true;
return Supports (dataEncryption);
}
}
public bool SupportsDigitalSignature {
get {
// always true for older certificates
if (x509.Version < 3)
return true;
return Supports (digitalSignature);
}
}
public static X509Certificate FromBase64String (string rawString)
{
byte[] cert = Convert.FromBase64String (rawString);
return new X509Certificate (cert);
}
public byte[] GetKeyIdentifier ()
{
// if present in certificate return value of the SubjectKeyIdentifier
MX.X509Extension extn = x509.Extensions ["2.5.29.14"];
if (extn != null) {
ASN1 bs = new ASN1 (extn.Value.Value);
return bs.Value;
}
// strangely DEPRECATED keyAttributes isn't used here (like KeyUsage)
// if not then we must calculate the SubjectKeyIdentifier ourselve
// Note: MS does that hash on the complete subjectPublicKeyInfo (unlike PKIX)
// http://groups.google.ca/groups?selm=e7RqM%24plCHA.1488%40tkmsftngp02&oe=UTF-8&output=gplain
ASN1 subjectPublicKeyInfo = new ASN1 (0x30);
ASN1 algo = subjectPublicKeyInfo.Add (new ASN1 (0x30));
algo.Add (new ASN1 (CryptoConfig.EncodeOID (x509.KeyAlgorithm)));
// FIXME: does it work for DSA certs (without an 2.5.29.14 extension ?)
algo.Add (new ASN1 (x509.KeyAlgorithmParameters));
byte[] pubkey = x509.PublicKey;
byte[] bsvalue = new byte [pubkey.Length + 1]; // add unused bits (0) before the public key
Array.Copy (pubkey, 0, bsvalue, 1, pubkey.Length);
subjectPublicKeyInfo.Add (new ASN1 (0x03, bsvalue));
SHA1 sha = SHA1.Create ();
return sha.ComputeHash (subjectPublicKeyInfo.GetBytes ());
}
// overloaded but WHY ?
public override int GetHashCode ()
{
return base.GetHashCode ();
}
public string ToBase64String ()
{
return Convert.ToBase64String (base.GetRawCertData ());
}
}
}
@@ -0,0 +1,62 @@
//
// X509CertificateCollection.cs: Handles certificate collection.
// based on: mcs\class\System\System.Security.Cryptography.X509Certificates\X509CertificateCollection.cs
//
// Authors:
// Lawrence Pit ([email protected]) -- original work
// Sebastien Pouliot ([email protected]) -- all modifications and bugs ;-)
//
using System;
using System.Collections;
namespace Microsoft.Web.Services.Security.X509 {
public class X509CertificateCollection : CollectionBase {
public X509CertificateCollection () {}
public X509Certificate this [int index] {
get {
// required for exception ?
if ((index < 0) || (index > InnerList.Count))
throw new ArgumentOutOfRangeException ("index");
return (X509Certificate) InnerList [index];
}
set { InnerList [index] = value; }
}
public int Add (X509Certificate certificate)
{
if (certificate == null)
throw new ArgumentNullException ("value");
return InnerList.Add (certificate);
}
public bool Contains (X509Certificate certificate)
{
return InnerList.Contains (certificate);
}
public void CopyTo (Array array, int index)
{
InnerList.CopyTo (array, index);
}
public int IndexOf (X509Certificate certificate)
{
return InnerList.IndexOf (certificate);
}
public void Insert (int index, X509Certificate certificate)
{
InnerList.Insert (index, certificate);
}
public void Remove (X509Certificate certificate)
{
InnerList.Remove (certificate);
}
}
}
@@ -0,0 +1,244 @@
//
// X509CertificateStore.cs: Handles certificate stores.
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
namespace Microsoft.Web.Services.Security.X509 {
public class X509CertificateStore {
[Serializable]
public enum StoreLocation {
CurrentService = 262144,
CurrentUser = 65536,
CurrentUserGroupPolicy = 458752,
LocalMachine = 131072,
LocalMachineEnterprise = 589824,
LocalMachineGroupPolicy = 524288,
Services = 327680,
Unknown = 0,
Users = 393216
}
[Flags]
[Serializable]
public enum StoreOpenFlags {
CreateNew = 8192,
DeferClose = 4,
Delete = 16,
None = 0,
OpenExisting = 16384,
ReadOnly = 32768
}
[Serializable]
public enum StoreProvider {
Collection = 11,
File = 3,
Memory = 1,
System = 10
}
public const string CAStore = "CA";
public const string MyStore = "My";
public const string RootStore = "Root";
public const string TrustStore = "Trust";
public const string UnTrustedStore = "Disallowed";
private const string storeAlreadyOpened = "store already opened";
private const string storeNotOpened = "store not opened";
private StoreOpenFlags storeOpenFlags;
private StoreProvider storeProvider;
private StoreLocation storeLocation;
private string storeName;
private ICertificateStore store;
public X509CertificateStore (StoreProvider provider, StoreLocation location, string storeName)
{
storeProvider = provider;
storeLocation = location;
this.storeName = storeName;
}
~X509CertificateStore ()
{
if (store != null) {
store.Close ();
store = null;
}
}
public X509CertificateCollection Certificates {
get {
if (store == null)
return null;
return store.GetCollection ();
}
}
public IntPtr Handle {
get {
if (store == null)
return (IntPtr) 0;
return store.Handle;
}
}
public StoreLocation Location {
get { return storeLocation; }
}
public bool Open ()
{
return InternalOpen (StoreOpenFlags.None);
}
public bool OpenRead ()
{
return InternalOpen (StoreOpenFlags.ReadOnly);
}
internal bool InternalOpen (StoreOpenFlags flags)
{
if (store != null)
throw new InvalidOperationException (storeAlreadyOpened);
storeOpenFlags = flags;
switch (storeProvider) {
case StoreProvider.Collection:
store = null;
break;
case StoreProvider.File:
store = null;
break;
case StoreProvider.Memory:
store = new MemoryCertificateStore (storeLocation, storeName, flags);
break;
case StoreProvider.System:
store = null;
break;
default:
throw new NotSupportedException ("Unknown store provider");
}
return (store != null);
}
public void Close ()
{
store.Close ();
store = null;
storeOpenFlags = StoreOpenFlags.None;
}
internal bool Compare (byte[] array1, byte[] array2)
{
if ((array1 == null) && (array2 == null))
return true;
if ((array1 == null) || (array2 == null))
return false;
if (array1.Length != array2.Length)
return false;
for (int i=0; i < array1.Length; i++) {
if (array1 [i] != array2 [i])
return false;
}
return true;
}
public X509CertificateCollection FindCertificateByHash (byte[] certHash)
{
if (certHash == null)
throw new ArgumentNullException ("certHash");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (Compare (c.GetCertHash (), certHash))
results.Add (c);
}
}
return results;
}
public X509CertificateCollection FindCertificateByKeyIdentifier (byte[] keyIdentifier)
{
if (keyIdentifier == null)
throw new ArgumentNullException ("keyIdentifier");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (Compare (c.GetKeyIdentifier (), keyIdentifier))
results.Add (c);
}
}
return results;
}
public X509CertificateCollection FindCertificateBySubjectName (string subjectstring)
{
if (subjectstring == null)
throw new ArgumentNullException ("subjectstring");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (c.GetName() != subjectstring)
results.Add (c);
}
}
return results;
}
public X509CertificateCollection FindCertificateBySubjectString (string subjectsubstring)
{
if (subjectsubstring == null)
throw new ArgumentNullException ("subjectsubstring");
if (store != null)
throw new InvalidOperationException (storeNotOpened);
X509CertificateCollection results = new X509CertificateCollection ();
if (store != null) {
X509CertificateCollection certs = store.GetCollection ();
// apply filter
foreach (X509Certificate c in certs) {
if (c.GetName ().IndexOf (subjectsubstring) > 0)
results.Add (c);
}
}
return results;
}
public static X509CertificateStore CurrentUserStore (string storeName)
{
return new X509CertificateStore (StoreProvider.System, StoreLocation.CurrentUser, storeName);
}
public static X509CertificateStore LocalMachineStore (string storeName)
{
return new X509CertificateStore (StoreProvider.System, StoreLocation.LocalMachine, storeName);
}
}
}
@@ -0,0 +1,36 @@
//
// AsymmetricDecryptionKey.cs: Handles WS-Security AsymmetricDecryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography;
using System.Web.Services.Protocols;
namespace Microsoft.Web.Services.Security {
public sealed class AsymmetricDecryptionKey : DecryptionKey {
private AsymmetricAlgorithm key;
public AsymmetricDecryptionKey (AsymmetricAlgorithm key)
{
if (key is System.Security.Cryptography.RSACryptoServiceProvider)
this.key = key;
else
throw new SecurityFault ("not RSACryptoServiceProvider", null);
}
}
}
@@ -0,0 +1,35 @@
//
// AsymmetricEncryptionKey.cs: Handles WS-Security AsymmetricEncryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography;
namespace Microsoft.Web.Services.Security {
public sealed class AsymmetricEncryptionKey : EncryptionKey {
private AsymmetricAlgorithm key;
public AsymmetricEncryptionKey (AsymmetricAlgorithm key)
{
if (key == null)
throw new ArgumentNullException ("key");
this.key = key;
// TODO ? impact on KeyInfo ? not seen in tests !!!
}
}
}
@@ -0,0 +1,50 @@
//
// AuthenticationKey.cs: Handles WS-Security AuthenticationKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System.Security.Cryptography;
// temp
//using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public class AuthenticationKey {
private AsymmetricAlgorithm asymKey;
private SymmetricAlgorithm symKey;
public AuthenticationKey (AsymmetricAlgorithm key)
{
asymKey = key;
}
public AuthenticationKey (SymmetricAlgorithm key)
{
symKey = key;
}
public bool CheckSignature (SignedXml signedXml)
{
if (asymKey != null) {
return signedXml.CheckSignature (asymKey);
}
else {
HMACSHA1 hmac = new HMACSHA1 (symKey.Key);
return signedXml.CheckSignature (hmac);
}
}
}
}
@@ -0,0 +1,87 @@
//
// BinarySecurityToken.cs: Handles WS-Security BinarySecurityToken
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public abstract class BinarySecurityToken : SecurityToken {
private const string name = "Base64Binary";
private const string ns = "http://schemas.xmlsoap.org/ws/2002/07/secext";
private XmlQualifiedName encoding;
private XmlQualifiedName valueType;
public BinarySecurityToken (XmlElement element) : base (element)
{
encoding = new XmlQualifiedName (name, ns);
}
public BinarySecurityToken (XmlQualifiedName valueType)
{
if (valueType == null)
throw new ArgumentNullException ("valueType");
encoding = new XmlQualifiedName (name, ns);
this.valueType = valueType;
}
public XmlQualifiedName EncodingType {
get { return encoding; }
set {
if (value == null)
throw new ArgumentNullException ("value");
encoding = value;
}
}
[MonoTODO ("used ?")]
public virtual byte[] RawData {
get { return null; }
set { ; }
}
public virtual XmlQualifiedName ValueType {
get { return valueType; }
set {
if (value == null)
throw new ArgumentNullException ("value");
valueType = value;
}
}
public override XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// TODO check namespace and valueType
throw new SecurityFormatException ("namespace");
}
public override void LoadXml (XmlElement element)
{
if (element == null)
throw new ArgumentNullException ("element");
if ((element.LocalName != name) || (element.NamespaceURI != ns))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// TODO
}
}
}
@@ -0,0 +1,21 @@
2003-09-06 Sebastien Pouliot <[email protected]>
* EncryptedKey.cs: Fixed typo.
* Security.cs: Fixed compilation issues.
* SignedXml.cs: Fixed compilation issues.
* SignedXmlSignature.cs: Copied from System.Security assembly (where
it is known as Signature.cs) as MS duplicate the class (in WSE) to
fixed some issues.
* XmlSignature.cs: Added more missing string used in System.Security.
2003-09-04 Sebastien Pouliot <[email protected]>
* Reference.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedInfo.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedXml.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* TransformChain.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* XmlSignature.cs: Added missing string used in System.Security.
@@ -0,0 +1,33 @@
//
// DecryptionKey.cs: Handles WS-Security DecryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
namespace Microsoft.Web.Services.Security {
public abstract class DecryptionKey {
private string name;
protected DecryptionKey () {}
public string Name {
get { return name; }
set { name = value; }
}
}
}
@@ -0,0 +1,33 @@
//
// DecryptionKeyProvider.cs: Decryption Key Provider
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public class DecryptionKeyProvider : IDecryptionKeyProvider {
public DecryptionKeyProvider () {}
[MonoTODO]
public virtual DecryptionKey GetDecryptionKey (string algorithmUri, KeyInfo keyInfo)
{
return null;
}
}
}
@@ -0,0 +1,73 @@
//
// EncryptedData.cs: Handles WS-Security EncryptedData
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public sealed class EncryptedData : ISecurityElement, IXmlElement {
private EncryptionKey encryptionKey;
private EncryptedKey encryptedKey;
private ReferenceList list;
public EncryptedData (EncryptionKey key)
{
this.encryptionKey = key;
}
// TODO
public EncryptedData (SecurityToken token) {}
// TODO
public EncryptedData (XmlElement element) {}
public EncryptedData (XmlElement element, EncryptedKey encryptedKey)
{
// TODO
this.encryptedKey = encryptedKey;
}
public EncryptedKey EncryptedKey {
get { return encryptedKey; }
}
public XmlElement Decrypt()
{
// TODO
return null;
}
public void Encrypt (XmlDocument message)
{
// TODO
}
public XmlElement GetXml (XmlDocument document)
{
// TODO
return null;
}
public void LoadXml (XmlElement element)
{
// TODO
}
}
}
@@ -0,0 +1,80 @@
//
// EncryptedKey.cs: Handles WS-Security EncryptedKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public class EncryptedKey : IXmlElement {
private AsymmetricEncryptionKey aek;
private KeyInfo ki;
private ReferenceList list;
internal EncryptedKey ()
{
list = new ReferenceList ();
}
public EncryptedKey (AsymmetricEncryptionKey key) : this ()
{
if (key == null)
throw new ArgumentNullException ("key");
aek = key;
ki = new KeyInfo ();
}
public EncryptedKey (XmlElement element) : this ()
{
LoadXml (element);
}
public string EncryptionMethod {
get { return null; }
}
public KeyInfo KeyInfo {
get { return ki; }
}
public ReferenceList ReferenceList {
get { return list; }
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
return ki.GetXml ();
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != "") || (element.NamespaceURI != ""))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
ki = new KeyInfo ();
try {
ki.LoadXml (element);
}
catch {
throw new ArgumentException ("element has no KeyInfo");
}
}
}
}
@@ -0,0 +1,36 @@
//
// EncryptionKey.cs:
// Abstract class for AsymmetricEncryptionKey and SymmetricEncryptionKey
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public abstract class EncryptionKey {
private KeyInfo ki;
public EncryptionKey ()
{
ki = new KeyInfo ();
}
public KeyInfo KeyInfo {
get { return ki; }
}
}
}
@@ -0,0 +1,28 @@
//
// IDecryptionKeyProvider.cs:
// Defines IDecryptionKeyProvider interface
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
public interface IDecryptionKeyProvider {
DecryptionKey GetDecryptionKey (string algorithmUri, KeyInfo keyInfo);
}
}
@@ -0,0 +1,26 @@
//
// IPasswordProvider.cs:
// Defines IPasswordProvider interface
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
namespace Microsoft.Web.Services.Security {
public interface IPasswordProvider {
string GetPassword (UsernameToken token);
}
}
@@ -0,0 +1,24 @@
//
// ISecurityElement.cs:
// Defines ISecurityElement interface
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
namespace Microsoft.Web.Services.Security {
// complete!
public interface ISecurityElement {}
}
@@ -0,0 +1,78 @@
//
// KeyIdentifier.cs: Handles WS-Security KeyIdentifier
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography.Xml;
using System.Xml;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Security {
public class KeyIdentifier : IXmlElement {
private byte[] kivalue;
private XmlQualifiedName vtype;
public KeyIdentifier (byte[] identifier)
{
if (identifier == null)
throw new ArgumentNullException ("identifier");
kivalue = (byte[]) identifier.Clone ();
}
public KeyIdentifier (XmlElement element)
{
LoadXml (element);
}
public KeyIdentifier (byte[] identifier, XmlQualifiedName valueType)
{
if (identifier == null)
throw new ArgumentNullException ("identifier");
kivalue = (byte[]) identifier.Clone ();
vtype = valueType;
}
public byte[] Value {
get { return (byte[]) kivalue.Clone (); }
set {
if (value == null)
throw new ArgumentNullException ("value");
kivalue = value;
}
}
public XmlQualifiedName ValueType {
get { return vtype; }
set { vtype = value; }
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
return null;
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != WSSecurity.ElementNames.KeyIdentifier) || (element.NamespaceURI != WSSecurity.NamespaceURI))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// TODO
}
}
}
@@ -0,0 +1,73 @@
//
// Nonce.cs: Handles WS-Security Nonce
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Security.Cryptography;
using System.Xml;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Security {
// References:
// a. Web Services Security Addendum, Version 1.0, August 18, 2002
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnglobspec/html/ws-security.asp
public class Nonce : IXmlElement {
private byte[] nonce;
internal Nonce ()
{
nonce = new byte [16]; // FIXME ???
RandomNumberGenerator rng = RandomNumberGenerator.Create ();
rng.GetBytes (nonce);
}
// default to Base64 if no EncodingType attribute is specified
public string Value {
get { return Convert.ToBase64String (nonce); }
}
public byte[] GetValueBytes()
{
return (byte[]) nonce.Clone ();
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// much cleaner than using StringBuilder!
XmlElement xel = document.CreateElement (WSSecurity.Prefix, WSSecurity.ElementNames.Nonce, WSSecurity.NamespaceURI);
xel.InnerText = Convert.ToBase64String (nonce);
return xel;
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != WSSecurity.ElementNames.Nonce) || (element.NamespaceURI != WSSecurity.NamespaceURI))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
XmlAttribute xa = element.Attributes [WSSecurity.AttributeNames.EncodingType, WSSecurity.NamespaceURI];
if ((xa == null) || (xa.Value == "Base64Binary")) {
nonce = Convert.FromBase64String (element.InnerText);
}
else
throw new NotSupportedException (xa.Value);
}
}
}
@@ -0,0 +1,28 @@
//
// PasswordOption.cs: Handles WS-Security PasswordOption
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
namespace Microsoft.Web.Services.Security {
[Serializable]
public enum PasswordOption {
SendHashed,
SendNone,
SendPlainText
}
}
@@ -0,0 +1,191 @@
//
// Reference.cs - Reference implementation for XML Signature
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
using System;
using System.IO;
using System.Security.Cryptography;
using System.Xml;
#if (WSE1 || WSE2)
using System.Security.Cryptography.Xml;
namespace Microsoft.Web.Services.Security {
#else
namespace System.Security.Cryptography.Xml {
#endif
// http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/Overview.html#sec-Reference
public class Reference {
private TransformChain chain;
private string digestMethod;
private byte[] digestValue;
private string id;
private string uri;
private string type;
private HashAlgorithm hash;
public Reference ()
{
chain = new TransformChain ();
digestMethod = XmlSignature.NamespaceURI + "sha1";
}
[MonoTODO()]
public Reference (Stream stream) : this ()
{
}
public Reference (string uri) : this ()
{
this.uri = uri;
}
// default to SHA1
public string DigestMethod {
get { return digestMethod; }
set { digestMethod = value; }
}
public byte[] DigestValue {
get { return digestValue; }
set { digestValue = value; }
}
public string Id {
get { return id; }
set { id = value; }
}
public TransformChain TransformChain {
get { return chain; }
}
public string Type {
get { return type; }
set { type = value; }
}
public string Uri {
get { return uri; }
set { uri = value; }
}
public void AddTransform (Transform transform)
{
chain.Add (transform);
}
public XmlElement GetXml ()
{
if (digestMethod == null)
throw new CryptographicException ("DigestMethod");
if (digestValue == null)
throw new NullReferenceException ("DigestValue");
XmlDocument document = new XmlDocument ();
XmlElement xel = document.CreateElement (XmlSignature.ElementNames.Reference, XmlSignature.NamespaceURI);
if (id != null)
xel.SetAttribute (XmlSignature.AttributeNames.Id, id);
if (uri != null)
xel.SetAttribute (XmlSignature.AttributeNames.URI, uri);
if (type != null)
xel.SetAttribute (XmlSignature.AttributeNames.Type, type);
if (chain.Count > 0) {
XmlElement ts = document.CreateElement (XmlSignature.ElementNames.Transforms, XmlSignature.NamespaceURI);
foreach (Transform t in chain) {
XmlNode xn = t.GetXml ();
XmlNode newNode = document.ImportNode (xn, true);
ts.AppendChild (newNode);
}
xel.AppendChild (ts);
}
XmlElement dm = document.CreateElement (XmlSignature.ElementNames.DigestMethod, XmlSignature.NamespaceURI);
dm.SetAttribute (XmlSignature.AttributeNames.Algorithm, digestMethod);
xel.AppendChild (dm);
XmlElement dv = document.CreateElement (XmlSignature.ElementNames.DigestValue, XmlSignature.NamespaceURI);
dv.InnerText = Convert.ToBase64String (digestValue);
xel.AppendChild (dv);
return xel;
}
private string GetAttributeFromElement (XmlElement xel, string attribute, string element)
{
string result = null;
XmlNodeList xnl = xel.GetElementsByTagName (element);
if ((xnl != null) && (xnl.Count > 0)) {
XmlAttribute xa = xnl[0].Attributes [attribute];
if (xa != null)
result = xa.InnerText;
}
return result;
}
// note: we do NOT return null -on purpose- if attribute isn't found
private string GetAttribute (XmlElement xel, string attribute)
{
XmlAttribute xa = xel.Attributes [attribute];
return ((xa != null) ? xa.InnerText : null);
}
public void LoadXml (XmlElement value)
{
if (value == null)
throw new ArgumentNullException ("value");
if ((value.LocalName != XmlSignature.ElementNames.Reference) || (value.NamespaceURI != XmlSignature.NamespaceURI))
throw new CryptographicException ();
id = GetAttribute (value, XmlSignature.AttributeNames.Id);
uri = GetAttribute (value, XmlSignature.AttributeNames.URI);
type = GetAttribute (value, XmlSignature.AttributeNames.Type);
// Note: order is important for validations
XmlNodeList xnl = value.GetElementsByTagName (XmlSignature.ElementNames.Transform);
if ((xnl != null) && (xnl.Count > 0)) {
Transform t = null;
foreach (XmlNode xn in xnl) {
string a = GetAttribute ((XmlElement)xn, XmlSignature.AttributeNames.Algorithm);
switch (a) {
case "http://www.w3.org/2000/09/xmldsig#base64":
t = new XmlDsigBase64Transform ();
break;
case "http://www.w3.org/TR/2001/REC-xml-c14n-20010315":
t = new XmlDsigC14NTransform ();
break;
case "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":
t = new XmlDsigC14NWithCommentsTransform ();
break;
case "http://www.w3.org/2000/09/xmldsig#enveloped-signature":
t = new XmlDsigEnvelopedSignatureTransform ();
break;
case "http://www.w3.org/TR/1999/REC-xpath-19991116":
t = new XmlDsigXPathTransform ();
break;
case "http://www.w3.org/TR/1999/REC-xslt-19991116":
t = new XmlDsigXsltTransform ();
break;
default:
throw new NotSupportedException ();
}
AddTransform (t);
}
}
// get DigestMethod
DigestMethod = GetAttributeFromElement (value, XmlSignature.AttributeNames.Algorithm, XmlSignature.ElementNames.DigestMethod);
// get DigestValue
xnl = value.GetElementsByTagName (XmlSignature.ElementNames.DigestValue);
if ((xnl != null) && (xnl.Count > 0)) {
DigestValue = Convert.FromBase64String (xnl[0].InnerText);
}
}
}
}
@@ -0,0 +1,74 @@
//
// ReferenceList.cs: Handles WS-Security ReferenceList
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Collections;
using System.Security.Cryptography.Xml;
using System.Xml;
using Microsoft.Web.Services;
namespace Microsoft.Web.Services.Security {
public class ReferenceList : IXmlElement {
private ArrayList list;
public ReferenceList ()
{
list = new ArrayList ();
}
public ReferenceList (XmlElement element) : this ()
{
LoadXml (element);
}
public void Add (string reference)
{
if (reference == null)
throw new ArgumentNullException ("reference");
list.Add (reference);
}
public bool Contains (string reference)
{
if (reference == null)
throw new ArgumentNullException ("reference");
return list.Contains (reference);
}
public IEnumerator GetEnumerator()
{
return list.GetEnumerator ();
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// TODO
return null;
}
public void LoadXml (XmlElement element)
{
if ((element.LocalName != "") || (element.NamespaceURI != ""))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// TODO
}
}
}
@@ -0,0 +1,107 @@
//
// Security.cs: Handles WS-Security Security
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Web.Services.Protocols;
using System.Xml;
namespace Microsoft.Web.Services.Security {
public class Security : SoapHeader, IXmlElement {
private static string SoapActor = "actor"; // not Actor - no capital A
private static string SoapNamespaceURI = "http://www.w3.org/2001/12/soap-envelope";
private SecurityElementCollection elems;
private SecurityTokenCollection tokens;
public Security (string actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
Actor = actor;
}
public Security (XmlElement element)
{
LoadXml (element);
}
public SecurityElementCollection Elements {
get { return elems; }
}
public SecurityTokenCollection Tokens {
get { return tokens; }
}
public XmlElement GetXml (XmlDocument document)
{
if (document == null)
throw new ArgumentNullException ("document");
// much cleaner than using StringBuilder!
XmlElement xel = document.CreateElement (WSSecurity.Prefix, WSSecurity.ElementNames.Security, WSSecurity.NamespaceURI);
xel.SetAttribute (SoapActor, SoapNamespaceURI, Actor);
foreach (ISecurityElement se in Elements) {
if (se is Signature) {
// TODO
}
else if (se is EncryptedData) {
xel.AppendChild ((se as EncryptedData).GetXml (document));
}
}
foreach (SecurityToken st in Tokens)
xel.AppendChild (st.GetXml (document));
return xel;
}
// base class doesn't have a LoadXml method
public void LoadXml (XmlElement element)
{
if ((element.LocalName != WSSecurity.ElementNames.Security) || (element.NamespaceURI != WSSecurity.NamespaceURI))
throw new System.ArgumentException ("invalid LocalName or NamespaceURI");
// get attributes
XmlAttribute xa = element.Attributes [SoapActor, SoapNamespaceURI];
Actor = ((xa == null) ? null : xa.Value);
Elements.Clear ();
Tokens.Clear ();
foreach (XmlNode xn in element.ChildNodes) {
XmlElement xel = (XmlElement) xn;
switch (xn.NamespaceURI) {
case WSSecurity.NamespaceURI:
switch (xn.LocalName) {
case WSSecurity.ElementNames.UsernameToken:
UsernameToken unt = new UsernameToken (xel);
Tokens.Add (unt);
break;
case WSSecurity.ElementNames.BinarySecurityToken:
//FIXME BinarySecurityToken bst = new BinarySecurityToken (xel);
//FIXME Tokens.Add (bst);
break;
}
break;
}
}
}
}
}
@@ -0,0 +1,112 @@
//
// SecurityCollection.cs: Handles WS-Security SecurityCollection
//
// Author:
// Sebastien Pouliot ([email protected])
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//
// Licensed under MIT X11 (see LICENSE) with this specific addition:
//
// “This source code may incorporate intellectual property owned by Microsoft
// Corporation. Our provision of this source code does not include any licenses
// or any other rights to you under any Microsoft intellectual property. If you
// would like a license from Microsoft (e.g. rebrand, redistribute), you need
// to contact Microsoft directly.”
//
using System;
using System.Collections;
namespace Microsoft.Web.Services.Security {
public class SecurityCollection : ICollection, IEnumerable {
private ArrayList list;
public SecurityCollection ()
{
list = new ArrayList ();
}
public int Count {
get { return list.Count; }
}
public bool IsSynchronized {
get { return list.IsSynchronized; }
}
public Security this [Uri actor] {
get {
if (actor == null)
throw new ArgumentNullException ("actor");
return null;
}
}
public Security this [string actor] {
get {
if (actor == null)
throw new ArgumentNullException ("actor");
return null;
}
}
public object SyncRoot {
get { return list.SyncRoot; }
}
public void Add (Security security)
{
// note: doc says it not ArgumentNullException
if (security == null)
throw new ArgumentException ("security");
if (list.Contains (security))
throw new ArgumentException ("duplicate");
list.Add (security);
}
public void Clear ()
{
list.Clear ();
}
public bool Contains (string actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
return false;
}
public bool Contains (Uri actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
return false;
}
public void CopyTo (Array array, int index)
{
if (array == null)
throw new ArgumentNullException ("array");
}
public IEnumerator GetEnumerator ()
{
return list.GetEnumerator ();
}
public void Remove (string actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
}
public void Remove (Uri actor)
{
if (actor == null)
throw new ArgumentNullException ("actor");
}
}
}
Loaded 100 of 840 files, more files were not shown because too many files have changed in this diff. Show more