mirror of https://github.com/swig/swig
Remove support for -xml out.xml
Deprecated over 20 years ago in 2003. Use -xml -o out.xml instead.
This commit is contained in:
parent
6ce0eac34e
commit
2d89742b1a
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue