Remove support for -xml out.xml

Deprecated over 20 years ago in 2003.  Use -xml -o out.xml instead.
This commit is contained in:
Olly Betts 2023-06-15 12:06:51 +12:00
parent 6ce0eac34e
commit 2d89742b1a
3 changed files with 6 additions and 24 deletions

View File

@ -38,6 +38,7 @@ Version 4.2.0 (in progress)
-noextern option On by default since SWIG 1.3.26 (2005-10-09)
-noruntime Type sharing happens via target lang global.
-runtime Type sharing happens via target lang global.
-xml out.xml Use -xml -o out.xml instead.
2023-06-15: olly
[Guile] Fix freearg typemaps to go with char **INOUT and char

View File

@ -30,7 +30,7 @@ check:
for f in $(all-dot-i-files) ; do \
base=`basename $$f .i` ; \
xml=$$base.xml ; \
$(SWIGINVOKE) -xml $$xml ${srcdir}/$$f ; \
$(SWIGINVOKE) -xml -o $$xml ${srcdir}/$$f ; \
cat $$xml | $(cleanup) | diff -c ${srcdir}/$$base.expected-xml - ; \
done
@ -43,9 +43,9 @@ distclean: clean
# from here on, non-developers beware!
%.expected-xml : %.i
$(SWIGINVOKE) -xml tmp-file $^
cat tmp-file | $(cleanup) > $@
rm -f tmp-file
$(SWIGINVOKE) -xml -o tmp-file.xml $^
cat tmp-file.xml | $(cleanup) > $@
rm -f tmp-file.xml
all-expected-xml:
for f in $(all-dot-i-files) ; do \

View File

@ -16,9 +16,7 @@
static const char *usage = "\
XML Options (available with -xml)\n\
-xmllang <lang> - Typedef language\n\
-xmllite - More lightweight version of XML\n\
------\n\
deprecated (use -o): -xml <output.xml> - Use <output.xml> as output file (extension .xml mandatory)\n";
-xmllite - More lightweight version of XML\n";
static File *out = 0;
static int xmllite = 0;
@ -39,23 +37,6 @@ public:
virtual void main(int argc, char *argv[]) {
SWIG_typemap_lang("xml");
for (int iX = 0; iX < argc; iX++) {
if (strcmp(argv[iX], "-xml") == 0) {
char *extension = 0;
if (iX + 1 >= argc)
continue;
extension = argv[iX + 1] + strlen(argv[iX + 1]) - 4;
if (strcmp(extension, ".xml"))
continue;
iX++;
Swig_mark_arg(iX);
String *outfile = NewString(argv[iX]);
out = NewFile(outfile, "w", SWIG_output_files());
if (!out) {
FileErrorDisplay(outfile);
Exit(EXIT_FAILURE);
}
continue;
}
if (strcmp(argv[iX], "-xmllang") == 0) {
Swig_mark_arg(iX);
iX++;