mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
885709d3bc | ||
|
|
99b266d3ed | ||
|
|
4999188eff | ||
|
|
de55764311 | ||
|
|
88931ed526 | ||
|
|
c1ebedc50c | ||
|
|
8d5f382a3e | ||
|
|
00a045ca67 | ||
|
|
1dc913e9a7 | ||
|
|
f9527db954 | ||
|
|
0d39b89052 | ||
|
|
379c42fd75 | ||
|
|
4704f2f904 | ||
|
|
2a125bbade | ||
|
|
a68afdcff9 | ||
|
|
3045c04f15 | ||
|
|
a1dfe5d744 | ||
|
|
584a28a7b2 | ||
|
|
651f6714db | ||
|
|
089e423415 | ||
|
|
3d366cc1b3 | ||
|
|
058103a484 | ||
|
|
d293482219 | ||
|
|
b952f09ba2 | ||
|
|
c9d8731813 | ||
|
|
fb6fdffe23 | ||
|
|
d0d6013fc0 | ||
|
|
126862ab48 | ||
|
|
c588058e3b | ||
|
|
5773594cda | ||
|
|
a3c83bb221 | ||
|
|
c4bcf1fd6a | ||
|
|
7cbb1d091b | ||
|
|
e9a6fd8e9b | ||
|
|
58c5abdb44 | ||
|
|
64dfa0936b | ||
|
|
d5062d4cec | ||
|
|
356506f93e | ||
|
|
33cb792905 | ||
|
|
03948a83ea | ||
|
|
8200b02aaa | ||
|
|
a23a2ab678 | ||
|
|
7f0868da27 | ||
|
|
76baf9fa4e | ||
|
|
d2a621210e | ||
|
|
62faf0883f | ||
|
|
6601ea4dee | ||
|
|
3cb2123426 | ||
|
|
40ef50485e | ||
|
|
3c1a728057 | ||
|
|
bf03536ac2 | ||
|
|
a992519b96 | ||
|
|
63e51b23fb | ||
|
|
fddbeaf8cd | ||
|
|
da2396bbf4 | ||
|
|
06ef43e48c | ||
|
|
af53eeba05 | ||
|
|
5476034a3b | ||
|
|
71663381e7 | ||
|
|
481d0cc141 | ||
|
|
e2abc43c80 | ||
|
|
5fc5c5a0df | ||
|
|
eb4fe4d252 | ||
|
|
4ee67e765f | ||
|
|
8a2edc69e2 | ||
|
|
a14e5c9408 | ||
|
|
3a3cebc884 | ||
|
|
b204b67474 | ||
|
|
5ccfaf2e40 | ||
|
|
088786997d | ||
|
|
6d73a098f2 | ||
|
|
6333e8f56c | ||
|
|
2a253c7bf7 | ||
|
|
aea51ce47d | ||
|
|
214c1e48a9 | ||
|
|
875af536b1 | ||
|
|
21d2218cae | ||
|
|
0ce8200da6 | ||
|
|
e0524b82f8 | ||
|
|
1cd81fcf15 | ||
|
|
166b65fc32 | ||
|
|
3e5a8d774f | ||
|
|
d43407f421 | ||
|
|
d10f5cc8b5 | ||
|
|
d1b9ed1de7 | ||
|
|
4479530b9e | ||
|
|
12baa90827 | ||
|
|
6ac55c6f18 | ||
|
|
467877d8fb | ||
|
|
07a962aba4 | ||
|
|
26d9468923 | ||
|
|
e30616700a | ||
|
|
7b7d741cd4 | ||
|
|
19cd6f2cb7 | ||
|
|
64e112154f | ||
|
|
8485c8e81e | ||
|
|
610cd87150 | ||
|
|
50e4dda4d0 | ||
|
|
6a5e1428bc | ||
|
|
a2aa79ef5c | ||
|
|
45fe7d3d91 | ||
|
|
07ceb67bb1 | ||
|
|
7680406984 | ||
|
|
1ab9ed93f6 | ||
|
|
07dcbcd50e | ||
|
|
08d43c51a7 | ||
|
|
88c9c7874e | ||
|
|
e0b9e2730a | ||
|
|
09be5dfc6e | ||
|
|
b2ec928a27 | ||
|
|
3187be79de | ||
|
|
422c69963a | ||
|
|
1fe17aceb8 | ||
|
|
436aa086a8 | ||
|
|
89da80f5bf | ||
|
|
7cdedaaca7 | ||
|
|
cce8f5e861 | ||
|
|
d947ccdb58 | ||
|
|
ee5772c973 | ||
|
|
25e27c3f93 | ||
|
|
0186b657cf | ||
|
|
7fce8a9334 | ||
|
|
d03e7de66c | ||
|
|
591252dbbd | ||
|
|
405fc78b65 | ||
|
|
05175b738a | ||
|
|
bf38bb2915 | ||
|
|
44d1dbcd2c | ||
|
|
ec6f462697 | ||
|
|
4a27df1739 | ||
|
|
b87eef5aa0 | ||
|
|
0eb8b6e3fe | ||
|
|
46b35e6e71 | ||
|
|
5bbb919c76 | ||
|
|
ff5a1e0521 | ||
|
|
c781707da9 | ||
|
|
fbf3e1b28f | ||
|
|
77ded54ae5 | ||
|
|
a4a6d07654 | ||
|
|
6300f49659 | ||
|
|
e753c43cd9 | ||
|
|
6a9de36a15 | ||
|
|
727316d1ba | ||
|
|
5676cdfe3f | ||
|
|
766798fd5f | ||
|
|
95085eda0f | ||
|
|
76e737b18a | ||
|
|
fef5f1beb0 | ||
|
|
a8c1e8e593 | ||
|
|
e4cdfa72bb | ||
|
|
0668621066 | ||
|
|
dc67d5fea9 | ||
|
|
ad35083d69 | ||
|
|
4ff60e15f0 | ||
|
|
4ba0edf330 | ||
|
|
0027e49fc1 | ||
|
|
dc2998b232 | ||
|
|
5b84edd266 | ||
|
|
1a2e8f64ec | ||
|
|
3dbc80852d | ||
|
|
832e3630e9 | ||
|
|
6c82594dde | ||
|
|
1786cb611e | ||
|
|
caeccb6350 | ||
|
|
7e34896962 | ||
|
|
485efc7264 | ||
|
|
72fc17cd1a | ||
|
|
2d3115739c | ||
|
|
96efe58392 | ||
|
|
d60177a8de | ||
|
|
cb61501ca2 | ||
|
|
a52aeaacc6 | ||
|
|
4c77b6f692 | ||
|
|
590b2cab79 | ||
|
|
b8db55f044 | ||
|
|
d37c178e86 | ||
|
|
43af1503ee | ||
|
|
22a8c46a75 | ||
|
|
a4e8c7de31 | ||
|
|
c8b715b70c | ||
|
|
6e66e8c7d4 | ||
|
|
4ca17ec8da | ||
|
|
ec2728d5a6 | ||
|
|
44eecf371a | ||
|
|
1f5c20bfe8 | ||
|
|
0beca40f47 | ||
|
|
195d22172c | ||
|
|
fa7d633b09 | ||
|
|
36c97be734 | ||
|
|
171fbeb98b | ||
|
|
619287d730 | ||
|
|
2f1c78033a | ||
|
|
fad221fe3c | ||
|
|
705725070a | ||
|
|
bdd70970f6 | ||
|
|
b978a0b803 | ||
|
|
8eb16a5242 | ||
|
|
adada26ae2 | ||
|
|
a90ce13b8c | ||
|
|
cb22a00528 | ||
|
|
aefe6a0b33 | ||
|
|
19b91de662 | ||
|
|
655c722662 | ||
|
|
77298082ac | ||
|
|
cb96e363a7 | ||
|
|
d89f61a239 | ||
|
|
bd6b95c4aa | ||
|
|
86598fc315 | ||
|
|
75cfd6427d | ||
|
|
9a5e16ca6a | ||
|
|
03a3dab0f1 | ||
|
|
efae364c08 | ||
|
|
493c36b7f8 | ||
|
|
e0e9356649 | ||
|
|
d91ba93071 | ||
|
|
3408f54a0e | ||
|
|
40d0390444 | ||
|
|
59551c0c1f | ||
|
|
155b6bc52e | ||
|
|
b6db291c68 | ||
|
|
8dec071267 | ||
|
|
0866af587c | ||
|
|
07bcac85e1 | ||
|
|
2539b42868 | ||
|
|
85dbd7fcdb | ||
|
|
6d78f5079e | ||
|
|
5cd0f19332 | ||
|
|
945a08003c | ||
|
|
ed997e51bc | ||
|
|
eae711d5a0 | ||
|
|
1cb538d091 | ||
|
|
54829e3eed | ||
|
|
c1a370c8c2 | ||
|
|
feaa2f229f | ||
|
|
1570af80c3 | ||
|
|
a0a191cca0 | ||
|
|
4f43b0ca4c | ||
|
|
e383305479 | ||
|
|
b1dd0f011d | ||
|
|
84e3cf129c | ||
|
|
2d20d89a31 | ||
|
|
c0c49cbbd6 | ||
|
|
2455d23ba1 | ||
|
|
fff141d22b | ||
|
|
470cdb42fa | ||
|
|
873b3525c5 | ||
|
|
3d41c6a024 |
No files matched your search
@@ -1,2 +1,3 @@
|
||||
Miguel de Icaza ([email protected])
|
||||
Paolo Molaro ([email protected])
|
||||
Dietmar Maurer ([email protected])
|
||||
+485
@@ -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!
|
||||
@@ -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 +1,2 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
SUBDIRS = mono doc runtime scripts man
|
||||
+9
-1
@@ -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
@@ -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
@@ -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,3 +1,4 @@
|
||||
Makefile.in
|
||||
Makefile
|
||||
all-docs
|
||||
pending-classes.in
|
||||
+1
-1
@@ -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
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Executable
+106
@@ -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"
|
||||
|
||||
Executable
+123
@@ -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"
|
||||
|
||||
@@ -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
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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
@@ -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:
|
||||
|
||||
@@ -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
@@ -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
@@ -1,4 +1,4 @@
|
||||
man_MANS = mcs.1
|
||||
man_MANS = mcs.1 mono.1
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
|
||||
@@ -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
@@ -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)
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
Reference in new issue
Block a user