Commit graph

782 commits

Author SHA1 Message Date
Stefan Zager
efafe8e70b Fix example to show %feature directive before method declaration.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-06 23:30:27 +00:00
Stefan Zager
60561bfe33 -builtin feature will appear in 2.0.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-03 08:35:26 +00:00
Stefan Zager
f759999f40 Merged trunk through revision 12591
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-03 03:14:19 +00:00
Stefan Zager
48faf20934 Added python version support to the built-in section.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12589 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-02 21:35:34 +00:00
Stefan Zager
da1fc2ff6a Fixed exception example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 19:39:14 +00:00
Stefan Zager
cd7fc2047b Factored some #ifdef noise out of the initialization function by adding
SwigPyBuiltin_SetMetaType.

For %import statements, move the runtime import out of SWIG_init and into the
.py file.  The reason for this is that the import must be executed within the
python execution frame of the module, which is true in the .py file, but *not*
true in the initialization function.  Had to re-order the .py file slightly
to put the 'import' statements at the top; that's necessary to make sure base
types from an imported module are initialized first.  If -builtin isn't used,
then the .py code is not re-ordered.

Added an explanation and workaround for the limitation that wrapped types are
not raise-able.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 19:35:30 +00:00
William S Fulton
e4f434173d Minor html changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-31 20:29:35 +00:00
Stefan Zager
0e57a29a27 More tweaking of -builtin docs. More judicious selection of names in the operator overload example.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-30 22:01:25 +00:00
Stefan Zager
bc200998b1 Added usage message for -builtin, and tweaked -builtin docs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12574 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-30 19:51:22 +00:00
Stefan Zager
f2b0d2ef40 Added comment about -builtin in Memory Management section.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-30 08:15:16 +00:00
Stefan Zager
0aa8729d50 Added more documentation of -builtin.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-30 07:59:52 +00:00
William S Fulton
52f26ffcd1 bump version to 2.0.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12570 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 23:01:55 +00:00
William S Fulton
9b60e3b7bb Add swig-2.0.3 release date and summary
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 21:50:23 +00:00
Stefan Zager
93499e12af Merged trunk up to revision 12551
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-24 05:46:05 +00:00
David Nadlinger
ce6516fb4c [D] nspace support.
As for C# and Java, this doesn't work for free functions/variables yet.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:32:26 +00:00
William S Fulton
a2ac60e7f3 Bump version to 2.0.3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 21:48:32 +00:00
William S Fulton
8660e59a5f Add swig-2.0.2 release date
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12503 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 15:10:47 +00:00
William S Fulton
0913f41fb4 Change preprocessing error for tokens appearing after #else and #end to warning. Add some missing warning documentation and a couple of warning messages tidy up.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-17 21:54:13 +00:00
William S Fulton
4ac99b5f96 Documentation numbering update
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-17 21:51:10 +00:00
William S Fulton
efd06d0668 Preprocessing now errors out if extra tokens appear after #else and #end. Add preprocessor errors when preprocessor expressions are missing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-16 20:48:48 +00:00
Stefan Zager
6b3d2aa2d5 Some incomplete documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-10 06:32:11 +00:00
William S Fulton
9ad833abed Add mzscheme tip from bug #2942899
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 15:45:36 +00:00
William S Fulton
00fadeebdc SF #2942899 Add user supplied documentation to help getting started with MzScheme.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12437 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 14:35:16 +00:00
William S Fulton
1f46e84212 SF #2942899 Add user supplied documentation to help getting started with MzScheme. Update chapter name to MzScheme/Racket accounting for the rename of MzScheme to Racket.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 14:30:36 +00:00
William S Fulton
7fe18eaacb SF #3141139 better callback documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-04 19:50:55 +00:00
William S Fulton
0be280bf72 Add link to runtime information developer doc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-03 07:20:34 +00:00
David Nadlinger
0731ad0a6a [D] Docs: Mention the "pre", "post" and "terminator" din typemap attributes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 23:04:06 +00:00
David Nadlinger
0efe5294ed [D] Docs: Cosmetic fix to $imcall HTML anchor name.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-29 23:03:51 +00:00
William S Fulton
3d7799fe0d New warning when the smartptr feature is missing in some classes in an inheritance chain. Errors test-suite now uses Python instead of Tcl as testing language
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-17 21:12:35 +00:00
William S Fulton
ef865e06d5 Added some missing multi-argument typemaps: (char *STRING, size_t LENGTH) and (char *STRING, int LENGTH) - Java patch is from Volker Grabsch. Elements of the primitive_types.i testcase for this moved into char_binary.i. Documentation for this enhanced.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-14 19:06:43 +00:00
William S Fulton
4b049f672f ascii 'art' improvement
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-08 23:30:25 +00:00
William S Fulton
162ced78f4 Better linkchecker configuration for checking html links. Fix broken links and update redirected links.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-08 23:17:23 +00:00
William S Fulton
25c8689226 Use htmldoc's new --overflow option and fix overflow warnings in the pdf documentation generation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-08 01:28:09 +00:00
William S Fulton
916e4644b6 fixes for html tidy in D.html
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-08 00:19:58 +00:00
William S Fulton
0892ef8496 Fix most of the html errors in D.html
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-07 20:26:21 +00:00
William S Fulton
005b70be3a Chapter renumbering after adding D chapter
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-07 20:05:44 +00:00
William S Fulton
4c28028b43 Fix order of D chapter in Sections summary
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12375 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-07 20:03:31 +00:00
William S Fulton
3c0fba5685 SF patch # 3091116 to remove hard coded path to python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12374 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-07 19:57:28 +00:00
David Nadlinger
38c88a0931 [D] Operator overloading support for D1 and D2.
As mentioned in the documentation, opIndexAssign and implicit casting are not supported yet.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-30 02:44:04 +00:00
Olly Betts
569470c4b9 Fix typo (extra ')') in Python docs (SF#3131673).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-10 05:52:45 +00:00
William S Fulton
24591490c2 Mention SWIG_FEATURES for running the test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-03 17:29:07 +00:00
David Nadlinger
3477a9dff1 [D] Replaced the term "wrap D module" with "intermediary D module" (including names derived from it).
This was suggested by wsfulton on the mailing list in order to bring the D module in line with the C# one, the naming scheme of which is intended to be language-independent.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-28 23:12:03 +00:00
David Nadlinger
d7cc6904c5 [D] Document "-d2" switch, native pointer support and D_VERSION=2.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-26 23:23:26 +00:00
David Nadlinger
d69d8ff641 [D] Renamed the "dnativeconst" feature to "dmanifestconst".
This should make it clearer that it controls manifest constant generation, not handling of C++ const member functions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-18 10:16:05 +00:00
David Nadlinger
03aefbc6e9 Added support for the D programming languge.
It is still a bit rough around some edges, particularly with regard to multi-threading and operator overloading, and there are some documentation bits missing, but it should be fine for basic use.

The test-suite should build and run fine with the current versions of DMD, LDC and Tango (at least) on Linux x86_64 and Mac OS X 10.6.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-18 00:24:02 +00:00
Vadim Zeitlin
e30befd138 Correct explanation of how to match on class name in %rename.
Replace incorrect documentation of $parentNode from %rename discussion: it
advised using match$parentNode but this doesn't work because the parent node
is not yet set when %rename is parsed.

Document the "fullname" attribute of %rename which can be used to restrict the
match to the given full name of a declaration only.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-16 14:08:50 +00:00
William S Fulton
383230d734 minor clarification about %{ %} blocks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-18 18:59:57 +00:00
William S Fulton
a56ee9cb1b Bump version to 2.0.2 and move CHANGES.current to CHANGES
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-05 06:11:50 +00:00
William S Fulton
29b4dbdac1 Not all languages were not in alphabetical order
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12252 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-04 06:16:21 +00:00
William S Fulton
13f861220a dependency fix for the .book files generation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-04 06:15:53 +00:00