Commit graph

108 commits

Author SHA1 Message Date
William S Fulton
5d3deb2db1 Fixes for compactdefaultargs and pass by value where the class being passed by value has no default constructor - previously it used SwigValueWrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-24 17:20:17 +00:00
William S Fulton
9be7fe899d Add support for %extend and memberin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-13 07:26:06 +00:00
William S Fulton
f9abd71f76 remove unnecessary temporary variable when wrapping return by reference
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-12 21:16:03 +00:00
William S Fulton
839750da9a const / non-const warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-31 19:02:10 +00:00
Haoyu Bai
1d1ee5bae7 Fix broken caused by merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-30 10:32:59 +00:00
Haoyu Bai
47b4825168 Merged revisions 11085-11086,11088-11089 via svnmerge from
https://swig.svn.sourceforge.net/svnroot/swig/branches/swig-2.0

........
  r11085 | bhy | 2009-01-25 00:21:55 +0800 (Sun, 25 Jan 2009) | 2 lines
  
  Fix const-correctness.
........
  r11086 | bhy | 2009-01-25 02:08:50 +0800 (Sun, 25 Jan 2009) | 2 lines
  
  Correct some function definition in header files, which implementation changed in previous commit caused mismatch.
........
  r11088 | bhy | 2009-01-25 02:38:32 +0800 (Sun, 25 Jan 2009) | 1 line
  
  minor fix and now SWIG is alive again
........
  r11089 | bhy | 2009-01-25 06:07:07 +0800 (Sun, 25 Jan 2009) | 1 line
  
  Correct some bug introduced in previous commits. Now SWIG is pretty good with C++ compiler.
........


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-30 10:27:37 +00:00
Haoyu Bai
6d2aef67d9 Replaced all [const] String_or_char * to const_String_or_char_ptr, by the following command:
sed -i "s/\(const \)\?String_or_char \*/const_String_or_char_ptr /g" CParse/* Include/* Modules/* Preprocessor/* Swig/*

This is a preparation for moving to new DOH, since for strong typed objects we need the const_String_or_char_ptr class to implicit convert to and from String * or const char *.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-24 13:15:51 +00:00
William S Fulton
49675199f4 Remove some vc++ /W4 warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 15:23:02 +00:00
William S Fulton
46a0db50fe enforce consistency in wrap:action wrt line spacing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-01 21:47:23 +00:00
William S Fulton
9976dc9d75 Add allprotected mode for wrapping protected members when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 20:41:01 +00:00
William S Fulton
6f497c2807 Fix bug #1878285 - unnecessary cast for C struct creation wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-12 22:15:00 +00:00
Dave Beazley
b00cef436b API cleanup (Parms)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-10 23:43:07 +00:00
Dave Beazley
ff41049b1c Eliminated use of swigkeys.h/.c files.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-03 20:58:19 +00:00
Dave Beazley
c12550e4ad API cleanup. Documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-03 05:23:20 +00:00
Dave Beazley
264b7dff90 API cleanup. Documentation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-30 18:27:47 +00:00
Dave Beazley
7a826c8b6d Changed Header keyword to Id for SVN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 21:57:44 +00:00
William S Fulton
88513346b6 Fix %extend for static member variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-29 21:52:34 +00:00
William S Fulton
7577d0ad70 Fix #1592173, conversion operators for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-10 23:08:51 +00:00
William S Fulton
1a439a9e19 $self special variable for %extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-08 00:54:28 +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
b7057f7ae8 fix parentnode for %extend methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 19:47:24 +00:00
William S Fulton
ea9dc991cc remove unused code which won't work after the director vtable mods to use a List instead of a Hash
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 23:00:12 +00:00
William S Fulton
f0d1d772fa - explicitcall feature removed.
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:55:24 +00:00
William S Fulton
32abf157f7 new explicitcall feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9188 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-04 21:00:55 +00:00
Olly Betts
b4626ccbac Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-22 18:11:30 +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
Marcelo Matus
5864f4ffce remove extra '\n' reported by Robert Jones
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-13 09:42:28 +00:00
Marcelo Matus
e8b3542f9a implement the naturalvar feature for global vars in java and csharp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8577 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:38:00 +00:00
Marcelo Matus
e236ab4584 fix several compiler warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-23 22:58:49 +00:00
Marcelo Matus
67051bcf15 fix template + global funcs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-08 06:55:41 +00:00
Marcelo Matus
45246b601a add missing hidden
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8259 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 18:00:00 +00:00
Marcelo Matus
3cbecbd4e1 fix spurious warning for kwargs + vars, reported by Amaury
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8247 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 11:08:35 +00:00
Marcelo Matus
41f3d67055 fix for template + operators and compilers like gcc 3.3.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 01:17:47 +00:00
Marcelo Matus
e598ab002b more swigkey unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-03 09:26:42 +00:00
Marcelo Matus
71894cf4b0 using the swig keys in cwrap.c
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 09:49:36 +00:00
Marcelo Matus
d4969b4d0e add missing hidden attr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8169 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 04:21:17 +00:00
Marcelo Matus
c567ffaf27 fix for operator() + template + gcc 3.3.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 08:47:13 +00:00
Marcelo Matus
262c2f2f37 missing add SWIGINTERN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8126 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-29 23:59:10 +00:00
Marcelo Matus
a275bbd30f add the 'naturalvar' option/mode/feature, to allow member variables to be treated in a natural way, as the global ones. This mean use the const SWIGTYPE &(C++)/SWIGTYPE(C) typemaps instead of the plain SWIGTYPE * typemap for the set/get methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:48:56 +00:00
Marcelo Matus
cbca8a3e88 add 'self' attribute for later use
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-14 07:26:37 +00:00
Marcelo Matus
645f95d633 fix many/many memory leaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-30 21:32:27 +00:00
Marcelo Matus
f714a2615d remove many memory leaks and cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-29 01:47:10 +00:00
Marcelo Matus
628dc6b32b add NewStringEmpty, use more StringEuqual and less Strcmp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-28 17:32:56 +00:00
Marcelo Matus
7a77a7feb9 several clean/speed ups
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 02:58:24 +00:00
Marcelo Matus
d2a6728430 disown the 'self' pointer when deleting
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:35:14 +00:00
Marcelo Matus
5faf1d8117 fixes for new flag attribute convention in ref/unref
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-07 13:21:30 +00:00
William S Fulton
dda5e32a18 Modify following features to work as flags, so that they can be truely set and unset: nounref, noref, noattr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:34:10 +00:00
William S Fulton
4ec01af9dd Modify following features to work as flags, so that they can be truely set and unset:
java:const
            java:downcast
            compactdefaultargs
            ignore
            valuewrapper


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 21:37:40 +00:00
William S Fulton
8db59f74d1 remove casts for enums - not necessary now that the enum type is used instead of integers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-28 19:38:37 +00:00
Marcelo Matus
528c3981be fix enum cast in C
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-19 21:39:25 +00:00