Commit graph

49 commits

Author SHA1 Message Date
William S Fulton
35526f18d2 Fix for directors - where a class returned by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 14:09:14 +00:00
William S Fulton
f545472fe8 cosmetic changes removing unnecessary brackets and empty lines in generated code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 13:58:10 +00:00
Marcelo Matus
3634df5e12 add support for named warning codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-06 11:42:24 +00:00
William S Fulton
d57e63e2a5 Add in array reference typemaps - the recently introduced pointer reference typemaps broke array references.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-29 00:16:48 +00:00
William S Fulton
674b0795a4 Add pointer reference typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8064 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-26 23:09:16 +00:00
William S Fulton
36b0436a48 new $imclassname to fix bugs changing the intermediary classname
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8027 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-21 22:51:25 +00:00
William S Fulton
e013e7ff5a Use the system angle brackets for %include
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 09:28:20 +00:00
William S Fulton
9f76d1e6c4 Fix so that all the const primitive reference types can be applied to other types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-10 21:26:40 +00:00
Marcelo Matus
2ff3dd0d4e replace bad parameter names when neccessary
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7699 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-21 10:43:41 +00:00
William S Fulton
fea5471cf7 unsigned long long director fixes (bug 1238798)
Also missing cvs commit for director fixes for SWIGTYPE


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 22:07:44 +00:00
William S Fulton
09a0062404 Fixes to remove "dereferencing type-punned pointer will break strict-aliasing rules" warnings in C wrappers when compiling C code with 'gcc -Wall -fstrict-aliasing'. Patch from Michael Cahill.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:14:35 +00:00
William S Fulton
e6ceb122a6 Scott Michel director patch, typemap consolidation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-28 22:11:06 +00:00
William S Fulton
3bd2739ab6 Consistent warning 470 across all languages
Fix const ref directorout typemaps


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-30 22:27:53 +00:00
William S Fulton
070993e828 director typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 20:51:58 +00:00
William S Fulton
47e471fc7e Modifications to the typemaps giving users fine control over memory ownership and lifetime of director classes. Patch from Scott Michel.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-15 21:31:31 +00:00
William S Fulton
d5faf4d89c minor name change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-02 22:28:21 +00:00
William S Fulton
2394fc2d86 new typemap: javaconstruct. This typemap contains the code that goes into the proxy constructor.
The javaconstruct_director typemap is used instead when directors are enabled.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:58:39 +00:00
William S Fulton
e6ff90147e minor SWIGTYPE[] additions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6846 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-08 22:47:41 +00:00
William S Fulton
35b1c77401 new directorconnect and directorconnect_derived typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:04:54 +00:00
William S Fulton
b29d0c18a6 Corrected usage of $javaclassname special variables in director typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6796 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-30 20:10:44 +00:00
William S Fulton
6f71cc78dc size_t fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:12:01 +00:00
William S Fulton
531719cebd Various warning fixes for Visual Studio 2003 C++ compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-01 22:24:24 +00:00
William S Fulton
d55841d6ea char * and char[] and char[ANY] typemaps tidyup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6165 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-29 20:35:30 +00:00
William S Fulton
1ed50b305b Support for %javaconstvalue added (better compile time constants)
Support for %feature("except", throws="ExceptionClass") so that any Java exception classes thrown from JNI code can be added to the throws list - handled in the same way as the 'throws' attribute in typemaps -
macros added for this - %javaexception and %nojavaexception


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6001 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 21:02:38 +00:00
William S Fulton
4267e2d4d5 Fix for directorin char[ANY] typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-15 20:09:33 +00:00
William S Fulton
0b87a86919 javagetcptr and javaptrconstructormodifiers typemap replaced by the javabody/javabody_derived typemap
javaclassmodifiers typemap now contains the class type


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:26:27 +00:00
William S Fulton
fac3662444 array throws typemap added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-30 08:01:25 +00:00
William S Fulton
796b934b8a Added SWIGTYPE & and SWIGTYPE * typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-29 15:08:22 +00:00
William S Fulton
e7777f2adb Enum typemaps taken out of java.swg
New typemap files for the different C/C++ to Java enum wrapping approaches.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:09:17 +00:00
William S Fulton
6b3f076018 Removed default %javamethodmodifiers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-13 00:17:58 +00:00
Marcelo Matus
ea0f636eae - Uniform the definition of the keyword warnings through
the supported languages.

- Added keyword list for most of the languages that didn't
  have one.

- "All keywords" warning support, through the -DSWIG_ALLKW
  option.

Read the Changes.current


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-12 02:23:52 +00:00
William S Fulton
1d279ae267 #849064 fixed. Any classes with a non public destructor now have a public delete() method which throw a runtime exception. The delete() method was previously protected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-28 23:13:08 +00:00
William S Fulton
05d2ab63eb JNI descriptor attribute in directorin typemap called descriptor instead of parse now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5277 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-08 11:20:07 +00:00
William S Fulton
69d79e0674 typemap name changes:
inv => directorin
outv => directorout
argoutv => directorargout


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 23:52:28 +00:00
William S Fulton
7d04ec7439 directorin typemap renamed javadirectorin
directorout typemap renamed javadirectorout


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 16:13:19 +00:00
William S Fulton
1dfcbeda97 char * fix for directors (from Scott Michel)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-18 19:19:01 +00:00
William S Fulton
2dd28752dc Minor director fixes from Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-06 15:37:25 +00:00
William S Fulton
029cd11a67 Directors implementation contributed by Scott Michel.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-04 23:12:20 +00:00
William S Fulton
b03c08d211 New typemap attribute which specifies the destructor wrapper method name thus making the wrapper method name configurable.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:52:26 +00:00
William S Fulton
6dcd1966d0 protected/private destructors fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 19:47:24 +00:00
William S Fulton
fb2113a8c5 Corrected comment on the type typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 12:30:17 +00:00
William S Fulton
9352654318 New typemaps: javadestruct_base and javadestruct_derived
for the C++ destructor wrapper. The _base version gets used by
classes at the top of an inheritance chain and the _derived
version gets used by other classes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:40:26 +00:00
William S Fulton
00a4f2ee32 Removed globalin and memberin typemaps for dimensionless arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:54:53 +00:00
William S Fulton
ed21684067 globalin and memberin typemaps for dimensionless arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4836 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 13:54:59 +00:00
William S Fulton
9f8a23ca5a long long typemap mods for use with %apply
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-06 23:28:01 +00:00
William S Fulton
38c4c0b7d4 bool typemap mods for Visual C++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-11 22:41:10 +00:00
William S Fulton
579c2b7d87 Removed intermediate variable for SWIGTYPE out typemap as suggested by Heiner Petith
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-09 23:51:55 +00:00
Dave Beazley
516036631c The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00
Harco de Hilster
f03fd12dc1 Somehow the java dir was gone from the repository. Adding it again.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@280 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-02-28 10:59:23 +00:00