Commit graph

13,176 commits

Author SHA1 Message Date
Olly Betts
fc66fff262 Fix reporting of filenames in errors after %include (patch from
Leigh Smith in #1731040; also reported as #1699940).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-05 17:48:16 +00:00
Joseph Wang
30cf4d39eb The code for list attributes was adding a spurtious comma, which caused
code breakage in newer versions of R.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9846 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-04 04:36:05 +00:00
Gonzalo Garramuno
8a0eba9469 Changed "extern Init_stack" to "RUBY_EXTERN" to make it compatible
with ruby on windows (dllexport issues).



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9845 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-02 10:41:38 +00:00
Gonzalo Garramuno
801fda2b00 Moved Init_stack() declaration over to rubyapi to
avoid potential C++ issues.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-02 10:24:23 +00:00
Olly Betts
db1161de35 Fix typo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-31 10:32:01 +00:00
Olly Betts
38829f2ce0 [Python]
Fix "missing initialiser" warning when compiling generated C/C++
wrapper code with Python 2.5 with warnings enabled (patch from
bug#1727668 from Luke Moore).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-31 02:20:45 +00:00
Olly Betts
f08000de17 [Python]
Split docstrings into separate string literals at each newline when
generating C/C++ wrapper code (the C/C++ compiler will just combine
the back into a single string literal).  This avoids MSVC
complaining that the strings are too long (problem reported by
Bo Peng on the mailing list).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9841 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-29 00:57:46 +00:00
Olly Betts
af2d15d2a5 [Python]
Escape backslashes in docstrings.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-27 23:57:34 +00:00
Olly Betts
26e8cc0797 [Python]
Fix autodoc generation of enums to be more consistent with how the
enums are wrapped - patch #1697226 from Josh Cherry.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-26 15:00:58 +00:00
Olly Betts
dc61936359 [PHP5]
Fix wrapping of methods and functions which return a pointer to a
class (bug#1700788) and those which have overloaded forms returning
both classes and non-classes (bug#1712717, thanks to Simon
Berthiaume for the patch).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-26 11:38:18 +00:00
William S Fulton
3e5f30c94f conversion operator %rename improvements - the exact operator name must be specified now, rather than a fully qualified operator name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-26 00:06:45 +00:00
William S Fulton
ec8d13b467 more thorough %rename tests including conversion operator %rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9836 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-26 00:05:32 +00:00
Gonzalo Garramuno
d53ef0a8c4 Added automatic calculation of O(n).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 13:36:10 +00:00
Gonzalo Garramuno
b2356f4ef6 Improved printing in test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 12:53:45 +00:00
Gonzalo Garramuno
1d35a3bb0e Updated li_std_speed.i to also test speed of
container with an actual class (float).
Simplified insert() function.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 12:49:41 +00:00
Gonzalo Garramuno
32b10ee9b7 Dramatically sped up comparison functions for
integers.  This speeds up most std::set<int>, etc.
insertion operations.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9830 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 12:46:57 +00:00
Gonzalo Garramuno
776398cd1d Made hash store a counter to the ruby VALUE object.
This should avoid a potential subtle bug when
using operator=.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9829 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-23 11:54:36 +00:00
Gonzalo Garramuno
5aaf3003b6 Added a partial specialization for swig::GC_VALUE
to avoid the need to check each element in the container
during copy constructors.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9828 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-20 15:23:43 +00:00
Gonzalo Garramuno
0b36bc6940 Removed & test and changed it for a simpler T_NONE
test.  This seems to avoid issues and is slightly
faster.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-19 16:51:39 +00:00
Gonzalo Garramuno
597f650d02 Added new speed test and minor cosmetic fixes to
other older tests.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9826 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-19 09:49:19 +00:00
Gonzalo Garramuno
7c2e64a8dd Made check in rubyclasses a little bit safer
to exit early on ints, nil, false, true, symbols,
internal nodes and none.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-19 09:41:23 +00:00
Gonzalo Garramuno
1cf8d3dd36 Dramatically sped up all STL containers when
they contain swig::GC_VALUEs.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-19 08:45:09 +00:00
Gonzalo Garramuno
6a01528488 Fixed SWIG_EXPORT_ITERATOR_METHODS in std_set.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9823 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-18 23:32:55 +00:00
Gonzalo Garramuno
49c61cd129 Added missing size(), clear(), empty() functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-18 23:31:14 +00:00
Olly Betts
6ffb9fa179 Remove unused Printf() parameter, and simplify resultant code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-17 22:53:50 +00:00
Olly Betts
e73b6bf62c Remove unused Printf parameters from cut-and-pasting code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9820 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-17 22:48:59 +00:00
Olly Betts
d3dba22c2f Fix compilation with GCC 4.3 snapshot.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9819 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-17 22:37:25 +00:00
Olly Betts
218f0f6577 Fix unused parameter in Printf.
Remove superfluous semicolons to fix compile failure with GCC 4.3 snapshot
which is fussier about C++ syntax than current releases.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9818 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-17 22:34:29 +00:00
Gonzalo Garramuno
cf0e8cca5a Fixed typecheck for std::complex<double>
which was previously broken.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9817 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-17 11:10:27 +00:00
Gonzalo Garramuno
211ee4eb0a Fix for std::pair< iterator, iterator > making the
iterator non-consts, when the key is always const
and will prevent modification.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9816 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-17 10:28:20 +00:00
Gonzalo Garramuno
b20fd0d06f Moved functors away from std_set.i and std_map.i
into their own std_functors.i file.
Made binarypredicate, etc. be templates to allow more
strict predicates/functors.




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9815 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-16 22:48:01 +00:00
Gonzalo Garramuno
765e3d27f0 Removed incorrect noconst trait.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-16 22:25:31 +00:00
Mikel Bancroft
df4c2a2d5a small allegrocl update. see CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-16 22:14:15 +00:00
Gonzalo Garramuno
72b118220f Added some spaces in template names to avoid
potential compilation errors.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9812 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-16 21:29:34 +00:00
Gonzalo Garramuno
361a5d67b4 Removed older renames.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-16 21:28:20 +00:00
Gonzalo Garramuno
d4eec2670b Fixed renames of std_* containers to a safer
%rename directive.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-16 21:27:08 +00:00
Gonzalo Garramuno
50c035fb07 Ruby complex was broken for one of its constructors.
Fixed.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9809 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-16 21:24:41 +00:00
Olly Betts
0cde0bcd2d Add "set -e" so that the script fails if any command fails.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9808 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-12 15:50:09 +00:00
Olly Betts
3c359c3e2e Allow particular versions of aclocal, autoheader, automake, and autoconf to
be specified by setting environmental variables ACLOCAL, etc.  The default
is to just use "aclocal", etc as before.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-12 15:48:16 +00:00
Olly Betts
4aaf48d650 swig -python -threads now generates C/C++ code which uses Python's
own threading abstraction (from pythread.h) rather than OS specific
code.  The old code failed to compile on MS Windows.  (See SF patch
tracker #1710341).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9806 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-12 13:55:19 +00:00
Gonzalo Garramuno
1c3fec7f2a Updated Iterator documentation to include defines.
Updated Ruby<->C++ tables to also include SWIG
conversion functions.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9805 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 06:07:13 +00:00
Olly Betts
53d0c60892 Escape literal `%' in Printf() calls ("%typemap" and similar).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9804 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 03:02:31 +00:00
Olly Betts
1a4232e12b Removed unused extra parameter in call to Printf().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9803 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 02:38:23 +00:00
Olly Betts
02d382d880 Removed unused extra arguments from calls to Printf().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:25:57 +00:00
Olly Betts
19247953b8 Fix unescaped literal % (in "%varargs") in call to Printf().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:13:04 +00:00
Olly Betts
097ad60911 Re-add missing \n to deprecation warning for -feature, which got reverted
somehow.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9800 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:11:10 +00:00
Olly Betts
baf892ed8f Fix unused parameters passed to Printf().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9799 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:08:53 +00:00
Gonzalo Garramuno
cc123a7d6d Changed -init_name to -initname per William's
request.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9798 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:03:31 +00:00
Olly Betts
85d7de4efe Remove unused trailing NIL parameter in call to Printf(), presumably left
over from it being a call to Printv() at one point.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9797 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-08 22:40:24 +00:00
Olly Betts
8094f2c86f Remove unused trailing `0' parameter in call to Printf.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9796 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-08 22:37:21 +00:00