Commit graph

906 commits

Author SHA1 Message Date
Kevin Ruland
3959f9cfda Fixes to support %constant strings defined by other variables or preprocessor
defines such as:
#define STR "a constant string"
%constant char *ConstantValue = STR;


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-07 01:18:29 +00:00
John Lenz
d635d48eb5 Minor updates to the documentation
Minor bug fixes to chicken


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7595 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-06 01:20:05 +00:00
William S Fulton
90db4bb7b3 remove %pythondynamic - it didn't work properly - use %pythonnondynamic instead
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:14:34 +00:00
Charlie Savage
65a0a3b9f2 Fixed handling of constants. Previously if a %constant directive was defined before a #define it would not work correctly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-03 19:47:06 +00:00
Marcelo Matus
625eaac62c fix VC++ warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:17:05 +00:00
Marcelo Matus
f482f4346a cosmetic change, remove comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:05:33 +00:00
Marcelo Matus
78735a4ec8 add %exceptionclass and %noexceptionclass directives and manage the feature:exceptionclass in a consistent way
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:04:42 +00:00
Marcelo Matus
a99f08ac90 python defines it owns mechanism in python/std_except.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 12:58:25 +00:00
Marcelo Matus
86984eb3d9 fix error in const char* to char* invalid cast
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 09:43:36 +00:00
William S Fulton
c934d9e262 macro logic fix from Robert De Vries
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-28 21:28:17 +00:00
William S Fulton
219517adc0 warning/error fixes for Visual Studio
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-28 20:58:41 +00:00
William S Fulton
da2a914365 Visual Studio warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-27 20:16:09 +00:00
Marcelo Matus
21c689c610 small fix for unsigned int and unsigned long, but still there are problems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7537 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-27 08:15:46 +00:00
Matthias Köppe
b29ce687b3 Fix last change, add throw typemap for enums.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 21:46:23 +00:00
Marcelo Matus
37b7e6133e add missing const ptr case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 14:53:39 +00:00
Charlie Savage
8802ee4035 Added a typemap %typemap(in) (int LENGTH, char *STRING) that is simply the reverse of %typemap(in) (char *STRING, int LENGTH).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-26 06:06:44 +00:00
Matthias Köppe
8e61ee737c Added throw typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-25 21:36:01 +00:00
William S Fulton
1018e6a484 Best attempt at missing directorin typemaps to fix director_wombat.i testcase. Could do with checking.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 22:56:30 +00:00
Charlie Savage
c5fd02ec59 Object tracking support. Defined two new pointer conversion flags used by SWIG_ConvertPtr and SWIG_NewPointerObj. The new flags are:
#define SWIG_POINTER_OWN           0x1
#define SWIG_TRACK_OBJECTS        0x4


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:04:06 +00:00
Charlie Savage
417127cedc Support object tracking. Updated SWIG_NewPointerObj and SWIG_Ruby_ConvertPtr to take into account object tracking.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7495 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:03:05 +00:00
Charlie Savage
88fcc55de1 Support for object tracking. Includes new reference to "rubytracking.swg" and defines a new feature called "trackobjects"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:01:57 +00:00
Charlie Savage
1a6a4deb2f New include file that implements an API for tracking objects.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 17:49:31 +00:00
William S Fulton
bf48768e04 Lua improvements - Mark Gossage patch #1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 20:57:30 +00:00
William S Fulton
afda89dc49 Mark Gossage patch 1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 19:35:23 +00:00
Kevin Ruland
92c5d2a22b Fix error message in %typemap(in) SWIGTYPE*.
Change handling of char[ANY] out.  Now return null padding.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7469 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:50:16 +00:00
Kevin Ruland
b35cc31dd1 Change handling of char[ANY] output typemaps, have it return the null
padding and use t_output_helper.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:44:56 +00:00
Kevin Ruland
91a076f516 Convert PHP nulls into NULL pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 14:44:11 +00:00
Kevin Ruland
cfb985d925 Change typemap to use variable name REF.
Added additional typemaps for other simple types (integers, doubles, strings).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7456 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:25:49 +00:00
Kevin Ruland
9c1a6a85f3 Switch typechecks for simple data types to allow conversion.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7455 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 18:24:05 +00:00
William S Fulton
f54eeee5f3 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/SWIG@7440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 22:07:44 +00:00
Marcelo Matus
485ee19139 add missing directorin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7439 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 14:38:46 +00:00
Marcelo Matus
be51f8389d add missing directorin typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-14 14:36:57 +00:00
William S Fulton
dec7f07eb1 jweak cast fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7437 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-13 21:03:01 +00:00
Marcelo Matus
cc61850448 avoid swig_types of length 0, and allow to iterate over the array, for Lua mainly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-12 23:25:03 +00:00
William S Fulton
8540ea2785 patch 1272995 from Charlie Savage - more disown support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 22:12:56 +00:00
Marcelo Matus
31a8148e51 cosmetic and docs changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:28:36 +00:00
Marcelo Matus
0401d64483 fix clientdata initialization, error detected when converter is null (protected classes)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 20:16:38 +00:00
Kevin Ruland
c5fa9623b8 Added a fourth argument (flags) to all calls to SWIG_ConvertPtr.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 02:06:22 +00:00
Kevin Ruland
62149bec4f Added typemap for SWIGTYPE *DISOWN.
Changed all the calls to SWIG_ConvertPtr to pass a fourth argument of 0.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 02:06:03 +00:00
Kevin Ruland
67ed60fb18 Removed the old cptr mangling method SWIG_ConvertPtr_.
Added support for DISOWN typemaps by adding a flag to SWIG_ConvertPtr.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-07 02:04:55 +00:00
Marcelo Matus
fb3ad6528b allow to use %define inside a %define macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 07:33:17 +00:00
Marcelo Matus
f2355fc45b adding test for binary buffer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:31:25 +00:00
Marcelo Matus
c1416a59a5 normalize cstring.i to use fragments, and add cwstring.i as a subproduct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:22:10 +00:00
William S Fulton
549a51eef2 Fully qualify System.Array usage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7405 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-05 19:32:32 +00:00
Kevin Ruland
cce19f492a Added support for %minit, %mshutdown, %rinit, %rshutdown user supplied code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-29 11:28:56 +00:00
Kevin Ruland
bc72513c72 Made comment more informative.
Added convert_to_{double|long}_ex in the in typemaps.
Corrected the REFERENCE typemaps so they now work.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-25 18:33:26 +00:00
Kevin Ruland
febf005df2 Added support for a %shutdown %{ %}, or %insert("shutdown") %{ %} block to
inject code into the PHP_MSHUTDOWN_FUNCTION.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 17:42:31 +00:00
Kevin Ruland
3ab65a48a0 Fairly major update to php code generation and type library. Brief summary:
- Revised simplified makefile generation using -make switch.
 - Proper support of in, out, argout, ret typemaps.
 - Function overloading with typecheck typemap support.
 - Fragment inclusion in typemaps.
 - Proper handling of object destructors relying on PHP's reference counting.
 - Constants using consttab and varinit typemaps.
 - Global variables using varinit typemaps.
 - Can generate C++ bindings using either objects or no objects (-noproxy).
 - Special phppointer.i typemaps for using php references for pointer passing.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 17:10:11 +00:00
Marcelo Matus
e380e27391 fix #endif position bug #1249878
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 10:55:05 +00:00
William S Fulton
006eda3f84 Fix incorrect usage of $owner in varout typemaps added in last commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:20:39 +00:00