Commit graph

2,637 commits

Author SHA1 Message Date
Marcelo Matus
c8d7e4d971 new tests for string and directors+containers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 21:30:24 +00:00
Marcelo Matus
a672ff61ef extending std_string and more fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 21:20:55 +00:00
Marcelo Matus
109f79377c fix inclusion of complex.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 21:18:16 +00:00
Marcelo Matus
48df694c7b add missing Swig_typedef_resolve_all
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 20:35:15 +00:00
Marcelo Matus
b6119293f3 fix director call for the single container argument case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 20:32:14 +00:00
Henning Thielemann
15ec5149f8 sorry, I missed that Firstkey and Nextkey aren't available any longer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 19:34:14 +00:00
Henning Thielemann
a8340335f8 'const' for parameters of addSymbol
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 19:00:23 +00:00
Henning Thielemann
1a39907bd9 'const' for parameters of addSymbol
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 18:40:26 +00:00
Henning Thielemann
a216a8a637 some words about Firstkey and Nextkey
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 18:35:17 +00:00
Marcelo Matus
38ff20aa42 added ref/unref and friend dec. support comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 02:07:52 +00:00
Marcelo Matus
0015c8417e another fix for long long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 18:40:44 +00:00
Henning Thielemann
57da015302 added a line for Modula-3 support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 18:19:42 +00:00
Marcelo Matus
64973655da fix old std_pair version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 10:45:19 +00:00
Marcelo Matus
9e22799f04 more test files for STL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:52:22 +00:00
Marcelo Matus
359d862a49 add vector test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:49:17 +00:00
Marcelo Matus
4267bda1a9 add test for the mangling extension #@ preproc.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:44:35 +00:00
Marcelo Matus
81ae8b5e68 fix template complex
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5756 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:43:35 +00:00
Marcelo Matus
328098bbb2 better STL support, see CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 09:41:19 +00:00
Marcelo Matus
9d65aeb47d Added more STL containers typecheck code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:47:18 +00:00
Marcelo Matus
6c150e4328 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@5753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:36:06 +00:00
Marcelo Matus
238cc1455c Added the #@ mangling extension
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:32:11 +00:00
Marcelo Matus
2e88f79ace Using the unused 'Swig_string_mangle' method to
implement the #@ preprocessor mangling


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5751 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:27:02 +00:00
Marcelo Matus
eae815451e 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@5750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:18:17 +00:00
Marcelo Matus
22d2c01b50 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@5749 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:01:06 +00:00
William S Fulton
b77c8c0b66 documentation version number corrected
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-11 21:32:25 +00:00
William S Fulton
82c4109a2d 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@5746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-11 21:26:47 +00:00
William S Fulton
f658636ffe *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-11 21:25:46 +00:00
Matthias Köppe
1c7f945b73 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-02 15:55:41 +00:00
Matthias Köppe
d821925f0c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-02 12:58:30 +00:00
Matthias Köppe
4976eb0725 In -scm mode, don't forget to check the type of string arguments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-02 12:58:00 +00:00
William S Fulton
3e2c500127 no message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-24 21:07:26 +00:00
William S Fulton
8bef639f31 All tests now use the -namespace commandline option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-24 21:06:54 +00:00
William S Fulton
9f9ba96e8e New commandline option -namespace for putting all generated classes into a C# namespace.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-24 21:05:48 +00:00
William S Fulton
e1d89a2cdc Generate package statement after the SWIG banner
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-24 21:03:47 +00:00
Matthias Köppe
e52f5e17dc *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-23 13:56:41 +00:00
Matthias Köppe
61668907c8 Define FUNC_NAME also in the dispatch wrapper for overloaded
functions.  Patch by John Lenz, SF #896255.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-23 13:56:29 +00:00
Matthias Köppe
bd55a6f4fb *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-23 12:57:50 +00:00
Matthias Köppe
64c48367b9 Use FUNC_NAME rather than a bogus typemap variable for signalling
errors.  Call scheme_wrong_type with a zero-based argument number.
Reported by Ondrej Pacovsky, SF #902621.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-23 12:56:58 +00:00
Matthias Köppe
389aa458a1 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-22 15:28:14 +00:00
Matthias Köppe
18aec6bdc8 Don't try to invoke a null destructor function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5732 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-22 15:28:03 +00:00
William S Fulton
197b15b0ec Replace ; with && where appropriate. This fixes the makefiles so that Make correctly errors out rather than blindly carrying on when some error occurs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-20 22:57:23 +00:00
William S Fulton
61e105a895 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-20 22:54:30 +00:00
William S Fulton
5998ecb442 bool patch code removal
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-20 22:52:49 +00:00
William S Fulton
0d2ef5a3ce Fixes for compilation by the Digital Mars Compiler. Submitted by Scott Michel.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5728 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-20 22:51:47 +00:00
William S Fulton
43f49bae98 boring warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5727 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-19 21:45:10 +00:00
William S Fulton
3fd2fa5dcc bool patch fix. Needed for NextStep.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-19 21:44:44 +00:00
Matthias Köppe
ce935e472e *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5724 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-13 16:03:32 +00:00
Matthias Köppe
aa3f0b2b30 Don't produce invalid C code when invoked with the
-declaremodule option.  Reported by Tim Brown, SF #891108.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5723 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-13 16:03:24 +00:00
Matthias Köppe
0eea0c3316 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-13 15:50:41 +00:00
Matthias Köppe
05e34809d9 [MzScheme]: Use the new command-line argument -noinit.
[Guile]: Build the runtime library with passive linkage, so as to
rename the SWIG_init function uniquely.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-13 15:50:21 +00:00