aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c/asn1c.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-10-13 09:13:56 +0000
committerLev Walkin <vlm@lionet.info>2004-10-13 09:13:56 +0000
commitf748451c7b70297b62b072b041261527f01ec847 (patch)
treec9de041837e705ddeb83402b2da3bccd86e32cd3 /asn1c/asn1c.c
parent144db9ba4ff5b048fa49274ef5d25d67f216deb3 (diff)
-X for XML DTD
Diffstat (limited to 'asn1c/asn1c.c')
-rw-r--r--asn1c/asn1c.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/asn1c/asn1c.c b/asn1c/asn1c.c
index 98a607a..32e6e74 100644
--- a/asn1c/asn1c.c
+++ b/asn1c/asn1c.c
@@ -70,7 +70,7 @@ main(int ac, char **av) {
/*
* Process command-line options.
*/
- while((ch = getopt(ac, av, "EFf:hLPp:RS:vW:")) != -1)
+ while((ch = getopt(ac, av, "EFf:hLPp:RS:vW:X")) != -1)
switch(ch) {
case 'E':
print_arg__print_out = 1;
@@ -146,6 +146,11 @@ main(int ac, char **av) {
exit(EX_USAGE);
}
break;
+ case 'X':
+ print_arg__print_out = 1; /* Implicit -E */
+ print_arg__fix_n_print = 1; /* Implicit -F */
+ asn1_printer_flags |= APF_PRINT_XML_DTD;
+ break;
default:
usage(av[0]);
}
@@ -299,6 +304,7 @@ usage(const char *av0) {
" -R Restrict output (tables only, no support code)\n"
" -S <dir> Directory with support (skeleton?) files\n"
" (Default is \"%s\")\n"
+" -X Generate and print the XML DTD\n"
"\n"
" -Werror Treat warnings as errors; abort if any warning\n"