Commit graph

939 commits

Author SHA1 Message Date
Marcelo Matus
8be1b7a07c move attribute.i to the typemap library, now is usable from all the languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 13:20:50 +00:00
Marcelo Matus
e8535abc5b implement DISOWN, please test it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7714 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 10:57:33 +00:00
Marcelo Matus
e7eeff806a eliminate compilation warnings, add docs, and centralize the access to the unified typemap library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7710 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 09:31:15 +00:00
Marcelo Matus
3c65cea431 Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 14:59:05 +00:00
John Lenz
48f1da1bfc + finally fix pointers to member functions in chicken
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7705 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 03:42:32 +00:00
Marcelo Matus
851bf6cb23 activating the keyword warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-21 11:00:19 +00:00
Marcelo Matus
a4c0114c6a replace bad parameter names when neccessary
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7699 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-21 10:43:41 +00:00
Marcelo Matus
77a2b69047 remove extra error handling
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 12:06:27 +00:00
Marcelo Matus
36f34d7a48 add missing macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 10:12:40 +00:00
Marcelo Matus
2811e2a09a include the user's fragment file in the same place
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:58:19 +00:00
Marcelo Matus
ba3efb0917 finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:47:56 +00:00
John Lenz
153ceb2f5b Fix a few minor bugs in the chicken module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 00:37:57 +00:00
Marcelo Matus
7564088646 fix warnings/errors for gcc4.0, icc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 14:26:13 +00:00
Marcelo Matus
66e13bf0f0 put the common error labels in a more public place, visible from java/C# and the rest
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 12:12:55 +00:00
Marcelo Matus
aadff06f45 more typemaps unification and fixes for valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 10:52:50 +00:00
John Lenz
4aa43af86a Fix minor bug: a missing # causing a SWIG error on li_cdata test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 06:17:18 +00:00
Marcelo Matus
bdb92681d5 fixes to compile OSS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 15:20:17 +00:00
Marcelo Matus
e707c456ef fix for template types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 14:16:22 +00:00
Marcelo Matus
c0c3495ee4 cosmetic change, remove repeated docs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:54:54 +00:00
Marcelo Matus
7e5e4fd1f9 massive typemap unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:24:15 +00:00
John Lenz
365095ef2f Chicken:
fix memory corruption/segfault in the argout typemap when it is used with a wrapped pointer return
  unsigned long typemaps could overflow... correctly check for this case


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 04:05:11 +00:00
William S Fulton
e7e06c38f4 %typecheck fixes for size_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-15 22:23:55 +00:00
William S Fulton
dbc07b0656 Workaround for #error in typemaps erroring out when swig is running rather than when the compiler executes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-15 22:23:25 +00:00
William S Fulton
23f2b54fae Fix so that it is possible to overload methods with 2 different enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-15 01:27:07 +00:00
William S Fulton
b3763be563 restore %makedefault and %mutable to their former behaviour, ie they clear the feature rather than unset the feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7656 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-15 00:15:30 +00:00
John Lenz
d1fd336327 Update some chicken typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7643 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-12 01:24:16 +00:00
William S Fulton
ccb0e97955 const enum SWIGTYPE& fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-09 13:51:59 +00:00
William S Fulton
939a514547 minor simplification for const enum SWIGTYPE&
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-09 13:51:15 +00:00
Charlie Savage
2531e8d5f5 Fixed handling of char. This was needed due to changes in handling of %constants in ruby.cxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 19:51:51 +00:00
William S Fulton
0c3fe4acae fix typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7621 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 13:58:50 +00:00
William S Fulton
eca4cc3fae throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 13:58:31 +00:00
Marcelo Matus
67e64edbe5 add the %refobject and %unrefobject directives for the ref/unref features, and add the %nosomething and %clearsomething directives as needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-07 13:20:42 +00:00
Marcelo Matus
54ba818937 fixes for new flag attribute convention
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-07 13:19:06 +00:00
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