William S Fulton
07a7c939e3
Add nested classes to parse tree dumped out by -xml
...
Previously the parse tree contained the forward class declaration for
nested classes, the <classforward> XML element as nested class
support had not been turned on during parsing for -xml. The nested
class support has now been turned on so that the nested classes appear
in the parse tree in a <class> XML element.
Closes #874
2024-10-17 00:41:44 +01:00
William S Fulton
86498e46c6
Remove -xmllang option used with -xml
...
which had no effect on the output.
2024-10-15 08:59:51 +01:00
Olly Betts
4e20b7d71e
Remove -dump_xml command line option
...
This has never been documented aside from a passing mention in
CHANGES which doesn't say what it actually does, and its naming doesn't
match the scheme that SWIG uses.
The same result can be achieved on many platforms by using
`-xmlout /dev/stdout`, or you can just write the output to a file.
2023-06-28 10:21:26 +12:00
Olly Betts
95f6972e66
Fix function definition to match declaration
...
Node is just a typedef for DOH but it's cleaner if these match.
2023-06-28 10:17:23 +12:00
Olly Betts
2d89742b1a
Remove support for -xml out.xml
...
Deprecated over 20 years ago in 2003. Use -xml -o out.xml instead.
2023-06-15 15:06:04 +12:00
William S Fulton
d5a0201c54
XML whitespace changes
...
Remove non-conventional whitespace before closing tag with '>'.
2022-10-10 23:58:39 +01:00
Olly Betts
631b41ae7b
Use https for swig.org links
2022-10-06 13:16:39 +13:00
Olly Betts
55377bdc08
Add DOH Exit() and SetExitHandler()
...
Exit() is a wrapper for exit() by default, but SetExitHandler() allows
specifying a function to call instead.
This means that failures within DOH (e.g. Malloc() failing due to lack
of memory) will now perform cleanup such as removing output files.
This commit also cleans up exit statuses so SWIG should now reliably
exit with status 0 if the run was successful and status 1 if there was
an error (or a warning and -Werror was in effect).
Previously in some situations SWIG would try to exit with the status set
to the number of errors encountered, but that's problematic - for
example if there were 256 errors this would result in exit status 0 on
most platforms. Also some error statuses have special meanings e.g.
those defined by <sysexits.h>.
Also SWIG/Javascript tried to exit with status -1 in a few places (which
typically results in exit status 255).
2022-03-06 12:33:54 +13:00
ahmed-usman
2d871655e3
Update xml.cxx to return typenames ( #777 )
...
Typenames were being returned wrong, so add a condition to handle templateparms correctly.
2016-09-27 15:15:47 +13:00
Olly Betts
a950d1309b
[xml] Fix how the output filename is built
...
Avoid problems when it contains the embedded strings ".c", ".cpp" or ".cxx".
Fixes #540 reported by djack42.
2016-08-05 11:52:35 +12:00
William S Fulton
7841a0d097
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
William S Fulton
7b58300cbd
Fix display of pointers on 64 bit systems, only 32 bit values were being shown.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-21 22:52:30 +00:00
William S Fulton
39d8882a82
Apply #3513569 which adds a catchlist to the xml output
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-13 06:18:21 +00:00
William S Fulton
cb64f65bae
SWIG license change - Source moves to GPLv3
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
William S Fulton
6fb0f48935
customised ccache support: read the CCACHE_OUTFILES env variable and if exists, the names of all generated files are written to the filename specified in the env variable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 12:51:45 +00:00
William S Fulton
fe042d2ebc
Replace cvs $Header$ with svn $Id$
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:42:11 +00:00
William S Fulton
aa04c4c057
beautify/format source code with gnu indent
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-01 23:54:54 +00:00
William S Fulton
800605149b
cosmetic mods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:17:45 +00:00
William S Fulton
7f74b8e7a3
Common template for head of each file detailing licence, distribution and authors information
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 22:51:01 +00:00
William S Fulton
bed81d66d3
Better error message displayed when file cannot be opened
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:31:21 +00:00
William S Fulton
a2f4853ce5
Bug #1251832 - C++ template may generate invalid XML file (+correction)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 21:42:13 +00:00
William S Fulton
f74c045cca
Fix incorrect xml escaping in base class name when base class is a template
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7362 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-14 21:20:40 +00:00
William S Fulton
f149a9f3d1
swig -help prints to stdout not stderr now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:04:10 +00:00
William S Fulton
a03dad3a41
XML patch from Robin Dunn adds -dump_xml and -xmlout <file> for generating XML of post processed parse tree
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-12 19:53:23 +00:00
William S Fulton
11561b2499
Eric Sunshine patch - Mods to work on NextStep
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 22:42:18 +00:00
William S Fulton
c00aaf0f5b
Moved non static function declarations from source files into header files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-28 21:48:39 +00:00
Dave Beazley
27d3793c80
[ 829319 ] XML module tweaks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-31 17:42:40 +00:00
Dave Beazley
8ae4c60d39
Major refactoring of DOH List/Hash iterators. See CHANGES
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-11 20:26:57 +00:00
William S Fulton
6c71e9d478
-outdir commandline option support => directory for proxy class and other language specific files
...
-help tidy up
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 17:22:12 +00:00
William S Fulton
10b159e22a
Added preprocessor symbols
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-04 21:47:56 +00:00
Dave Beazley
3851e222d0
Fixed xml sym:name problem.
...
**** SPECIAL CAUTION TO DEVELOPERS ****
The strings that represent attribute key names like "name",
"sym:name", "type", and so forth are extensively shared to save
memory. If a key name is modified for some reason (which is not
recommended), be aware that those change may affect thousands of parse
tree nodes. Moreover, changes to a key name will break the hashing
algorithm used to perform attribute lookup.
Bottom line: don't modify hash table key strings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-23 14:13:34 +00:00
Klaus Wiederänders
076e127226
deprecated -xml output.xml
...
use -o instead
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-22 09:16:13 +00:00
Thien-Thi Nguyen
25c8a3d592
(Xml_print_attributes): Do "&" replacement
...
before any others that might introduce "&" into
the stream.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-01-08 12:19:28 +00:00
Dave Beazley
74a3aa015c
File move
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-12-03 20:33:35 +00:00