William S Fulton
dfcb1640bf
Remove old swig-1.1 Swig_typemap_lookup function. Rename Swig_typemap_lookup_new() to Swig_typemap_lookup()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-15 21:18:44 +00:00
William S Fulton
336b50b43d
Add the optimal attribute to the out typemap for more optimal code generation when returning objects by value
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:12:31 +00:00
John Lenz
fb51964d01
Fix a bunch of minor bugs found by Coverity scanner
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 02:55:27 +00:00
Dave Beazley
ff41049b1c
Eliminated use of swigkeys.h/.c files.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-03 20:58:19 +00:00
Dave Beazley
c12550e4ad
API cleanup. Documentation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-03 05:23:20 +00:00
Dave Beazley
264b7dff90
API cleanup. Documentation.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-30 18:27:47 +00:00
Dave Beazley
7a826c8b6d
Changed Header keyword to Id for SVN
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 21:57:44 +00:00
William S Fulton
aa04c4c057
beautify/format source code with gnu indent
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-01 23:54:54 +00:00
Olly Betts
1e19f11fdc
Use Strchr/strchr instead of Strstr/strstr when searching for a single
...
character.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:36:23 +00:00
William S Fulton
7f74b8e7a3
Common template for head of each file detailing licence, distribution and authors information
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 22:51:01 +00:00
Marcelo Matus
6760dc7fb1
fix typemap issue reported by Bob Marinier
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8819 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-15 22:55:56 +00:00
Marcelo Matus
01893da18e
fixes for %templates/%rename/%features + templates
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-05 20:25:43 +00:00
Marcelo Matus
ba1e3f9ee3
add fragment warning and fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 22:22:13 +00:00
Marcelo Matus
e236ab4584
fix several compiler warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-23 22:58:49 +00:00
Marcelo Matus
571b48e269
fix for freearg with value especialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-23 08:15:46 +00:00
Marcelo Matus
cea522b4f8
fix java/csharp overload issue
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-23 01:55:00 +00:00
Marcelo Matus
b63855287f
fix 'freearg' applied to 'in' when numinputs=0
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-21 08:03:31 +00:00
Marcelo Matus
b78b990eab
add debug prints and avoid to attach an empty typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 18:00:11 +00:00
Marcelo Matus
55005e98ee
Move rename/namewarn engine from parser.y to naming.c. The code was getting
...
too large to be in the parser.
Centralize the swig keys to avoid replication and wrong spellings.
Use more HashGetAttr where possible and other speed improvements
to compensate for the extra work introduced by the new rename/namewarn
mechanism.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8170 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-02 04:33:19 +00:00
Marcelo Matus
48d21c2b35
avoid multiple Len() calls
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-01 11:03:35 +00:00
Marcelo Matus
eb913fd8c4
remove debug prints
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 21:09:51 +00:00
Marcelo Matus
88e6edcac3
fix for the typemap match option
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 07:52:55 +00:00
Marcelo Matus
947d02d481
add the 'match' option to force,for example, that the 'freearg' typemap only get applied when it mathes the 'in' typemap type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8091 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:56:25 +00:00
Marcelo Matus
28df9d1049
fixes for 'typedef unsigned long size_t'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-07 07:38:09 +00:00
Marcelo Matus
3955965739
more memory leaks fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-04 01:16:57 +00:00
Marcelo Matus
645f95d633
fix many/many memory leaks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-30 21:32:27 +00:00
Marcelo Matus
f714a2615d
remove many memory leaks and cleanup
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-29 01:47:10 +00:00
Marcelo Matus
628dc6b32b
add NewStringEmpty, use more StringEuqual and less Strcmp
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-28 17:32:56 +00:00
Marcelo Matus
d4e1bae364
use direct methods for string, hash and avoid Strstr/Strnstr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-28 02:44:12 +00:00
Marcelo Matus
72469f2d26
add direct HashCheckAttr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 09:58:26 +00:00
Marcelo Matus
7a77a7feb9
several clean/speed ups
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 02:58:24 +00:00
Marcelo Matus
c7255e230a
add more missing Deletes, and cosmetics
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-14 23:25:04 +00:00
Marcelo Matus
7695ffc594
fix several memory leaks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-07 20:39:46 +00:00
William S Fulton
e27dfb8739
revert to original typemap matching rules for now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:27:09 +00:00
Marcelo Matus
5a0f780ba4
fix typemap search, now you can add a typemap like %typemap(out) int *Foo::foo(int bar);
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 23:03:14 +00:00
Marcelo Matus
db783afdc6
fix typemap search, now you can add a typemap like %typemap(out) int *Foo::foo(int bar);
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 22:54:40 +00:00
Marcelo Matus
0ac8253c3f
fixes for templates and template default args, cosmetics, and other fixes for OSS
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 02:12:05 +00:00
Marcelo Matus
9b963f9763
support of typemaps + template + template def args
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6808 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 01:01:03 +00:00
Marcelo Matus
7c617cd2f1
fixes for mixed_types.i, multidimension arrays, and arrays +references+typedefs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6728 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 20:53:29 +00:00
Marcelo Matus
5b3e4bc601
fix typemap + numinputs +argout
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6669 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 00:22:29 +00:00
Marcelo Matus
27660bd461
missing non-null check
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6656 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-04 18:27:53 +00:00
Marcelo Matus
01dbfb9f5e
%apply also looks for a typedef match if it doesn't find a match at first
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6509 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-26 00:30:05 +00:00
Marcelo Matus
a66c87f147
fix SwigValueWrapper
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-19 23:34:04 +00:00
William S Fulton
f331ce63c0
minor superficial mod
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 20:32:18 +00:00
Marcelo Matus
5f45025e75
added the . See lextype.i example.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 22:14:31 +00:00
William S Fulton
dce86404a1
not a lot has changed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6308 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-04 20:28:39 +00:00
William S Fulton
8f1a476448
const fixes for allegro module usage
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6136 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 21:48:46 +00:00
Marcelo Matus
3c0fe7cae7
fix array + typedef
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-03 08:45:22 +00:00
Marcelo Matus
b6ec9bd449
add missing Swig_typedef_resolve_all
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-18 20:35:15 +00:00
Marcelo Matus
e0adc5af01
Fragments can now be "type especialized", as the typemaps. The
...
syntax is as follows
%fragment("name","header") { /* an old fragment */ }
%fragment("name" {Type}, "header") { /* the fragment is type dependent */}
Now fragments can also be used inside templates:
template <class T>
struct A {
%fragment("incode"{A<T>},"header") {
/* 'incode' especialized fragment */
}
%typemap(in,fragment="incode"{A<T>}) {
/*
here we use the 'type especialized' fragment
"incode"{A<T> }
*/
}
};
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:36:06 +00:00