Compare commits

..
247 Commits
Author SHA1 Message Date
nobody 885709d3bc This commit was manufactured by cvs2svn to create tag 'MONO_0_9'.
svn path=/tags/MONO_0_9/mono/; revision=2599
2002-02-22 17:29:39 +00:00
nobody 99b266d3ed This commit was manufactured by cvs2svn to create tag 'MONO_0_9'.
svn path=/tags/MONO_0_9/mcs/; revision=2599
2002-02-22 17:29:39 +00:00
Miguel de Icaza 4999188eff Remove System.Web and System.Drawing assemblies from the build
svn path=/trunk/mcs/; revision=2598
2002-02-22 17:29:39 +00:00
Miguel de Icaza de55764311 Prepare for 0.9
svn path=/trunk/mono/; revision=2597
2002-02-22 17:22:17 +00:00
Paolo Molaro 88931ed526 Removed debugging message.
svn path=/trunk/mono/; revision=2596
2002-02-22 16:16:09 +00:00
Miguel de Icaza c1ebedc50c 2002-02-22 Miguel de Icaza <[email protected]>
* driver.cs (MainDriver):
	Catch DirectoryNotFoundException when calling GetFiles.

	(SplitPathAndPattern): Used to split the input specification into
	a path and a pattern that we can feed to Directory.GetFiles.

svn path=/trunk/mcs/; revision=2595
2002-02-22 15:07:18 +00:00
Miguel de Icaza 8d5f382a3e 2002-02-22 Miguel de Icaza <[email protected]>
* driver.cs: Be conservative on our command line handling.

svn path=/trunk/mcs/; revision=2594
2002-02-22 14:43:41 +00:00
David Brandt 00a045ca67 Introducing ObjectTest.
svn path=/trunk/mcs/; revision=2593
2002-02-22 14:19:48 +00:00
Paolo Molaro 1dc913e9a7 Fri Feb 22 18:54:13 CET 2002 Paolo Molaro <[email protected]>
* MonoField.cs: implement GetValue as an internalcall.
	Implemented ToString().

svn path=/trunk/mcs/; revision=2592
2002-02-22 14:11:44 +00:00
Paolo Molaro f9527db954 Fri Feb 22 18:47:08 CET 2002 Paolo Molaro <[email protected]>
* MonoType.cs: disable constructor.
	* Object.cs: make GetType() an internalcall.
	* Type.cs: added correct bindingflags to GetMethods ().
	All such calls should be reviewed to use the correct flags.

svn path=/trunk/mcs/; revision=2591
2002-02-22 14:11:17 +00:00
Paolo Molaro 0d39b89052 Fri Feb 22 18:55:57 CET 2002 Paolo Molaro <[email protected]>
* class.c: when instancing a class in a domain, load the default
	vaules for static fields from the constant table. Fix System.Enum to
	not be an enum.
	* icall.c: implement Object::GetType() internalcall. Implemented
	MonoField::GetValue() internalcall. Avoid SEGV in search_method().
	Fixed checking of binding flags in find_members().
	* metadata.c, metadata.h: introduce mono_metadata_type_hash().
	* reflection.c: handle enumerations when writing to the constant
	table. Use a different object cache for types.

svn path=/trunk/mono/; revision=2590
2002-02-22 14:11:16 +00:00
David Brandt 379c42fd75 1. Added EnumTest to AllTests
2. Cleaned up ConsoleTest, so it wasn't so greedy with stdout, etc.

svn path=/trunk/mcs/; revision=2589
2002-02-22 13:43:59 +00:00
David Brandt 4704f2f904 Introducing EnumTest.
svn path=/trunk/mcs/; revision=2588
2002-02-22 13:43:00 +00:00
Nick Drochak 2a125bbade 2002-02-23 Nick Drochak <[email protected]>
* Now shows some of the missing methods from the classes. It's
	only showing one, so must be bug there somewhere. Need to
	do other member types as well.

svn path=/trunk/mcs/; revision=2587
2002-02-22 12:26:53 +00:00
Nick Drochak a68afdcff9 2002-02-23 Nick Drochak <[email protected]>
* SecurityElement.cs: fixed typo.  CorCompare helped me find this one
		:)

svn path=/trunk/mcs/; revision=2586
2002-02-22 12:19:36 +00:00
Paolo Molaro 3045c04f15 Fri Feb 22 15:36:19 CET 2002 Paolo Molaro <[email protected]>
* RuntimeHelpers.cs: added OffsetToStringData() property.

svn path=/trunk/mcs/; revision=2585
2002-02-22 10:45:18 +00:00
Dietmar Maurer a1dfe5d744 test for vararg support
svn path=/trunk/mono/; revision=2584
2002-02-22 09:57:30 +00:00
Dietmar Maurer 584a28a7b2 2002-02-22 Dietmar Maurer <[email protected]>
* object.c (mono_object_isinst): fix for arrays

	* icall.c (ves_icall_type_is_subtype_of): fix for 2 interfaces

svn path=/trunk/mono/; revision=2583
2002-02-22 09:33:44 +00:00
Paolo Molaro 651f6714db Dum de dum, forgot to commit.
svn path=/trunk/mono/; revision=2582
2002-02-22 06:52:20 +00:00
Mark Crichton 089e423415 Fixed stupid typo. Test should now work.
svn path=/trunk/mcs/; revision=2581
2002-02-22 00:25:29 +00:00
Miguel de Icaza 3d366cc1b3 2002-02-21 Miguel de Icaza <[email protected]>
* statement.cs (Fixed): Implement the last case of the Fixed
	statement (string handling).

	* expression.cs (StringPtr): New class used to return a char * to
	a string;  Used by the Fixed statement.

	* typemanager.cs: Add char_ptr_type.  Add get_OffsetToStringData method.

svn path=/trunk/mcs/; revision=2580
2002-02-21 21:17:26 +00:00
Miguel de Icaza 058103a484 2002-02-21 Miguel de Icaza <[email protected]>
* expression.cs (Binary.ResolveOperator): Remove redundant
	MemberLookup pn parent type.
	Optimize union call, we do not need a union if the types are the same.
	(Unary.ResolveOperator): REmove redundant MemberLookup on parent
	type.

	Specialize the use of MemberLookup everywhere, instead of using
	the default settings.

	(StackAlloc): Implement stackalloc keyword.

	* cs-parser.jay: Add rule to parse stackalloc.

	* driver.cs: Handle /h, /help, /?

Added two more tests, added an error test.

svn path=/trunk/mcs/; revision=2579
2002-02-21 18:58:38 +00:00
Mark Crichton d293482219 Test for the RNGCryptoServiceProvider class. Hopefully it is correct...
svn path=/trunk/mcs/; revision=2578
2002-02-21 18:52:44 +00:00
Mark Crichton b952f09ba2 Added contact info.
svn path=/trunk/mono/; revision=2577
2002-02-21 17:06:28 +00:00
Mark Crichton c9d8731813 Finish support for the System.Security.Cryptography.RNGCryptoServiceProvider
class.  Tests forthcoming.

svn path=/trunk/mcs/; revision=2576
2002-02-21 17:00:35 +00:00
Paolo Molaro fb6fdffe23 Thu Feb 21 21:00:13 CET 2002 Paolo Molaro <[email protected]>
* object.c: don't use mprotect ()  and fix intern pool hash table
	lookup for big endian systems.

svn path=/trunk/mono/; revision=2575
2002-02-21 16:09:57 +00:00
David Brandt d0d6013fc0 Adding ConsoleTest to AllTests
svn path=/trunk/mcs/; revision=2574
2002-02-21 15:29:54 +00:00
David Brandt 126862ab48 Adding tests for System.Console. Write (and WriteLine) are not exhautively tested.
svn path=/trunk/mcs/; revision=2573
2002-02-21 15:29:30 +00:00
Paolo Molaro c588058e3b Thu Feb 21 19:23:46 CET 2002 Paolo Molaro <[email protected]>
* Type.cs, MonoType.cs: type_is_subtype_of () changed to include extra
	argument.

svn path=/trunk/mcs/; revision=2572
2002-02-21 14:39:58 +00:00
Paolo Molaro 5773594cda Thu Feb 21 19:30:29 CET 2002 Paolo Molaro <[email protected]>
* icall.c: change type_is_subtype_of () signature.

svn path=/trunk/mono/; revision=2571
2002-02-21 14:39:54 +00:00
Dietmar Maurer a3c83bb221 added files from chris
svn path=/trunk/mcs/; revision=2570
2002-02-21 14:32:45 +00:00
Paolo Molaro c4bcf1fd6a Little IsInterned test.
svn path=/trunk/mono/; revision=2569
2002-02-21 14:24:30 +00:00
Mark Crichton 7cbb1d091b One of these days I'll remember how to use CVS. I swear.
svn path=/trunk/mono/; revision=2568
2002-02-21 13:35:02 +00:00
Mark Crichton e9a6fd8e9b Code for System.Security.Cryptography.RNGCryptoServiceProvider support.
svn path=/trunk/mono/; revision=2567
2002-02-21 12:15:28 +00:00
Paolo Molaro 58c5abdb44 Thu Feb 21 16:56:51 CET 2002 Paolo Molaro <[email protected]>
* Type.cs: implemented IsAssignableFrom.

svn path=/trunk/mcs/; revision=2566
2002-02-21 12:05:49 +00:00
Paolo Molaro 64dfa0936b Thu Feb 21 16:45:34 CET 2002 Paolo Molaro <[email protected]>
* class.c, icall.c, metadata.c: better support for pointer types.
	Create a class for them as suggested by dietmar. Fix TYPE_ARRAY class.
	* reflection.c: Add support for getting custom attrs for properties
	and simplify some code.

svn path=/trunk/mono/; revision=2565
2002-02-21 11:57:34 +00:00
Nick Drochak d5062d4cec 2002-02-22 Nick Drochak <[email protected]>
.cvsignore: new file.  ignore *.pdb and *.exe

svn path=/trunk/mcs/; revision=2564
2002-02-21 11:35:41 +00:00
Nick Drochak 356506f93e 2002-02-22 Nick Drochak <[email protected]>
* makefile: move corcompare to it's own directory to hold multiple
	class files.  still makes old corcompare for now.  will remove that
	soon.

svn path=/trunk/mcs/; revision=2563
2002-02-21 11:31:58 +00:00
Nick Drochak 33cb792905 2002-02-22 Nick Drochak <[email protected]>
* New corcompare directory. Split program into separate class
	files and a driver. Creates XML file with missing and todo
	classes.  Not quite done with all member types, and also
	there's a bug where it adds a todo class more than once.
	This is a disaster recovery checkin.

svn path=/trunk/mcs/; revision=2562
2002-02-21 11:28:02 +00:00
Paolo Molaro 03948a83ea Missing test.
svn path=/trunk/mono/; revision=2561
2002-02-21 10:40:20 +00:00
Bob Doan 8200b02aaa Added Boolean Test Suite
svn path=/trunk/mcs/; revision=2560
2002-02-21 09:38:28 +00:00
Dietmar Maurer a23a2ab678 2002-02-21 Dietmar Maurer <[email protected]>
* x86.brg: impl. SHR_UN for lreg, added new test, bug fix for BNE_UN

svn path=/trunk/mono/; revision=2559
2002-02-21 09:10:17 +00:00
Duco Fijma 7f0868da27 Fixed Guid.Guid(string)
svn path=/trunk/mcs/; revision=2558
2002-02-21 08:35:07 +00:00
Daniel Stodden 76baf9fa4e - CultureInfo implements IFormatProvider
- DateTime/NumberformatInfo _FomatInfo ecma-lamespec corrections
- integer type cleanup accordingly

svn path=/trunk/mcs/; revision=2557
2002-02-21 06:56:17 +00:00
Miguel de Icaza d2a621210e Mention mono-bugs, and link to the bugzilla query for Mono bugs
svn path=/trunk/mono/; revision=2556
2002-02-21 02:45:10 +00:00
Miguel de Icaza 62faf0883f Run all tests, not only the safe tests
svn path=/trunk/mcs/; revision=2555
2002-02-21 02:37:14 +00:00
Miguel de Icaza 6601ea4dee Allow this to use the LGPL
svn path=/trunk/mono/; revision=2554
2002-02-21 02:37:01 +00:00
Miguel de Icaza 3cb2123426 2002-02-21 Miguel de Icaza <[email protected]>
* expression.cs (MakeByteBlob): Removed the hacks we had in place
	before we supported unsafe code.

	* makefile: add --unsafe to the self compilation of mcs.

2002-02-20  Miguel de Icaza  <[email protected]>

	* expression.cs (PointerArithmetic): New class that is used to
	perform pointer arithmetic.
	(Binary.Resolve): Handle pointer arithmetic
	Handle pointer comparission.
	(ArrayPtr): Utility expression class that is used to take the
	address of an array.

	(ElementAccess): Implement array access for pointers

	* statement.cs (Fixed): Implement fixed statement for arrays, we
	are missing one more case before we are done.

svn path=/trunk/mcs/; revision=2553
2002-02-21 02:35:01 +00:00
Miguel de Icaza 40ef50485e Update manual
svn path=/trunk/mono/; revision=2552
2002-02-21 02:34:18 +00:00
Gaurav Vaish 3c1a728057 2002-02-21 Gaurav Vaish <[email protected]>
* DataGrid.cs: Almost done. See ChangeLog

* DataGridItem.cs -- Dummy Implementation

* DataGridItemCollection.cs  -- Completed

* ChangeLog, TODO -- Updated with updates

svn path=/trunk/mcs/; revision=2551
2002-02-21 00:47:18 +00:00
Gaurav Vaish bf03536ac2 2002-02-21 Gaurav Vaish <[email protected]>
* class.xml -- Updates for the latest in WebControls...

svn path=/trunk/mono/; revision=2550
2002-02-21 00:23:42 +00:00
Miguel de Icaza a992519b96 Add indirection support, it was missing.
2002-02-20  Miguel de Icaza  <[email protected]>

	* expression.cs (Indirection): Implement EmitAssign and set the
	ExprClass to Variable.  This allows pointer dereferences to be
	treated as variables, and to have values assigned to them.

	* ecore.cs (Expression.StoreFromPtr): New utility function to
	store values dereferencing.

2002-02-20  Miguel de Icaza  <[email protected]>

	* unsafe-1.cs: Extend test.

svn path=/trunk/mcs/; revision=2549
2002-02-21 00:10:13 +00:00
Ravi Pratap M 63e51b23fb 2002-02-20 Ravi Pratap <[email protected]>
* decl.cs (CheckMethodAgainstBase): Do not allow overriding if
	the parent implementation is sealed.

	* ../errors/cs0239.cs : Add.

	* attribute.cs (ApplyAttributes): Handle Modulebuilders too.

	* typemanager.cs (unverifiable_code_type): Corresponds to
	System.Security.UnverifiableCodeAttribute. We need to emit this for modules
	which have unsafe code in them.

	* rootcontext.cs (EmitCode): Emit the above attribute when we are in an
	unsafe context.

svn path=/trunk/mcs/; revision=2548
2002-02-20 23:03:57 +00:00
Ravi Pratap M fddbeaf8cd Add
svn path=/trunk/mcs/; revision=2547
2002-02-20 22:27:36 +00:00
Ravi Pratap M da2396bbf4 2002-02-20 Ravi Pratap <[email protected]>
* expression.cs (Binary.ResolveOperator): Ensure that we are

svn path=/trunk/mcs/; revision=2546
2002-02-20 21:43:10 +00:00
Miguel de Icaza 06ef43e48c Updated news
svn path=/trunk/mono/; revision=2545
2002-02-20 19:19:57 +00:00
Paolo Molaro af53eeba05 More tests.
svn path=/trunk/mono/; revision=2544
2002-02-20 17:45:22 +00:00
Paolo Molaro 5476034a3b Wed Feb 20 22:30:49 CET 2002 Paolo Molaro <[email protected]>
* AssemblyBuilder.cs: upped compiled assembly size limit.
	Implemented SetCustomAttribute () methods.
	* CustomAttributeBuilder.cs: implemented the needed constructor
	stuff.
	* Cosntructorbuilder.cs, EnumBuilder.cs, FieldBuilder.cs,
	MethodBuilder.cs, ModuleBuilder.cs, ParameterBuilder.cs,
	PropertyBuilder.cs, TypeBuilder.cs: Implemented SetCustomAttribute () methods.

svn path=/trunk/mcs/; revision=2543
2002-02-20 17:44:02 +00:00
Paolo Molaro 71663381e7 Wed Feb 20 22:20:29 CET 2002 Paolo Molaro <[email protected]>
* icall.c: change getToken () and add custom attribute GetBlob()helper
	method.
	* reflection.h: add custom attrs array to the reflection builder structures.
	* reflection.c: encode and emit custom attributes for all the relevant
	reflection objects. Cache fieldref and methodref tokens. Change
	mono_image_create_token() interface to take a MonoDynamicAssembly.
	More complete custom attributes decoder. Load custom attributes for
	Assembly, Field, Method and Constructor objects, too. Make the
	returned array an Attribute[] one, not object[]. Added
	mono_reflection_get_custom_attrs_blob() to encode the arguments of a
	custom attribute constructor.


Wed Feb 20 22:18:40 CET 2002 Paolo Molaro <[email protected]>

	* interp.c: more complete runtime_invoke () implementation.
	Fixed castclass/isinst to work correctly with arrays.

svn path=/trunk/mono/; revision=2542
2002-02-20 17:44:02 +00:00
Paolo Molaro 481d0cc141 Wed Feb 20 22:10:48 CET 2002 Paolo Molaro <[email protected]>
* dump.c: fix the fix and more complete custom attribute decoder.

svn path=/trunk/mono/; revision=2541
2002-02-20 17:26:40 +00:00
David Brandt e2abc43c80 Fleshing out Hashtable tests. Testing exceptions.
svn path=/trunk/mcs/; revision=2540
2002-02-20 17:19:47 +00:00
Dick Porter 5fc5c5a0df Use go-mono.com instead of go-mono.org, default CVSROOT
to anoncvs.go-mono.com

svn path=/trunk/mono/; revision=2539
2002-02-20 16:16:47 +00:00
Dick Porter eb4fe4d252 Updated build instructions, and convenience scripts for Linux and Windows.
svn path=/trunk/mono/; revision=2538
2002-02-20 16:02:26 +00:00
Paolo Molaro 4ee67e765f Wed Feb 20 17:53:59 CET 2002 Paolo Molaro <[email protected]>
* monograph.c: added -i option to create a graph of the types
	implementing an interface.

svn path=/trunk/mono/; revision=2537
2002-02-20 13:03:21 +00:00
Dick Porter 8a2edc69e2 2002-02-20 Dick Porter <[email protected]>
* acconfig.h:
        * configure.in: Always build without cygwin support on windows

2002-02-20  Dick Porter  <[email protected]>

        * io-layer.h: Always build without cygwin support on windows

2002-02-20  Dick Porter  <[email protected]>

        * icall.c:
        * rawbuffer.c:
        * socket-io.c: Windows portability fixes (sometimes just ifdeffing
        problem code out for now).

2002-02-20  Dick Porter  <[email protected]>

        * Makefile.am:
        * wrapper.c: Windows portability fixes (sometimes just ifdeffing
        problem code out for now).

svn path=/trunk/mono/; revision=2536
2002-02-20 12:04:17 +00:00
Paolo Molaro a14e5c9408 Wed Feb 20 14:54:01 CET 2002 Paolo Molaro <[email protected]>
* AssemblyBuilder.cs: add SetCustomAttribute () to keep the compiler
	going.

svn path=/trunk/mcs/; revision=2535
2002-02-20 10:03:21 +00:00
Dietmar Maurer 3a3cebc884 new option to print the vtable --print-vtable
svn path=/trunk/mono/; revision=2534
2002-02-20 06:29:54 +00:00
Dietmar Maurer b204b67474 fixed testjit target (set LD_LIBRARY_PATH)
svn path=/trunk/mono/; revision=2533
2002-02-20 05:33:16 +00:00
Miguel de Icaza 5ccfaf2e40 2002-02-19 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs: Add support for @"litreal strings"

svn path=/trunk/mcs/; revision=2532
2002-02-20 01:09:21 +00:00
Miguel de Icaza 088786997d Add a new test for the tokenizer bugs
svn path=/trunk/mcs/; revision=2531
2002-02-20 01:00:05 +00:00
Miguel de Icaza 6d73a098f2 2002-02-19 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs: Make tokenizer accept pre-processor directives
	on any column (remove the old C-like limitation).

	* rootcontext.cs (EmitCode): Emit any global attributes.
	(AddGlobalAttributes): Used to keep track of assembly attributes.

	* attribute.cs (ApplyAttributes): Support AssemblyAttributes.

	* cs-parser.jay: Add support for global attributes.

svn path=/trunk/mcs/; revision=2530
2002-02-20 00:52:52 +00:00
Nick Drochak 6333e8f56c 2002-02-20 Nick Drochak <[email protected]>
* contributing: Add link to the testing page for getting
	started.

svn path=/trunk/mono/; revision=2529
2002-02-19 22:03:58 +00:00
Radek Doulik 2a253c7bf7 2002-02-19 Radek Doulik <[email protected]>
* object.c (mono_ldstr): use hash table to avoid multiple swapping

svn path=/trunk/mono/; revision=2528
2002-02-19 21:34:40 +00:00
Duncan Mak aea51ce47d Add missing MonoTODO attribute
svn path=/trunk/mcs/; revision=2527
2002-02-19 21:27:24 +00:00
Radek Doulik 214c1e48a9 ops, fix return value passing
svn path=/trunk/mono/; revision=2526
2002-02-19 20:57:29 +00:00
Radek Doulik 875af536b1 added more pinvoke test methods
svn path=/trunk/mono/; revision=2525
2002-02-19 20:53:40 +00:00
Radek Doulik 21d2218cae 2002-02-19 Radek Doulik <[email protected]>
* mono/tests/libtest.c (mono_test_many_short_arguments): new test
	method
	(mono_test_many_byte_arguments): ditto

svn path=/trunk/mono/; revision=2524
2002-02-19 20:51:37 +00:00
Radek Doulik 0ce8200da6 added stack saving for most arguments
svn path=/trunk/mono/; revision=2523
2002-02-19 20:50:13 +00:00
Miguel de Icaza e0524b82f8 Ugh, I had the GPL here, its the LGPL
svn path=/trunk/mono/; revision=2522
2002-02-19 20:47:47 +00:00
Duncan Mak 1cd81fcf15 fixed a typo.
svn path=/trunk/mcs/; revision=2521
2002-02-19 20:23:57 +00:00
Duncan Mak 166b65fc32 2002-02-19 Duncan Mak <[email protected]>
* SurrogateSelector.cs: Implemented.

svn path=/trunk/mcs/; revision=2520
2002-02-19 20:19:39 +00:00
Radek Doulik 3e5a8d774f 2002-02-19 Radek Doulik <[email protected]>
* ppc/tramp.c (emit_save_parameters): don't start saving 64bit
values to
	even registers

svn path=/trunk/mono/; revision=2519
2002-02-19 19:49:10 +00:00
Miguel de Icaza d43407f421 2002-02-17 Miguel de Icaza <[email protected]>
* expression.cs (Indirection): New helper class.  Unary will
	create Indirection classes to be able to implement the
	IMemoryLocation interface on it.

2002-02-16  Miguel de Icaza  <[email protected]>

	* cs-parser.jay (fixed_statement): reference the right statement.

	* statement.cs (Fixed.Emit): Finish implementing the fixed
	statement for the &x case.

svn path=/trunk/mcs/; revision=2517
2002-02-19 17:14:03 +00:00
Paolo Molaro d10f5cc8b5 Tue Feb 19 20:36:04 CET 2002 Paolo Molaro <[email protected]>
* Assembly.cs, Module.cs, MonoField.cs, MonoMethod.cs,
	MonoProperty.cs, ParameterInfo.cs: Implemented custom attributes
	related methods.

svn path=/trunk/mcs/; revision=2516
2002-02-19 15:46:58 +00:00
Paolo Molaro d1b9ed1de7 Tue Feb 19 20:34:35 CET 2002 Paolo Molaro <[email protected]>
* MonoCustomAttrs.cs: hooks to get the custom attributes from the
	runtime.
	* MonoType.cs: Implemented custom attributes methods.

svn path=/trunk/mcs/; revision=2515
2002-02-19 15:46:31 +00:00
Paolo Molaro 4479530b9e Tue Feb 19 20:23:11 CET 2002 Paolo Molaro <[email protected]>
* icall.c: register the GetCustomAttributes method.
	* object.c, object.h: add mono_string_new_len ().
	* reflection.h, reflection.c: added mono_runtime_invoke(),
	mono_install_runtime_invoke(). Added
	mono_reflection_get_custom_attrs () to load custom attributes and
	create the attribute objects.


Tue Feb 19 20:21:14 CET 2002 Paolo Molaro <[email protected]>

	* interp.c: implement the runtime_invoke function.

svn path=/trunk/mono/; revision=2514
2002-02-19 15:41:30 +00:00
Paolo Molaro 12baa90827 Tue Feb 19 20:19:38 CET 2002 Paolo Molaro <[email protected]>
* x86/tramp.c: avoid pointer arthmetric (pointed out by Serge).


Tue Feb 19 20:20:15 CET 2002 Paolo Molaro <[email protected]>

	* dump.c: the prolog is before each arg in the custom attribute blob.

svn path=/trunk/mono/; revision=2513
2002-02-19 15:40:57 +00:00
Miguel de Icaza 6ac55c6f18 Add link to Lupus hack
svn path=/trunk/mono/; revision=2512
2002-02-19 15:27:36 +00:00
Miguel de Icaza 467877d8fb :Update AnonCVS requirements
svn path=/trunk/mono/; revision=2511
2002-02-19 14:13:11 +00:00
Dietmar Maurer 07a962aba4 * Array.cs (CopyTo): use GetLength() instead of GetUpperBound()
svn path=/trunk/mcs/; revision=2510
2002-02-19 14:09:56 +00:00
Duncan Mak 26d9468923 2002-02-19 Duncan Mak <[email protected]>
* Convert.cs: Finished up the missing methods in Convert.
	    Added a new private method ConvertFromBase.

svn path=/trunk/mcs/; revision=2509
2002-02-19 12:28:23 +00:00
Dick Porter e30616700a Updated cvsignores
svn path=/trunk/mono/; revision=2508
2002-02-19 12:19:20 +00:00
Dick Porter 7b7d741cd4 2002-02-19 Dick Porter <[email protected]>
* threads-dummy-types.c:
	* threads-dummy-types.h:
	* threads-dummy.c:
	* threads-dummy.h:
	* threads-pthread-types.c:
	* threads-pthread-types.h:
	* threads-pthread.c:
	* threads-pthread.h:  Deleted obsolete files

svn path=/trunk/mono/; revision=2507
2002-02-19 12:17:06 +00:00
Nick Drochak 19cd6f2cb7 2002-02-20 Nick Drochak <[email protected]>
* .cvsignore: Ignore files generated by CorCompare

svn path=/trunk/mcs/; revision=2506
2002-02-19 11:42:16 +00:00
Dietmar Maurer 64e112154f (arch_create_jit_trampoline): cache trampoline code
svn path=/trunk/mono/; revision=2505
2002-02-19 11:39:45 +00:00
Nick Drochak 8485c8e81e 2002-02-20 Nick Drochak <[email protected]>
* .cvsignore: Ignore the file generated by CorCompare

svn path=/trunk/mono/; revision=2504
2002-02-19 11:37:26 +00:00
Nick Drochak 610cd87150 2002-02-20 Nick Drochak <[email protected]>
* ArrayList.cs: Add MonoTODO's where necessary. Fix bugs discovered
	by Bucky's tests. Implement a couple of things that were left undone.

svn path=/trunk/mcs/; revision=2503
2002-02-19 11:31:39 +00:00
Nick Drochak 50e4dda4d0 2002-02-20 Nick Drochak <[email protected]>
* Int64Test.cs: One array was giving us trouble.  Not sure why, but
	it's related to the number of elements in an Array.  For short Arrays
	the compiler doesn't use the PrivateImplmentationDetails struct,
	but for longer ones it does.  That's when our corlib fails. I paired
	down the array for now.

svn path=/trunk/mcs/; revision=2502
2002-02-19 11:30:54 +00:00
Nick Drochak 6a5e1428bc 2002-02-20 Nick Drochak <[email protected]>
* ArrayListTest.cs: Add a small assert for a bug that I found and fixed
	in ArrayList.  Make sure it doesn't come up again.

svn path=/trunk/mcs/; revision=2501
2002-02-19 11:25:39 +00:00
Dietmar Maurer a2aa79ef5c 2002-02-19 Dietmar Maurer <[email protected]>
* emit-x86.c (arch_compile_method): add shared code to mono_root_domain

	* class.c (mono_class_vtable): runtime init the class when we
	allocate static class data.

svn path=/trunk/mono/; revision=2500
2002-02-19 10:03:37 +00:00
Dietmar Maurer 45fe7d3d91 2002-02-19 Dietmar Maurer <[email protected]>
* String.cs: impl. IConvertible interface

svn path=/trunk/mcs/; revision=2499
2002-02-19 08:56:42 +00:00
Dietmar Maurer 07ceb67bb1 * icall.c (ves_icall_System_Array_SetValue): check for null values.
svn path=/trunk/mono/; revision=2498
2002-02-19 08:33:42 +00:00
Paolo Molaro 7680406984 Tue Feb 19 12:24:15 CET 2002 Paolo Molaro <[email protected]>
* monograph.c: fix typo. Update for changes in mono_init ().

svn path=/trunk/mono/; revision=2497
2002-02-19 07:33:10 +00:00
Paolo Molaro 1ab9ed93f6 Mon Feb 18 14:37:17 CET 2002 Paolo Molaro <[email protected]>
* monograph.c: First commit: program to generate call graphs
	or type hierarchies from CIL programs.

svn path=/trunk/mono/; revision=2496
2002-02-19 06:36:01 +00:00
Dietmar Maurer 07dcbcd50e (mono_init): set the domain name in a ms compatible way
svn path=/trunk/mono/; revision=2495
2002-02-19 06:20:24 +00:00
Dietmar Maurer 08d43c51a7 2002-02-19 Dietmar Maurer <[email protected]>
* appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
	and String - but we will need generic marshalling support in the
	future.

	* object.c (mono_string_new_utf16): bug fix: use char[] instead of
	String[].

svn path=/trunk/mono/; revision=2494
2002-02-19 06:01:21 +00:00
Duncan Mak 88c9c7874e 2002-02-19 Duncan Mak <[email protected]>
* SerializationInfoEnumerator.cs: oh, and simplified the Current
	      property too.

svn path=/trunk/mcs/; revision=2493
2002-02-19 04:03:21 +00:00
Duncan Mak e0b9e2730a 2002-02-19 Duncan Mak <[email protected]>
* SerializationInfo.cs: Forgot to finish up GetEnumerator ().

svn path=/trunk/mcs/; revision=2492
2002-02-19 04:00:22 +00:00
Miguel de Icaza 09be5dfc6e Add to the Makefile
svn path=/trunk/mono/; revision=2490
2002-02-19 01:44:16 +00:00
Duncan Mak b2ec928a27 2002-02-18 Duncan Mak <[email protected]>
* SerializationInfo.cs: Converted Type.GetType calls to the faster
        typeof operator.

svn path=/trunk/mcs/; revision=2489
2002-02-19 00:32:09 +00:00
Duncan Mak 3187be79de 2002-02-18 Duncan Mak <[email protected]>
* serialize.cs: When appropriate, changed Type.GetType calls to
        the faster typeof operator.

svn path=/trunk/mcs/; revision=2488
2002-02-19 00:30:42 +00:00
Adam Treat 422c69963a Initial Checkin of the DocTools: docconv, docgen, docstub and xsl/DTD
svn path=/trunk/mcs/; revision=2487
2002-02-19 00:05:25 +00:00
Radek Doulik 1fe17aceb8 2002-02-18 Radek Doulik <[email protected]>
* mono/tests/Makefile.am: added small test library for pinvoke
	testing

	* mono/tests/libtest.c (mono_test_many_int_arguments): new file,
	new function to test pinvoke

svn path=/trunk/mono/; revision=2486
2002-02-18 22:57:38 +00:00
Radek Doulik 436aa086a8 ops
svn path=/trunk/mono/; revision=2485
2002-02-18 22:55:16 +00:00
Radek Doulik 89da80f5bf added pinvoked method with 10 int arguments
svn path=/trunk/mono/; revision=2484
2002-02-18 22:53:53 +00:00
Radek Doulik 7cdedaaca7 2002-02-18 Radek Doulik <[email protected]>
* mono/tests/Makefile.am: display # of passing tests too

svn path=/trunk/mono/; revision=2483
2002-02-18 20:11:32 +00:00
Duco Fijma cce8f5e861 Implementation for Guid.Guid(string) (including test cases)
svn path=/trunk/mcs/; revision=2481
2002-02-18 18:50:47 +00:00
Duncan Mak d947ccdb58 2002-02-18 Duncan Mak <[email protected]>
* Convert.cs: Changed from using Type.GetType (string) to just
        typeof (). Probably will speed things up a bit?

svn path=/trunk/mcs/; revision=2480
2002-02-18 16:00:03 +00:00
Dan Lewis ee5772c973 Removed System.Exception from cmp and res builds. Was causing NUnit troubles.
svn path=/trunk/mcs/; revision=2479
2002-02-18 15:49:36 +00:00
Dietmar Maurer 25e27c3f93 new test
svn path=/trunk/mono/; revision=2478
2002-02-18 14:47:41 +00:00
Dietmar Maurer 0186b657cf *** empty log message ***
svn path=/trunk/mono/; revision=2477
2002-02-18 12:57:06 +00:00
Dietmar Maurer 7fce8a9334 2002-02-18 Dietmar Maurer <[email protected]>
* jit.c (mono_analyze_stack): optimize LDSFLD/STSFLD for domain
	specific code.
	(mono_analyze_stack): use MB_TERM_LDELEMA to perform bound check

svn path=/trunk/mono/; revision=2476
2002-02-18 12:52:32 +00:00
Dietmar Maurer d03e7de66c 2002-02-18 Dietmar Maurer <[email protected]>
* x86.brg: do not encode exception objects into the instruction
	stream, because they are domain dependend. Use
	arch_get_throw_exception_by_name() instead;
	* jit.c (mono_analyze_stack): imp. LDSTR for shared code

svn path=/trunk/mono/; revision=2475
2002-02-18 12:18:59 +00:00
Nick Drochak 591252dbbd 2002-02-19 Nick Drochak <[email protected]>
* corcompare.cs: Reorganized into collaberating classes to analyze
	and generate reports.  Still needs to find the MonoTODO's, and
	has a little more prototype code in there, but it's almost done.

	* makefile: output XML file in the tools directory for now.

svn path=/trunk/mcs/; revision=2474
2002-02-18 11:58:10 +00:00
Paolo Molaro 405fc78b65 Mon Feb 18 15:50:59 CET 2002 Paolo Molaro <[email protected]>
* sockets.c: #undef DEBUG.

svn path=/trunk/mono/; revision=2473
2002-02-18 11:03:30 +00:00
Paolo Molaro 05175b738a Mon Feb 18 15:49:20 CET 2002 Paolo Molaro <[email protected]>
* interp.c: fix alignment code. Make sure to init classes
	in more cases. Command-line arguments are interned.

svn path=/trunk/mono/; revision=2472
2002-02-18 11:03:16 +00:00
Paolo Molaro bf38bb2915 Mon Feb 18 15:51:40 CET 2002 Paolo Molaro <[email protected]>
* jit.c: intern command line arguments.

svn path=/trunk/mono/; revision=2471
2002-02-18 11:02:59 +00:00
Paolo Molaro 44d1dbcd2c Mon Feb 18 15:52:20 CET 2002 Paolo Molaro <[email protected]>
* appdomain.c, object.c: fix intern pool implementation.
	* class.c: fix alignment code.

svn path=/trunk/mono/; revision=2470
2002-02-18 11:02:37 +00:00
Paolo Molaro ec6f462697 Mon Feb 18 15:48:38 CET 2002 Paolo Molaro <[email protected]>
* get.c: include last param.

svn path=/trunk/mono/; revision=2469
2002-02-18 11:02:20 +00:00
Paolo Molaro 4a27df1739 Mon Feb 18 14:28:10 CET 2002 Paolo Molaro <[email protected]>
* Makefile.am: fix compatibility problem with automake 1.4.

svn path=/trunk/mono/; revision=2468
2002-02-18 09:37:09 +00:00
Dietmar Maurer b87eef5aa0 committed patch from Ajay
svn path=/trunk/mcs/; revision=2467
2002-02-18 09:36:18 +00:00
Dietmar Maurer 0eb8b6e3fe dont compile methods more than once gives better performance ;-)
svn path=/trunk/mono/; revision=2466
2002-02-18 08:54:46 +00:00
Duncan Mak 46b35e6e71 2002-02-17 Duncan Mak <[email protected]>
* TimeZone.cs:	Applied the rest of Ajay's patch for
        IsDaylightSavingTime. Thanks a lot for the nice explanation of how
        it works!

svn path=/trunk/mcs/; revision=2465
2002-02-17 22:26:54 +00:00
Radek Doulik 5bbb919c76 2002-02-17 Radek Doulik <[email protected]>
* mono/tests/Makefile.am (test): display # of failed tests

svn path=/trunk/mono/; revision=2464
2002-02-17 21:46:58 +00:00
Radek Doulik ff5a1e0521 la la la, ChangeLog entries
svn path=/trunk/mono/; revision=2463
2002-02-17 21:10:29 +00:00
Radek Doulik c781707da9 (mono_string_new_wrapper): new helper function, cut&pasted from
x86, modified to check for NULL text to avoid branching in
	generated code
	(calculate_sizes): updated for string retval changes
	(emit_call_and_store_retval): updated for string retval

svn path=/trunk/mono/; revision=2461
2002-02-17 20:02:39 +00:00
Radek Doulik fbf3e1b28f 2002-02-17 Radek Doulik <[email protected]>
* ppc/tramp.c: fixed minimal stack size, fixed string parameters,
	fix byte and half word parameters

	* ppc/ppc-codegen.h (ppc_mr): added lhz, lbz, sth

svn path=/trunk/mono/; revision=2460
2002-02-17 19:41:12 +00:00
Nick Drochak 77ded54ae5 2002-02-18 Nick Drochak <[email protected]>
* GuidTest.cs: Fix compile error.  Needed to cast the null in the call to
	constructor to avoid ambiguity.

svn path=/trunk/mcs/; revision=2459
2002-02-17 18:40:22 +00:00
Duco Fijma a4a6d07654 Created first test for System.Guid
svn path=/trunk/mcs/; revision=2458
2002-02-17 12:10:54 +00:00
Duncan Mak 6300f49659 2002-02-17 Duncan Mak <[email protected]>
* FileDialogPermissionAccess.cs: Add in namespace declaration, so
      that this one little unique enum wouldn't show up in the System
      namespace when we ildasm corlib.dll ;-) Oops, my bad.

svn path=/trunk/mcs/; revision=2457
2002-02-17 02:31:25 +00:00
Duncan Mak e753c43cd9 2002-02-17 Duncan Mak <[email protected]>
* Convert.cs: Near-complete implementation of Convert.cs

      Added all the To* methods taking (object) and
      (object, IFormatProvider) as parameters.

      Added [CLSCompliant (false)] attributes to methods dealing with
      unsigned types.

      Added the missing section on converting to and from DateTime. Only
      6 missing methods, all marked with MonoTODOs. Will tackle them later.

svn path=/trunk/mcs/; revision=2456
2002-02-17 02:17:50 +00:00
Radek Doulik 6a9de36a15 (ves_icall_System_Enum_ToObject): and likewise for s1 > s2
svn path=/trunk/mono/; revision=2455
2002-02-17 00:27:24 +00:00
Radek Doulik 727316d1ba 2002-02-16 Radek Doulik <[email protected]>
* icall.c (ves_icall_System_Enum_ToObject): in case of big endian
	and s2 > s1, just copy lower bytes to be compatible with little
	endian (i.e. 64bit value & 0xffffffff --> 32bit value)

svn path=/trunk/mono/; revision=2454
2002-02-17 00:23:33 +00:00
Jeffrey Stedfast 5676cdfe3f 2002-02-16 Jeffrey Stedfast <[email protected]>
* wrapper.c (mono_wrapper_fstat): The MonoWrapperStat namespace is
	mst_ now, so update this code. Also fix a copy/paste-o that
	assigned st.st_ctime to buf->mst_mtime.
	(mono_wrapper_stat): Same here.

	* genwrapper.pl: Solaris does some nasty macro hadckery action for
	st_[a,c,m]time and so lets namespace our wrapper members as
	mst_[a,c,m]time to avoid namespace problems.

svn path=/trunk/mono/; revision=2453
2002-02-16 21:01:20 +00:00
Duncan Mak 766798fd5f Forgot to change this too.
svn path=/trunk/mcs/; revision=2452
2002-02-16 20:38:50 +00:00
Duncan Mak 95085eda0f 2002-02-16 Duncan Mak <[email protected]>
* TimeZone.cs: patch from Ajay Kumar Dwivedi ([email protected]) to
	make IsDaylightSavingTime (DateTime) call
	IsDaylightSavingTime (DateTime, DaylightTime).

	Added internal class CurrentTimeZone from Ajay. It needs more work
	to fill in the appropriate internal calls.

svn path=/trunk/mcs/; revision=2451
2002-02-16 20:34:15 +00:00
Jeffrey Stedfast 76e737b18a remove checks for IP_ADD/DROP_MEMBERSHIP
svn path=/trunk/mono/; revision=2450
2002-02-16 19:44:06 +00:00
Jeffrey Stedfast fef5f1beb0 don't bother wrapping IP_[ADD,DROP]_MEMBERSHIP with ifdefs since
solaris does have these afterall.

svn path=/trunk/mono/; revision=2449
2002-02-16 19:42:48 +00:00
Radek Doulik a8c1e8e593 2002-02-16 Radek Doulik <[email protected]>
* unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
	force big_endian to be 1 for big endian machines
	(ves_icall_iconv_new_decoder): ditto

svn path=/trunk/mono/; revision=2448
2002-02-16 19:39:35 +00:00
Jeffrey Stedfast e4cdfa72bb 2002-02-16 Jeffrey Stedfast <[email protected]>
* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
	IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. Also check for struct
	ip_mreqn.

svn path=/trunk/mono/; revision=2447
2002-02-16 19:37:58 +00:00
Jeffrey Stedfast 0668621066 2002-02-16 Jeffrey Stedfast <[email protected]>
* socket-io.c (convert_sockopt_level_and_name): If the system
	doesn't define SOL_IP or SOL_TCP, get them by hand using
	getprotobyname() and caching the values (because this could be a
	slow operation).
	(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
	Don't attempt to add or drop memberships unless the system
	supports it. Also use the appropriate struct when the system does
	support it. Ie, not all systems have struct ip_mreqn so use struct
	ip_mreq when appropriate.

svn path=/trunk/mono/; revision=2446
2002-02-16 19:22:40 +00:00
Jeffrey Stedfast dc67d5fea9 2002-02-16 Jeffrey Stedfast <[email protected]>
* socket-io.c (convert_sockopt_level_and_name): If the system
	doesn't define SOL_IP or SOL_TCP, get them by hand using
	getprotobyname() and caching the values (because this could be a
	slow operation).
	(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
	Don't attempt to add or drop memberships unless the system
	supports it.

svn path=/trunk/mono/; revision=2445
2002-02-16 18:48:14 +00:00
Jeffrey Stedfast ad35083d69 2002-02-16 Jeffrey Stedfast <[email protected]>
* configure.in: Add checks for SOL_IP, SOL_TCP, IP_PKTINFO,
	IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.

svn path=/trunk/mono/; revision=2444
2002-02-16 18:47:38 +00:00
Radek Doulik 4ff60e15f0 2002-02-16 Radek Doulik <[email protected]>
* interp.c (ves_exec_method): test type of sp [-1] instead of sp
	[0], because sp [-1] is the value going to be shifted, fixed in
	CEE_SHL, CEE_SHR, CEE_UN opcodes)

svn path=/trunk/mono/; revision=2443
2002-02-16 18:21:33 +00:00
Miguel de Icaza 4ba0edf330 Add missing makefile
svn path=/trunk/mcs/; revision=2442
2002-02-16 12:13:28 +00:00
Paolo Molaro 0027e49fc1 Sat Feb 16 16:27:42 CET 2002 Paolo Molaro <[email protected]>
* emit-x86.c: handle unreachable code. Eliminate some unneeded
	malloc() calls.
	* jit.c: handle unreachable code. Move setting of mono_end_of_stack to
	main(). Add --compile classname and --ncompile num command line
	options to do performance evaluation of the jitter (and help
	debugging).

svn path=/trunk/mono/; revision=2441
2002-02-16 11:41:15 +00:00
Paolo Molaro dc2998b232 Sat Feb 16 12:41:41 CET 2002 Paolo Molaro <[email protected]>
* Type.cs: fix IsClass.

svn path=/trunk/mcs/; revision=2440
2002-02-16 07:50:34 +00:00
Paolo Molaro 5b84edd266 Sat Feb 16 12:02:02 CET 2002 Paolo Molaro <[email protected]>
* String.cs: fix Trim().

svn path=/trunk/mcs/; revision=2439
2002-02-16 07:10:54 +00:00
Paolo Molaro 1a2e8f64ec Sat Feb 16 12:00:24 CET 2002 Paolo Molaro <[email protected]>
* interp.c: fixed cut&paste error for ldind.r4 and ldind.r8.

svn path=/trunk/mono/; revision=2438
2002-02-16 07:09:22 +00:00
Duncan Mak 3dbc80852d 2002-02-16 Duncan Mak <[email protected]>
* SurrogateSelector.cs: Stubbed out. Gonna be working on this
      tomorrow.

svn path=/trunk/mcs/; revision=2437
2002-02-16 01:19:32 +00:00
Duncan Mak 832e3630e9 2002-02-15 Duncan Mak <[email protected]>
* SerializationEntry.cs: Added internal constructor bits for
	      SerializationInfoEnumerator.
	    * SerializationInfo.cs: Completed.
	    * SerializationInfoEnumerator.cs: Implemented. Piggybacking on
	      Hashtable's GetEnumerator method.

svn path=/trunk/mcs/; revision=2436
2002-02-15 23:16:55 +00:00
Miguel de Icaza 6c82594dde Add new sample error case, from Dan
svn path=/trunk/mcs/; revision=2435
2002-02-15 21:28:18 +00:00
David Brandt 1786cb611e Added StreamWriterTest to AllTests
svn path=/trunk/mcs/; revision=2434
2002-02-15 18:55:45 +00:00
David Brandt caeccb6350 Adding 'StreamWriterTest.cs' - mostly finished.
svn path=/trunk/mcs/; revision=2433
2002-02-15 18:55:00 +00:00
David Brandt 7e34896962 Fixing small incorrectness in test.
svn path=/trunk/mcs/; revision=2432
2002-02-15 18:50:40 +00:00
Paolo Molaro 485efc7264 Fri Feb 15 21:02:46 CET 2002 Paolo Molaro <[email protected]>
* String.cs: fix more off by one errors.

svn path=/trunk/mcs/; revision=2431
2002-02-15 16:11:35 +00:00
David Brandt 72fc17cd1a Adding StreamReaderTest to AllTests
svn path=/trunk/mcs/; revision=2430
2002-02-15 16:06:45 +00:00
David Brandt 2d3115739c Adding System.IO.StreamReaderTest. Only non-inherited methods are tested.
svn path=/trunk/mcs/; revision=2429
2002-02-15 16:06:22 +00:00
Paolo Molaro 96efe58392 Fri Feb 15 18:15:04 CET 2002 Paolo Molaro <[email protected]>
* ILGenerator.cs: finally block support and fixes.

svn path=/trunk/mcs/; revision=2428
2002-02-15 13:24:40 +00:00
Paolo Molaro d60177a8de Fri Feb 15 18:15:44 CET 2002 Paolo Molaro <[email protected]>
* reflection.c: handle finally clauses.

svn path=/trunk/mono/; revision=2427
2002-02-15 13:24:35 +00:00
Paolo Molaro cb61501ca2 Fri Feb 15 15:07:27 CET 2002 Paolo Molaro <[email protected]>
* interp.c: use strrchr instead of rindex. use _isnan and _finite on
	win32 systems.


Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <[email protected]>

	* socket-io.c: use g_snprintf() instead of snprintf.

svn path=/trunk/mono/; revision=2424
2002-02-15 10:16:57 +00:00
Paolo Molaro a52aeaacc6 Fix make distcheck.
svn path=/trunk/mono/; revision=2423
2002-02-15 10:12:19 +00:00
Paolo Molaro 4c77b6f692 Fri Feb 15 14:20:30 CET 2002 Paolo Molaro <[email protected]>
* Makefile.am: avoid automake for build on host stuff.

svn path=/trunk/mono/; revision=2422
2002-02-15 09:29:30 +00:00
Dietmar Maurer 590b2cab79 bug fix in static delegate invoke
svn path=/trunk/mono/; revision=2421
2002-02-15 04:54:34 +00:00
Jeffrey Stedfast b8db55f044 2002-02-14 Jeffrey Stedfast <[email protected]>
* interp.c (ves_exec_method): replace
	'g_assert (sp->type = VAL_VALUETA)' with
	'g_assert (sp->type == VAL_VALUETA)' otherwise
	the assert always passes. FIXME: should the test have been !=?

svn path=/trunk/mono/; revision=2418
2002-02-14 22:58:04 +00:00
Jeffrey Stedfast d37c178e86 2002-02-14 Jeffrey Stedfast <[email protected]>
* reflection.c (mono_param_get_objects): Cast second argument to
	mono_method_get_param_names to a const char** to silence the
	compiler warning.

	* appdomain.c (mono_domain_assembly_open): Put parens around the
	truth statement in the for-loop.

	* unicode.c (iconv_convert): Got rid of a compiler warning about
	int i being unused when the system has a new iconv.
	(iconv_get_length): Same.

svn path=/trunk/mono/; revision=2417
2002-02-14 22:23:12 +00:00
Jeffrey Stedfast 43af1503ee 2002-02-14 Jeffrey Stedfast <[email protected]>
* image.c (load_class_names): Cast the second argument to
	g_hash_table_insert() to char* to hush compiler warnings about the
	arg being a const.
	(mono_image_open): Same here.

svn path=/trunk/mono/; revision=2416
2002-02-14 22:06:13 +00:00
Jeffrey Stedfast 22a8c46a75 2002-02-14 Jeffrey Stedfast <[email protected]>
* socket-io.c: Don't conditionally include sys/filio.h or
	sys/sockio.h here anymore since we now get them from
	io-layer/io-layer.h
	(inet_pton): If the system doesn't support inet_aton, implement
	using inet_addr and also #define INADDR_NONE if it isn't defined
	by the system.

svn path=/trunk/mono/; revision=2415
2002-02-14 21:22:40 +00:00
Jeffrey Stedfast a4e8c7de31 2002-02-14 Jeffrey Stedfast <[email protected]>
* io-layer.h: conditionally include sys/filio.h and sys/sockio.h
	for FIONBIO, FIONREAD, and SIOCATMARK.

svn path=/trunk/mono/; revision=2414
2002-02-14 21:22:18 +00:00
David Brandt c8b715b70c touching up TODO
svn path=/trunk/mcs/; revision=2413
2002-02-14 18:44:12 +00:00
David Brandt 6e66e8c7d4 Adding ArrayListTest to AllTests
svn path=/trunk/mcs/; revision=2412
2002-02-14 18:41:46 +00:00
David Brandt 4ca17ec8da Introducing ArrayListTest
svn path=/trunk/mcs/; revision=2411
2002-02-14 18:39:18 +00:00
Paolo Molaro ec2728d5a6 Thu Feb 14 18:55:52 CET 2002 Paolo Molaro <[email protected]>
* FieldBuilder.cs: Add SetRVAData().
	* ILGenerator.cs: speed up code array growth.
	* TypeBuilder.cs: fix IsValueTypeImpl(). Add class_size member.
	Implement DefineInitializedData().

svn path=/trunk/mcs/; revision=2410
2002-02-14 14:18:02 +00:00
Paolo Molaro 44eecf371a Thu Feb 14 18:55:23 CET 2002 Paolo Molaro <[email protected]>
* TypeAttributes.cs: update to latest spec.

svn path=/trunk/mcs/; revision=2409
2002-02-14 14:17:41 +00:00
Paolo Molaro 1f5c20bfe8 Thu Feb 14 18:54:09 CET 2002 Paolo Molaro <[email protected]>
* MonoType.cs: fix IsValueTypeImpl.
	* Type.cs: fix IsEnum. Implement Equals methods.

svn path=/trunk/mcs/; revision=2408
2002-02-14 14:17:14 +00:00
Paolo Molaro 0beca40f47 Thu Feb 14 18:59:37 CET 2002 Paolo Molaro <[email protected]>
* main.c: output pack and size info if needed.

svn path=/trunk/mono/; revision=2407
2002-02-14 14:16:43 +00:00
Paolo Molaro 195d22172c Thu Feb 14 19:01:06 CET 2002 Paolo Molaro <[email protected]>
* metadata.c, metadata.h: added function to get packing and size info
	of a typedef.
	* reflection.h, reflection.c: handle field RVA data. Save info about
	the table layout if needed. Assign typedef indexes to all the types
	before dumping the info about them to avoid forward reference problems.

svn path=/trunk/mono/; revision=2406
2002-02-14 14:16:20 +00:00
Miguel de Icaza fa7d633b09 2002-02-14 Miguel de Icaza <[email protected]>
* class.cs (Property.Define, Method.Define): Remove newslot when
	`implementing'.

svn path=/trunk/mcs/; revision=2405
2002-02-14 13:25:40 +00:00
Miguel de Icaza 36c97be734 2002-02-14 Miguel de Icaza <[email protected]>
* driver.cs (GetSystemDir): Use CodeBase instead of FullName for
	locating our system dir.  Sorry about this.

svn path=/trunk/mcs/; revision=2404
2002-02-14 13:03:41 +00:00
Miguel de Icaza 171fbeb98b Flush changes from my NT partition
svn path=/trunk/mono/; revision=2403
2002-02-14 13:02:45 +00:00
Nick Drochak 619287d730 2002-02-15 Nick Drochak <[email protected]>
* corcompare.cs: Adding stuff to collect all the missing and todo
	information need to generate nice looking HTML pages.  Not quite
	done and needs some re-org, but Duncan can take a look.

	* sample.xml: an example of how the XML will look that corcompare
	will generate.  Can be used to start working on the XSLT.

svn path=/trunk/mcs/; revision=2402
2002-02-14 12:08:11 +00:00
Nick Drochak 2f1c78033a 2002-02-14 Nick Drochak <[email protected]>
* makefile: Build mcs/doctools too when one does 'make'

svn path=/trunk/mcs/; revision=2401
2002-02-14 10:15:32 +00:00
Nick Drochak fad221fe3c �2-02-14 Nick Drochak <[email protected]>
* doctools.build: Fix build script so doctools will compile
	(doesn't run yet though)

svn path=/trunk/mcs/; revision=2400
2002-02-14 10:13:58 +00:00
Nick Drochak 705725070a 2002-02-14 Nick Drochak <[email protected]>
* FileCodeGroup.cs: Finish Equals()

svn path=/trunk/mcs/; revision=2399
2002-02-14 07:59:40 +00:00
Dietmar Maurer bdd70970f6 fixed NEWOBJ and SIZEOF bugs
svn path=/trunk/mono/; revision=2398
2002-02-14 07:31:11 +00:00
Paolo Molaro b978a0b803 Thu Feb 14 11:49:30 CET 2002 Paolo Molaro <[email protected]>
* opcode.c: use stddef.h to get NULL.

svn path=/trunk/mono/; revision=2397
2002-02-14 06:58:06 +00:00
Miguel de Icaza 8eb16a5242 Add sparc to the configure
svn path=/trunk/mono/; revision=2396
2002-02-14 01:17:20 +00:00
Jeffrey Stedfast adada26ae2 2002-02-14 Jeffrey Stedfast <[email protected]>
* socket-io.c: conditionally include sys/filio.h and sys/sockio.h
	for FIONBIO, FIONREAD and SIOCATMARK.
	(ves_icall_System_Net_Dns_GetHostByAddr_internal): SunOS doesn't
	define INADDR_NONE and besides, inet_addr() is deprecated and
	should not be used. Use inet_pton() instead - it also has the
	added bonus that it can easily handle IPv6 addresses as well.
	(inet_pton): Implement using inet_aton() ifndef HAVE_INET_PTON.

svn path=/trunk/mono/; revision=2395
2002-02-14 01:06:46 +00:00
Jeffrey Stedfast a90ce13b8c 2002-02-14 Jeffrey Stedfast <[email protected]>
* sockets.c: conditionally include sys/filio.h and sys/sockio.h
	for FIONBIO, FIONREAD, and SIOCATMARK.

svn path=/trunk/mono/; revision=2394
2002-02-14 01:05:24 +00:00
Jeffrey Stedfast cb22a00528 2002-02-14 Jeffrey Stedfast <[email protected]>
* configure.in: Add checks to see if we need to link to libsocket,
	libnsl, and/or librt. Also check for inet_pton and inet_aton.

svn path=/trunk/mono/; revision=2393
2002-02-14 01:04:34 +00:00
Miguel de Icaza aefe6a0b33 2002-02-13 Miguel de Icaza <[email protected]>
* driver.cs (GetSystemDir): Compute correctly the location of our
	system assemblies.  I was using the compiler directory instead of
	the library directory.

svn path=/trunk/mcs/; revision=2392
2002-02-13 23:28:34 +00:00
Dan Lewis 19b91de662 Internal call tool, first revision. (mucho experimental)
svn path=/trunk/mcs/; revision=2391
2002-02-13 22:40:49 +00:00
Ravi Pratap M 655c722662 2002-02-13 Ravi Pratap <[email protected]>
* expression.cs (BetterFunction): Put back in what Miguel commented out
	since it is the correct fix. The problem is elsewhere ;-)

	(IsParamsMethodApplicable): Fix bug where we were not checking that the fixed
	parameters of the parms method are themselves compatible or not !

	(StandardConversionExists): Fix very dangerous bug where we were forgetting
	to check that a class implements an interface before saying that an implicit
	conversion was allowed. Use ImplementsInterface to do the checking.

svn path=/trunk/mcs/; revision=2390
2002-02-13 20:06:03 +00:00
Miguel de Icaza 77298082ac Fix the abstract bug that Paolo reported for running MCS under the JITer.
The problem was with my understanding of the .override keyword.

2002-02-13  Miguel de Icaza  <[email protected]>

	* class.cs (Method.Define): Track whether we are an explicit
	implementation or not.  And only call DefineMethodOverride if we
	are an explicit implementation.

	(Property.DefineMethod): Ditto.
	(IndexerAccess.DefineMethod): ditto.

svn path=/trunk/mcs/; revision=2389
2002-02-13 19:52:25 +00:00
Dan Lewis cb96e363a7 Removed Enum.cs from _cmp and _res builds. Fixes problem with reflection.
svn path=/trunk/mcs/; revision=2388
2002-02-13 19:24:35 +00:00
Paolo Molaro d89f61a239 Wed Feb 13 23:00:21 CET 2002 Paolo Molaro <[email protected]>
* decimal.c: remove _MSC_VER conditional.

svn path=/trunk/mono/; revision=2387
2002-02-13 18:11:02 +00:00
David Brandt bd6b95c4aa Adding ArrayTest to AllTests
svn path=/trunk/mcs/; revision=2386
2002-02-13 18:09:05 +00:00
David Brandt 86598fc315 Introducing ArrayTest
svn path=/trunk/mcs/; revision=2385
2002-02-13 18:08:31 +00:00
Miguel de Icaza 75cfd6427d Update
svn path=/trunk/mono/; revision=2384
2002-02-13 17:13:56 +00:00
Dick Porter 9a5e16ca6a 2002-02-13 Dick Porter <[email protected]>
* socket-io.c:
	* icall.c: Internal calls for Blocking, Select, Shutdown,
	GetSocketOption and SetSocketOption

2002-02-13  Dick Porter  <[email protected]>

	* sockets.c: Implement shutdown and select

svn path=/trunk/mono/; revision=2383
2002-02-13 17:01:21 +00:00
Paolo Molaro 03a3dab0f1 Wed Feb 13 21:50:13 CET 2002 Paolo Molaro <[email protected]>
* Int32.cs: implement IConvertible interface.

svn path=/trunk/mcs/; revision=2382
2002-02-13 17:01:13 +00:00
Paolo Molaro efae364c08 Wed Feb 13 21:51:30 CET 2002 Paolo Molaro <[email protected]>
* Thread.cs: implement CurrentCulture property needed by
	Convert.ChangeType() (used when compiling enums).

svn path=/trunk/mcs/; revision=2381
2002-02-13 17:00:45 +00:00
Dick Porter 493c36b7f8 2002-02-13 Dick Porter <[email protected]>
* Socket.cs: Implemenent Select, Blocking, Connected,
	GetSocketOption, Poll, SetSocketOption and Shutdown

	* MulticastOption.cs:
	* LingerOption.cs: Delete override methods that don't need to be
	implemented

svn path=/trunk/mcs/; revision=2380
2002-02-13 17:00:10 +00:00
Dan Lewis e0e9356649 Modified and added stubs to allow corlib to compile without referencing mscorlib
or MS assemblies. (check the corlib.dll assembly metadata :)

svn path=/trunk/mcs/; revision=2379
2002-02-13 16:24:18 +00:00
Jeffrey Stedfast d91ba93071 s/pthread_mutex_t/mono_mutex_t in some header files too
svn path=/trunk/mono/; revision=2378
2002-02-13 15:33:44 +00:00
Jeffrey Stedfast 3408f54a0e * pthread-compat.[c,h]: Replaced by mono-mutex.[c,h]
svn path=/trunk/mono/; revision=2377
2002-02-13 15:23:42 +00:00
Jeffrey Stedfast 40d0390444 2002-02-13 Jeffrey Stedfast <[email protected]>
* mono-mutex.[c,h]: New source files that thinly wrap all pthread
	functions that take pthread_mutex_t and/or pthread_mutexattr_t
	arguments for the sake of portability. Implements recursive
	mutexes and pthread_mutex_timedlock.

	* critical-sections.c:
	* events.c:
	* handles.c:
	* mutexes.c:
	* semaphores.c:
	* threads.c:
	* timed-thread.c:
	* wait.c: Use the mono-mutex wrapper portability functions/macros.

	* pthread-compat.[c,h]: Replaced by mono-mutex.[c,h]

svn path=/trunk/mono/; revision=2376
2002-02-13 15:22:35 +00:00
Jeffrey Stedfast 59551c0c1f 2002-02-13 Jeffrey Stedfast <[email protected]>
* acconfig.h: #undef USE_MONO_MUTEX

	* configure.in: If the system pthread implementation is lacking,
	default to using mono-mutex.

svn path=/trunk/mono/; revision=2375
2002-02-13 15:21:33 +00:00
Paolo Molaro 155b6bc52e Wed Feb 13 19:20:01 CET 2002 Paolo Molaro <[email protected]>
* assembly.cs: better resolver: use it instead of some kludgy code.

svn path=/trunk/mono/; revision=2374
2002-02-13 14:29:01 +00:00
Paolo Molaro b6db291c68 Wed Feb 13 18:25:55 CET 2002 Paolo Molaro <[email protected]>
* reflection.c: the best way to speed-up the compiler is to avoid
	infinite loops.

svn path=/trunk/mono/; revision=2373
2002-02-13 13:35:52 +00:00
Dietmar Maurer 8dec071267 added some docu
svn path=/trunk/mono/; revision=2372
2002-02-13 12:22:52 +00:00
Miguel de Icaza 0866af587c 2002-02-13 Miguel de Icaza <[email protected]>
* jit.c (arch_allocate_var): Only assert that the alignment is
	at least 32-bits aligned, not always 32-bits aligned (for I8 for example).

svn path=/trunk/mono/; revision=2371
2002-02-13 11:55:19 +00:00
Paolo Molaro 07bcac85e1 Wed Feb 13 16:17:38 CET 2002 Paolo Molaro <[email protected]>
* interp.c: fixed newobj implementation for valuetypes bug found by
	dietmar. sub.ovf dummy code.

svn path=/trunk/mono/; revision=2370
2002-02-13 11:28:47 +00:00
Paolo Molaro 2539b42868 More tests.
svn path=/trunk/mono/; revision=2369
2002-02-13 11:25:24 +00:00
Dietmar Maurer 85dbd7fcdb revert last change
svn path=/trunk/mono/; revision=2368
2002-02-13 09:45:11 +00:00
Dietmar Maurer 6d78f5079e bug fix in newobj
svn path=/trunk/mono/; revision=2367
2002-02-13 09:39:52 +00:00
Nick Drochak 5cd0f19332 �2-02-13 Nick Drochak <[email protected]>
* makefile: 'clean' target now removes file generated by CorCompare

svn path=/trunk/mcs/; revision=2366
2002-02-13 08:49:48 +00:00
Dietmar Maurer 945a08003c pass the domain to mono_string_new
svn path=/trunk/mono/; revision=2365
2002-02-13 08:29:02 +00:00
Nick Drochak ed997e51bc 2002-02-13 Nick Drochak <[email protected]>
* pending-classes.in: this is generated by corcompare.

svn path=/trunk/mono/; revision=2364
2002-02-13 08:16:37 +00:00
Dietmar Maurer eae711d5a0 update
svn path=/trunk/mono/; revision=2363
2002-02-13 07:55:01 +00:00
Dietmar Maurer 1cb538d091 object layout change
svn path=/trunk/mono/; revision=2362
2002-02-13 07:44:59 +00:00
Duncan Mak 54829e3eed 2002-02-12 Duncan Mak <[email protected]>
* SerializationBinder.cs: Implemented.
	    * SerializationEntry.cs: Implemented.
	    * SerializationInfo.cs: Fixed the get portion of the AssemblyName
	    property. Implemented the FullTypename property.

svn path=/trunk/mcs/; revision=2361
2002-02-12 22:47:31 +00:00
Miguel de Icaza c1a370c8c2 Add test that fails
svn path=/trunk/mcs/; revision=2360
2002-02-12 22:40:32 +00:00
Miguel de Icaza feaa2f229f Revert Ravi's patch, as it breaks the build
svn path=/trunk/mcs/; revision=2359
2002-02-12 22:04:09 +00:00
Duncan Mak 1570af80c3 Fixed a typo.
svn path=/trunk/mcs/; revision=2358
2002-02-12 21:50:51 +00:00
Duncan Mak a0a191cca0 2002-02-12 Duncan Mak <[email protected]>
* CultureInfo.cs: Added the Calendar property to make the TimeZone
      class build. It's marked as MonoTODO.

2002-02-12  Duncan Mak  <[email protected]>

    * TimeZone.cs: Implemented and added to CVS.

svn path=/trunk/mcs/; revision=2357
2002-02-12 21:48:08 +00:00
Miguel de Icaza 4f43b0ca4c New download page
svn path=/trunk/mono/; revision=2356
2002-02-12 20:21:08 +00:00
Dick Porter e383305479 Added a comment
svn path=/trunk/mcs/; revision=2355
2002-02-12 18:07:33 +00:00
David Brandt b1dd0f011d Beefing up StringTest
svn path=/trunk/mcs/; revision=2354
2002-02-12 17:32:38 +00:00
Paolo Molaro 84e3cf129c Tue Feb 12 20:06:01 CET 2002 Paolo Molaro <[email protected]>
* assembly.c: look for assemblies in the assembly dir, too.

svn path=/trunk/mono/; revision=2353
2002-02-12 15:14:55 +00:00
Miguel de Icaza 2d20d89a31 Add Dietmar to Authors
svn path=/trunk/mono/; revision=2352
2002-02-12 13:09:32 +00:00
Nick Drochak c0c49cbbd6 2002-02-12 Nick Drochak <[email protected]>
* PathTooLongException.cs: put it in the correct namespace
	* EndOfStreamException.cs: put it in the correct namespace

svn path=/trunk/mcs/; revision=2351
2002-02-12 10:50:58 +00:00
Nick Drochak 2455d23ba1 2002-02-12 Nick Drochak <[email protected]>
* PathTooLongException.cs: put it in the correct namespace

svn path=/trunk/mcs/; revision=2350
2002-02-12 10:44:20 +00:00
Paolo Molaro fff141d22b Tue Feb 12 14:33:53 CET 2002 Paolo Molaro <[email protected]>
* dump.c: make all the indexes printed starting from 1.

svn path=/trunk/mono/; revision=2349
2002-02-12 09:42:49 +00:00
Paolo Molaro 470cdb42fa Tue Feb 12 14:08:47 CET 2002 Paolo Molaro <[email protected]>
* hacks.h: check against redefining preprocessor symbol.
	* interp.c: fix profile info to return more sensible results.


Tue Feb 12 14:03:42 CET 2002 Paolo Molaro <[email protected]>

	* class.c: fix thinko in mono_class_from_type().

svn path=/trunk/mono/; revision=2348
2002-02-12 09:20:53 +00:00
Miguel de Icaza 873b3525c5 Last changes to the web site, promised
svn path=/trunk/mono/; revision=2347
2002-02-11 23:31:16 +00:00
Miguel de Icaza 3d41c6a024 Move mailing lists information
svn path=/trunk/mono/; revision=2346
2002-02-11 23:00:57 +00:00
353 changed files with 24941 additions and 5496 deletions

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
Miguel de Icaza ([email protected])
Paolo Molaro ([email protected])
Dietmar Maurer ([email protected])
+485
View File
@@ -0,0 +1,485 @@
The Mono runtime is licensed under the terms of the GNU
Library General Public License, version 2.
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
+62
View File
@@ -1,3 +1,65 @@
2002-02-21 Mark Crichton <[email protected]>
* status/class.xml: Added contact info for RNGCryptoServiceProvider
class and Rijndael classes.
* status/maintainers.xml: Added contact info to maintainers list.
2002-02-21 Mark Crichton <[email protected]>
* configure.in: Add checks for a system-provided entropy device
* acconfig.h: Added HAVE_CRYPT_RNG and NAME_DEV_RANDOM
2002-02-20 Dick Porter <[email protected]>
* acconfig.h:
* configure.in: Always build without cygwin support on windows
2002-02-19 Radek Doulik <[email protected]>
* mono/tests/pinvoke.cs: use more pinvoke test methods
2002-02-19 Radek Doulik <[email protected]>
* mono/tests/libtest.c (mono_test_many_short_arguments): new test
method
(mono_test_many_byte_arguments): ditto
2002-02-18 Radek Doulik <[email protected]>
* mono/tests/Makefile.am: added small test library for pinvoke
testing
* mono/tests/libtest.c (mono_test_many_int_arguments): new file,
new function to test pinvoke
* mono/tests/pinvoke.cs (Test): added pinvoked method with 10 int
arguments
* mono/tests/Makefile.am: display # of passing tests too
added simple shared library libtest with testing function for
pinvoke
2002-02-17 Radek Doulik <[email protected]>
* mono/tests/Makefile.am (test): display # of failed tests
2002-02-16 Jeffrey Stedfast <[email protected]>
* configure.in: Add checks for SOL_IP, SOL_TCP, and
IP_PKTINFO. Also check for struct ip_mreqn.
2002-02-14 Jeffrey Stedfast <[email protected]>
* configure.in: Add checks to see if we need to link to libsocket,
libnsl, and/or librt. Also check for inet_pton and inet_aton.
2002-02-13 Jeffrey Stedfast <[email protected]>
* acconfig.h: #undef USE_MONO_MUTEX
* configure.in: If the system pthread implementation is lacking,
default to using mono-mutex.
2002-02-05 Dietmar Maurer <[email protected]>
* mono/tests/enum2.cs: new file with more enum tests.
+1
View File
@@ -1 +1,2 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = mono doc runtime scripts man
+9 -1
View File
@@ -1,6 +1,14 @@
#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 PLATFORM_WIN32_NATIVE
#undef HAVE_NEW_ICONV
#undef NAME_DEV_RANDOM
#undef HAVE_CRYPT_RNG
-17
View File
@@ -1,17 +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
/* The number of bytes in a void *. */
#undef SIZEOF_VOID_P
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Name of package */
#undef PACKAGE
/* Version number of package */
#undef VERSION
+156 -22
View File
@@ -2,7 +2,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono, 0.8)
AM_INIT_AUTOMAKE(mono, 0.9)
AM_MAINTAINER_MODE
AC_CHECK_TOOL(CC, gcc, gcc)
@@ -28,6 +28,8 @@ AC_HEADER_STDC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h)
# not 64 bit clean in cross-compile
AC_CHECK_SIZEOF(void *, 4)
@@ -89,23 +91,6 @@ esac
AC_MSG_RESULT($platform_win32)
AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
if test x$platform_win32 = xyes; then
AC_MSG_CHECKING([if building for native Win32])
case "$host" in
*-*-mingw*)
platform_win32_native=yes
AC_DEFINE(PLATFORM_WIN32_NATIVE)
;;
*)
platform_win32_native=no
;;
esac
AC_MSG_RESULT($platform_win32_native)
AM_CONDITIONAL(PLATFORM_WIN32_NATIVE,
test x$platform_win32_native = xyes)
fi
if test x$platform_win32 = xno; then
dnl ******************************************************************
dnl *** Check for large file support ***
@@ -153,7 +138,78 @@ if test x$platform_win32 = xno; then
if test $large_offt = no; then
AC_MSG_WARN([No 64 bit file size support available])
fi
dnl *****************************
dnl *** Checks for libsocket ***
dnl *****************************
AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
dnl *****************************
dnl *** Checks for SOL_IP ***
dnl *****************************
AC_MSG_CHECKING(for SOL_IP)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = SOL_IP;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SOL_IP)
], [
# We'll have to use getprotobyname
AC_MSG_RESULT(no)
])
dnl *****************************
dnl *** Checks for SOL_TCP ***
dnl *****************************
AC_MSG_CHECKING(for SOL_TCP)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = SOL_TCP;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SOL_TCP)
], [
# We'll have to use getprotobyname
AC_MSG_RESULT(no)
])
dnl *****************************
dnl *** Checks for IP_PKTINFO ***
dnl *****************************
AC_MSG_CHECKING(for IP_PKTINFO)
AC_TRY_COMPILE([#include <netdb.h>], [
int level = IP_PKTINFO;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_IP_PKTINFO)
], [
AC_MSG_RESULT(no)
])
dnl *********************************
dnl *** Check for struct ip_mreqn ***
dnl *********************************
AC_MSG_CHECKING(for struct ip_mreqn)
AC_TRY_COMPILE([#include <netinet/in.h>], [
struct ip_mreqn mreq;
mreq.imr_address.s_addr = 0;
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_STRUCT_IP_MREQN)
], [
# We'll just have to use struct ip_mreq
AC_MSG_RESULT(no)
])
dnl *****************************
dnl *** Checks for libnsl ***
dnl *****************************
AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="$LIBS -lnsl")
AC_CHECK_FUNCS(inet_pton inet_aton)
dnl *****************************
dnl *** Checks for libpthread ***
@@ -174,7 +230,7 @@ if test x$platform_win32 = xno; then
pthread_mutex_timedlock(&mut, NULL);
], [
# Works!
AC_MSG_RESULT(ok)
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_MUTEX_TIMEDLOCK)
], [
AC_MSG_RESULT(no)
@@ -187,7 +243,7 @@ if test x$platform_win32 = xno; then
pthread_mutex_t mut=PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_timedlock(&mut, NULL);
], [
AC_MSG_RESULT(ok)
AC_MSG_RESULT(yes)
pthread_CFLAGS="-D_GNU_SOURCE"
AC_DEFINE(HAVE_PTHREAD_MUTEX_TIMEDLOCK)
], [
@@ -228,7 +284,8 @@ if test x$platform_win32 = xno; then
], [
AC_MSG_RESULT(no)
dnl Add other variants here
AC_MSG_ERROR([PTHREAD_MUTEX_RECURSIVE not found])
AC_MSG_WARN(Using mono_mutex_t for recursive mutexes)
AC_DEFINE(USE_MONO_MUTEX)
])
])
CPPFLAGS=$orig_CPPFLAGS
@@ -236,8 +293,84 @@ if test x$platform_win32 = xno; then
], [
AC_MSG_ERROR([libpthread is required on non-win32 hosts])
])
dnl ********************************
dnl *** Checks for semaphore lib ***
dnl ********************************
AC_CHECK_LIB(rt, sem_init, LIBS="$LIBS -lrt")
else
# This is a kludge, we really ought to test for libws2_32, but
# I can't make AC_CHECK_LIB link (the symbols seem to be mangled
# with @num suffixes)
LIBS="$LIBS -lws2_32"
CFLAGS="$CFLAGS -mno-cygwin"
fi
dnl ****************************
dnl *** Look for /dev/random ***
dnl ****************************
AC_MSG_CHECKING([if usage of random device is requested])
AC_ARG_ENABLE(dev-random,
[ --disable-dev-random disable the use of the random device],
try_dev_random=$enableval, try_dev_random=yes)
AC_MSG_RESULT($try_dev_random)
case "{$target}" in
*-openbsd*)
NAME_DEV_RANDOM="/dev/srandom"
;;
dnl Win32 does not have /dev/random, they have their own method...
*-*-mingw*|*-*-cygwin*)
ac_cv_have_dev_random = no
;;
dnl Everywhere else, it's /dev/random
*)
NAME_DEV_RANDOM="/dev/random"
;;
esac
AC_DEFINE_UNQUOTED(NAME_DEV_RANDOM, "$NAME_DEV_RANDOM")
dnl Now check if the device actually exists
if test "x$try_dev_random" = "xyes"; then
AC_CACHE_CHECK(for random device, ac_cv_have_dev_random,
[if test -r "$NAME_DEV_RANDOM" ; then
ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi])
if test "x$ac_cv_have_dev_random" = "xyes"; then
AC_DEFINE(HAVE_CRYPT_RNG)
fi
else
AC_MSG_CHECKING(for random device)
ac_cv_have_dev_random=no
AC_MSG_RESULT(has been disabled)
fi
if test "x$platform_win32" = "xyes"; then
AC_DEFINE(HAVE_CRYPT_RNG)
fi
if test "x$ac_cv_have_dev_random" = "xno" \
&& test "x$platform_win32" = "xno"; then
AC_MSG_WARN([[
***
*** A system-provided entropy source was not found on this system.
*** Because of this, the System.Security.Cryptography random number generator
*** will throw a NotImplemented exception.
***
*** If you are seeing this message, and you know your system DOES have an
*** entropy collection in place, please contact <[email protected]> and
*** provide information about the system and how to access the random device.
***
*** For those systems who lack a random device, EGD support is forthcoming.
***]])
fi
if test "x$cross_compiling" = "xno"; then
# check for new iconv version
AC_MSG_CHECKING(for new iconv)
@@ -265,7 +398,7 @@ ACCESS_UNALIGNED="yes"
case "$host" in
#mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; ACCESS_UNALIGNED="no";;
i*86-*-*) TARGET=X86; arch_target=x86;;
sparc*-*-*) TARGET=SPARC; ACCESS_UNALIGNED="no";;
sparc*-*-*) TARGET=SPARC; arch_target=sparc; ACCESS_UNALIGNED="no";;
#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; ACCESS_UNALIGNED="no";;
#m68k-*-linux*) TARGET=M68K;;
powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; arch_target=ppc;;
@@ -307,6 +440,7 @@ mono/interpreter/Makefile
mono/tests/Makefile
mono/wrapper/Makefile
mono/monoburg/Makefile
mono/monograph/Makefile
mono/jit/Makefile
mono/io-layer/Makefile
runtime/Makefile
+1
View File
@@ -1,3 +1,4 @@
Makefile.in
Makefile
all-docs
pending-classes.in
+1 -1
View File
@@ -3,7 +3,7 @@ WEB_FILES= \
faq gcc-frontend ideas index passport rationale resources \
roadmap runtime status team testing thanks tools porting anoncvs
OTHERS= pending resources-pending todo
OTHERS= pending resources-pending todo mono-build.sh mono-build-w32.sh
EXTRA_DIST = $(WEB_FILES) README $(OTHERS)
+23 -7
View File
@@ -1,21 +1,22 @@
* Anonymous CVS access
Anonymous access to the Mono is available currently from the
HispaLinux CVS server (later I will provide a nice
anoncvs.go-mono.com alias).
Anonymous access to the Mono is available currently from three
servers (anoncvs-spain-1.go-mono.com,
anoncvs-spain-2.go-mono.com and anoncvs-us-1.go-mono.com).
You can also use `anoncvs.go-mono.com', and that will pick a
server automatically for you.
Sources are currently being updated every hour.
The server is currently located in Spain. If you want to
become an AnonCVS mirror, go <a href="#mirror">here</a>
** Checking out the sources
To check out the sources for the first time from the
repository, use this command:
<pre>
export CVSROOT=:pserver:anonymous@reypastor.hispalinux.es:/mono
export CVSROOT=:pserver:anonymous@anoncvs.go-mono.com:/mono
cvs login
cvs -z3 co mcs mono gtk-sharp
</pre>
@@ -52,3 +53,18 @@
I need to be able to rsync to your machine from the main CVS
server. The preferred method to rsync is to setup ssh in your
machine.
The requirements are:
<ul>
* An account where we can ssh into.
* rsync.
* AnonCVS setup with the same paths as the rest of the
servers.
* Currently, about 40 megabytes of disk space, but this
will likely grow as the project evolves.
* A sysadmin contact e-mail address.
</ul>
-13
View File
@@ -30,17 +30,12 @@ This is a list of pending classes, and links to their documentation on MSDN.Micr
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemAssemblyLoadEventHandler␍ClassTopic.asp">System.AssemblyLoadEventHandler␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemAsyncCallback␍ClassTopic.asp">System.AsyncCallback␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemCrossAppDomainDelegate␍ClassTopic.asp">System.CrossAppDomainDelegate␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDBNull␍ClassTopic.asp">System.DBNull␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsSymbolStoreSymDocumentType␍ClassTopic.asp">System.Diagnostics.SymbolStore.SymDocumentType␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsSymbolStoreSymLanguageType␍ClassTopic.asp">System.Diagnostics.SymbolStore.SymLanguageType␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsSymbolStoreSymLanguageVendor␍ClassTopic.asp">System.Diagnostics.SymbolStore.SymLanguageVendor␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemEventHandler␍ClassTopic.asp">System.EventHandler␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationCompareInfo␍ClassTopic.asp">System.Globalization.CompareInfo␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationHebrewCalendar␍ClassTopic.asp">System.Globalization.HebrewCalendar␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationHijriCalendar␍ClassTopic.asp">System.Globalization.HijriCalendar␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationJapaneseCalendar␍ClassTopic.asp">System.Globalization.JapaneseCalendar␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationKoreanCalendar␍ClassTopic.asp">System.Globalization.KoreanCalendar␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationRegionInfo␍ClassTopic.asp">System.Globalization.RegionInfo␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationSortKey␍ClassTopic.asp">System.Globalization.SortKey␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationStringInfo␍ClassTopic.asp">System.Globalization.StringInfo␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationTaiwanCalendar␍ClassTopic.asp">System.Globalization.TaiwanCalendar␍</a><br>
@@ -48,17 +43,13 @@ This is a list of pending classes, and links to their documentation on MSDN.Micr
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationTextInfo␍ClassTopic.asp">System.Globalization.TextInfo␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemGlobalizationThaiBuddhistCalendar␍ClassTopic.asp">System.Globalization.ThaiBuddhistCalendar␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOEndOfStreamException␍ClassTopic.asp">System.IO.EndOfStreamException␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOIsolatedStorageIsolatedStorage␍ClassTopic.asp">System.IO.IsolatedStorage.IsolatedStorage␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOIsolatedStorageIsolatedStorageException␍ClassTopic.asp">System.IO.IsolatedStorage.IsolatedStorageException␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOIsolatedStorageIsolatedStorageFile␍ClassTopic.asp">System.IO.IsolatedStorage.IsolatedStorageFile␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOPathTooLongException␍ClassTopic.asp">System.IO.PathTooLongException␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionEmitMethodRental␍ClassTopic.asp">System.Reflection.Emit.MethodRental␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionMemberFilter␍ClassTopic.asp">System.Reflection.MemberFilter␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionMissing␍ClassTopic.asp">System.Reflection.Missing␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionModuleResolveEventHandler␍ClassTopic.asp">System.Reflection.ModuleResolveEventHandler␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionPointer␍ClassTopic.asp">System.Reflection.Pointer␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionStrongNameKeyPair␍ClassTopic.asp">System.Reflection.StrongNameKeyPair␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionTargetException␍ClassTopic.asp">System.Reflection.TargetException␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemReflectionTypeFilter␍ClassTopic.asp">System.Reflection.TypeFilter␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemResolveEventHandler␍ClassTopic.asp">System.ResolveEventHandler␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemRuntimeCompilerServicesAccessedThroughPropertyAttribute␍ClassTopic.asp">System.Runtime.CompilerServices.AccessedThroughPropertyAttribute␍</a><br>
@@ -320,7 +311,6 @@ This is a list of pending classes, and links to their documentation on MSDN.Micr
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemRuntimeSerializationSerializationEntry␍ClassTopic.asp">System.Runtime.Serialization.SerializationEntry␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemRuntimeSerializationSerializationInfoEnumerator␍ClassTopic.asp">System.Runtime.Serialization.SerializationInfoEnumerator␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemRuntimeSerializationSurrogateSelector␍ClassTopic.asp">System.Runtime.Serialization.SurrogateSelector␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemRuntimeArgumentHandle␍ClassTopic.asp">System.RuntimeArgumentHandle␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityAllowPartiallyTrustedCallersAttribute␍ClassTopic.asp">System.Security.AllowPartiallyTrustedCallersAttribute␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyCryptoConfig␍ClassTopic.asp">System.Security.Cryptography.CryptoConfig␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyDSACryptoServiceProvider␍ClassTopic.asp">System.Security.Cryptography.DSACryptoServiceProvider␍</a><br>
@@ -330,7 +320,6 @@ This is a list of pending classes, and links to their documentation on MSDN.Micr
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyMaskGenerationMethod␍ClassTopic.asp">System.Security.Cryptography.MaskGenerationMethod␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyPasswordDeriveBytes␍ClassTopic.asp">System.Security.Cryptography.PasswordDeriveBytes␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyPKCS1MaskGenerationMethod␍ClassTopic.asp">System.Security.Cryptography.PKCS1MaskGenerationMethod␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyRandomNumberGenerator␍ClassTopic.asp">System.Security.Cryptography.RandomNumberGenerator␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyRC2␍ClassTopic.asp">System.Security.Cryptography.RC2␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyRC2CryptoServiceProvider␍ClassTopic.asp">System.Security.Cryptography.RC2CryptoServiceProvider␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyRijndael␍ClassTopic.asp">System.Security.Cryptography.Rijndael␍</a><br>
@@ -350,7 +339,6 @@ This is a list of pending classes, and links to their documentation on MSDN.Micr
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographySHA512Managed␍ClassTopic.asp">System.Security.Cryptography.SHA512Managed␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyTripleDES␍ClassTopic.asp">System.Security.Cryptography.TripleDES␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyTripleDESCryptoServiceProvider␍ClassTopic.asp">System.Security.Cryptography.TripleDESCryptoServiceProvider␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityCryptographyX509CertificatesX509Certificate␍ClassTopic.asp">System.Security.Cryptography.X509Certificates.X509Certificate␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityNamedPermissionSet␍ClassTopic.asp">System.Security.NamedPermissionSet␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPermissionsEnvironmentPermission␍ClassTopic.asp">System.Security.Permissions.EnvironmentPermission␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPermissionsFileDialogPermission␍ClassTopic.asp">System.Security.Permissions.FileDialogPermission␍</a><br>
@@ -374,7 +362,6 @@ This is a list of pending classes, and links to their documentation on MSDN.Micr
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPolicyAllMembershipCondition␍ClassTopic.asp">System.Security.Policy.AllMembershipCondition␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPolicyApplicationDirectory␍ClassTopic.asp">System.Security.Policy.ApplicationDirectory␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPolicyApplicationDirectoryMembershipCondition␍ClassTopic.asp">System.Security.Policy.ApplicationDirectoryMembershipCondition␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPolicyFileCodeGroup␍ClassTopic.asp">System.Security.Policy.FileCodeGroup␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPolicyFirstMatchCodeGroup␍ClassTopic.asp">System.Security.Policy.FirstMatchCodeGroup␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPolicyHash␍ClassTopic.asp">System.Security.Policy.Hash␍</a><br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPolicyHashMembershipCondition␍ClassTopic.asp">System.Security.Policy.HashMembershipCondition␍</a><br>
+14
View File
@@ -27,6 +27,18 @@
You can get it <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
If you are new to .NET, writing regression tests is a good way
of starting to contribute: it will help you get used to C# as
well as getting comfortable with the .NET APIs.
This helps because at this point you might be the best
qualified person to fix a problem found by the regression
test, or you might have a new class to implement in the .NET
world that only has a test suite.
To get started writing tests see the <a href="testing.html">Test Suite</a>
section.
** Bug reporting
If you find bugs in Mono, please make sure you enter a bug
@@ -36,6 +48,8 @@
http://bugzilla.ximian.com</a> and enter bug reports against
your favorite component (Mono, Runtime, C# compiler).
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>
** Small tasks
A few smaller tasks are here, dropped in no particular order:
+183 -134
View File
@@ -2,7 +2,7 @@
The Virtual Execution System is available in package `mono'.
Currently this contains a metadata library and the
disassembler. Please reffer to our <a
disassembler. Please refer to our <a
href="runtime.html">Runtime</a> description for more details
on this part of the project.
@@ -10,184 +10,233 @@
test suite and the class library are in the `mcs' package, we
will move this later into `mono' itself.
In order to make mcs and the class libraries you will need the
GNU make tools. These may be obtained for the Windows
environment from <a href="http://www.cygwin.com">cygwin.com</a>.
You will also need to get GLIB and <a
href="http://www.freedesktop.org/software/pkgconfig">pkgconfig</a>.
You can get Glib 1.3 from: <a
href="ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz">ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz</a>.
In order to make mcs and the class libraries you will need a computer
running Windows with the <strong>GNU make tools</strong> from the
<strong>Cygwin</strong> environment, <strong>Microsoft's .NET Framework
SDK</strong>, <strong>GLIB 1.3</strong> and
<strong>pkg-config</strong>.
<a name="sources">
** Sources
*** Sources
We provide both <a href="#packaged">packaged and tested</a>
tarballs (those are known to compile and pass `make
distcheck') as well as <a href="snapshots">daily snapshots</a> done
at 10pm Boston Time
Stay up to date on the Mono team's development using the
<a href="http://lists.ximian.com/mailman/listinfo/mono-cvs-list">
mono-cvs-list</a> mailing list.
<a name="snapshots">
*** Snapshots
The daily snapshots are available <a
href="http://www.go-mono.com/snapshots">here</a>. These
snapshots are done every day at 10pm EST (Boston Time).
They are not guaranteed to build, but most of the time they
should. They should give you a window to see what we are up to.
You might also want to track our development using the <a
href="http://lists.ximian.com/mailman/listinfo/mono-cvs-list">mono-cvs-list</a>
mailing list.
<a name="packaged">
At this point, you should look into using one of the <a
href="snapshots">nightly snapshots</a> or getting the
sources from <a href="anoncvs.html">Anonymous CVS</a>
as significant work has gone into Mono since our last stable
release in September.
We will be making a packaged release sometime in January.
<a name="install">
** Installing the software
To install and work on the compiler and the class libraries,
follow these instructions:
<a name="feb-11">
New packaged versions of the Mono C# compiler and Mono runtime
are now available. The latest version is 0.8.
<ul>
* Install <a href="http://www.cygwin.com">CygWin</a> first.
* <a href="archive/mcs-0.8.tar.gz">mcs-0.8.tar.gz</a>
Mono C# compiler
* <a href="archive/mono-0.8.tar.gz">mono-0.8.tar.gz</a>
Mono runtime
</ul>
<a name="snapshots">
For up to date sources, it is recommended that you use the Mono
source code from either the
<a href="http://www.go-mono.com/snapshots">nightly snapshots</a> or
the <a href="anoncvs.html">Anonymous CVS</a>. The nightly
snapshots are done every night at 10pm EST (Boston Time).
* Untar the MCS distribution (see below for information).
The nightly snapshots are not guaranteed to build, but most of the
time they should. They should give you a window to see what we are
up to.
* Go into the MCS directory and type `make windows'
You can download the GNU make tools and the Cygwin environment from
<a href="http://www.cygwin.com">www.cygwin.com</a>.
You can download Microsoft's .NET Framework SDK from
<a href="http://msdn.microsoft.com/downloads">
msdn.microsoft.com/downloads</a>.
There are scripts to help build mono for both Unix and Windows. Get
<a href="mono-build.sh">mono-build.sh</a> for Unix, or <a
href="mono-build-w32.sh">mono-build-w32.sh</a> for Windows.
These scripts automate the installation of GLIB and pkgconfig
(building from source on Unix, and using binary packages
provided by the GIMP for Windows project on Windows.) To use
the script, follow these simple steps:
<ul>
* Save the script for your platform somewhere (e.g. /usr/local/bin)
* Make the script executable (i.e chmod 755 /usr/local/bin/mono-build.sh)
* Create a directory to hold the mono source, and the compiled binaries (e.g. mkdir ~/mono)
* Change to the new directory (i.e. cd ~/mono)
* run the script (i.e. /usr/local/bin/mono-build.sh)
</ul>
To compile the mono runtime on windows:
The script requires wget on either platform, and building the
software requires make, gcc, automake, autoconf, and libtool.
You should install these packages from your distribution or
with the cygwin installer.
The script will download required packages from
www.go-mono.com and do a cvs checkout of mono in the current
directory. The cvs server chosen defaults to anonymous cvs;
set your CVSROOT environment variable before running the script to
select a particular cvs server.
<a name="install">
** Building the software manually
*** Download the required software.
<ul>
* Microsoft's .NET Framework SDK from
<a href="http://msdn.microsoft.com/downloads">
msdn.microsoft.com/downloads</a>.
* Cygwin and the GNU Make tools from
<a href="http://www.cygwin.com">www.cygwin.com</a>.
Some people observed problems with autoconf 2.52. Installing
autoconf 2.13 helped in those cases.
* Precompiled GLIB 1.3 and pkg-config packages (and
their dependencies) by the <a href="http://www.gimp.org/~tml/gimp/win32//index.html">GIMP for Windows</a> project from
<a href="http://www.go-mono.com/archive/pkgconfig-0.80-tml-20020101.zip">http://www.go-mono.com/archive/pkgconfig-0.80-tml-20020101.zip</a>
<a href="http://www.go-mono.com/archive/glib-1.3.12-20020101.zip">http://www.go-mono.com/archive/glib-1.3.12-20020101.zip</a>
<a href="http://www.go-mono.com/archive/glib-dev-1.3.12-20020101.zip">http://www.go-mono.com/archive/glib-dev-1.3.12-20020101.zip</a>
<a href="http://www.go-mono.com/archive/libiconv-1.7.zip">http://www.go-mono.com/archive/libiconv-1.7.zip</a>
<a href="http://www.go-mono.com/archive/libiconv-dev-1.7.zip">http://www.go-mono.com/archive/libiconv-dev-1.7-20020101.zip</a>
<a href="http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip">http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip</a>
* Download the Mono source code from the
<a href="#feb-11">packaged versions</a> or
the <a href="http://www.go-mono.com/snapshots">
nightly snapshots</a> or the <a href="anoncvs.html">
Anonymous CVS</a>. The nightly snapshots are done every
night at 10pm EST (Boston Time). The nightly snapshots are
not guaranteed to build, but most of the time they should.
</ul>
*** Install Cygwin and the GNU build tools, Microsoft's .NET Framework SDK and the precompiled GLIB 1.3 and pkg-config libraries.
<ul>
* Install <a href="http://www.cygwin.com">Cygwin</a>.
* Install <a href="http://msdn.microsoft.com/downloads">
Microsoft .NET Framework SDK</a>.
* Change to the <strong>/usr/local</strong> directory
of your Cygwin installation.<br>
Unzip the precompiled packages listed above.
</ul>
*** On Windows, to install and work on the compiler and the class libraries:
<ul>
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshot
</a>, untar the snapshot.
* Change directories to <strong>"mcs"</strong>.
* Compile:
<pre>
<strong>make windows</strong>
</pre>
</ul>
*** On Windows, to compile the mono runtime:
<ul>
* Install <a href="http://www.cygwin.com">CygWin</a> first.
* Install in /usr/local in your Cygwin world the following
packages (compiled by <a href="mailto:[email protected]">Alex Graveley</a>):
<ul>
<li><a href="http://primates.ximian.com/~alex/glib-1.3.12-win32-native.zip">
http://primates.ximian.com/~alex/glib-1.3.12-win32-native.zip</a>
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshot
</a>, untar the snapshot.
<li><a href="http://primates.ximian.com/~alex/pkg-config-0.8-cygwin.zip">
http://primates.ximian.com/~alex/pkg-config-0.8-cygwin.zip</a>
</ul>
These already contain libiconv linked statically.
</ul>
If you want to compile things yourself you will need to compile and install:
<ul>
* Install <a href="http://www.freedesktop.org/software/pkgconfig">pkgconfig</a>.
(I had to change line 674 of
<nobr><tt>pkgconfig-0.8.0/glib-1.2.8/gstrfuncs.c</tt></nobr> from
<nobr><tt>extern char *strsignal (int sig);</tt></nobr> to
<nobr><tt>extern const char *strsignal (int sig);</tt></nobr>.
<pre>
tar xzvf pkgconfig-0.8.0.tar.gz
cd pkgconfig-0.8.0
./configure --prefix=/usr
make
make install
</pre>
* Install <a href="ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.7.tar.gz">libiconv</a>.
If you dont have MS Visual C/C++ 4.0 or 5.0 or 6.0 you can also try
the binary package available at <a
href="http://www.gimp.org/win32/libiconv-dev-20001007.zip">here</a>.
* Install the newest glib (1.3 version). You can download it
from <a href="ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz">here</a>.
* Unpack the mono distribution:
<pre>
tar xzvf mono-XXX.tar.gz
</pre>
* Change directories to <strong>"mono"</strong>.
* Configure, compile and install:
For official releases, use:
<pre>
./configure --prefix=//c/mono
<pre><strong>
./configure --prefix=c:/mono
make
make install
</pre>
For Snapshots, or CVS trees, use:
<pre>
./autogen.sh --prefix=//c/mono
make
make install
</pre>
* Some people observed problems with autoconf 2.52. Installing
autoconf 2.13 helped in those cases (don't forget to do a
`make maintainer-clean' after the update)
</strong></pre>
</ul>
To compile the mono runtime on Unix:
*** On Unix, to compile the mono runtime:
<ul>
* Install <a href="http://www.freedesktop.org/software/pkgconfig">pkgconfig</a>.
* Install <a href="http://www.freedesktop.org/software/pkg-config">pkg-config</a>.
* Install newest glib (cvs head version). You can download it
from <a href="ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz">here</a>. Maybe you need
to modify your ACLOCAL_FLAGS for pkgconfig, for example if
* Install glib 1.3. You can download it
from <a href="ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz">ftp.gtk.org</a>. Maybe you need
to modify your ACLOCAL_FLAGS for pkg-config, for example if
your install prefix is /usr/local:
<pre>
export ACLOCAL_FLAGS="-I /usr/local/share/aclocal"
<strong>export ACLOCAL_FLAGS="-I /usr/local/share/aclocal"</strong>
</pre>
* Download the mono distribution
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshots
</a>, untar the snapshot.
* Unpack the mono distribution:
<pre>
tar xzvf mono-XXX.tar.gz
</pre>
* Change directories to <strong>"mono"</strong>.
* Configure, compile and install:
For official releases:
<pre>
<pre><strong>
./configure
make
make install
make install</strong>
</pre>
</ul>
For snapshots and CVS trees:
*** Notes on compiling GLIB 1.3 and pkg-config from source:
<pre>
./autogen.sh
<ul>
* Some people observed problems with autoconf 2.52. Installing
autoconf 2.13 helped in those cases (don't forget to do a
`make maintainer-clean' after the update).
* Download, compile and install <a href="http://www.freedesktop.org/software/pkgconfig">pkg-config</a> from source.
(I had to change line 674 of
<nobr><tt>pkg-config-0.8.0/glib-1.2.8/gstrfuncs.c</tt></nobr> from
<nobr><tt>extern char *strsignal (int sig);</tt></nobr> to
<nobr><tt>extern const char *strsignal (int sig);</tt></nobr>.
<pre><strong>
tar xzvf pkg-config-0.8.0.tar.gz
cd pkg-config-0.8.0
./configure --prefix=/usr
make
make install
make install</strong>
</pre>
* Download, compile and install <a href="ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.7.tar.gz">libiconv</a> from source.<br>
If you dont have MS Visual C/C++ 4.0 or 5.0 or 6.0 you can also try
the binary package available at <a
href="http://www.gimp.org/win32/libiconv-dev-20001007.zip">
http://www.gimp.org/win32/libiconv-dev-20001007.zip</a>.
* Download, compile and install the
<a href="ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz">
glib 1.3</a> from source.
</ul>
<a name="oldreleases">
*** Old releases.
*** Very old releases.
<ul>
<a name="sep-18">
<b>September 18, 2001</b>
+62
View File
@@ -69,6 +69,68 @@
</tr>
</table>
** Feb 21, 2002
Paolo got our compiler natively to compile 117 of our tests.
Self hosting is closer every day.
Unsafe support is finished in the C# compiler.
** Feb 20, 2002
Gaurav got DataGrid and DataGridItemCollection done.
C# compiler: Unsafe support is mostly complete (only stackalloc is missing).
New easy to run scripts for compiling Mono on Unix and Windows
is <a href="download.html">available</a>. We can now easily compile
Mono on Windows and Linux. If you had trouble before, use the
above scripts which will get the setup right for you.
There are now three machines that can provide AnonCVS, just
use anoncvs.go-mono.com as the hostname for your CVSROOT and
you will get one of the machines.
** Feb 19, 2002
Do you want to see what <a href="http://people.debian.org/~lupus/mono/">Mono Looks Like?</a>
** Feb 18, 2002
Application Domains now support the two LoaderOptimization
modes: share code or do not share code, and you can control
this with the --share-code command line option.
Paolo has now 100+ test cases run on Linux now with our class
libraries.
PowerPC and SPARC ports are moving along (Radek and Jeff)
** Feb 13, 2002
Excellent news since the 11th, here is a quick rundown:
AppDomains have been deployed (Dietmar). Socket work is done
(Dick). Corlib compiled with no refs to mscorlib (Dan). New
comprehensive tests for colib bits (David). Nick is driving the
regression test suite efforts and class library completeness.
New System.Data work (Chris). Bug fixes (Paolo, Duncan, Ravi, Miguel)
Miguel is off to the <a
href="http://www.fosdem.org">FOSDEM</a> conference in Brussels.
** Feb 11, 2002
<b>Mono 0.8 has been released!</b>
A new version of the runtime, compiler and class libraries has
been packaged for your download pleasure.
You can get it <a
href="download.html#feb-11">Here</a> (quick links: <a
href="archive/mono-0.8.tar.gz">runtime</a> and <a
href="archive/mcs-0.8.tar.gz">compiler/classes</a>)
** Feb 11, 2002
We would like to welcome all the new developers that have
+90
View File
@@ -0,0 +1,90 @@
* Mailing Lists
There are a number of mailing lists for Mono
<table>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/mono-list">mono-list</a></b>
</td>
<td>
The general Mono discussion list.
</td>
</tr>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/mono-announce-list">mono-announce-list</a></b>
</td>
<td>
Announcements of Mono developments.
</td>
</tr>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/mono-gc-list">mono-gc-list</a></b>
</td>
<td>
Discussion on the GC system of Mono.
</td>
</tr>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/mono-patches">mono-patches</a></b>
</td>
<td>
Track the CVS activity of Mono on this mailing list (patches are sent to recipients).
You can get <a href="http://www.go-mono.com/snapshots">daily snapshots</a> as well.
</td>
</tr>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/mono-cvs-list">mono-cvs-list</a></b>
</td>
<td>
Track the CVS activity of Mono on this mailing list.
</td>
</tr>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/mono-docs-list">mono-docs-list</a></b>
</td>
<td>
Discussion on the documentation of Mono.
</td>
</tr>
<tr>
<td>
<b><a
href="http://lists.ximian.com/mailman/listinfo/mono-patches">mono-patches</a></b>
</td>
<td>
Track the development of Mono in realtime: receive patches to the Mono repository
by email.
</td>
</tr>
<tr>
<td>
<b><a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs</a></b>
</td>
<td>
This mailing list is used to keep track of the bugs in Mono as reported
in <a href="http://bugzilla.ximian.com">Bugzilla.ximian.com</a>
</td>
</tr>
</table>
Other mailing lists of interest:
<ul>
* <b><a
href="http://discuss.develop.com/dotnet.html">Dotnet mailing
list at Develop.com:</a></b> The guys at Develop Mentor run
this general purpose mailing list.
</ul>
</ul>
+106
View File
@@ -0,0 +1,106 @@
#!/bin/bash
# Script to automate the building of mono and its dependencies on
# cygwin. Relies on wget being installed (could make it fall back to
# using lynx, links, w3, curl etc), assumes that gcc, make, tar,
# automake, etc are already installed too (may be worth testing for
# all that right at the top and bailing out if missing/too old/too new
# etc).
# See where we are. This will become the top level directory for the
# installation, unless we are given an alternative location
here=$1
test -z "$here" && here=`pwd`
echo "Building Mono and dependencies in $here, installing to $here/install"
PATH=$here/install/bin:$here/install/lib:$PATH
# Check mono out first, so we can run aclocal from inside the mono dir (it
# needs to see which version of the real aclocal to run)
test -z "$CVSROOT" && CVSROOT=:pserver:[email protected]:/mono
export CVSROOT
echo "Updating mono"
# cvs checkout does the same as cvs update, except that it copes with
# new modules being added
# Older versions of cvs insist on a cvs login for :pserver: methods
# Make sure cvs is using ssh for :ext: methods
if [ ${CVSROOT:0:5} = ":ext:" ]; then
CVS_RSH=ssh
export CVS_RSH
elif [ ${CVSROOT:0:9} = ":pserver:" ]; then
if ! grep $CVSROOT ~/.cvspass > /dev/null 2>&1 ; then
echo "Logging into CVS server. Anonymous CVS password is probably empty"
cvs login || exit -1
fi
fi
cvs checkout mono || exit -1
# Need to install pkgconfig and set ACLOCAL_FLAGS if there is not a
# pkgconfig installed already. Otherwise set PKG_CONFIG_PATH to the
# glib we're about to install in $here/install. This script could
# attempt to be clever and see if glib 2 is already installed, too.
# --print-ac-dir was added in 1.2h according to the ChangeLog. This
# should mean that any automake new enough for us has it.
# This sets ACLOCAL_FLAGS to point to the freshly installed pkgconfig
# if it doesnt already exist on the system (otherwise auto* breaks if
# it finds two copies of the m4 macros). The GIMP for Windows
# pkgconfig sets its prefix based on the location of its binary, so we
# dont need PKG_CONFIG_PATH (the internal pkgconfig config file
# $prefix is handled similarly).
if [ ! -f `(cd mono; aclocal --print-ac-dir)`/pkg.m4 ]; then
ACLOCAL_FLAGS="-I $here/install/share/aclocal $ACLOCAL_FLAGS"
fi
export PATH
export ACLOCAL_FLAGS
# Grab pkg-config, glib etc
if [ ! -d $here/install ]; then
mkdir $here/install || exit -1
# Fetch and install pkg-config, glib, iconv, intl
for i in pkgconfig-0.80-tml-20020101.zip glib-1.3.12-20020101.zip glib-dev-1.3.12-20020101.zip libiconv-1.7.zip libiconv-dev-1.7.zip libintl-0.10.40-20020101.zip
do
wget http://www.go-mono.org/archive/$i
(cd $here/install || exit -1; unzip -o ../$i || exit -1) || exit -1
done
fi
# Needed to find the libiconv bits
CPPFLAGS="-I$here/install/include"
LDFLAGS="-L$here/install/lib"
export CPPFLAGS
export LDFLAGS
# Make sure we build native w32, not cygwin
CC="gcc -mno-cygwin"
export CC
# --prefix is used to set the class library dir in mono, and it needs
# to be in windows-native form. It also needs to have '\' turned into
# '/' to avoid quoting issues during the build.
prefix=`cygpath -w $here/install | sed -e 's@\\\\@/@g'`
# Build and install mono
echo "Building and installing mono"
(cd $here/mono; ./autogen.sh --prefix=$prefix || exit -1; make || exit -1; make install || exit -1) || exit -1
echo ""
echo ""
echo "All done."
echo "Add $here/install/bin and $here/install/lib to \$PATH"
echo "Don't forget to copy the class libraries to $here/install/lib"
+123
View File
@@ -0,0 +1,123 @@
#!/bin/bash
# Script to automate the building of mono and its dependencies.
# Relies on wget being installed (could make it fall back to using
# lynx, links, w3, curl etc), assumes that gcc, make, tar, automake,
# etc are already installed too (may be worth testing for all that
# right at the top and bailing out if missing/too old/too new etc).
# See where we are. This will become the top level directory for the
# installation, unless we are given an alternative location
here=$1
test -z "$here" && here=`pwd`
echo "Building Mono and dependencies in $here, installing to $here/install"
PATH=$here/install/bin:$PATH
LD_LIBRARY_PATH=$here/install/lib:$LD_LIBRARY_PATH
# Need to install pkgconfig and set ACLOCAL_FLAGS if there is not a
# pkgconfig installed already. Otherwise set PKG_CONFIG_PATH to the
# glib we're about to install in $here/install. This script could
# attempt to be clever and see if glib 2 is already installed, too.
# --print-ac-dir was added in 1.2h according to the ChangeLog. This
# should mean that any automake new enough for us has it.
if [ -f `aclocal --print-ac-dir`/pkg.m4 ]; then
install_pkgconfig=no
PKG_CONFIG_PATH="$here/install/lib/pkgconfig"
else
install_pkgconfig=yes
ACLOCAL_FLAGS="-I $here/install/share/aclocal $ACLOCAL_FLAGS"
fi
export PATH
export LD_LIBRARY_PATH
export ACLOCAL_FLAGS
export PKG_CONFIG_PATH
# Grab pkg-config-0.8, glib-1.3.12 if necessary
# If any more dependencies are added, it would be worth encapsulating
# the configure; make; make install part in a shell function
if [ $install_pkgconfig = "yes" ]; then
echo "Installing pkgconfig..."
if [ ! -f $here/pkgconfig-0.8.0.tar.gz ]; then
wget --timestamping http://www.go-mono.org/archive/pkgconfig-0.8.0.tar.gz
fi
# Assume that pkgconfig built correctly if the dir is there
if [ ! -d $here/pkgconfig-0.8.0 ]; then
# Build and install pkg-config
tar xzf $here/pkgconfig-0.8.0.tar.gz || exit -1
(cd $here/pkgconfig-0.8.0; ./configure --prefix=$here/install || exit -1; make || exit -1; make install || exit -1)
success=$?
if [ $success -ne 0 ]; then
echo "***** pkgconfig build failure. Run rm -rf $here/pkgconfig-0.8.0 to have this script attempt to build pkgconfig again next time"
exit -1
fi
fi
else
echo "Not installing pkgconfig, you already seem to have it installed"
fi
echo "Installing glib..."
if [ ! -f $here/glib-1.3.13.tar.gz ]; then
wget --timestamping http://www.go-mono.org/archive/glib-1.3.13.tar.gz
fi
# Assume that glib built correctly if the dir is there
if [ ! -d $here/glib-1.3.13 ]; then
# Build and install glib
tar xzf $here/glib-1.3.13.tar.gz || exit -1
(cd $here/glib-1.3.13; ./configure --prefix=$here/install || exit -1; make || exit -1; make install || exit -1)
success=$?
if [ $success -ne 0 ]; then
echo "***** glib build failure. Run rm -rf $here/glib-1.3.13 to have this script attempt to build glib again next time"
exit -1
fi
fi
# End of build dependencies, now get the latest mono checkout and build that
test -z "$CVSROOT" && CVSROOT=:pserver:[email protected]:/mono
export CVSROOT
echo "Updating mono"
# cvs checkout does the same as cvs update, except that it copes with
# new modules being added
# Older versions of cvs insist on a cvs login for :pserver: methods
# Make sure cvs is using ssh for :ext: methods
if [ ${CVSROOT:0:5} = ":ext:" ]; then
CVS_RSH=ssh
export CVS_RSH
elif [ ${CVSROOT:0:9} = ":pserver:" ]; then
if ! grep $CVSROOT ~/.cvspass > /dev/null 2>&1 ; then
echo "Logging into CVS server. Anonymous CVS password is probably empty"
cvs login
fi
fi
cvs checkout mono || exit -1
# Build and install mono
echo "Building and installing mono"
(cd $here/mono; ./autogen.sh --prefix=$here/install || exit -1; make || exit -1; make install || exit -1) || exit -1
echo ""
echo ""
echo "All done."
echo "Add $here/install/bin to \$PATH"
echo "Add $here/install/lib to \$LD_LIBRARY_PATH"
echo "Don't forget to copy the class libraries to $here/install/lib"
-384
View File
@@ -1,384 +0,0 @@
Microsoft.Win32.Registry
Microsoft.Win32.RegistryHive
Microsoft.Win32.RegistryKey
System.__ComObject
System.Activator
System.ArgIterator
System.AssemblyLoadEventHandler
System.AsyncCallback
System.CrossAppDomainDelegate
System.DBNull
System.Diagnostics.SymbolStore.SymDocumentType
System.Diagnostics.SymbolStore.SymLanguageType
System.Diagnostics.SymbolStore.SymLanguageVendor
System.EventHandler
System.Globalization.CompareInfo
System.Globalization.HebrewCalendar
System.Globalization.HijriCalendar
System.Globalization.JapaneseCalendar
System.Globalization.KoreanCalendar
System.Globalization.RegionInfo
System.Globalization.SortKey
System.Globalization.StringInfo
System.Globalization.TaiwanCalendar
System.Globalization.TextElementEnumerator
System.Globalization.TextInfo
System.Globalization.ThaiBuddhistCalendar
System.IO.EndOfStreamException
System.IO.IsolatedStorage.IsolatedStorage
System.IO.IsolatedStorage.IsolatedStorageException
System.IO.IsolatedStorage.IsolatedStorageFile
System.IO.PathTooLongException
System.Reflection.Emit.MethodRental
System.Reflection.MemberFilter
System.Reflection.Missing
System.Reflection.ModuleResolveEventHandler
System.Reflection.Pointer
System.Reflection.StrongNameKeyPair
System.Reflection.TargetException
System.Reflection.TypeFilter
System.ResolveEventHandler
System.Runtime.CompilerServices.AccessedThroughPropertyAttribute
System.Runtime.CompilerServices.CallConvCdecl
System.Runtime.CompilerServices.CallConvFastcall
System.Runtime.CompilerServices.CallConvStdcall
System.Runtime.CompilerServices.CallConvThiscall
System.Runtime.CompilerServices.CompilationRelaxationsAttribute
System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
System.Runtime.CompilerServices.CustomConstantAttribute
System.Runtime.CompilerServices.DateTimeConstantAttribute
System.Runtime.CompilerServices.DecimalConstantAttribute
System.Runtime.CompilerServices.DiscardableAttribute
System.Runtime.CompilerServices.IDispatchConstantAttribute
System.Runtime.CompilerServices.IsVolatile
System.Runtime.CompilerServices.IUnknownConstantAttribute
System.Runtime.CompilerServices.RequiredAttributeAttribute
System.Runtime.InteropServices.ArrayWithOffset
System.Runtime.InteropServices.AssemblyRegistrationFlags
System.Runtime.InteropServices.AutomationProxyAttribute
System.Runtime.InteropServices.BIND_OPTS
System.Runtime.InteropServices.BINDPTR
System.Runtime.InteropServices.CALLCONV
System.Runtime.InteropServices.ClassInterfaceAttribute
System.Runtime.InteropServices.ClassInterfaceType
System.Runtime.InteropServices.CoClassAttribute
System.Runtime.InteropServices.ComAliasNameAttribute
System.Runtime.InteropServices.ComConversionLossAttribute
System.Runtime.InteropServices.ComEventInterfaceAttribute
System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.ComImportAttribute
System.Runtime.InteropServices.ComInterfaceType
System.Runtime.InteropServices.ComMemberType
System.Runtime.InteropServices.ComRegisterFunctionAttribute
System.Runtime.InteropServices.ComSourceInterfacesAttribute
System.Runtime.InteropServices.ComUnregisterFunctionAttribute
System.Runtime.InteropServices.ComVisibleAttribute
System.Runtime.InteropServices.CONNECTDATA
System.Runtime.InteropServices.CurrencyWrapper
System.Runtime.InteropServices.DESCKIND
System.Runtime.InteropServices.DispatchWrapper
System.Runtime.InteropServices.DispIdAttribute
System.Runtime.InteropServices.DISPPARAMS
System.Runtime.InteropServices.ELEMDESC
System.Runtime.InteropServices.ErrorWrapper
System.Runtime.InteropServices.EXCEPINFO
System.Runtime.InteropServices.Expando.IExpando
System.Runtime.InteropServices.ExporterEventKind
System.Runtime.InteropServices.ExtensibleClassFactory
System.Runtime.InteropServices.FILETIME
System.Runtime.InteropServices.FUNCDESC
System.Runtime.InteropServices.FUNCFLAGS
System.Runtime.InteropServices.FUNCKIND
System.Runtime.InteropServices.GCHandle
System.Runtime.InteropServices.GuidAttribute
System.Runtime.InteropServices.HandleRef
System.Runtime.InteropServices.ICustomAdapter
System.Runtime.InteropServices.ICustomFactory
System.Runtime.InteropServices.ICustomMarshaler
System.Runtime.InteropServices.IDispatchImplAttribute
System.Runtime.InteropServices.IDispatchImplType
System.Runtime.InteropServices.IDLDESC
System.Runtime.InteropServices.IDLFLAG
System.Runtime.InteropServices.IMPLTYPEFLAGS
System.Runtime.InteropServices.ImportedFromTypeLibAttribute
System.Runtime.InteropServices.ImporterEventKind
System.Runtime.InteropServices.InterfaceTypeAttribute
System.Runtime.InteropServices.InvalidComObjectException
System.Runtime.InteropServices.InvalidOleVariantTypeException
System.Runtime.InteropServices.INVOKEKIND
System.Runtime.InteropServices.IRegistrationServices
System.Runtime.InteropServices.ITypeLibConverter
System.Runtime.InteropServices.ITypeLibExporterNameProvider
System.Runtime.InteropServices.ITypeLibExporterNotifySink
System.Runtime.InteropServices.ITypeLibImporterNotifySink
System.Runtime.InteropServices.LCIDConversionAttribute
System.Runtime.InteropServices.LIBFLAGS
System.Runtime.InteropServices.MarshalDirectiveException
System.Runtime.InteropServices.ObjectCreationDelegate
System.Runtime.InteropServices.PARAMDESC
System.Runtime.InteropServices.PARAMFLAG
System.Runtime.InteropServices.PreserveSigAttribute
System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute
System.Runtime.InteropServices.ProgIdAttribute
System.Runtime.InteropServices.RegistrationServices
System.Runtime.InteropServices.RuntimeEnvironment
System.Runtime.InteropServices.SafeArrayRankMismatchException
System.Runtime.InteropServices.SafeArrayTypeMismatchException
System.Runtime.InteropServices.SEHException
System.Runtime.InteropServices.STATSTG
System.Runtime.InteropServices.SYSKIND
System.Runtime.InteropServices.TYPEATTR
System.Runtime.InteropServices.TYPEDESC
System.Runtime.InteropServices.TYPEFLAGS
System.Runtime.InteropServices.TYPEKIND
System.Runtime.InteropServices.TYPELIBATTR
System.Runtime.InteropServices.TypeLibConverter
System.Runtime.InteropServices.TypeLibExporterFlags
System.Runtime.InteropServices.TypeLibFuncAttribute
System.Runtime.InteropServices.TypeLibFuncFlags
System.Runtime.InteropServices.TypeLibImporterFlags
System.Runtime.InteropServices.TypeLibTypeAttribute
System.Runtime.InteropServices.TypeLibTypeFlags
System.Runtime.InteropServices.TypeLibVarAttribute
System.Runtime.InteropServices.TypeLibVarFlags
System.Runtime.InteropServices.UCOMIBindCtx
System.Runtime.InteropServices.UCOMIConnectionPoint
System.Runtime.InteropServices.UCOMIConnectionPointContainer
System.Runtime.InteropServices.UCOMIEnumConnectionPoints
System.Runtime.InteropServices.UCOMIEnumConnections
System.Runtime.InteropServices.UCOMIEnumMoniker
System.Runtime.InteropServices.UCOMIEnumString
System.Runtime.InteropServices.UCOMIEnumVARIANT
System.Runtime.InteropServices.UCOMIMoniker
System.Runtime.InteropServices.UCOMIPersistFile
System.Runtime.InteropServices.UCOMIRunningObjectTable
System.Runtime.InteropServices.UCOMIStream
System.Runtime.InteropServices.UCOMITypeComp
System.Runtime.InteropServices.UCOMITypeInfo
System.Runtime.InteropServices.UCOMITypeLib
System.Runtime.InteropServices.UnknownWrapper
System.Runtime.InteropServices.VARDESC
System.Runtime.InteropServices.VARFLAGS
System.Runtime.Remoting.ActivatedClientTypeEntry
System.Runtime.Remoting.ActivatedServiceTypeEntry
System.Runtime.Remoting.Activation.UrlAttribute
System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties
System.Runtime.Remoting.Channels.BaseChannelSinkWithProperties
System.Runtime.Remoting.Channels.BaseChannelWithProperties
System.Runtime.Remoting.Channels.ChannelDataStore
System.Runtime.Remoting.Channels.ChannelServices
System.Runtime.Remoting.Channels.ClientChannelSinkStack
System.Runtime.Remoting.Channels.IChannel
System.Runtime.Remoting.Channels.IChannelDataStore
System.Runtime.Remoting.Channels.IChannelReceiver
System.Runtime.Remoting.Channels.IChannelReceiverHook
System.Runtime.Remoting.Channels.IChannelSender
System.Runtime.Remoting.Channels.IChannelSinkBase
System.Runtime.Remoting.Channels.IClientChannelSink
System.Runtime.Remoting.Channels.IClientChannelSinkProvider
System.Runtime.Remoting.Channels.IClientChannelSinkStack
System.Runtime.Remoting.Channels.IClientFormatterSink
System.Runtime.Remoting.Channels.IClientFormatterSinkProvider
System.Runtime.Remoting.Channels.IClientResponseChannelSinkStack
System.Runtime.Remoting.Channels.IServerChannelSink
System.Runtime.Remoting.Channels.IServerChannelSinkProvider
System.Runtime.Remoting.Channels.IServerChannelSinkStack
System.Runtime.Remoting.Channels.IServerFormatterSinkProvider
System.Runtime.Remoting.Channels.IServerResponseChannelSinkStack
System.Runtime.Remoting.Channels.ITransportHeaders
System.Runtime.Remoting.Channels.ServerChannelSinkStack
System.Runtime.Remoting.Channels.ServerProcessing
System.Runtime.Remoting.Channels.SinkProviderData
System.Runtime.Remoting.Channels.TransportHeaders
System.Runtime.Remoting.Contexts.ContextProperty
System.Runtime.Remoting.Contexts.CrossContextDelegate
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.Remoting.IChannelInfo
System.Runtime.Remoting.IEnvoyInfo
System.Runtime.Remoting.InternalRemotingServices
System.Runtime.Remoting.IObjectHandle
System.Runtime.Remoting.IRemotingTypeInfo
System.Runtime.Remoting.Lifetime.ClientSponsor
System.Runtime.Remoting.Lifetime.ILease
System.Runtime.Remoting.Lifetime.ISponsor
System.Runtime.Remoting.Lifetime.LeaseState
System.Runtime.Remoting.Lifetime.LifetimeServices
System.Runtime.Remoting.Messaging.AsyncResult
System.Runtime.Remoting.Messaging.CallContext
System.Runtime.Remoting.Messaging.ConstructionCall
System.Runtime.Remoting.Messaging.ConstructionResponse
System.Runtime.Remoting.Messaging.Header
System.Runtime.Remoting.Messaging.HeaderHandler
System.Runtime.Remoting.Messaging.ILogicalThreadAffinative
System.Runtime.Remoting.Messaging.IMessageCtrl
System.Runtime.Remoting.Messaging.IMessageSink
System.Runtime.Remoting.Messaging.IMethodCallMessage
System.Runtime.Remoting.Messaging.InternalMessageWrapper
System.Runtime.Remoting.Messaging.IRemotingFormatter
System.Runtime.Remoting.Messaging.LogicalCallContext
System.Runtime.Remoting.Messaging.MessageSurrogateFilter
System.Runtime.Remoting.Messaging.MethodCall
System.Runtime.Remoting.Messaging.MethodCallMessageWrapper
System.Runtime.Remoting.Messaging.MethodResponse
System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper
System.Runtime.Remoting.Messaging.OneWayAttribute
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
System.Runtime.Remoting.Messaging.ReturnMessage
System.Runtime.Remoting.Metadata.SoapAttribute
System.Runtime.Remoting.Metadata.SoapFieldAttribute
System.Runtime.Remoting.Metadata.SoapMethodAttribute
System.Runtime.Remoting.Metadata.SoapOption
System.Runtime.Remoting.Metadata.SoapParameterAttribute
System.Runtime.Remoting.Metadata.SoapTypeAttribute
System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapAnyUri
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapBase64Binary
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDate
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDateTime
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDay
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDuration
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapEntities
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapEntity
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapHexBinary
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapId
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapIdref
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapIdrefs
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapInteger
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapLanguage
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapMonth
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapMonthDay
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapName
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNcName
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNegativeInteger
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNmtoken
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNmtokens
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonNegativeInteger
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNonPositiveInteger
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNormalizedString
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNotation
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapPositiveInteger
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapQName
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapTime
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapToken
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapYear
System.Runtime.Remoting.Metadata.W3cXsd2001.SoapYearMonth
System.Runtime.Remoting.Metadata.XmlFieldOrderOption
System.Runtime.Remoting.Proxies.ProxyAttribute
System.Runtime.Remoting.Proxies.RealProxy
System.Runtime.Remoting.RemotingConfiguration
System.Runtime.Remoting.RemotingException
System.Runtime.Remoting.RemotingServices
System.Runtime.Remoting.RemotingTimeoutException
System.Runtime.Remoting.ServerException
System.Runtime.Remoting.Services.EnterpriseServicesHelper
System.Runtime.Remoting.Services.ITrackingHandler
System.Runtime.Remoting.Services.TrackingServices
System.Runtime.Remoting.SoapServices
System.Runtime.Remoting.TypeEntry
System.Runtime.Remoting.WellKnownClientTypeEntry
System.Runtime.Remoting.WellKnownServiceTypeEntry
System.Runtime.Serialization.Formatter
System.Runtime.Serialization.FormatterConverter
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
System.Runtime.Serialization.Formatters.InternalRM
System.Runtime.Serialization.Formatters.InternalST
System.Runtime.Serialization.Formatters.ServerFault
System.Runtime.Serialization.Formatters.SoapFault
System.Runtime.Serialization.Formatters.SoapMessage
System.Runtime.Serialization.FormatterServices
System.Runtime.Serialization.ObjectIDGenerator
System.Runtime.Serialization.ObjectManager
System.Runtime.Serialization.SerializationBinder
System.Runtime.Serialization.SerializationEntry
System.Runtime.Serialization.SerializationInfoEnumerator
System.Runtime.Serialization.SurrogateSelector
System.RuntimeArgumentHandle
System.Security.AllowPartiallyTrustedCallersAttribute
System.Security.Cryptography.CryptoConfig
System.Security.Cryptography.DSACryptoServiceProvider
System.Security.Cryptography.HMACSHA1
System.Security.Cryptography.KeyedHashAlgorithm
System.Security.Cryptography.MACTripleDES
System.Security.Cryptography.MaskGenerationMethod
System.Security.Cryptography.PasswordDeriveBytes
System.Security.Cryptography.PKCS1MaskGenerationMethod
System.Security.Cryptography.RandomNumberGenerator
System.Security.Cryptography.RC2
System.Security.Cryptography.RC2CryptoServiceProvider
System.Security.Cryptography.Rijndael
System.Security.Cryptography.RijndaelManaged
System.Security.Cryptography.RNGCryptoServiceProvider
System.Security.Cryptography.RSA
System.Security.Cryptography.RSACryptoServiceProvider
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter
System.Security.Cryptography.RSAOAEPKeyExchangeFormatter
System.Security.Cryptography.RSAParameters
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1SignatureDeformatter
System.Security.Cryptography.RSAPKCS1SignatureFormatter
System.Security.Cryptography.SHA1Managed
System.Security.Cryptography.SHA384Managed
System.Security.Cryptography.SHA512Managed
System.Security.Cryptography.TripleDES
System.Security.Cryptography.TripleDESCryptoServiceProvider
System.Security.Cryptography.X509Certificates.X509Certificate
System.Security.NamedPermissionSet
System.Security.Permissions.EnvironmentPermission
System.Security.Permissions.FileDialogPermission
System.Security.Permissions.FileDialogPermissionAccess
System.Security.Permissions.IsolatedStorageFilePermission
System.Security.Permissions.IsolatedStoragePermissionAttribute
System.Security.Permissions.PrincipalPermission
System.Security.Permissions.PrincipalPermissionAttribute
System.Security.Permissions.PublisherIdentityPermission
System.Security.Permissions.PublisherIdentityPermissionAttribute
System.Security.Permissions.ReflectionPermission
System.Security.Permissions.RegistryPermission
System.Security.Permissions.SecurityPermission
System.Security.Permissions.SecurityPermissionAttribute
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.AllMembershipCondition
System.Security.Policy.ApplicationDirectory
System.Security.Policy.ApplicationDirectoryMembershipCondition
System.Security.Policy.FileCodeGroup
System.Security.Policy.FirstMatchCodeGroup
System.Security.Policy.Hash
System.Security.Policy.HashMembershipCondition
System.Security.Policy.NetCodeGroup
System.Security.Policy.PermissionRequestEvidence
System.Security.Policy.PolicyStatement
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
System.Threading.IOCompletionCallback
System.Threading.ThreadStart
System.Threading.TimerCallback
System.Threading.WaitCallback
System.Threading.WaitOrTimerCallback
System.TimeZone
System.TypedReference
System.UnhandledExceptionEventHandler
System.WeakReference
-32
View File
@@ -86,38 +86,6 @@
You can also get this information if you install the Beta2
release of the .NET Framework.
<a name="mailing">
** Mailing Lists
There are a number of mailing lists for Mono
<ul>
* <b><a
href="http://lists.ximian.com/mailman/listinfo/mono-list">mono-list:</a></b>
The general Mono discussion list.
* <b><a
href="http://lists.ximian.com/mailman/listinfo/mono-announce-list">mono-announce-list:</a></b>
Announcements of Mono developments.
* <b><a
href="http://lists.ximian.com/mailman/listinfo/mono-gc-list">mono-gc-list:</a></b>
Discussion on the GC system of Mono.
* <b><a
href="http://lists.ximian.com/mailman/listinfo/mono-cvs-list">mono-cvs-list:</a></b>
Track the CVS activity of Mono on this mailing list. You can get <a href="http://www.go-mono.com/snapshots">daily snapshots</a> as well.
* <b><a
href="http://lists.ximian.com/mailman/listinfo/mono-docs-list">mono-docs-list:</a></b>
Discussion on the documentation of Mono.
* <b><a
href="http://lists.ximian.com/mailman/listinfo/mono-patches">mono-patches:</a></b>
Track the development of Mono in realtime: receive patches to the Mono repository
by email.
* <b><a
href="http://discuss.develop.com/dotnet.html">Dotnet mailing
list at Develop.com:</a></b> The guys at Develop Mentor run
this general purpose mailing list.
</ul>
** Discussion Groups.
<ul>
+1 -1
View File
@@ -35,7 +35,7 @@
There is information to help you get started in CVS at
mcs/class/doc/NUnitGuidelines. Once you have written your test, please
post it to <a href="resources.html#mailing">mono-list</a>.
post it to <a href="mailing-lists.html">mono-list</a>.
Someone will make sure to add the file or apply the patch as
appropriate. If you plan to be an on-going contributor and
+1
View File
@@ -17,6 +17,7 @@
1,Tools,tools.html,tools.src
1,Porting,porting.html,porting.src
0,Resources,resources.html,resources.src
1,Mailing Lists,mailing-lists.html,mailing-lists.src
1,Ideas,ideas.html,ideas.src
1,Passport,passport.html,passport.src
0,Contact,contact.html,contact.src
+7 -1
View File
@@ -16,6 +16,7 @@ SOURCES= \
../gcc-frontend \
../index \
../ideas \
../mailing-lists \
../passport \
../rationale \
../resources \
@@ -26,6 +27,11 @@ SOURCES= \
../porting \
../tools
NON_HTML_SOURCES= \
../mono-build.sh \
../mono-build-w32.sh
all:
-mkdir site
for i in $(SOURCES); do \
@@ -40,7 +46,7 @@ clean:
done;
push:
scp -P 2200 *.html [email protected]:/web/cvsmodules/mono
scp -P 2200 *.html $(NON_HTML_SOURCES) [email protected]:/web/cvsmodules/mono
echo scp *.html [email protected]:/home/groups/m/mo/mononet/htdocs
push2:
+3 -3
View File
@@ -7,11 +7,11 @@
background-image: url("images/bgsquares.gif");
background-attachment: fixed; }
body, td, table { font-family: "trebuchet ms", lucida, verdana, helvetica;
font-size: 12px; }
font-size: 14px; }
.navi { font-size: 14px; background: #444444; }
.subnavi { font-size: 12px; }
.footnote { font-size: 10px; color: #aaaaaa; }
.subnavi { font-size: 14px; }
.footnote { font-size: 12px; color: #aaaaaa; }
a.navi { color: #ffffff; text-decoration: none; font-weight: bold; }
a.navi:visited { color: #cccccc; }
+18 -16
View File
@@ -1,35 +1,38 @@
Object and VTable layout
========================
The first pointer inside an Object points to a MonoClass structure. Objects
The first pointer inside an Object points to a MonoVtable structure. Objects
also contains a MonoThreadsSync structure which is used by the mono Thread
implementation.
typedef struct {
MonoClass *class;
MonoVTable *vtable;
MonoThreadsSync synchronisation;
/* object specific data goes here */
} MonoObject;
The MonoClass contains all Class infos, the VTable and a pointer to static
class data.
The MonoVtable contains the vtable, interface offsets and a pointer to static
class data. Each object/vtable belongs to exactly one AppDomain.
typedef struct {
MonoClass *klass;
MonoDomain *domain;
gpointer *interface_offsets;
/* a pointer to static data */
gpointer data;
/* the variable sized vtable is included at the end */
gpointer vtable [0];
} MonoVTable;
The MonoClass contains domain independent Class infos.
typedef struct {
/* various class infos */
MonoClass *parent;
const char *name;
const char *name_space;
...
/* interface offset table */
gint *interface_offsets;
gpointer data; /* a pointer to static data */
/* the variable sized vtable is included at the end */
gpointer vtable [vtable_size];
} MonoClass;
@@ -40,7 +43,7 @@ Each MonoMethod (if virtual) has an associated slot, which is an index into the
VTable. So we can use the following code to compute the address of a virtual
function:
method_addr = object->class->vtable [method->slot];
method_addr = object->vtable->vtable [method->slot];
Calling interface methods:
@@ -49,8 +52,7 @@ Calling interface methods:
Each interface class is associated with an unique ID. The following code
computes the address of an interface function:
offset_into_vtable = object->class->interface_offsets [interface_id];
method_addr = object->class->vtable [offset_into_vtable + method->slot];
method_addr = *(object->vtable->interface_offsets [interface_id] + method->slot*4);
+1 -1
View File
@@ -1,4 +1,4 @@
man_MANS = mcs.1
man_MANS = mcs.1 mono.1
EXTRA_DIST = $(man_MANS)
+8
View File
@@ -93,7 +93,15 @@ assembly in your program.
.TP
.I \-v
Debugging. Turns on verbose yacc parsing.
.TP
.I \-\-
Use this to stop option parsing, and allow option-looking parameters
to be passed on the command line.
.PP
.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.
.SH AUTHORS
The Mono C# Compiler was written by Miguel de Icaza and Ravi Pratap at
Ximian.
+69
View File
@@ -0,0 +1,69 @@
.\"
.\" mint manual page.
.\" (C) Ximian, Inc.
.\" Author:
.\" Miguel de Icaza ([email protected])
.\"
.TH Mono "Mono 1.0"
.SH NAME
mono \- Mono ECMA-CLI Just in Time compiler.
.SH SYNOPSIS
.PP
.B mono
[\-\-help] [\-d] [\-\-debug-asm] [\-\-debug-forest] [\-\-trace-calls]
[\-\-stabs] [\-\-compile cname] [\-\-ncompile num] [\-\-debug]
program.exe [arguments...]
.SH DESCRIPTION
The \fImono\fP program is a Just in Time compiler for ECMA CLI byte
codes. It translates dynamically a CIL stream into native code.
.I program.exe
and optionally passes
the
.I arguments
to it.
.SH OPTIONS
The following options are supported:
.TP
.I "--help", "-h"
Displays usage instructions.
.I "--share-code"
This mode makes the LoaderOptimization for Application Domains default
to sharing code. This results in slower code, but enables code
sharing across application domains. The default is to maximize for
speed, but disallow JITed code sharing across domains. See
System.LoaderOptimization for more information
.SH DEBUGGING OPTIONS
The following options are used to debug, or perfomance test the JIT
compiler:
.TP
.I "--trace-calls"
Shows method names as they are invoked.
.TP
.I "--dump-asm"
Displays the generated code as methods are invoked.
.TP
.I "--dump-forest"
Displays the basic blocks and the forest of trees that is
created from a stream of CIL opcodes.
.TP
.I "--stabs"
Writes out stabs debug information
.TP
.I "--debug method"
Debugs the method whose name is `method'
.TP
.I "--compile"
Compiles the method on the given class (namespace.name:methodname).
.TP
.I "--ncompile"
Compiles the method a number of times. If no argument is specified,
the method will be compiled a thousand times.
.SH FILES
Assemblies are lodaed from the installation lib directory. If you set
`prefix' to /usr, the assemblies will be located in /usr/lib.
.SH MAILING LISTS
Visit http://mail.ximian.com/mailman/mono-list for details.
.SH WEB SITE
Visit: http://www.go-mono.com for details
.SH SEE ALSO
.BR mint(1), monodis(1)
+4
View File
@@ -1,3 +1,7 @@
2002-02-14 Nick Drochak <[email protected]>
* makefile: Build mcs/doctools too when one does 'make'
2002-01-20 Nick Drochak <[email protected]>
* on the 'test' target, make sure NUnit is built first before building
@@ -0,0 +1,59 @@
// created on 21.02.2002 at 17:06
//
// FrameDimension.cs
//
// Author: Christian Meyer
// eMail: [email protected]
//
namespace System.Drawing.Imaging {
using System;
public sealed class FrameDimension {
// constructor
public FrameDimension (Guid guid) {}
//properties
public Guid Guid {
get {
throw new NotImplementedException ();
}
}
public static FrameDimension Page {
get {
throw new NotImplementedException ();
}
}
public static FrameDimension Resolution {
get {
throw new NotImplementedException ();
}
}
public static FrameDimension Time {
get {
throw new NotImplementedException ();
}
}
//methods
public override bool Equals (object o) {
throw new NotImplementedException ();
}
public override int GetHashCode () {
throw new NotImplementedException ();
}
public override string ToString() {
throw new NotImplementedException ();
}
//destructor
~FrameDimension () {}
}
}
@@ -0,0 +1,36 @@
// created on 20.02.2002 at 21:18
//
// Image.cs
//
// Author: Christian Meyer
// eMail: [email protected]
//
//
namespace System.Drawing.Imaging {
public enum PixelFormat {
Alpha,
Canonical,
DontCare,
Extended,
Format16bppArgb1555,
Format16bppGrayScale,
Format16bppRgb555,
Format16bppRgb565,
Format1bppIndexed,
Format24bppRgb,
Format32bppArgb,
Format32bppPArgb,
Format32bppRgb,
Format48bppRgb,
Format4bppIndexed,
Format64bppArgb,
Format64bppPArgb,
Format8bppIndexed,
Gdi,
Indexed,
Max,
PAlpha,
Undefined
}
}
@@ -0,0 +1,217 @@
// created on 20.02.2002 at 21:18
//
// Image.cs
//
// Author: Christian Meyer
// eMail: [email protected]
//
// Many methods are still commented. I'll care about them when all necessary
// classes are implemented.
//
namespace System.Drawing {
using System;
using System.Runtime.Remoting;
using System.Runtime.Serialization;
using System.Drawing.Imaging;
//[Serializable]
//[ComVisible(true)]
public abstract class Image : MarshalByRefObject, ICloneable, IDisposable /*, ISerializable */ {
// constructor
public Image () {}
// public methods
// static
public static Image FromFile (string filename)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public static Image FromFile (string filename, bool useEmbeddedColorManagement)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public static Bitmap FromHbitmap (IntPtr hbitmap)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public static Bitmap FromHbitmap (IntPtr hbitmap, IntPtr hpalette)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public static int GetPixelFormatSize (PixelFormat pixfmt)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public static bool IsAlphaPixelFormat (PixelFormat pixfmt)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public static bool IsCanonicalPixelFormat (PixelFormat pixfmt)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public static bool IsExtendedPixelFormat (PixelFormat pixfmt)
{
// Fixme: implement me
throw new NotImplementedException ();
}
// non-static
public object Clone ()
{
// Fixme: implement me
throw new NotImplementedException ();
}
public void Dispose ()
{
// Fixme: implement me
throw new NotImplementedException ();
}
protected virtual void Dispose (bool disposing)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public RectangleF GetBounds (ref GraphicsUnit pageUnit)
{
// Fixme: implement me
throw new NotImplementedException ();
}
//public EncoderParameters GetEncoderParameterList(Guid encoder);
//public int GetFrameCount(FrameDimension dimension);
//public PropertyItem GetPropertyItem(int propid);
/*
public Image GetThumbnailImage(int thumbWidth, int thumbHeight,
Image.GetThumbnailImageAbort callback,
IntPtr callbackData);
*/
public void RemovePropertyItem (int propid)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public void RotateFlip (RotateFlipType rotateFlipType)
{
// Fixme: implement me
throw new NotImplementedException ();
}
public void Save (string filename)
{
// Fixme: implement me
throw new NotImplementedException ();
}
//public void Save(Stream stream, ImageFormat format);
//public void Save(string filename, ImageFormat format);
//public void Save(Stream stream, ImageCodecInfo encoder,
// EncoderParameters encoderParams);
//public void Save(string filename, ImageCodecInfo encoder,
// EncoderParameters encoderParams);
//public void SaveAdd(EncoderParameters_ encoderParams);
//public void SaveAdd(Image image, EncoderParameters_ encoderParams);
//public int SelectActiveFrame(FrameDimension dimension, int frameIndex);
//public void SetPropertyItem(PropertyItem propitem);
// destructor
~Image() {}
// properties
public int Flags {
get {
throw new NotImplementedException ();
}
}
public Guid[] FrameDimensionsList {
get {
throw new NotImplementedException ();
}
}
public int Height {
get {
throw new NotImplementedException ();
}
}
public float HorizontalResolution {
get {
throw new NotImplementedException ();
}
}
public ColorPalette Palette {
get {
throw new NotImplementedException ();
}
set {
throw new NotImplementedException ();
}
}
public SizeF PhysicalDimension {
get {
throw new NotImplementedException ();
}
}
public PixelFormat PixelFormat {
get {
throw new NotImplementedException ();
}
}
public int[] PropertyIdList {
get {
throw new NotImplementedException ();
}
}
//public PropertyItem[] PropertyItems {get;}
//public ImageFormat RawFormat {get;}
public Size Size {
get {
throw new NotImplementedException ();
}
}
public float VerticalResolution {
get {
throw new NotImplementedException ();
}
}
public int Width {
get {
throw new NotImplementedException ();
}
}
}
}
@@ -1,3 +1,17 @@
2002-02-21 Gaurav Vaish <[email protected]>
* DataGrid.cs - Following methods implemented:
TrackViewState(), LoadViewState(object), SaveViewState(),
On* -- The event raisers.
OnBubbleEvent(object, EventArgs) is still incomplete.
* DataGridItem.cs - Initial Implementation
* DataGridItemCollection.cs - Completed.
2002-02-08 Gaurav Vaish <[email protected]>
* DataGrid.cs - Initial Implementation. Worked primarily
with some properties.
2002-02-07 Gaurav Vaish <[email protected]>
* ListBox.cs - Completed. Implemented
@@ -0,0 +1,741 @@
/**
* Namespace: System.Web.UI.WebControls
* Class: DataGrid
*
* Author: Gaurav Vaish
* Maintainer: [email protected]
* Contact: <[email protected]>, <[email protected]>
* Implementation: yes
* Status: 95%
*
* (C) Gaurav Vaish (2002)
*/
using System;
using System.Collections;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls
{
public class DataGrid : BaseDataList, INamingContainer
{
public const string CancelCommandName = "Cancel";
public const string DeleteCommandName = "Delete";
public const string EditCommandName = "Edit";
public const string NextPageCommandName = "Next";
public const string PageCommandName = "Page";
public const string PrevPageCommandName = "Prev";
public const string SelectCommandName = "Select";
public const string SortCommandName = "Sort";
public const string UpdateCommandName = "Update";
private TableItemStyle alternatingItemStyle;
private TableItemStyle editItemStyle;
private TableItemStyle headerStyle;
private TableItemStyle footerStyle;
private TableItemStyle itemStyle;
private TableItemStyle selectedItemStyle;
private DataGridPagerStyle pagerStyle;
private DataGridColumnCollection columns;
private ArrayList columnsArrayList;
private DataGridColumnCollection items;
private ArrayList itemsArrayList;
private static readonly object CancelCommandEvent = new object();
private static readonly object DeleteCommandEvent = new object();
private static readonly object EditCommandEvent = new object();
private static readonly object ItemCommandEvent = new object();
private static readonly object ItemCreatedEvent = new object();
private static readonly object ItemDataBoundEvent = new object();
private static readonly object PageIndexChangedEvent = new object();
private static readonly object SortCommandEvent = new object();
private static readonly object UpdateCommandEvent = new object();
public DataGrid(): base()
{
}
public virtual bool AllowCustomPaging
{
get
{
object o = ViewState["AllowCustomPaging"];
if(o != null)
return (bool)o;
return false;
}
set
{
ViewState["AllowCustomPaging"] = value;
}
}
public virtual bool AllowPaging
{
get
{
object o = ViewState["AllowPaging"];
if(o != null)
return (bool)o;
return false;
}
set
{
ViewState["AllowPaging"] = value;
}
}
public virtual bool AllowSorting
{
get
{
object o = ViewState["AllowSorting"];
if(o != null)
return (bool)o;
return false;
}
set
{
ViewState["AllowSorting"] = value;
}
}
public virtual TableItemStyle AlternatingItemStyle
{
get
{
if(alternatingItemStyle == null)
alternatingItemStyle = new TableItemStyle();
if(IsTrackingViewState())
alternatingItemStyle.TrackViewState();
return alternatingItemStyle;
}
}
public virtual bool AutoGenerateColumns
{
get
{
object o = ViewState["AutoGenerateColumns"];
if(o != null)
return (bool)o;
return false;
}
set
{
ViewState["AutoGenerateColumns"] = value;
}
}
public virtual string BackImageUrl
{
get
{
object o = ViewState["BackImageUrl"];
if(o != null)
return (string)o;
return String.Empty;
}
set
{
ViewState["BackImageUrl"] = value;
}
}
public virtual DataGridColumnCollection Columns
{
get
{
if(columns == null)
{
columnsArrayList = new ArrayList();
columns = new DataGridColumnCollection(columnsArrayList);
if(IsTrackingViewState)
{
columns.TrackViewState();
}
return columns;
}
}
}
public int CurrentPageIndex
{
get
{
object o = ViewState["CurrentPageIndex"];
if(o != null)
return (int)o;
return 0;
}
set
{
if(value < 0)
throw new ArgumentOutOfRangeException();
ViewState["CurrentPageIndex"] = value;
}
}
public virtual int EditItemIndex
{
get
{
object o = ViewState["EditItemIndex"];
if(o != null)
return (int)o;
return -1;
}
set
{
if(value < -1)
throw ArgumentOutOfRangeException();
ViewState["EditItemIndex"] = value;
}
}
public virtual TableItemStyle EditItemStyle
{
get
{
if(editItemStyle == null)
{
editItemStyle = new TableItemStyle();
if(IsTrackingViewState)
{
editItemStyle.TrackViewState();
}
}
}
}
public virtual TableItemStyle FooterStyle
{
get
{
if(footerStyle == null)
{
footerStyle = new TableItemStyle();
if(IsTrackingViewState)
{
footerStyle.TrackViewState();
}
}
}
}
public virtual TableItemStyle HeaderStyle
{
get
{
if(headerStyle == null)
{
headerStyle = new TableItemStyle();
if(IsTrackingViewState)
{
headerStyle.TrackViewState();
}
}
}
}
public virtual DataGridItemCollection Items
{
get
{
if(items == null)
{
if(itemsArrayList == null)
EnsureChildControls();
if(itemsArrayList == null)
{
itemsArrayList = new ArrayList();
}
items = new DataGridItemCollection(itemsArrayList);
}
return items;
}
}
public virtual TableItemStyle ItemStyle
{
get
{
if(itemStyle == null)
{
itemStyle = new TableItemStyle();
if(IsTrackingViewState)
{
itemStyle.TrackViewState();
}
}
return itemStyle;
}
}
public int PageCount
{
get
{
if(pagedDataSource != null)
{
return pagedDataSource.PageCount;
}
object o = ViewState["PageCount"];
if(o != null)
return (int)o;
return 0;
}
}
public virtual DataGridPagerStyle PagerStyle
{
get
{
if(pagerStyle == null)
{
pagerStyle = new DataGridPageStyle(this);
if(IsTrackingViewState)
{
pagerStyle.TrackViewState();
}
}
return pagerStyle;
}
}
public virtual int PageSize
{
get
{
object o = ViewState["PageSize"];
if(o != null)
return (int)o;
return 10;
}
set
{
if(value < 1)
throw new ArgumentOutOfRangeException();
ViewState["PageSize"] = value;
}
}
public virtual int SelectedIndex
{
get
{
object o = ViewState["SelectedIndex"];
if(o != null)
return (int)o;
return -1;
}
set
{
if(value < -1)
throw new ArgumentOutOfRangeException();
int prevVal = SelectedIndex;
ViewState["SelectedIndex"] = value;
if(items != null)
{
if(prevVal !=-1 && prevVal < items.Count)
{
DataGridItem prev = (DataGridItem)items[prevVal];
if(prev.ListItemType != ListItemType.EditItem)
{
ListItemType newType = ListItemType.Item;
if( (prevVal % 2) != 0)
{
newType = ListItemType.AlternatingItem;
}
prev.SetItemType(newType);
}
}
}
}
}
public virtual DataGridItem SelectedItem
{
get
{
if(SelectedIndex == -1)
return null;
return Items[SelectedIndex];
}
}
public virtual TableItemStyle SelectedItemStyle
{
get
{
if(selectedItemStyle == null)
{
selectedItemStyle = new TableItemStyle();
if(IsTrackingViewState)
{
selectedItemStyle.TrackViewState();
}
}
}
}
public virtual bool ShowFooter
{
get
{
object o = ViewState["ShowFooter"];
if(o != null)
retur (bool)o;
return false;
}
set
{
ViewState["ShowFooter"] = value;
}
}
public virtual bool ShowHeader
{
get
{
object o = ViewState["ShowHeader"];
if(o != null)
retur (bool)o;
return false;
}
set
{
ViewState["ShowHeader"] = value;
}
}
public virtual int VirtualItemCount
{
get
{
object o = ViewState["VirtualItemCount"];
if(o != null)
retur (int)o;
return 0;
}
set
{
if(value < 0)
throw new ArgumentOutOfRangeException();
ViewState["VirtualItemCount"] = value;
}
}
public event DataGridCommandEventHandler CancelCommand
{
add
{
Events.AddHandler(CancelCommandEvent, value);
}
remove
{
Events.RemoveHandler(CancelCommandEvent, value);
}
}
public event DataGridCommandEventHandler DeleteCommand
{
add
{
Events.AddHandler(DeleteCommandEvent, value);
}
remove
{
Events.RemoveHandler(DeleteCommandEvent, value);
}
}
public event DataGridCommandEventHandler EditCommand
{
add
{
Events.AddHandler(EditCommandEvent, value);
}
remove
{
Events.RemoveHandler(EditCommandEvent, value);
}
}
public event DataGridCommandEventHandler ItemCommand
{
add
{
Events.AddHandler(ItemCommandEvent, value);
}
remove
{
Events.RemoveHandler(ItemCommandEvent, value);
}
}
public event DataGridCommandEventHandler ItemCreated
{
add
{
Events.AddHandler(ItemCreatedEvent, value);
}
remove
{
Events.RemoveHandler(ItemCreatedEvent, value);
}
}
public event DataGridCommandEventHandler ItemDataBound
{
add
{
Events.AddHandler(ItemDataBoundEvent, value);
}
remove
{
Events.RemoveHandler(ItemDataBoundEvent, value);
}
}
public event DataGridCommandEventHandler PageIndexChanged
{
add
{
Events.AddHandler(PageIndexChangedEvent, value);
}
remove
{
Events.RemoveHandler(PageIndexChangedEvent, value);
}
}
public event DataGridCommandEventHandler SortCommand
{
add
{
Events.AddHandler(SortCommandEvent, value);
}
remove
{
Events.RemoveHandler(SortCommandEvent, value);
}
}
public event DataGridCommandEventHandler UpdateCommand
{
add
{
Events.AddHandler(UpdateCommandEvent, value);
}
remove
{
Events.RemoveHandler(UpdateCommandEvent, value);
}
}
protected override Style CreateControlStyle()
{
TableStyle style = new TableStyle(ViewState);
style.GridLines = GridLines.Both;
style.CellSpacing = 0;
}
protected override void LoadViewState(object savedState)
{
if(states != null)
{
object[] states = (object[])savedState;
if(states != null)
{
LoadViewState(states[0]);
if(columns != null)
columns.LoadViewState(states[1]);
if(pagerStyle != null)
pagerStyle.LoadViewState(states[2]);
if(headerStyle != null)
headerStyle.LoadViewState(states[3]);
if(footerStyle != null)
footerStyle.LoadViewState(states[4]);
if(itemStyle != null)
itemStyle.LoadViewState(states[5]);
if(alternatingItemStyle != null)
alternatingItemStyle.LoadViewState(states[6]);
if(selectedItemStyle != null)
selectedItemStyle.LoadViewState(states[7]);
if(editItemStyle != null)
editItemStyle.LoadViewState(states[8]);
}
}
}
protected override object SaveViewState()
{
object[] states = new object[9];
states[0] = SaveViewState();
states[1] = (columns == null ? null : columns.SaveViewState());
states[2] = (pagerStyle == null ? null : pagerStyle.SaveViewState());
states[3] = (headerStyle == null ? null : headerStyle.SaveViewState());
states[4] = (footerStyle == null ? null : footerStyle.SaveViewState());
states[5] = (itemStyle == null ? null : itemStyle.SaveViewState());
states[6] = (alternatingItemStyle == null ? null : alternatingItemStyle.SaveViewState());
states[7] = (selectedItemStyle == null ? null : selectedItemStyle.SaveViewState());
states[8] = (editItemStyle == null ? null : editItemStyle.SaveViewState());
return states;
}
protected override void TrackViewState()
{
TrackViewState();
if(alternatingItemStyle != null)
{
alternatingItemStyle.TrackViewState();
}
if(editItemStyle != null)
{
editItemStyle.TrackViewState();
}
if(headerStyle != null)
{
headerStyle.TrackViewState();
}
if(footerStyle != null)
{
footerStyle.TrackViewState();
}
if(itemStyle != null)
{
itemStyle.TrackViewState();
}
if(selectedItemStyle != null)
{
selectedItemStyle.TrackViewState();
}
if(pagerStyle != null)
{
pagerStyle.TrackViewState();
}
if(columns != null)
{
columns.TrackViewState();
}
}
[MonoTODO]
protected override bool OnBubbleEvent(object source, EventArgs e)
{
bool retVal = false;
if(e is DataGridCommandEventArgs)
{
DataGridCommandEventArgs ea = (DataGridCommandEventArgs)e;
retVal = true;
OnItemCommand(ea);
string cmd = ea.CommandName;
if(cmd == "Select")
{
SelectedIndex = ea.Item.SelectedIndex;
OnSelectedIndexChanged(EventArgs.Empty);
} else if(cmd == "Page")
{
throw new NotImplementedException();
// Next; Prev; Sort etc
}
}
throw new NotImplementedException();
//return retVal;
}
protected virtual void OnCancelCommand(DataGridCommandEventArgs e)
{
if(Events != null)
{
DataGridCommandEventHandler dceh = (DataGridCommandEventHandler)(Events[CancelCommandEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnDeleteCommand(DataGridCommandEventArgs e)
{
if(Events != null)
{
DataGridCommandEventHandler dceh = (DataGridCommandEventHandler)(Events[DeleteCommandEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnEditCommand(DataGridCommandEventArgs e)
{
if(Events != null)
{
DataGridCommandEventHandler dceh = (DataGridCommandEventHandler)(Events[EditCommandEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnItemCommand(DataGridCommandEventArgs e)
{
if(Events != null)
{
DataGridCommandEventHandler dceh = (DataGridCommandEventHandler)(Events[ItemCommandEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnItemCreated(DataGridItemEventArgs e)
{
if(Events != null)
{
DataGridItemEventHandler dceh = (DataGridItemEventHandler)(Events[ItemCreatedEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnItemDataBound(DataGridItemEventArgs e)
{
if(Events != null)
{
DataGridItemEventHandler dceh = (DataGridItemEventHandler)(Events[ItemDataBoundEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnPageIndexChanged(DataGridPageChangedEventArgs e)
{
if(Events != null)
{
DataGridPageChangedEventHandler dceh = (DataGridPageChangedEventHandler)(Events[PageIndexChangedEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnSortCommand(DataGridSortCommandEventArgs e)
{
if(Events != null)
{
DataGridSortCommandEventHandler dceh = (DataGridSortCommandEventHandler)(Events[SortCommandEvent]);
if(dceh != null)
dceh(this, e);
}
}
protected virtual void OnUpdateCommand(DataGridCommandEventArgs e)
{
if(Events != null)
{
DataGridCommandEventHandler dceh = (DataGridCommandEventHandler)(Events[UpdateCommandEvent]);
if(dceh != null)
dceh(this, e);
}
}
}
}
@@ -0,0 +1,79 @@
/**
* Namespace: System.Web.UI.WebControls
* Class: DataGridItem
*
* Author: Gaurav Vaish
* Maintainer: [email protected]
* Contact: <[email protected]>, <[email protected]>
* Implementation: yes
* Status: 100%
*
* (C) Gaurav Vaish (2002)
*/
using System;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls
{
public class DataGridItem : TableRow, INamingContainer
{
private int itemIndex;
private int dataSetIndex;
private ListItemType itemType;
private object dataItem;
public DataGridItem(int itemIndex, int dataSetIndex, ListItemType itemType): base()
{
this.itemIndex = itemIndex;
this.dataSetIndex = dataSetIndex;
this.itemType = itemType;
}
public virtual object DataItem
{
get
{
return dataItem;
}
set
{
dataItem = value;
}
}
public virtual int DataSetIndex
{
get
{
return dataSetIndex;
}
}
public virtual int ItemIndex
{
get
{
return itemIndex;
}
}
public virtual ListItemType ItemType
{
get
{
return itemType;
}
}
protected override bool OnBubbleEvent(object source, EventArgs e)
{
if(e is CommandEventArgs)
{
DataGridCommandEventArgs args = new DataGridCommandEventArgs(this, source, (CommandEventArgs)e);
RaiseBubbleEvent(this, args);
}
}
}
}
@@ -0,0 +1,83 @@
/**
* Namespace: System.Web.UI.WebControls
* Class: DataGridItemCollection
*
* Author: Gaurav Vaish
* Maintainer: [email protected]
* Contact: <[email protected]>, <[email protected]>
* Implementation: yes
* Status: 100%
*
* (C) Gaurav Vaish (2002)
*/
using System;
using System.Collections;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls
{
public class DataGridItemCollection : ICollection, IEnumerable
{
private ArrayList items;
public DataGridItemCollection(ArrayList items)
{
this.items = items;
}
public int Count
{
get
{
return items.Count;
}
}
public bool IsReadOnly
{
get
{
return false;
}
}
public bool IsSynchronized
{
get
{
return false;
}
}
public DataGridItem this[int index]
{
get
{
return (DataGridItem)(items[index]);
}
}
public object SyncRoot
{
get
{
return this;
}
}
public void CopyTo(Array array, int index)
{
foreach(DataGridItem current in this)
{
array.SetValue(current, index++);
}
}
public IEnumerator GetEnumerator()
{
return items.GetEnumerator();
}
}
}
@@ -33,12 +33,12 @@ All Classes, Interfaces, Structures, Delegates and Enumerations
* CommandEventArgs
& CompareValidator
CustomValidator
DataGrid
& DataGrid
DataGridColumn
DataGridColumnCollection
* DataGridCommandEventArgs
DataGridItem
DataGridItemCollection
& DataGridItem
* DataGridItemCollection
* DataGridItemEventArgs
* DataGridPageChangedEventArgs
DataGridPagerStyle
@@ -1,3 +1,12 @@
2002-02-13 Dick Porter <[email protected]>
* Socket.cs: Implemenent Select, Blocking, Connected,
GetSocketOption, Poll, SetSocketOption and Shutdown
* MulticastOption.cs:
* LingerOption.cs: Delete override methods that don't need to be
implemented
2002-01-23 Miguel de Icaza <[email protected]>
* NetworkStream.cs: Implement class.
@@ -16,6 +16,8 @@ namespace System.Net.Sockets
// </remarks>
public class LingerOption
{
// Don't change the names of these fields without also
// changing socket-io.c in the runtime
protected bool enabled;
protected int seconds;
@@ -36,28 +38,5 @@ namespace System.Net.Sockets
get { return seconds; }
set { seconds = value; }
}
public override bool Equals (object o)
{
return (enabled == ((LingerOption)o).enabled) &&
(seconds == ((LingerOption)o).seconds);
}
public override int GetHashCode()
{
return seconds;
}
public override string ToString()
{
string ret;
if (enabled) {
ret = "off";
}
else {
ret = seconds.ToString();
}
return ret;
}
}
}
@@ -17,6 +17,8 @@ namespace System.Net.Sockets
// </remarks>
public class MulticastOption
{
// Don't change the names of these fields without also
// changing socket-io.c in the runtime
protected IPAddress group;
protected IPAddress local;
@@ -42,20 +44,5 @@ namespace System.Net.Sockets
get { return local; }
set { local = value; }
}
public override bool Equals (object o)
{
return false;
}
public override int GetHashCode()
{
return group.GetHashCode();
}
public override string ToString()
{
return group.ToString() + " " + local.ToString();
}
}
}
+215 -35
View File
@@ -205,12 +205,24 @@ namespace System.Net.Sockets
}
}
/* the field "socket" is looked up by name by the runtime */
private IntPtr socket;
private AddressFamily address_family;
private SocketType socket_type;
private ProtocolType protocol_type;
private bool blocking=true;
/* When true, the socket was connected at the time of
* the last IO operation
*/
private bool connected=false;
[MonoTODO]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern static void Select_internal(ref Socket[] read,
ref Socket[] write,
ref Socket[] err,
int timeout);
public static void Select(IList read_list, IList write_list,
IList err_list, int time_us) {
if(read_list==null &&
@@ -218,8 +230,81 @@ namespace System.Net.Sockets
err_list==null) {
throw new ArgumentNullException();
}
int read_count, write_count, err_count;
if(read_list!=null) {
read_count=read_list.Count;
} else {
read_count=0;
}
if(write_list!=null) {
write_count=write_list.Count;
} else {
write_count=0;
}
if(err_list!=null) {
err_count=err_list.Count;
} else {
err_count=0;
}
throw new NotImplementedException();
Socket[] read_arr=new Socket[read_count];
Socket[] write_arr=new Socket[write_count];
Socket[] err_arr=new Socket[err_count];
int i;
if(read_list!=null) {
i=0;
foreach (Socket s in read_list) {
read_arr[i]=s;
i++;
}
}
if(write_list!=null) {
i=0;
foreach (Socket s in write_list) {
write_arr[i]=s;
i++;
}
}
if(err_list!=null) {
i=0;
foreach (Socket s in err_list) {
err_arr[i]=s;
i++;
}
}
Select_internal(ref read_arr, ref write_arr,
ref err_arr, time_us);
if(read_list!=null) {
read_list.Clear();
for(i=0; i<read_arr.Length; i++) {
read_list.Add(read_arr[i]);
}
}
if(write_list!=null) {
write_list.Clear();
for(i=0; i<write_arr.Length; i++) {
write_list.Add(write_arr[i]);
}
}
if(err_list!=null) {
err_list.Clear();
for(i=0; i<err_arr.Length; i++) {
err_list.Add(err_arr[i]);
}
}
}
// private constructor used by Accept, which already
@@ -231,6 +316,7 @@ namespace System.Net.Sockets
protocol_type=proto;
socket=sock;
connected=true;
}
// Creates a new system socket, returning the handle
@@ -264,20 +350,23 @@ namespace System.Net.Sockets
}
}
[MonoTODO]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern static void Blocking_internal(IntPtr socket,
bool block);
public bool Blocking {
get {
throw new NotImplementedException();
//return false;
return(blocking);
}
set {
Blocking_internal(socket, value);
blocking=value;
}
set { }
}
[MonoTODO]
public bool Connected {
get {
throw new NotImplementedException();
//return false;
return(connected);
}
}
@@ -446,6 +535,7 @@ namespace System.Net.Sockets
private extern static void Close_internal(IntPtr socket);
public void Close() {
connected=false;
Close_internal(socket);
}
@@ -460,6 +550,7 @@ namespace System.Net.Sockets
}
Connect_internal(socket, remote_end.Serialize());
connected=true;
}
public Socket EndAccept(IAsyncResult result) {
@@ -505,27 +596,49 @@ namespace System.Net.Sockets
return(req.Worker.Total);
}
[MonoTODO]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern static void GetSocketOption_obj_internal(IntPtr socket, SocketOptionLevel level, SocketOptionName name, out object obj_val);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern static void GetSocketOption_arr_internal(IntPtr socket, SocketOptionLevel level, SocketOptionName name, ref byte[] byte_val);
public object GetSocketOption(SocketOptionLevel level,
SocketOptionName name) {
throw new NotImplementedException();
object obj_val;
GetSocketOption_obj_internal(socket, level, name,
out obj_val);
if(name==SocketOptionName.Linger) {
return((LingerOption)obj_val);
} else if (name==SocketOptionName.AddMembership ||
name==SocketOptionName.DropMembership) {
return((MulticastOption)obj_val);
} else {
return((int)obj_val);
}
}
[MonoTODO]
public void GetSocketOption(SocketOptionLevel level,
SocketOptionName name,
byte[] opt_value) {
throw new NotImplementedException();
int opt_value_len=opt_value.Length;
GetSocketOption_arr_internal(socket, level, name,
ref opt_value);
}
[MonoTODO]
public byte[] GetSocketOption(SocketOptionLevel level,
SocketOptionName name,
int length) {
throw new NotImplementedException();
byte[] byte_val=new byte[length];
GetSocketOption_arr_internal(socket, level, name,
ref byte_val);
return(byte_val);
}
[MonoTODO]
[MonoTODO("Totally undocumented")]
public int IOControl(int ioctl_code, byte[] in_value,
byte[] out_value) {
throw new NotImplementedException();
@@ -539,9 +652,33 @@ namespace System.Net.Sockets
Listen_internal(socket, backlog);
}
[MonoTODO]
/* The docs for Poll() are a bit lightweight too, but
* it seems to be just a simple wrapper around Select.
*/
public bool Poll(int time_us, SelectMode mode) {
throw new NotImplementedException();
ArrayList socketlist=new ArrayList(1);
socketlist.Add(socket);
switch(mode) {
case SelectMode.SelectError:
Select(null, null, socketlist, time_us);
break;
case SelectMode.SelectRead:
Select(socketlist, null, null, time_us);
break;
case SelectMode.SelectWrite:
Select(null, socketlist, null, time_us);
break;
default:
throw new NotSupportedException();
}
if(socketlist.Contains(socket)) {
return(true);
} else {
return(false);
}
}
public int Receive(byte[] buf) {
@@ -572,8 +709,18 @@ namespace System.Net.Sockets
throw new ArgumentException();
}
return(Receive_internal(socket, buf, offset, size,
flags));
int ret;
try {
ret=Receive_internal(socket, buf, offset,
size, flags);
} catch(SocketException) {
connected=false;
throw;
}
connected=true;
return(ret);
}
public int ReceiveFrom(byte[] buf, ref EndPoint remote_end) {
@@ -615,8 +762,15 @@ namespace System.Net.Sockets
SocketAddress sockaddr=remote_end.Serialize();
int count;
count=RecvFrom_internal(socket, buf, offset, size,
flags, ref sockaddr);
try {
count=RecvFrom_internal(socket, buf, offset,
size, flags,
ref sockaddr);
} catch(SocketException) {
connected=false;
throw;
}
connected=true;
// Stupidly, EndPoint.Create() is an
// instance method
@@ -651,9 +805,19 @@ namespace System.Net.Sockets
if(offset+size>buf.Length) {
throw new ArgumentException();
}
return(Send_internal(socket, buf, offset, size,
flags));
int ret;
try {
ret=Send_internal(socket, buf, offset, size,
flags);
} catch(SocketException) {
connected=false;
throw;
}
connected=true;
return(ret);
}
public int SendTo(byte[] buffer, EndPoint remote_end) {
@@ -693,25 +857,38 @@ namespace System.Net.Sockets
SocketAddress sockaddr=remote_end.Serialize();
return(SendTo_internal(socket, buffer, offset, size,
flags, sockaddr));
int ret;
try {
ret=SendTo_internal(socket, buffer, offset,
size, flags, sockaddr);
}
catch(SocketException) {
connected=false;
throw;
}
connected=true;
return(ret);
}
[MonoTODO]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern static void SetSocketOption_internal(IntPtr socket, SocketOptionLevel level, SocketOptionName name, object obj_val, byte[] byte_val, int int_val);
public void SetSocketOption(SocketOptionLevel level,
SocketOptionName name,
byte[] opt_value) {
throw new NotImplementedException();
SetSocketOption_internal(socket, level, name, null,
opt_value, 0);
}
[MonoTODO]
public void SetSocketOption(SocketOptionLevel level,
SocketOptionName name,
int opt_value) {
throw new NotImplementedException();
SetSocketOption_internal(socket, level, name, null,
null, opt_value);
}
[MonoTODO]
public void SetSocketOption(SocketOptionLevel level,
SocketOptionName name,
object opt_value) {
@@ -719,12 +896,15 @@ namespace System.Net.Sockets
throw new ArgumentNullException();
}
throw new NotImplementedException();
SetSocketOption_internal(socket, level, name,
opt_value, null, 0);
}
[MonoTODO]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private extern static void Shutdown_internal(IntPtr socket, SocketShutdown how);
public void Shutdown(SocketShutdown how) {
throw new NotImplementedException();
Shutdown_internal(socket, how);
}
private bool disposed = false;
+2
View File
@@ -16,6 +16,8 @@ namespace System.Net {
/// </remarks>
[Serializable]
public class IPAddress {
// Don't change the name of this field without also
// changing socket-io.c in the runtime
private long address;
public static readonly IPAddress Any=new IPAddress(0);
@@ -20,9 +20,20 @@ namespace System.Collections {
}
public ArrayList (ICollection c) {
if (null == c) {
throw new ArgumentNullException();
}
dataArray = new object[c.Count];
this.capacity = c.Count;
foreach(object o in c) {
Add(o);
}
}
public ArrayList (int capacity) {
if (capacity < 0) {
throw new ArgumentOutOfRangeException("capacity", capacity, "Value must be greater than or equal to zero.");
}
dataArray = new object[capacity];
this.capacity = capacity;
}
@@ -38,26 +49,32 @@ namespace System.Collections {
this.synchronized = synchronized;
}
[MonoTODO]
public static ArrayList ReadOnly (ArrayList list) {
throw new NotImplementedException ("System.Collections.ArrayList.ReadOnly");
}
[MonoTODO]
public static ArrayList ReadOnly (IList list) {
throw new NotImplementedException ("System.Collections.ArrayList.ReadOnly");
}
[MonoTODO]
public static ArrayList Synchronized (ArrayList list) {
throw new NotImplementedException ("System.Collections.ArrayList.Synchronized");
}
[MonoTODO]
public static ArrayList Synchronized (IList list) {
throw new NotImplementedException ("System.Collections.ArrayList.Synchronized");
}
[MonoTODO]
public static ArrayList FixedSize (ArrayList list) {
throw new NotImplementedException ("System.Collections.ArrayList.FixedSize");
}
[MonoTODO]
public static ArrayList FixedSize (IList list) {
throw new NotImplementedException ("System.Collections.ArrayList.FixedSize");
}
@@ -72,6 +89,7 @@ namespace System.Collections {
return al;
}
[MonoTODO]
public static ArrayList Adapter (IList list) {
throw new NotImplementedException ("System.Collections.ArrayList.Adapter");
}
@@ -82,6 +100,9 @@ namespace System.Collections {
private bool readOnly = false;
private bool synchronized = false;
private long version = 0;
private ArrayList source = null;
private int count = 0;
private int capacity = 16;
@@ -163,8 +184,15 @@ namespace System.Collections {
}
}
private void CheckSourceVersion() {
if (null != this.source && this.version != this.source.version) {
throw new InvalidOperationException();
}
}
public virtual int Count {
get {
CheckSourceVersion();
return count;
}
}
@@ -189,6 +217,8 @@ namespace System.Collections {
public virtual object this[int index] {
get {
CheckSourceVersion();
if (index < 0) {
throw new ArgumentOutOfRangeException ("index < 0");
}
@@ -213,9 +243,11 @@ namespace System.Collections {
}
dataArray[index] = value;
version++;
}
}
[MonoTODO]
public virtual object SyncRoot {
get {
throw new NotImplementedException ("System.Collections.ArrayList.SyncRoot.get");
@@ -235,6 +267,7 @@ namespace System.Collections {
}
dataArray[count++] = value;
version++;
return count-1;
}
@@ -244,16 +277,20 @@ namespace System.Collections {
Capacity = cc < count? count * 2: count + cc + 1;
c.CopyTo (dataArray, count);
count += cc;
version++;
}
[MonoTODO]
public virtual int BinarySearch (object value) {
throw new NotImplementedException ("System.Collections.ArrayList.BinarySearch");
}
[MonoTODO]
public virtual int BinarySearch (object value, IComparer comparer) {
throw new NotImplementedException ("System.Collections.ArrayList.BinarySearch");
}
[MonoTODO]
public virtual int BinarySearch (int index, int count,
object value, IComparer comparer) {
throw new NotImplementedException ("System.Collections.ArrayList.BinarySearch");
@@ -262,6 +299,7 @@ namespace System.Collections {
public virtual void Clear () {
count = 0;
setSize(capacity);
version++;
}
public virtual object Clone () {
@@ -326,12 +364,36 @@ namespace System.Collections {
return new ArrayListEnumerator(0, this.Count, dataArray);
}
private void ValidateRange(int index, int count) {
if (index < 0) {
throw new ArgumentOutOfRangeException("index", index, "Must be equal to or greater than zero");
}
if (count < 0) {
throw new ArgumentOutOfRangeException("count", count, "Must be equal to or greater than zero");
}
if (index > this.count - 1) {
throw new ArgumentException();
}
if (index + count > this.count - 1) {
throw new ArgumentException();
}
}
public virtual IEnumerator GetEnumerator (int index, int count) {
ValidateRange(index, count);
return new ArrayListEnumerator(index, count, dataArray);
}
public virtual ArrayList GetRange (int index, int count) {
return null;
ValidateRange(index, count);
ArrayList retVal = new ArrayList(count);
for (int i = index; i < count + index; i++) {
retVal.Add(this[i]);
}
retVal.version = this.version;
retVal.source = this;
return retVal;
}
public virtual int IndexOf (object value) {
@@ -373,23 +435,30 @@ namespace System.Collections {
shiftElements (index, 1);
dataArray[index] = value;
count++;
version++;
}
[MonoTODO]
public virtual void InsertRange (int index, ICollection c) {
version++;
}
public virtual int LastIndexOf (object value) {
return LastIndexOf (value, 0, count);
return LastIndexOf (value, count - 1, count);
}
public virtual int LastIndexOf (object value, int startIndex) {
return LastIndexOf (value, startIndex, count - startIndex);
if (startIndex < 0 || startIndex > count - 1) {
throw new ArgumentOutOfRangeException("startIndex", startIndex, "");
}
return LastIndexOf (value, startIndex, startIndex + 1);
}
public virtual int LastIndexOf (object value, int StartIndex,
int count)
{
for (int i = count - 1; i >= 0; i--) {
int EndIndex = StartIndex - count + 1;
for (int i = StartIndex; i >= EndIndex; i--) {
if (Object.Equals (dataArray[i], value)) {
return i;
}
@@ -433,6 +502,7 @@ namespace System.Collections {
shiftElements (index, - count);
this.count -= count;
version++;
}
public virtual void Reverse () {
@@ -451,8 +521,10 @@ namespace System.Collections {
}
Array.Reverse (dataArray, index, count);
version++;
}
[MonoTODO]
public virtual void SetRange (int index, ICollection c) {
}
@@ -476,6 +548,7 @@ namespace System.Collections {
}
Array.Sort (dataArray, index, count, comparer);
version++;
}
public virtual object[] ToArray() {
@@ -493,6 +566,7 @@ namespace System.Collections {
[MonoTODO]
public virtual void TrimToSize () {
// FIXME: implement this
version++;
}
}
}
@@ -1,3 +1,7 @@
2002-02-20 Nick Drochak <[email protected]>
* ArrayList.cs: Add MonoTODO's where necessary. Fix bugs discovered
by Bucky's tests. Implement a couple of things that were left undone.
Mon Feb 11 19:49:25 CET 2002 Paolo Molaro <[email protected]>
@@ -1,3 +1,8 @@
2002-02-12 Duncan Mak <[email protected]>
* CultureInfo.cs: Added the Calendar property to make the TimeZone
class build. It's marked as MonoTODO.
2002-02-12 Nick Drochak <[email protected]>
* UnicodeCategory.cs: Fix typo.
@@ -10,7 +10,7 @@ using System.Threading;
namespace System.Globalization
{
public class CultureInfo
public class CultureInfo : IFormatProvider
{
static CultureInfo invariant_culture_info;
bool is_read_only;
@@ -735,6 +735,12 @@ namespace System.Globalization
}
}
[MonoTODO]
public virtual Calendar Calendar
{
get { return null; }
}
internal static bool IsIDNeutralCulture (int lcid) {
return (lcid & 0xff00) == 0;
}
@@ -800,6 +806,21 @@ namespace System.Globalization
}
}
//
// IFormatProvider implementation
//
public virtual object GetFormat( Type formatType )
{
object format = null;
if ( formatType == typeof(NumberFormatInfo) )
format = NumberFormat;
else if ( formatType == typeof(DateTimeFormatInfo) )
format = DateTimeFormat;
return format;
}
//
// Constructors
//
@@ -81,21 +81,19 @@ namespace System.Globalization
_MonthNames = INVARIANT_MONTH_NAMES;
}
// LAMESPEC: this is not in ECMA specs
public static DateTimeFormatInfo GetInstance(IFormatProvider provider)
{
if (provider != null)
{
if (provider is DateTimeFormatInfo) return (DateTimeFormatInfo) provider;
if (provider is CultureInfo) return ((CultureInfo) provider).DateTimeFormat;
return null;
}
else
{
return CurrentInfo;
}
}
// LAMESPEC: this is not in ECMA specs
public static DateTimeFormatInfo GetInstance(IFormatProvider provider)
{
if (provider != null) {
DateTimeFormatInfo dtfi;
dtfi = (DateTimeFormatInfo)provider.GetFormat(typeof(DateTimeFormatInfo));
if (dtfi != null)
return dtfi;
}
return CurrentInfo;
}
public bool IsReadOnly {
get {
return readOnly;
@@ -636,22 +636,7 @@ namespace System.Globalization {
public object GetFormat (Type formatType)
{
// LAMESPEC: ECMA says we implement IFormatProvider, but doesn't define this
//
// From the .NET Framework SDK
//
// Parameters: formatType The Type of the formatting service required.
//
// Return Value: The current instance of the NumberFormatInfo class, if formatType
// is the same as the type of the current instance; otherwise, a null reference
//
// Remarks: This method is invoked by the Format(String, IFormatProvider) method
// supported by the base data types when this instance is passed as the
// IFormatProvider parameter. It implements IFormatProvider.GetFormat.
if (formatType.Equals(this)) // LAMESPEC: Should this be IsInstanceOfType?
return this;
else return null;
return (formatType == GetType()) ? this : null;
}
public object Clone ()
@@ -669,12 +654,16 @@ namespace System.Globalization {
return copy;
}
public static NumberFormatInfo GetInstance(IFormatProvider formatProvider)
public static NumberFormatInfo GetInstance(IFormatProvider provider)
{
if (formatProvider == null) return NumberFormatInfo.CurrentInfo;
NumberFormatInfo retval = (NumberFormatInfo)formatProvider.GetFormat(Type.GetType("System.Globalization.NumberFormatInfo"));
if (retval == null) return NumberFormatInfo.CurrentInfo;
return retval;
if (provider != null) {
NumberFormatInfo nfi;
nfi = (NumberFormatInfo)provider.GetFormat(typeof(NumberFormatInfo));
if (nfi != null)
return nfi;
}
return CurrentInfo;
}
}
}
@@ -1,3 +1,9 @@
2002-02-19 Duncan Mak <[email protected]>
* IsolatedStorageFileStream.cs: Added MonoTODO here. This class
is completely stubbed out (over the summer) and didn't get
properly MonoTODO'd.
2002-02-08 Duncan Mak <[email protected]>
* IsolatedStorage.cs: Looked at MemberInfo.cs, another fellow
@@ -8,6 +8,7 @@ using System.IO;
namespace System.IO.IsolatedStorage
{
[MonoTODO]
public class IsolatedStorageFileStream : FileStream
{
public IsolatedStorageFileStream (string name, FileMode mode)
+4
View File
@@ -1,3 +1,7 @@
2002-02-12 Nick Drochak <[email protected]>
* PathTooLongException.cs: put it in the correct namespace
* EndOfStreamException.cs: put it in the correct namespace
Thu Jan 31 17:32:32 CET 2002 Paolo Molaro <[email protected]>
@@ -56,7 +56,7 @@ namespace System.IO
[MonoTODO]
public static void ModeAccess(FileMode mode, FileAccess access, string path, bool exists)
{
return;
#if false
// TODO: this logic isn't entirely complete and accurate, yet
if((mode & (FileMode.CreateNew | FileMode.Create)) != 0)
{
@@ -81,6 +81,7 @@ namespace System.IO
{
throw new FileNotFoundException();
}
#endif
}
}
} // namespace System.IO.Private
@@ -1,5 +1,5 @@
//
// System.EndOfStreamException.cs
// System.IO.EndOfStreamException.cs
//
// Author:
// Duncan Mak ([email protected])
@@ -11,7 +11,7 @@ using System;
using System.Globalization;
using System.Runtime.Serialization;
namespace System
namespace System.IO
{
[Serializable]
public class EndOfStreamException : SystemException
+1 -1
View File
@@ -176,7 +176,7 @@ namespace System.IO
path.StartsWith (new string (AltDirectorySeparatorChar, 1)))
return path;
return _os.GetCurrentDirectory () + new string (DirectorySeparatorChar, 1) + path;
return Directory.GetCurrentDirectory () + new string (DirectorySeparatorChar, 1) + path;
}
public static string GetPathRoot (string path)
@@ -1,5 +1,5 @@
//
// System.PathTooLongException.cs
// System.IO.PathTooLongException.cs
//
// Author:
// Duncan Mak ([email protected])
@@ -11,7 +11,7 @@ using System;
using System.Globalization;
using System.Runtime.Serialization;
namespace System
namespace System.IO
{
[Serializable]
public class PathTooLongException : SystemException
@@ -23,6 +23,7 @@ namespace System.Reflection.Emit {
private MethodInfo entry_point;
private ModuleBuilder[] modules;
private string name;
private CustomAttributeBuilder[] cattrs;
private int[] table_indexes;
internal AssemblyBuilder (AssemblyName n, AssemblyBuilderAccess access) {
@@ -182,7 +183,7 @@ namespace System.Reflection.Emit {
public void Save (string assemblyFileName)
{
byte[] buf = new byte[8192];
byte[] buf = new byte [65536];
FileStream file;
int count;
@@ -208,5 +209,20 @@ namespace System.Reflection.Emit {
entry_point = entryMethod;
}
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
}
}
@@ -1,4 +1,30 @@
Wed Feb 20 22:30:49 CET 2002 Paolo Molaro <[email protected]>
* AssemblyBuilder.cs: upped compiled assembly size limit.
Implemented SetCustomAttribute () methods.
* CustomAttributeBuilder.cs: implemented the needed constructor
stuff.
* Cosntructorbuilder.cs, EnumBuilder.cs, FieldBuilder.cs,
MethodBuilder.cs, ModuleBuilder.cs, ParameterBuilder.cs,
PropertyBuilder.cs, TypeBuilder.cs: Implemented SetCustomAttribute () methods.
Wed Feb 20 14:54:01 CET 2002 Paolo Molaro <[email protected]>
* AssemblyBuilder.cs: add SetCustomAttribute () to keep the compiler
going.
Fri Feb 15 18:15:04 CET 2002 Paolo Molaro <[email protected]>
* ILGenerator.cs: finally block support and fixes.
Thu Feb 14 18:55:52 CET 2002 Paolo Molaro <[email protected]>
* FieldBuilder.cs: Add SetRVAData().
* ILGenerator.cs: speed up code array growth.
* TypeBuilder.cs: fix IsValueTypeImpl(). Add class_size member.
Implement DefineInitializedData().
Tue Jan 22 23:01:11 CET 2002 Paolo Molaro <[email protected]>
* EnumBuilder.cs, TypeBuilder.cs: updates for changes in Type.cs.
@@ -24,6 +24,7 @@ namespace System.Reflection.Emit {
private CallingConventions call_conv;
private TypeBuilder type;
private ParameterBuilder[] pinfo;
private CustomAttributeBuilder[] cattrs;
internal ConstructorBuilder (TypeBuilder tb, MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes) {
attrs = attributes;
@@ -102,8 +103,18 @@ namespace System.Reflection.Emit {
}
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
public void SetImplementationFlags( MethodImplAttributes attributes) {
iattrs = attributes;
@@ -11,9 +11,22 @@
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
namespace System.Reflection.Emit {
public class CustomAttributeBuilder {
ConstructorInfo ctor;
byte[] data;
[MethodImplAttribute(MethodImplOptions.InternalCall)]
static extern byte[] GetBlob(ConstructorInfo con, object[] constructorArgs, PropertyInfo[] namedProperties, object[] propertyValues, FieldInfo[] namedFields, object[] fieldValues);
internal CustomAttributeBuilder( ConstructorInfo con, byte[] cdata) {
ctor = con;
data = (byte[])cdata.Clone ();
/* should we check that the user supplied data is correct? */
}
public CustomAttributeBuilder( ConstructorInfo con, object[] constructorArgs)
: this (con, constructorArgs, null, null, null, null) {
}
@@ -24,6 +37,8 @@ namespace System.Reflection.Emit {
: this (con, constructorArgs, namedProperties, propertyValues, null, null) {
}
public CustomAttributeBuilder( ConstructorInfo con, object[] constructorArgs, PropertyInfo[] namedProperties, object[] propertyValues, FieldInfo[] namedFields, object[] fieldValues) {
ctor = con;
data = GetBlob (con, constructorArgs, namedProperties, propertyValues, namedFields, fieldValues);
}
}
@@ -16,6 +16,8 @@ using System.Runtime.CompilerServices;
namespace System.Reflection.Emit {
public sealed class EnumBuilder : Type {
CustomAttributeBuilder[] cattrs;
public override Assembly Assembly {
get {return null;}
}
@@ -176,8 +178,18 @@ namespace System.Reflection.Emit {
}*/
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
}
}
@@ -24,6 +24,8 @@ namespace System.Reflection.Emit {
private int offset;
private int table_idx;
internal TypeBuilder typeb;
private byte[] rva_data;
private CustomAttributeBuilder[] cattrs;
internal FieldBuilder (TypeBuilder tb, string fieldName, Type type, FieldAttributes attributes) {
attrs = attributes;
@@ -68,14 +70,27 @@ namespace System.Reflection.Emit {
public override bool IsDefined( Type attributeType, bool inherit) {
return false;
}
internal void SetRVAData (byte[] data) {
rva_data = (byte[])data.Clone ();
}
public void SetConstant( object defaultValue) {
/*if (defaultValue.GetType() != type)
throw new ArgumentException ("Constant doesn't match field type");*/
def_value = defaultValue;
}
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
public void SetMarshal( UnmanagedMarshal unmanagedMarshal) {
}
@@ -26,8 +26,11 @@ namespace System.Reflection.Emit {
internal int filter_offset;
internal void Debug () {
System.Console.Write ("\ttype="+type.ToString()+" start="+start.ToString());
System.Console.WriteLine (" len="+len.ToString()+" extype="+extype.ToString());
System.Console.Write ("\ttype="+type.ToString()+" start="+start.ToString()+" len="+len.ToString());
if (extype != null)
System.Console.WriteLine (" extype="+extype.ToString());
else
System.Console.WriteLine ("");
}
}
internal struct ILExceptionInfo {
@@ -38,6 +41,7 @@ namespace System.Reflection.Emit {
internal void AddCatch (Type extype, int offset) {
int i;
End (offset);
add_block (offset);
i = handlers.Length - 1;
handlers [i].type = ILExceptionBlock.CATCH;
@@ -45,15 +49,37 @@ namespace System.Reflection.Emit {
handlers [i].extype = extype;
}
internal void AddFinally (int offset) {
int i;
End (offset);
add_block (offset);
i = handlers.Length - 1;
handlers [i].type = ILExceptionBlock.FINALLY;
handlers [i].start = offset;
handlers [i].extype = null;
}
internal void End (int offset) {
if (handlers == null)
return;
int i = handlers.Length - 1;
handlers [i].len = offset - handlers [i].start;
if (i >= 0)
handlers [i].len = offset - handlers [i].start;
}
internal int LastClauseType () {
if (handlers != null)
return handlers [handlers.Length-1].type;
else
return ILExceptionBlock.CATCH;
}
internal void Debug () {
if (false) {
System.Console.WriteLine ("Handler at "+start.ToString()+ " len: "+len.ToString());
for (int i = 0; i < handlers.Length; ++i)
handlers [i].Debug ();
}
}
void add_block (int offset) {
@@ -111,8 +137,8 @@ namespace System.Reflection.Emit {
private void make_room (int nbytes) {
if (code_len + nbytes < code.Length)
return;
byte[] new_code = new byte [code.Length + 128];
System.Array.Copy (code, new_code, code.Length);
byte[] new_code = new byte [code.Length * 2 + 128];
System.Array.Copy (code, 0, new_code, 0, code.Length);
code = new_code;
}
private void emit_int (int val) {
@@ -189,20 +215,35 @@ namespace System.Reflection.Emit {
return 1;
}
private void InternalEndClause () {
switch (ex_handlers [cur_block].LastClauseType ()) {
case ILExceptionBlock.CATCH:
// how could we optimize code size here?
Emit (OpCodes.Leave, ex_handlers [cur_block].end);
break;
case ILExceptionBlock.FAULT:
case ILExceptionBlock.FINALLY:
Emit (OpCodes.Endfinally);
break;
case ILExceptionBlock.FILTER:
Emit (OpCodes.Endfilter);
break;
}
}
public virtual void BeginCatchBlock (Type exceptionType) {
if (cur_block < 0)
throw new NotSupportedException ("Not in an exception block");
// how could we optimize code size here?
Emit (OpCodes.Leave, ex_handlers [cur_block].end);
InternalEndClause ();
ex_handlers [cur_block].AddCatch (exceptionType, code_len);
System.Console.WriteLine ("Begin catch Block: "+exceptionType.ToString());
//System.Console.WriteLine ("Begin catch Block: "+exceptionType.ToString());
//throw new NotImplementedException ();
}
public virtual void BeginExceptFilterBlock () {
throw new NotImplementedException ();
}
public virtual Label BeginExceptionBlock () {
System.Console.WriteLine ("Begin Block");
//System.Console.WriteLine ("Begin Block");
++ cur_block;
if (ex_handlers != null) {
@@ -218,13 +259,15 @@ namespace System.Reflection.Emit {
public virtual void BeginFaultBlock() {
if (cur_block < 0)
throw new NotSupportedException ("Not in an exception block");
System.Console.WriteLine ("Begin fault Block");
//System.Console.WriteLine ("Begin fault Block");
//throw new NotImplementedException ();
}
public virtual void BeginFinallyBlock() {
if (cur_block < 0)
throw new NotSupportedException ("Not in an exception block");
System.Console.WriteLine ("Begin finally Block");
//System.Console.WriteLine ("Begin finally Block");
InternalEndClause ();
ex_handlers [cur_block].AddFinally (code_len);
//throw new NotImplementedException ();
}
public virtual void BeginScope () {
@@ -406,12 +449,11 @@ namespace System.Reflection.Emit {
public virtual void EndExceptionBlock () {
if (cur_block < 0)
throw new NotSupportedException ("Not in an exception block");
// how could we optimize code size here?
Emit (OpCodes.Leave, ex_handlers [cur_block].end);
InternalEndClause ();
MarkLabel (ex_handlers [cur_block].end);
ex_handlers [cur_block].End (code_len);
ex_handlers [cur_block].Debug ();
System.Console.WriteLine ("End Block");
//System.Console.WriteLine ("End Block");
//throw new NotImplementedException ();
}
public virtual void EndScope () {
@@ -28,6 +28,7 @@ namespace System.Reflection.Emit {
private ILGenerator ilgen;
private TypeBuilder type;
private ParameterBuilder[] pinfo;
private CustomAttributeBuilder[] cattrs;
private MethodInfo override_method;
private string pi_dll;
private string pi_entry;
@@ -127,8 +128,18 @@ namespace System.Reflection.Emit {
}
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
public void SetImplementationFlags( MethodImplAttributes attributes) {
iattrs = attributes;
@@ -15,6 +15,7 @@ using System.Runtime.CompilerServices;
namespace System.Reflection.Emit {
public class ModuleBuilder : Module {
private TypeBuilder[] types;
private CustomAttributeBuilder[] cattrs;
private int table_idx;
private AssemblyBuilder assemblyb;
@@ -122,5 +123,19 @@ namespace System.Reflection.Emit {
return assemblyb.get_next_table_index (table, inc);
}
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
}
}
@@ -19,6 +19,7 @@ namespace System.Reflection.Emit {
public class ParameterBuilder {
private MethodBase methodb; /* MethodBuilder or ConstructorBuilder */
private string name;
private CustomAttributeBuilder[] cattrs;
private ParameterAttributes attrs;
private int position;
private int table_idx;
@@ -60,8 +61,18 @@ namespace System.Reflection.Emit {
}
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
public virtual void SetMarshal( UnmanagedMarshal unmanagedMarshal) {
}
@@ -20,6 +20,7 @@ namespace System.Reflection.Emit {
private string name;
private Type type;
private Type[] parameters;
private CustomAttributeBuilder[] cattrs;
private object def_value;
private MethodBuilder set_method;
private MethodBuilder get_method;
@@ -95,8 +96,18 @@ namespace System.Reflection.Emit {
def_value = defaultValue;
}
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
public void SetGetMethod( MethodBuilder mdBuilder) {
get_method = mdBuilder;
@@ -24,10 +24,12 @@ namespace System.Reflection.Emit {
private ConstructorBuilder[] ctors;
private PropertyBuilder[] properties;
private FieldBuilder[] fields;
private CustomAttributeBuilder[] cattrs;
internal TypeBuilder[] subtypes;
private TypeAttributes attrs;
private int table_idx;
private ModuleBuilder pmodule;
private int class_size;
private PackingSize packing_size;
public const int UnspecifiedTypeSize = -1;
@@ -359,22 +361,43 @@ namespace System.Reflection.Emit {
}
protected override bool IsValueTypeImpl () {
// test this one
return (Attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.ValueType;
return type_is_subtype_of (this, typeof (System.ValueType), false);
}
public override RuntimeTypeHandle TypeHandle { get { return _impl; } }
public void SetCustomAttribute( CustomAttributeBuilder customBuilder) {
if (cattrs != null) {
CustomAttributeBuilder[] new_array = new CustomAttributeBuilder [cattrs.Length + 1];
cattrs.CopyTo (new_array, 0);
new_array [cattrs.Length] = customBuilder;
cattrs = new_array;
} else {
cattrs = new CustomAttributeBuilder [1];
cattrs [0] = customBuilder;
}
}
public void SetCustomAttribute( ConstructorInfo con, byte[] binaryAttribute) {
SetCustomAttribute (new CustomAttributeBuilder (con, binaryAttribute));
}
public EventBuilder DefineEvent( string name, EventAttributes attributes, Type eventtype) {
return null;
}
static int InitializedDataCount = 0;
public FieldBuilder DefineInitializedData( string name, byte[] data, FieldAttributes attributes) {
return null;
TypeBuilder datablobtype = pmodule.DefineType ("$ArrayType$"+InitializedDataCount.ToString(),
TypeAttributes.Public|TypeAttributes.ExplicitLayout|TypeAttributes.Sealed,
typeof (System.ValueType), PackingSize.Size1, data.Length);
datablobtype.packing_size = PackingSize.Size1;
datablobtype.class_size = data.Length;
datablobtype.CreateType ();
FieldBuilder res = DefineField (name, datablobtype, attributes|FieldAttributes.Assembly|FieldAttributes.Static|FieldAttributes.HasFieldRVA);
res.SetRVAData (data);
InitializedDataCount++;
return res;
}
public FieldBuilder DefineUninitializedData( string name, int size, FieldAttributes attributes) {
+5 -20
View File
@@ -68,34 +68,19 @@ namespace System.Reflection {
{
}
public virtual Boolean IsDefined (Type attributeType)
public virtual bool IsDefined (Type attributeType, bool inherit)
{
return false;
return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
}
public virtual bool IsDefined (Type attribute_type, bool inherit)
{
return false;
}
public virtual Object[] GetCustomAttributes ()
{
return null;
}
public virtual Object[] GetCustomAttributes (Type attributeType)
{
return null;
}
public virtual object [] GetCustomAttributes (bool inherit)
{
return null;
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
}
public virtual object [] GetCustomAttributes (Type attribute_type, bool inherit)
public virtual object [] GetCustomAttributes (Type attributeType, bool inherit)
{
return null;
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
}
public virtual void RemoveOnTypeResolve (ResolveEventHandler handler)
@@ -1,4 +1,19 @@
Fri Feb 22 18:54:13 CET 2002 Paolo Molaro <[email protected]>
* MonoField.cs: implement GetValue as an internalcall.
Implemented ToString().
Tue Feb 19 20:36:04 CET 2002 Paolo Molaro <[email protected]>
* Assembly.cs, Module.cs, MonoField.cs, MonoMethod.cs,
MonoProperty.cs, ParameterInfo.cs: Implemented custom attributes
related methods.
Thu Feb 14 18:55:23 CET 2002 Paolo Molaro <[email protected]>
* TypeAttributes.cs: update to latest spec.
Mon Feb 11 19:50:27 CET 2002 Paolo Molaro <[email protected]>
* Assembly.cs: handle throwOnError in GetType() call.
+3 -3
View File
@@ -34,10 +34,10 @@ namespace System.Reflection {
return null;
}
public virtual object[] GetCustomAttributes(bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
}
public virtual object[] GetCustomAttributes(Type attributeType, bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
}
public FieldInfo GetField(string name) {
return null;
@@ -81,7 +81,7 @@ namespace System.Reflection {
return null;
}
public virtual bool IsDefined( Type attributeType, bool inherit) {
return false;
return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
}
public bool IsResource() {
return false;
@@ -71,20 +71,24 @@ namespace System.Reflection {
}
}
public override bool IsDefined (Type attribute_type, bool inherit) {
return false;
public override bool IsDefined (Type attributeType, bool inherit) {
return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
}
public override object[] GetCustomAttributes( bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
}
public override object[] GetCustomAttributes( Type attributeType, bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
}
public override object GetValue(object obj) {
throw new NotImplementedException ("Field::GetValue");
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern override object GetValue(object obj);
public override string ToString () {
MonoFieldInfo info;
MonoFieldInfo.get_field_info (this, out info);
return String.Format ("{0} {1}", info.type, info.name);
}
}
}
@@ -60,6 +60,13 @@ namespace System.Reflection {
return MonoMethodInfo.get_parameter_info (mhandle);
}
/*
* InternalInvoke() receives the parameters corretcly converted by the binder
* to match the types of the method signature.
*/
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern Object InternalInvoke (Object obj, Object[] parameters);
[MonoTODO]
public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) {
throw new NotImplementedException ();
@@ -98,15 +105,15 @@ namespace System.Reflection {
}
}
public override bool IsDefined (Type attribute_type, bool inherit) {
return false;
public override bool IsDefined (Type attributeType, bool inherit) {
return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
}
public override object[] GetCustomAttributes( bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
}
public override object[] GetCustomAttributes( Type attributeType, bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
}
public override string ToString () {
@@ -129,15 +129,15 @@ namespace System.Reflection {
MonoPropertyInfo.get_property_info (this, out info);
return info.set_method;
}
public override bool IsDefined (Type attribute_type, bool inherit) {
return false;
public override bool IsDefined (Type attributeType, bool inherit) {
return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
}
public override object[] GetCustomAttributes( bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
}
public override object[] GetCustomAttributes( Type attributeType, bool inherit) {
return null;
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
}
public override object GetValue( object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) {
return null;
@@ -60,24 +60,18 @@ namespace System.Reflection
get {return PositionImpl;}
}
[MonoTODO]
public virtual object[] GetCustomAttributes (bool inherit)
{
// FIXME
return null;
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
}
[MonoTODO]
public virtual object[] GetCustomAttributes (Type attributeType, bool inherit)
{
// FIXME
return null;
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
}
[MonoTODO]
public virtual bool IsDefined( Type attributeType, bool inherit) {
// FIXME
return false;
return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
}
}
}
@@ -72,7 +72,7 @@ namespace System.Reflection {
/// <summary>
/// </summary>
ClassSemanticsMask = 96,
ClassSemanticsMask = 32,
/// <summary>
/// </summary>
@@ -82,14 +82,6 @@ namespace System.Reflection {
/// </summary>
Interface = 32,
/// <summary>
/// </summary>
ValueType = 64,
/// <summary>
/// </summary>
UnmanagedValueType = 96,
/// <summary>
/// </summary>
Abstract = 128,
@@ -98,10 +90,6 @@ namespace System.Reflection {
/// </summary>
Sealed = 256,
/// <summary>
/// </summary>
Enum = 512,
/// <summary>
/// </summary>
SpecialName = 1024,
@@ -132,7 +120,7 @@ namespace System.Reflection {
/// <summary>
/// </summary>
LateInit = 524288,
BeforeFieldInit = 1048576,
/// <summary>
/// </summary>
@@ -1,4 +1,8 @@
Fri Feb 22 15:36:19 CET 2002 Paolo Molaro <[email protected]>
* RuntimeHelpers.cs: added OffsetToStringData() property.
Mon Nov 5 19:50:11 CET 2001 Paolo Molaro <[email protected]>
* RuntimeHelpers.cs: make InitializeArray an internalcall.
@@ -1,6 +1,7 @@
// System.Runtime.CompilerServices.RuntimeHelpers
//
// Sean MacIsaac ([email protected])
// Paolo Molaro ([email protected])
//
// (C) Ximian, Inc. 2001
@@ -11,5 +12,12 @@ namespace System.Runtime.CompilerServices
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public static extern void InitializeArray (Array array, RuntimeFieldHandle fldHandle);
public static int OffsetToStringData {
get {
// FIXME: this requires the reimplementation of String
// as of my mail a few months ago, dum de dum
throw new NotImplementedException ();
}
}
}
}
@@ -0,0 +1,57 @@
//
// System.Runtime.Remoting.Messaging.Header.cs
//
// Author:
// Dan Lewis ([email protected])
//
// (C) 2002
//
using System.Collections;
namespace System.Runtime.Remoting.Messaging {
public class Header {
public Header (string name, object value) :
this (name, value, true)
{
}
public Header (string name, object value, bool must_understand) :
this (name, value, must_understand, null)
{
}
public Header (string name, object value, bool must_understand, string header_namespace) {
this.name = name;
this.value = value;
this.must_understand = must_understand;
this.header_namespace = header_namespace;
}
// properties
public string HeaderNamespace {
get { return header_namespace; }
}
public bool MustUnderstand {
get { return must_understand; }
}
public string Name {
get { return name; }
}
public object Value {
get { return value; }
}
// private
private string name;
private object value;
private bool must_understand;
private string header_namespace;
}
}
@@ -0,0 +1,39 @@
//
// System.Runtime.Remoting.Messaging.LogicalCallContext.cs
//
// Author:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System.Runtime.Serialization;
namespace System.Runtime.Remoting.Messaging {
[MonoTODO]
public class LogicalCallContext : ISerializable, ICloneable {
public bool HasInfo {
get { return false; }
}
public void FreeNamedDataSlot (string name) {
}
public object GetData (string name) {
return null;
}
public void GetObjectData (SerializationInfo info, StreamingContext context) {
}
public void SetData (string name, object data) {
}
public object Clone () {
return null;
}
}
}
@@ -1,3 +1,41 @@
2002-02-19 Duncan Mak <[email protected]>
* SurrogateSelector.cs: Implemented.
* SerializationInfoEnumerator.cs: oh, and simplified the Current
property too.
* SerializationInfo.cs: Forgot to finish up GetEnumerator ().
2002-02-18 Duncan Mak <[email protected]>
* SerializationInfo.cs: Converted Type.GetType calls to the faster
typeof operator.
2002-02-16 Duncan Mak <[email protected]>
* SurrogateSelector.cs: Stubbed out. Gonna be working on this
tomorrow.
2002-02-15 Duncan Mak <[email protected]>
* SerializationEntry.cs: Added internal constructor for writing
bits in SerializationInfoEnumerator.
* SerializationInfo.cs: Completed.
* SerializationInfoEnumerator.cs: Implemented. Piggybacking on
Hashtable's GetEnumerator method.
2002-02-13 Dan Lewis <[email protected]>
* SerializationInfoEnumerator.cs: New file (stub)
2002-02-12 Duncan Mak <[email protected]>
* SerializationBinder.cs: Implemented.
* SerializationEntry.cs: Implemented.
* SerializationInfo.cs: Fixed the get portion of the AssemblyName
property. Implemented the FullTypename property.
2002-01-06 David Dawkins <[email protected]>
* IFormatter.cs : New file
@@ -0,0 +1,22 @@
//
// System.Runtime.Serialization.SerializationBinder.cs
//
// Author: Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
namespace System.Runtime.Serialization
{
[Serializable]
public abstract class SerializationBinder
{
// Constructor
protected SerializationBinder ()
: base ()
{
}
public abstract Type BindToType (string assemblyName, string typeName);
}
}
@@ -0,0 +1,40 @@
//
// System.Runtime.Serialization.SerializationEntry.cs
//
// Author: Duncan Mak ([email protected])
//
// (C) Ximian, Inc. http://www.ximian.com
//
namespace System.Runtime.Serialization
{
public struct SerializationEntry
{
string name;
Type objectType;
object value;
// Properties
public string Name
{
get { return name; }
}
public Type ObjectType
{
get { return objectType; }
}
public object Value
{
get { return value; }
}
internal SerializationEntry (string name, Type type, object value)
{
this.name = name;
this.objectType = type;
this.value = value;
}
}
}
@@ -3,123 +3,260 @@
//
// Author:
// Miguel de Icaza ([email protected])
// Duncan Mak ([email protected])
//
// (C) Ximian, Inc. http://www.ximian.com
//
// TODO: This is just a skeleton to get corlib to compile.
//
namespace System.Runtime.Serialization {
using System;
using System.Collections;
[MonoTODO]
public sealed class SerializationInfo {
Type type;
[CLSCompliant(false)] IFormatterConverter converter;
[CLSCompliant(false)]
namespace System.Runtime.Serialization
{
public sealed class SerializationInfo
{
Hashtable serialized = new Hashtable ();
string assemblyName; // the assembly being serialized
string fullTypeName; // the type being serialized.
[CLSCompliant (false)] IFormatterConverter converter;
// Constructor
[CLSCompliant (false)]
public SerializationInfo (Type type, IFormatterConverter converter)
{
this.type = type;
if (type == null && converter == null)
throw new ArgumentNullException ("Null arguments.");
this.converter = converter;
assemblyName = type.Assembly.FullName;
fullTypeName = type.FullName;
}
[MonoTODO]
public string AssemblyName {
get {
return "TODO: IMPLEMENT ME";
}
set {
}
}
[MonoTODO]
public string FullTypeName {
get {
return "TODO: IMLEMENT ME";
}
// Properties
public string AssemblyName
{
get { return assemblyName; }
set {
if (value == null)
throw new ArgumentNullException ("Argument is null.");
assemblyName = value;
}
}
public int MemberCount {
get {
return 0;
public string FullTypeName
{
get { return fullTypeName; }
set {
if ( value == null)
throw new ArgumentNullException ("Argument is null.");
fullTypeName = value;
}
}
public int MemberCount
{
get { return serialized.Count; }
}
//Public Instance Methods
#region TODO: Implement these
[CLSCompliant(false)][MonoTODO]
public void AddValue(string name, short value){}
[CLSCompliant(false)][MonoTODO]
public void AddValue(string name, UInt16 value){}
[MonoTODO]
public void AddValue(string name, int value){}
[MonoTODO]
public void AddValue(string name, byte value){}
[MonoTODO]
public void AddValue(string name, bool value){}
[MonoTODO]
public void AddValue(string name, char value){}
[CLSCompliant(false)][MonoTODO]
public void AddValue(string name, SByte value){}
[MonoTODO]
public void AddValue(string name, double value){}
[MonoTODO]
public void AddValue(string name, Decimal value){}
[MonoTODO]
public void AddValue(string name, DateTime value){}
[MonoTODO]
public void AddValue(string name, float value){}
[CLSCompliant(false)][MonoTODO]
public void AddValue(string name, UInt32 value){}
[MonoTODO]
public void AddValue(string name, long value){}
[CLSCompliant(false)][MonoTODO]
public void AddValue(string name, UInt64 value){}
[MonoTODO]
public void AddValue(string name, object value){}
[MonoTODO]
public void AddValue(string name, object value, Type type){}
[MonoTODO]
public bool GetBoolean(string name){return false;}
[MonoTODO]
public byte GetByte(string name){return 0;}
[MonoTODO]
public char GetChar(string name){return 'x';}
[MonoTODO]
public DateTime GetDateTime(string name){return new DateTime();}
[MonoTODO]
public Decimal GetDecimal(string name){return new Decimal();}
[MonoTODO]
public double GetDouble(string name){return 0;}
[MonoTODO]
public System.Runtime.Serialization.SerializationInfoEnumerator GetEnumerator(){return null;}
[MonoTODO]
public short GetInt16(string name){return 0;}
[MonoTODO]
public int GetInt32(string name){return 0;}
[MonoTODO]
public long GetInt64(string name){return 0;}
[CLSCompliant(false)][MonoTODO]
public SByte GetSByte(string name){return new SByte();}
[MonoTODO]
public float GetSingle(string name){return 0;}
[MonoTODO]
public string GetString(string name){return "";}
[CLSCompliant(false)][MonoTODO]
public UInt16 GetUInt16(string name){return 0;}
[CLSCompliant(false)][MonoTODO]
public UInt32 GetUInt32(string name){return 0;}
[CLSCompliant(false)][MonoTODO]
public UInt64 GetUInt64(string name){return 0;}
[MonoTODO]
public object GetValue(string name, Type type){return null;}
[MonoTODO]
public void SetType(Type type){}
#endregion TODO
// Methods
public void AddValue (string name, object value, Type type)
{
if (serialized.ContainsKey (name))
throw new SerializationException ("Value has been serialized already.");
SerializationEntry values = new SerializationEntry (name, type, value);
serialized.Add (name, values);
}
public object GetValue (string name, Type type)
{
if (name == null)
throw new ArgumentNullException ("name is null.");
if (!serialized.ContainsKey (name))
throw new SerializationException ("No element named " + name + " could be found.");
SerializationEntry values = (SerializationEntry) serialized [name];
if (values.ObjectType != type)
throw new InvalidCastException ("Invalid Type casting.");
return values.Value;
}
public void SetType (Type type)
{
if (type == null)
throw new ArgumentNullException ("type is null.");
fullTypeName = type.FullName;
assemblyName = type.Assembly.FullName;
}
public SerializationInfoEnumerator GetEnumerator ()
{
return new SerializationInfoEnumerator (serialized);
}
[CLSCompliant(false)]
public void AddValue (string name, short value)
{
AddValue (name, value, typeof (System.Int16));
}
[CLSCompliant(false)]
public void AddValue (string name, UInt16 value)
{
AddValue (name, value, typeof (System.UInt16));
}
public void AddValue (string name, int value)
{
AddValue (name, value, typeof (System.Int32));
}
public void AddValue (string name, byte value)
{
AddValue (name, value, typeof (System.Byte));
}
public void AddValue (string name, bool value)
{
AddValue (name, value, typeof (System.Boolean));
}
public void AddValue (string name, char value)
{
AddValue (name, value, typeof (System.Char));
}
[CLSCompliant(false)]
public void AddValue (string name, SByte value)
{
AddValue (name, value, typeof (System.SByte));
}
public void AddValue (string name, double value)
{
AddValue (name, value, typeof (System.Double));
}
public void AddValue (string name, Decimal value)
{
AddValue (name, value, typeof (System.Decimal));
}
public void AddValue (string name, DateTime value)
{
AddValue (name, value, typeof (System.DateTime));
}
public void AddValue (string name, float value)
{
AddValue (name, value, typeof (System.Single));
}
[CLSCompliant(false)]
public void AddValue (string name, UInt32 value)
{
AddValue (name, value, typeof (System.UInt32));
}
public void AddValue (string name, long value)
{
AddValue (name, value, typeof (System.Int64));
}
[CLSCompliant(false)]
public void AddValue (string name, UInt64 value)
{
AddValue (name, value, typeof (System.UInt64));
}
public void AddValue (string name, object value)
{
AddValue (name, value, value.GetType ());
}
public bool GetBoolean (string name)
{
return (bool) GetValue (name, typeof (System.Boolean));
}
public byte GetByte (string name)
{
return (byte) GetValue (name, typeof (System.Byte));
}
public char GetChar (string name)
{
return (char) GetValue (name, typeof (System.Char));
}
public DateTime GetDateTime (string name)
{
return (DateTime) GetValue (name, typeof (System.DateTime));
}
public Decimal GetDecimal (string name)
{
return (Decimal) GetValue (name, typeof (System.Decimal));
}
public double GetDouble (string name)
{
return (double) GetValue (name, typeof (System.Double));
}
public short GetInt16 (string name)
{
return (short) GetValue (name, typeof (System.Int16));
}
public int GetInt32 (string name)
{
return (int) GetValue (name, typeof (System.Int32));
}
public long GetInt64 (string name)
{
return (long) GetValue (name, typeof (System.Int64));
}
[CLSCompliant(false)]
public SByte GetSByte (string name)
{
return (sbyte) GetValue (name, typeof (System.SByte));
}
public float GetSingle (string name)
{
return (float) GetValue (name, typeof (System.Single));
}
public string GetString (string name)
{
return (string) GetValue (name, typeof (System.String));
}
[CLSCompliant(false)]
public UInt16 GetUInt16 (string name)
{
return (UInt16) GetValue (name, typeof (System.UInt16));
}
[CLSCompliant(false)]
public UInt32 GetUInt32 (string name)
{
return (UInt32) GetValue (name, typeof (System.UInt32));
}
[CLSCompliant(false)]
public UInt64 GetUInt64 (string name)
{
return (UInt64) GetValue (name, typeof (System.UInt64));
}
}
}
@@ -0,0 +1,62 @@
//
// System.Runtime.Serialization.SerializationInfoEnumerator.cs
//
// Author: Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
using System.Collections;
using System.Runtime.Serialization;
namespace System.Runtime.Serialization
{
public sealed class SerializationInfoEnumerator : IEnumerator
{
IDictionaryEnumerator ide;
// Constructor
internal SerializationInfoEnumerator (Hashtable collection)
{
ide = collection.GetEnumerator ();
}
// Properties
public SerializationEntry Current
{
get { return (SerializationEntry) ide.Value; }
}
object IEnumerator.Current
{
get { return ide.Value; }
}
public string Name
{
get { return this.Current.Name; }
}
public Type ObjectType
{
get { return this.Current.ObjectType; }
}
public object Value
{
get { return this.Current.Value; }
}
// Methods
public bool MoveNext ()
{
return ide.MoveNext ();
}
public void Reset ()
{
ide.Reset ();
}
}
}
@@ -0,0 +1,92 @@
//
// System.Runtime.Serialization.SurrogateSelector.cs
//
// Author: Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
using System.Collections;
namespace System.Runtime.Serialization
{
public class SurrogateSelector : ISurrogateSelector
{
// Fields
Hashtable Surrogates = new Hashtable ();
string currentKey = null; // current key of Surrogates
internal struct Bundle
{
public ISerializationSurrogate surrogate;
public ArrayList selectors;
public Bundle (ISerializationSurrogate surrogate)
{
this.surrogate = surrogate;
selectors = new ArrayList ();
}
}
// Constructor
public SurrogateSelector()
: base ()
{
}
// Methods
public virtual void AddSurrogate (Type type,
StreamingContext context, ISerializationSurrogate surrogate)
{
if (type == null || surrogate == null)
throw new ArgumentNullException ("Null reference.");
currentKey = type.FullName + "#" + context.ToString ();
if (Surrogates.ContainsKey (currentKey))
throw new ArgumentException ("A surrogate for " + type.FullName + " already exists.");
Bundle values = new Bundle (surrogate);
Surrogates.Add (currentKey, values);
}
public virtual void ChainSelector (ISurrogateSelector selector)
{
if (selector == null)
throw new ArgumentNullException ("Selector is null.");
Bundle current = (Bundle) Surrogates [currentKey];
current.selectors.Add (selector);
}
public virtual ISurrogateSelector GetNextSelector ()
{
Bundle current = (Bundle) Surrogates [currentKey];
return (ISurrogateSelector) current.selectors [current.selectors.Count];
}
public virtual ISerializationSurrogate GetSurrogate (Type type,
StreamingContext context, out ISurrogateSelector selector)
{
if (type == null)
throw new ArgumentNullException ("type is null.");
string key = type.FullName + "#" + context.ToString ();
Bundle current = (Bundle) Surrogates [key];
selector = (ISurrogateSelector) current.selectors [current.selectors.Count - 1];
return (ISerializationSurrogate) current.surrogate;
}
public virtual void RemoveSurrogate (Type type, StreamingContext context)
{
if (type == null)
throw new ArgumentNullException ("type is null.");
string key = type.FullName + "#" + context.ToString ();
Surrogates.Remove (key);
}
}
}
@@ -1,3 +1,12 @@
2002-02-21 Mark Crichton <[email protected]>
* RNGCryptoServiceProvider.cs: New file.
* RandomNumberGenerator.cs: Constructor is now marked public.
2002-02-13 Dan Lewis <[email protected]>
* DSACryptoServiceProvider.cs, SHA384Managed.cs, SHA512Managed.cs,
Rijndael.cs, RSA.cs, RSAParameters.cs : New files (stubs)
Mon Feb 11 13:26:17 CET 2002 Paolo Molaro <[email protected]>
@@ -0,0 +1,87 @@
//
// System.Security.Cryptography.DSACryptoServiceProvider.cs
//
// Authors:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System;
using System.IO;
namespace System.Security.Cryptography {
[MonoTODO]
public class DSACryptoServiceProvider : DSA {
public DSACryptoServiceProvider () { }
public DSACryptoServiceProvider (CspParameters parameters) { }
public DSACryptoServiceProvider (int key_size) { }
public DSACryptoServiceProvider (int key_size, CspParameters parameters) { }
public override string KeyExchangeAlgorithm {
get { return null; }
}
public override int KeySize {
get { return 0; }
}
public override KeySizes[] LegalKeySizes {
get { return null; }
}
public override string SignatureAlgorithm {
get { return null; }
}
public bool PersistKeyInCsp {
get { return false; }
set { }
}
public override byte[] CreateSignature (byte[] rgb) {
return null;
}
public override bool VerifySignature(byte[] hash, byte[] sig) {
return false;
}
public byte[] SignData (byte[] data) {
return SignData (data, 0, data.Length);
}
public byte[] SignData (byte[] data, int offset, int count) {
return null;
}
public byte[] SignData (Stream data) {
return null;
}
public byte[] SignHash (byte[] hash, string str) {
return null;
}
public bool VerifyData (byte[] data, byte[] sig) {
return false;
}
public override DSAParameters ExportParameters (bool include) {
return new DSAParameters ();
}
public override void ImportParameters (DSAParameters parameters) {
}
public override void FromXmlString(string xmlString) {
}
public override string ToXmlString(bool includePrivateParameters) {
return null;
}
}
}
@@ -0,0 +1,52 @@
//
// System.Security.Cryptography.RNGCryptoServiceProvider
//
// Author: Mark Crichton ([email protected])
//
// (C) 2002
//
// "In the beginning there was Chaos,
// and within this Chaos was Power,
// Great Power without form."
// -- The Verrah Rubicon of Verena, Book One
using System;
using System.Runtime.CompilerServices;
namespace System.Security.Cryptography {
public class RNGCryptoServiceProvider : RandomNumberGenerator {
[MonoTODO]
public RNGCryptoServiceProvider () {
// This will get some meaning when I figure out what the other
// three constructors do.
}
[MonoTODO]
public RNGCryptoServiceProvider (byte[] rgb) {
// Ok, not called by app code... someone must call it, though.
}
[MonoTODO]
public RNGCryptoServiceProvider (CspParameters cspParams) {
// Why do I have this feeling this is the MS CryptAPI...
}
[MonoTODO]
public RNGCryptoServiceProvider (string str) {
// More !application code. Interesting...
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern override void GetBytes (byte[] data);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern override void GetNonZeroBytes (byte[] data);
~RNGCryptoServiceProvider () {
// FIN?
}
}
}
@@ -0,0 +1,36 @@
//
// System.Security.Cryptography.RSA.cs
//
// Authors:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System;
namespace System.Security.Cryptography {
[MonoTODO]
public abstract class RSA : AsymmetricAlgorithm {
public static new RSA Create () { return null; }
public static new RSA Create (string alg) { return Create (); }
public RSA () { }
public abstract byte[] EncryptValue (byte[] rgb);
public abstract byte[] DecryptValue (byte[] rgb);
public abstract RSAParameters ExportParameters (bool include);
public abstract void ImportParameters (RSAParameters parameters);
public override void FromXmlString (string xml) {
}
public override string ToXmlString (bool include) {
return null;
}
}
}
@@ -0,0 +1,35 @@
//
// System.Security.Cryptography.RSAParameters.cs
//
// Authors:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System;
namespace System.Security.Cryptography {
[MonoTODO]
public struct RSAParameters {
[NonSerialized]
public byte[] P;
[NonSerialized]
public byte[] Q;
[NonSerialized]
public byte[] D;
[NonSerialized]
public byte[] DP;
[NonSerialized]
public byte[] DQ;
[NonSerialized]
public byte[] InverseQ;
[NonSerialized]
public byte[] Modulus;
public byte[] Exponent;
}
}
@@ -13,7 +13,7 @@ namespace System.Security.Cryptography {
public abstract class RandomNumberGenerator {
RandomNumberGenerator () {
public RandomNumberGenerator () {
}
public static RandomNumberGenerator Create () {
@@ -0,0 +1,23 @@
//
// System.Security.Cryptography.Rijndael.cs
//
// Authors:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System;
namespace System.Security.Cryptography {
[MonoTODO]
public abstract class Rijndael : SymmetricAlgorithm {
public static new Rijndael Create () { return null; }
public static new Rijndael Create (string alg) { return Create (); }
public Rijndael () { }
}
}
@@ -0,0 +1,33 @@
//
// System.Security.Cryptography.SHA384Managed.cs
//
// Authors:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System;
namespace System.Security.Cryptography {
[MonoTODO]
public class SHA384Managed : SHA384 {
public SHA384Managed () {
}
public override void Initialize () {
}
// protected
protected override void HashCore (byte[] rgb, int start, int count) {
}
protected override byte[] HashFinal () {
return null;
}
}
}
@@ -0,0 +1,33 @@
//
// System.Security.Cryptography.SHA512Managed.cs
//
// Authors:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System;
namespace System.Security.Cryptography {
[MonoTODO]
public class SHA512Managed : SHA512 {
public SHA512Managed () {
}
public override void Initialize () {
}
// protected
protected override void HashCore (byte[] rgb, int start, int count) {
}
protected override byte[] HashFinal () {
return null;
}
}
}
@@ -1,3 +1,14 @@
2002-02-17 Duncan Mak <[email protected]>
* FileDialogPermissionAccess.cs: Add in namespace declaration, so
that this one little unique enum wouldn't show up in the System
namespace when we ildasm corlib.dll ;-) Oops, my bad.
2002-02-13 Dan Lewis <[email protected]>
* SecurityPermission.cs,
IsolatedStoragePermissionAttribute.cs: New files
2002-01-23 Duncan Mak <[email protected]>
* FileDialogPermissionAccess.cs: Add to CVS.
@@ -8,12 +8,14 @@
using System;
[Flags]
[Serializable]
public enum FileDialogPermissionAccess {
None = 0,
Open = 1,
Save = 2,
OpenSave = 3,
namespace System.Security.Permissions
{
[Flags] [Serializable]
public enum FileDialogPermissionAccess
{
None = 0,
Open = 1,
Save = 2,
OpenSave = 3,
}
}
@@ -0,0 +1,44 @@
//
// System.Security.Permissions.IsolatedStoragePermissionAttributes.cs
//
// Author:
// Dan Lewis ([email protected])
//
// (C) 2002
//
using System;
using System.Security.Permissions;
namespace System.Security.Permissions {
[AttributeUsage ( AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
AttributeTargets.Method)]
[Serializable]
public class IsolatedStoragePermissionAttribute : CodeAccessSecurityAttribute {
public IsolatedStoragePermissionAttribute (SecurityAction action) : base (action) {
}
public IsolatedStorageContainment UsageAllowed {
get { return usage_allowed; }
set { usage_allowed = value; }
}
public long UserQuota {
get { return user_quota; }
set { user_quota = value; }
}
[MonoTODO]
public override IPermission CreatePermission () {
return null;
}
// private
private IsolatedStorageContainment usage_allowed;
private long user_quota;
}
}
@@ -0,0 +1,65 @@
//
// System.Security.Permissions.SecurityPermission.cs
//
// Author:
// Dan Lewis ([email protected])
//
// (C) 2002
//
// Stubbed.
//
using System;
using System.Security.Permissions;
namespace System.Security.Permissions {
[MonoTODO]
public sealed class SecurityPermission :
CodeAccessPermission, IUnrestrictedPermission
{
public SecurityPermission (PermissionState state) {
this.flags = SecurityPermissionFlag.NoFlags;
}
public SecurityPermission (SecurityPermissionFlag flags) {
this.flags = flags;
}
public SecurityPermissionFlag Flags {
get { return flags; }
set { flags = value; }
}
public bool IsUnrestricted () {
return false;
}
public override IPermission Copy () {
return null;
}
public override IPermission Intersect (IPermission target) {
return null;
}
public override IPermission Union (IPermission target) {
return null;
}
public override bool IsSubsetOf (IPermission target) {
return false;
}
public override void FromXml (SecurityElement e) {
}
public override SecurityElement ToXml () {
return null;
}
// private
private SecurityPermissionFlag flags;
}
}
@@ -15,7 +15,7 @@ using System.Security.Permissions;
namespace System.Security.Permissions {
[System.AttributeUsage(
System.AttributeTargets.Assembly
System.AttributeTargets.Assembly
| System.AttributeTargets.Class
| System.AttributeTargets.Struct
| System.AttributeTargets.Constructor
@@ -1,3 +1,11 @@
2002-02-14 Nick Drochak <[email protected]>
* FileCodeGroup.cs: Finish Equals()
2002-02-13 Dan Lewis <[email protected]>
* PolicyStatement: New file (stub)
2002-02-09 Nick Drochak <[email protected]>
* FileCodeGroup.cs: New file. All done except for GetHashCode and
@@ -106,7 +106,10 @@ namespace System.Security.Policy
public override bool Equals(object o)
{
if (!(o is CodeGroup))
if (!(o is FileCodeGroup))
return false;
if (this.m_access != ((FileCodeGroup)o).m_access)
return false;
return Equals((CodeGroup)o, false);
Loaded 100 of 353 files, more files were not shown because too many files have changed in this diff. Show more