Commit graph

86 commits

Author SHA1 Message Date
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
Marcelo Matus
d9e31764a8 fix warning(error?) with jlong + x86_64
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 01:37:38 +00:00
William S Fulton
6722b2ea89 mods so that a %apply will work on pointers, eg %apply int[] {int*}
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-08 22:49:00 +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
9402fa3b00 const enum SWIGTYPE & typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-28 19:16:24 +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
06154388e7 a few missing typemaps added - exposed by the new mixed default typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-29 21:30:23 +00:00
William S Fulton
c2f6f9794c minor corrections
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-27 20:54:35 +00:00
William S Fulton
fc038b0797 wstring directorin typemap fixes from Russell Keith-Magee
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 20:58:36 +00:00
William S Fulton
e03dbc323b Scott Michel patch #1049496 to fix typesafe and proper Java enums with directors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 21:12:36 +00:00
William S Fulton
31d1012b0a removed redundant valuewrapper feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:19:14 +00:00
Marcelo Matus
4855fb73ae avoid to use SwigValueWrapper with std::string, just to keep the code cleaner and familiar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 00:35:16 +00:00
Marcelo Matus
c1ed709013 fix #if __cplusplus problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 16:51:22 +00:00
William S Fulton
64ecb886fa Added and empty freearg typemap so that the signed char* typemaps can be aplied to char*.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-22 20:30:06 +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
873d7a850d Prevent memory leaks in the case of early return from wrapper methods using const std::string & parameters.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-12 20:57:51 +00:00
William S Fulton
7304bf51c0 throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-23 21:53:04 +00:00
William S Fulton
46bffd9636 director enum fixes from Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-12 19:51:51 +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
ebfd496ff5 javagetcptr typemap replaced by the javabody typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:27:09 +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
ca9959d2cd various tweaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5957 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:22:46 +00:00
William S Fulton
bf02521653 various tweaks
toString() method support


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:21:49 +00:00
William S Fulton
a48bcfceef duplicate typemaps removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5954 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:18:04 +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
a24ecbb1a5 JVM link failure on some systems fixed when using std_vector.i.
Also adds default vector constructor for use from Java.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-18 20:46:13 +00:00
William S Fulton
208386909b example correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-21 21:24:46 +00:00
Marcelo Matus
3c53a4771a fixed the *::clone() warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-13 01:38:45 +00:00
Dave Beazley
b459405a64 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-16 03:41:33 +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
f49892c448 using code 315 for bad names only
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-12 07:15:00 +00:00
Marcelo Matus
f790c57f5d Forgot #undefs, add python bad names, change names from
tclkw.swg and phpkw.swg to the right ones tcl8kw.swg and php8kw.swg.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-12 06:15:46 +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
a6f5837d17 Corrected SWIG_JavaThrowException to be static
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 21:54:59 +00:00
William S Fulton
9d0e20d4df Put STRING_OUT typemaps back in.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-06 23:02:03 +00:00
William S Fulton
80cd6fa68a Fix for INOUT and OUTPUT typemaps for when the JNI type is bigger than the c type.
For example unsigned long (32bits) is mapped to jlong (64bits)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:29:54 +00:00
William S Fulton
09ede20459 Completely removed SWIG_NOINCLUDE as the functions that use it don't need to be shared across different modules, besides there is no runtime library for Java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-30 20:54:37 +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
Luigi Ballabio
09ec4edb93 Char and unsigned-char specialization added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-19 08:38:27 +00:00
William S Fulton
329bd4f1c4 Contract assert macro added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-18 22:31:50 +00:00
William S Fulton
9b25a498ab ricochet exception removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-12 21:13:04 +00:00
William S Fulton
3c4c47cbea Big overhaul. Most of these typemaps were broken. Fixed some and removed some.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-08 20:59:07 +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