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