Commit graph

204 commits

Author SHA1 Message Date
Dave Beazley
8a9b2cbdb1 Changed Header to Id
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:14:31 +00:00
William S Fulton
d102ce79b2 fix include within a structure - #1162194
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-06 23:02:45 +00:00
Olly Betts
07c40f5f75 Back out fix for #1474463 since the problems the fix causes are worse than
the problem fixed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 04:57:12 +00:00
Olly Betts
cf52954bbb Use SWIG_GE, SWIG_LE, etc instead of >=, <= since the latter cause
problems when used as template parameters.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9366 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-26 07:52:24 +00:00
William S Fulton
ec17f62e04 fix virtual operators #1056100
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 20:18:30 +00:00
Olly Betts
cc52ebad47 Fix handle of constant expressions containing character literals (e.g. 'x').
Fixes bug #1474463.

Fix type of result of << and >> to match C rules (the type depends only on
the left argument).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 23:39:30 +00:00
Olly Betts
859a8beb79 A few comment tweaks.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:33:32 +00:00
Olly Betts
9a6ebd179d Remove fixed limit on size of class_decl array.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:28:12 +00:00
Olly Betts
c9cfd2f800 Add an explicit "%prec QUESTIONMARK" for the ternary conditional operator
to fix all the shift/reduce conflicts which adding it created.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 23:08:22 +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
Olly Betts
4f803bf0c4 Support ternary conditionals (a ? b : c) in constant expressions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 09:35:31 +00:00
Olly Betts
3dca18e4db Allow <, >, <=, >=, !=, ==, and % in constant expressions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 08:30:46 +00:00
Olly Betts
407b791c23 Fix 3 shift/reduce conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 06:23:41 +00:00
Olly Betts
916a265191 Allow templates to be instantiated using negative numbers and constant
expressions (which fixes SF bug #956282 and several others).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:20:52 +00:00
Olly Betts
fe4a39819c Treat a nested class definition as a forward declaration rather
than ignoring it completely, so that we generate correct code for
passing opaque pointers to the nested class (fixes SF bug #909387).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 08:04:24 +00:00
Olly Betts
b1c76adc32 Remove an unused temporary buffer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 18:22:11 +00:00
Olly Betts
2b307133c7 Fix a few typos in comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9283 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 19:22:15 +00:00
William S Fulton
1750a7f342 default arg fixes for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:47:05 +00:00
William S Fulton
3730b3ee07 more brackets in comment fixes for simple text editor bracket matching algorithms
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-07 21:32:18 +00:00
William S Fulton
7b62956e29 indent beautify parsing problem fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-07 21:19:17 +00:00
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