Commit graph

5,472 commits

Author SHA1 Message Date
Marcelo Matus
dcf0727ee1 add <stdlib.h> for malloc and lua
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8657 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-31 06:16:41 +00:00
Matthias Köppe
6c4bc0378d (free_swig_member_function): Add missing return.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8656 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-31 02:45:48 +00:00
Marcelo Matus
1fc78ba477 remove old -Dexplicit=
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8655 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-31 00:57:00 +00:00
Marcelo Matus
36ab776a61 fix -external-runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8654 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-31 00:02:58 +00:00
Marcelo Matus
2a89c24848 fix unapplied 'novaluewrapper' feature and add directive forms
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8653 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 23:32:51 +00:00
Marcelo Matus
9d88b67802 fix unapplied 'novaluewrapper' feature and add directive forms
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8652 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 23:18:08 +00:00
William S Fulton
ba3a92deca *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:58:01 +00:00
Marcelo Matus
7b2dbbc3ce fix missing static member access methods, discovered with li_std_string test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:52:39 +00:00
William S Fulton
308a559d6b *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8649 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:45:30 +00:00
William S Fulton
8b60b7fd87 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8648 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:33:47 +00:00
Marcelo Matus
8e91804233 add fragment warning and fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:33:06 +00:00
William S Fulton
2584db6d72 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8646 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:24:46 +00:00
Marcelo Matus
5e77ca27e0 add fragment warning and fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:22:13 +00:00
William S Fulton
8f09162243 %naturalvar documentation added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:17:42 +00:00
William S Fulton
cef8b21922 Add in missing xml Makefile
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8643 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:16:51 +00:00
William S Fulton
a0eeaed4e1 fix typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:16:14 +00:00
William S Fulton
c6ede27baa *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:15:58 +00:00
William S Fulton
9e1e83635f Add missing fragment. Surely this kind of bug should be found when SWIG compiles? That is surely SWIG should generate error out if it can't find a fragment it has been asked to use?
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 21:19:41 +00:00
William S Fulton
23b90b3d1c fix solaris workshop compiler noise
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 21:14:21 +00:00
Marcelo Matus
2aa0e23287 don't add forward class to the classes hash. We needed this before for naturalvar, but is not needed anymore. Now produce seg faults when a forward class statement is found after a class declaration. Reported by Evan Weis
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 20:18:38 +00:00
Marcelo Matus
829cd3a908 reenable missing INPUT/OUTPUT, and add tests for std::string
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 19:55:43 +00:00
Marcelo Matus
81bf4de348 add %naturalvar to std::string and remove local li_std_string.i, so Mattias can finish the examples here :)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 19:52:57 +00:00
Marcelo Matus
dc9641de4b add %naturalvar to std::string and remove local li_std_string.i, so Mattias can finish the examples here :)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 19:25:51 +00:00
Matthias Köppe
3f1b1b8e59 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 19:14:40 +00:00
Matthias Köppe
b175a77e6a Fix test case.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 19:03:09 +00:00
Matthias Köppe
fcd200a7b4 Add some more std::string typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 19:01:35 +00:00
Matthias Köppe
c7d465ecaa New string encoding method, "schemify".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 18:07:00 +00:00
Matthias Köppe
d66d113312 Add k_copy.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8630 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 18:04:08 +00:00
Matthias Köppe
db5302d96d (Swig_name_copyconstructor): Use "copy" naming scheme, not "construct".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 18:03:45 +00:00
Marcelo Matus
97e99219a7 fix ignored '%template(Foo)' after '%ignore Foo'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 17:03:08 +00:00
Marcelo Matus
85dcc27edf add/fix std_string test with %naturalvar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 06:14:35 +00:00
William S Fulton
fd212896fd std::wstring global and member variables are wrapped as strings by default
No need to use the %apply const std::wstring& { std::wstring* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 22:32:07 +00:00
William S Fulton
fbcff730c2 Fix dodgy comparison which would never fail
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 22:06:12 +00:00
William S Fulton
b98bbcd849 Add in runtime tests for std::string variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8624 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 22:00:45 +00:00
William S Fulton
581b79652d std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8623 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 21:21:47 +00:00
Matthias Köppe
0870d0a710 Define and use %argument_fail, %as_voidptr.
Use SWIG_IsOK, SWIG_CheckState.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8622 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 20:36:57 +00:00
Matthias Köppe
66bc80a516 (SWIG_Guile_ConvertPtr): Use constants SWIG_OK, SWIG_ERROR.
(SWIG_Guile_MustGetPtr): Use SWIG_IsOK macro.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8621 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 20:35:52 +00:00
Marcelo Matus
90e74fc874 avoid to call MAKE when building a .ccptes or .ctest case. This allows to use make -j2, and also it should reduce the running time in windows where forking another MAKE process is expensive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 18:58:31 +00:00
Marcelo Matus
bba60cd7b1 silence warning for chicken
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8619 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 18:54:24 +00:00
William S Fulton
4fbc294bb7 std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore

Please test if possible, I can't run these languages.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 18:50:53 +00:00
Matthias Köppe
4a026652c5 Add support for member function pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8617 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 18:47:18 +00:00
Marcelo Matus
64398e8914 add const global string case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8616 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 17:33:15 +00:00
Marcelo Matus
10b2a769f5 '%naturalvar <Class>;' doesn't need to be applied before the class declaration anymore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8615 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 17:18:45 +00:00
Marcelo Matus
9f0183d1c0 add local li_std_string test with %naturalvar applied to variables while the way to apply %naturalvar to std::string is sorted out
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 17:15:19 +00:00
William S Fulton
5f97905ab7 std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:53:41 +00:00
William S Fulton
94d067d57d Add in runtime tests for std::string variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8612 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:52:48 +00:00
William S Fulton
a1c01cfedd Add in runtime std::variable tests based on other language runtime tests. Might make some of the original type checking tests redundant.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8611 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:20:26 +00:00
William S Fulton
ec5c6280bb test std::string global variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:05:47 +00:00
William S Fulton
1c5d5aeaa5 Modify for const std::string variables being wrapped like non-const std::string variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 14:50:05 +00:00
William S Fulton
a372ee9242 add in const std::string variable tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 14:47:38 +00:00