mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
Compare commits
372
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e117097e1f | ||
|
|
95d855ebdd | ||
|
|
362fb88f27 | ||
|
|
9c53f50c43 | ||
|
|
075d5711fa | ||
|
|
c5d359670a | ||
|
|
ee457822fa | ||
|
|
0589d7ddf5 | ||
|
|
2d8310224e | ||
|
|
6bf7d13701 | ||
|
|
f2eca844d4 | ||
|
|
42b162613a | ||
|
|
c02fd518fa | ||
|
|
46ba96ab4c | ||
|
|
245f79b651 | ||
|
|
325b17c5e6 | ||
|
|
b77b0e57c7 | ||
|
|
5817f62c06 | ||
|
|
4d846f3217 | ||
|
|
53ae02f613 | ||
|
|
18b14d2b33 | ||
|
|
f56c7b32e9 | ||
|
|
65a6ec3240 | ||
|
|
373c459bb6 | ||
|
|
384f8eb073 | ||
|
|
ecb560796d | ||
|
|
b94fed666b | ||
|
|
b54f5a8c31 | ||
|
|
cde9923d53 | ||
|
|
a4dd2eb9ab | ||
|
|
de053ca593 | ||
|
|
56afb5aa4f | ||
|
|
448d7c2cd7 | ||
|
|
96c4a7d4b9 | ||
|
|
e83ed4dbed | ||
|
|
e4a117cd9a | ||
|
|
c791106c25 | ||
|
|
2a97314f8d | ||
|
|
ed54a1b761 | ||
|
|
7e1ac93383 | ||
|
|
2fb9b64e73 | ||
|
|
1a28da3faf | ||
|
|
167914a79b | ||
|
|
d33e20924b | ||
|
|
beb890595c | ||
|
|
13f9cb3434 | ||
|
|
85432ce24a | ||
|
|
b9a946161c | ||
|
|
3674150432 | ||
|
|
b7db72d0e5 | ||
|
|
7cd4a28f4a | ||
|
|
5e858b9c01 | ||
|
|
653096d4d3 | ||
|
|
596a9f9abf | ||
|
|
86b66e974e | ||
|
|
a30e7b6859 | ||
|
|
b9dd5065b4 | ||
|
|
53ea73491e | ||
|
|
676e17ac4b | ||
|
|
742bd55cc3 | ||
|
|
8125642105 | ||
|
|
cac4a6fa87 | ||
|
|
808a676350 | ||
|
|
73e67e1db3 | ||
|
|
0bef4ef894 | ||
|
|
493446ce04 | ||
|
|
9efbf70813 | ||
|
|
4994a0b289 | ||
|
|
cb9600b9b9 | ||
|
|
34c7e44150 | ||
|
|
4cd4569ec6 | ||
|
|
93b9e20e3c | ||
|
|
28021d9e5c | ||
|
|
d04c85fc8e | ||
|
|
beebac4e2e | ||
|
|
018c430733 | ||
|
|
723a933e9c | ||
|
|
8cec72a31f | ||
|
|
ed3a8e8e12 | ||
|
|
0eee593d3a | ||
|
|
a0b8967951 | ||
|
|
4b5cb5b7ec | ||
|
|
7c9abd6ea4 | ||
|
|
4b791f4ebf | ||
|
|
e61f5a6c0b | ||
|
|
4576f262ca | ||
|
|
44f49f7e6d | ||
|
|
06de999787 | ||
|
|
e95d116ee3 | ||
|
|
24ff4f1c36 | ||
|
|
8ecd99c009 | ||
|
|
667266be44 | ||
|
|
71b2fac370 | ||
|
|
94782a9675 | ||
|
|
58f0695e8b | ||
|
|
a0cd75d310 | ||
|
|
5a6bb10f5c | ||
|
|
cc104efec3 | ||
|
|
f40f665d9b | ||
|
|
8e2e6c1909 | ||
|
|
8980b35c17 | ||
|
|
8325c4c78e | ||
|
|
e186bdfb4b | ||
|
|
208de0f8ac | ||
|
|
1eaf76f83a | ||
|
|
84ad52dda7 | ||
|
|
3afcd622ea | ||
|
|
ecf4d5fec4 | ||
|
|
191a0b7c13 | ||
|
|
b428cee93f | ||
|
|
75d83b4784 | ||
|
|
33a4ce27ab | ||
|
|
b7fbf894c5 | ||
|
|
733791ff24 | ||
|
|
462f7da2b9 | ||
|
|
9b58fb9ab7 | ||
|
|
1c8879f557 | ||
|
|
17da99ccab | ||
|
|
c64179faa5 | ||
|
|
6d32218cb8 | ||
|
|
6262c11cfc | ||
|
|
412d92d596 | ||
|
|
bfcdea1305 | ||
|
|
ab453faffe | ||
|
|
62bf373fea | ||
|
|
4136d5da76 | ||
|
|
9c81677a33 | ||
|
|
fc363fc7a6 | ||
|
|
c221d6c0e8 | ||
|
|
47932d265a | ||
|
|
e2c37e98bf | ||
|
|
6eedd08ed8 | ||
|
|
060406f25e | ||
|
|
dc60cf7ea6 | ||
|
|
24575d5e57 | ||
|
|
6f6a2135b5 | ||
|
|
06c53dfc80 | ||
|
|
fdcba04ccc | ||
|
|
2ce934fbac | ||
|
|
4b6092b945 | ||
|
|
c35c98a888 | ||
|
|
1d05f4019d | ||
|
|
2c90f8215b | ||
|
|
741b3708a6 | ||
|
|
88d78a139c | ||
|
|
9ecf430d4a | ||
|
|
66fa2508f9 | ||
|
|
a7d6f5e17f | ||
|
|
6b8412c1d3 | ||
|
|
2641cfa52a | ||
|
|
4a05d3d046 | ||
|
|
dda14a7141 | ||
|
|
9dbe7163c6 | ||
|
|
4da72ac87d | ||
|
|
965210d362 | ||
|
|
a2831a6759 | ||
|
|
ce7703f9ef | ||
|
|
e611b35bc9 | ||
|
|
6ae3bec0b6 | ||
|
|
e7a8f19764 | ||
|
|
e7c42af958 | ||
|
|
a0d26a1ecc | ||
|
|
23848fcfc6 | ||
|
|
8744beb65c | ||
|
|
9b07470957 | ||
|
|
7ee3c559e3 | ||
|
|
dc5b0de65a | ||
|
|
d5a9aafee6 | ||
|
|
e4ab1fe02c | ||
|
|
ad05561854 | ||
|
|
be268ce1fa | ||
|
|
3c4a0853ca | ||
|
|
0c1e02a5fd | ||
|
|
0436f3c228 | ||
|
|
8eecfbc54b | ||
|
|
a2470d9b12 | ||
|
|
9abbb9bfa3 | ||
|
|
50c4040639 | ||
|
|
438bc0e3aa | ||
|
|
ed6dfed6f5 | ||
|
|
9ddad195c6 | ||
|
|
29444d0002 | ||
|
|
079933816f | ||
|
|
950d95d519 | ||
|
|
2e21360c50 | ||
|
|
8943e7e0d6 | ||
|
|
cc3db58df7 | ||
|
|
7e1e70827a | ||
|
|
466e31790f | ||
|
|
5405ae9046 | ||
|
|
d7b1a66b94 | ||
|
|
7b06e01c8f | ||
|
|
efb68a566b | ||
|
|
1ea3cc4cf0 | ||
|
|
2387e7270d | ||
|
|
dd49afdaf1 | ||
|
|
59b3a649d5 | ||
|
|
c5fd486b84 | ||
|
|
637aa4c949 | ||
|
|
5db35126ad | ||
|
|
7b270fecd9 | ||
|
|
4e6fe443a2 | ||
|
|
b2882b35e8 | ||
|
|
1c482a505c | ||
|
|
d14e5c26e2 | ||
|
|
de071f89a0 | ||
|
|
2ddeac257f | ||
|
|
00c96e5ee1 | ||
|
|
939f5b706d | ||
|
|
a549de0c98 | ||
|
|
e4767b2ed7 | ||
|
|
e336bccc7a | ||
|
|
5b5f567690 | ||
|
|
46184895e1 | ||
|
|
8b4bde4713 | ||
|
|
8e21b187db | ||
|
|
2557c91607 | ||
|
|
480b7f5d7b | ||
|
|
6629632a6a | ||
|
|
9f99215160 | ||
|
|
278f836939 | ||
|
|
e2bac9878f | ||
|
|
f275b6e485 | ||
|
|
bf926e9d96 | ||
|
|
6371e5446d | ||
|
|
e6553234a6 | ||
|
|
f85a872195 | ||
|
|
bcd23c2ce3 | ||
|
|
f243f57580 | ||
|
|
2eab3e93ec | ||
|
|
2f5dd747db | ||
|
|
9b21552888 | ||
|
|
130cc0265e | ||
|
|
1aa65b49b5 | ||
|
|
3d4af0a3ca | ||
|
|
34a36c6021 | ||
|
|
f544ec6a5a | ||
|
|
dadc02c527 | ||
|
|
b1d2757f8e | ||
|
|
87f3f3d032 | ||
|
|
a93743339f | ||
|
|
7faba06720 | ||
|
|
652318a44d | ||
|
|
724f0a6d4e | ||
|
|
5ebc3a5956 | ||
|
|
76cb00959c | ||
|
|
3397f96efb | ||
|
|
8c24850ae5 | ||
|
|
95974cdb7a | ||
|
|
8722a70b7a | ||
|
|
e6e4288c5b | ||
|
|
5bbfe2090e | ||
|
|
f9427d49b1 | ||
|
|
8561c8042c | ||
|
|
d9334ab132 | ||
|
|
27810cca75 | ||
|
|
38342a2028 | ||
|
|
ab969071df | ||
|
|
121aafc036 | ||
|
|
01443d56f9 | ||
|
|
d349d3cf66 | ||
|
|
508eeb5266 | ||
|
|
9698eebc3a | ||
|
|
bf0c63bdaf | ||
|
|
1f4d704c06 | ||
|
|
0c2a768d04 | ||
|
|
d4b59a0987 | ||
|
|
d66bd40a5e | ||
|
|
8ecd5784fc | ||
|
|
864017ae96 | ||
|
|
9fa61327c6 | ||
|
|
ac33be5c4f | ||
|
|
022cc2489d | ||
|
|
c9cd06e98c | ||
|
|
d3c3b9817a | ||
|
|
6574c4842c | ||
|
|
35af91a654 | ||
|
|
924eaae1b1 | ||
|
|
5c0653cc3b | ||
|
|
9b10d5247d | ||
|
|
eed9f45d27 | ||
|
|
e938f4fad3 | ||
|
|
47eb68cddb | ||
|
|
db68333eb7 | ||
|
|
3fd99b981e | ||
|
|
d59ab90071 | ||
|
|
8a7077c3fd | ||
|
|
fdb3f32aff | ||
|
|
bf91fdc886 | ||
|
|
afabc945e6 | ||
|
|
2d6f641629 | ||
|
|
cbbb130a5f | ||
|
|
47b637d576 | ||
|
|
82d4d8a64c | ||
|
|
e29ff8407d | ||
|
|
b2225d42ea | ||
|
|
5e95510e6e | ||
|
|
a583e2b947 | ||
|
|
a84f9e8fa3 | ||
|
|
c10bca60c9 | ||
|
|
6ddc460530 | ||
|
|
00f6a73eb1 | ||
|
|
37b08459d4 | ||
|
|
83ceed4489 | ||
|
|
bcd3aec7e5 | ||
|
|
e4ce9895a7 | ||
|
|
542d8e5b0e | ||
|
|
8a6f210585 | ||
|
|
989abab5fb | ||
|
|
e01b93cd98 | ||
|
|
1b19fbcc37 | ||
|
|
e46bc42fa8 | ||
|
|
eb6253ba03 | ||
|
|
3ed4f50114 | ||
|
|
427d699aa3 | ||
|
|
4e0d8f27ba | ||
|
|
1ee3e71937 | ||
|
|
988168e2c3 | ||
|
|
dbacc958c8 | ||
|
|
cc46bbf965 | ||
|
|
089e8de54b | ||
|
|
57a84b0eeb | ||
|
|
78a2769fe2 | ||
|
|
986ce54e81 | ||
|
|
4a7de092d4 | ||
|
|
bf76a83964 | ||
|
|
510576a508 | ||
|
|
75639f296f | ||
|
|
e7d5ef2c30 | ||
|
|
4d30c11e0c | ||
|
|
d3a81ce711 | ||
|
|
4170fd8523 | ||
|
|
73545d7a30 | ||
|
|
47ecadbebb | ||
|
|
b0b8b6fbd8 | ||
|
|
a5c3f5c622 | ||
|
|
b7f7a9261e | ||
|
|
ebe3ff9854 | ||
|
|
b4b1af268b | ||
|
|
37b6e49f7f | ||
|
|
766c997480 | ||
|
|
b79c922ef9 | ||
|
|
524ecb2f30 | ||
|
|
70ff2308c0 | ||
|
|
e19a0cdd3f | ||
|
|
ae1b7774cd | ||
|
|
579a15b47a | ||
|
|
d25226e6f7 | ||
|
|
9fb03707ab | ||
|
|
f82536d160 | ||
|
|
908a4b9c8d | ||
|
|
e2bf3c46d7 | ||
|
|
eb6fd2eb23 | ||
|
|
464026f902 | ||
|
|
3e9be851d4 | ||
|
|
35439fa111 | ||
|
|
822dba4a3e | ||
|
|
8d9bebe7fd | ||
|
|
452b871488 | ||
|
|
c3b5d44422 | ||
|
|
fcb0a02c88 | ||
|
|
b43ae3c971 | ||
|
|
f708641b8d | ||
|
|
4e10c1ab81 | ||
|
|
da3f57c214 | ||
|
|
48dccee80f | ||
|
|
1faa706804 | ||
|
|
38e2ec8469 | ||
|
|
57dbdb3e42 | ||
|
|
e83157f0bf | ||
|
|
6bc712404f | ||
|
|
31349722b8 |
No files matched your search
@@ -1,203 +1,3 @@
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: Generate data/monodoc.pc.
|
||||
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* data/Makefile.am: Add monodoc.pc to $(pkgconfig_DATA), $(DISTCLEANFILES).
|
||||
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* data/monodoc.pc.in: Fixup sourcesdir.
|
||||
* data/Makefile.am (EXTRA_DIST): Add monodoc.pc.in.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: Install scripts for mdoc-compat commands.
|
||||
* scripts (svn:ignore): Ignore generated files.
|
||||
* mdassembler, mdvalidater, monodocer, monodocs2html,
|
||||
monodocs2slashdoc: Added; "compatibility" scripts, converting the
|
||||
previous commands into mdoc commands.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: Create scripts for mdoc sub-commands.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: Add mod.
|
||||
|
||||
2008-10-16 Jonathan Pryor <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: Move mono-shlib-cop to scripts_2_0.
|
||||
|
||||
2008-10-15 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: Add checks for `struct flock`, `struct timespec`.
|
||||
|
||||
2008-10-14 Jonathan Pryor <[email protected]>
|
||||
|
||||
* data/mono-options.pcs.in: We're not installing Mono.Options.dll into
|
||||
the GAC anymore, we're just concerned `pkg-config --variable=Source`
|
||||
support.
|
||||
|
||||
2008-10-14 Jonathan Pryor <[email protected]>
|
||||
|
||||
* data/mono-options.pc.in: Add a Sources variable so that
|
||||
`pkg-config --variable Sources mono-options` can be used to grab the
|
||||
sources to Mono.Options (useful for embedding).
|
||||
|
||||
2008-10-13 Jonathan Pryor <[email protected]>
|
||||
|
||||
* configure.in: Generate data/mono-options.pc.
|
||||
* data/Makefile.am: Support mono-options.pc.in and mono-options.pc.
|
||||
* data/mono-options.pc.in: Added.
|
||||
|
||||
Mon Oct 13 11:26:19 CEST 2008 Paolo Molaro <[email protected]>
|
||||
|
||||
* configure.in: check for shm_open ().
|
||||
|
||||
2008-10-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Only process Makefiles with patch-quiet.sh which have a
|
||||
corresponding Makefile.in.
|
||||
|
||||
2008-10-11 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Make --enable-minimal=reflection_emit turn on
|
||||
--enable-minimal=reflection_emit_save too.
|
||||
|
||||
* README: Add docs for the option.
|
||||
|
||||
* configure.in: Add --enable-minimal=reflection_emit_save option.
|
||||
|
||||
2008-10-10 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* data/net_2_0/web.config: add UrlRouting.axd handler (forbidden).
|
||||
|
||||
2008-10-08 Zoltan Varga <[email protected]>
|
||||
|
||||
* Makefile.am (dist-hook): Use 'net_1_1' instead of 'default'.
|
||||
|
||||
* runtime/Makefile.am: Rename 'default' profile to 'net_1_1'.
|
||||
|
||||
2008-10-07 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* data/Makefile.am : there seems a couple more of required changes.
|
||||
|
||||
2008-10-07 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* scripts/Makefile.am : one more dist fix is needed.
|
||||
|
||||
2008-10-07 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* configure.in : fix missing change for previous change.
|
||||
|
||||
2008-10-07 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* scripts/mono-nunit.pc.in, data/mono-nunit.pc.in:
|
||||
move former to latter.
|
||||
* scripts/Makefile.am : remove packaging info.
|
||||
* data/Makefile.am : add mono-nunit.pc too.
|
||||
|
||||
2008-10-03 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* configure.in: Add simd intrinsics to the disable set.
|
||||
|
||||
2008-10-01 Jb Evain <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: add mono-cil-strip.
|
||||
|
||||
2008-09-29 Zoltan Varga <[email protected]>
|
||||
|
||||
* scripts/patch-quiet.sh: Handle the ifs used by some versions of
|
||||
automake.
|
||||
|
||||
2008-09-25 Luis Ortiz <[email protected]>
|
||||
|
||||
* configure.in: Big arrays are only supported on 64 bit systems.
|
||||
|
||||
Fixes #430022
|
||||
|
||||
2008-09-24 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add --enable-minimal=attach option.
|
||||
|
||||
2008-09-22 Raja R Harinath <[email protected]>
|
||||
|
||||
* scripts/patch-quiet.sh: Skip Makefiles that've already been
|
||||
patched. Handle automake 1.10a.
|
||||
|
||||
2008-09-18 Mark Probst <[email protected]>
|
||||
|
||||
* docs/generic-sharing: More generic sharing porting
|
||||
documentation.
|
||||
|
||||
2008-09-17 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile.am (EXTRA_DIST): Update.
|
||||
* nls.m4, progtest.m4: Really add from Gettext 0.17.
|
||||
|
||||
2008-09-15 Raja R Harinath <[email protected]>
|
||||
|
||||
* configure.in (AC_CONFIG_FILES): Put po/mcs/Makefile.in in its
|
||||
own stanza.
|
||||
(AC_OUTPUT): Don't list po/mcs/Makefile, it's automatically
|
||||
handled by AM_PO_SUBDIRS.
|
||||
|
||||
2008-09-14 Miguel de Icaza <[email protected]>
|
||||
|
||||
* Added some infrastructure to start the translation of the
|
||||
compiler error messages.
|
||||
|
||||
Currently the compiler does not yet use the infrastructure,
|
||||
that needs a bit of work, but the PO infrastructure is in place.
|
||||
|
||||
2008-09-14 gettextize <[email protected]>
|
||||
|
||||
* Makefile.am (SUBDIRS): Add po/mcs.
|
||||
(DIST_SUBDIRS): Add po/mcs.
|
||||
(EXTRA_DIST): Add config.rpath.
|
||||
* configure.in (AC_CONFIG_FILES): Add po/mcs/Makefile.in.
|
||||
|
||||
2008-09-14 gettextize <[email protected]>
|
||||
|
||||
* gettext.m4: New file, from gettext-0.17.
|
||||
* iconv.m4: New file, from gettext-0.17.
|
||||
* lib-ld.m4: New file, from gettext-0.17.
|
||||
* lib-link.m4: New file, from gettext-0.17.
|
||||
* lib-prefix.m4: New file, from gettext-0.17.
|
||||
* nls.m4: New file, from gettext-0.17.
|
||||
* po.m4: New file, from gettext-0.17.
|
||||
* progtest.m4: New file, from gettext-0.17.
|
||||
* Makefile.am (EXTRA_DIST): Add the new files.
|
||||
|
||||
2008-09-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* scripts/patch-quiet.sh: Remove an obsolete comment. Change the Makefile so
|
||||
this script is rerun if Makefile.am changes.
|
||||
|
||||
2008-09-11 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Add a DISABLE_JIT automake conditional too.
|
||||
|
||||
* configure.in: Add a --enable-minimal=jit option to disable jit, only
|
||||
allowing full-aot execution.
|
||||
|
||||
2008-09-10 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Move the computation of export_ldflags after libtool has
|
||||
been created.
|
||||
|
||||
2008-09-08 Massimiliano Mantione <[email protected]>
|
||||
|
||||
* configure.in: Added DISABLE_PROFILER automake conditional.
|
||||
|
||||
2008-08-29 Geoff Norton <[email protected]>
|
||||
|
||||
* configure.in: Rollup our unrolled FreeBSD support so that we properly
|
||||
build and compile on FreeBSD6+. (FreeBSD5 is 2004)
|
||||
|
||||
2008-08-28 Geoff Norton <[email protected]>
|
||||
|
||||
* build-iphone.sh: iPhone lies about HAVE_MMAP as well.
|
||||
@@ -207,97 +7,33 @@ Mon Oct 13 11:26:19 CEST 2008 Paolo Molaro <[email protected]>
|
||||
* build-iphone.sh: Update build-iphone to not wget old inssel's, and build
|
||||
out of the box with teh current SDK.
|
||||
|
||||
2008-08-28 Zoltan Varga <vargaz@gmail.com>
|
||||
|
||||
* scripts/Makefile.am (scripts_2_0): Add gacutil2.
|
||||
* scripts/gacutil2: New file.
|
||||
|
||||
2008-08-22 Jb Evain <[email protected]>
|
||||
|
||||
* data/wcf.pc.in
|
||||
* data/Makefile.am
|
||||
* configure.in: add a new wcf.pc for assemblies recently moved
|
||||
from olive to mcs.
|
||||
|
||||
2008-08-12 Bill Holmes <[email protected]>
|
||||
2008-08-13 Bill Holmes <billholmes54@gmail.com>
|
||||
|
||||
* winconfig.h: Updating the config file for MSVC builds to match
|
||||
the config file used when compiling with gcc in Cygwin.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-09 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* docs/generic-sharing: Some updates from an irc talk with Mark.
|
||||
|
||||
2008-08-06 Zoltan Varga <[email protected]>
|
||||
|
||||
* Makefile.am (EXTRA_DIST): Add dtrace-prelink.sh and build-mingw32.sh.
|
||||
|
||||
* scripts/Makefile.am (EXTRA_DIST): Add patch-quiet.sh.
|
||||
|
||||
2008-08-05 Marek Habersack <[email protected]>
|
||||
|
||||
* configure.in: use the PKG_CONFIG_PATH only when cross-compiling.
|
||||
|
||||
2008-08-05 Marek Habersack <[email protected]>
|
||||
|
||||
* configure.in: added support for cross-compilation
|
||||
|
||||
2008-08-05 Marek Habersack <[email protected]>
|
||||
|
||||
* build-mingw32.sh: added a script to build Mono for Windows on a
|
||||
Linux host using mingw.
|
||||
|
||||
2008-08-05 Marek Habersack <[email protected]>
|
||||
|
||||
* scripts/Makefile.am: added support for cross-compilation,
|
||||
including .bat generation for windows targets.
|
||||
|
||||
2008-08-05 Marek Habersack <[email protected]>
|
||||
|
||||
* scripts/smcs.bat.in, scripts/script.bat.in,
|
||||
scripts/script_umask.bat.in: added .bat templates.
|
||||
|
||||
2008-08-05 Marek Habersack <[email protected]>
|
||||
|
||||
* runtime/Makefile.am: mingw cross-compilation support.
|
||||
|
||||
2008-08-05 Andreas Färber <[email protected]>
|
||||
|
||||
* autogen.sh: Suppress arguments warning for NOCONFIGURE.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-02 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Enable dtrace by default on platforms which support it.
|
||||
|
||||
2008-07-27 Zoltan Varga <[email protected]>
|
||||
|
||||
* scripts/patch-quiet.sh: Make the libtool --quiet flag configurable by
|
||||
V=1 as well.
|
||||
|
||||
2008-07-24 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Patch libtool to avoid the
|
||||
'copying selected object files ...' messages.
|
||||
|
||||
* configure.in: Invoke patch-quiet.sh using AC_CONFIG_COMMANDS so it
|
||||
runs during a reconfigure too.
|
||||
|
||||
Backported from trunk.
|
||||
|
||||
2008-07-24 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* configure.in: Change USED_GC_NAME to show if parallel mark is used.
|
||||
This is shown in mono --version.
|
||||
|
||||
2008-07-22 Mark Probst <[email protected]>
|
||||
|
||||
* configure.in: New configure option (--with-malloc-mempools) to
|
||||
make mempools use malloc for every single allocation, which makes
|
||||
it easier to use debugging/profiling tools like Valgrind.
|
||||
|
||||
2008-07-21 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: Invoke patch-quiet.sh using AC_CONFIG_COMMANDS so it
|
||||
runs during a reconfigure too.
|
||||
Backported from trunk.
|
||||
|
||||
2008-07-13 Zoltan Varga <[email protected]>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ For comments, corrections and updates, please contact [email protected]
|
||||
Contributions for other modules should be under the same license
|
||||
terms as the rest of the module, or under MIT X11 terms.
|
||||
|
||||
If you need further information, please contact [email protected]
|
||||
If you ned further information, please contact [email protected]
|
||||
|
||||
* The Modules
|
||||
|
||||
|
||||
+4
-4
@@ -1,20 +1,20 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
ACLOCAL_AMFLAGS = -I .
|
||||
|
||||
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support docs data runtime scripts man samples web msvc
|
||||
SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support docs data runtime scripts man samples web msvc
|
||||
|
||||
# Keep in sync with SUBDIRS
|
||||
## 'tools' is not normally built
|
||||
DIST_SUBDIRS = po libgc $(eglib_dir) mono ikvm-native support docs data runtime scripts man samples web tools msvc
|
||||
DIST_SUBDIRS = libgc $(eglib_dir) mono ikvm-native support docs data runtime scripts man samples web tools msvc
|
||||
|
||||
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in dtrace-prelink.sh build-mingw32.sh LICENSE mkinstalldirs
|
||||
EXTRA_DIST= mono-uninstalled.pc.in LICENSE
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
|
||||
|
||||
# Distribute the 'mcs' tree too
|
||||
dist-hook:
|
||||
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
|
||||
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_1_1 distdir=$$d dist-recursive
|
||||
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=default distdir=$$d dist-recursive
|
||||
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
@@ -67,14 +67,6 @@ This is Mono.
|
||||
./autogen.sh --prefix=/usr/local
|
||||
make
|
||||
|
||||
The Mono build system is silent for most compilation commands.
|
||||
To enable a more verbose compile (for example, to pinpoint
|
||||
problems in your makefiles or your system) pass the V=1 flag to make, like this:
|
||||
|
||||
make V=1
|
||||
|
||||
|
||||
|
||||
c. Building the software from SVN
|
||||
---------------------------------
|
||||
|
||||
@@ -324,25 +316,22 @@ This is Mono.
|
||||
Disables support for the Ahead of Time
|
||||
compilation.
|
||||
|
||||
com:
|
||||
Disables COM support.
|
||||
|
||||
debug:
|
||||
Drop debugging support.
|
||||
profiler:
|
||||
Disables support for the default profiler.
|
||||
|
||||
decimal:
|
||||
Disables support for System.Decimal.
|
||||
|
||||
generics:
|
||||
Generics support. Disabling this will not
|
||||
allow Mono to run any 2.0 libraries or
|
||||
code that contains generics.
|
||||
pinvoke:
|
||||
Support for Platform Invocation services,
|
||||
disabling this will drop support for any
|
||||
libraries using DllImport.
|
||||
|
||||
jit:
|
||||
Removes the JIT engine from the build, this reduces
|
||||
the executable size, and requires that all code
|
||||
executed by the virtual machine be compiled with
|
||||
Full AOT before execution.
|
||||
debug:
|
||||
Drop debugging support.
|
||||
|
||||
reflection_emit:
|
||||
Drop System.Reflection.Emit support
|
||||
|
||||
large_code:
|
||||
Disables support for large assemblies.
|
||||
@@ -350,31 +339,19 @@ This is Mono.
|
||||
logging:
|
||||
Disables support for debug logging.
|
||||
|
||||
pinvoke:
|
||||
Support for Platform Invocation services,
|
||||
disabling this will drop support for any
|
||||
libraries using DllImport.
|
||||
|
||||
profiler:
|
||||
Disables support for the default profiler.
|
||||
|
||||
reflection_emit:
|
||||
Drop System.Reflection.Emit support
|
||||
|
||||
reflection_emit_save:
|
||||
Drop support for saving dynamically created
|
||||
assemblies (AssemblyBuilderAccess.Save) in
|
||||
System.Reflection.Emit.
|
||||
|
||||
simd:
|
||||
Disables support for the Mono.SIMD intrinsics
|
||||
library.
|
||||
com:
|
||||
Disables COM support.
|
||||
|
||||
ssa:
|
||||
Disables compilation for the SSA optimization
|
||||
framework, and the various SSA-based
|
||||
optimizations.
|
||||
|
||||
generics:
|
||||
Generics support. Disabling this will not
|
||||
allow Mono to run any 2.0 libraries or
|
||||
code that contains generics.
|
||||
|
||||
--enable-big-arrays
|
||||
|
||||
This enables the use arrays whose indexes are larger
|
||||
|
||||
+3
-3
@@ -82,7 +82,7 @@ if test "$DIE" -eq 1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test x$NOCONFIGURE = x && test -z "$*"; then
|
||||
if test -z "$*"; then
|
||||
echo "**Warning**: I am going to run \`configure' with no arguments."
|
||||
echo "If you wish to pass any to it, please specify them on the"
|
||||
echo \`$0\'" command line."
|
||||
@@ -102,8 +102,8 @@ if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Running aclocal -I . $ACLOCAL_FLAGS ..."
|
||||
aclocal -I . $ACLOCAL_FLAGS || {
|
||||
echo "Running aclocal $ACLOCAL_FLAGS ..."
|
||||
aclocal $ACLOCAL_FLAGS || {
|
||||
echo
|
||||
echo "**Error**: aclocal failed. This may mean that you have not"
|
||||
echo "installed all of the packages you need, or you may need to"
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
CURDIR="`pwd`"
|
||||
CROSS_DIR=${1:-/opt/cross/}
|
||||
MINGW=${1:-i386-mingw32msvc}
|
||||
CROSS_BIN_DIR="$CROSS_DIR/bin"
|
||||
CROSS_DLL_DIR="$CROSS_DIR/$MINGW/bin"
|
||||
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/$MINGW/lib/pkgconfig
|
||||
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
|
||||
PATH=$CROSS_BIN_DIR:$PATH
|
||||
INSTALL_DESTDIR="$CURDIR/mono-win32"
|
||||
PROFILES="default net_2_0 net_2_1 net_3_5"
|
||||
|
||||
export PATH
|
||||
|
||||
function setup ()
|
||||
{
|
||||
if [ -d ./.git/svn ]; then
|
||||
SVN_INFO='git svn info'
|
||||
elif [ -d ./.svn ]; then
|
||||
SVN_INFO='svn info'
|
||||
else
|
||||
SVN_INFO=""
|
||||
fi
|
||||
|
||||
if [ -n "$SVN_INFO" ]; then
|
||||
MONO_SVN_REVISION=`$SVN_INFO | grep Revision | sed 's/.*: //'`
|
||||
MONO_BRANCH=`$SVN_INFO | grep URL | sed -e 's;.*source/;;g' -e 's;/mono;;g'`
|
||||
else
|
||||
MONO_SVN_REVISION="rUNKNOWN"
|
||||
MONO_BRANCH="tarball"
|
||||
fi
|
||||
|
||||
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'`
|
||||
MONO_RELEASE="$MONO_VERSION-$MONO_BRANCH-r$MONO_SVN_REVISION"
|
||||
MONO_PREFIX="/mono-$MONO_RELEASE"
|
||||
|
||||
NOCONFIGURE=yes
|
||||
export NOCONFIGURE
|
||||
|
||||
echo Mono Win32 installation prefix: $MONO_PREFIX
|
||||
}
|
||||
|
||||
function build ()
|
||||
{
|
||||
./autogen.sh
|
||||
|
||||
if [ -f ./Makefile ]; then
|
||||
make distclean
|
||||
fi
|
||||
|
||||
if [ ! -d "$CURDIR/build-cross-windows" ]; then
|
||||
mkdir "$CURDIR/build-cross-windows"
|
||||
fi
|
||||
|
||||
cd "$CURDIR/build-cross-windows"
|
||||
rm -rf *
|
||||
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name=""
|
||||
make
|
||||
cd "$CURDIR"
|
||||
|
||||
if [ ! -d "$CURDIR/build-cross-windows-mcs" ]; then
|
||||
mkdir "$CURDIR/build-cross-windows-mcs"
|
||||
fi
|
||||
cd "$CURDIR/build-cross-windows-mcs"
|
||||
rm -rf *
|
||||
../configure --prefix=$MONO_PREFIX --enable-parallel-mark
|
||||
make
|
||||
}
|
||||
|
||||
function doinstall ()
|
||||
{
|
||||
if [ -d "$INSTALL_DIR" ]; then
|
||||
rm -rf "$INSTALL_DIR"
|
||||
fi
|
||||
cd "$CURDIR/build-cross-windows"
|
||||
make DESTDIR="$INSTALL_DESTDIR" USE_BATCH_FILES=yes install
|
||||
|
||||
cd "$CURDIR/../mcs/mcs"
|
||||
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "mcs profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$CURDIR/../mcs/class"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "class library profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$CURDIR/../mcs/tools"
|
||||
for p in $PROFILES; do
|
||||
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "tools profile $p installation failed"
|
||||
done
|
||||
|
||||
cd "$CURDIR/mono-win32"
|
||||
for dll in $COPY_DLLS; do
|
||||
cp -ap "$CROSS_DLL_DIR"/$dll "$INSTALL_DESTDIR/$MONO_PREFIX/bin"
|
||||
done
|
||||
|
||||
rm -f "$CURDIR/mono-win32-$MONO_RELEASE".zip
|
||||
zip -9r "$CURDIR/mono-win32-$MONO_RELEASE".zip .
|
||||
|
||||
}
|
||||
|
||||
pushd . > /dev/null
|
||||
|
||||
setup
|
||||
build
|
||||
doinstall
|
||||
|
||||
popd > /dev/null
|
||||
+93
-102
@@ -6,7 +6,7 @@ AC_CANONICAL_SYSTEM
|
||||
m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(mono,2.1)
|
||||
AM_INIT_AUTOMAKE(mono,2.0)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
API_VER=1.0
|
||||
@@ -49,6 +49,8 @@ libmono_cflags=""
|
||||
libmono_ldflags=""
|
||||
AC_SUBST(libmono_cflags)
|
||||
AC_SUBST(libmono_ldflags)
|
||||
export_ldflags=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
|
||||
AC_SUBST(export_ldflags)
|
||||
|
||||
# Variable to have relocatable .pc files (lib, or lib64)
|
||||
reloc_libdir=`basename ${libdir}`
|
||||
@@ -63,7 +65,6 @@ need_link_unlink=no
|
||||
# Thread configuration inspired by sleepycat's db
|
||||
AC_MSG_CHECKING([host platform characteristics])
|
||||
libgc_threads=no
|
||||
has_dtrace=no
|
||||
case "$host" in
|
||||
*-*-mingw*|*-*-cygwin*)
|
||||
platform_win32=yes
|
||||
@@ -76,8 +77,8 @@ case "$host" in
|
||||
HOST_CC="gcc"
|
||||
# Windows 2000 is required that includes Internet Explorer 5.01
|
||||
CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024"
|
||||
libmono_cflags="-mno-cygwin -mms-bitfields -mwindows"
|
||||
libmono_ldflags="-mno-cygwin -mms-bitfields -mwindows"
|
||||
libmono_cflags="-mno-cygwin"
|
||||
libmono_ldflags="-mno-cygwin"
|
||||
libdl=
|
||||
libgc_threads=win32
|
||||
gc_default=included
|
||||
@@ -98,7 +99,33 @@ case "$host" in
|
||||
libgc_threads=pthreads
|
||||
with_sigaltstack=no
|
||||
;;
|
||||
*-*-*freebsd*)
|
||||
# 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
|
||||
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD4"
|
||||
need_link_unlink=yes
|
||||
AC_DEFINE(PTHREAD_POINTER_ID, 1, [pthread_t is a pointer])
|
||||
libdl=
|
||||
libgc_threads=pthreads
|
||||
# TLS isn't implemented at all on 4-STABLE
|
||||
with_tls=pthread
|
||||
;;
|
||||
*-*-*freebsd5*)
|
||||
platform_win32=no
|
||||
if test "x$PTHREAD_CFLAGS" = "x"; then
|
||||
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS"
|
||||
@@ -114,9 +141,36 @@ case "$host" in
|
||||
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
|
||||
libmono_ldflags="$PTHREAD_LIBS"
|
||||
fi
|
||||
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD"
|
||||
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD5"
|
||||
need_link_unlink=yes
|
||||
AC_DEFINE(PTHREAD_POINTER_ID, 1, [pthread is a pointer])
|
||||
AC_DEFINE(PTHREAD_POINTER_ID)
|
||||
libdl=
|
||||
with_sigaltstack=yes
|
||||
libgc_threads=pthreads
|
||||
# TLS is only partially implemented on 5-STABLE (compiler support
|
||||
# but NOT library support)
|
||||
#
|
||||
with_tls=pthread
|
||||
;;
|
||||
*-*-*freebsd6*)
|
||||
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 -pthread"
|
||||
libmono_ldflags="-pthread"
|
||||
else
|
||||
LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
|
||||
libmono_ldflags="$PTHREAD_LIBS"
|
||||
fi
|
||||
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD -DPLATFORM_BSD6"
|
||||
need_link_unlink=yes
|
||||
AC_DEFINE(PTHREAD_POINTER_ID)
|
||||
libdl=
|
||||
libgc_threads=pthreads
|
||||
with_sigaltstack=yes
|
||||
@@ -170,7 +224,6 @@ case "$host" in
|
||||
libgc_threads=pthreads
|
||||
# This doesn't seem to work on solaris/x86, but the configure test runs
|
||||
with_tls=pthread
|
||||
has_dtrace=yes
|
||||
;;
|
||||
*-*-darwin*)
|
||||
platform_win32=no
|
||||
@@ -185,7 +238,6 @@ case "$host" in
|
||||
no_version_script=yes
|
||||
libdl=
|
||||
libgc_threads=pthreads
|
||||
has_dtrace=yes
|
||||
if test "x$cross_compiling" = "xyes"; then
|
||||
has_broken_apple_cpp=yes
|
||||
fi
|
||||
@@ -241,7 +293,6 @@ AC_SUBST(HOST_CC)
|
||||
AC_SUBST(BUILD_EXEEXT)
|
||||
|
||||
AM_CONDITIONAL(CROSS_COMPILING, [test x$cross_compiling = xyes])
|
||||
AM_CONDITIONAL(USE_BATCH_FILES, [test x$platform_win32 = xyes -a x$cross_compiling = xyes])
|
||||
|
||||
# Set STDC_HEADERS
|
||||
AC_HEADER_STDC
|
||||
@@ -252,9 +303,6 @@ AM_PROG_LIBTOOL
|
||||
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
|
||||
DOLT
|
||||
|
||||
export_ldflags=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
|
||||
AC_SUBST(export_ldflags)
|
||||
|
||||
# Test whenever ld supports -version-script
|
||||
AC_PROG_LD
|
||||
AC_PROG_LD_GNU
|
||||
@@ -300,7 +348,17 @@ AC_CHECK_HEADERS(syslog.h)
|
||||
|
||||
# for mono/dis
|
||||
AC_CHECK_HEADERS(wchar.h)
|
||||
AC_CHECK_HEADERS(ieeefp.h)
|
||||
case "$host" in
|
||||
*-*-*freebsd6*)
|
||||
AC_CHECK_HEADERS(ieeefp.h)
|
||||
;;
|
||||
*-*-*freebsd*)
|
||||
/* Only freebsd6 has a working ieeefp.h */
|
||||
;;
|
||||
*)
|
||||
AC_CHECK_HEADERS(ieeefp.h)
|
||||
;;
|
||||
esac
|
||||
AC_MSG_CHECKING(for isinf)
|
||||
AC_TRY_LINK([#include <math.h>], [
|
||||
int f = isinf (1);
|
||||
@@ -385,10 +443,6 @@ if test -d $srcdir/$olivedir; then
|
||||
olive_topdir='$(top_srcdir)/'$olivedir
|
||||
fi
|
||||
|
||||
# gettext: prepare the translation directories.
|
||||
# we do not configure the full gettext, as we consume it dynamically from C#
|
||||
AM_PO_SUBDIRS
|
||||
|
||||
AC_ARG_WITH([libgdiplus],
|
||||
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
|
||||
[], [with_libgdiplus=installed])
|
||||
@@ -437,17 +491,9 @@ embedded)
|
||||
AC_CONFIG_SUBDIRS(eglib)
|
||||
;;
|
||||
system)
|
||||
if test "x$cross_compiling" = "xyes"; then
|
||||
pkg_config_path="$PKG_CONFIG_PATH"
|
||||
unset PKG_CONFIG_PATH
|
||||
fi
|
||||
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
|
||||
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
|
||||
if test "x$cross_compiling" = "xyes"; then
|
||||
PKG_CONFIG_PATH=$pkg_config_path
|
||||
export PKG_CONFIG_PATH
|
||||
fi
|
||||
|
||||
|
||||
## Versions of dependencies
|
||||
GLIB_REQUIRED_VERSION=1.3.11
|
||||
|
||||
@@ -540,7 +586,7 @@ DISABLED_FEATURES=none
|
||||
|
||||
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
|
||||
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
|
||||
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd.],
|
||||
reflection_emit, large_code, logging, com, ssa, generics.],
|
||||
[
|
||||
for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
|
||||
eval "mono_feature_disable_$feature='yes'"
|
||||
@@ -559,7 +605,6 @@ fi
|
||||
if test "x$mono_feature_disable_profiler" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_PROFILER, 1, [Disable default profiler support])
|
||||
fi
|
||||
AM_CONDITIONAL(DISABLE_PROFILER, test x$mono_feature_disable_profiler = xyes)
|
||||
|
||||
if test "x$mono_feature_disable_decimal" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_DECIMAL, 1, [Disable System.Decimal support])
|
||||
@@ -575,11 +620,6 @@ fi
|
||||
|
||||
if test "x$mono_feature_disable_reflection_emit" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_REFLECTION_EMIT, 1, [Disable reflection emit support])
|
||||
mono_feature_disable_reflection_emit_save=yes
|
||||
fi
|
||||
|
||||
if test "x$mono_feature_disable_reflection_emit_save" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_REFLECTION_EMIT_SAVE, 1, [Disable assembly saving support in reflection emit])
|
||||
fi
|
||||
|
||||
if test "x$mono_feature_disable_large_code" = "xyes"; then
|
||||
@@ -602,20 +642,6 @@ if test "x$mono_feature_disable_generics" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_GENERICS, 1, [Disable generics support])
|
||||
fi
|
||||
|
||||
if test "x$mono_feature_disable_attach" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_ATTACH, 1, [Disable agent attach support])
|
||||
fi
|
||||
|
||||
if test "x$mono_feature_disable_jit" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_JIT, 1, [Disable the JIT, only full-aot mode will be supported by the runtime.])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(DISABLE_JIT, test x$mono_feature_disable_jit = xyes)
|
||||
|
||||
if test "x$mono_feature_disable_simd" = "xyes"; then
|
||||
AC_DEFINE(DISABLE_SIMD, 1, [Disable SIMD intrinsics related optimizations.])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for visibility __attribute__)
|
||||
AC_TRY_COMPILE([], [
|
||||
void __attribute__ ((visibility ("hidden"))) doit (void) {}
|
||||
@@ -1089,7 +1115,13 @@ if test x$platform_win32 = xno; then
|
||||
# and libpthread does not exist
|
||||
#
|
||||
case "${host}" in
|
||||
*-*-*freebsd*)
|
||||
*-*-*freebsd4*)
|
||||
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
|
||||
;;
|
||||
*-*-*freebsd5*)
|
||||
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
|
||||
;;
|
||||
*-*-*freebsd6*)
|
||||
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
|
||||
;;
|
||||
*)
|
||||
@@ -1267,9 +1299,6 @@ if test x$platform_win32 = xno; then
|
||||
# pthread (first!) on Linux
|
||||
AC_SEARCH_LIBS(sem_init, pthread rt posix4)
|
||||
|
||||
AC_SEARCH_LIBS(shm_open, pthread rt posix4)
|
||||
AC_CHECK_FUNCS(shm_open)
|
||||
|
||||
dnl ********************************
|
||||
dnl *** Checks for timezone stuff **
|
||||
dnl ********************************
|
||||
@@ -1439,17 +1468,12 @@ if test x$platform_win32 = xno; then
|
||||
#include <unistd.h>])
|
||||
AC_CHECK_TYPES([suseconds_t], [AC_DEFINE(HAVE_SUSECONDS_T)], ,
|
||||
[#include <sys/time.h>])
|
||||
AC_CHECK_TYPES([struct flock], [AC_DEFINE(HAVE_STRUCT_FLOCK)], ,
|
||||
[#include <unistd.h>
|
||||
#include <fcntl.h>])
|
||||
AC_CHECK_TYPES([struct pollfd], [AC_DEFINE(HAVE_STRUCT_POLLFD)], ,
|
||||
[#include <sys/poll.h>])
|
||||
AC_CHECK_TYPES([struct stat], [AC_DEFINE(HAVE_STRUCT_STAT)], ,
|
||||
[#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>])
|
||||
AC_CHECK_TYPES([struct timespec], [AC_DEFINE(HAVE_STRUCT_TIMESPEC)], ,
|
||||
[#include <time.h>])
|
||||
AC_CHECK_TYPES([struct timeval], [AC_DEFINE(HAVE_STRUCT_TIMEVAL)], ,
|
||||
[#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
@@ -1657,35 +1681,21 @@ AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
|
||||
|
||||
AC_MSG_CHECKING([if big-arrays are to be enabled])
|
||||
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
|
||||
if test "x$enable_big_arrays" = "xyes" ; then
|
||||
if test "x$ac_cv_sizeof_void_p" = "x8"; then
|
||||
AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
|
||||
else
|
||||
AC_MSG_ERROR([The allocation and indexing of arrays greater than Int32.MaxValue is not supported on this platform.])
|
||||
fi
|
||||
fi
|
||||
AC_MSG_RESULT($enable_big_arrays)
|
||||
|
||||
dnl **************
|
||||
dnl *** DTRACE ***
|
||||
dnl **************
|
||||
|
||||
AC_ARG_ENABLE(dtrace,[ --enable-dtrace Enable DTrace probes], enable_dtrace=$enableval, enable_dtrace=$has_dtrace)
|
||||
|
||||
if test "x$enable_dtrace" = "xyes"; then
|
||||
if test "x$has_dtrace" = "xno"; then
|
||||
AC_MSG_ERROR([DTrace probes are not supported on this platform.])
|
||||
fi
|
||||
AC_PATH_PROG(DTRACE, [dtrace], [no], [$PATH:/usr/sbin])
|
||||
if test "x$DTRACE" = "xno"; then
|
||||
AC_MSG_RESULT([dtrace utility not found, dtrace support disabled.])
|
||||
enable_dtrace=no
|
||||
fi
|
||||
if test "x$enable_big_arrays" = "xyes" ; then
|
||||
AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([if DTrace support is requested])
|
||||
AC_ARG_ENABLE(dtrace,[ --enable-dtrace Enable DTrace probes], enable_dtrace=$enableval, enable_dtrace=no)
|
||||
AC_MSG_RESULT($enable_dtrace)
|
||||
dtrace_g=no
|
||||
if test "x$enable_dtrace" = "xyes"; then
|
||||
AC_DEFINE(ENABLE_DTRACE, 1, [Enable DTrace probes])
|
||||
AC_PATH_PROG(DTRACE, [dtrace], [no], [$PATH:/usr/sbin])
|
||||
if test "x$DTRACE" = "xno"; then
|
||||
AC_MSG_FAILURE([DTrace requested but not found])
|
||||
fi
|
||||
DTRACEFLAGS=
|
||||
if test "x$ac_cv_sizeof_void_p" = "x8"; then
|
||||
case "$host" in
|
||||
@@ -2104,14 +2114,6 @@ AC_ARG_WITH(oprofile,[ --with-oprofile=no,<path> Enable oprofile support (defa
|
||||
fi
|
||||
])
|
||||
|
||||
MALLOC_MEMPOOLS=no
|
||||
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to NO)],[
|
||||
if test x$with_malloc_mempools = xyes; then
|
||||
MALLOC_MEMPOOLS=yes
|
||||
AC_DEFINE(USE_MALLOC_FOR_MEMPOOLS,1,[Use malloc for each single mempool allocation])
|
||||
fi
|
||||
])
|
||||
|
||||
AM_CONDITIONAL(HAVE_OPROFILE, test x$OPROFILE = xyes)
|
||||
AC_SUBST(OPROFILE_CFLAGS)
|
||||
AC_SUBST(OPROFILE_LIBS)
|
||||
@@ -2165,18 +2167,12 @@ AC_SUBST(mono_runtime)
|
||||
|
||||
mono_cfg_root=$mono_build_root/runtime
|
||||
if test x$platform_win32 = xyes; then
|
||||
if test "x$cross_compiling" = "xno"; then
|
||||
mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc
|
||||
else
|
||||
mono_cfg_dir=`echo $mono_cfg_root | tr '/' '\\\'`\\etc
|
||||
fi
|
||||
mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc
|
||||
else
|
||||
mono_cfg_dir=$mono_cfg_root/etc
|
||||
fi
|
||||
AC_SUBST(mono_cfg_dir)
|
||||
|
||||
AC_CONFIG_FILES([po/mcs/Makefile.in])
|
||||
|
||||
AC_CONFIG_FILES([runtime/mono-wrapper],[chmod +x runtime/mono-wrapper])
|
||||
AC_CONFIG_FILES([runtime/monodis-wrapper],[chmod +x runtime/monodis-wrapper])
|
||||
|
||||
@@ -2251,13 +2247,14 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/2.0/Browsers/Compat.browser],
|
||||
],[LN_S='$LN_S'])
|
||||
|
||||
if test x$enable_quiet_build = xyes; then
|
||||
AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do $srcdir/scripts/patch-quiet.sh $i; done], [shell=$SHELL])
|
||||
AC_CONFIG_COMMANDS([quiet], [find mono libgc support -name Makefile -exec $shell $srcdir/scripts/patch-quiet.sh {} \;], [shell=$SHELL])
|
||||
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
|
||||
fi
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
mono-uninstalled.pc
|
||||
scripts/mono-nunit.pc
|
||||
scripts/mono-find-provides
|
||||
scripts/mono-find-requires
|
||||
mono/Makefile
|
||||
@@ -2306,12 +2303,8 @@ data/net_2_0/Browsers/Makefile
|
||||
data/mint.pc
|
||||
data/mono.pc
|
||||
data/mono-cairo.pc
|
||||
data/mono-nunit.pc
|
||||
data/mono-options.pc
|
||||
data/monodoc.pc
|
||||
data/dotnet.pc
|
||||
data/dotnet35.pc
|
||||
data/wcf.pc
|
||||
data/cecil.pc
|
||||
data/smcs.pc
|
||||
samples/Makefile
|
||||
@@ -2321,7 +2314,6 @@ tools/Makefile
|
||||
tools/locale-builder/Makefile
|
||||
runtime/Makefile
|
||||
msvc/Makefile
|
||||
po/Makefile
|
||||
])
|
||||
|
||||
if test x$platform_win32 = xyes; then
|
||||
@@ -2412,7 +2404,6 @@ echo "
|
||||
zlib: $zlib_msg
|
||||
oprofile: $OPROFILE
|
||||
BigArrays: $enable_big_arrays
|
||||
DTrace: $enable_dtrace
|
||||
$disabled
|
||||
|
||||
"
|
||||
|
||||
+6
-6
@@ -5,22 +5,22 @@ monodir = $(sysconfdir)/mono
|
||||
EXTRA_DIST = \
|
||||
config.in \
|
||||
browscap.ini mono.supp mono.d README \
|
||||
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
|
||||
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in smcs.pc.in
|
||||
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in \
|
||||
mono-cairo.pc.in cecil.pc.in smcs.pc.in
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
if JIT_SUPPORTED
|
||||
if INTERP_SUPPORTED
|
||||
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
|
||||
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc mono-cairo.pc cecil.pc smcs.pc
|
||||
else
|
||||
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
|
||||
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc mono-cairo.pc cecil.pc smcs.pc
|
||||
endif
|
||||
else
|
||||
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
|
||||
pkgconfig_DATA= mint.pc mono-cairo.pc cecil.pc smcs.pc
|
||||
endif
|
||||
|
||||
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc smcs.pc monodoc.pc
|
||||
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc mono-cairo.pc cecil.pc smcs.pc
|
||||
|
||||
mono_DATA = config \
|
||||
browscap.ini
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
prefix=${pcfiledir}/../..
|
||||
assemblies_dir=${prefix}/lib/mono-options
|
||||
Sources=${assemblies_dir}/Options.cs
|
||||
|
||||
Name: Mono.Options
|
||||
Description: Command Line Parsing Library
|
||||
Version: 0.2.1
|
||||
@@ -1,9 +0,0 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@prefix@/lib
|
||||
sourcesdir=${libdir}/monodoc/sources
|
||||
|
||||
Name: Monodoc
|
||||
Description: Monodoc - Mono Documentation Tools
|
||||
Version: @VERSION@
|
||||
Libs: /r:${prefix}/lib/mono/monodoc/monodoc.dll
|
||||
@@ -1,35 +1,3 @@
|
||||
2008-10-09 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* web.config: default values for httpRuntime are different in 2.0
|
||||
|
||||
2008-10-09 Marek Habersack <[email protected]>
|
||||
|
||||
* web.config: added the default monoSettings section which works around
|
||||
an incompatibility between mcs and csc, mentioned in bug #433806
|
||||
|
||||
* machine.config: added definition of the monoSettings section to
|
||||
the system.web group
|
||||
|
||||
2008-10-06 Marek Habersack <[email protected]>
|
||||
|
||||
* machine.config: added entries to ignore the mobileControls and
|
||||
deviceFilters sections.
|
||||
|
||||
2008-09-02 Marek Habersack <[email protected]>
|
||||
|
||||
* web.config: removed System.Web.Extensions.dll from the assemblies
|
||||
(reverting r112073) - it would break all the ASP.NET applications
|
||||
which use System.Web.Extensions other than 3.5.0.0
|
||||
|
||||
2008-09-06 Daniel Morgan <[email protected]>
|
||||
|
||||
* machine.config: added Mono.Data.SybaseClient
|
||||
to DbProviderFactories section.
|
||||
|
||||
2008-09-02 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* web.config: added System.Web.Extensions.dll to assemblies.
|
||||
|
||||
2008-08-28 Zoltan Varga <[email protected]>
|
||||
|
||||
* machine.config: Fix syntax error.
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
|
||||
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
|
||||
@@ -60,7 +58,6 @@
|
||||
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
|
||||
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
|
||||
</sectionGroup>
|
||||
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
</sectionGroup>
|
||||
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
@@ -184,9 +181,6 @@
|
||||
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
|
||||
description=".Net Framework Data Provider for SqlServer"
|
||||
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
|
||||
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
|
||||
description=".Net Framework Data Provider for Sybase"
|
||||
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
|
||||
</DbProviderFactories>
|
||||
</system.data>
|
||||
|
||||
|
||||
+2
-10
@@ -3,19 +3,11 @@
|
||||
<configuration>
|
||||
|
||||
<system.web>
|
||||
<monoSettings>
|
||||
<compilersCompatibility>
|
||||
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
|
||||
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
</compilersCompatibility>
|
||||
</monoSettings>
|
||||
|
||||
<authorization>
|
||||
<allow users="*" />
|
||||
</authorization>
|
||||
<httpHandlers>
|
||||
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
@@ -123,12 +115,12 @@
|
||||
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
|
||||
</buildProviders>
|
||||
</compilation>
|
||||
<httpRuntime executionTimeout="110"
|
||||
<httpRuntime executionTimeout="90"
|
||||
maxRequestLength="4096"
|
||||
useFullyQualifiedRedirectUrl="false"
|
||||
minFreeThreads="8"
|
||||
minLocalRequestFreeThreads="4"
|
||||
appRequestQueueLimit="5000" />
|
||||
appRequestQueueLimit="100" />
|
||||
<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)" />
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
|
||||
Name: WCF
|
||||
Description: References WCF for compilation
|
||||
Version: @VERSION@
|
||||
Libs: -r:System.Runtime.Serialization.dll -r:System.IdentityModel.dll -r:System.IdentityModel.Selectors.dll -r:System.ServiceModel.dll -r:System.ServiceModel.Web.dll
|
||||
@@ -1,27 +0,0 @@
|
||||
Call Sites
|
||||
Extracted from emails from Paolo Molaro
|
||||
|
||||
|
||||
There are 3 basic different kinds of call sites:
|
||||
|
||||
1) normal calls:
|
||||
call relative_displacement
|
||||
|
||||
2) virtual calls:
|
||||
call *positive_offset(%register)
|
||||
|
||||
3) interface calls:
|
||||
mov constant, %imt_register
|
||||
call *negative_offset(%register)
|
||||
|
||||
The above is what happens on x86 and amd64, with different values of
|
||||
%imt_register for each arch (this register is a constant, but it could
|
||||
change with different mono builds, it should be likely one of
|
||||
constants the runtime comunicates to the debugger). %register can
|
||||
change depending on the callsite based on the register allocator
|
||||
choices. Note that the constant for the interface calls won't
|
||||
necessarily be a MonoMethod address: this could change in the future
|
||||
to a simple number.
|
||||
|
||||
In all the 3 cases the JIT trampolines will need to inspect the call
|
||||
site, but only in the first case the call site will be changed.
|
||||
+12
-53
@@ -9,30 +9,15 @@ Generic code sharing
|
||||
|
||||
The generic class init trampoline is very similar to the class init
|
||||
trampoline, with the exception that the VTable of the class to be
|
||||
inited is passed in a register, MONO_ARCH_VTABLE_REG. That register
|
||||
can be the same as the IMT register.
|
||||
inited is passed in a register, MONO_ARCH_VTABLE_REG. That can be the
|
||||
same as the IMT register.
|
||||
|
||||
The call to the generic class init trampoline is never patched because
|
||||
the VTable is not constant - it depends on the type arguments of the
|
||||
class/method doing the call to the trampoline. For that reason, the
|
||||
trampoline needs a fast path for the case that the class is already
|
||||
inited, i.e. the trampoline needs to check the initialized bit of the
|
||||
MonoVTable and immediately return if it is set. See tramp-x86.c for
|
||||
how to portably figure out the number of the bit in the bit-field that
|
||||
needs to be checked.
|
||||
|
||||
Since the MONO_ARCH_VTABLE_REG is needed by the generic class init
|
||||
trampoline function (in mini-trampolines.c) it needs to be saved by
|
||||
the generic trampoline code in the register save block which is passed
|
||||
to the trampoline. This also applies to the RGCTX fetch trampoline
|
||||
(see below).
|
||||
|
||||
Like the normal class init trampoline, the result of the generic class
|
||||
init trampoline function is not a pointer to code that needs to be
|
||||
jumped to. Instead, just like for the class init trampoline, the
|
||||
generic trampoline code must return to the caller instead of jumping
|
||||
to the returned value. The same applies for the RGCTX fetch
|
||||
trampoline (see below).
|
||||
inited. See tramp-x86.c for how to portably figure out the number of
|
||||
the bit in the bit-field that needs to be checked.
|
||||
|
||||
** RGCTX register
|
||||
|
||||
@@ -57,20 +42,6 @@ MONO_ARCH_RGCTX_REG can be the same as the IMT register for now, but
|
||||
this might change in the future when we implement virtual generic
|
||||
method calls (more) efficiently.
|
||||
|
||||
This register lifetime starts at the call site that loads it and
|
||||
ends in the callee prologue when it is either discarded or stored
|
||||
into a local variable.
|
||||
|
||||
It's better to avoid registers used for argument passing for the RGCTX
|
||||
as it would make the code dealing with calling conventions code a lot
|
||||
harder.
|
||||
|
||||
** Method prologue
|
||||
|
||||
Generic shared code that have a RGCTX receive it in RGCTX_REG. There
|
||||
must be a check in mono_arch_emit_prolog for MonoCompile::rgctx_var
|
||||
and if set store it. See mini-x86.c for reference.
|
||||
|
||||
** Dealing with types
|
||||
|
||||
Types passed to arch functions might be type parameters
|
||||
@@ -104,14 +75,14 @@ the layout of a RGCTX:
|
||||
.
|
||||
.
|
||||
|
||||
For fetching a slot from a RGCTX the trampoline is passed a pointer
|
||||
(as a normal integer argument) to the VTable. From there it has to
|
||||
fetch the pointer to the RGCTX, which might be null. Then it has to
|
||||
traverse the correct number of "next" links, each of which might be
|
||||
NULL. Arriving at the right array it needs to fetch the slot, which
|
||||
might also be NULL. If any of the NULL cases, the trampoline must
|
||||
transition to unmanaged code to potentially setup the RGCTX and fill
|
||||
the slot. Here is pseudo-code for fetching slot 11:
|
||||
For fetching a slot from a RGCTX the trampoline is passed a pointer to
|
||||
the VTable. From there it has to fetch the pointer to the RGCTX,
|
||||
which might be null. Then it has to traverse the correct number of
|
||||
"next" links, each of which might be NULL. Arriving at the right
|
||||
array it needs to fetch the slot, which might also be NULL. If any of
|
||||
the NULL cases, the trampoline must transition to unmanaged code to
|
||||
potentially setup the RGCTX and fill the slot. Here is pseudo-code
|
||||
for fetching slot 11:
|
||||
|
||||
; vtable ptr in r1
|
||||
; fetch RGCTX array 0
|
||||
@@ -158,18 +129,6 @@ a trampoline for an MRGCTX is needed, as opposed to one for a RGCTX.
|
||||
Use MONO_RGCTX_SLOT_INDEX to get the index of the slot (like 2 for
|
||||
"slot 2" as above).
|
||||
|
||||
The unmanaged fetch code is yet another trampoline created via
|
||||
mono_arch_create_specific_trampoline(), of type
|
||||
MONO_TRAMPOLINE_RGCTX_LAZY_FETCH. It's given the slot number as the
|
||||
trampoline argument. In addition, the pointer to the VTable/MRGCTX is
|
||||
passed in MONO_ARCH_VTABLE_REG (like the VTable to the generic class
|
||||
init trampoline - see above).
|
||||
|
||||
Like the class init and generic class init trampolines, the RGCTX
|
||||
fetch trampoline code doesn't return code that must be jumped to, so,
|
||||
like for those trampolines (see above), the generic trampoline code
|
||||
must do a normal return instead.
|
||||
|
||||
|
||||
* Getting generics information about a stack frame
|
||||
|
||||
|
||||
@@ -103,30 +103,6 @@ In the cases above, the number of generated trampolines goes from
|
||||
5400 for the IronPython case and from 800 to 150 for the hello world
|
||||
case.
|
||||
|
||||
Kinds of Trampolines and Thunks
|
||||
===============================
|
||||
|
||||
This is a list of the trampolines and thunks used in Mono:
|
||||
|
||||
- create_fnptr
|
||||
- load_aot_method
|
||||
- imt thunk
|
||||
|
||||
Interface Method Table, this is used to dispatch calls to
|
||||
interface methods.
|
||||
|
||||
- jump table
|
||||
- debugger code
|
||||
- exception call filter
|
||||
- trampoline (various types)
|
||||
- throw corlib exception
|
||||
- restore context
|
||||
- throw exception by name
|
||||
- handle stack overflow
|
||||
- throw exception
|
||||
- delegate invoke implementation
|
||||
- cpuid code
|
||||
|
||||
|
||||
Implementation for x86/x86-64
|
||||
=============================
|
||||
|
||||
+2
-95
@@ -1,103 +1,11 @@
|
||||
2008-10-17 Miguel de Icaza <[email protected]>
|
||||
|
||||
* Allow types to be defined on the eglib-config.h file, that could
|
||||
be a platform specific generated type file.
|
||||
|
||||
* gtimer.c: split functionality in platforms.
|
||||
|
||||
2008-10-13 Bill Holmes <[email protected]>
|
||||
|
||||
* src/gdate-win32.c : Fix compiler errors for MSVC.
|
||||
|
||||
* src/gpath.c : Fix compiler errors for MSVC.
|
||||
|
||||
* src/gfile-posix.c : Adding declaration for mkstemp for the win 32
|
||||
implementation in gfile-win32.c.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-10-11 Miguel de Icaza <[email protected]>
|
||||
|
||||
* gtimer.c: Same process.
|
||||
|
||||
* src/glib.h: Move g_strdup here, to consolidate all allocations
|
||||
in this header, will help for merging the allocation work later.
|
||||
|
||||
* src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
|
||||
for MatchType.
|
||||
|
||||
* src/gpath.c: Split this one as well.
|
||||
|
||||
* src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
|
||||
src/gmodule-unix.c: split functionality in platforms.
|
||||
|
||||
* src/goutput.c (g_logv): On some platforms, before we abort we
|
||||
want to flush the stdout/stderr.
|
||||
|
||||
2008-10-10 Miguel de Icaza <[email protected]>
|
||||
|
||||
* Split functionality that is operating system specific into
|
||||
-win32.c, -unix.c and -posix.c
|
||||
|
||||
* Use g_malloc everywhere, and g_free, so that these can be easily
|
||||
overwritten consistently.
|
||||
|
||||
2008-09-16 Bill Holmes <[email protected]>
|
||||
|
||||
* src/gunicode.c : Fix a warning.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-28 Bill Holmes <[email protected]>
|
||||
|
||||
Backport of r111875
|
||||
|
||||
* src/glib.h : Adding a c++ definition for G_BEGIN_DECLS.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-27 Bill Holmes <[email protected]>
|
||||
|
||||
* glib.h, gunicode.c : Fixing some compiler errors.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-20 Mike Voorhees <[email protected]>
|
||||
|
||||
* Patch from Mike Voorhees to fix various problems with
|
||||
g_utf8_validate compared to the glib implementation and unit tests
|
||||
to ensure that there are no regressions.
|
||||
|
||||
From a mailing list post to mono-devel-list on August 19th, 2008
|
||||
|
||||
[Mono-dev] utf8 related patches. Please review.
|
||||
|
||||
2008-08-20 Mike Voorhees <[email protected]>
|
||||
|
||||
* src/glib.h : Adding declarations for g_utf8_strlen, g_utf8_get_char,
|
||||
and g_utf8_next_char.
|
||||
|
||||
* src/gunicode.c : Adding implementation for g_utf8_strlen, g_utf8_get_char,
|
||||
and g_utf8_next_char.
|
||||
|
||||
* src/gunicode.c : Rewrote g_utf8_validate.
|
||||
|
||||
* test/utf8.c Adding tests for g_utf8_strlen, g_utf8_get_char,
|
||||
g_utf8_next_char, and g_utf8_validate.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-05 Andreas Faerber <[email protected]>
|
||||
|
||||
* autogen.sh: Suppress arguments warning for NOCONFIGURE.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-04 Bill Holmes <[email protected]>
|
||||
|
||||
* test/tests.h, test/Makefile.am, test/memory.c : Adding memory tests to test
|
||||
allocation routines return NULL when 0 size is passed in.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-04 Bill Holmes <[email protected]>
|
||||
|
||||
* src/glib.h : Changing the allocation routines to return null if 0 size is
|
||||
@@ -1240,4 +1148,3 @@ Mon Oct 9 12:59:16 CEST 2006 Paolo Molaro <[email protected]>
|
||||
untested at this point.
|
||||
|
||||
|
||||
|
||||
+5
-19
@@ -18,31 +18,17 @@ no separate files, please try to follow the convetions in the source code
|
||||
|
||||
Please read the README in tests/
|
||||
|
||||
* Features
|
||||
|
||||
The source code is designed to allow for different operating
|
||||
system builds of the eglib code.
|
||||
|
||||
Files in src that:
|
||||
|
||||
* Have a plain name: are cross platform, and should work on
|
||||
every operating system.
|
||||
|
||||
* That end in -unix.c: These files contain Unix specific code.
|
||||
|
||||
* That end in -win32.c: These files contain Win32 specific code.
|
||||
|
||||
* That end in -posix.c: Will work on both Windows and Unix,
|
||||
but should not be included for other operating systems.
|
||||
|
||||
* Plans: short and long term.
|
||||
|
||||
The short term plans for eglib is to allow Mono to optionally
|
||||
build with it instead of using glib, gmodule and gthread, but
|
||||
the default build will continue to be done against glib 2.0.
|
||||
|
||||
In the long-term we are considering dropping glib as a
|
||||
dependency, considering that Mono requires a modern Unix
|
||||
Our first target is to make this work with Linux, other
|
||||
platforms will follow after that.
|
||||
|
||||
In the long-term (Mono 2.0) we are considering dropping glib
|
||||
as a dependency, considering that Mono requires a modern Unix
|
||||
system to run anyways (for its thread support) it would allow
|
||||
us to fix some of the glib API limitations we have to live
|
||||
with (explicit thread support for example), rework the API to
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ if test "$DIE" -eq 1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test x$NOCONFIGURE = x && test -z "$*"; then
|
||||
if test -z "$*"; then
|
||||
echo "**Warning**: I am going to run \`configure' with no arguments."
|
||||
echo "If you wish to pass any to it, please specify them on the"
|
||||
echo \`$0\'" command line."
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ AC_INIT(README)
|
||||
AC_CANONICAL_SYSTEM
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(eglib,0.2)
|
||||
AM_INIT_AUTOMAKE(eglib,0.1)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AC_PROG_CC
|
||||
|
||||
+6
-18
@@ -1,19 +1,5 @@
|
||||
noinst_LTLIBRARIES = libeglib.la
|
||||
|
||||
win_files = \
|
||||
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c \
|
||||
gmodule-win32.c gtimer-win32.c
|
||||
|
||||
unix_files = \
|
||||
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c \
|
||||
gmodule-unix.c gtimer-unix.c
|
||||
|
||||
if PLATFORM_WIN32
|
||||
os_files = $(win_files)
|
||||
else
|
||||
os_files = $(unix_files)
|
||||
endif
|
||||
|
||||
libeglib_la_SOURCES = \
|
||||
eglib-config.h \
|
||||
sort.frag.h \
|
||||
@@ -22,6 +8,7 @@ libeglib_la_SOURCES = \
|
||||
gerror.c \
|
||||
ghashtable.c \
|
||||
gmem.c \
|
||||
gmodule.c \
|
||||
gmodule.h \
|
||||
goutput.c \
|
||||
gstr.c \
|
||||
@@ -29,18 +16,19 @@ libeglib_la_SOURCES = \
|
||||
gstring.c \
|
||||
gptrarray.c \
|
||||
glist.c \
|
||||
gmisc.c \
|
||||
gqueue.c \
|
||||
gpath.c \
|
||||
gshell.c \
|
||||
gspawn.c \
|
||||
gtimer.c \
|
||||
gdate.c \
|
||||
gfile.c \
|
||||
gfile-posix.c \
|
||||
gpattern.c \
|
||||
gdir.c \
|
||||
gmarkup.c \
|
||||
gutf8.c \
|
||||
gunicode.c \
|
||||
$(os_files)
|
||||
gunicode.c
|
||||
|
||||
libeglib_la_CFLAGS = -Wall -D_FORTIFY_SOURCE=2
|
||||
|
||||
@@ -54,4 +42,4 @@ endif
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
EXTRA_DIST = eglib-config.h.in $(win_files) $(unix_files)
|
||||
EXTRA_DIST = eglib-config.h.in
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* gdate-win32.c: Date and time utility functions.
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected]
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include <winsock2.h>
|
||||
|
||||
void
|
||||
g_get_current_time (GTimeVal *result)
|
||||
{
|
||||
long int l;
|
||||
g_return_if_fail (result != NULL);
|
||||
l = GetTickCount();
|
||||
|
||||
g_return_if_fail (result != NULL);
|
||||
|
||||
result->tv_sec = l / 1000;
|
||||
result->tv_usec = (l % 1000) * 1000;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* gdate-unix.c: Date and time utility functions.
|
||||
* Date and time utility functions.
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected]
|
||||
@@ -28,16 +28,28 @@
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
void
|
||||
g_get_current_time (GTimeVal *result)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
long int l = GetTickCount();
|
||||
|
||||
g_return_if_fail (result != NULL);
|
||||
|
||||
result->tv_sec = l / 1000;
|
||||
result->tv_usec = (l % 1000) * 1000;
|
||||
#else
|
||||
struct timeval tv;
|
||||
|
||||
g_return_if_fail (result != NULL);
|
||||
gettimeofday (&tv, NULL);
|
||||
result->tv_sec = tv.tv_sec;
|
||||
result->tv_usec = tv.tv_usec;
|
||||
#endif
|
||||
}
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Directory utility functions.
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected])
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
|
||||
struct _GDir {
|
||||
DIR *dir;
|
||||
};
|
||||
|
||||
GDir *
|
||||
g_dir_open (const gchar *path, guint flags, GError **error)
|
||||
{
|
||||
GDir *dir;
|
||||
|
||||
g_return_val_if_fail (path != NULL, NULL);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||
|
||||
(void) flags; /* this is not used */
|
||||
dir = g_new (GDir, 1);
|
||||
dir->dir = opendir (path);
|
||||
if (dir->dir == NULL) {
|
||||
if (error) {
|
||||
gint err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), strerror (err));
|
||||
}
|
||||
g_free (dir);
|
||||
return NULL;
|
||||
}
|
||||
return dir;
|
||||
}
|
||||
|
||||
const gchar *
|
||||
g_dir_read_name (GDir *dir)
|
||||
{
|
||||
struct dirent *entry;
|
||||
|
||||
g_return_val_if_fail (dir != NULL && dir->dir != NULL, NULL);
|
||||
do {
|
||||
entry = readdir (dir->dir);
|
||||
if (entry == NULL)
|
||||
return NULL;
|
||||
} while ((strcmp (entry->d_name, ".") == 0) || (strcmp (entry->d_name, "..") == 0));
|
||||
|
||||
return entry->d_name;
|
||||
}
|
||||
|
||||
void
|
||||
g_dir_rewind (GDir *dir)
|
||||
{
|
||||
g_return_if_fail (dir != NULL && dir->dir != NULL);
|
||||
rewinddir (dir->dir);
|
||||
}
|
||||
|
||||
void
|
||||
g_dir_close (GDir *dir)
|
||||
{
|
||||
g_return_if_fail (dir != NULL && dir->dir != 0);
|
||||
closedir (dir->dir);
|
||||
dir->dir = NULL;
|
||||
g_free (dir);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
/*
|
||||
* Directory utility functions.
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected])
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <io.h>
|
||||
|
||||
#include <winsock2.h>
|
||||
|
||||
struct _GDir {
|
||||
HANDLE handle;
|
||||
gchar* current;
|
||||
gchar* next;
|
||||
};
|
||||
|
||||
GDir *
|
||||
g_dir_open (const gchar *path, guint flags, GError **error)
|
||||
{
|
||||
GDir *dir;
|
||||
gunichar2* path_utf16;
|
||||
gunichar2* path_utf16_search;
|
||||
WIN32_FIND_DATA find_data;
|
||||
|
||||
g_return_val_if_fail (path != NULL, NULL);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||
dir = g_new0 (GDir, 1);
|
||||
|
||||
path_utf16 = u8to16 (path);
|
||||
|
||||
dir->handle = FindFirstFile (path_utf16, &find_data);
|
||||
if (dir->handle == INVALID_HANDLE_VALUE) {
|
||||
if (error) {
|
||||
gint err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), strerror (err));
|
||||
}
|
||||
g_free (dir);
|
||||
g_free (path_utf16);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* now get files */
|
||||
FindClose (dir->handle);
|
||||
path_utf16_search = g_malloc ((wcslen(path_utf16) + 3)*sizeof(gunichar2));
|
||||
wcscpy (path_utf16_search, path_utf16);
|
||||
wcscat (path_utf16_search, L"\\*");
|
||||
|
||||
dir->handle = FindFirstFile (path_utf16_search, &find_data);
|
||||
g_free (path_utf16_search);
|
||||
|
||||
while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0)) {
|
||||
if (!FindNextFile (dir->handle, &find_data)) {
|
||||
if (error) {
|
||||
gint err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), strerror (err));
|
||||
}
|
||||
g_free (dir);
|
||||
g_free (path_utf16);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
dir->current = NULL;
|
||||
dir->next = u16to8 (find_data.cFileName);
|
||||
|
||||
g_free (path_utf16);
|
||||
return dir;
|
||||
}
|
||||
|
||||
const gchar *
|
||||
g_dir_read_name (GDir *dir)
|
||||
{
|
||||
WIN32_FIND_DATA find_data;
|
||||
|
||||
g_return_val_if_fail (dir != NULL && dir->handle != 0, NULL);
|
||||
|
||||
if (dir->current)
|
||||
g_free (dir->current);
|
||||
dir->current = NULL;
|
||||
|
||||
dir->current = dir->next;
|
||||
|
||||
if (!dir->current)
|
||||
return NULL;
|
||||
|
||||
dir->next = NULL;
|
||||
|
||||
do {
|
||||
if (!FindNextFile (dir->handle, &find_data)) {
|
||||
dir->next = NULL;
|
||||
return dir->current;
|
||||
}
|
||||
} while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0));
|
||||
|
||||
dir->next = u16to8 (find_data.cFileName);
|
||||
return dir->current;
|
||||
}
|
||||
|
||||
void
|
||||
g_dir_rewind (GDir *dir)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
g_dir_close (GDir *dir)
|
||||
{
|
||||
g_return_if_fail (dir != NULL && dir->handle != 0);
|
||||
|
||||
if (dir->current)
|
||||
g_free (dir->current);
|
||||
dir->current = NULL;
|
||||
if (dir->next)
|
||||
g_free (dir->next);
|
||||
dir->next = NULL;
|
||||
FindClose (dir->handle);
|
||||
dir->handle = 0;
|
||||
g_free (dir);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
/*
|
||||
* File utility functions.
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected])
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
int mkstemp (char *tmp_template);
|
||||
#endif
|
||||
|
||||
#ifndef O_LARGEFILE
|
||||
#define OPEN_FLAGS (O_RDONLY)
|
||||
#else
|
||||
#define OPEN_FLAGS (O_RDONLY | O_LARGEFILE)
|
||||
#endif
|
||||
gboolean
|
||||
g_file_get_contents (const gchar *filename, gchar **contents, gsize *length, GError **error)
|
||||
{
|
||||
gchar *str;
|
||||
int fd;
|
||||
struct stat st;
|
||||
long offset;
|
||||
int nread;
|
||||
|
||||
g_return_val_if_fail (filename != NULL, FALSE);
|
||||
g_return_val_if_fail (contents != NULL, FALSE);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
||||
|
||||
*contents = NULL;
|
||||
if (length)
|
||||
*length = 0;
|
||||
|
||||
fd = open (filename, OPEN_FLAGS);
|
||||
if (fd == -1) {
|
||||
if (error != NULL) {
|
||||
int err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error opening file");
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (fstat (fd, &st) != 0) {
|
||||
if (error != NULL) {
|
||||
int err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in fstat()");
|
||||
}
|
||||
close (fd);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
str = g_malloc (st.st_size + 1);
|
||||
offset = 0;
|
||||
do {
|
||||
nread = read (fd, str + offset, st.st_size - offset);
|
||||
if (nread > 0) {
|
||||
offset += nread;
|
||||
}
|
||||
} while ((nread > 0 && offset < st.st_size) || (nread == -1 && errno == EINTR));
|
||||
|
||||
close (fd);
|
||||
str [st.st_size] = '\0';
|
||||
if (length) {
|
||||
*length = st.st_size;
|
||||
}
|
||||
*contents = str;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gint
|
||||
g_file_open_tmp (const gchar *tmpl, gchar **name_used, GError **error)
|
||||
{
|
||||
const static gchar *default_tmpl = ".XXXXXX";
|
||||
gchar *t;
|
||||
gint fd;
|
||||
size_t len;
|
||||
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, -1);
|
||||
|
||||
if (tmpl == NULL)
|
||||
tmpl = default_tmpl;
|
||||
|
||||
if (strchr (tmpl, G_DIR_SEPARATOR) != NULL) {
|
||||
if (error) {
|
||||
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should not have any " G_DIR_SEPARATOR_S);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
len = strlen (tmpl);
|
||||
if (len < 6 || strcmp (tmpl + len - 6, "XXXXXX")) {
|
||||
if (error) {
|
||||
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should end with XXXXXX");
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
t = g_build_filename (g_get_tmp_dir (), tmpl, NULL);
|
||||
|
||||
fd = mkstemp (t);
|
||||
|
||||
if (fd == -1) {
|
||||
if (error) {
|
||||
int err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in mkstemp()");
|
||||
}
|
||||
g_free (t);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (name_used) {
|
||||
*name_used = t;
|
||||
} else {
|
||||
g_free (t);
|
||||
}
|
||||
return fd;
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* File utility functions.
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected])
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
gboolean
|
||||
g_file_test (const gchar *filename, GFileTest test)
|
||||
{
|
||||
struct stat st;
|
||||
gboolean have_stat;
|
||||
|
||||
if (filename == NULL || test == 0)
|
||||
return FALSE;
|
||||
|
||||
have_stat = FALSE;
|
||||
|
||||
if ((test & G_FILE_TEST_EXISTS) != 0) {
|
||||
if (access (filename, F_OK) == 0)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
|
||||
if (access (filename, X_OK) == 0)
|
||||
return TRUE;
|
||||
}
|
||||
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
|
||||
have_stat = (lstat (filename, &st) == 0);
|
||||
if (have_stat && S_ISLNK (st.st_mode))
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
|
||||
if (!have_stat)
|
||||
have_stat = (stat (filename, &st) == 0);
|
||||
if (have_stat && S_ISREG (st.st_mode))
|
||||
return TRUE;
|
||||
}
|
||||
if ((test & G_FILE_TEST_IS_DIR) != 0) {
|
||||
if (!have_stat)
|
||||
have_stat = (stat (filename, &st) == 0);
|
||||
if (have_stat && S_ISDIR (st.st_mode))
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,113 +0,0 @@
|
||||
/*
|
||||
* File utility functions.
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected])
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <io.h>
|
||||
#define open _open
|
||||
#define S_ISREG(x) ((x & _S_IFMT) == _S_IFREG)
|
||||
#define S_ISDIR(x) ((x & _S_IFMT) == _S_IFDIR)
|
||||
#endif
|
||||
|
||||
int mkstemp (char *tmp_template)
|
||||
{
|
||||
int fd;
|
||||
gunichar2* utf16_template;
|
||||
|
||||
utf16_template = u8to16 (tmp_template);
|
||||
|
||||
fd = -1;
|
||||
utf16_template = _wmktemp( utf16_template);
|
||||
if (utf16_template && *utf16_template) {
|
||||
/* FIXME: _O_TEMPORARY causes file to disappear on close causing a test to fail */
|
||||
fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_EXCL, _S_IREAD | _S_IWRITE);
|
||||
}
|
||||
|
||||
sprintf (tmp_template + strlen (tmp_template) - 6, "%S", utf16_template + wcslen (utf16_template) - 6);
|
||||
|
||||
g_free (utf16_template);
|
||||
return fd;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4701)
|
||||
#endif
|
||||
|
||||
gboolean
|
||||
g_file_test (const gchar *filename, GFileTest test)
|
||||
{
|
||||
struct _stat64 stat;
|
||||
int ret = 0;
|
||||
gunichar2* utf16_filename = NULL;
|
||||
|
||||
if (filename == NULL || test == 0)
|
||||
return FALSE;
|
||||
|
||||
utf16_filename = u8to16 (filename);
|
||||
ret = _wstati64 (utf16_filename, &stat);
|
||||
g_free (utf16_filename);
|
||||
|
||||
if ((test & G_FILE_TEST_EXISTS) != 0) {
|
||||
if (ret == 0)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (ret != 0)
|
||||
return FALSE;
|
||||
|
||||
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
|
||||
if (stat.st_mode & _S_IEXEC)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
|
||||
if (stat.st_mode & _S_IFREG)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_DIR) != 0) {
|
||||
if (stat.st_mode & _S_IFDIR)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* make this last in case it is OR'd with something else */
|
||||
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
@@ -28,7 +28,22 @@
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <io.h>
|
||||
#define open _open
|
||||
#define S_ISREG(x) ((x & _S_IFMT) == _S_IFREG)
|
||||
#define S_ISDIR(x) ((x & _S_IFMT) == _S_IFDIR)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
GFileError
|
||||
g_file_error_from_errno (gint err_no)
|
||||
@@ -91,4 +106,221 @@ g_file_error_from_errno (gint err_no)
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef O_LARGEFILE
|
||||
#define OPEN_FLAGS (O_RDONLY)
|
||||
#else
|
||||
#define OPEN_FLAGS (O_RDONLY | O_LARGEFILE)
|
||||
#endif
|
||||
gboolean
|
||||
g_file_get_contents (const gchar *filename, gchar **contents, gsize *length, GError **error)
|
||||
{
|
||||
gchar *str;
|
||||
int fd;
|
||||
struct stat st;
|
||||
long offset;
|
||||
int nread;
|
||||
|
||||
g_return_val_if_fail (filename != NULL, FALSE);
|
||||
g_return_val_if_fail (contents != NULL, FALSE);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
||||
|
||||
*contents = NULL;
|
||||
if (length)
|
||||
*length = 0;
|
||||
|
||||
fd = open (filename, OPEN_FLAGS);
|
||||
if (fd == -1) {
|
||||
if (error != NULL) {
|
||||
int err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error opening file");
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (fstat (fd, &st) != 0) {
|
||||
if (error != NULL) {
|
||||
int err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in fstat()");
|
||||
}
|
||||
close (fd);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
str = g_malloc (st.st_size + 1);
|
||||
offset = 0;
|
||||
do {
|
||||
nread = read (fd, str + offset, st.st_size - offset);
|
||||
if (nread > 0) {
|
||||
offset += nread;
|
||||
}
|
||||
} while ((nread > 0 && offset < st.st_size) || (nread == -1 && errno == EINTR));
|
||||
|
||||
close (fd);
|
||||
str [st.st_size] = '\0';
|
||||
if (length) {
|
||||
*length = st.st_size;
|
||||
}
|
||||
*contents = str;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
int mkstemp (char *tmp_template)
|
||||
{
|
||||
int fd;
|
||||
gunichar2* utf16_template;
|
||||
|
||||
utf16_template = u8to16 (tmp_template);
|
||||
|
||||
fd = -1;
|
||||
utf16_template = _wmktemp( utf16_template);
|
||||
if (utf16_template && *utf16_template) {
|
||||
/* FIXME: _O_TEMPORARY causes file to disappear on close causing a test to fail */
|
||||
fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_EXCL, _S_IREAD | _S_IWRITE);
|
||||
}
|
||||
|
||||
sprintf (tmp_template + strlen (tmp_template) - 6, "%S", utf16_template + wcslen (utf16_template) - 6);
|
||||
|
||||
g_free (utf16_template);
|
||||
return fd;
|
||||
}
|
||||
#endif
|
||||
|
||||
gint
|
||||
g_file_open_tmp (const gchar *tmpl, gchar **name_used, GError **error)
|
||||
{
|
||||
const static gchar *default_tmpl = ".XXXXXX";
|
||||
gchar *t;
|
||||
gint fd;
|
||||
size_t len;
|
||||
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, -1);
|
||||
|
||||
if (tmpl == NULL)
|
||||
tmpl = default_tmpl;
|
||||
|
||||
if (strchr (tmpl, G_DIR_SEPARATOR) != NULL) {
|
||||
if (error) {
|
||||
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should not have any " G_DIR_SEPARATOR_S);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
len = strlen (tmpl);
|
||||
if (len < 6 || strcmp (tmpl + len - 6, "XXXXXX")) {
|
||||
if (error) {
|
||||
*error = g_error_new (G_LOG_DOMAIN, 24, "Template should end with XXXXXX");
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
t = g_build_filename (g_get_tmp_dir (), tmpl, NULL);
|
||||
|
||||
fd = mkstemp (t);
|
||||
|
||||
if (fd == -1) {
|
||||
if (error) {
|
||||
int err = errno;
|
||||
*error = g_error_new (G_LOG_DOMAIN, g_file_error_from_errno (err), "Error in mkstemp()");
|
||||
}
|
||||
g_free (t);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (name_used) {
|
||||
*name_used = t;
|
||||
} else {
|
||||
g_free (t);
|
||||
}
|
||||
return fd;
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4701)
|
||||
#endif
|
||||
|
||||
gboolean
|
||||
g_file_test (const gchar *filename, GFileTest test)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
struct _stat64 stat;
|
||||
int ret = 0;
|
||||
gunichar2* utf16_filename = NULL;
|
||||
|
||||
if (filename == NULL || test == 0)
|
||||
return FALSE;
|
||||
|
||||
utf16_filename = u8to16 (filename);
|
||||
ret = _wstati64 (utf16_filename, &stat);
|
||||
g_free (utf16_filename);
|
||||
|
||||
if ((test & G_FILE_TEST_EXISTS) != 0) {
|
||||
if (ret == 0)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (ret != 0)
|
||||
return FALSE;
|
||||
|
||||
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
|
||||
if (stat.st_mode & _S_IEXEC)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
|
||||
if (stat.st_mode & _S_IFREG)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_DIR) != 0) {
|
||||
if (stat.st_mode & _S_IFDIR)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* make this last in case it is OR'd with something else */
|
||||
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
#else
|
||||
struct stat st;
|
||||
gboolean have_stat;
|
||||
|
||||
if (filename == NULL || test == 0)
|
||||
return FALSE;
|
||||
|
||||
have_stat = FALSE;
|
||||
|
||||
if ((test & G_FILE_TEST_EXISTS) != 0) {
|
||||
if (access (filename, F_OK) == 0)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
|
||||
if (access (filename, X_OK) == 0)
|
||||
return TRUE;
|
||||
}
|
||||
if ((test & G_FILE_TEST_IS_SYMLINK) != 0) {
|
||||
have_stat = (lstat (filename, &st) == 0);
|
||||
if (have_stat && S_ISLNK (st.st_mode))
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
|
||||
if (!have_stat)
|
||||
have_stat = (stat (filename, &st) == 0);
|
||||
if (have_stat && S_ISREG (st.st_mode))
|
||||
return TRUE;
|
||||
}
|
||||
if ((test & G_FILE_TEST_IS_DIR) != 0) {
|
||||
if (!have_stat)
|
||||
have_stat = (stat (filename, &st) == 0);
|
||||
if (have_stat && S_ISDIR (st.st_mode))
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
+1
-17
@@ -38,7 +38,6 @@ typedef const void * gconstpointer;
|
||||
typedef char gchar;
|
||||
typedef unsigned char guchar;
|
||||
|
||||
#if !G_TYPES_DEFINED
|
||||
#ifdef _MSC_VER
|
||||
typedef __int8 gint8;
|
||||
typedef unsigned __int8 guint8;
|
||||
@@ -65,8 +64,6 @@ typedef float gfloat;
|
||||
typedef double gdouble;
|
||||
typedef uint16_t gunichar2;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Macros
|
||||
@@ -125,7 +122,7 @@ static inline gpointer g_malloc0 (gsize x) {if (x) return calloc(1,x); else retu
|
||||
#define g_alloca(size) alloca (size)
|
||||
|
||||
gpointer g_memdup (gconstpointer mem, guint byte_size);
|
||||
static inline gchar *g_strdup (const gchar *str) { if (str) {return strdup (str);} return NULL; }
|
||||
gchar *g_strdup (const gchar *str);
|
||||
|
||||
typedef struct {
|
||||
gpointer (*malloc) (gsize n_bytes);
|
||||
@@ -768,15 +765,6 @@ gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context,
|
||||
/*
|
||||
* Character set conversion
|
||||
*/
|
||||
/*
|
||||
* Index into the table below with the first byte of a UTF-8 sequence to
|
||||
* get the number of trailing bytes that are supposed to follow it.
|
||||
* Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
|
||||
* left as-is for anyone who may want to do such conversion, which was
|
||||
* allowed in earlier algorithms.
|
||||
*/
|
||||
extern const gchar g_trailingBytesForUTF8[256];
|
||||
|
||||
gboolean g_get_charset (G_CONST_RETURN char **charset);
|
||||
gchar *g_locale_to_utf8 (const gchar *opsysstring, gssize len,
|
||||
gsize *bytes_read, gsize *bytes_written,
|
||||
@@ -789,9 +777,6 @@ gchar *g_convert (const gchar *str, gssize len,
|
||||
const gchar *to_codeset, const gchar *from_codeset,
|
||||
gsize *bytes_read, gsize *bytes_written, GError **error);
|
||||
gboolean g_utf8_validate (const gchar *str, gssize max_len, const gchar **end);
|
||||
gunichar g_utf8_get_char (const gchar *src);
|
||||
glong g_utf8_strlen (const gchar *str, gssize max);
|
||||
#define g_utf8_next_char(p) p + (g_trailingBytesForUTF8[(guchar)(*p)] + 1)
|
||||
|
||||
/*
|
||||
* Empty thread functions, not used by eglib
|
||||
@@ -844,4 +829,3 @@ glong g_utf8_strlen (const gchar *str, gssize max);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
+11
-11
@@ -124,7 +124,7 @@ parse_value (const char *p, const char *end, char **value, GError **error)
|
||||
return end;
|
||||
l = (int)(p - start);
|
||||
p++;
|
||||
*value = g_malloc (l + 1);
|
||||
*value = malloc (l + 1);
|
||||
if (*value == NULL)
|
||||
return end;
|
||||
strncpy (*value, start, l);
|
||||
@@ -144,7 +144,7 @@ parse_name (const char *p, const char *end, char **value)
|
||||
return end;
|
||||
|
||||
l = (int)(p - start);
|
||||
*value = g_malloc (l + 1);
|
||||
*value = malloc (l + 1);
|
||||
if (*value == NULL)
|
||||
return end;
|
||||
strncpy (*value, start, l);
|
||||
@@ -183,24 +183,24 @@ parse_attributes (const char *p, const char *end, char ***names, char ***values,
|
||||
|
||||
p = skip_space (p, end);
|
||||
if (p == end){
|
||||
g_free (name);
|
||||
free (name);
|
||||
return p;
|
||||
}
|
||||
if (*p != '='){
|
||||
set_error ("Expected an = after the attribute name `%s'", name);
|
||||
g_free (name);
|
||||
free (name);
|
||||
return end;
|
||||
}
|
||||
p++;
|
||||
p = skip_space (p, end);
|
||||
if (p == end){
|
||||
g_free (name);
|
||||
free (name);
|
||||
return end;
|
||||
}
|
||||
|
||||
p = parse_value (p, end, &value, error);
|
||||
if (p == end){
|
||||
g_free (name);
|
||||
free (name);
|
||||
return p;
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
|
||||
goto fail;
|
||||
}
|
||||
l = (int)(element_end - element_start);
|
||||
ename = g_malloc (l + 1);
|
||||
ename = malloc (l + 1);
|
||||
if (ename == NULL)
|
||||
goto fail;
|
||||
strncpy (ename, element_start, l);
|
||||
@@ -331,7 +331,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
|
||||
}
|
||||
|
||||
if (error != NULL && *error != NULL){
|
||||
g_free (ename);
|
||||
free (ename);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
g_free (ename);
|
||||
free (ename);
|
||||
} else {
|
||||
context->level = g_slist_prepend (context->level, ename);
|
||||
}
|
||||
@@ -404,11 +404,11 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
|
||||
if (context->parser.end_element != NULL){
|
||||
context->parser.end_element (context, text, context->user_data, error);
|
||||
if (error != NULL && *error != NULL){
|
||||
g_free (text);
|
||||
free (text);
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
g_free (text);
|
||||
free (text);
|
||||
|
||||
while (p < end && *p != '>')
|
||||
p++;
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
/*
|
||||
* gmisc.c: Misc functions with no place to go (right now)
|
||||
*
|
||||
* Author:
|
||||
* Aaron Bockover ([email protected])
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <glib.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
const gchar *
|
||||
g_getenv(const gchar *variable)
|
||||
{
|
||||
return getenv(variable);
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
|
||||
{
|
||||
return setenv(variable, value, overwrite) == 0;
|
||||
}
|
||||
|
||||
void
|
||||
g_unsetenv(const gchar *variable)
|
||||
{
|
||||
unsetenv(variable);
|
||||
}
|
||||
|
||||
gchar*
|
||||
g_win32_getlocale(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_path_is_absolute (const char *filename)
|
||||
{
|
||||
g_return_val_if_fail (filename != NULL, FALSE);
|
||||
|
||||
return (*filename == '/');
|
||||
}
|
||||
|
||||
static pthread_mutex_t home_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static const gchar *home_dir;
|
||||
|
||||
/* Give preference to /etc/passwd than HOME */
|
||||
const gchar *
|
||||
g_get_home_dir (void)
|
||||
{
|
||||
if (home_dir == NULL){
|
||||
pthread_mutex_lock (&home_lock);
|
||||
if (home_dir == NULL){
|
||||
#ifdef HAVE_GETPWENT_R
|
||||
struct passwd pwbuf, *track;
|
||||
char buf [4096];
|
||||
uid_t uid;
|
||||
|
||||
uid = getuid ();
|
||||
|
||||
setpwent ();
|
||||
|
||||
while (getpwent_r (&pwbuf, buf, sizeof (buf), &track) == 0){
|
||||
if (pwbuf.pw_uid == uid){
|
||||
home_dir = g_strdup (pwbuf.pw_dir);
|
||||
break;
|
||||
}
|
||||
}
|
||||
endpwent ();
|
||||
#endif
|
||||
if (home_dir == NULL)
|
||||
home_dir = g_getenv ("HOME");
|
||||
pthread_mutex_unlock (&home_lock);
|
||||
}
|
||||
}
|
||||
return home_dir;
|
||||
}
|
||||
|
||||
const char *
|
||||
g_get_user_name (void)
|
||||
{
|
||||
const char *retName = g_getenv ("USER");
|
||||
return retName;
|
||||
}
|
||||
|
||||
static const char *tmp_dir;
|
||||
|
||||
static pthread_mutex_t tmp_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
const gchar *
|
||||
g_get_tmp_dir (void)
|
||||
{
|
||||
if (tmp_dir == NULL){
|
||||
pthread_mutex_lock (&tmp_lock);
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TMPDIR");
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TMP");
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TEMP");
|
||||
if (tmp_dir == NULL)
|
||||
tmp_dir = "/tmp";
|
||||
}
|
||||
}
|
||||
}
|
||||
pthread_mutex_unlock (&tmp_lock);
|
||||
}
|
||||
return tmp_dir;
|
||||
}
|
||||
|
||||
@@ -29,13 +29,14 @@
|
||||
#include <stdlib.h>
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <windows.h>
|
||||
#include <direct.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
const gchar *
|
||||
g_getenv(const gchar *variable)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
gunichar2 *var, *buffer;
|
||||
gchar* val = NULL;
|
||||
gint32 buffer_size = 1024;
|
||||
@@ -55,11 +56,15 @@ g_getenv(const gchar *variable)
|
||||
g_free(var);
|
||||
g_free(buffer);
|
||||
return val;
|
||||
#else
|
||||
return getenv(variable);
|
||||
#endif
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
gunichar2 *var, *val;
|
||||
gboolean result;
|
||||
var = u8to16(variable);
|
||||
@@ -68,83 +73,35 @@ g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
|
||||
g_free(var);
|
||||
g_free(val);
|
||||
return result;
|
||||
#else
|
||||
return setenv(variable, value, overwrite) == 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
g_unsetenv(const gchar *variable)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
gunichar2 *var;
|
||||
var = u8to16(variable);
|
||||
SetEnvironmentVariable(var, TEXT(""));
|
||||
g_free(var);
|
||||
#else
|
||||
unsetenv(variable);
|
||||
#endif
|
||||
}
|
||||
|
||||
gchar*
|
||||
g_win32_getlocale(void)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
/* FIXME: Use GetThreadLocale
|
||||
* and convert LCID to standard
|
||||
* string form, "en_US" */
|
||||
return strdup ("en_US");
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_path_is_absolute (const char *filename)
|
||||
{
|
||||
g_return_val_if_fail (filename != NULL, FALSE);
|
||||
|
||||
if (filename[0] != '\0' && filename[1] != '\0' && filename[1] == ':' &&
|
||||
filename[2] != '\0' && (filename[2] == '\\' || filename[2] == '/'))
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
const gchar *
|
||||
g_get_home_dir (void)
|
||||
{
|
||||
/* FIXME */
|
||||
const gchar *drive = g_getenv ("HOMEDRIVE");
|
||||
const gchar *path = g_getenv ("HOMEPATH");
|
||||
gchar *home_dir = NULL;
|
||||
|
||||
if (drive && path) {
|
||||
home_dir = g_malloc(strlen(drive) + strlen(path) +1);
|
||||
if (home_dir) {
|
||||
sprintf(home_dir, "%s%s", drive, path);
|
||||
}
|
||||
}
|
||||
|
||||
return home_dir;
|
||||
}
|
||||
|
||||
const char *
|
||||
g_get_user_name (void)
|
||||
{
|
||||
const char * retName = g_getenv ("USER");
|
||||
if (!retName)
|
||||
retName = g_getenv ("USERNAME");
|
||||
return retName;
|
||||
}
|
||||
|
||||
static const char *tmp_dir;
|
||||
|
||||
const gchar *
|
||||
g_get_tmp_dir (void)
|
||||
{
|
||||
if (tmp_dir == NULL){
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TMPDIR");
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TMP");
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TEMP");
|
||||
if (tmp_dir == NULL)
|
||||
tmp_dir = "C:\\temp";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return tmp_dir;
|
||||
}
|
||||
|
||||
@@ -1,185 +0,0 @@
|
||||
/*
|
||||
* gmodule.c: dl* functions, glib style
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected])
|
||||
* Jonathan Chambers ([email protected])
|
||||
* Robert Jordan ([email protected])
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
* (C) 2006 Jonathan Chambers
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <glib.h>
|
||||
#include <gmodule.h>
|
||||
#include <windows.h>
|
||||
#include <psapi.h>
|
||||
|
||||
#define LIBSUFFIX ".dll"
|
||||
#define LIBPREFIX ""
|
||||
|
||||
struct _GModule {
|
||||
HMODULE handle;
|
||||
int main_module;
|
||||
};
|
||||
|
||||
GModule *
|
||||
g_module_open (const gchar *file, GModuleFlags flags)
|
||||
{
|
||||
GModule *module;
|
||||
module = g_malloc (sizeof (GModule));
|
||||
if (module == NULL)
|
||||
return NULL;
|
||||
|
||||
if (file != NULL) {
|
||||
gunichar2 *file16;
|
||||
file16 = u8to16(file);
|
||||
module->main_module = FALSE;
|
||||
module->handle = LoadLibrary (file16);
|
||||
g_free(file16);
|
||||
if (!module->handle) {
|
||||
g_free (module);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
} else {
|
||||
module->main_module = TRUE;
|
||||
module->handle = GetModuleHandle (NULL);
|
||||
}
|
||||
|
||||
return module;
|
||||
}
|
||||
|
||||
static gpointer
|
||||
w32_find_symbol (const gchar *symbol_name)
|
||||
{
|
||||
HMODULE *modules;
|
||||
DWORD buffer_size = sizeof (HMODULE) * 1024;
|
||||
DWORD needed, i;
|
||||
|
||||
modules = (HMODULE *) g_malloc (buffer_size);
|
||||
|
||||
if (modules == NULL)
|
||||
return NULL;
|
||||
|
||||
if (!EnumProcessModules (GetCurrentProcess (), modules,
|
||||
buffer_size, &needed)) {
|
||||
g_free (modules);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* check whether the supplied buffer was too small, realloc, retry */
|
||||
if (needed > buffer_size) {
|
||||
g_free (modules);
|
||||
|
||||
buffer_size = needed;
|
||||
modules = (HMODULE *) g_malloc (buffer_size);
|
||||
|
||||
if (modules == NULL)
|
||||
return NULL;
|
||||
|
||||
if (!EnumProcessModules (GetCurrentProcess (), modules,
|
||||
buffer_size, &needed)) {
|
||||
g_free (modules);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < needed / sizeof (HANDLE); i++) {
|
||||
gpointer proc = (gpointer)(intptr_t)GetProcAddress (modules [i], symbol_name);
|
||||
if (proc != NULL) {
|
||||
g_free (modules);
|
||||
return proc;
|
||||
}
|
||||
}
|
||||
|
||||
g_free (modules);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol)
|
||||
{
|
||||
if (module == NULL || symbol_name == NULL || symbol == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (module->main_module) {
|
||||
*symbol = (gpointer)(intptr_t)GetProcAddress (module->handle, symbol_name);
|
||||
if (*symbol != NULL)
|
||||
return TRUE;
|
||||
|
||||
*symbol = w32_find_symbol (symbol_name);
|
||||
return *symbol != NULL;
|
||||
} else {
|
||||
*symbol = (gpointer)(intptr_t)GetProcAddress (module->handle, symbol_name);
|
||||
return *symbol != NULL;
|
||||
}
|
||||
}
|
||||
|
||||
const gchar *
|
||||
g_module_error (void)
|
||||
{
|
||||
gchar* ret = NULL;
|
||||
TCHAR* buf = NULL;
|
||||
DWORD code = GetLastError ();
|
||||
|
||||
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER, NULL,
|
||||
code, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, 0, NULL);
|
||||
|
||||
ret = u16to8 (buf);
|
||||
LocalFree(buf);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_module_close (GModule *module)
|
||||
{
|
||||
HMODULE handle;
|
||||
int main_module;
|
||||
|
||||
if (module == NULL || module->handle == NULL)
|
||||
return FALSE;
|
||||
|
||||
handle = module->handle;
|
||||
main_module = module->main_module;
|
||||
module->handle = NULL;
|
||||
g_free (module);
|
||||
return (main_module ? 1 : (0 == FreeLibrary (handle)));
|
||||
}
|
||||
|
||||
gchar *
|
||||
g_module_build_path (const gchar *directory, const gchar *module_name)
|
||||
{
|
||||
char *lib_prefix = "";
|
||||
|
||||
if (module_name == NULL)
|
||||
return NULL;
|
||||
|
||||
if (strncmp (module_name, "lib", 3) != 0)
|
||||
lib_prefix = LIBPREFIX;
|
||||
|
||||
if (directory && *directory){
|
||||
|
||||
return g_strdup_printf ("%s/%s%s" LIBSUFFIX, directory, lib_prefix, module_name);
|
||||
}
|
||||
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
|
||||
}
|
||||
@@ -285,4 +285,3 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
|
||||
}
|
||||
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,4 @@ const gchar *g_module_error (void);
|
||||
gboolean g_module_close (GModule *module);
|
||||
gchar * g_module_build_path (const gchar *directory, const gchar *module_name);
|
||||
|
||||
extern char *gmodule_libprefix;
|
||||
extern char *gmodule_libsuffix;
|
||||
|
||||
#endif
|
||||
+1
-4
@@ -73,11 +73,8 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
|
||||
log_domain != NULL ? ": " : "",
|
||||
msg);
|
||||
free (msg);
|
||||
if (log_level & fatal){
|
||||
fflush (stdout);
|
||||
fflush (stderr);
|
||||
if (log_level & fatal)
|
||||
abort ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
+143
-2
@@ -29,15 +29,26 @@
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <direct.h>
|
||||
#ifdef G_OS_UNIX
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <direct.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
|
||||
gchar *
|
||||
g_build_path (const gchar *separator, const gchar *first_element, ...)
|
||||
{
|
||||
@@ -131,6 +142,21 @@ g_path_get_basename (const char *filename)
|
||||
return g_strdup (&r[1]);
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_path_is_absolute (const char *filename)
|
||||
{
|
||||
g_return_val_if_fail (filename != NULL, FALSE);
|
||||
#ifdef G_OS_WIN32
|
||||
if (filename[0] != '\0' && filename[1] != '\0' && filename[1] == ':' &&
|
||||
filename[2] != '\0' && (filename[2] == '\\' || filename[2] == '/'))
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
#else
|
||||
return (*filename == '/');
|
||||
#endif
|
||||
}
|
||||
|
||||
gchar *
|
||||
g_find_program_in_path (const gchar *program)
|
||||
{
|
||||
@@ -182,6 +208,121 @@ g_get_current_dir (void)
|
||||
return r;
|
||||
}
|
||||
|
||||
#if defined (G_OS_UNIX)
|
||||
|
||||
static pthread_mutex_t home_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static const gchar *home_dir;
|
||||
|
||||
/* Give preference to /etc/passwd than HOME */
|
||||
const gchar *
|
||||
g_get_home_dir (void)
|
||||
{
|
||||
if (home_dir == NULL){
|
||||
pthread_mutex_lock (&home_lock);
|
||||
if (home_dir == NULL){
|
||||
#ifdef HAVE_GETPWENT_R
|
||||
struct passwd pwbuf, *track;
|
||||
char buf [4096];
|
||||
uid_t uid;
|
||||
|
||||
uid = getuid ();
|
||||
|
||||
setpwent ();
|
||||
|
||||
while (getpwent_r (&pwbuf, buf, sizeof (buf), &track) == 0){
|
||||
if (pwbuf.pw_uid == uid){
|
||||
home_dir = g_strdup (pwbuf.pw_dir);
|
||||
break;
|
||||
}
|
||||
}
|
||||
endpwent ();
|
||||
#endif
|
||||
if (home_dir == NULL)
|
||||
home_dir = g_getenv ("HOME");
|
||||
pthread_mutex_unlock (&home_lock);
|
||||
}
|
||||
}
|
||||
return home_dir;
|
||||
}
|
||||
|
||||
#elif defined (G_OS_WIN32)
|
||||
#include <windows.h>
|
||||
|
||||
const gchar *
|
||||
g_get_home_dir (void)
|
||||
{
|
||||
/* FIXME */
|
||||
const gchar *drive = g_getenv ("HOMEDRIVE");
|
||||
const gchar *path = g_getenv ("HOMEPATH");
|
||||
gchar *home_dir = NULL;
|
||||
|
||||
if (drive && path) {
|
||||
home_dir = malloc(strlen(drive) + strlen(path) +1);
|
||||
if (home_dir) {
|
||||
sprintf(home_dir, "%s%s", drive, path);
|
||||
}
|
||||
}
|
||||
|
||||
return home_dir;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
const gchar *
|
||||
g_get_home_dir (void)
|
||||
{
|
||||
g_error ("%s", "g_get_home_dir not implemented on this platform");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static const char *tmp_dir;
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
static pthread_mutex_t tmp_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
#endif
|
||||
|
||||
const gchar *
|
||||
g_get_tmp_dir (void)
|
||||
{
|
||||
if (tmp_dir == NULL){
|
||||
#ifdef G_OS_UNIX
|
||||
pthread_mutex_lock (&tmp_lock);
|
||||
#endif
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TMPDIR");
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TMP");
|
||||
if (tmp_dir == NULL){
|
||||
tmp_dir = g_getenv ("TEMP");
|
||||
if (tmp_dir == NULL)
|
||||
#if defined (G_OS_WIN32)
|
||||
tmp_dir = "C:\\temp";
|
||||
#else
|
||||
tmp_dir = "/tmp";
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef G_OS_UNIX
|
||||
pthread_mutex_unlock (&tmp_lock);
|
||||
#endif
|
||||
}
|
||||
return tmp_dir;
|
||||
}
|
||||
|
||||
const char *
|
||||
g_get_user_name (void)
|
||||
{
|
||||
const char * retName = g_getenv ("USER");
|
||||
#if defined (G_OS_WIN32)
|
||||
if (!retName)
|
||||
retName = g_getenv ("USERNAME");
|
||||
#endif
|
||||
return retName;
|
||||
}
|
||||
|
||||
static char *name;
|
||||
|
||||
void
|
||||
|
||||
@@ -37,8 +37,7 @@ typedef enum {
|
||||
MATCH_LITERAL,
|
||||
MATCH_ANYCHAR,
|
||||
MATCH_ANYTHING,
|
||||
MATCH_ANYTHING_END,
|
||||
MATCH_INVALID = -1
|
||||
MATCH_ANYTHING_END
|
||||
} MatchType;
|
||||
|
||||
typedef struct {
|
||||
@@ -57,7 +56,7 @@ compile_pattern (const gchar *pattern)
|
||||
size_t i, len;
|
||||
PData *data;
|
||||
gchar c;
|
||||
MatchType last = MATCH_INVALID;
|
||||
MatchType last = -1;
|
||||
GString *str;
|
||||
gboolean free_str;
|
||||
|
||||
|
||||
+10
-1
@@ -40,7 +40,7 @@ g_strndup (const gchar *str, gsize n)
|
||||
return strndup (str, n);
|
||||
#else
|
||||
if (str) {
|
||||
char *retval = g_malloc(n+1);
|
||||
char *retval = malloc(n+1);
|
||||
if (retval) {
|
||||
strncpy(retval, str, n)[n] = 0;
|
||||
}
|
||||
@@ -817,6 +817,15 @@ g_strescape (const gchar *source, const gchar *exceptions)
|
||||
return result;
|
||||
}
|
||||
|
||||
gchar *
|
||||
g_strdup (const gchar *str)
|
||||
{
|
||||
if (str == NULL)
|
||||
return NULL;
|
||||
|
||||
return strdup (str);
|
||||
}
|
||||
|
||||
gint
|
||||
g_ascii_xdigit_value (gchar c)
|
||||
{
|
||||
|
||||
+1
-1
@@ -159,7 +159,7 @@ g_string_append_printf (GString *string, const gchar *format, ...)
|
||||
va_end (args);
|
||||
g_string_append (string, ret);
|
||||
|
||||
g_free (ret);
|
||||
free (ret);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* Timer
|
||||
*
|
||||
* Author:
|
||||
* Gonzalo Paniagua Javier ([email protected]
|
||||
*
|
||||
* (C) 2006 Novell, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <glib.h>
|
||||
#include <windows.h>
|
||||
|
||||
struct _GTimer {
|
||||
guint64 start;
|
||||
guint64 stop;
|
||||
};
|
||||
|
||||
GTimer *g_timer_new (void)
|
||||
{
|
||||
GTimer *timer;
|
||||
|
||||
timer = g_new0 (GTimer, 1);
|
||||
g_timer_start (timer);
|
||||
return timer;
|
||||
}
|
||||
|
||||
void
|
||||
g_timer_destroy (GTimer *timer)
|
||||
{
|
||||
g_return_if_fail (timer != NULL);
|
||||
g_free (timer);
|
||||
}
|
||||
|
||||
void
|
||||
g_timer_start (GTimer *timer)
|
||||
{
|
||||
g_return_if_fail (timer != NULL);
|
||||
|
||||
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->start);
|
||||
}
|
||||
|
||||
void
|
||||
g_timer_stop (GTimer *timer)
|
||||
{
|
||||
g_return_if_fail (timer != NULL);
|
||||
|
||||
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->stop);
|
||||
}
|
||||
|
||||
gdouble
|
||||
g_timer_elapsed (GTimer *timer, gulong *microseconds)
|
||||
{
|
||||
guint64 stop;
|
||||
guint64 freq;
|
||||
gdouble seconds;
|
||||
if (timer->stop == 0) {
|
||||
QueryPerformanceCounter ((LARGE_INTEGER*)&stop);
|
||||
}
|
||||
else {
|
||||
stop = timer->stop;
|
||||
}
|
||||
|
||||
QueryPerformanceFrequency ((LARGE_INTEGER*)&freq);
|
||||
seconds = 1.0 * (stop - timer->start) / freq;
|
||||
|
||||
if (microseconds) {
|
||||
*microseconds = (gulong)(1000000.0 * (stop - timer->start) / freq);
|
||||
}
|
||||
return seconds;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,11 +26,20 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <glib.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
struct _GTimer {
|
||||
#ifdef _MSC_VER
|
||||
guint64 start;
|
||||
guint64 stop;
|
||||
#else
|
||||
struct timeval start;
|
||||
struct timeval stop;
|
||||
#endif
|
||||
};
|
||||
|
||||
GTimer *g_timer_new (void)
|
||||
@@ -53,20 +62,48 @@ void
|
||||
g_timer_start (GTimer *timer)
|
||||
{
|
||||
g_return_if_fail (timer != NULL);
|
||||
#ifdef _MSC_VER
|
||||
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->start);
|
||||
#else
|
||||
gettimeofday (&timer->start, NULL);
|
||||
memset (&timer->stop, 0, sizeof (struct timeval));
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
g_timer_stop (GTimer *timer)
|
||||
{
|
||||
g_return_if_fail (timer != NULL);
|
||||
#ifdef _MSC_VER
|
||||
QueryPerformanceCounter ((LARGE_INTEGER*)&timer->stop);
|
||||
#else
|
||||
gettimeofday (&timer->stop, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
gdouble
|
||||
g_timer_elapsed (GTimer *timer, gulong *microseconds)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
guint64 stop;
|
||||
guint64 freq;
|
||||
gdouble seconds;
|
||||
if (timer->stop == 0) {
|
||||
QueryPerformanceCounter ((LARGE_INTEGER*)&stop);
|
||||
}
|
||||
else {
|
||||
stop = timer->stop;
|
||||
}
|
||||
|
||||
QueryPerformanceFrequency ((LARGE_INTEGER*)&freq);
|
||||
seconds = 1.0 * (stop - timer->start) / freq;
|
||||
|
||||
if (microseconds) {
|
||||
*microseconds = (gulong)(1000000.0 * (stop - timer->start) / freq);
|
||||
}
|
||||
return seconds;
|
||||
#else
|
||||
struct timeval tv;
|
||||
gulong seconds;
|
||||
long usec;
|
||||
@@ -91,6 +128,7 @@ g_timer_elapsed (GTimer *timer, gulong *microseconds)
|
||||
}
|
||||
result = seconds * 1000000 + usec;
|
||||
return (result / 1000000);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
+52
-125
@@ -50,35 +50,6 @@ typedef int iconv_t;
|
||||
static char *my_charset;
|
||||
static gboolean is_utf8;
|
||||
|
||||
/*
|
||||
* Character set conversion
|
||||
*/
|
||||
/*
|
||||
* Index into the table below with the first byte of a UTF-8 sequence to
|
||||
* get the number of trailing bytes that are supposed to follow it.
|
||||
* Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
|
||||
* left as-is for anyone who may want to do such conversion, which was
|
||||
* allowed in earlier algorithms.
|
||||
*/
|
||||
const gchar g_trailingBytesForUTF8 [256] = {
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,0,0
|
||||
};
|
||||
|
||||
/*
|
||||
* Magic values subtracted from a buffer value during UTF8 conversion.
|
||||
* This table contains as many values as there might be trailing bytes
|
||||
* in a UTF-8 sequence.
|
||||
*/
|
||||
static const gulong offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
|
||||
0x03C82080UL, 0xFA082080UL, 0x82082080UL };
|
||||
|
||||
GUnicodeType
|
||||
g_unichar_type (gunichar c)
|
||||
{
|
||||
@@ -254,105 +225,61 @@ g_locale_from_utf8 (const gchar *utf8string, gssize len, gsize *bytes_read, gsiz
|
||||
* Return value: true if @utf is valid.
|
||||
**/
|
||||
gboolean
|
||||
g_utf8_validate (const gchar *str, gssize max_len, const gchar **end)
|
||||
g_utf8_validate (const gchar *utf, gssize max_len, const gchar **end)
|
||||
{
|
||||
gssize byteCount = 0;
|
||||
gboolean retVal = TRUE;
|
||||
gboolean lastRet = TRUE;
|
||||
guchar* ptr = (guchar*) str;
|
||||
guint length;
|
||||
guchar a;
|
||||
guchar* srcPtr;
|
||||
if (max_len == 0)
|
||||
return 0;
|
||||
else if (max_len < 0)
|
||||
byteCount = max_len;
|
||||
while (*ptr != 0 && byteCount <= max_len) {
|
||||
length = g_trailingBytesForUTF8 [*ptr] + 1;
|
||||
srcPtr = (guchar*) ptr + length;
|
||||
switch (length) {
|
||||
default: retVal = FALSE;
|
||||
/* Everything else falls through when "TRUE"... */
|
||||
case 4: if ((a = (*--srcPtr)) < (guchar) 0x80 || a > (guchar) 0xBF) retVal = FALSE;
|
||||
if ((a == (guchar) 0xBF || a == (guchar) 0xBE) && *(srcPtr-1) == (guchar) 0xBF) {
|
||||
if (*(srcPtr-2) == (guchar) 0x8F || *(srcPtr-2) == (guchar) 0x9F ||
|
||||
*(srcPtr-2) == (guchar) 0xAF || *(srcPtr-2) == (guchar) 0xBF)
|
||||
retVal = FALSE;
|
||||
}
|
||||
case 3: if ((a = (*--srcPtr)) < (guchar) 0x80 || a > (guchar) 0xBF) retVal = FALSE;
|
||||
case 2: if ((a = (*--srcPtr)) < (guchar) 0x80 || a > (guchar) 0xBF) retVal = FALSE;
|
||||
int ix;
|
||||
|
||||
g_return_val_if_fail (utf != NULL, FALSE);
|
||||
|
||||
switch (*ptr) {
|
||||
/* no fall-through in this inner switch */
|
||||
case 0xE0: if (a < (guchar) 0xA0) retVal = FALSE; break;
|
||||
case 0xED: if (a > (guchar) 0x9F) retVal = FALSE; break;
|
||||
case 0xEF: if (a == (guchar)0xB7 && (*(srcPtr+1) > (guchar) 0x8F && *(srcPtr+1) < 0xB0)) retVal = FALSE;
|
||||
if (a == (guchar)0xBF && (*(srcPtr+1) == (guchar) 0xBE || *(srcPtr+1) == 0xBF)) retVal = FALSE; break;
|
||||
case 0xF0: if (a < (guchar) 0x90) retVal = FALSE; break;
|
||||
case 0xF4: if (a > (guchar) 0x8F) retVal = FALSE; break;
|
||||
default: if (a < (guchar) 0x80) retVal = FALSE;
|
||||
}
|
||||
|
||||
case 1: if (*ptr >= (guchar ) 0x80 && *ptr < (guchar) 0xC2) retVal = FALSE;
|
||||
}
|
||||
if (*ptr > (guchar) 0xF4)
|
||||
retVal = FALSE;
|
||||
//If the string is invalid, set the end to the invalid byte.
|
||||
if (!retVal && lastRet) {
|
||||
if (max_len == -1)
|
||||
max_len = strlen (utf);
|
||||
|
||||
/*
|
||||
* utf is a string of 1, 2, 3 or 4 bytes. The valid strings
|
||||
* are as follows (in "bit format"):
|
||||
* 0xxxxxxx valid 1-byte
|
||||
* 110xxxxx 10xxxxxx valid 2-byte
|
||||
* 1110xxxx 10xxxxxx 10xxxxxx valid 3-byte
|
||||
* 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx valid 4-byte
|
||||
*/
|
||||
for (ix = 0; ix < max_len;) { /* string is 0-terminated */
|
||||
unsigned char c;
|
||||
|
||||
c = utf[ix];
|
||||
if ((c & 0x80) == 0x00) { /* 1-byte code, starts with 10 */
|
||||
ix++;
|
||||
} else if ((c & 0xe0) == 0xc0) {/* 2-byte code, starts with 110 */
|
||||
if (((ix+1) >= max_len) || (utf[ix+1] & 0xc0 ) != 0x80){
|
||||
if (end != NULL)
|
||||
*end = &utf [ix];
|
||||
return FALSE;
|
||||
}
|
||||
ix += 2;
|
||||
} else if ((c & 0xf0) == 0xe0) {/* 3-byte code, starts with 1110 */
|
||||
if (((ix + 2) >= max_len) ||
|
||||
((utf[ix+1] & 0xc0) != 0x80) ||
|
||||
((utf[ix+2] & 0xc0) != 0x80)){
|
||||
if (end != NULL)
|
||||
*end = &utf [ix];
|
||||
return FALSE;
|
||||
}
|
||||
ix += 3;
|
||||
} else if ((c & 0xf8) == 0xf0) {/* 4-byte code, starts with 11110 */
|
||||
if (((ix + 3) >= max_len) ||
|
||||
((utf[ix+1] & 0xc0) != 0x80) ||
|
||||
((utf[ix+2] & 0xc0) != 0x80) ||
|
||||
((utf[ix+3] & 0xc0) != 0x80)){
|
||||
if (end != NULL)
|
||||
*end = &utf [ix];
|
||||
return FALSE;
|
||||
}
|
||||
ix += 4;
|
||||
} else {/* unknown encoding */
|
||||
if (end != NULL)
|
||||
*end = (gchar*) ptr;
|
||||
lastRet = FALSE;
|
||||
*end = &utf [ix];
|
||||
return FALSE;
|
||||
}
|
||||
ptr += length;
|
||||
if(max_len > 0)
|
||||
byteCount += length;
|
||||
}
|
||||
if (retVal && end != NULL)
|
||||
*end = (gchar*) ptr;
|
||||
return retVal;
|
||||
}
|
||||
/**
|
||||
* g_utf8_get_char
|
||||
* @src: Pointer to UTF-8 encoded character.
|
||||
*
|
||||
* Return value: UTF-16 value of @src
|
||||
**/
|
||||
gunichar
|
||||
g_utf8_get_char (const gchar *src)
|
||||
{
|
||||
gunichar ch = 0;
|
||||
guchar* ptr = (guchar*) src;
|
||||
gushort extraBytesToRead = g_trailingBytesForUTF8 [*ptr];
|
||||
|
||||
switch (extraBytesToRead) {
|
||||
case 5: ch += *ptr++; ch <<= 6; // remember, illegal UTF-8
|
||||
case 4: ch += *ptr++; ch <<= 6; // remember, illegal UTF-8
|
||||
case 3: ch += *ptr++; ch <<= 6;
|
||||
case 2: ch += *ptr++; ch <<= 6;
|
||||
case 1: ch += *ptr++; ch <<= 6;
|
||||
case 0: ch += *ptr;
|
||||
}
|
||||
ch -= offsetsFromUTF8 [extraBytesToRead];
|
||||
return ch;
|
||||
}
|
||||
glong
|
||||
g_utf8_strlen (const gchar *str, gssize max)
|
||||
{
|
||||
gssize byteCount = 0;
|
||||
guchar* ptr = (guchar*) str;
|
||||
glong length = 0;
|
||||
if (max == 0)
|
||||
return 0;
|
||||
else if (max < 0)
|
||||
byteCount = max;
|
||||
while (*ptr != 0 && byteCount <= max) {
|
||||
gssize cLen = g_trailingBytesForUTF8 [*ptr] + 1;
|
||||
if (max > 0 && (byteCount + cLen) > max)
|
||||
return length;
|
||||
ptr += cLen;
|
||||
length++;
|
||||
if (max > 0)
|
||||
byteCount += cLen;
|
||||
}
|
||||
return length;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
+20
-20
@@ -4,27 +4,27 @@
|
||||
|
||||
int vasprintf(char **ret, const char *fmt, va_list ap)
|
||||
{
|
||||
char *buf;
|
||||
int len;
|
||||
size_t buflen;
|
||||
va_list ap2;
|
||||
|
||||
char *buf;
|
||||
int len;
|
||||
size_t buflen;
|
||||
va_list ap2;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
ap2 = ap;
|
||||
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
|
||||
ap2 = ap;
|
||||
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
|
||||
#else
|
||||
va_copy(ap2, ap);
|
||||
len = vsnprintf(NULL, 0, fmt, ap2);
|
||||
va_copy(ap2, ap);
|
||||
len = vsnprintf(NULL, 0, fmt, ap2);
|
||||
#endif
|
||||
|
||||
if (len > 0 && (buf = malloc((buflen = (size_t) (len + 1)))) != NULL) {
|
||||
len = vsnprintf(buf, buflen, fmt, ap);
|
||||
*ret = buf;
|
||||
} else {
|
||||
*ret = NULL;
|
||||
len = -1;
|
||||
}
|
||||
|
||||
va_end(ap2);
|
||||
return len;
|
||||
|
||||
if (len > 0 && (buf = malloc((buflen = (size_t) (len + 1)))) != NULL) {
|
||||
len = vsnprintf(buf, buflen, fmt, ap);
|
||||
*ret = buf;
|
||||
} else {
|
||||
*ret = NULL;
|
||||
len = -1;
|
||||
}
|
||||
|
||||
va_end(ap2);
|
||||
return len;
|
||||
}
|
||||
@@ -23,8 +23,7 @@ SOURCES = \
|
||||
markup.c \
|
||||
utf8.c \
|
||||
endian.c \
|
||||
module.c \
|
||||
memory.c
|
||||
module.c
|
||||
|
||||
test_eglib_SOURCES = $(SOURCES)
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
|
||||
#include <glib.h>
|
||||
#include "test.h"
|
||||
|
||||
RESULT
|
||||
test_memory_zero_size_allocations ()
|
||||
{
|
||||
gpointer p;
|
||||
|
||||
p = g_malloc (0);
|
||||
if (p)
|
||||
return FAILED ("Calling g_malloc with size zero should return NULL.");
|
||||
|
||||
p = g_malloc0 (0);
|
||||
if (p)
|
||||
return FAILED ("Calling g_malloc0 with size zero should return NULL.");
|
||||
|
||||
p = g_realloc (NULL, 0);
|
||||
if (p)
|
||||
return FAILED ("Calling g_realloc with size zero should return NULL.");
|
||||
|
||||
p = g_new (int, 0);
|
||||
if (p)
|
||||
return FAILED ("Calling g_new with size zero should return NULL.");
|
||||
|
||||
p = g_new0 (int, 0);
|
||||
if (p)
|
||||
return FAILED ("Calling g_new0 with size zero should return NULL.");
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
static Test memory_tests [] = {
|
||||
{ "zero_size_allocations", test_memory_zero_size_allocations},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
DEFINE_TEST_GROUP_INIT(memory_tests_init, memory_tests)
|
||||
|
||||
@@ -21,7 +21,6 @@ DEFINE_TEST_GROUP_INIT_H(markup_tests_init);
|
||||
DEFINE_TEST_GROUP_INIT_H(utf8_tests_init);
|
||||
DEFINE_TEST_GROUP_INIT_H(endian_tests_init);
|
||||
DEFINE_TEST_GROUP_INIT_H(module_tests_init);
|
||||
DEFINE_TEST_GROUP_INIT_H(memory_tests_init);
|
||||
|
||||
static Group test_groups [] = {
|
||||
{"string", string_tests_init},
|
||||
@@ -45,7 +44,6 @@ static Group test_groups [] = {
|
||||
{"utf8", utf8_tests_init},
|
||||
{"endian", endian_tests_init},
|
||||
{"module", module_tests_init},
|
||||
{"memory", memory_tests_init},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
@@ -483,158 +483,6 @@ test_utf16_to_ucs4 ()
|
||||
|
||||
return OK;
|
||||
}
|
||||
RESULT
|
||||
test_utf8_strlen ()
|
||||
{
|
||||
gchar word1 [] = {0xC2, 0x82,0x45,0xE1, 0x81, 0x83,0x58,0xF1, 0x82, 0x82, 0x82,'\0'};//Valid, len = 5
|
||||
gchar word2 [] = {0xF1, 0x82, 0x82, 0x82,0xC2, 0x82,0x45,0xE1, 0x81, 0x83,0x58,'\0'};//Valid, len = 5
|
||||
gchar word3 [] = {'h','e',0xC2, 0x82,0x45,'\0'}; //Valid, len = 4
|
||||
gchar word4 [] = {0x62,0xC2, 0x82,0x45,0xE1, 0x81, 0x83,0x58,'\0'}; //Valid, len = 5
|
||||
|
||||
glong len = 0;
|
||||
|
||||
//Test word1
|
||||
len = g_utf8_strlen (word1,-1);
|
||||
if (len != 5)
|
||||
return FAILED ("Word1 expected length of 5, but was %i", len);
|
||||
//Do tests with different values for max parameter.
|
||||
len = g_utf8_strlen (word1,1);
|
||||
if (len != 0)
|
||||
return FAILED ("Word1, max = 1, expected length of 0, but was %i", len);
|
||||
len = g_utf8_strlen (word1,2);
|
||||
if (len != 1)
|
||||
return FAILED ("Word1, max = 1, expected length of 1, but was %i", len);
|
||||
len = g_utf8_strlen (word1,3);
|
||||
if (len != 2)
|
||||
return FAILED ("Word1, max = 2, expected length of 2, but was %i", len);
|
||||
|
||||
//Test word2
|
||||
len = g_utf8_strlen (word2,-1);
|
||||
if (len != 5)
|
||||
return FAILED ("Word2 expected length of 5, but was %i", len);
|
||||
|
||||
//Test word3
|
||||
len = g_utf8_strlen (word3,-1);
|
||||
if (len != 4)
|
||||
return FAILED ("Word3 expected length of 4, but was %i", len);
|
||||
|
||||
//Test word4
|
||||
len = g_utf8_strlen (word4,-1);
|
||||
if (len != 5)
|
||||
return FAILED ("Word4 expected length of 5, but was %i", len);
|
||||
|
||||
//Test null case
|
||||
len = g_utf8_strlen(NULL,0);
|
||||
if (len != 0)
|
||||
return FAILED ("Expected passing null to result in a length of 0");
|
||||
return OK;
|
||||
}
|
||||
|
||||
RESULT
|
||||
test_utf8_get_char()
|
||||
{
|
||||
gchar word1 [] = {0xC2, 0x82,0x45,0xE1, 0x81, 0x83,0x58,0xF1, 0x82, 0x82, 0x82,'\0'}; //Valid, len = 5
|
||||
|
||||
gunichar value = g_utf8_get_char (&word1 [0]);
|
||||
if (value != 0x82UL)
|
||||
return FAILED ("Expected value of 0x82, but was %x", value);
|
||||
value = g_utf8_get_char (&word1 [2]);
|
||||
if (value != 0x45UL)
|
||||
return FAILED ("Expected value of 0x45, but was %x", value);
|
||||
value = g_utf8_get_char (&word1 [3]);
|
||||
if (value != 0x1043UL)
|
||||
return FAILED ("Expected value of 0x1043, but was %x", value);
|
||||
value = g_utf8_get_char (&word1 [6]);
|
||||
if (value != 0x58UL)
|
||||
return FAILED ("Expected value of 0x58, but was %x", value);
|
||||
value = g_utf8_get_char (&word1 [7]);
|
||||
if (value != 0x42082UL)
|
||||
return FAILED ("Expected value of 0x42082, but was %x", value);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
RESULT
|
||||
test_utf8_next_char()
|
||||
{
|
||||
gchar word1 [] = {0xC2, 0x82,0x45,0xE1, 0x81, 0x83,0x58,0xF1, 0x82, 0x82, 0x82,'\0'}; //Valid, len = 5
|
||||
gchar word2 [] = {0xF1, 0x82, 0x82, 0x82,0xC2, 0x82,0x45,0xE1, 0x81, 0x83,0x58,'\0'}; //Valid, len = 5
|
||||
gchar word1ExpectedValues [] = {0xC2, 0x45,0xE1, 0x58, 0xF1};
|
||||
gchar word2ExpectedValues [] = {0xF1, 0xC2, 0x45, 0xE1, 0x58};
|
||||
|
||||
gchar* ptr = word1;
|
||||
gint count = 0;
|
||||
//Test word1
|
||||
while (*ptr != 0) {
|
||||
if (count > 4)
|
||||
return FAILED ("Word1 has gone past its expected length");
|
||||
if (*ptr != word1ExpectedValues[count])
|
||||
return FAILED ("Word1 has an incorrect next_char at index %i", count);
|
||||
ptr = g_utf8_next_char (ptr);
|
||||
count++;
|
||||
}
|
||||
|
||||
//Test word2
|
||||
count = 0;
|
||||
ptr = word2;
|
||||
while (*ptr != 0) {
|
||||
if (count > 4)
|
||||
return FAILED ("Word2 has gone past its expected length");
|
||||
if (*ptr != word2ExpectedValues[count])
|
||||
return FAILED ("Word2 has an incorrect next_char at index %i", count);
|
||||
ptr = g_utf8_next_char (ptr);
|
||||
count++;
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
RESULT
|
||||
test_utf8_validate()
|
||||
{
|
||||
gchar invalidWord1 [] = {0xC3, 0x82, 0xC1,0x90,'\0'}; //Invalid, 1nd oct Can't be 0xC0 or 0xC1
|
||||
gchar invalidWord2 [] = {0xC1, 0x89, 0x60, '\0'}; //Invalid, 1st oct can not be 0xC1
|
||||
gchar invalidWord3 [] = {0xC2, 0x45,0xE1, 0x81, 0x83,0x58,'\0'}; //Invalid, oct after 0xC2 must be > 0x80
|
||||
|
||||
gchar validWord1 [] = {0xC2, 0x82, 0xC3,0xA0,'\0'}; //Valid
|
||||
gchar validWord2 [] = {0xC2, 0x82,0x45,0xE1, 0x81, 0x83,0x58,0xF1, 0x82, 0x82, 0x82,'\0'}; //Valid
|
||||
|
||||
const gchar* end;
|
||||
gboolean retVal = g_utf8_validate (invalidWord1, -1, &end);
|
||||
if (retVal != FALSE)
|
||||
return FAILED ("Expected invalidWord1 to be invalid");
|
||||
if (end != &invalidWord1 [2])
|
||||
return FAILED ("Expected end parameter to be pointing to invalidWord1[2]");
|
||||
|
||||
end = NULL;
|
||||
retVal = g_utf8_validate (invalidWord2, -1, &end);
|
||||
if (retVal != FALSE)
|
||||
return FAILED ("Expected invalidWord2 to be invalid");
|
||||
if (end != &invalidWord2 [0])
|
||||
return FAILED ("Expected end parameter to be pointing to invalidWord2[0]");
|
||||
|
||||
end = NULL;
|
||||
retVal = g_utf8_validate (invalidWord3, -1, &end);
|
||||
if (retVal != FALSE)
|
||||
return FAILED ("Expected invalidWord3 to be invalid");
|
||||
if (end != &invalidWord3 [0])
|
||||
return FAILED ("Expected end parameter to be pointing to invalidWord3[1]");
|
||||
|
||||
end = NULL;
|
||||
retVal = g_utf8_validate (validWord1, -1, &end);
|
||||
if (retVal != TRUE)
|
||||
return FAILED ("Expected validWord1 to be valid");
|
||||
if (end != &validWord1 [4])
|
||||
return FAILED ("Expected end parameter to be pointing to validWord1[4]");
|
||||
|
||||
end = NULL;
|
||||
retVal = g_utf8_validate (validWord2, -1, &end);
|
||||
if (retVal != TRUE)
|
||||
return FAILED ("Expected validWord2 to be valid");
|
||||
if (end != &validWord2 [11])
|
||||
return FAILED ("Expected end parameter to be pointing to validWord2[11]");
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* test initialization
|
||||
@@ -648,10 +496,6 @@ static Test utf8_tests [] = {
|
||||
{"g_unichar_xdigit_value", test_xdigit },
|
||||
{"g_ucs4_to_utf16", test_ucs4_to_utf16 },
|
||||
{"g_utf16_to_ucs4", test_utf16_to_ucs4 },
|
||||
{"g_utf8_strlen", test_utf8_strlen },
|
||||
{"g_utf8_get_char", test_utf8_get_char },
|
||||
{"g_utf8_next_char", test_utf8_next_char },
|
||||
{"g_utf8_validate", test_utf8_validate },
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
+2
-13
@@ -14,17 +14,6 @@
|
||||
GC_setspecific define. Unfold the define into a static inline on all platforms
|
||||
except ppc where it is a static leaf function.
|
||||
|
||||
2008-08-10 Zoltan Varga <[email protected]>
|
||||
|
||||
* include/private/gc_locks.h: Add amd64 support so parallel mark works on
|
||||
amd64 too.
|
||||
|
||||
2008-08-05 Andreas Färber <[email protected]>
|
||||
|
||||
* autogen.sh: Suppress arguments warning for NOCONFIGURE.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-08-03 Zoltan Varga <[email protected]>
|
||||
|
||||
* pthread_support.c (GC_thread_exit_proc): Null out the tls key to prevent the
|
||||
@@ -43,8 +32,8 @@
|
||||
|
||||
* include/gc.h: Add GC_DllMain.
|
||||
* win32_threads.c: Rename DllMain to GC_DllMain.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-04-15 Jonathan Chambers <[email protected]>
|
||||
* include/private/gcconfig.h: Backport GC7 code to support Win64.
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ if test "$DIE" -eq 1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test x$NOCONFIGURE = x && test -z "$*"; then
|
||||
if test -z "$*"; then
|
||||
echo "**Warning**: I am going to run \`configure' with no arguments."
|
||||
echo "If you wish to pass any to it, please specify them on the"
|
||||
echo \`$0\'" command line."
|
||||
|
||||
+22
-2
@@ -112,9 +112,29 @@ case "$THREADS" in
|
||||
AC_DEFINE(THREAD_LOCAL_ALLOC)
|
||||
THREADDLLIBS="-lpthread -lrt"
|
||||
;;
|
||||
*-*-freebsd*)
|
||||
*-*-freebsd4*)
|
||||
AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
|
||||
AC_DEFINE(GC_FREEBSD_THREADS)
|
||||
if test "x$PTHREAD_CFLAGS" != "x"; then
|
||||
if test "x$PTHREAD_CFLAGS" = "x"; then
|
||||
INCLUDES="$INCLUDES -pthread"
|
||||
else
|
||||
INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
|
||||
fi
|
||||
if test "x$PTHREAD_LIBS" = "x"; then
|
||||
THREADDLLIBS=-pthread
|
||||
else
|
||||
THREADDLLIBS=$PTHREAD_LIBS
|
||||
fi
|
||||
;;
|
||||
*-*-freebsd5*)
|
||||
AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
|
||||
AC_DEFINE(GC_FREEBSD_THREADS)
|
||||
INCLUDES="$INCLUDES -pthread"
|
||||
THREADDLLIBS=-pthread
|
||||
;;
|
||||
*-*-freebsd6*)
|
||||
AC_DEFINE(GC_FREEBSD_THREADS)
|
||||
if test "x$PTHREAD_CFLAGS" != "x"; then
|
||||
INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
|
||||
fi
|
||||
if test "x$PTHREAD_LIBS" = "x"; then
|
||||
|
||||
@@ -437,29 +437,6 @@
|
||||
}
|
||||
# endif /* I386 */
|
||||
|
||||
# if defined(X86_64)
|
||||
# if !defined(GENERIC_COMPARE_AND_SWAP)
|
||||
/* Returns TRUE if the comparison succeeded. */
|
||||
inline static GC_bool GC_compare_and_exchange(volatile GC_word *addr,
|
||||
GC_word old,
|
||||
GC_word new_val)
|
||||
{
|
||||
char result;
|
||||
__asm__ __volatile__("lock; cmpxchgq %2, %0; setz %1"
|
||||
: "+m"(*(addr)), "=r"(result)
|
||||
: "r" (new_val), "a"(old) : "memory");
|
||||
return (GC_bool) result;
|
||||
}
|
||||
# endif /* !GENERIC_COMPARE_AND_SWAP */
|
||||
inline static void GC_memory_barrier()
|
||||
{
|
||||
/* We believe the processor ensures at least processor */
|
||||
/* consistent ordering. Thus a compiler barrier */
|
||||
/* should suffice. */
|
||||
__asm__ __volatile__("" : : : "memory");
|
||||
}
|
||||
# endif /* X86_64 */
|
||||
|
||||
# if defined(POWERPC)
|
||||
# if !defined(GENERIC_COMPARE_AND_SWAP)
|
||||
# if CPP_WORDSZ == 64
|
||||
|
||||
+1
-46
@@ -1,60 +1,15 @@
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* Makefile.am (man_MANS): Remove unpackaged files.
|
||||
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* mdvalidator.1: Rename to mdvalidater.1.
|
||||
* Makefile.am (man_MANS): Rename to mdvalidator.1 to mdvalidater.1.
|
||||
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* Makefile.am (man_MANS): Add mdoc.5 and mono-config.5.
|
||||
|
||||
2008-10-18 Mark Probst <[email protected]>
|
||||
|
||||
* mono.1: Documentation for "--no-x86-stack-align" option.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* Makefile: Add man pages added from monodoc/man...
|
||||
|
||||
2008-10-12 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* mono.1 : svn.myrealbox -> anonsvn.mono-project .
|
||||
|
||||
2008-10-10 Massimiliano Mantione <[email protected]>
|
||||
|
||||
* mono.1: Document the new "sas" option.
|
||||
|
||||
2008-09-11 Daniel Morgan <[email protected]>
|
||||
|
||||
* sqlsharp.1: added commands
|
||||
\bcs, \cs, \listproviders, \p
|
||||
|
||||
2008-08-27 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-config.5: Fix a typo.
|
||||
|
||||
2008-08-22 Massimiliano Mantione <[email protected]>
|
||||
|
||||
* mono.1: Restore original nonvisible formatting (' ', '\-', and '"'
|
||||
were added everywhere by mistake in r109428).
|
||||
|
||||
2008-08-21 Massimiliano Mantione <[email protected]>
|
||||
|
||||
* mono.1: Updated description of the logging profiler.
|
||||
* mono.1: Updated description of the logging profiler from trunk.
|
||||
|
||||
2008-08-08 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono.1: Remove no-dlsym aot option for now.
|
||||
|
||||
* mono.1: Document the 'static' aot option.
|
||||
|
||||
2008-08-01 Massimiliano Mantione <[email protected]>
|
||||
|
||||
* mono.1: Updated description of the logging profiler.
|
||||
|
||||
2008-04-22 Robert Jordan <[email protected]>
|
||||
|
||||
* mono.1: Document MONO_DEBUG=no-gdb-backtrace.
|
||||
|
||||
+5
-53
@@ -1,55 +1,7 @@
|
||||
man_MANS = \
|
||||
al.1 \
|
||||
cert2spc.1 \
|
||||
certmgr.1 \
|
||||
chktrust.1 \
|
||||
cilc.1 \
|
||||
csharp.1 \
|
||||
disco.1 \
|
||||
dtd2xsd.1 \
|
||||
gacutil.1 \
|
||||
genxs.1 \
|
||||
httpcfg.1 \
|
||||
ilasm.1 \
|
||||
macpack.1 \
|
||||
makecert.1 \
|
||||
mconfig.1 \
|
||||
mcs.1 \
|
||||
mdassembler.1 \
|
||||
mdoc.1 \
|
||||
mdoc.5 \
|
||||
mdoc-assemble.1 \
|
||||
mdoc-export-html.1 \
|
||||
mdoc-export-msxdoc.1 \
|
||||
mdoc-update.1 \
|
||||
mdoc-validate.1 \
|
||||
mdvalidater.1 \
|
||||
mkbundle.1 \
|
||||
mono.1 \
|
||||
mono-cil-strip.1 \
|
||||
mono-config.5 \
|
||||
monodocer.1 \
|
||||
monodocs2html.1 \
|
||||
monolinker.1 \
|
||||
monop.1 \
|
||||
mono-service.1 \
|
||||
mono-shlib-cop.1 \
|
||||
monostyle.1 \
|
||||
mono-xmltool.1 \
|
||||
mozroots.1 \
|
||||
oldmono.1 \
|
||||
permview.1 \
|
||||
prj2make.1 \
|
||||
resgen.1 \
|
||||
secutil.1 \
|
||||
setreg.1 \
|
||||
sgen.1 \
|
||||
signcode.1 \
|
||||
sn.1 \
|
||||
soapsuds.1 \
|
||||
sqlsharp.1 \
|
||||
vbnc.1 \
|
||||
wsdl.1 \
|
||||
xsd.1
|
||||
man_MANS = mcs.1 mono.1 monostyle.1 mono-config.5 sqlsharp.1 oldmono.1 ilasm.1 \
|
||||
cert2spc.1 cilc.1 genxs.1 wsdl.1 disco.1 soapsuds.1 makecert.1 \
|
||||
chktrust.1 setreg.1 sn.1 secutil.1 signcode.1 certmgr.1 monop.1 xsd.1 gacutil.1 \
|
||||
macpack.1 mkbundle.1 dtd2xsd.1 permview.1 prj2make.1 mono-service.1 mono-shlib-cop.1 \
|
||||
al.1 mozroots.1 mono-xmltool.1 sgen.1 httpcfg.1 vbnc.1 resgen.1 monolinker.1 mconfig.1
|
||||
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
-322
@@ -1,322 +0,0 @@
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH csharp 1 "4 September 2008"
|
||||
.SH NAME
|
||||
csharp \- Interactive C# Shell
|
||||
.SH SYNOPSIS
|
||||
.B csharp
|
||||
[options]
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.I csharp
|
||||
is an interactive C# shell that allows the user to enter and evaluate
|
||||
C# statements and expressions from the command line.
|
||||
.PP
|
||||
This command is a shortcut to invoke the
|
||||
.I gmcs
|
||||
command with the
|
||||
.I \-\- shell
|
||||
command line option. All of the regular compiler options available
|
||||
to gmcs are available in the interactive shell.
|
||||
.SH OPERATION
|
||||
Once you launch the csharp command, you will be greeted with the
|
||||
interactive prompt:
|
||||
.PP
|
||||
.nf
|
||||
$ csharp
|
||||
Mono C# Shell, type "help;" for help
|
||||
|
||||
Enter statements below.
|
||||
csharp>
|
||||
.fi
|
||||
.PP
|
||||
A number of namespaces are pre-defined with C# these include System,
|
||||
System.Linq, System.Collections and System.Collections.Generic.
|
||||
Unlike the compiled mode, it is possible to add new using statements
|
||||
as you type code, for example:
|
||||
.PP
|
||||
.nf
|
||||
csharp> new XmlDocument ();
|
||||
<interactive>(1,6): error CS0246: The type or namespace name `XmlDocument' could not be found. Are you missing a using directive or an assembly reference?
|
||||
csharp> using System.Xml;
|
||||
csharp> new XmlDocument ();
|
||||
System.Xml.XmlDocument
|
||||
.fi
|
||||
.PP
|
||||
Every time a command is typed, the scope of that command is one of a
|
||||
class that derives from the class Mono.CSharp.InteractiveBase. This
|
||||
class defines a number of static properties and methods. To display
|
||||
a list of available commands access the `help' property:
|
||||
.nf
|
||||
csharp> help;
|
||||
"Static methods:
|
||||
LoadPackage (pkg); - Loads the given Package (like -pkg:FILE)
|
||||
[...]
|
||||
ShowVars (); - Shows defined local variables.
|
||||
ShowUsing (); - Show active using decltions.
|
||||
help;
|
||||
"
|
||||
csharp>
|
||||
.fi
|
||||
.PP
|
||||
When expressions are entered, the C# shell will display the result of
|
||||
executing the expression:
|
||||
.PP
|
||||
.nf
|
||||
csharp> Math.Sin (Math.PI/4);
|
||||
0.707106781186547
|
||||
csharp> 1+1;
|
||||
2
|
||||
csharp> "Hello, world".IndexOf (',');
|
||||
5
|
||||
.fi
|
||||
.PP
|
||||
The C# shell uses the ToString() method on the returned object to
|
||||
display the object, this sometimes can be limiting since objects that
|
||||
do not override the ToString() method will get the default behavior
|
||||
from System.Object which is merely to display their type name:
|
||||
.PP
|
||||
.nf
|
||||
csharp> var a = new XmlDocument ();
|
||||
csharp> a;
|
||||
System.Xml.Document
|
||||
csharp> csharp> a.Name;
|
||||
"#document"
|
||||
csharp>
|
||||
.fi
|
||||
.PP
|
||||
A few datatypes are handled specially by the C# interactive shell like
|
||||
arrays, System.Collections.Hashtable, objects that implement
|
||||
System.Collections.IEnumerable and IDictionary and are rendered
|
||||
specially instead of just using ToString ():
|
||||
.PP
|
||||
.nf
|
||||
csharp> var pages = new Hashtable () {
|
||||
> { "Mono", "http://www.mono-project.com/" },
|
||||
> { "Linux", "http://kernel.org" } };
|
||||
csharp> pages;
|
||||
{{ "Mono", "http://www.mono-project.com/" }, { "Linux", "http://kernel.org" }}
|
||||
.fi
|
||||
.PP
|
||||
It is possible to use LINQ directly in the C# interactive shell since
|
||||
the System.Linq namespace has been imported at startup. The
|
||||
following sample gets a list of all the files that have not been
|
||||
accessed in a week from /tmp:
|
||||
.PP
|
||||
.nf
|
||||
csharp> using System.IO;
|
||||
csharp> var last_week = DateTime.Now - TimeSpan.FromDays (7);
|
||||
csharp> var old_files = from f in Directory.GetFiles ("/tmp")
|
||||
> let fi = new FileInfo (f)
|
||||
> where fi.LastAccessTime < LastWeek select f;
|
||||
csharp>
|
||||
.fi
|
||||
.PP
|
||||
You can of course print the results in a single statement as well:
|
||||
.PP
|
||||
.nf
|
||||
csharp> using System.IO;
|
||||
csharp> var last_week = DateTime.Now - TimeSpan.FromDays (7);
|
||||
csharp> from f in Directory.GetFiles ("/tmp")
|
||||
> let fi = new FileInfo (f)
|
||||
> where fi.LastAccessTime < last_week select f;
|
||||
[...]
|
||||
csharp>
|
||||
.fi
|
||||
.PP
|
||||
LINQ and its functional foundation produce on-demand code for
|
||||
IEnumerable return values. For instance, the return value from a
|
||||
using `from' is an IEnumerable that is evaluated on demand. The
|
||||
automatic rendering of IEnumerables on the command line will trigger
|
||||
the IEnumerable pipeline to execute at that point instead of having
|
||||
its execution delayed until a later point.
|
||||
.PP
|
||||
If you want to avoid having the IEnumerable rendered at this point,
|
||||
simply assign the value to a variable.
|
||||
.PP
|
||||
Unlike compiled C#, the type of a variable can be changed if a new
|
||||
declaration is entered, for example:
|
||||
.PP
|
||||
.nf
|
||||
csharp> var a = 1;
|
||||
csharp> a.GetType ();
|
||||
System.Int32
|
||||
csharp> var a = "Hello";
|
||||
csharp> a.GetType ();
|
||||
System.String
|
||||
csharp> ShowVars ();
|
||||
string a = "Hello"
|
||||
.fi
|
||||
.PP
|
||||
In the case that an expression or a statement is not completed in a
|
||||
single line, a continuation prompt is displayed, for example:
|
||||
.PP
|
||||
.nf
|
||||
csharp> var protocols = new string [] {
|
||||
> "ftp",
|
||||
> "http",
|
||||
> "gopher"
|
||||
> };
|
||||
csharp> protocols;
|
||||
{ "ftp", "http", "gopher" }
|
||||
.fi
|
||||
.PP
|
||||
Long running computations can be interrupted by using the Control-C
|
||||
sequence:
|
||||
.PP
|
||||
.nf
|
||||
csharp> var done = false;
|
||||
csharp> while (!done) { }
|
||||
Interrupted!
|
||||
System.Threading.ThreadAbortException: Thread was being aborted
|
||||
at Class1.Host (System.Object& $retval) [0x00000]
|
||||
at Mono.CSharp.InteractiveShell.ExecuteBlock (Mono.CSharp.Class host, Mono.CSharp.Undo undo) [0x00000]
|
||||
csharp>
|
||||
.fi
|
||||
.PP
|
||||
.SH INTERACTIVE EDITING
|
||||
The C# interactive shell contains a line-editor that provides a more
|
||||
advanced command line editing functionality than the operating system
|
||||
provides.
|
||||
.PP
|
||||
The command set is similar to many other applications (cursor keys)
|
||||
and incorporates some of the Emacs commands for editing as well as a
|
||||
history mechanism to
|
||||
.PP
|
||||
.PP
|
||||
The following keyboard input is supported:
|
||||
.TP
|
||||
.I Home Key, Control-a
|
||||
Goes to the beginning of the line.
|
||||
.TP
|
||||
.I End Key, Control-e
|
||||
Goes to the end of the line.
|
||||
.TP
|
||||
.I Left Arrow Key, Control-b
|
||||
Moves the cursor back one character.
|
||||
.TP
|
||||
.I Right Arrow Key, Control-f
|
||||
Moves the cursor forward one character.
|
||||
.TP
|
||||
.I Up Arrow Key, Control-p
|
||||
Goes back in the history, replaces the current line with the previous
|
||||
line in the history.
|
||||
.TP
|
||||
.I Down Arrow Key, Control-n
|
||||
Moves forward in the history, replaces the current line with the next
|
||||
lien in the history.
|
||||
.TP
|
||||
.I Return
|
||||
Executes the current line if the statement or expression is complete,
|
||||
or waits for further input.
|
||||
.TP
|
||||
.I Control-C
|
||||
Cancel the current line being edited. This will kill any currently
|
||||
in-progress edits or partial editing and go back to a toplevel
|
||||
definition.
|
||||
.TP
|
||||
.I Backspace Key
|
||||
Deletes the character before the cursor
|
||||
.TP
|
||||
.I Delete Key, Control-d
|
||||
Deletes the character at the current cursor position.
|
||||
.TP
|
||||
.I Control-k
|
||||
Erases the contents of the line until the end of the line and places
|
||||
the result in the cut and paste buffer.
|
||||
.TP
|
||||
.I Alt-D
|
||||
Deletes the word starting at the cursor position and appends into the
|
||||
cut and paste buffer. By pressing Alt-d repeatedly, multiple words
|
||||
can be appended into the paste buffer.
|
||||
.TP
|
||||
.I Control-Y
|
||||
Pastes the content of the kill buffer at the current cursor position.
|
||||
.TP
|
||||
.I Control-Q
|
||||
This is the quote character. It allows the user to enter
|
||||
control-characters that are otherwise taken by the command editing
|
||||
facility. Press Control-Q followed by the character you want to
|
||||
insert, and it will be inserted verbatim into the command line.
|
||||
.TP
|
||||
.I Control-D
|
||||
Terminates the program. This terminates the input for the program.
|
||||
.SH STATIC PROPERTIES AND METHODS
|
||||
Since the methods and properties of the base class from where the
|
||||
statements and expressions are executed are static, they can be
|
||||
invoked directly from the shell. These are the available properties
|
||||
and methods:
|
||||
.TP
|
||||
.I void LoadAssembly(string assembly)
|
||||
Loads the given assembly. This is equivalent to passing the compiler
|
||||
the -r: flag with the specified string.
|
||||
.TP
|
||||
.I void LoadPackage(string package)
|
||||
Imports the package specified. This is equivalent to invoking the
|
||||
compiler with the -pkg: flag with the specified string.
|
||||
.TP
|
||||
.I string Prompt { get; set }
|
||||
The prompt used by the shell. It defaults to the value "csharp> ".
|
||||
.I string ContinuationPrompt { get; set; }
|
||||
The prompt used by the shell when further input is required to
|
||||
complete the expression or statement.
|
||||
.TP
|
||||
.I void ShowVars()
|
||||
Displays all the variables that have been defined so far and their
|
||||
types. In the csharp shell declaring new variables will shadow
|
||||
previous variable declarations, this is different than C# when
|
||||
compiled.
|
||||
.I void ShowUsing()
|
||||
Displays all the using statements in effect.
|
||||
.I TimeSpan Time (Action a)
|
||||
Handy routine to time the time that some code takes to execute. The
|
||||
parameter is an Action delegate, and the return value is a TimeSpan.
|
||||
For example:
|
||||
.PP
|
||||
.nf
|
||||
csharp> Time (() => { for (int i = 0; i < 5; i++) Console.WriteLine (i);});
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
00:00:00.0043230
|
||||
csharp>
|
||||
.fi
|
||||
.PP
|
||||
The return value is a TimeSpan, that you can store in a variable for
|
||||
benchmarking purposes.
|
||||
.SH STARTUP FILES
|
||||
The C# shell will load all the C# script files and Mono assemblies
|
||||
located in the ~/.config/csharp directory on Unix. C# script files
|
||||
are files that have the extension .cs and they should only contain
|
||||
statements and expressions, they can not contain full class
|
||||
definitions (at least not as of Mono 2.0). Full class definitions
|
||||
should be compiled into dlls and stored in that directory.
|
||||
.SH AUTHORS
|
||||
The Mono C# Compiler was written by Miguel de Icaza, Ravi Pratap,
|
||||
Martin Baulig, Marek Safar and Raja Harinath. The development was
|
||||
funded by Ximian, Novell and Marek Safar.
|
||||
.SH LICENSE
|
||||
The Mono Compiler Suite is released under the terms of the GNU GPL or
|
||||
the MIT X11. Please read the accompanying `COPYING' file for details.
|
||||
Alternative licensing for the compiler is available from Novell.
|
||||
.SH SEE ALSO
|
||||
gmcs(1), mcs(1), mdb(1), mono(1), pkg-config(1)
|
||||
.SH BUGS
|
||||
To report bugs in the compiler, you must file them on our bug tracking
|
||||
system, at:
|
||||
http://www.mono-project.com/Bugs
|
||||
.SH MAILING LIST
|
||||
The Mono Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
|
||||
.SH MORE INFORMATION
|
||||
The Mono C# compiler was developed by Novell, Inc
|
||||
(http://www.novell.com, http) and is based on the
|
||||
ECMA C# language standard available here:
|
||||
http://www.ecma.ch/ecma1/STAND/ecma-334.htm
|
||||
.PP
|
||||
The home page for the Mono C# compiler is at
|
||||
http://www.mono-project.com/CSharp_Compiler information about the
|
||||
interactive mode for C# is available in http://mono-project.com/CsharpRepl
|
||||
@@ -18,13 +18,12 @@ prepending the @ symbol to the response file name.
|
||||
The
|
||||
.I mcs
|
||||
compiler is used to compile against the 1.x profile and implements
|
||||
C# 1.0 and parts of C# 2.0 and C# 3.0 specification which do not depend
|
||||
on generics.
|
||||
C# 1.0 and 2.0 with the exception of generics and nullable types.
|
||||
.PP
|
||||
The
|
||||
.I gmcs
|
||||
compiler is used to compile against the 2.0 profile and implements
|
||||
the complete C# 3.0 specification.
|
||||
the complete C# 2.0 specification including generics.
|
||||
.PP
|
||||
The
|
||||
.I smcs
|
||||
@@ -33,7 +32,8 @@ This profile is designed to be used for creating Silverlight/Moonlight
|
||||
applications that will run on a web browser. The API exposed by this
|
||||
profile is a small subset of the 3.5 API (even if it is commonly
|
||||
referred as the 2.1 API, this API is a small subset of 2.0 with a few
|
||||
extensions).
|
||||
extensions), in addition this profile by default runs with
|
||||
-langversion:linq which turns on the C# 3.0 language by default.
|
||||
.PP
|
||||
See the section on packages for more information.
|
||||
.PP
|
||||
@@ -108,7 +108,7 @@ SYMBOL. This can be tested in the source code by the pre-processor,
|
||||
or can be used by methods that have been tagged with the Conditional
|
||||
attribute.
|
||||
.TP
|
||||
.I \-debug, \-debug+
|
||||
.I \-debug, \-debug+, \-g
|
||||
Generate debugging information. To obtain stack traces with debugging
|
||||
information, you need to invoke the mono runtime with the `--debug'
|
||||
flag. This debugging information is stored inside the assembly as a
|
||||
@@ -136,6 +136,10 @@ precedence over the attributes.
|
||||
Extracts the C#/XML documentation from the source code and stores in in
|
||||
the given FILE.
|
||||
.TP
|
||||
.I \-\-expect-error X L
|
||||
The compiler will expect the code to generate an error
|
||||
named `X' in line `L'. This is only used by the test suite.
|
||||
.TP
|
||||
.I \-\-fatal
|
||||
This is used for debugging the compiler. This makes the error emission
|
||||
generate an exception that can be caught by a debugger.
|
||||
@@ -165,7 +169,7 @@ The possible values are:
|
||||
.TP
|
||||
.I "Default"
|
||||
Instruct compiler to use the latest version. Equivalent is to omit the
|
||||
switch (this currently defaults to the C# 3.0 language specification).
|
||||
switch (this currently defaults to the C# 2.0 language specification).
|
||||
.TP
|
||||
.I "ISO-1"
|
||||
Restrict compiler to use only first ISO standardized features.
|
||||
@@ -176,6 +180,11 @@ methods will lead to error.
|
||||
Restrict compiler to use only the second ISO standardized features.
|
||||
This allows the use of generics, static classes, iterators and
|
||||
anonymous methods for example.
|
||||
.TP
|
||||
.I "linq"
|
||||
This enables the C# 3.0 support. Only a few features of C# 3.0 have
|
||||
been implemented in the Mono C# compiler, so not everything is
|
||||
available.
|
||||
.PP
|
||||
Notice that this flag only controls the language features available to
|
||||
the programmer, it does not control the kind of assemblies produced.
|
||||
@@ -330,12 +339,6 @@ shell will perform globbing, so you might want to use it like this:
|
||||
$ mcs -recurse:'*.cs'
|
||||
.fi
|
||||
.TP
|
||||
.I \-\-shell
|
||||
Starts up the compiler in interactive mode, providing a C# shell for
|
||||
statements and expressions. A shortcut is to use the
|
||||
.I csharp
|
||||
command directly.
|
||||
.TP
|
||||
.I \-\-stacktrace
|
||||
Generates a stack trace at the time the error is reported, useful for
|
||||
debugging the compiler.
|
||||
@@ -355,6 +358,9 @@ Enables compilation of unsafe code.
|
||||
.I \-v
|
||||
Debugging. Turns on verbose yacc parsing.
|
||||
.TP
|
||||
.I \-v2
|
||||
Turns on C# 2.0 language features.
|
||||
.TP
|
||||
.I \-\-version
|
||||
Shows the compiler version.
|
||||
.TP
|
||||
@@ -363,7 +369,7 @@ Treat warnings as errors.
|
||||
.TP
|
||||
.I \-warn:LEVEL
|
||||
Sets the warning level. 0 is the lowest warning level, and 4 is the
|
||||
highest. The default is 4.
|
||||
highest. The default is 2.
|
||||
.TP
|
||||
.I \-win32res:FILE
|
||||
Specifies a Win32 resource file (.res) to be bundled into the
|
||||
@@ -499,12 +505,12 @@ Martin Baulig, Marek Safar and Raja Harinath. The development was
|
||||
funded by Ximian, Novell and Marek Safar.
|
||||
.PP
|
||||
.SH LICENSE
|
||||
The Mono Compiler Suite is released under the terms of the GNU GPL or
|
||||
the MIT X11. Please read the accompanying `COPYING' file for details.
|
||||
Alternative licensing for the compiler is available from Novell.
|
||||
The Mono Compiler Suite is released under the terms of the GNU GPL.
|
||||
Please read the accompanying `COPYING' file for details. Alternative
|
||||
licensing for the compiler is available from Novell.
|
||||
.PP
|
||||
.SH SEE ALSO
|
||||
csharp(1), mdb(1), mono(1), mopen(1), mint(1), pkg-config(1),sn(1)
|
||||
mdb(1), mono(1), mopen(1), mint(1), sn(1)
|
||||
.PP
|
||||
.SH BUGS
|
||||
To report bugs in the compiler, you must file them on our bug tracking
|
||||
|
||||
@@ -1,259 +0,0 @@
|
||||
.\"
|
||||
.\" mdassembler manual page.
|
||||
.\" (C) 2006 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdassembler" 1
|
||||
.SH NAME
|
||||
mdassembler \- Compile documentation for use in monodoc browser
|
||||
.SH SYNOPSIS
|
||||
.B mdassembler
|
||||
OPTIONS*
|
||||
DIRS+
|
||||
.SH DESCRIPTION
|
||||
\fImdassembler\fR has been obsoleted by \fBmdoc\fR(1). See the
|
||||
\fBmdoc-assemble\fR(1) man page.
|
||||
.PP
|
||||
.I mdassembler
|
||||
is a program that creates
|
||||
.I .tree
|
||||
and
|
||||
.I .zip
|
||||
files for use in the
|
||||
.B monodoc
|
||||
documentation browser.
|
||||
.PP
|
||||
The
|
||||
.I .tree
|
||||
and
|
||||
.I .zip
|
||||
files are copied into monodoc's
|
||||
.I sources
|
||||
directory, and reside with a
|
||||
.I .source
|
||||
file which is used by
|
||||
.B monodoc
|
||||
to specify where the documentation should be displayed.
|
||||
The
|
||||
.I .source
|
||||
file's
|
||||
.I /monodoc/source/@basefile
|
||||
attribute specifies the filename prefix for the documentation files. This
|
||||
must be the same prefix as used with the
|
||||
.B \-\-out
|
||||
parameter.
|
||||
.PP
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.I \-\-ecma
|
||||
The documentation found within
|
||||
.I DIRS
|
||||
is in the Mono ECMA documentation format.
|
||||
See the
|
||||
.B Mono ECMA Documentation Format
|
||||
section below.
|
||||
.TP
|
||||
.I \-\-ecmaspec
|
||||
The documentation found within
|
||||
.I DIRS
|
||||
is in the ECMA Specification documentation format.
|
||||
See the
|
||||
.B Mono ECMA Specification Documentation Format
|
||||
section below.
|
||||
.TP
|
||||
.I \-\-error
|
||||
The documentation found within
|
||||
.I DIRS
|
||||
is in "error" format.
|
||||
See the
|
||||
.B Error Documentation Format
|
||||
section below.
|
||||
.TP
|
||||
.I \-\-help
|
||||
Show program argument information.
|
||||
.TP
|
||||
.I \-\-man
|
||||
The documentation found within
|
||||
.I DIRS
|
||||
is in man page format.
|
||||
See the
|
||||
.B Man Page Documentation Format
|
||||
section below.
|
||||
.TP
|
||||
.I \-o, \-\-out PREFIX
|
||||
Specify the output file prefix.
|
||||
.B mdassembler
|
||||
creates the files
|
||||
.I PREFIX.zip
|
||||
and
|
||||
.I PREFIX.tree
|
||||
\&.
|
||||
.TP
|
||||
.I \-\-simple
|
||||
The documentation found within
|
||||
.I DIRS
|
||||
is in "simple" format.
|
||||
See the
|
||||
.B Simple Documentation Format
|
||||
section below.
|
||||
.TP
|
||||
.I \-\-xhtml, \-\-hb
|
||||
The documentation found within
|
||||
.I DIRS
|
||||
is in XHTML format.
|
||||
See the
|
||||
.B XHTML Documentation Format
|
||||
section below.
|
||||
.PP
|
||||
.SH "FORMATS"
|
||||
The following documentation formats are supported:
|
||||
.SS Mono ECMA Documentation Format
|
||||
An XML documentation format with one file per type.
|
||||
.PP
|
||||
See the \fBmdoc\fR(5) man page for more information.
|
||||
.SS Mono ECMA Specification Documentation Format
|
||||
This is not the format you're looking for.
|
||||
.PP
|
||||
This is the format used to represent the ECMA-334 (C#) standard within
|
||||
\fBmonodoc\fR. It is not used to display class library documentation;
|
||||
for class library
|
||||
documentation, use the
|
||||
.B \-\-ecma
|
||||
format.
|
||||
.SS Error Documentation Format
|
||||
Used to present detailed error messages, and is used in
|
||||
\fBmonodoc\fR's "C# Compiler Error Reference"
|
||||
tree.
|
||||
.I DIRS
|
||||
is not a directory, but is instead a configuration file, containing the XML:
|
||||
|
||||
.nf
|
||||
<ErrorProviderConfig>
|
||||
<FilesPath>../../mcs/errors</FilesPath>
|
||||
<Match>cs????*.cs</Match>
|
||||
<ErrorNumSubstringStart>2</ErrorNumSubstringStart>
|
||||
<ErrorNumSubstringLength>4</ErrorNumSubstringLength>
|
||||
<FriendlyFormatString>CS{0:0###}</FriendlyFormatString>
|
||||
</ErrorProviderConfig>
|
||||
.fi
|
||||
|
||||
.I /ErrorProviderConfig/FilesPath
|
||||
specifies where to look for files,
|
||||
.I /ErrorProviderConfig/Match
|
||||
specifies the filename pattern to look for within
|
||||
\fI/ErrorProviderConfig/FilesPath\fR,
|
||||
.I /ErrorProviderConfig/ErrorNumSubstringStart
|
||||
and
|
||||
.I /ErrorProviderConfig/ErrorNumSubstringLength
|
||||
control which portion of the filename is used as the error number, and
|
||||
.I /ErrorProviderConfig/FriendlyFormatString
|
||||
controls how the formatting/display of the node in the
|
||||
.B monodoc
|
||||
tree.
|
||||
.PP
|
||||
For each file found, it is converted to HTML with C# syntax coloring applied.
|
||||
.SS Simple Documentation Format
|
||||
Converts text files into HTML by translating each newline into an HTML
|
||||
.I <br>
|
||||
element.
|
||||
.SS Man Page Documentation Format
|
||||
Converts man pages into HTML for display.
|
||||
.SS XHTML Documentation Format
|
||||
Copies the XHTML file as-is.
|
||||
.SH EXAMPLES
|
||||
To install your documenation for use with monodoc:
|
||||
.TP
|
||||
.I Create a PREFIX.source file
|
||||
with the contents:
|
||||
.nf
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<monodoc>
|
||||
<source provider="FORMAT" basefile="PREFIX" path="PATH"/>
|
||||
</monodoc>
|
||||
|
||||
.fi
|
||||
where FORMAT is the documentation format contained within the
|
||||
.I PREFIX.tree
|
||||
file, e.g.
|
||||
\fIecma\fR, or \fIsimple\fR.
|
||||
.I PREFIX is the basename of the
|
||||
.I .tree
|
||||
and
|
||||
.I .zip
|
||||
files that
|
||||
.B mdassembler
|
||||
creates.
|
||||
.I PATH
|
||||
is the "path" in the monodoc tree that should contain the documentation.
|
||||
See the
|
||||
.I @prefix@/lib/monodoc/monodoc.xml
|
||||
file for a list of PATH values
|
||||
(the
|
||||
.I //node/@name
|
||||
values).
|
||||
.sp
|
||||
See also: http://www.mono-project.com/Generating_Documentation
|
||||
.TP
|
||||
.I Create your documentation
|
||||
See also the
|
||||
.BR monodocer (1)
|
||||
man page, e.g.
|
||||
.nf
|
||||
|
||||
monodocer -assembly:foo.dll -path:foo/en
|
||||
|
||||
.fi
|
||||
.TP
|
||||
.I Assemble the documentation
|
||||
.nf
|
||||
|
||||
mdassembler --ecma foo/en PREFIX
|
||||
|
||||
.fi
|
||||
Make sure that you use the same
|
||||
.I PREFIX
|
||||
here as you did above.
|
||||
.TP
|
||||
.I Install the documentation by using the command
|
||||
.nf
|
||||
|
||||
cp PREFIX.source PREFIX.tree PREFIX.zip \\
|
||||
`pkg-config monodoc --variable=sourcesdir`
|
||||
|
||||
.fi
|
||||
(Note the backticks used in the
|
||||
.B pkg-config
|
||||
command!)
|
||||
This copies the
|
||||
.I .source
|
||||
,
|
||||
.I .tree
|
||||
, and
|
||||
.I .zip
|
||||
files into the
|
||||
.B monodoc
|
||||
.I sources
|
||||
directory, which will allow
|
||||
.B monodoc
|
||||
to display the documentation.
|
||||
.SH SEE ALSO
|
||||
\fBmdcs2ecma\fR(1),
|
||||
\fBmdnormalizer\fR(1),
|
||||
\fBmdoc\fR(1),
|
||||
\fBmdoc-assemble\fR(1),
|
||||
\fBmdvalidator\fR(1),
|
||||
\fBmonodocer\fR(1),
|
||||
\fBmonodocs2html\fR(1)
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
See also: http://www.mono-project.com
|
||||
and
|
||||
http://www.mono-project.com/Assembler
|
||||
@@ -1,41 +0,0 @@
|
||||
.\"
|
||||
.\" mdcs2ecma manual page.
|
||||
.\" (C) 2006 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdcs2ecma" 1
|
||||
.SH NAME
|
||||
mdcs2ecma \- Convert CSC /doc Documentation Into ECMA documentation.
|
||||
.SH SYNOPSIS
|
||||
.B mdcs2ecma
|
||||
.I SLASHDOC-FILE
|
||||
.I ASSEMBLY
|
||||
.I OUTPUT
|
||||
.I LIBRARY-TYPE
|
||||
.SH DESCRIPTION
|
||||
.I mdcs2ecma
|
||||
is a program that converts
|
||||
.I CSC /doc
|
||||
generated XML documentation into single-file ECMA documentation.
|
||||
.PP
|
||||
Note that single-file ECMA documentation is the format used by the ECMA
|
||||
standard,
|
||||
.I NOT
|
||||
the one-file-per-type ECMA format typically used by Mono.
|
||||
.PP
|
||||
This program is unmaintained. Use
|
||||
.B monodocer -importslashdoc:SLASHDOC-FILE -assembly:ASSEMBLY -path:OUTPUT
|
||||
instead.
|
||||
.PP
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com for details
|
||||
.SH SEE ALSO
|
||||
.BR monodocer(1)
|
||||
@@ -1,37 +0,0 @@
|
||||
.\"
|
||||
.\" mdnormalizer manual page.
|
||||
.\" (C) 2006 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdnormalizer" 1
|
||||
.SH NAME
|
||||
mdnormalizer \- Normalize XML Documents
|
||||
.SH SYNOPSIS
|
||||
.B mdnormalizer
|
||||
[FILES]+
|
||||
.SH DESCRIPTION
|
||||
.I mdnormalizer
|
||||
is a program that normalizes the XML within the input documents.
|
||||
.PP
|
||||
.I Normalization
|
||||
consists of ensuring that the XML is well-formed. It is equivalent to the
|
||||
following C# fragment:
|
||||
.nf
|
||||
XmlDocument doc = new XmlDocument ();
|
||||
doc.Load (filename);
|
||||
StreamWriter file = new StreamWriter (filename, false,
|
||||
new System.Text.UTF8Encoding (false));
|
||||
doc.Save (writer);
|
||||
writer.Close ();
|
||||
.fi
|
||||
.PP
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com for details
|
||||
@@ -1,190 +0,0 @@
|
||||
.\"
|
||||
.\" mdoc assemble manual page.
|
||||
.\" (C) 2008 Novell, Inc.
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdoc-assemble" 1
|
||||
.SH NAME
|
||||
mdoc assemble \- Compile documentation for use in \fBmonodoc\fR(1)
|
||||
.SH SYNOPSIS
|
||||
.B mdoc assemble
|
||||
[OPTIONS]+
|
||||
PATHS+
|
||||
.SH DESCRIPTION
|
||||
\fBmdoc assemble\fR creates \fI.tree\fR and \fI.zip\fR files from \fIPATHS\fR
|
||||
for use in the \fBmonodoc\fR(1) documentation browser.
|
||||
.PP
|
||||
The input files must have a supported \fIformat\fR, specified with the
|
||||
\fI--format\fR option.
|
||||
.PP
|
||||
The \fI.tree\fR and \fI.zip\fR files are copied into \fBmonodoc\fR's
|
||||
\fIsources\fR directory, alongside a \fI.source\fR file which is used by
|
||||
\fBmonodoc\fR(1) to specify where the documentation should be displayed.
|
||||
.PP
|
||||
The \fI.source\fR file has the following format:
|
||||
.nf
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<monodoc>
|
||||
<source provider="PROVIDER" basefile="BASEFILE" path="PATH" />
|
||||
</monodoc>
|
||||
|
||||
.fi
|
||||
The \fI/monodoc/source/@provider\fR attribute specifies which format provider
|
||||
should be used when reading the \fI.tree\fR and \fI.zip\fR files; this
|
||||
\fImust\fR correspond to one of the \fI--format\fR values.
|
||||
.PP
|
||||
The \fI/monodoc/source/@basefile\fR attribute specifies the filename prefix
|
||||
for the documentation files. This must be the same prefix as used with the
|
||||
\fI\-\-out\fR parameter. There should be \fIno\fR filename extension on this
|
||||
value.
|
||||
.PP
|
||||
The \fI/monodoc/source/@path\fR attribute specifies the parent node in
|
||||
\fBmonodoc\fR(1)'s tree view where the documentation will be inserted.
|
||||
See the \fI$MONO_INSTALL_PREFIX/lib/monodoc/monodoc.xml\fR
|
||||
file for a list of \fIPATH\fR values (the \fI//node/@name\fR values).
|
||||
.PP
|
||||
Once the \fIBASEFILE.source\fR has been written, the documentation can be
|
||||
installed so that \fBmonodoc\fR(1) will display the documentation with the
|
||||
command:
|
||||
.nf
|
||||
|
||||
cp BASEFILE.source BASEFILE.tree BASEFILE.zip \\
|
||||
`pkg-config monodoc --variable=sourcesdir`
|
||||
|
||||
.fi
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB\-f\fR, \fB\-\-format\fR=\fIFORMAT\fR
|
||||
Specifies the documentation format used within \fIPATHS\fR. Valid
|
||||
\fIFORMAT\fR values include:
|
||||
\fIecma\fR,
|
||||
\fIecmaspec\fR,
|
||||
\fIerror\fR,
|
||||
\fIhb\fR,
|
||||
\fIman\fR,
|
||||
\fIsimple\fR, and
|
||||
\fIxhtml\fR.
|
||||
.Sp
|
||||
See the \fIFORMATS\fR section below for more information about these formats.
|
||||
.Sp
|
||||
The default format (if none is specifed) is \fIecma\fR.
|
||||
.Sp
|
||||
The \fI\-\-format\fR option may be interleaved with \fIPATHS\fR to
|
||||
change the format used for the remaining parameters (until the next
|
||||
\fI\-\-format\fR option is seen), e.g.:
|
||||
.nf
|
||||
|
||||
mdoc assemble -o PREFIX A B --format=man C D --format=xhtml E
|
||||
|
||||
.fi
|
||||
will assemble directories \fIA\fR and \fIB\fR with the \fIecma\fR format,
|
||||
files \fIC\fR and \fID\fR with the \fIman\fR formt, and directory
|
||||
\fIE\fR with the \fIxhtml\fR format.
|
||||
.TP
|
||||
\fB\-o\fR, \fB\-\-out\fR=\fIPREFIX\fR
|
||||
Specify the output file prefix. \fBmdoc assemble\fR creates the files
|
||||
\fIPREFIX.zip\fR and \fIPREFIX.tree\fR.
|
||||
.TP
|
||||
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
|
||||
Display a help message and exit.
|
||||
.SH "FORMATS"
|
||||
The following documentation formats are supported:
|
||||
.SS ecma
|
||||
The \fIMono ECMA Documentation Format\fR, an XML documentation format with one
|
||||
file per type.
|
||||
.PP
|
||||
See the \fBmdoc\fR(5) man page for more information.
|
||||
.SS ecmaspec
|
||||
The \fIMono ECMA Specification Documentation Format\fR.
|
||||
This is not the format you're looking for; it is the format used to represent
|
||||
the ECMA-334 (C#) standard within \fBmonodoc\fR(1). It is not used to display
|
||||
class library documentation; for class library documentation, use the
|
||||
.B ecma
|
||||
format.
|
||||
.SS error
|
||||
The \fIError Documentation Format\fR is used to present detailed error
|
||||
messages, and is used in \fBmonodoc\fR(1)'s "C# Compiler Error Reference"
|
||||
tree.
|
||||
.PP
|
||||
In this format, \fIPATHS\fR is a configuration file, containing the XML:
|
||||
.nf
|
||||
|
||||
<ErrorProviderConfig>
|
||||
<FilesPath>../../mcs/errors</FilesPath>
|
||||
<Match>cs????*.cs</Match>
|
||||
<ErrorNumSubstringStart>2</ErrorNumSubstringStart>
|
||||
<ErrorNumSubstringLength>4</ErrorNumSubstringLength>
|
||||
<FriendlyFormatString>CS{0:0###}</FriendlyFormatString>
|
||||
</ErrorProviderConfig>
|
||||
|
||||
.fi
|
||||
The elements mean:
|
||||
.TP
|
||||
.I /ErrorProviderConfig/FilesPath
|
||||
Specifies where to look for files.
|
||||
.TP
|
||||
.I /ErrorProviderConfig/Match
|
||||
Specifies the filename pattern to look for within the
|
||||
\fI/ErrorProviderConfig/FilesPath\fR directory.
|
||||
.TP
|
||||
.I /ErrorProviderConfig/ErrorNumSubstringStart
|
||||
Specifies where within the filename the error number starts.
|
||||
.TP
|
||||
.I /ErrorProviderConfig/ErrorNumSubstringLength
|
||||
Specifies how many characters after
|
||||
\fI/ErrorProviderConfig/ErrorNumSubstringStart\fR to use for the error number.
|
||||
.TP
|
||||
.I /ErrorProviderConfig/FriendlyFormatString
|
||||
Specifies the formatting/display of the node in the \fBmonodoc\fR(1) tree.
|
||||
.PP
|
||||
For each file found, it is converted to HTML with C# syntax coloring applied.
|
||||
.SS simple
|
||||
The \fISimple Documentation Format\fR file format recursively adds all files
|
||||
and directories underneath \fIPATHS\fR. When displayed, HTML files are
|
||||
displayed as-is. Text files are converted into HTML by translating each
|
||||
newline into an HTML \fI<br>\fR element. No other file type is supported.
|
||||
.SS man
|
||||
The \fIMan Page Documentation Format\fR displays groff man pages. (This is
|
||||
\fInot\fR a full groff parser, and only handles the man page constructs used
|
||||
within the mono man pages.)
|
||||
.PP
|
||||
\fIPATHS\fR is a set of XML files containing:
|
||||
.nf
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<manpages>
|
||||
<manpage name="NAME" page="FILE" />
|
||||
</manpages>
|
||||
|
||||
.fi
|
||||
There may be multiple \fI//manpage\fR elements within the root \fI/manpage\fR
|
||||
element.
|
||||
.PP
|
||||
The \fI/manpages/manpage/@name\fR attribute contains the display name for the
|
||||
tree view node, which is also the URL of the man page when using
|
||||
\fBmonodoc\fR(1)'s \fILookup URL\fR command (before prefixing with a
|
||||
\fIman:\fR prefix). Thus, if \fI/manpages/manpage/@name\fR contains
|
||||
\fImono(1)\fR, then \fIman:mono(1)\fR can be used in the \fILookup URL\fR
|
||||
command to view the \fImono(1)\fR man page.
|
||||
.PP
|
||||
The \fI/manpages/manpage/@page\fR attribute is the filename that contains the
|
||||
man page. If this file does not exist, then \fI/manpages/manpage/@name\fR
|
||||
will not be displayed within the tree view.
|
||||
.SS xhtml
|
||||
The XHTML provider interprets \fIPATHS\fR as a Windows Help file XHTML TOC
|
||||
file and looks for referenced documents to create the help source.
|
||||
.SH SEE ALSO
|
||||
\fBmdoc\fR(1),
|
||||
\fBmdoc\fR(5),
|
||||
\fBmonodoc\fR(1)
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
See also: http://www.mono-project.com/mdoc
|
||||
@@ -1,122 +0,0 @@
|
||||
.\"
|
||||
.\" mdoc-export-html manual page.
|
||||
.\" (C) 2008 Novell, Inc.
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdoc-export-html" 1
|
||||
.SH NAME
|
||||
mdoc export-html \- Convert \fBmdoc\fR(5) XML to HTML.
|
||||
.SH SYNOPSIS
|
||||
\fBmdoc export-html\fR [OPTION]* DIRECTORIES
|
||||
.SH DESCRIPTION
|
||||
\fBmdoc export-html\fR creates HTML files from the \fBmdoc\fR(5)-formatted
|
||||
documentation XML files within \fIDIRECTORIES\fR.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB\-\-ext\fR=\fIEXTENSION\fR
|
||||
The file extension to use for created files.
|
||||
.Sp
|
||||
This defaults to \fIhtml\fR.
|
||||
.TP
|
||||
.B \-\-default\-template
|
||||
Writes the default XSLT used to \fIstdout\fR.
|
||||
.TP
|
||||
\fB\-\-template\fR=\fIFILE\fR
|
||||
An XSLT file to use to generate the created files.
|
||||
.Sp
|
||||
If not specified, uses the template produced by \fI\-\-dump\-template\fR.
|
||||
.Sp
|
||||
See the \fITEMPLATE FORMAT\fR section below for more information.
|
||||
.TP
|
||||
\fB\-o\fR, \fB\-\-out\fR=\fIDIRECTORY\fR
|
||||
Write the created files within directory \fIDIRECTORY\fR.
|
||||
.TP
|
||||
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
|
||||
Display a help message and exit.
|
||||
.SH TEMPLATE FORMAT
|
||||
The template file is an XSLT which needs to process the following input XML
|
||||
document:
|
||||
.nf
|
||||
|
||||
<Page>
|
||||
<CollectionTitle>Collection Title</CollectionTitle>
|
||||
<PageTitle>Page Title</PageTitle>
|
||||
<Summary>Page Summary</Summary>
|
||||
<Signature>Type Declaration</Signature>
|
||||
<Remarks>Type Remarks</Remarks>
|
||||
<Members>Type Members</Members>
|
||||
<Copyright>Documentation Copyright</Copyright>
|
||||
</Page>
|
||||
|
||||
.fi
|
||||
The generated HTML also makes use of several CSS classes. You can either use
|
||||
the \fIcreate-default-style\fR named template found within the
|
||||
\fI\-\-default\-template\fR output to generate these classes, or explicitly
|
||||
define the following CSS classes:
|
||||
.RS
|
||||
.ne 8
|
||||
.TP
|
||||
.I .CollectionTitle
|
||||
.TP
|
||||
.I .PageTitle
|
||||
.TP
|
||||
.I .Summary
|
||||
.TP
|
||||
.I .Signature
|
||||
.TP
|
||||
.I .Remarks
|
||||
.TP
|
||||
.I .Members
|
||||
.TP
|
||||
.I .Copyright
|
||||
.TP
|
||||
.I .Section
|
||||
.TP
|
||||
.I .SectionBox
|
||||
.TP
|
||||
.I .NamespaceName
|
||||
.TP
|
||||
.I .NamespaceSummary
|
||||
.TP
|
||||
.I .MemberName
|
||||
.TP
|
||||
.I .MemberSignature
|
||||
.TP
|
||||
.I .MemberBox
|
||||
.TP
|
||||
.I .Subsection
|
||||
.TP
|
||||
.I .SubsectionBox
|
||||
.TP
|
||||
.I .SignatureTable
|
||||
.TP
|
||||
.I .EnumerationsTable
|
||||
.TP
|
||||
.I .CodeExampleTable
|
||||
.TP
|
||||
.I .MembersListing
|
||||
.TP
|
||||
.I .TypesListing
|
||||
.TP
|
||||
.I .InnerSignatureTable
|
||||
.TP
|
||||
.I .TypePermissionsTable
|
||||
.ne
|
||||
.RE
|
||||
.PP
|
||||
.SH HTML LINKS
|
||||
All members within the HTML file have an \fIid\fR
|
||||
attribute to permit linking to a specific member. The value of the
|
||||
\fIid\fR attribute is the String ID of the specified member.
|
||||
.PP
|
||||
See the \fICREF FORMAT\fR section of \fBmdoc\fR(5) for more information.
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com/mdoc for details
|
||||
@@ -1,37 +0,0 @@
|
||||
.\"
|
||||
.\" mdoc-export-msxdoc manual page.
|
||||
.\" (C) 2008 Novell, Inc.
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdoc-export-msxdoc" 1
|
||||
.SH NAME
|
||||
mdoc export-msxdoc \- Convert \fBmdoc\fR(5) XML to Microsoft XML Documentation
|
||||
.SH SYNOPSIS
|
||||
\fBmdoc export-msxdoc\fR [OPTION]* DIRECTORIES
|
||||
.SH DESCRIPTION
|
||||
\fBmdoc export-msxdoc\fR creates \fIMicrosoft XML Documentation\fR
|
||||
(as produced by \fIcsc /doc\fR) from the
|
||||
\fBmdoc\fR(5)-formatted documentation XML files within \fIDIRECTORIES\fR.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB\-o\fR, \fB\-\-out\fR=\fIFILE\fR
|
||||
The XML file to generate.
|
||||
.Sp
|
||||
If not specified, a set of files matching the
|
||||
\fI//AssemblyInfo/AssemblyName\fR values within the documentation will be
|
||||
used.
|
||||
.Sp
|
||||
Use \fB-\fR to write to standard output.
|
||||
.TP
|
||||
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
|
||||
Display a help message and exit.
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com/mdoc for details
|
||||
@@ -1,75 +0,0 @@
|
||||
.\"
|
||||
.\" mdoc-update manual page.
|
||||
.\" (C) 2008 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdoc-update" 1
|
||||
.SH NAME
|
||||
mdoc update \- \fBmdoc\fR(5) documentation format support
|
||||
.SH SYNOPSIS
|
||||
\fBmdoc update\fR [OPTIONS]* ASSEMBLIES
|
||||
.SH DESCRIPTION
|
||||
\fBmdoc update\fR is responsible for the following:
|
||||
.TP
|
||||
.B *
|
||||
Creating documentation stubs based on \fIASSEMBLIES\fR. The stub-creation
|
||||
process will create new \fBmdoc\fR(5) XML files for each type within
|
||||
\fIASSEMBLIES\fR, and provide documentation stubs for each member of those
|
||||
types.
|
||||
.TP
|
||||
.B *
|
||||
Update documentation stubs based on \fIASSEMBLIES\fR. Existing \fBmdoc\fR(5)
|
||||
documentation can be updated to reflect changes within \fIASSEMBLIES\fR, such
|
||||
as added types and members, while preserving existing documentation.
|
||||
.Sp
|
||||
In some limited circumstances, renames will be tracked, minimizing the
|
||||
documentation burden when e.g. a parameter is renamed.
|
||||
circumstances,
|
||||
creates stubs and updates documentation in the \fBmdoc\fR(5)
|
||||
documentation format from \fIASSEMBLIES\fR.
|
||||
.PP
|
||||
\fBmdoc update\fR does not rely on documentation found within source code.
|
||||
.PP
|
||||
See \fBmdoc\fR(1) and \fBmdoc\fR(5) for more information.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B \-\-delete
|
||||
Allow \fBmdoc update\fR to delete members from documentation files.
|
||||
The only members deleted are members which are no longer present within
|
||||
\fIASSEMBLIES\fR and are not present in any other assembly versions.
|
||||
.Sp
|
||||
If a type is no longer present, the documentation file is \fInot\fR
|
||||
deleted, but is instead \fIrenamed\fR to have a \fB.remove \fR extension.
|
||||
.Sp
|
||||
Version detection is done with the \fI//AssemblyVersion\fR elements; if there
|
||||
are no \fI//AssemblyVersion\fR elements for a given \fI<Type>\fR or
|
||||
\fI<Member/>\fR, then the \fI<Type>\fR will be renamed and/or the
|
||||
\fI<Member/>\fR will be removed.
|
||||
.TP
|
||||
\fB\-i\fR, \fB\-\-import\fR=\fIFILE\fR
|
||||
Import documentation found within \fIFILE\fR.
|
||||
.Sp
|
||||
\fIFILE\fR may contain either \fIcsc /doc\fR XML or \fIECMA-335\fR XML.
|
||||
.TP
|
||||
\fB\-o\fR, \fB\-\-out\fB=\fIDIRECTORY\fR
|
||||
Place the generated stubs into \fIDIRECTORY\fR.
|
||||
.Sp
|
||||
When updating documentation, \fIDIRECTORY\fR is also the source directory.
|
||||
.B \-h, \-?, \-\-help
|
||||
Display a help message and exit.
|
||||
.SH SEE ALSO
|
||||
mdoc(1),
|
||||
mdoc(5),
|
||||
mdoc-assemble(1),
|
||||
mdoc-export-html(1),
|
||||
mdoc-validate(1),
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com for details
|
||||
@@ -1,54 +0,0 @@
|
||||
.\"
|
||||
.\" mdoc validate manual page.
|
||||
.\" (C) 2008 Novell, Inc.
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdoc-validate" 1
|
||||
.SH NAME
|
||||
mdoc validate \- Validate XML documents against a schema
|
||||
.SH SYNOPSIS
|
||||
.B mdoc validate
|
||||
[OPTIONS]*
|
||||
PATHS+
|
||||
.SH DESCRIPTION
|
||||
\fBmdoc validate\fR validates the specified \fIPATHS\fR against a specified
|
||||
format schema.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB\-\-format\fR=\fIFORMAT\fR
|
||||
The documentation format to validate \fIPATHS\fR against. Supported formats
|
||||
include: \fIecma\fR.
|
||||
.Sp
|
||||
See the \fIFORMATS\fR section below for more information about these formats.
|
||||
.Sp
|
||||
The default format (if none is specified) is \fIecma\fR.
|
||||
.TP
|
||||
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR
|
||||
Display a help message and exit.
|
||||
.SH FORMATS
|
||||
The following documentation formats are supported:
|
||||
.SS ecma
|
||||
The \fIMono ECMA Documentation Format\fR validates all output generated by
|
||||
\fBmdoc-update\fR(1) against an XML schema, including the \fIindex.xml\fR,
|
||||
\fIns-*.xml\fR, and \fINamespaceName/TypeName.xml\fR files.
|
||||
.PP
|
||||
See \fBmdoc\fR(5) for details about this file format.
|
||||
.SH EXAMPLES
|
||||
To validate the \fBmdoc-update\fR(1) output stored within a directory (and all
|
||||
documentation within that directory, recursively), use:
|
||||
.nf
|
||||
|
||||
mdoc validate /path/to/ecma/docs
|
||||
|
||||
.fi
|
||||
.PP
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com/mdoc for details
|
||||
-198
@@ -1,198 +0,0 @@
|
||||
.\"
|
||||
.\" mdoc manual page.
|
||||
.\" (C) 2008 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdoc" 1
|
||||
.SH NAME
|
||||
mdoc \- Mono documentation management tool
|
||||
.SH SYNOPSIS
|
||||
.B mdoc
|
||||
.I command
|
||||
[\fIoptions\fR] [\fIargs\fR]
|
||||
.SH OVERVIEW
|
||||
\fImdoc\fR is an assembly-based documentation management system.
|
||||
.PP
|
||||
\fImdoc\fR permits creating and updating documentation \fIstubs\fR based on
|
||||
the contents of an assembly. It does not rely on documentation found within
|
||||
the source code.
|
||||
.PP
|
||||
The advantages are:
|
||||
.TP
|
||||
.B *
|
||||
.B Code readability.
|
||||
Good documentation is frequently (a) verbose, and (b)
|
||||
filled with examples. (For comparison, compare Microsoft .NET Framework
|
||||
documentation, which is often a page or more of docs for each member, to
|
||||
JavaDoc documentation, which can often be a sentence for each member.)
|
||||
.Sp
|
||||
Inserting good documentation into the source code can frequently bloat the
|
||||
source file, as the documentation can be longer than the actual method that is
|
||||
being documented.
|
||||
.TP
|
||||
.B *
|
||||
.B Localization.
|
||||
In-source documentation formats (such as \fIcsc /doc\fR)
|
||||
have no support for multiple human languages. If you need to support more
|
||||
than one human language for documentation purposes, \fImdoc\fR
|
||||
is useful as it permits each language's output to reside in its own directory,
|
||||
and \fImdoc\fR can add types/members for each separate documentation directory.
|
||||
.TP
|
||||
.B *
|
||||
.B Administration.
|
||||
It's not unusual to have separate documentation and development teams. It's
|
||||
also possible that the documentation team will have minimal experience with
|
||||
the programming language being used. In such circumstances, inline
|
||||
documentation is not desirable as the documentation team could inadvertantly
|
||||
insert an error into the source code while updating the documentation.
|
||||
Alternatively, you may not want the documentation team to have access to the
|
||||
source code for security reasons. \fImdoc\fR allows the documentation to be
|
||||
kept \fIcompletely\fR separate and distinct from the source code used to
|
||||
create the assembly.
|
||||
.PP
|
||||
Documentation can be generated using the \fBmdoc update\fR command:
|
||||
.nf
|
||||
|
||||
mdoc update -o docs/en ProjectName.dll
|
||||
|
||||
.fi
|
||||
Once the documentation stubs have been generated (and hopefully later filled
|
||||
in with actual documentation), there are three ways to view the documentation:
|
||||
.TP
|
||||
.B *
|
||||
To generate a simple directory of HTML pages (one HTML file per type), use
|
||||
\fBmdoc export-html\fR:
|
||||
.nf
|
||||
|
||||
mdoc export-html -o /srv/www/htdocs/ProjectName docs/en
|
||||
|
||||
.fi
|
||||
.TP
|
||||
.B *
|
||||
To use an ASP.NET webapp to display the sources, see:
|
||||
\fIhttp://anonsvn.mono-project.com/source/trunk/monodoc/engine/web/\fR.
|
||||
.Sp
|
||||
From a \fImonodoc\fR source checkout, you can do this:
|
||||
.nf
|
||||
|
||||
cd engine
|
||||
make web
|
||||
|
||||
.fi
|
||||
This will use \fBxsp\fR(1) to serve the ASP.NET webapp;
|
||||
Visit \fIhttp://localhost:8080/\fR to view the documentation.
|
||||
.TP
|
||||
.B *
|
||||
To use the \fBmonodoc\fR(1) documentation browser, you must first
|
||||
\fIassemble\fR the documentation:
|
||||
.nf
|
||||
|
||||
mdoc assemble -o ProjectName docs/en
|
||||
|
||||
.fi
|
||||
The above command creates the files \fIProjectName.tree\fR and
|
||||
\fIProjectName.zip\fR. An additional \fIProjectName.sources\fR file
|
||||
must be provided which describes where in the help system the documentation
|
||||
should be hooked up; it is a very simple XML file, like this:
|
||||
.nf
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<monodoc>
|
||||
<source provider="ecma" basefile="ProjectName"
|
||||
path="various" />
|
||||
</monodoc>
|
||||
|
||||
.fi
|
||||
The above configuration file describes that the documentation is in
|
||||
ECMA format, that the base file name is \fIProjectName\fR and that it
|
||||
should be hooked up in the \fI"various"\fR part of the documentation tree.
|
||||
If you want to look at the various nodes defined in the
|
||||
documentation, you can look at the \fImonodoc.xml\fR file which is typically
|
||||
installed in \fI/usr/lib/monodoc/monodoc.xml\fR.
|
||||
.Sp
|
||||
Once you have all of the required files (.zip, .tree and .sources) you can
|
||||
install them into the system with the following command:
|
||||
.nf
|
||||
|
||||
cp ProjectName.tree ProjectName.zip ProjectName.source \\
|
||||
`pkg-config monodoc --variable sourcesdir`
|
||||
|
||||
.fi
|
||||
The above will copy the files into the directory that Monodoc has
|
||||
registered; you might need root permissions to do this. The actual
|
||||
directory is returned by the \fIpkg-config\fR invocation.
|
||||
.SH MDOC COMMANDS
|
||||
.PP
|
||||
\fBmdoc assemble\fR
|
||||
.RS 4
|
||||
Compiles documentation for use within the \fBmonodoc\fR(1) browser.
|
||||
.PP
|
||||
See the \fBmdoc-assemble\fR(1) man page for details.
|
||||
.RE
|
||||
.PP
|
||||
\fBmdoc export-html\fR
|
||||
.RS 4
|
||||
Exports documentation into a directory structure of HTML files.
|
||||
.PP
|
||||
See the \fBmdoc-export-html\fR(1) man page for details.
|
||||
.RE
|
||||
.PP
|
||||
\fBmdoc export-msxdoc\fR
|
||||
.RS 4
|
||||
Exports documentation into the single-file
|
||||
\fIMicrosoft XML Documentation\fR format.
|
||||
.PP
|
||||
See the \fBmdoc-export-msxdoc\fR(1) man page for details.
|
||||
.RE
|
||||
.PP
|
||||
\fBmdoc help\fR
|
||||
.RS 4
|
||||
View internal help for a given command.
|
||||
|
||||
.nf
|
||||
mdoc help assemble
|
||||
.fi
|
||||
|
||||
is equivalent to:
|
||||
|
||||
.nf
|
||||
mdoc assemble --help
|
||||
.fi
|
||||
|
||||
Multiple sub-commands may be listed at once:
|
||||
|
||||
.nf
|
||||
mdoc help assemble export-html update validate
|
||||
.fi
|
||||
.RE
|
||||
.PP
|
||||
\fBmdoc update\fR
|
||||
.RS 4
|
||||
Updates documentation, adding and removing members based upon a reference
|
||||
assembly.
|
||||
.PP
|
||||
See the \fBmdoc-update\fR(1) man page for details.
|
||||
.RE
|
||||
.PP
|
||||
\fBmdoc validate\fR
|
||||
.RS 4
|
||||
Validates the documentation against the Mono documentation schema.
|
||||
.PP
|
||||
See the \fBmdoc-validate\fR(1) man page for details.
|
||||
.RE
|
||||
.SH SEE ALSO
|
||||
mdoc(5),
|
||||
mdoc-assemble(1),
|
||||
mdoc-export-html(1),
|
||||
mdoc-update(1),
|
||||
mdoc-validate(1)
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com/mdoc for details
|
||||
-794
@@ -1,794 +0,0 @@
|
||||
.\"
|
||||
.\" mdoc(5) manual page.
|
||||
.\" (C) 2008 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdoc" 5
|
||||
.SH NAME
|
||||
mdoc \- Mono Documentation XML Format
|
||||
.SH DESCRIPTION
|
||||
The assorted Mono documentation programs generate or manipulate XML files
|
||||
following the mono documentation schema:
|
||||
.TP
|
||||
.I mdoc update
|
||||
Creates or updates mono documentation XML for a set of assemblies.
|
||||
.TP
|
||||
.I mdoc validate
|
||||
Validates the mono documentation XML against the mono documentation XML
|
||||
schema.
|
||||
.TP
|
||||
.I mdoc assemble
|
||||
Converts the mono documentation XML within a directory structure into a set
|
||||
of files for use with \fBmonodoc\fR(1).
|
||||
.TP
|
||||
.I mdoc export-html
|
||||
Converts the mono documentation XML within a directory structure into a set
|
||||
of HTML files that can be viewed with a web browser.
|
||||
.PP
|
||||
All of these tools (and more) use the common XML schema described in this man
|
||||
page.
|
||||
.SH FILE/DIRECTORY STRUCTURE
|
||||
There are three sets of Mono documentation XML files:
|
||||
.TP
|
||||
.B *
|
||||
.B index.xml:
|
||||
contains a list of all assemblies within the containing directory, and all
|
||||
types and namespaces within those assemblies.
|
||||
.TP
|
||||
.B *
|
||||
.B ns\-*.xml:
|
||||
There is one ns-*.xml file for each namespace within the assembly; these
|
||||
files are siblings to
|
||||
.I index.xml
|
||||
\&.
|
||||
.Sp
|
||||
Examples of
|
||||
.I ns\-*.xml
|
||||
files include: \fIns-System.xml\fR, \fIns-System.Collections.xml\fR, and
|
||||
\fIns-.xml\fR (for the root namespace, though it is recommended to NOT place
|
||||
types into the root namespace, as \fBmonodoc\fR(1) doesn't display them).
|
||||
.Sp
|
||||
The
|
||||
.I ns\-*.xml
|
||||
files contain per-namespace documentation.
|
||||
.TP
|
||||
.B *
|
||||
.B NamespaceName/TypeName.xml:
|
||||
These files are within a dotted
|
||||
.I NamespaceName
|
||||
directory, and
|
||||
.I TypeName
|
||||
is the name of the type.
|
||||
.Sp
|
||||
Examples include:
|
||||
.I RootType.xml
|
||||
(if the type has no namespace),
|
||||
\fISystem/String.xml\fR,
|
||||
\fISystem.Collections/IEnumerable.xml\fR, and
|
||||
\fISystem.Collections.Generic/List`1+Enumerator.xml\fR
|
||||
(the
|
||||
.I `1
|
||||
is the number of generic type parameters the type accepts, and everything
|
||||
after the
|
||||
.I +
|
||||
is a nested type).
|
||||
.PP
|
||||
Thus, typical directory contents would resemble:
|
||||
|
||||
.nf
|
||||
index.xml
|
||||
ns-System.xml
|
||||
ns-System.Collections.Generic.xml
|
||||
System/String.xml
|
||||
System.Collections.Generic/List`1.xml
|
||||
.fi
|
||||
.SH DOCUMENTATION FORMAT
|
||||
.SS "\fBindex.xml File Format\fR"
|
||||
.PP
|
||||
The
|
||||
.I index.xml
|
||||
file contains a list of the assemblies nested under the directory containing
|
||||
.I index.xml
|
||||
and all namespaces and types within those assemblies. It looks something like
|
||||
this:
|
||||
|
||||
.nf
|
||||
<Overview>
|
||||
<Assemblies>
|
||||
<Assembly Name="mscorlib" Version="2.0.0.0" />
|
||||
<!-- other <Assembly/> elements... -->
|
||||
</Assemblies>
|
||||
<Remarks>To be added.</Remarks>
|
||||
<Copyright>To be added.</Copyright>
|
||||
<Types>
|
||||
<Namespace Name="System">
|
||||
<Type Name="String" />
|
||||
<!-- Other <Type/> elements -->
|
||||
</Namespace>
|
||||
<Namespace Name="System.Collections.Generic">
|
||||
<Type Name="List`1" DisplayName="List<T>" />
|
||||
<!-- Other <Type/> elements -->
|
||||
</Namespace>
|
||||
<!-- other <Namespace/> elements -->
|
||||
</Types>
|
||||
<Title>DocTest</Title>
|
||||
</Overview>
|
||||
.fi
|
||||
|
||||
Most of this is maintained automatically, in particular the
|
||||
.I /Overview/Assemblies
|
||||
and
|
||||
.I /Overview/Types
|
||||
elements.
|
||||
.PP
|
||||
The
|
||||
.I //Namespace/@Name
|
||||
attribute corresponds to a directory which contains files named
|
||||
\fI//Type/@Name\fR.xml, while the \fI//Type/@DisplayName\fR attribute contains
|
||||
a C# type name (if \fI//Type/@DisplayName\fR isn't found, then
|
||||
\fI//Type/@Name\fR is used as the display name). There should also be a
|
||||
\fIns-[//Namespace/@Name].xml\fR file.
|
||||
.PP
|
||||
There are three elements of interest to authors:
|
||||
\fI/Overview/Remarks\fR, \fI/Overview/Copyright\fR, and
|
||||
\fI/Overview/Title\fR, which contain assembly-level documentation.
|
||||
These elements can contain any of the following XML elements (documented in
|
||||
the \fBDocumentation XML Elements\fR section):
|
||||
\fIblock\fR,
|
||||
\fIcode\fR,
|
||||
\fIexample\fR,
|
||||
\fIlist\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fItypeparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fIul\fR.
|
||||
.SS "\fBns-*.xml File Format\fR"
|
||||
The \fIns-*.xml\fR files contain namespace documentation:
|
||||
|
||||
.nf
|
||||
<Namespace Name="System">
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Namespace>
|
||||
.fi
|
||||
|
||||
The \fI/Namespace/Docs/summary\fR and \fI/Namespace/Docs/remarks\fR elements
|
||||
should contain namespace documentation.
|
||||
.PP
|
||||
The \fIremarks\fR and \fIsummary\fR elements are documented in the
|
||||
\fBDocumentation XML Elements\fR section.
|
||||
.SS "\fBNamespaceName/TypeName.xml File Format\fR"
|
||||
The
|
||||
.I mono documentation format
|
||||
is similar to the Ecma documentation format, as described
|
||||
in ECMA-335 3rd Edition, Partition IV, Chapter 7.
|
||||
The principal difference from the ECMA format is that each type gets its own
|
||||
file, within a directory identical to the namespace of the type. There is a
|
||||
lot of information that is maintained automatically by \fBmdoc\fR(1);
|
||||
Most of the information within the documentation should
|
||||
.I not
|
||||
be edited. This includes the type name (\fI/Type/@FullName\fR), implemented
|
||||
interfaces (\fI/Type/Interfaces\fR), member information
|
||||
(\fI/Type/Members/Member/@MemberName\fR,
|
||||
\fI/Type/Members/Member/MemberSignature\fR,
|
||||
\fI/Type/Members/Member/MemberType\fR,
|
||||
\fI/Type/Members/Member/Parameters\fR, etc.).
|
||||
|
||||
.nf
|
||||
<Type Name="DocAttribute" FullName="Mono.DocTest.DocAttribute">
|
||||
<TypeSignature Language="C#" Value="public class DocAttribute : Attribute" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>DocTest</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Attribute</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.AttributeUsage(System.AttributeTargets.All)</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public DocAttribute (string docs);" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Parameters>
|
||||
<Parameter Name="docs" Type="System.String" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="docs">To be added.</param>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
.fi
|
||||
|
||||
The only elements that normally need to be edited are children of the
|
||||
\fI//Docs\fR elements, which usually contain the text
|
||||
.I To be added.
|
||||
The \fI/Type/Docs\fR element contains type-level documentation, while the
|
||||
\fI/Type/Members/Member/Docs\fR element contains per-member documentation.
|
||||
.PP
|
||||
The \fI//Docs\fR elements can contain the following elements:
|
||||
\fIaltcompliant\fR,
|
||||
\fIaltmember\fR,
|
||||
\fIexample\fR,
|
||||
\fIexception\fR,
|
||||
\fIparam\fR,
|
||||
\fIpermission\fR,
|
||||
\fIremarks\fR,
|
||||
\fIreturns\fR,
|
||||
\fIsince\fR,
|
||||
\fIsummary\fR,
|
||||
\fIthreadsafe\fR,
|
||||
\fItypeparam\fR, and
|
||||
\fIvalue\fR.
|
||||
.PP
|
||||
Nested types are not members; they are types, and are documented in their own
|
||||
file. Consequently, the \fINamespaceName/TypeName.xml\fR files are not
|
||||
recursive; you do not store a \fI<Type/>\fR element within a \fI<Type/>\fR
|
||||
element.
|
||||
.SS "\fBDocumentation XML Elements\fR"
|
||||
The contents of the \fIDocs\fR element is \fIidentical\fR
|
||||
in semantics and structure to the inline C# documentation format, consisting
|
||||
of these elements (listed in ECMA-334 3rd Edition, Annex E, Section 2). The
|
||||
following are used within the element descriptions:
|
||||
.TP
|
||||
.I CREF
|
||||
Refers to a class (or member) reference, and is a string in the format
|
||||
described below in the \fBCREF FORMAT\fR section.
|
||||
.TP
|
||||
.I TEXT
|
||||
Non-XML text, and XML should not be nested.
|
||||
.I
|
||||
.TP
|
||||
.I XML
|
||||
Only XML elements should be nested (which indirectly may contain text), but
|
||||
non-whitespace text should not be an immediate child node.
|
||||
.TP
|
||||
.I XML_TEXT
|
||||
Free-form text and XML, so that other XML elements may be nested.
|
||||
.PP
|
||||
The following elements are used in documentation:
|
||||
.TP
|
||||
.I <altmember cref="CREF" />
|
||||
.I <altmember/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Allows an entry to be generated for the \fISee Also\fR section. Use
|
||||
\fI<see/>\fR to specify a link from within text.
|
||||
|
||||
.nf
|
||||
<altmember cref="P:System.Exception.Message" />
|
||||
.fi
|
||||
.TP
|
||||
.I <block subset="SUBSET" type="TYPE">XML_TEXT</block>
|
||||
Create a block of text, similar in concept to a paragraph, but is used to
|
||||
create divisions within the text. To some extent, a <block/> is equivalent to
|
||||
the HTML <h2/> tag.
|
||||
.Sp
|
||||
.I SUBSET
|
||||
should always be the value \fI"none"\fR.
|
||||
.Sp
|
||||
.I TYPE
|
||||
specifies the heading and formatting to use. Recognized types are:
|
||||
.Sp
|
||||
.I behaviors
|
||||
Creates a section with the heading \fIOperation\fR.
|
||||
.Sp
|
||||
.I note
|
||||
Creates a section with the heading \fINote:\fR.
|
||||
.Sp
|
||||
.I overrides
|
||||
Creates a section with the heading \fINote to Inheritors\fR.
|
||||
.Sp
|
||||
.I usage
|
||||
Creates a section with the heading \fIUsage\fR.
|
||||
.Sp
|
||||
The \fIblock\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIc\fR,
|
||||
\fIcode\fR,
|
||||
\fIlist\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR,
|
||||
\fIsubscript\fR,
|
||||
\fIsup\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <c>XML_TEXT</c>
|
||||
Set text in a code-like font (similar to the HTML <tt/> element).
|
||||
.Sp
|
||||
The \fIc\fR element can contain the following elements:
|
||||
\fIcode\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <code lang="LANGUAGE">TEXT</code>
|
||||
Display multiple lines of text in a code-like font (similar to the HTML <pre/>
|
||||
element).
|
||||
.I LANGUAGE
|
||||
is the language this code block is for. For example, if \fILANGUAGE\fR is
|
||||
\fBC#\fR, then \fITEXT\fR will get syntax highlighting for the C# language
|
||||
within the Mono Documentation Browser.
|
||||
.TP
|
||||
.I <example>XML_TEXT</example>
|
||||
Indicates an example that should be displayed specially. For example:
|
||||
|
||||
.nf
|
||||
<example>
|
||||
<para>An introductory paragraph.</para>
|
||||
<code lang="C#">
|
||||
class Example {
|
||||
public static void Main ()
|
||||
{
|
||||
System.Console.WriteLine ("Hello, World!");
|
||||
}
|
||||
}
|
||||
</code>
|
||||
</example>
|
||||
.fi
|
||||
|
||||
The \fIexample\fR element can contain the following elements:
|
||||
\fIc\fR,
|
||||
\fIcode\fR,
|
||||
\fIlist\fR,
|
||||
\fIpara\fR, and
|
||||
\fIsee\fR.
|
||||
.TP
|
||||
.I <exception cref="CREF">XML_TEXT</exception>
|
||||
Identifies an exception that can be thrown by the documented member.
|
||||
.Sp
|
||||
.I <exception/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
.I CREF
|
||||
is the exception type that is thrown, while
|
||||
.I XML_TEXT
|
||||
contains the circumstances that would cause
|
||||
.I CREF
|
||||
to be thrown.
|
||||
|
||||
.nf
|
||||
<exception cref="T:System.ArgumentNullException">
|
||||
<paramref name="foo" /> was <see langword="null" />.
|
||||
</exception>
|
||||
.fi
|
||||
|
||||
The \fIexception\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <list>XML</list>
|
||||
Create a list or table of items.
|
||||
.I <list/>
|
||||
makes use of nested \fI<item>XML</item>\fR, \fI<listheader>XML</listheader>\fR,
|
||||
\fI<term>XML_TEXT</term>\fR, and \fI<description>XML_TEXT</description>\fR
|
||||
elements.
|
||||
.Sp
|
||||
\fILists\fR have the syntax:
|
||||
|
||||
.nf
|
||||
<list type="bullet"> <!-- or type="number" -->
|
||||
<item><term>Bullet 1</term></item>
|
||||
<item><term>Bullet 2</term></item>
|
||||
<item><term>Bullet 3</term></item>
|
||||
</list>
|
||||
.fi
|
||||
.Sp
|
||||
.I Tables
|
||||
have the syntax:
|
||||
|
||||
.nf
|
||||
<list type="table">
|
||||
<listheader> <!-- listheader bolds this row -->
|
||||
<term>Column 1</term>
|
||||
<description>Column 2</description>
|
||||
<description>Column 3</description>
|
||||
</listheader>
|
||||
<item>
|
||||
<term>Item 1-A</term>
|
||||
<description>Item 1-B</description>
|
||||
<description>Item 1-C</description>
|
||||
</item>
|
||||
<item>
|
||||
<term>Item 2-A</term>
|
||||
<description>Item 2-B</description>
|
||||
<description>Item 2-C</description>
|
||||
</item>
|
||||
</list>
|
||||
.fi
|
||||
|
||||
The \fIitem\fR and \fIdescription\fR elements can each contain text and
|
||||
the following elements:
|
||||
\fIblock\fR,
|
||||
\fIc\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR,
|
||||
\fIsup\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <para>XML_TEXT</para>
|
||||
Insert a paragraph of \fIXML_TEXT\fR.
|
||||
For example,
|
||||
|
||||
.nf
|
||||
<para>
|
||||
This is a paragraph of text.
|
||||
</para>
|
||||
.fi
|
||||
|
||||
The \fIpara\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIc\fR,
|
||||
\fIexample\fR,
|
||||
\fIlink\fR,
|
||||
\fIlist\fR,
|
||||
\fIonequarter\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR,
|
||||
\fIsub\fR,
|
||||
\fIsup\fR,
|
||||
\fItypeparamref\fR, and
|
||||
\fIul\fR.
|
||||
.TP
|
||||
.I <param name="NAME">XML_TEXT</param>
|
||||
.I <param/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Describes the parameter \fINAME\fR of the current constructor, method, or
|
||||
property:
|
||||
|
||||
.nf
|
||||
<param name="count">
|
||||
A <see cref="T:System.Int32" /> containing the number
|
||||
of widgets to process.
|
||||
</param>
|
||||
.fi
|
||||
|
||||
|
||||
The \fIparam\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIc\fR,
|
||||
\fIexample\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <paramref name="NAME" />
|
||||
Indicates that \fINAME\fR is a parameter.
|
||||
.Sp
|
||||
This usually renders \fINAME\fR as italic text, so it is frequently
|
||||
(ab)used as an equivalent to the HTML <i/> element. See the
|
||||
\fI<exception/>\fR documentation (above) for an example.
|
||||
.Sp
|
||||
.TP
|
||||
.I <permission cref="CREF">XML_TEXT</permission>
|
||||
Documents the security accessibility requirements of the current member.
|
||||
.Sp
|
||||
.I <permission/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
\fICREF\fR is a type reference to the security permission required, while
|
||||
\fIXML_TEXT\fR is a description of why the permission is required.
|
||||
|
||||
.nf
|
||||
<permission cref="T:System.Security.Permissions.FileIOPermission">
|
||||
Requires permission for reading and writing files. See
|
||||
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Read" />,
|
||||
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Write" />.
|
||||
</permission>
|
||||
.fi
|
||||
|
||||
The \fIpermission\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <remarks>XML_TEXT</remarks>
|
||||
Contains detailed information about a member.
|
||||
.Sp
|
||||
.I <remarks/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
|
||||
.nf
|
||||
<remarks>
|
||||
Insert detailed information here.
|
||||
</remarks>
|
||||
.fi
|
||||
|
||||
The \fIremarks\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIc\fR,
|
||||
\fIcode\fR,
|
||||
\fIexample\fR,
|
||||
\fIlist\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <returns>XML_TEXT</returns>
|
||||
.Sp
|
||||
.I <returns/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Describes the return value of a method:
|
||||
|
||||
.nf
|
||||
<returns>
|
||||
A <see cref="T:System.Boolean" /> specifying whether
|
||||
or not the process can access
|
||||
<see cref="P:Mono.Unix.UnixFileSystemInfo.FullName" />.
|
||||
</returns>
|
||||
.fi
|
||||
|
||||
The \fIreturns\fR element can contain the following elements:
|
||||
\fIlist\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
\fI<see cref="CREF" />\fR, \fI<see langword="LANGWORD" />\fR
|
||||
Creates a link to the specified member within the current text:
|
||||
|
||||
.nf
|
||||
<see cref="M:Some.Namespace.With.Type.Method" />
|
||||
.fi
|
||||
|
||||
or specifies that \fILANGWORD\fR is a language keyword:
|
||||
|
||||
.nf
|
||||
<see langword="null" />
|
||||
.fi
|
||||
|
||||
.TP
|
||||
.I <seealso cref="CREF" />
|
||||
Do not use \fIseealso\fR, use \fIaltmember\fR.
|
||||
.TP
|
||||
.I <since version="VERSION" />
|
||||
.Sp
|
||||
.I <since/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
\fI<Docs/>\fR element.
|
||||
.Sp
|
||||
Permits specification of which version introduced the specified type or
|
||||
member.
|
||||
|
||||
.nf
|
||||
<since version="Gtk# 2.4" />
|
||||
.fi
|
||||
|
||||
This generally isn't required, as the \fI//AssemblyInfo/AssemblyVersion\fR
|
||||
elements track which assembly versions contain type or member.
|
||||
.TP
|
||||
.I <summary>XML_TEXT</summary>
|
||||
.Sp
|
||||
.I <summary/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Provides a (brief!) overview about a type or type member.
|
||||
.Sp
|
||||
This is usually displayed as part of a class declaration, and should be a
|
||||
reasonably short description of the type/member. Use
|
||||
.I <remarks/>
|
||||
for more detailed information.
|
||||
.Sp
|
||||
The \fIsummary\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIlist\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <typeparam name="NAME">XML_TEXT</typeparam>
|
||||
.I <typeparam/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
This is used to document a type parameter for a generic type or generic method.
|
||||
.Sp
|
||||
.I NAME
|
||||
is the name of the type parameter, while
|
||||
.I XML_TEXT
|
||||
contains a description of the parameter (what it's used for, what restrictions
|
||||
it must meet, etc.).
|
||||
|
||||
.nf
|
||||
<typeparam name="T">
|
||||
The type of the underlying collection
|
||||
</typeparam>
|
||||
.fi
|
||||
|
||||
The \fItypeparam\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIc\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.TP
|
||||
.I <typeparamref name="NAME">
|
||||
Used to indicate that \fINAME\fR is a type parameter.
|
||||
.TP
|
||||
.I <value>XML_TEXT</value>
|
||||
.I <value/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Allows a property to be described.
|
||||
|
||||
.nf
|
||||
<value>
|
||||
A <see cref="T:System.String" /> containing a widget name.
|
||||
</value>
|
||||
.fi
|
||||
|
||||
The \fIvalue\fR element can contain the following elements:
|
||||
\fIblock\fR,
|
||||
\fIc\fR,
|
||||
\fIexample\fR,
|
||||
\fIlist\fR,
|
||||
\fIpara\fR,
|
||||
\fIparamref\fR,
|
||||
\fIsee\fR, and
|
||||
\fItypeparamref\fR.
|
||||
.PP
|
||||
.SH CREF FORMAT
|
||||
String IDs (\fICREF\fRs) are used to refer to a type or member of a type.
|
||||
String IDs are documented in ECMA-334 3rd Edition, Annex E.3.1. They consist
|
||||
of a \fImember type prefix\fR, the full type name (namespace + name, separated
|
||||
by \fI.\fR), possibly followed by the member name and other information.
|
||||
.PP
|
||||
Member type prefixes:
|
||||
.TP
|
||||
.I "C:"
|
||||
The CREF refers to a constructor. The (optional) parameter list is
|
||||
enclosed in parenthesis and follows the type name:
|
||||
\fIC:System.String(System.Char,System.Int32)\fR.
|
||||
.TP
|
||||
.I "E:"
|
||||
The CREF refers to an event. The event name follows the type name:
|
||||
\fIE:System.AppDomain.AssemblyLoad\fR.
|
||||
.TP
|
||||
.I "F:"
|
||||
The CREF refers to a field. The field name follows the type name:
|
||||
\fIF:System.Runtime.InteropServices.DllImportAttribute.SetLastError\fR.
|
||||
.TP
|
||||
.I "M:"
|
||||
Refers to a constructor or method. Constructors may append
|
||||
.I .ctor
|
||||
to the type name (instead of using the above
|
||||
.I C:
|
||||
constructor format), while methods append the method name and an (optional)
|
||||
count of the number of generic parameters. Both constructors and methods
|
||||
may append the method parameter list enclosed in parenthesis.
|
||||
.Sp
|
||||
Examples:
|
||||
\fIM:System.Object..ctor\fR,
|
||||
\fIM:System.String..ctor(System.Char[])\fR,
|
||||
\fIM:System.String.Concat(System.Object)\fR,
|
||||
\fIM:System.Array.Sort``1(``0[])\fR,
|
||||
\fIM:System.Collections.Generic.List`1..ctor\fR,
|
||||
\fIM:System.Collections.Generic.List`1.Add(`0)\fR.
|
||||
.TP
|
||||
.I "N:"
|
||||
Refers to a namespace, e.g. \fIN:System\fR.
|
||||
.TP
|
||||
.I "P:"
|
||||
Refers to a property. If the property is an indexer or takes parameters,
|
||||
the parameter types are appended to the property name and enclosed with
|
||||
paranthesis:
|
||||
\fIP:System.String.Length\fR,
|
||||
\fIP:System.String.Chars(System.Int32)\fR.
|
||||
.TP
|
||||
.I "T:"
|
||||
The CREF refers to a type, with the number of generic types appended:
|
||||
\fIT:System.String\fR,
|
||||
\fIT:System.Collections.Generic.List`1\fR,
|
||||
\fIT:System.Collections.Generic.List`1.Enumerator\fR.
|
||||
.PP
|
||||
To make matters more interesting, generic types & members have two
|
||||
representations: the "unbound" representation (shown in examples above), in
|
||||
which class names have the count of generic parameters appended to their name.
|
||||
There is also a "bound" representation, in which the binding of generic
|
||||
parameters is listed within '{' and '}' or '<' and '>'.
|
||||
(Use of '<' and '>' is less common, as within an XML document their escaped
|
||||
character entities must instead be used, leading to '<' and '>'.)
|
||||
.PP
|
||||
.B Unbound:
|
||||
.TP
|
||||
.B *
|
||||
.I T:System.Collections.Generic.List`1
|
||||
.TP
|
||||
.B *
|
||||
.I T:System.Collections.Generic.Dictionary`2
|
||||
.PP
|
||||
.B Bound:
|
||||
.TP
|
||||
.B *
|
||||
.I T:System.Collections.Generic.List{System.Int32}
|
||||
.TP
|
||||
.B *
|
||||
.I T:System.Collections.Generic.List<System.Int32>
|
||||
.TP
|
||||
.B *
|
||||
.I T:System.Collections.Generic.List<System.Int32>
|
||||
.TP
|
||||
.B *
|
||||
.I T:System.Predicate{System.Action{System.String}}
|
||||
.PP
|
||||
As you can see, bound variants can be arbitrarily complex (just like
|
||||
generics).
|
||||
.PP
|
||||
Furthermore, if a generic parameter is bound to the generic parameter of a
|
||||
type or method, the "index" of the type/method's generic parameter is used
|
||||
as the binding, so given
|
||||
|
||||
.nf
|
||||
class FooType {
|
||||
public static void Foo<T> (System.Predicate<T> predicate)
|
||||
{
|
||||
}
|
||||
}
|
||||
.fi
|
||||
|
||||
The CREF for this method is
|
||||
\fIM:FooType.Foo``1(System.Predicate{``0})\fR,
|
||||
.I ``0
|
||||
is the 0th generic parameter index which is bound to
|
||||
\fISystem.Predicate<T>\fR.
|
||||
.SH SEE ALSO
|
||||
mdoc(1), monodocer(1)
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com for details
|
||||
@@ -1,56 +0,0 @@
|
||||
.\"
|
||||
.\" mdvalidator manual page.
|
||||
.\" (C) 2006 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "mdvalidator" 1
|
||||
.SH NAME
|
||||
mdvalidator \- Validate XML Documents against the ECMA Documentation Schema
|
||||
.SH SYNOPSIS
|
||||
.B mdvalidator
|
||||
PROVIDER
|
||||
[FILES]+
|
||||
.SH DESCRIPTION
|
||||
\fImdvalidator\fR has been obsoleted by \fBmdoc\fR(1). See the
|
||||
\fBmdoc-validate\fR(1) man page.
|
||||
.PP
|
||||
.I mdvalidator
|
||||
is a program that validates the specified
|
||||
.I FILES
|
||||
against the ECMA Documentation Schema.
|
||||
.PP
|
||||
The Schema also supports the
|
||||
.I index.xml
|
||||
and
|
||||
.I namespace-name.xml
|
||||
files generated by
|
||||
.I monodocer
|
||||
, so all output produced by
|
||||
.I monodocer
|
||||
can be validated.
|
||||
.PP
|
||||
.SH PROVIDER
|
||||
The following providers are supported:
|
||||
.TP
|
||||
.I ecma
|
||||
Validate the input files against the ECMA Documentation Schema.
|
||||
.PP
|
||||
.SH EXAMPLES
|
||||
To validate the
|
||||
.I monodocer
|
||||
output stored within a directory (and all ECMA documentation within all
|
||||
sub-directories, recursively), use:
|
||||
.nf
|
||||
mdvalidator ecma /path/to/ecma/docs
|
||||
.fi
|
||||
.PP
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com for details
|
||||
@@ -1,19 +0,0 @@
|
||||
.TH "mono-cil-strip" 1
|
||||
.SH NAME
|
||||
Mono CIL strip
|
||||
.SH SYNOPSIS
|
||||
.B mono-cil-strip assembly [output-assembly]
|
||||
.SH DESCRIPTION
|
||||
mono-cil-strip is a tool which takes an assembly, and empty its method bodies.
|
||||
This is useful to reduce an assembly size when an assembly has already been
|
||||
compiled using Mono's Ahead Of Time compiler (AOT), where the CIL code is no
|
||||
longer necessary, but the metadata still is.
|
||||
.SH COPYRIGHT
|
||||
Copyright (C) 2008 Novell, Inc (http://www.novell.com)
|
||||
.SH MAILING LISTS
|
||||
Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
|
||||
.SH LICENSE
|
||||
mono-cil-strip is licensed under the MIT/X11 license. Please read the accompayning
|
||||
MIT.X11 file for details.
|
||||
.SH SEE ALSO
|
||||
.BR monolinker(1),mkbundle(1),mono(1),mcs(1).
|
||||
+1
-6
@@ -81,12 +81,7 @@ Allowed values are: linux, osx, solaris, freebsd, openbsd, netbsd, windows, aix,
|
||||
.TP
|
||||
.I cpu
|
||||
This is the name of the architecture for which the mapping should be applied.
|
||||
Allowed values are: x86, x86-64, sparc, ppc, s390, s390x, arm, mips,
|
||||
alpha, hppa, ia64.
|
||||
.TP
|
||||
.I wordsize
|
||||
This is the size of registers on the target architecture, it can be
|
||||
either 32 or 64.
|
||||
Allowed values are: x86, x86-64, sparc, ppc, s390, s390x, arm, mips, alpha, hppa, ia64.
|
||||
.PP
|
||||
The attribute value for both attributes can be a comma-separated list of the allowed
|
||||
values. Additionally, the first character may be a
|
||||
|
||||
+13
-69
@@ -5,7 +5,11 @@
|
||||
.\" Author:
|
||||
.\" Miguel de Icaza ([email protected])
|
||||
.\"
|
||||
.TH Mono "Mono 2.2"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH Mono "Mono 2.0"
|
||||
.SH NAME
|
||||
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
|
||||
.SH SYNOPSIS
|
||||
@@ -116,20 +120,14 @@ be registered with the embedded runtime using the mono_aot_register_module funct
|
||||
which takes as its argument the mono_aot_module_<ASSEMBLY NAME>_info global symbol
|
||||
from the object file:
|
||||
|
||||
.nf
|
||||
extern void *mono_aot_module_hello_info;
|
||||
|
||||
mono_aot_register_module (mono_aot_module_hello_info);
|
||||
.fi
|
||||
.ne
|
||||
|
||||
.PP
|
||||
For more information about AOT, see: http://www.mono-project.com/AOT
|
||||
.ne
|
||||
.RE
|
||||
.TP
|
||||
\fB--attach=[options]\fR
|
||||
Currently the only option supported by this command line argument is
|
||||
\fBdisable\fR which disables the attach functionality.
|
||||
.Sp
|
||||
For more information about AOT, see: http://www.mono-project.com/AOT
|
||||
.TP
|
||||
\fB--full-aot\fR
|
||||
This is an experimental flag that instructs the Mono runtime to not
|
||||
@@ -250,9 +248,6 @@ Unsafe code is not allowed but P/Invoke is. This mode should
|
||||
not allow managed code to crash mono. The verification is not as
|
||||
strict as ECMA 335 standard in order to stay compatible with the MS
|
||||
runtime.
|
||||
.PP
|
||||
The security system acts on user code: code contained in mscorlib or
|
||||
the global assembly cache is always trusted.
|
||||
.ne
|
||||
.RE
|
||||
.TP
|
||||
@@ -260,15 +255,6 @@ the global assembly cache is always trusted.
|
||||
Configures the virtual machine to be better suited for server
|
||||
operations (currently, a no-op).
|
||||
.TP
|
||||
\fB--verify-all\fR
|
||||
Verifies mscorlib and assemblies in the global
|
||||
assembly cache for valid IL, and all user code for IL
|
||||
verifiability.
|
||||
|
||||
This is different from \fB--security\fR's verifiable
|
||||
or validil in that these options only check user code and skip
|
||||
mscorlib and assemblies located on the global assembly cache.
|
||||
.TP
|
||||
\fB-V\fR, \fB--version\fR
|
||||
Prints JIT version information (system configuration, release number
|
||||
and branch names if available).
|
||||
@@ -291,9 +277,7 @@ much larger and slower code at runtime.
|
||||
The following options are supported:
|
||||
.TP
|
||||
.I casts
|
||||
Produces a detailed error when throwing a InvalidCastException. This
|
||||
option needs to be enabled as this generates more verbose code at
|
||||
execution time.
|
||||
Produces a detailed error when throwing a InvalidCastException.
|
||||
.TP
|
||||
.I mdb-optimizations
|
||||
Disable some JIT optimizations which are usually only disabled when
|
||||
@@ -362,13 +346,6 @@ Finally, namespaces can be specified using the N: prefix:
|
||||
mono --trace=N:System.Xml
|
||||
|
||||
.fi
|
||||
.TP
|
||||
\fB--no-x86-stack-align\fR
|
||||
Don't align stack frames on the x86 architecture. By default, Mono
|
||||
aligns stack frames to 16 bytes on x86, so that local floating point
|
||||
and SIMD variables can be properly aligned. This option turns off the
|
||||
alignment, which usually saves one intruction per call, but might
|
||||
result in significantly lower floating point and SIMD performance.
|
||||
.SH JIT MAINTAINER OPTIONS
|
||||
The maintainer options are only used by those developing the runtime
|
||||
itself, and not typically of interest to runtime users or developers.
|
||||
@@ -429,22 +406,6 @@ hps will list the currently used handles.
|
||||
Increases the verbosity level, each time it is listed, increases the
|
||||
verbosity level to include more information (including, for example,
|
||||
a disassembly of the native code produced, code selector info etc.).
|
||||
.SH ATTACH SUPPORT
|
||||
The Mono runtime allows external processes to attach to a running
|
||||
process and load assemblies into the running program. To attach to
|
||||
the process, a special protocol is implemented in the Mono.Management
|
||||
assembly.
|
||||
.PP
|
||||
With this support it is possible to load assemblies that have an entry
|
||||
point (they are created with -target:exe or -target:winexe) to be
|
||||
loaded and executed in the Mono process.
|
||||
.PP
|
||||
The code is loaded into the root domain, and it starts execution on
|
||||
the special runtime attach thread. The attached program should
|
||||
create its own threads and return after invocation.
|
||||
.PP
|
||||
This support allows for example debugging applications by having the
|
||||
csharp shell attach to running processes.
|
||||
.SH PROFILING
|
||||
The mono runtime includes a profiler that can be used to explore
|
||||
various performance related problems in your application. The
|
||||
@@ -624,15 +585,6 @@ performed during JIT time).
|
||||
These information are also available when combining the "a" and "c" options,
|
||||
but since "c" is much more intrusive "ts" should be preferred.
|
||||
.TP
|
||||
\fIsave-allocation-stack\fR, \fIsas\fR
|
||||
Save the execution stack at each allocation. While the "ts" option saves the
|
||||
direct caller, this one records the whole stack trace. Note that for technical
|
||||
reasons the decoder will correctly ignore wrapper methods only using the data
|
||||
saved by the "ts" option (the stack traces still contain all the wrappers).
|
||||
Anyway the "ts" and "sas" options can be combined, and the decoder will
|
||||
attribute the allocation to the correct method even if the wrapper is at the
|
||||
top of the stack trace.
|
||||
.TP
|
||||
\fIallocations-summary\fR or \fIas\fR
|
||||
At each collection dump a summary
|
||||
of the heap contents (for each class, the number and collective size of all
|
||||
@@ -762,7 +714,7 @@ profiler.
|
||||
To install you must download the profiler
|
||||
from Mono's SVN:
|
||||
.nf
|
||||
svn co svn://anonsvn.mono-project.com/source/trunk/heap-shot
|
||||
svn co svn://svn.myrealbox.com/source/trunk/heap-shot
|
||||
cd heap-shot
|
||||
./autogen
|
||||
make
|
||||
@@ -775,7 +727,7 @@ The Live Type profiler shows at every GC iteration all of the live
|
||||
objects of a given type. To install you must download the profiler
|
||||
from Mono's SVN:
|
||||
.nf
|
||||
svn co svn://anonsvn.mono-project.com/source/trunk/heap-prof
|
||||
svn co svn://svn.myrealbox.com/source/trunk/heap-prof
|
||||
cd heap-prof
|
||||
./autogen
|
||||
make
|
||||
@@ -892,11 +844,7 @@ The offsets displayed are IL offsets.
|
||||
.PP
|
||||
A more powerful coverage tool is available in the module `monocov'.
|
||||
See the monocov(1) man page for details.
|
||||
.SH DEBUGGING AIDS
|
||||
To debug managed applications, you can use the
|
||||
.B mdb
|
||||
command, a command line debugger.
|
||||
.PP
|
||||
.SH DEBUGGING
|
||||
It is possible to obtain a stack trace of all the active threads in
|
||||
Mono by sending the QUIT signal to Mono, you can do this from the
|
||||
command line, like this:
|
||||
@@ -916,10 +864,6 @@ integrity of the runtime after sending this signal is not guaranteed
|
||||
and the application might crash or terminate at any given point
|
||||
afterwards.
|
||||
.PP
|
||||
The \fB--debug=casts\FR option can be used to get more detailed
|
||||
information for Invalid Cast operations, it will provide information
|
||||
about the types involved.
|
||||
.PP
|
||||
You can use the MONO_LOG_LEVEL and MONO_LOG_MASK environment variables
|
||||
to get verbose debugging output about the execution of your
|
||||
application within Mono.
|
||||
@@ -1455,7 +1399,7 @@ http://www.mono-project.com/Mailing_Lists
|
||||
http://www.mono-project.com
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
certmgr(1), csharp(1), mcs(1), mdb(1), monocov(1), monodis(1), mono-config(5), mozroots(1), xsp(1).
|
||||
certmgr(1), mcs(1), monocov(1), monodis(1), mono-config(5), mozroots(1), xsp(1).
|
||||
.PP
|
||||
For more information on AOT:
|
||||
http://www.mono-project.com/AOT
|
||||
|
||||
-692
@@ -1,692 +0,0 @@
|
||||
.\"
|
||||
.\" monodocer manual page.
|
||||
.\" (C) 2006 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "monodocer" 1
|
||||
.SH NAME
|
||||
monodocer \- ECMA Documentation Format Support
|
||||
.SH SYNOPSIS
|
||||
.B monodocer
|
||||
[OPTIONS]*
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.I \-assembly:ASSEMBLY
|
||||
.I ASSEMBLY
|
||||
is a .NET assembly to generate documentation stubs for.
|
||||
.Sp
|
||||
Specify a file path or the name of a GAC'd assembly.
|
||||
.TP
|
||||
.I \-delete
|
||||
Allow monodocer to delete members from documentation files.
|
||||
The only members deleted are for members which are no longer present within
|
||||
the assembly.
|
||||
.Sp
|
||||
If a type is no longer present, the documentation file is
|
||||
.I not
|
||||
deleted, but is instead
|
||||
.I renamed
|
||||
to have a
|
||||
.B .remove
|
||||
extension.
|
||||
.TP
|
||||
.I \-?, \-help
|
||||
Show program argument information.
|
||||
.TP
|
||||
.I \-ignoremembers
|
||||
Do not update members.
|
||||
.Sp
|
||||
This will add documentation stubs for added types, but will
|
||||
.I not
|
||||
add or remove documentation for any members of any type (including any added
|
||||
types).
|
||||
.TP
|
||||
.I \-importslashdoc:FILE
|
||||
.I FILE
|
||||
is an XML file generated with the
|
||||
.B /doc:FILE
|
||||
C# compiler flag (e.g.
|
||||
.I mcs -doc:foo.xml foo.cs
|
||||
). Import the member documentation contained within
|
||||
.I FILE
|
||||
into the documentation format used by monodoc.
|
||||
.TP
|
||||
.I \-name:NAME
|
||||
.I NAME
|
||||
is the name of the project this documentation is for.
|
||||
.Sp
|
||||
This sets the
|
||||
.I /Overview/Title
|
||||
element within the
|
||||
.I index.xml
|
||||
file created at the directory specified by
|
||||
.I -path
|
||||
\&.
|
||||
This is used by some programs for title information (e.g.
|
||||
.I monodocs2html
|
||||
).
|
||||
.TP
|
||||
.I \-namespace:NAMESPACE
|
||||
Only update the types within the namespace
|
||||
.I NAMESPACE
|
||||
\&.
|
||||
.TP
|
||||
.I \-overrides
|
||||
Include overridden methods in documentation.
|
||||
.Sp
|
||||
This normally isn't necessary, as the Mono Documentation Browser will provide a
|
||||
link to the base type members anyway, as will
|
||||
.I monodocs2html
|
||||
if the base type is within the same assembly.
|
||||
.TP
|
||||
.I \-path:OUTPUT_DIR
|
||||
.I OUTPUT_DIR
|
||||
is the directory which will contain the new/updated documentation stubs.
|
||||
.TP
|
||||
.I \-pretty
|
||||
Indent the XML files nicely.
|
||||
.TP
|
||||
.I \-since:SINCE
|
||||
Create a <since/> element for added types and members with the value
|
||||
.I SINCE
|
||||
\&.
|
||||
.Sp
|
||||
For example, when given
|
||||
.I -since:"Gtk# 2.4"
|
||||
an element will be inserted into the
|
||||
.I Docs
|
||||
element for all added types and type members:
|
||||
.nf
|
||||
<since version="Gtk# 2.4" />
|
||||
.fi
|
||||
The Mono Documentation Browser and
|
||||
.I monodocs2html
|
||||
will use this element to specify in which version a member was added.
|
||||
.TP
|
||||
.I \-type:TYPE
|
||||
Only create/update documentation for the type
|
||||
.I TYPE
|
||||
\&.
|
||||
.TP
|
||||
.I \-updateto:PATH
|
||||
When updating documentation, write the updated documentation files into the
|
||||
directory
|
||||
.I PATH
|
||||
\&.
|
||||
.TP
|
||||
.I \-V, \-version
|
||||
Display version and licensing information.
|
||||
.PP
|
||||
.SH DESCRIPTION
|
||||
\fBmonodocer\fR has been obsoleted by \fBmdoc\fR(1). See the
|
||||
\fBmdoc-update\fR(1) man page.
|
||||
.PP
|
||||
.I monodocer
|
||||
is a program that creates XML documentation stubs in the ECMA Documentation
|
||||
Format. It does not rely on documentation found within the source code.
|
||||
.PP
|
||||
The advantages are:
|
||||
.TP
|
||||
.I *
|
||||
.B Code readability.
|
||||
Good documentation is frequently (a) verbose, and (b)
|
||||
filled with examples. (For comparison, compare Microsoft .NET Framework
|
||||
documentation, which is often a page or more of docs for each member, to
|
||||
JavaDoc documentation, which can often be a sentence for each member.)
|
||||
.Sp
|
||||
Inserting good documentation into the source code can frequently bloat the
|
||||
source file, as the documentation can be longer than the actual method that is
|
||||
being documented.
|
||||
.TP
|
||||
.I *
|
||||
.B Localization.
|
||||
In-source documentation formats (such as
|
||||
.B /doc
|
||||
) have no support for multiple human languages. If you need to support more
|
||||
than one human language for documentation purposes,
|
||||
.I monodocer
|
||||
is useful as it permits each language to get its own directory, and
|
||||
.I monodocer
|
||||
can add types/members for each separate documentation directory.
|
||||
.TP
|
||||
.I *
|
||||
.B Administration.
|
||||
It's not unusual to have separate documentation and development teams. It's
|
||||
also possible that the documentation team will have minimal experience with
|
||||
the programming language being used. In such circumstances, inline
|
||||
documentation is not desirable as the documentation team could inadvertantly
|
||||
insert an error into the source code while updating the documentation.
|
||||
Alternatively, you may not want the documentation team to have access to the
|
||||
source code for security reasons.
|
||||
.I monodocer
|
||||
allows the documentation to be kept
|
||||
.I completely
|
||||
separate and distinct from the source code used to create the assembly.
|
||||
.PP
|
||||
To turn the
|
||||
.I monodocer
|
||||
documentation into something that can be consumed by the Mono
|
||||
Documentation Browser (the desktop help browser, or the web interface
|
||||
for it) it is necessary to compile the documentation into a packed
|
||||
format. This is done with the mdassembler tool, for example, you
|
||||
could use this toolchain like this:
|
||||
.nf
|
||||
|
||||
$ monodocer -assembly:MyWidgets -path:generated_docs
|
||||
$ mdassembler --ecma generated_docs -out:MyWidgets
|
||||
|
||||
.fi
|
||||
The above would generate a MyWidgets.zip and a MyWidgets.tree that can
|
||||
then be installed in the system. In addition to the two files (.zip
|
||||
and .tree) you must provide a .sources file which describes where in
|
||||
the help system the documentation should be hooked up, it is a very
|
||||
simple XML file, like this:
|
||||
.nf
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<monodoc>
|
||||
<source provider="ecma" basefile="MyWidgets" path="classlib-gnome"/>
|
||||
</monodoc>
|
||||
|
||||
.fi
|
||||
The above configuration file describes that the documentation is in
|
||||
ECMA format (the compiled version) that the base file name is
|
||||
MyWidgets and that it should be hooked up in the "classlib-gnome" part
|
||||
of the tree. If you want to look at the various nodes defined in the
|
||||
documentation, you can look at monodoc.xml file which is typically
|
||||
installed in /usr/lib/monodoc/monodoc.xml.
|
||||
.PP
|
||||
Once you have all of your files (.zip, .tree and .sources) you can
|
||||
install them into the system with the following command:
|
||||
.nf
|
||||
|
||||
$ cp MyWidgets.tree MyWidgets.zip MyWidgets.source `pkg-config monodoc --variable sourcesdir`
|
||||
|
||||
.fi
|
||||
The above will copy the files into the directory that Monodoc has
|
||||
registered (you might need root permissions to do this). The actual
|
||||
directory is returned by the
|
||||
.I pkg-config
|
||||
invocation.
|
||||
.SH STRING ID FORMAT
|
||||
String IDs are used to refer to a type or member of a type. String IDs are
|
||||
documented in ECMA-334 3rd Edition, Annex E.3.1. They consist of a
|
||||
.I member type prefix
|
||||
, the full type name (namespace + name, separated by '.'), possibly followed
|
||||
by the member name and other information.
|
||||
.PP
|
||||
Member type prefixes:
|
||||
.TP
|
||||
.I "E:"
|
||||
The String ID refers to an event. The event name follows the type name:
|
||||
.I E:System.AppDomain.AssemblyLoad
|
||||
.TP
|
||||
.I "F:"
|
||||
The String ID refers to a field. The field name follows the type name:
|
||||
.I F:System.Runtime.InteropServices.DllImportAttribute.SetLastError
|
||||
.TP
|
||||
.I "M:"
|
||||
Refers to a constructor or method. Constructors append
|
||||
.I .ctor
|
||||
to the type name, while methods append the method name (with an optional count
|
||||
of the number of generic parameters).
|
||||
.Sp
|
||||
If the constructor or method take arguments, these are listed within
|
||||
paranthesis after the constructor/method name:
|
||||
.Sp
|
||||
.I M:System.Object..ctor
|
||||
,
|
||||
.I M:System.String..ctor(System.Char[])
|
||||
,
|
||||
.I M:System.String.Concat(System.Object)
|
||||
,
|
||||
.I M:System.Array.Sort``1(``0[])
|
||||
,
|
||||
.I M:System.Collections.Generic.List`1..ctor
|
||||
,
|
||||
.I M:System.Collections.Generic.List`1.Add(`0)
|
||||
\&.
|
||||
.TP
|
||||
.I "N:"
|
||||
Refers to a namespace, e.g.
|
||||
.I N:System
|
||||
.TP
|
||||
.I "P:"
|
||||
Refers to a property. If the property is an indexer or takes parameters,
|
||||
the parameter types are appended to the property name and enclosed with
|
||||
paranthesis:
|
||||
.I P:System.String.Length
|
||||
,
|
||||
.I P:System.String.Chars(System.Int32)
|
||||
\&.
|
||||
.TP
|
||||
.I "T:"
|
||||
The String ID refers to a type, with the number of generic types appended:
|
||||
.I T:System.String
|
||||
,
|
||||
.I T:System.Collections.Generic.List`1
|
||||
.PP
|
||||
To make matters more interesting, generic types & members have two
|
||||
representations: the "unbound" representation (shown in examples above), in
|
||||
which class names have the count of generic parameters appended to their name.
|
||||
There is also a "bound" representation, in which the binding of generic
|
||||
parameters is listed within '{' and '}'.
|
||||
.PP
|
||||
.B Unbound:
|
||||
.I T:System.Collections.Generic.List`1
|
||||
,
|
||||
.I T:System.Collections.Generic.Dictionary`2
|
||||
\&.
|
||||
.PP
|
||||
.B Bound:
|
||||
.I T:System.Collections.Generic.List{System.Int32}
|
||||
.I T:System.Collections.Generic.Dictionary{System.String,System.Collections.Generic.List{System.Predicate{System.String}}}
|
||||
\&.
|
||||
.PP
|
||||
As you can see, bound variants can be arbitrarily complex (just like
|
||||
generics).
|
||||
.PP
|
||||
Furthermore, if a generic parameter is bound to the generic parameter of a
|
||||
type or method, the "index" of the type/method's generic parameter is used
|
||||
as the binding, so given
|
||||
.nf
|
||||
class FooType {
|
||||
public static void Foo<T> (System.Predicate<T> predicate) {}
|
||||
}
|
||||
.fi
|
||||
The String ID for this method is
|
||||
.I M:FooType.Foo``1(System.Predicate{``0})
|
||||
, as
|
||||
.I ``0
|
||||
is the 0th generic parameter index which is bound to
|
||||
.I System.Predicate<T>
|
||||
\&.
|
||||
.SH DOCUMENTATION FORMAT
|
||||
.I monodocer
|
||||
generates documentation similar to the Ecma documentation format, as described
|
||||
in ECMA-335 3rd Edition, Partition IV, Chapter 7.
|
||||
.PP
|
||||
The principal difference from the ECMA format is that each type gets its own
|
||||
file, within a directory identical to the namespace of the type.
|
||||
.PP
|
||||
Most of the information within the documentation should
|
||||
.I not
|
||||
be edited. This includes the type name (
|
||||
.I /Type/@FullName
|
||||
), implemented interfaces (
|
||||
.I /Type/Interfaces
|
||||
), member information (
|
||||
.I /Type/Members/Member/@MemberName
|
||||
,
|
||||
.I /Type/Members/Member/MemberSignature
|
||||
,
|
||||
.I /Type/Members/Member/MemberType
|
||||
,
|
||||
.I /Type/Members/Member/Parameters
|
||||
, etc.).
|
||||
.PP
|
||||
What
|
||||
.I should
|
||||
be modified are all elements with the text
|
||||
.I To be added.
|
||||
, which are present under the
|
||||
.I //Docs
|
||||
elements (e.g.
|
||||
.I /Type/Docs
|
||||
,
|
||||
.I /Type/Members/Member/Docs
|
||||
). The contents of the
|
||||
.I Docs
|
||||
element is
|
||||
.I identical
|
||||
in semantics and structure to the inline C# documentation format, consisting
|
||||
of these elements (listed in ECMA-334 3rd Edition, Annex E, Section 2). The
|
||||
following are used within the element descriptions:
|
||||
.TP
|
||||
.I CREF
|
||||
Refers to a class (or member) reference, and is a string in the format
|
||||
described above in the
|
||||
.I STRING ID FORMAT
|
||||
section.
|
||||
.TP
|
||||
.I TEXT
|
||||
Non-XML text, and XML should not be nested.
|
||||
.I
|
||||
.TP
|
||||
.I XML
|
||||
Only XML elements should be nested (which indirectly may contain text), but
|
||||
non-whitespace text should not be an immediate child node.
|
||||
.TP
|
||||
.I XML_TEXT
|
||||
Free-form text and XML, so that other XML elements may be nested.
|
||||
.PP
|
||||
The following elements are used in documentation:
|
||||
.TP
|
||||
.I <block subset="SUBSET" type="TYPE">XML_TEXT</block>
|
||||
Create a block of text, similar in concept to a paragraph, but is used to
|
||||
create divisions within the text. To some extent, a <block/> is equivalent to
|
||||
the HTML <h2/> tag.
|
||||
.Sp
|
||||
.I SUBSET
|
||||
should always be the value
|
||||
.I "none"
|
||||
\&.
|
||||
.Sp
|
||||
.I TYPE
|
||||
specifies the heading and formatting to use. Recognized types are:
|
||||
.Sp
|
||||
.I behaviors
|
||||
Creates a section with the heading
|
||||
.I Operation
|
||||
\&.
|
||||
.Sp
|
||||
.I note
|
||||
Creates a section with the heading
|
||||
.I Note:
|
||||
\&.
|
||||
.Sp
|
||||
.I overrides
|
||||
Creates a section with the heading
|
||||
.I Note to Inheritors
|
||||
\&.
|
||||
.Sp
|
||||
.I usage
|
||||
Creates a section with the heading
|
||||
.I Usage
|
||||
\&.
|
||||
.TP
|
||||
.I <c>XML_TEXT</c>
|
||||
Set text in a code-like font (similar to the HTML <tt/> element).
|
||||
.TP
|
||||
.I <code lang="LANGUAGE">TEXT</code>
|
||||
Display multiple lines of text in a code-like font (similar to the HTML <pre/>
|
||||
element).
|
||||
.I LANGUAGE
|
||||
is the language this code block is for. For example, if
|
||||
.I LANGUAGE
|
||||
is
|
||||
.B C#
|
||||
, then
|
||||
.I TEXT
|
||||
will get syntax highlighting for the C# language within the Mono Documentation
|
||||
Browser.
|
||||
.TP
|
||||
.I <example>XML_TEXT</example>
|
||||
Indicates an example that should be displayed specially. For example:
|
||||
.nf
|
||||
<example>
|
||||
<para>An introductory paragraph.</para>
|
||||
<code lang="C#">
|
||||
class Example {
|
||||
public static void Main ()
|
||||
{
|
||||
System.Console.WriteLine ("Hello, World!");
|
||||
}
|
||||
}
|
||||
</code>
|
||||
</example>
|
||||
.fi
|
||||
.TP
|
||||
.I <exception cref="CREF">XML_TEXT</exception>
|
||||
Identifies an exception that can be thrown by the documented member.
|
||||
.Sp
|
||||
.I <exception/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
.I CREF
|
||||
is the exception type that is thrown, while
|
||||
.I XML_TEXT
|
||||
contains the circumstances that would cause
|
||||
.I CREF
|
||||
to be thrown.
|
||||
.nf
|
||||
<exception cref="T:System.ArgumentNullException">
|
||||
<paramref name="foo" /> was <see langword="null" />.
|
||||
</exception>
|
||||
.fi
|
||||
.TP
|
||||
.I <list>XML</list>
|
||||
Create a list or table of items.
|
||||
.I <list/>
|
||||
makes use of nested
|
||||
.I <item>XML</item>
|
||||
,
|
||||
.I <listheader>XML</listheader>
|
||||
,
|
||||
.I <term>XML_TEXT</term>
|
||||
, and
|
||||
.I <description>XML_TEXT</description>
|
||||
elements.
|
||||
.Sp
|
||||
.I Lists
|
||||
have the syntax:
|
||||
.nf
|
||||
<list type="bullet"> <!-- or type="number" -->
|
||||
<item><term>Bullet 1</term></item>
|
||||
<item><term>Bullet 2</term></item>
|
||||
<item><term>Bullet 3</term></item>
|
||||
</list>
|
||||
.fi
|
||||
.Sp
|
||||
.I Tables
|
||||
have the syntax:
|
||||
.nf
|
||||
<list type="table">
|
||||
<listheader> <!-- listheader bolds this row -->
|
||||
<term>Column 1</term>
|
||||
<description>Column 2</description>
|
||||
<description>Column 3</description>
|
||||
</listheader>
|
||||
<item>
|
||||
<term>Item 1-A</term>
|
||||
<description>Item 1-B</description>
|
||||
<description>Item 1-C</description>
|
||||
</item>
|
||||
<item>
|
||||
<term>Item 2-A</term>
|
||||
<description>Item 2-B</description>
|
||||
<description>Item 2-C</description>
|
||||
</item>
|
||||
</list>
|
||||
.fi
|
||||
.TP
|
||||
.I <para>XML_TEXT</para>
|
||||
Insert a paragraph of
|
||||
.I XML_TEXT
|
||||
.
|
||||
This is for use within other tags, such as
|
||||
.I <example/>
|
||||
,
|
||||
.I <remarks/>
|
||||
,
|
||||
.I <returns/>
|
||||
,
|
||||
.I <term/>
|
||||
and
|
||||
.I <description/>
|
||||
(see
|
||||
.I <list/>
|
||||
, above), and most other elements.
|
||||
.Sp
|
||||
For example,
|
||||
.nf
|
||||
<para>This is a paragraph of text.</para>
|
||||
.fi
|
||||
.TP
|
||||
.I <param name="NAME">XML_TEXT</param>
|
||||
.I <param/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Describes the parameter
|
||||
.I NAME
|
||||
of the current constructor, method, or property:
|
||||
.nf
|
||||
<param name="count">
|
||||
A <see cref="T:System.Int32" /> containing the number
|
||||
of widgets to process.
|
||||
</param>
|
||||
.fi
|
||||
.TP
|
||||
.I <paramref name="NAME" />
|
||||
Indicates that
|
||||
.I NAME
|
||||
is a parameter.
|
||||
.Sp
|
||||
This usually renders
|
||||
.I NAME
|
||||
as italic text, so it is frequently (ab)used as an equivalent to the
|
||||
HTML <i/> element. See the
|
||||
.I <exception/>
|
||||
documentation (above) for an example.
|
||||
.TP
|
||||
.I <permission cref="CREF">XML_TEXT</permission>
|
||||
Documentes the security accessibility requirements of the current member.
|
||||
.Sp
|
||||
.I <permission/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
.I CREF
|
||||
is a type reference to the security permission required, while
|
||||
.I XML_TEXT
|
||||
is a description of why the permission is required.
|
||||
.nf
|
||||
<permission cref="T:System.Security.Permissions.FileIOPermission">
|
||||
Requires permission for reading and writing files. See
|
||||
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Read" />,
|
||||
<see cref="F:System.Security.Permissions.FileIOPermissionAccess.Write" />.
|
||||
</permission>
|
||||
.fi
|
||||
.TP
|
||||
.I <remarks>XML_TEXT</remarks>
|
||||
Contains detailed information about a member.
|
||||
.Sp
|
||||
.I <remarks/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.nf
|
||||
<remarks>Insert detailed information here.</remarks>
|
||||
.fi
|
||||
.TP
|
||||
.I <returns>XML_TEXT</returns>
|
||||
.Sp
|
||||
.I <remarks/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Describes the return value of a method:
|
||||
.nf
|
||||
<returns>
|
||||
A <see cref="T:System.Boolean" /> specifying whether
|
||||
or not the process can access
|
||||
<see cref="P:Mono.Unix.UnixFileSystemInfo.FullName" />.
|
||||
</returns>
|
||||
.fi
|
||||
.TP
|
||||
.I <see cref="CREF" />
|
||||
Creates a link to the specified member within the current text:
|
||||
.nf
|
||||
<see cref="M:Some.Namespace.With.Type.Method" />
|
||||
.fi
|
||||
.TP
|
||||
.I <seealso cref="CREF" />
|
||||
.Sp
|
||||
.I <seealso/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Allows an entry to be generated for the
|
||||
.I See Also
|
||||
subclause. Use
|
||||
.I <see/>
|
||||
to specify a link from within text.
|
||||
.nf
|
||||
<seealso cref="P:System.Exception.Message" />
|
||||
.fi
|
||||
.TP
|
||||
.I <since version="VERSION" />
|
||||
.Sp
|
||||
.I <since/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Permits specification of which version introduced the specified type or
|
||||
member.
|
||||
.nf
|
||||
<since version="Gtk# 2.4" />
|
||||
.fi
|
||||
.TP
|
||||
.I <summary>DESCRIPTION</summary>
|
||||
.Sp
|
||||
.I <summary/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Provides a (brief!) overview about a type or type member.
|
||||
.Sp
|
||||
This is usually displayed as part of a class declaration, and should be a
|
||||
reasonably short description of the type/member. Use
|
||||
.I <remarks/>
|
||||
for more detailed information.
|
||||
.TP
|
||||
.I <typeparam name="NAME">DESCRPITION</typeparam>
|
||||
.I <typeparam/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
This is used to describe type parameter for a generic type or generic method.
|
||||
.Sp
|
||||
.I NAME
|
||||
is the name of the type parameter, while
|
||||
.I DESCRIPTION
|
||||
contains a description of the parameter (what it's used for, what restrictions
|
||||
it must meet, etc.).
|
||||
.nf
|
||||
<typeparam name="T">The type of the underlying collection</typeparam>
|
||||
.fi
|
||||
.TP
|
||||
.I <typeparamref>
|
||||
Used to indicate that a word is a type parameter, for use within other text
|
||||
blocks (e.g. within
|
||||
.I <para/>
|
||||
).
|
||||
.nf
|
||||
<para>If <typeparamref name="T" /> is a struct, then...</para>
|
||||
.fi
|
||||
.TP
|
||||
.I <value>DESCRIPTION</value>
|
||||
.I <value/>
|
||||
is a top-level element, and should be nested directly under the
|
||||
.I <Docs/>
|
||||
element.
|
||||
.Sp
|
||||
Allows a property to be described.
|
||||
.nf
|
||||
<value>
|
||||
A <see cref="T:System.String" /> containing a widget name.
|
||||
</value>
|
||||
.fi
|
||||
.PP
|
||||
.SH SEE ALSO
|
||||
mdassembler(1), mdcs2ecma(1), mdnormalizer(1), mdvalidator(1), monodocs2html(1)
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com for details
|
||||
@@ -1,156 +0,0 @@
|
||||
.\"
|
||||
.\" monodocs2html manual page.
|
||||
.\" (C) 2006 Jonathan Pryor
|
||||
.\" Author:
|
||||
.\" Jonathan Pryor ([email protected])
|
||||
.\"
|
||||
.de Sp \" Vertical space (when we can't use .PP)
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH "monodocs2html" 1
|
||||
.SH NAME
|
||||
monodocs2html \- Translate Monodoc XML to HTML
|
||||
.SH SYNOPSIS
|
||||
.B monodocs2html
|
||||
\-source:SOURCE_DIR \-dest:DEST_DIR
|
||||
[OPTIONS]*
|
||||
.SH DESCRIPTION
|
||||
\fImonodocs2html\fR has been obsoleted by \fBmdoc\fR(1). See the
|
||||
\fBmdoc-export-html\fR(1) man page.
|
||||
.PP
|
||||
.I monodocs2html
|
||||
is a program that creates HTML documentation from the Monodoc documentation
|
||||
XML files.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.I \-dest:DEST_DIR
|
||||
Write the HTML files into the directory
|
||||
.I DEST_DIR
|
||||
\&.
|
||||
.TP
|
||||
.I \-dumptemplate
|
||||
Dump the default page template to standard output so that you can use it as a
|
||||
base for a new template for use with the
|
||||
.I \-template
|
||||
option.
|
||||
.TP
|
||||
.I \-ext:FILE_EXTENSION
|
||||
.I FILE_EXTENSION
|
||||
is the file extension for generated files.
|
||||
.Sp
|
||||
This defaults to
|
||||
.I html
|
||||
\&.
|
||||
.TP
|
||||
.I \-?, \-help
|
||||
Show program argument information.
|
||||
.TP
|
||||
.I \-onlytype:TYPE
|
||||
Only generate HTML for the type
|
||||
.I TYPE
|
||||
\&.
|
||||
.TP
|
||||
.I \-source:SOURCE_DIR
|
||||
.I SOURCE_DIR
|
||||
is the base directory containing the Monodoc XML documentation.
|
||||
.Sp
|
||||
This directory should contain an
|
||||
.I index.xml
|
||||
file, the
|
||||
.I namespace-name.xml
|
||||
files (one for each namespace), and
|
||||
.I namespace-name
|
||||
directories (one for each namespace), which will contain the
|
||||
.I type.xml
|
||||
files holding the monodoc documentation.
|
||||
.TP
|
||||
.I \-template:TEMPLATE
|
||||
Generate HTML using the page template
|
||||
.I TEMPLATE
|
||||
\&.
|
||||
.TP
|
||||
.I \-V, \-version
|
||||
Display version and licensing information.
|
||||
.SH TEMPLATE FORMAT
|
||||
The template file is an XSLT which needs to process the following input XML
|
||||
document:
|
||||
.nf
|
||||
<Page>
|
||||
<CollectionTitle>Collection Title</CollectionTitle>
|
||||
<PageTitle>Page Title</PageTitle>
|
||||
<Summary>Page Summary</Summary>
|
||||
<Signature>Type Declaration</Signature>
|
||||
<Remarks>Type Remarks</Remarks>
|
||||
<Members>Type Members</Members>
|
||||
<Copyright>Documentation Copyright</Copyright>
|
||||
</Page>
|
||||
.fi
|
||||
The generated HTML also makes use of the following CSS classes, which should
|
||||
be defined so that output is nicely formatted:
|
||||
.RS
|
||||
.ne 8
|
||||
.TP
|
||||
.I .CollectionTitle
|
||||
.TP
|
||||
.I .PageTitle
|
||||
.TP
|
||||
.I .Summary
|
||||
.TP
|
||||
.I .Signature
|
||||
.TP
|
||||
.I .Remarks
|
||||
.TP
|
||||
.I .Members
|
||||
.TP
|
||||
.I .Copyright
|
||||
.TP
|
||||
.I .Section
|
||||
.TP
|
||||
.I .SectionBox
|
||||
.TP
|
||||
.I .NamespaceName
|
||||
.TP
|
||||
.I .NamespaceSummary
|
||||
.TP
|
||||
.I .MemberName
|
||||
.TP
|
||||
.I .MemberSignature
|
||||
.TP
|
||||
.I .MemberBox
|
||||
.TP
|
||||
.I .Subsection
|
||||
.TP
|
||||
.I .SubsectionBox
|
||||
.TP
|
||||
.I .SignatureTable
|
||||
.TP
|
||||
.I .EnumerationsTable
|
||||
.TP
|
||||
.I .CodeExampleTable
|
||||
.TP
|
||||
.I .MembersListing
|
||||
.TP
|
||||
.I .TypesListing
|
||||
.TP
|
||||
.I .InnerSignatureTable
|
||||
.TP
|
||||
.I .TypePermissionsTable
|
||||
.ne
|
||||
.RE
|
||||
.SH HTML LINKS
|
||||
All members within the HTML file have a
|
||||
.I id
|
||||
attribute to permit linking to a specific member. The value of the
|
||||
.I id
|
||||
attribute is the String ID of the specified member.
|
||||
See the
|
||||
.B STRING ID FORMAT
|
||||
section of the
|
||||
.B monodocer
|
||||
man page for more information.
|
||||
.SH MAILING LISTS
|
||||
.TP
|
||||
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
|
||||
.SH WEB SITE
|
||||
Visit http://www.mono-project.com for details
|
||||
+2
-9
@@ -46,13 +46,6 @@ Specify the output directory, default is 'output'.
|
||||
If you specify the directory `.', please ensure that you won't write over
|
||||
important assemblies of yours.
|
||||
.TP
|
||||
.I "-b true | false"
|
||||
Specify whether to generate debug symbols or not, default is false.
|
||||
.TP
|
||||
.I "-g true | false"
|
||||
Specify whether to generate a new guid for each linked module or reuse the
|
||||
existing one, default is true.
|
||||
.TP
|
||||
.I "-l i18n_assemblies"
|
||||
Specify what to do with the region specific assemblies
|
||||
.Sp
|
||||
@@ -93,8 +86,8 @@ their size.
|
||||
.ne
|
||||
.RE
|
||||
.Sp
|
||||
.TP
|
||||
.I "-p action assembly"
|
||||
.TP "-p action assembly"
|
||||
.I
|
||||
Specify per assembly which action to apply.
|
||||
.TP
|
||||
.I "-x descriptor"
|
||||
|
||||
+28
-91
@@ -1,4 +1,4 @@
|
||||
.TH sqlsharp 1 "9 September 2008"
|
||||
.TH sqlsharp 1 "25 December 2005"
|
||||
.SH NAME
|
||||
sqlsharp \- Mono SQL Query command-line tool
|
||||
.SH SYNOPSIS
|
||||
@@ -69,8 +69,6 @@ Sets the Connection String
|
||||
|
||||
Example:
|
||||
SQL# \\ConnectionString Database=testdb
|
||||
or
|
||||
SQL# \\cs Database=testdb
|
||||
|
||||
For more examples, see section CONNECTION STRING EXAMPLES.
|
||||
|
||||
@@ -82,58 +80,10 @@ Sets the Provider of the Data Source. For list of Providers, see section PROVID
|
||||
|
||||
Example: to set the provider for MySQL:
|
||||
SQL# \\provider mysql
|
||||
or
|
||||
SQL# \\p mysql
|
||||
|
||||
Note: if you need to load an external provider in SQL#,
|
||||
see the SQL# command \\loadextprovider
|
||||
|
||||
.fi
|
||||
.TP
|
||||
.I "ListProviders"
|
||||
List ADO.NET 2.0 Providers available
|
||||
.nf
|
||||
|
||||
Example:
|
||||
SQL# \\ListProviders
|
||||
or
|
||||
SQL# \\listp
|
||||
|
||||
.fi
|
||||
.TP
|
||||
.I "BCS"
|
||||
Prompts you for building each connection parameter and builds the connection string
|
||||
and also allows you to enter a password wich does not echo.
|
||||
.nf
|
||||
|
||||
Example:
|
||||
SQL# \\bcs
|
||||
|
||||
ConnectionString Option: Data Source [] SQL# blazer
|
||||
|
||||
ConnectionString Option: Persist Security Info [False] SQL#
|
||||
|
||||
ConnectionString Option: Integrated Security [False] SQL#
|
||||
|
||||
ConnectionString Option: User ID [] SQL# scott
|
||||
|
||||
Password: *****
|
||||
|
||||
ConnectionString Option: Enlist [False] SQL#
|
||||
|
||||
ConnectionString Option: Pooling [True] SQL#
|
||||
|
||||
ConnectionString Option: Min Pool Size [0] SQL#
|
||||
|
||||
ConnectionString Option: Max Pool Size [100] SQL#
|
||||
|
||||
ConnectionString Option: Unicode [False] SQL#
|
||||
|
||||
ConnectionString Option: Load Balance Timeout [0] SQL#
|
||||
|
||||
ConnectionString Option: Omit Oracle Connection Name [False] SQL#
|
||||
ConnectionString is set.
|
||||
|
||||
.fi
|
||||
.TP
|
||||
.I "LoadExtProvider"
|
||||
@@ -394,30 +344,32 @@ ption defaulting to true.
|
||||
|
||||
PROVIDER NAME NAMESPACE ASSEMBLY
|
||||
|
||||
oracle Oracle 8i-11g System.Data.OracleClient System.Data.OracleClient
|
||||
oracle Oracle 8i System.Data.OracleClient System.Data.OracleClient
|
||||
postgresql NetPostgreSQL Npgsql Npgsql
|
||||
bytefx ByteFX MySQL ByteFX.Data.MySqlClient ByteFX.Data
|
||||
sqlclient MS SQL 7-2008 System.Data.SqlClient System.Data
|
||||
sqlclient MS SQL 7/2000 System.Data.SqlClient System.Data
|
||||
odbc ODBC System.Data.Odbc System.Data
|
||||
sqlite SQL Lite Mono.Data.SqliteClient Mono.Data.SqliteClient
|
||||
sybase Sybase Mono.Data.SybaseClient Mono.Data.SybaseClient
|
||||
olebb OLE DB System.Data.OleDb System.Data
|
||||
tds TDS Generic Mono.Data.TdsClient Mono.Data.TdsClient
|
||||
msodbc MS ODBC Microsoft.Data.Odbc Microsoft.Data.Odbc
|
||||
firebird Firebird SQL FirebirdSql.Data.FirebirdSql FirebirdSql.Data.Firebird
|
||||
mysql MySQL AB MySql.Data.MySqlClient MySql.Data
|
||||
|
||||
NOTES:
|
||||
|
||||
Ngsql is the .Net Data Provider for PosgreSQL. The
|
||||
latest verison can be downloaded from
|
||||
http://npgsql.projects.postgresql.org/
|
||||
npgsql maps to postgresql above.
|
||||
mysqlnet maps to mysql above.
|
||||
odbc is treated as an external provider for .NET 1.1 and above.
|
||||
msodbc is an external provider for compatibility with .NET 1.0
|
||||
|
||||
MySql.Data is the MySQL Connector/Net for connecting to MySql databases.
|
||||
For MySQL, it is strongly recommend to use MySql.Data instead of the old
|
||||
ByteFX.Data provider. Unfortunately, MySql.Data is not included with Mono.
|
||||
You can download the latest MySQL Connector/Net from MySQL AB at
|
||||
http://dev.mysql.com/downloads/
|
||||
MySql.Data has replaced the mysql provider. If you still need to use ByteFX.Data, then
|
||||
use bytefx.
|
||||
|
||||
FirebirdSql.Data.Firebird can be downloaded from here:
|
||||
http://www.firebirdsql.org/index.php?op=files&id=netprovider
|
||||
MySql.Data is not included with Mono. You need to
|
||||
download the MySQL Connector/Net from MySQL AB at
|
||||
http://dev.mysql.com/downloads/connector/net/1.0.html
|
||||
|
||||
.fi
|
||||
.SH CONNECTION STRING SAMPLES
|
||||
@@ -433,17 +385,10 @@ Connection String examples:
|
||||
|
||||
|
||||
Microsoft SQL Server via System.Data.SqlClient
|
||||
or Mono.Data.TdsClient provider:
|
||||
|
||||
Server=DANPC;Database=pubs;User ID=saPassword=;
|
||||
Server=DANPC;Database=pubs;User ID=saPassword=
|
||||
|
||||
For Integrated Security, bear in mind that Mono is not
|
||||
integrated with Windows, SQL Server client nor server, nor
|
||||
Windows Server. Therefore, you must provide the Windows Domain
|
||||
name and domain user name and password for this user.
|
||||
|
||||
Server=DANPC;Database=pubs;User ID=DOMAIN\user;Password=pass;Integrated Security=SSPI
|
||||
|
||||
For a server locally, you can use localhost.
|
||||
|
||||
ODBC via System.Data.Odbc provider using
|
||||
a DSN named "MSSQLDSN" I set up
|
||||
@@ -452,8 +397,6 @@ which connects to Microsoft SQL Server 2000:
|
||||
|
||||
DSN=MSSQLDSN;UID=danmorg;PWD=freetds
|
||||
|
||||
To use ODBC ON Unix, consider unixODBC from http://www.unixodbc.org/
|
||||
or use iODBC from http://www.iodbc.org/
|
||||
|
||||
SQL Lite via Mono.Data.SqliteClient
|
||||
provider which connects to the
|
||||
@@ -462,21 +405,17 @@ the file is created:
|
||||
|
||||
URI=file:SqliteTest.db
|
||||
|
||||
|
||||
OLE DB via System.Data.OleDb provider
|
||||
which connects to a PostgreSQL database:
|
||||
|
||||
Provider=PostgreSQL;Addr=127.0.0.1;Database=rodrigo
|
||||
|
||||
|
||||
Oracle via System.Data.OracleClient
|
||||
|
||||
Data Source=testdb;User ID=scott;Password=tiger
|
||||
|
||||
If you prefer to not use a tnsnames.ora file, you can
|
||||
use a connection string which allows a
|
||||
TNS network description that is parentheses delimited
|
||||
like the following which has the host, port, and
|
||||
service name. For host, you can specify an IP address
|
||||
instead of a hostname.
|
||||
|
||||
User ID=SCOTT;
|
||||
Password=TIGER;
|
||||
Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.101)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TESTDB)))
|
||||
|
||||
|
||||
Npgsql (.NET PostgreSQL) from
|
||||
http://gborg.postgresql.org/project/npgsql/projdisplay.php
|
||||
@@ -486,17 +425,15 @@ http://gborg.postgresql.org/project/npgsql/projdisplay.php
|
||||
|
||||
ByteFX (ByteFX MySQL) from
|
||||
|
||||
Please use MySql.Data instead.
|
||||
|
||||
Server=localhost;Database=test;User ID=mysql;Password=
|
||||
|
||||
|
||||
FirebirdSql via FirebirdSql.Data.Firebird (download latest form FirebirdSql.org)
|
||||
FirebirdSql via FirebirdSql.Data.Firebird (not included with Mono)
|
||||
|
||||
Database=C:\\FIREBIRD\\EXAMPLES\\EMPLOYEE.FDB;User=SYSDBA;Password=masterkey;Dialect=3;Server=localhost
|
||||
|
||||
|
||||
MySQL via (MySql.Data) MySQL Connector/Net from http://www.mysql.com/
|
||||
MySQL (MySQL AB) from http://www.mysql.com/
|
||||
|
||||
Server=localhost;Database=test;User ID=mysql;Password=mypass;Pooling=false
|
||||
|
||||
@@ -507,7 +444,7 @@ No support for tracing right now.
|
||||
.SH AUTHORS
|
||||
The Mono SQL Query Tool was written
|
||||
.nf
|
||||
by Daniel Morgan <[email protected]>
|
||||
by Daniel Morgan <[email protected]>
|
||||
.fi
|
||||
.PP
|
||||
.SH LICENSE
|
||||
@@ -533,5 +470,5 @@ http://www.mono-project.com
|
||||
.fi
|
||||
.PP
|
||||
.SH SEE ALSO
|
||||
mono(1)
|
||||
mono(1), mint(1)
|
||||
|
||||
@@ -1,34 +1,3 @@
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* docs/Makefile (MONODOC_INSTALL_DIR): Prefix path with $(DESTDIR) so
|
||||
that it installs properly under the buildbot.
|
||||
|
||||
2008-10-18 Raja R Harinath <[email protected]>
|
||||
|
||||
* docs/Makefile (DISTFILES): Don't use 'find' to list files.
|
||||
|
||||
2008-10-18 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile (net_2_0_SUBDIRS): Add 'docs'.
|
||||
* docs/Makefile: Build documentation only in the net_2_0 profile.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* docs/Makefile: Add install/uninstall support.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* docs/Makefile: Assemble documentation.
|
||||
* docs/cs-errors.config: Update to refer to correct directory.
|
||||
* docs/mono-tools.config: Man pages are in mono/man now...
|
||||
|
||||
2008-10-08 Zoltan Varga <[email protected]>
|
||||
|
||||
* README: Update after the profile changes.
|
||||
|
||||
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
|
||||
profile to 'net_1_1'.
|
||||
|
||||
2008-05-14 Marek Safar <[email protected]>
|
||||
|
||||
* Makefile: Enabled more tests.
|
||||
|
||||
+6
-6
@@ -5,7 +5,7 @@ SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
|
||||
basic_SUBDIRS := build jay mcs class
|
||||
net_1_1_bootstrap_SUBDIRS := build jay mcs class ilasm tools
|
||||
net_2_0_bootstrap_SUBDIRS := build jay mcs class ilasm tools
|
||||
net_2_0_SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
|
||||
net_2_0_SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors
|
||||
net_2_1_bootstrap_SUBDIRS := build mcs class
|
||||
net_2_1_raw_SUBDIRS := build mcs class tools
|
||||
net_2_1_SUBDIRS := tools tests errors
|
||||
@@ -49,7 +49,7 @@ net_2_0_centum_tests := \
|
||||
class/Microsoft.Build.Utilities \
|
||||
class/Microsoft.Build.Engine \
|
||||
class/Mono.C5
|
||||
|
||||
|
||||
# class/System.Web.Extensions
|
||||
# class/Microsoft.Build.Tasks
|
||||
|
||||
@@ -78,7 +78,7 @@ dir-check:
|
||||
|
||||
# fun specialty targets
|
||||
|
||||
PROFILES = net_1_1 net_2_0 net_3_5
|
||||
PROFILES = default net_2_0 net_3_5
|
||||
|
||||
.PHONY: all-profiles $(STD_TARGETS:=-profiles)
|
||||
all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
|
||||
@@ -102,8 +102,8 @@ $(_boot_:%=profile-do--net_2_1--%): profile-do--net_2_1--%:
|
||||
$(_boot_:%=profile-do--net_2_1_raw--%): profile-do--net_2_1_raw--%: profile-do--net_2_1_bootstrap--%
|
||||
$(_boot_:%=profile-do--net_2_1_bootstrap--%): profile-do--net_2_1_bootstrap--%: profile-do--net_2_0--%
|
||||
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
|
||||
$(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--net_1_1--%
|
||||
$(_boot_:%=profile-do--net_1_1--%): profile-do--net_1_1--%: profile-do--net_1_1_bootstrap--%
|
||||
$(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--default--%
|
||||
$(_boot_:%=profile-do--default--%): profile-do--default--%: profile-do--net_1_1_bootstrap--%
|
||||
$(_boot_:%=profile-do--net_1_1_bootstrap--%): profile-do--net_1_1_bootstrap--%: profile-do--basic--%
|
||||
|
||||
testcorlib:
|
||||
@@ -113,7 +113,7 @@ compiler-tests:
|
||||
$(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
|
||||
|
||||
test-installed-compiler:
|
||||
$(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_1_1 TEST_RUNTIME=mono MCS=mcs run-test
|
||||
$(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
|
||||
|
||||
package := mcs-$(VERSION)
|
||||
|
||||
+6
-11
@@ -56,28 +56,23 @@ package module which drives the compilation of this directory.
|
||||
You can build individual components in the hierarchy by running the command
|
||||
"make", and to install it use "make install".
|
||||
|
||||
By default, the 2.x profile is built, if you want to build the net 1.1 profile,
|
||||
use the following command:
|
||||
If you need to build a given component on the 2.x profile, you must use
|
||||
the following command:
|
||||
|
||||
make PROFILE=net_1_1
|
||||
make PROFILE=net_2_0
|
||||
|
||||
And to install:
|
||||
|
||||
make PROFILE=net_1_1 install
|
||||
|
||||
To turn on verbose mode in the build (for example to diagnose a
|
||||
problem), you can use the V=1 flag, like this:
|
||||
|
||||
make V=1
|
||||
make PROFILE=net_2_0 install
|
||||
|
||||
* Running Unit tests
|
||||
====================
|
||||
|
||||
You can run unit tests in individual components by running the command
|
||||
"make run-test". If you want to run tests for a different profile (say
|
||||
'net_1_1')
|
||||
'net_2_0')
|
||||
|
||||
make run-test PROFILE=net_1_1
|
||||
make run-test PROFILE=net_2_0
|
||||
|
||||
If you want to only run the tests in a single fixture (say
|
||||
'MonoTests.System.TypeTest'), you can use
|
||||
|
||||
@@ -1,58 +1,3 @@
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* rules.make (dist-default): Distribute the Documentation directory,
|
||||
if present.
|
||||
|
||||
2008-10-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* rules.make (MDOC): MONO_PATH needs to include net_1_1 so monodoc.dll
|
||||
can be found.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* README.makefiles: Add documentation about the new doc-update target.
|
||||
|
||||
2008-10-18 Raja R Harinath <[email protected]>
|
||||
|
||||
* rules.make (MDOC): Pass a proper MONO_PATH.
|
||||
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* build.rules: doc-update is now a standard target; provide a $(MDOC)
|
||||
variable to simplify running the `mdoc` updater program.
|
||||
* executable.make: Add doc-update target support (does nothing).
|
||||
* library.make: Add doc-update target support; runs `mdoc update` on
|
||||
the assembly, updating the documentation within Documentation/en.
|
||||
* Makefile: Add doc-update target support.
|
||||
|
||||
2008-09-14 Zoltan Varga <[email protected]>
|
||||
|
||||
* library.make: Allow FIXTURE make variable to be passed to nunit.
|
||||
|
||||
2008-08-29 Raja R Harinath <[email protected]>
|
||||
|
||||
* rules.make (do-%): Revert change below. We need the recursion
|
||||
to ensure ordering of %-local after %-recursive. IOW, we
|
||||
want to ensure strict linearity even with a 'make -j'.
|
||||
|
||||
2008-08-28 Zoltan Varga <[email protected]>
|
||||
|
||||
* rules.make (Q_MCS): Use 5 spaces instead of -e '\\t'.
|
||||
|
||||
* library.make: Make some command quiet.
|
||||
|
||||
* rules.make: Avoid some needless recursive make invocations.
|
||||
|
||||
* rules.make: Print the profile in the quiet commands.
|
||||
|
||||
* rules.make: Make the build process quiet similarly to the runtime build
|
||||
process. Use the V=1 argument to make to make it verbose again.
|
||||
|
||||
2008-08-04 Zoltan Varga <[email protected]>
|
||||
|
||||
* rules.make (PROFILE): If no profile is passed on the command line, make
|
||||
net_2_0 the default.
|
||||
|
||||
2008-06-30 Marek Safar <[email protected]>
|
||||
|
||||
* platforms/linux.make: Enable mcs optimizations.
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ include ../build/rules.make
|
||||
|
||||
BUILT_FILES = common/Consts.cs
|
||||
|
||||
all-local install-local test-local run-test-local run-test-ondotnet-local uninstall-local doc-update-local: $(BUILT_FILES)
|
||||
all-local install-local test-local run-test-local run-test-ondotnet-local uninstall-local: $(BUILT_FILES)
|
||||
@:
|
||||
|
||||
clean-local:
|
||||
@@ -18,7 +18,7 @@ PLATFORMS = linux win32
|
||||
PROFILES = \
|
||||
basic \
|
||||
net_1_1_bootstrap \
|
||||
net_1_1 \
|
||||
default \
|
||||
net_2_0_bootstrap \
|
||||
net_2_0 \
|
||||
net_2_1_bootstrap \
|
||||
|
||||
@@ -11,7 +11,6 @@ build system needs to let us do, specifically:
|
||||
* Make distributions easily
|
||||
* Provide a framework for testing
|
||||
* Build platform-independently whenever possible
|
||||
* Generate, update, and build monodoc documentation.
|
||||
|
||||
|
||||
|
||||
@@ -48,22 +47,20 @@ DISTFILES = myfile.txt my_test_source.cs
|
||||
|
||||
dist-local: dist-default
|
||||
|
||||
doc-update-local:
|
||||
|
||||
my_test_program.exe: my_test_source.cs
|
||||
$(CSCOMPILE) /target:exe /out:$@ $<
|
||||
========================================
|
||||
|
||||
Each makefile follows the same pattern: it does some setup, includes
|
||||
the standard make rules, and provides rules for eight standard targets:
|
||||
all, install, test, run-test, clean, dist, and doc-update.
|
||||
the standard make rules, and provides rules for seven standard targets:
|
||||
all, install, test, run-test, clean, and dist.
|
||||
|
||||
"Some setup" is defining two variables: $(thisdir) and
|
||||
$(SUBDIRS). $(thisdir) is the directory that the makefile lives in,
|
||||
relative to the top directory (ie, class/corlib) and $(SUBDIRS)
|
||||
defines the subdirectories that should be built in.
|
||||
|
||||
The eight targets do the following:
|
||||
The seven targets do the following:
|
||||
|
||||
* all-local builds whatever someone would expect to be built
|
||||
when they just type 'make'. Most likely Foo.dll or Foo.exe
|
||||
@@ -91,11 +88,6 @@ true that all files that go into a tarball need to be left after a make clean.)
|
||||
given by the variable $(distdir). dist-local always depends on the
|
||||
target 'dist-default'. See ** 'make dist' below.
|
||||
|
||||
* doc-update-local should generate or update monodoc documentation,
|
||||
if appropriate. This is usually only appropriate for libraries. It's
|
||||
defined as a standard target so that it can easily be run recursively
|
||||
across all libraries within the module.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -373,14 +365,6 @@ If you're building a library, library.make is highly recommended; the
|
||||
only DLL that doesn't use it is corlib, because building corlib is a
|
||||
fair bit more complicated than it should be. Oh well.
|
||||
|
||||
library.make also automatically supports generating and updating
|
||||
monodoc documentation. Documentation is stored within the
|
||||
Documentation directory (a sibling to the Test directory), and is
|
||||
generated/updated whenever the doc-update target is executed.
|
||||
Assembling of the documentation so that the monodoc browser can
|
||||
display the documentation is handled separately within the mcs/docs
|
||||
all-local target; see mcs/docs/Makefile for details.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -424,21 +408,6 @@ variable $(CFLAGS) will automatically be included on the command line.
|
||||
|
||||
|
||||
|
||||
* Documentation-related needs? Use $(MDOC)
|
||||
|
||||
$(MDOC) is a front-end to the monodoc documentation system, supporting
|
||||
documentation generation, updating, importing from Microsoft XML
|
||||
Documentation and ECMA documentation formats, assembling documentation
|
||||
for use within the monodoc documentation browser, and exporting
|
||||
documentation to various other output formats such as static HTML.
|
||||
|
||||
It is currently only used for library.make's doc-update-local target
|
||||
and for assembling documentation within $topdir/docs.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
* Installing files? Use $(MKINSTALLDIRS), $(INSTALL_DATA) or
|
||||
$(INSTALL_BIN), $(prefix), and $(DESTDIR).
|
||||
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
2008-08-20 Jb Evain <[email protected]>
|
||||
|
||||
* Consts.cs.in: add NET_3_0 case for wcf.
|
||||
|
||||
2008-07-24 Gert Driesen <[email protected]>
|
||||
|
||||
* Consts.cs.in; Update FxFileVersion and VsFileVersion for 2.0 SP1.
|
||||
|
||||
2008-04-13 Jb Evain <[email protected]>
|
||||
|
||||
* Consts.cs.in: update the 2.1 profile versions.
|
||||
|
||||
@@ -57,11 +57,6 @@ internal
|
||||
public const string FxFileVersion = "3.5.21022.8";
|
||||
|
||||
public const string VsVersion = "0.0.0.0"; // Useless ?
|
||||
#elif NET_3_0
|
||||
public const string FxVersion = "3.0.0.0";
|
||||
public const string VsVersion = "8.0.0.0";
|
||||
public const string FxFileVersion = "3.0.4506.648";
|
||||
public const string VsFileVersion = "6.0.6001.17014";
|
||||
#elif NET_2_1
|
||||
// Versions of .NET Framework for SilverLight
|
||||
public const string FxVersion = "2.0.5.0";
|
||||
@@ -72,8 +67,8 @@ internal
|
||||
// Versions of .NET Framework 2.0 RTM
|
||||
public const string FxVersion = "2.0.0.0";
|
||||
public const string VsVersion = "8.0.0.0";
|
||||
public const string FxFileVersion = "2.0.50727.1433";
|
||||
public const string VsFileVersion = "8.0.50727.1433";
|
||||
public const string FxFileVersion = "2.0.50727.42";
|
||||
public const string VsFileVersion = "8.0.50727.42";
|
||||
#elif NET_1_1
|
||||
// Versions of .NET Framework 1.1 SP1
|
||||
public const string FxVersion = "1.0.5000.0";
|
||||
|
||||
@@ -120,7 +120,3 @@ ifneq ($(response),$(sourcefile))
|
||||
$(response): $(topdir)/build/executable.make $(depsdir)/.stamp
|
||||
endif
|
||||
$(makefrag): $(topdir)/build/executable.make $(depsdir)/.stamp
|
||||
|
||||
doc-update-local:
|
||||
@:
|
||||
|
||||
+5
-28
@@ -94,7 +94,7 @@ ifdef NO_SIGN_ASSEMBLY
|
||||
SN = :
|
||||
else
|
||||
sn = $(topdir)/class/lib/net_1_1_bootstrap/sn.exe
|
||||
SN = $(Q) MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn)
|
||||
SN = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(sn)
|
||||
SNFLAGS = -q -R
|
||||
endif
|
||||
|
||||
@@ -210,14 +210,10 @@ TEST_HARNESS_POSTPROC = (echo ''; cat TestResult-$(PROFILE).log) | sed '1,/^Test
|
||||
TEST_HARNESS_POSTPROC_ONDOTNET = (echo ''; cat TestResult-ondotnet-$(PROFILE).log) | sed '1,/^Tests run: /d'
|
||||
endif
|
||||
|
||||
ifdef FIXTURE
|
||||
FIXTURE_ARG = /fixture:MonoTests.$(FIXTURE)
|
||||
endif
|
||||
|
||||
## FIXME: i18n problem in the 'sed' command below
|
||||
run-test-lib: test-local
|
||||
ok=:; \
|
||||
MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) /xml:TestResult-$(PROFILE).xml $(test_assemblies) $(FIXTURE_ARG) || ok=false; \
|
||||
MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) /xml:TestResult-$(PROFILE).xml $(test_assemblies) || ok=false; \
|
||||
$(TEST_HARNESS_POSTPROC) ; $$ok
|
||||
|
||||
run-test-ondotnet-lib: test-local
|
||||
@@ -301,9 +297,9 @@ $(build_lib): $(response) $(sn) $(BUILT_SOURCES) $(build_libdir:=/.stamp)
|
||||
ifdef LIBRARY_USE_INTERMEDIATE_FILE
|
||||
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$(LIBRARY_NAME) $(BUILT_SOURCES_cmdline) @$(response)
|
||||
$(SN) $(SNFLAGS) $(LIBRARY_NAME) $(LIBRARY_SNK)
|
||||
$(Q) mv $(LIBRARY_NAME) $@
|
||||
$(Q) test ! -f $(LIBRARY_NAME).mdb || mv $(LIBRARY_NAME).mdb [email protected]
|
||||
$(Q) test ! -f $(LIBRARY_NAME:.dll=.pdb) || mv $(LIBRARY_NAME:.dll=.pdb) $(dir $@)$(LIBRARY_NAME:.dll=.pdb)
|
||||
mv $(LIBRARY_NAME) $@
|
||||
test ! -f $(LIBRARY_NAME).mdb || mv $(LIBRARY_NAME).mdb [email protected]
|
||||
test ! -f $(LIBRARY_NAME:.dll=.pdb) || mv $(LIBRARY_NAME:.dll=.pdb) $(dir $@)$(LIBRARY_NAME:.dll=.pdb)
|
||||
else
|
||||
$(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
|
||||
$(SN) $(SNFLAGS) $@ $(LIBRARY_SNK)
|
||||
@@ -366,22 +362,3 @@ ifneq ($(response),$(sourcefile))
|
||||
$(response): $(topdir)/build/library.make $(depsdir)/.stamp
|
||||
endif
|
||||
$(makefrag) $(test_response) $(test_makefrag) $(btest_response) $(btest_makefrag): $(topdir)/build/library.make $(depsdir)/.stamp
|
||||
|
||||
## Documentation stuff
|
||||
|
||||
Q_MDOC_UP=$(if $(V),,@echo "MDOC-UP [$(PROFILE)] $(notdir $(@))";)
|
||||
MDOC_UP =$(Q_MDOC_UP) \
|
||||
if `echo $(PROFILE) | grep ^net_1_ > /dev/null 2>/dev/null` ; then \
|
||||
$(RUNTIME) $(topdir)/tools/mdoc/monodocer1.exe \
|
||||
-path:Documentation/en -assembly:$(the_lib) ; \
|
||||
else \
|
||||
$(RUNTIME) $(topdir)/tools/mdoc/mdoc.exe update --delete \
|
||||
-o Documentation/en $(the_lib) ; \
|
||||
fi
|
||||
|
||||
doc-update-local: $(the_libdir)/.doc-stamp
|
||||
|
||||
$(the_libdir)/.doc-stamp: $(the_lib)
|
||||
$(MDOC_UP)
|
||||
@echo "doc-stamp" > $@
|
||||
|
||||
@@ -22,11 +22,6 @@ NO_TEST = yes
|
||||
NO_INSTALL = yes
|
||||
FRAMEWORK_VERSION = 1.0
|
||||
|
||||
#
|
||||
# Copy from rules.make because I don't know how to unset MCS_FLAGS
|
||||
#
|
||||
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS)
|
||||
|
||||
.PHONY: profile-check do-profile-check
|
||||
profile-check:
|
||||
@:
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# The default 'bootstrap' profile -- builds so that we link against
|
||||
# the libraries as we build them.
|
||||
#
|
||||
# We use the platform's native C# runtime and compiler if possible.
|
||||
|
||||
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
|
||||
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
|
||||
# we use INTERNAL_MCS.
|
||||
|
||||
# When bootstrapping, compile against our new assemblies.
|
||||
# (MONO_PATH doesn't just affect what assemblies are loaded to
|
||||
# run the compiler; /r: flags are by default loaded from whatever's
|
||||
# in the MONO_PATH too).
|
||||
|
||||
BOOTSTRAP_PROFILE = net_1_1_bootstrap
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
|
||||
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
|
||||
|
||||
# nuttzing!
|
||||
|
||||
profile-check:
|
||||
|
||||
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
|
||||
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
|
||||
FRAMEWORK_VERSION = 1.0
|
||||
@@ -8,11 +8,6 @@ NO_SIGN_ASSEMBLY = yes
|
||||
NO_TEST = yes
|
||||
NO_INSTALL = yes
|
||||
|
||||
#
|
||||
# Copy from rules.make because I don't know how to unset MCS_FLAGS
|
||||
#
|
||||
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS)
|
||||
|
||||
profile-check:
|
||||
@:
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
# Note that we're using the .NET 1.1 MCS but MONO_PATH points to the net_2_0_bootstrap directory.
|
||||
# We do it this way to get assembly version references right.
|
||||
#
|
||||
BOOTSTRAP_PROFILE = net_1_1
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
|
||||
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/default$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/default/mcs.exe
|
||||
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/gmcs.exe
|
||||
|
||||
profile-check:
|
||||
|
||||
+4
-19
@@ -15,17 +15,13 @@ topdir := $(dots)
|
||||
|
||||
VERSION = 0.93
|
||||
|
||||
Q=$(if $(V),,@)
|
||||
# echo -e "\\t" does not work on some systems, so use 5 spaces
|
||||
Q_MCS=$(if $(V),,@echo "MCS [$(PROFILE)] $(notdir $(@))";)
|
||||
|
||||
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS)
|
||||
USE_MBAS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MBAS_FLAGS) $(PLATFORM_MBAS_FLAGS) $(PROFILE_MBAS_FLAGS) $(MBAS_FLAGS)
|
||||
USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS)
|
||||
CSCOMPILE = $(Q_MCS) $(MCS) $(USE_MCS_FLAGS)
|
||||
CSCOMPILE = $(MCS) $(USE_MCS_FLAGS)
|
||||
BASCOMPILE = $(MBAS) $(USE_MBAS_FLAGS)
|
||||
CCOMPILE = $(CC) $(USE_CFLAGS)
|
||||
BOOT_COMPILE = $(Q_MCS) $(BOOTSTRAP_MCS) $(USE_MCS_FLAGS)
|
||||
BOOT_COMPILE = $(BOOTSTRAP_MCS) $(USE_MCS_FLAGS)
|
||||
INSTALL = $(SHELL) $(topdir)/../mono/install-sh
|
||||
INSTALL_DATA = $(INSTALL) -c -m 644
|
||||
INSTALL_BIN = $(INSTALL) -c -m 755
|
||||
@@ -93,7 +89,7 @@ endif
|
||||
# Rest of the configuration
|
||||
|
||||
ifndef PROFILE
|
||||
PROFILE = net_2_0
|
||||
PROFILE = default
|
||||
endif
|
||||
|
||||
include $(topdir)/build/profiles/$(PROFILE).make
|
||||
@@ -112,7 +108,7 @@ gacutil = $(topdir)/class/lib/net_1_1_bootstrap/gacutil.exe
|
||||
GACUTIL = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(gacutil)
|
||||
endif
|
||||
|
||||
STD_TARGETS = test run-test run-test-ondotnet clean install uninstall doc-update
|
||||
STD_TARGETS = test run-test run-test-ondotnet clean install uninstall
|
||||
|
||||
$(STD_TARGETS): %: do-%
|
||||
|
||||
@@ -172,11 +168,6 @@ dist-default:
|
||||
dest=`dirname $(distdir)/$$f` ; \
|
||||
$(MKINSTALLDIRS) $$dest && cp -p $$f $$dest || exit 1 ; \
|
||||
done
|
||||
if test -d Documentation ; then \
|
||||
find . -name '*.xml' > .files ; \
|
||||
tar cTf .files - | (cd $(distdir); tar xf -) ; \
|
||||
rm .files ; \
|
||||
fi
|
||||
|
||||
%/.stamp:
|
||||
$(MKINSTALLDIRS) $(@D)
|
||||
@@ -186,9 +177,3 @@ dist-default:
|
||||
|
||||
withmcs:
|
||||
$(MAKE) MCS='$(INTERNAL_MCS)' BOOTSTRAP_MCS='$(INTERNAL_MCS)' all
|
||||
|
||||
## Documentation stuff
|
||||
|
||||
Q_MDOC =$(if $(V),,@echo "MDOC [$(PROFILE)] $(notdir $(@))";)
|
||||
MDOC =$(Q_MDOC) MONO_PATH="$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_1_1$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/tools/mdoc/mdoc.exe
|
||||
|
||||
@@ -1,65 +1,3 @@
|
||||
2008-10-17 Jonathan Pryor <[email protected]>
|
||||
|
||||
* I18N/Makefile: Add doc-update target support.
|
||||
|
||||
2008-10-13 Jonathan Pryor <[email protected]>
|
||||
|
||||
* Makefile (net_2_0_dirs): Add Mono.Options.
|
||||
|
||||
2008-10-09 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* Makefile: add System.Web.Abstractions and System.Web.Routing.
|
||||
|
||||
2008-10-07 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* Makefile : changed some net_2_0_dirs orders; Sys.Web.Extensions
|
||||
will depend on Sys.Data.Linq (LinqDataSource).
|
||||
|
||||
2008-10-07 Zoltan Varga <[email protected]>
|
||||
|
||||
* Makefile (net_2_0_dirs): Add Mono.Simd.
|
||||
|
||||
2008-09-30 Marek Habersack <[email protected]>
|
||||
|
||||
* Makefile (net_2_0_dirs): added System.Web.Extensions_1.0 and
|
||||
System.Web.Extensions.Design_1.0
|
||||
(net_3_5_dirs): removed System.Web.Extensions, the 3.5 version is
|
||||
now built in the 2.0 profile.
|
||||
|
||||
2008-09-24 Zoltan Varga <[email protected]>
|
||||
|
||||
* Makefile (net_2_0_dirs): Add Mono.Management.
|
||||
|
||||
2008-09-23 Marek Safar <[email protected]>
|
||||
|
||||
* Makefile: Build Mono.CompilerServices.SymbolWriter before it's
|
||||
used.
|
||||
|
||||
2008-09-23 Jb Evain <[email protected]>
|
||||
|
||||
* Makefile: compile the SymbolWriter during net_2_1_raw.
|
||||
|
||||
2008-09-12 Jb Evain <[email protected]>
|
||||
|
||||
* Makefile: add System.ServiceModel.Web to the net_2_1_raw build.
|
||||
|
||||
2008-09-12 Jb Evain <[email protected]>
|
||||
|
||||
* Makefile: add System.ServiceModel to the net_2_1_raw build.
|
||||
|
||||
2008-09-09 Jb Evain <[email protected]>
|
||||
|
||||
* Makefile: build System.Runtime.Serialization
|
||||
during the net_2_1_raw profile.
|
||||
|
||||
2008-08-21 Jb Evain <[email protected]>
|
||||
|
||||
* Makefile: add wcf and cardspace to the build.
|
||||
|
||||
2008-07-31 Jb Evain <[email protected]>
|
||||
|
||||
* Makefile: update net_2_1_bootstrap_SUBDIRS to only build
|
||||
corlib and System.
|
||||
2008-05-22 Andreia Gaita <[email protected]>
|
||||
|
||||
* Makefile, Mono.Mozilla, Mono.WebBrowser: Long overdue rename of
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
<Type Name="Nvdl" FullName="Commons.Xml.Nvdl.Nvdl">
|
||||
<TypeSignature Language="C#" Value="public class Nvdl" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Object</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName="Namespace">
|
||||
<MemberSignature Language="C#" Value="public const string Namespace;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Represents the namespace URI for NVDL grammar.</summary>
|
||||
<remarks>The value is http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0 .</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="BuiltInValidationNamespace">
|
||||
<MemberSignature Language="C#" Value="public const string BuiltInValidationNamespace;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Represents the namespace URI for built-in NVDL validation.</summary>
|
||||
<remarks>The value is http://purl.oclc.org/dsdl/nvdl/ns/predefinedSchema/1.0 .</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="InstanceNamespace">
|
||||
<MemberSignature Language="C#" Value="public const string InstanceNamespace;" />
|
||||
<MemberType>Field</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Represents the namespace URI for NVDL instance.</summary>
|
||||
<remarks>The value is http://purl.oclc.org/dsdl/nvdl/ns/instance/1.0 .</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Holds constants for several NVDL related namespace URIs.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
@@ -1,26 +0,0 @@
|
||||
<Type Name="NvdlAction" FullName="Commons.Xml.Nvdl.NvdlAction">
|
||||
<TypeSignature Language="C#" Value="public abstract class NvdlAction : Commons.Xml.Nvdl.NvdlAttributable" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>Commons.Xml.Nvdl.NvdlAttributable</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="protected NvdlAction ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>Default constructor for NVDL "action" element.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Represents "action" element of NVDL grammar object model.</summary>
|
||||
<remarks>This class represents NVDL "action" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
@@ -1,77 +0,0 @@
|
||||
<Type Name="NvdlActionList" FullName="Commons.Xml.Nvdl.NvdlActionList">
|
||||
<TypeSignature Language="C#" Value="public class NvdlActionList : System.Collections.CollectionBase" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Collections.CollectionBase</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.Reflection.DefaultMember(MemberName="Item")</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public NvdlActionList ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The default constructor.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Add">
|
||||
<MemberSignature Language="C#" Value="public void Add (Commons.Xml.Nvdl.NvdlAction item);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="item" Type="Commons.Xml.Nvdl.NvdlAction" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="item">NVDL "action" element to add.</param>
|
||||
<summary>Adds an "action" to this collection.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Remove">
|
||||
<MemberSignature Language="C#" Value="public void Remove (Commons.Xml.Nvdl.NvdlAction item);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="item" Type="Commons.Xml.Nvdl.NvdlAction" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="item">Target NVDL "action" item to remove.</param>
|
||||
<summary>Removes an NVDL "action" from this collection.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Item">
|
||||
<MemberSignature Language="C#" Value="public Commons.Xml.Nvdl.NvdlAction Item[int i] { set; get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Commons.Xml.Nvdl.NvdlAction</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="i" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="i">Index to the target "action".</param>
|
||||
<summary>Gets or sets the target "action" element.</summary>
|
||||
<value>The target "action" element.</value>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Typed collection for <see cref="T:Commons.Xml.Nvdl.NvdlAction" />.</summary>
|
||||
<remarks>This class is a collection for <see cref="T:Commons.Xml.Nvdl.NvdlAction" />.</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
@@ -1,26 +0,0 @@
|
||||
<Type Name="NvdlAllow" FullName="Commons.Xml.Nvdl.NvdlAllow">
|
||||
<TypeSignature Language="C#" Value="public class NvdlAllow : Commons.Xml.Nvdl.NvdlNoResultAction" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>Commons.Xml.Nvdl.NvdlNoResultAction</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public NvdlAllow ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The default constructor.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Represents an NVDL "allow" element.</summary>
|
||||
<remarks>This class represents NVDL "allow" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
@@ -1,26 +0,0 @@
|
||||
<Type Name="NvdlAnyNamespace" FullName="Commons.Xml.Nvdl.NvdlAnyNamespace">
|
||||
<TypeSignature Language="C#" Value="public class NvdlAnyNamespace : Commons.Xml.Nvdl.NvdlRule" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>Commons.Xml.Nvdl.NvdlRule</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public NvdlAnyNamespace ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The default constructor.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Represents an NVDL "anyNamespace" element.</summary>
|
||||
<remarks>This class represents NVDL "allow" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
@@ -1,26 +0,0 @@
|
||||
<Type Name="NvdlAttach" FullName="Commons.Xml.Nvdl.NvdlAttach">
|
||||
<TypeSignature Language="C#" Value="public class NvdlAttach : Commons.Xml.Nvdl.NvdlResultAction" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>Commons.Xml.Nvdl.NvdlResultAction</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public NvdlAttach ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The default constructor.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Represents an NVDL "attach" element.</summary>
|
||||
<remarks>This class represents NVDL "attach" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
<Type Name="NvdlAttachPlaceHolder" FullName="Commons.Xml.Nvdl.NvdlAttachPlaceHolder">
|
||||
<TypeSignature Language="C#" Value="public class NvdlAttachPlaceHolder : Commons.Xml.Nvdl.NvdlResultAction" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>Commons.Xml.Nvdl.NvdlResultAction</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public NvdlAttachPlaceHolder ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The default constructor.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Represents an NVDL "attachPlaceHolder" element.</summary>
|
||||
<remarks>This class represents NVDL "attachPlaceHolder" element. For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
@@ -1,38 +0,0 @@
|
||||
<Type Name="NvdlAttributable" FullName="Commons.Xml.Nvdl.NvdlAttributable">
|
||||
<TypeSignature Language="C#" Value="public class NvdlAttributable : Commons.Xml.Nvdl.NvdlElementBase" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
|
||||
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>Commons.Xml.Nvdl.NvdlElementBase</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public NvdlAttributable ();" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>The default constructor.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Foreign">
|
||||
<MemberSignature Language="C#" Value="public System.Collections.ArrayList Foreign { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Collections.ArrayList</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Holds the all foreign attributes.</summary>
|
||||
<value>A list that holds the entire foreign attributes.</value>
|
||||
<remarks>This list holds the entire foreign attributes. Here "foreign" means those attributes whose namespace URI is neither empty nor NVDL structure namespace (see <see cref="F:Commons.Xml.Nvdl.Nvdl.NvdlNamespace" />). </remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Represents an abstract NVDL element that can hold foreign attribute.</summary>
|
||||
<remarks>This class represents an abstract NVDL element that can hold foreign attribute. Here "foreign" means those attributes whose namespace URI is neither empty nor NVDL structure namespace (see <see cref="F:Commons.Xml.Nvdl.Nvdl.NvdlNamespace" />). For the entire NVDL grammar, see http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/fcd/nvdl-fcd.pdf .</remarks>
|
||||
</Docs>
|
||||
</Type>
|
||||
Loaded 100 of 12536 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user