Commit graph

184 commits

Author SHA1 Message Date
William S Fulton
62c2b709d9 Fix for buffer overflow when using large %feature(docstring) reported by Joseph Winston
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-12 21:10:25 +00:00
Marcelo Matus
864e179723 fix error #1468674 enums + char
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-14 08:52:29 +00:00
Marcelo Matus
75226d2b35 fix type for sizeof
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-28 07:49:03 +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
6fa96fa5ac fix bug #1439898
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 06:35:23 +00:00
Marcelo Matus
360e90aabb fix bug #1439898
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 06:29:34 +00:00
Marcelo Matus
aa6dacace3 fix bug #1439898 ]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 06:08:23 +00:00
Marcelo Matus
05a5ec5e54 reduce the typedef reduce cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 05:48:53 +00:00
Marcelo Matus
0cfd700c10 use reduced type in templates when it is a pointer,array,reference or when using the templatereduce option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-27 16:58:01 +00:00
Marcelo Matus
10b085f5ce avoid possible clashes with templates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-24 18:58:45 +00:00
Marcelo Matus
79927c9b19 fix nested namespace issue reported by Charlie
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 17:55:13 +00:00
Marcelo Matus
51d327f8a0 fix bug #1435090
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-21 18:04:59 +00:00
Marcelo Matus
096ccb2c02 fix for friend operator and Visual studio and bug 1432152
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8857 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-21 15:59:22 +00:00
Marcelo Matus
3d6ad6e78d fix for directors, now the test-suite runs again using -directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-21 11:20:09 +00:00
Marcelo Matus
cb80d44fa6 avoid assert when finding a recursive scope inheritance, emit a warning in the worst case, reported by Nitro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 22:13:37 +00:00
Marcelo Matus
5236d3ddf3 fix [ 1432152 ] %rename friend operators in namespace
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-16 06:59:06 +00:00
William S Fulton
dc6a1a432e gcc warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-10 23:30:06 +00:00
Marcelo Matus
2c1318214c fix infinite loop reported by Olly when using %template() ... inside a class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-09 21:11:03 +00:00
Marcelo Matus
961d9a4e08 more line counting fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-09 20:50:00 +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
a9ec1b6092 better fix for seg. fault in OSS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-03 07:35:02 +00:00
Marcelo Matus
66bee27235 fix seg fault in OSS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-03 00:00:39 +00:00
Marcelo Matus
d8396a84c9 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/SWIG@8638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 20:18:38 +00:00
Marcelo Matus
3fe6f9717e fix ignored '%template(Foo)' after '%ignore Foo'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-30 17:03:08 +00:00
Marcelo Matus
51becdbe09 add forward class to the classhash
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:40:47 +00:00
Marcelo Matus
da207954cb fix seg. fault in Java/Csharp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-21 22:52:46 +00:00
Marcelo Matus
37cbe8f668 simpler check/set of the 'hasconsttype' attribute
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8487 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 07:56:49 +00:00
Marcelo Matus
7ec34f87af fix feature:immutable and the 'const A* var;' case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-19 04:51:04 +00:00
Marcelo Matus
8748e114c1 set the feature:immutable at the parsing stage, such that it can be used with rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-16 00:52:44 +00:00
Marcelo Matus
75867b03a9 add more rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:23:57 +00:00
Marcelo Matus
609d1e6a5c check value len
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 18:09:05 +00:00
Marcelo Matus
392799385f add the ismember and hasvalue attributes and the corresponing %rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 18:04:59 +00:00
Marcelo Matus
2208b55215 add predicates to %rename, new kind attribute to cdecl and the '|' operator in %rename's match
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 09:06:07 +00:00
Marcelo Matus
637b61b321 more centralization of swigkeys
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 00:41:13 +00:00
Marcelo Matus
72425a439c fix the way a member is added to a class, and the class node is constructed, so it can be properly matched with the match=class predicate in the %rename directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-11 20:14:35 +00:00
Marcelo Matus
b044703d0d better support for the %throws directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 17:19:22 +00:00
Marcelo Matus
1426e648eb make both %rename directive formats equivalent
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:43:46 +00:00
Marcelo Matus
aca35dbcde add %typemap(LANG,..) warning 1387184
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-05 19:48:55 +00:00
Marcelo Matus
e598ab002b more swigkey unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-03 09:26:42 +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
66f294941c avoid % and %= operators problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8162 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-01 11:17:26 +00:00
Marcelo Matus
2a3e528169 fixes and docs in %rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-01 11:01:12 +00:00
Marcelo Matus
b034e6c266 add support for options in rename/namewarn and central methods to access the rename/warning hashs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 10:41:54 +00:00
Marcelo Matus
381596b0f3 add the copyctor feature/directive to enable automatic copy constructors. In the way, fix how default ctor/dtor are added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-30 00:04:00 +00:00
Marcelo Matus
21ed9c1b98 fix for unnamed types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8113 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-28 22:37:26 +00:00
Marcelo Matus
c694a41954 fix line number problem with %inline{} and recognize the 'explicit' directive in constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 21:26:10 +00:00
Marcelo Matus
aaedd30000 fix def_arg case broken with last &/* fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-23 18:21:18 +00:00
Marcelo Matus
5c0aa1a1e5 allow the parser.y to be compiled with c++ (throw->throwf)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-21 02:07:36 +00:00
Marcelo Matus
94a82526ec fix %extend(%typemaps + %fragments) before class declaration
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-19 10:46:41 +00:00
Marcelo Matus
c873fc6207 fix last fix, error visible with 1.875b, reported by Susendra Singhi
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-18 19:54:38 +00:00