Marcelo Matus
798a3c370c
Add -nocppcast. Now the default is to use the cppcast operator. If this seems to break your code... your welcome\!, it means it was broken before and you never notice. Use -nocppcast only for very old C++ compilers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7448 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 00:34:04 +00:00
Marcelo Matus
d61a776308
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@7435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-12 23:25:03 +00:00
Marcelo Matus
6b5a64bd92
add module option to import
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 19:31:23 +00:00
Marcelo Matus
5bd59b2a47
fix incomplete module name replacement when using the -module flag #1282637
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7428 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 18:20:13 +00:00
Marcelo Matus
4c86e9f590
fix incomplete module name replacement when using the -module flag #1282637
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 17:53:20 +00:00
William S Fulton
dbc1c53d7b
Remove attached typemaps after a variable set wrapper has been generated so that the get method doesn't pick up any incorrect typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:40:11 +00:00
William S Fulton
f94e5e4870
function comments added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:37:56 +00:00
William S Fulton
1e86fe52c3
minor typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:35:37 +00:00
William S Fulton
6247abbd01
Better error message displayed when file cannot be opened
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:31:21 +00:00
Marcelo Matus
c74fd4442a
allow to use %define inside a %define macro
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 07:33:17 +00:00
Marcelo Matus
2e2617edce
normalize cstring.i to use fragments, and add cwstring.i as a subproduct
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:22:10 +00:00
Marcelo Matus
7de3e1e5e7
fix for #1247477 , sorting tables properly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-30 17:36:14 +00:00
Marcelo Matus
a8054943ef
fix for #1247477 , sorting tables properly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-30 17:23:10 +00:00
Kevin Ruland
d18e6de5e5
Clean up use of gen_extra flag. Adjust whitespace in create_extra_files().
...
Emit the s_header contents after writing final comment.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-29 11:57:35 +00:00
Kevin Ruland
5d8b1e2a30
Added support for %minit, %mshutdown, %rinit, %rshutdown user supplied code.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-29 11:28:56 +00:00
Kevin Ruland
eb8b6d32f7
Clean up use of dlname variable.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-29 11:11:48 +00:00
Marcelo Matus
7c016db190
fix for bug #1245591 , related to __class__ attribute in Ptr classes + -nomodern (or exceptions)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-28 07:13:02 +00:00
Marcelo Matus
d6363acffe
avoid importing several times the same module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7396 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-26 08:32:16 +00:00
Marcelo Matus
f906b4d5e7
fix sorting problem with template types, strcmp can't be used directly with the DOH_String type. Use Cmp
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-26 07:06:10 +00:00
Kevin Ruland
ba9c6ec810
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@7393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 17:42:31 +00:00
Kevin Ruland
6c87325b91
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@7392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-24 17:10:11 +00:00
Marcelo Matus
c068056a10
fix import order
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 10:41:29 +00:00
Marcelo Matus
8b64b4702e
fix fabrice sort problem, maybe
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:43:55 +00:00
William S Fulton
76d35774ff
64 bit platform fixes for the varargs handling in SWIG_GetArgs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7383 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:18:43 +00:00
William S Fulton
e832d5dd6e
Fix swig -help since support for -lua was added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:17:28 +00:00
William S Fulton
43015f7aca
Implement support for SWIGTYPE* DISOWN typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:16:34 +00:00
Surendra Singhi
82e3ec30dc
Fixed the def-c-type declaration.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 05:17:29 +00:00
William S Fulton
80e10942eb
%newobject support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-18 20:36:38 +00:00
William S Fulton
de8a9ff695
Lua support from Mark Gossage (missing file that was not checked in with the rest of the patch)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7375 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-17 20:58:15 +00:00
William S Fulton
ca8bf2dafc
minor type correction to remove unsigned/signed mismatch warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-17 20:35:53 +00:00
William S Fulton
0fb1f9eaa2
Bug #1251832 - C++ template may generate invalid XML file (+correction)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 21:42:13 +00:00
William S Fulton
15150feff5
Support for Lua added - patch from Mark Gossage
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-15 20:38:34 +00:00
William S Fulton
139bd9b8c5
Fix incorrect xml escaping in base class name when base class is a template
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7362 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-14 21:20:40 +00:00
Surendra Singhi
ce038a8550
Added support for enums and other minor fixes and improvements.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-14 05:30:26 +00:00
Matthias Köppe
9fa0cf3e6c
New language module: Common Lisp with UFFI.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-09 15:09:15 +00:00
Matthias Köppe
e3f59f4570
Connect the usual targets to an output sink.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-09 14:57:48 +00:00
Surendra Singhi
fa996e1f9e
Added support for pointer to functions. Added support for typedefs and a option which will allow to generate "def-c-type" for typedefs.
...
Joerg Hoehle suggested that while declaring arrays "c-ptr" should be used.
Changed the name of generate-all option to extern-all.
Now declaring pointers to integers, short, float and double as c-ptr instead of c-pointer.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-23 05:34:11 +00:00
William S Fulton
8c9a2885e8
SWIG_exception changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:24:18 +00:00
William S Fulton
2390eebd4f
Support for the null attribute in the out typemap to support return by value struct types
...
SWIG_exception changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-22 21:23:17 +00:00
Surendra Singhi
f027a4169a
Added support for recursive types. Now handles extern keyword, and there is a new option which allows to generate wrapper for either all functions and variables or only externed ones. Now, automatically adds function names to "defpackage" so that they are exported.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-18 06:17:49 +00:00
Matthias Köppe
81486b9fe0
Use *swig-identifier-converter*.
...
Derive proper foreign types for all pointer types rather than using (*
:void).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-16 12:18:37 +00:00
Surendra Singhi
b82b18ac9b
Defpackage now exports all the functions. This is done by storing the various functions names in a list and then at the end writing it to the top of output file by pushing the rest of the contents down.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-15 04:32:49 +00:00
Surendra Singhi
9ed6525482
Fixed comments and "ffi" package name.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-14 04:23:58 +00:00
Matthias Köppe
606a9ba1e3
Make several helper functions "static".
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-13 11:35:55 +00:00
Surendra Singhi
2a459a04bd
Added clisp module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-13 08:05:49 +00:00
Surendra Singhi
c0b24f8b34
Added clisp.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-13 08:04:19 +00:00
Surendra Singhi
b2427b7d4a
Initial revision for clisp support.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-13 08:03:21 +00:00
Marcelo Matus
c66b71417c
add Scott's patches for directors: void return, directormap register, better error messages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-07-06 21:02:22 +00:00
William S Fulton
11dc59b22e
The default is now to not generate an additional method declaration when a method is declared with an extern. Use -addextern option to recreate original behaviour (new commandline option), with -noextern now redundant.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-27 20:39:20 +00:00
William S Fulton
0edd1dee4d
Make variable accessor functions the same across all modules for %extend with member variables to work consistently across all language modules and as documented. Use -oldvarnames commandline option to get the original variable names.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-23 20:30:14 +00:00