Commit graph

2,656 commits

Author SHA1 Message Date
Marcelo Matus
f958140af5 simpler mangling method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5791 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-23 01:47:54 +00:00
Marcelo Matus
800ebd6a78 added template test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-23 01:12:06 +00:00
Marcelo Matus
e6711328a6 more comments and cosmetic fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5789 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-23 01:07:45 +00:00
Marcelo Matus
6791c60907 fix compiler warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5788 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-23 01:07:07 +00:00
Marcelo Matus
73ba9f4506 allowing template arguments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5787 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-23 01:06:41 +00:00
Marcelo Matus
a27e364d14 Using the same mangling method whenever is needed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5786 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-23 00:59:26 +00:00
Marcelo Matus
b6a08780a7 added backward comp for old As/Check/From methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-22 00:17:54 +00:00
Marcelo Matus
7e25ede10d more tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5784 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-21 23:38:59 +00:00
Marcelo Matus
a784bf2f32 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-21 23:27:32 +00:00
Marcelo Matus
7afe6bc139 normalizing the inout typemaps and other cosmetic fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5782 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-21 23:26:18 +00:00
Matthias Köppe
61a83837cd Constness fix.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-21 13:15:06 +00:00
Matthias Köppe
807245f992 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-21 11:51:42 +00:00
Matthias Köppe
59bae5cdef Fix the documentation strings of functions with anonymous arguments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-21 11:49:44 +00:00
Marcelo Matus
c827bad43b add argument protection for templates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5778 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-20 00:23:40 +00:00
Marcelo Matus
95fa3be654 add 'attribute' macros for python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5777 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-20 00:08:36 +00:00
Henning Thielemann
39d92e49b2 added basic Modula-3 support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5776 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-19 11:45:29 +00:00
Henning Thielemann
3acfe68bee version 1.3.21 is of 2004, isn't it?
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-19 11:43:51 +00:00
Marcelo Matus
66180dbf4e *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-19 00:57:59 +00:00
Marcelo Matus
cd59284111 missing change from previous commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-19 00:50:12 +00:00
Marcelo Matus
57c88f56df new tests for string and directors+containers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 21:30:24 +00:00
Marcelo Matus
2568b57d46 extending std_string and more fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 21:20:55 +00:00
Marcelo Matus
8cc9533152 fix inclusion of complex.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 21:18:16 +00:00
Marcelo Matus
b6ec9bd449 add missing Swig_typedef_resolve_all
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 20:35:15 +00:00
Marcelo Matus
c55acbc20f fix director call for the single container argument case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 20:32:14 +00:00
Henning Thielemann
4a12645f19 sorry, I missed that Firstkey and Nextkey aren't available any longer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 19:34:14 +00:00
Henning Thielemann
b6cf16db6d 'const' for parameters of addSymbol
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 19:00:23 +00:00
Henning Thielemann
a5a254d7fa 'const' for parameters of addSymbol
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 18:40:26 +00:00
Henning Thielemann
b5e078cd08 some words about Firstkey and Nextkey
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 18:35:17 +00:00
Marcelo Matus
9497c8cb66 added ref/unref and friend dec. support comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 02:07:52 +00:00
Marcelo Matus
cf2e4870e7 another fix for long long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 18:40:44 +00:00
Henning Thielemann
4a571178ce added a line for Modula-3 support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 18:19:42 +00:00
Marcelo Matus
2537ee1c34 fix old std_pair version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 10:45:19 +00:00
Marcelo Matus
49f0823a25 more test files for STL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:52:22 +00:00
Marcelo Matus
e205e0012d add vector test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:49:17 +00:00
Marcelo Matus
503c615c67 add test for the mangling extension #@ preproc.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:44:35 +00:00
Marcelo Matus
135a367a2e fix template complex
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5756 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:43:35 +00:00
Marcelo Matus
1d5529bcfc better STL support, see CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:41:19 +00:00
Marcelo Matus
958c18a14c Added more STL containers typecheck code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:47:18 +00:00
Marcelo Matus
e0adc5af01 Fragments can now be "type especialized", as the typemaps. The
syntax is as follows

 %fragment("name","header") { /* an old fragment */ }
 %fragment("name" {Type}, "header") { /* the fragment is type dependent */}

Now fragments can also be used inside templates:

 template <class T>
 struct A {
   %fragment("incode"{A<T>},"header") {
     /* 'incode' especialized fragment */
   }

   %typemap(in,fragment="incode"{A<T>}) {
     /*
       here we use the 'type especialized' fragment
       "incode"{A<T> }
      */
   }
 };


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:36:06 +00:00
Marcelo Matus
a8d60a0058 Added the #@ mangling extension
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:32:11 +00:00
Marcelo Matus
a95c468076 Using the unused 'Swig_string_mangle' method to
implement the #@ preprocessor mangling


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5751 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:27:02 +00:00
Marcelo Matus
cf8a1c311c Allowing the empty %template directive, such as
%template() std::vector<int>;

to process the class "typedef"s and "typemap"s. Before
only the internal "typedef"s were processed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:18:17 +00:00
Marcelo Matus
6184dceb5b Fragments can now be "type especialized", as the typemaps. The
syntax is as follows

 %fragment("name","header") { /* an old fragment */ }
 %fragment("name" {Type}, "header") { /* the fragment is type dependent */}

Now fragments can also be used inside templates:

 template <class T>
 struct A {
   %fragment("incode"{A<T>},"header") {
     /* 'incode' especialized fragment */
   }

   %typemap(in,fragment="incode"{A<T>}) {
     /*
       here we use the 'type especialized' fragment
       "incode"{A<T> }
      */
   }
 };

Also, there is a minor templ.c fix when expanding '#T'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5749 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:01:06 +00:00
William S Fulton
d05b12f642 documentation version number corrected
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-11 21:32:25 +00:00
William S Fulton
9491429860 Director fix. Some director callback methods were not being called on all operating systems.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-11 21:26:47 +00:00
William S Fulton
ba68c5f253 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-11 21:25:46 +00:00
Matthias Köppe
fcd9181a1e *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-02 15:55:41 +00:00
Matthias Köppe
a5bc7fc6a7 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-02 12:58:30 +00:00
Matthias Köppe
e3635aed11 In -scm mode, don't forget to check the type of string arguments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-02 12:58:00 +00:00
William S Fulton
baded88f32 no message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-24 21:07:26 +00:00