Commit graph

2,128 commits

Author SHA1 Message Date
Olly Betts
fb93e2ff91 Allow <, >, <=, >=, !=, ==, and % in constant expressions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 08:30:46 +00:00
Olly Betts
f4bc2780b1 Fix 3 shift/reduce conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 06:23:41 +00:00
William S Fulton
edd5bfeb1a %ignore director fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-22 23:29:34 +00:00
Olly Betts
37c304b631 Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-22 05:07:59 +00:00
William S Fulton
5000f2c0a2 Fix crashes when director methods are ignored
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 20:31:44 +00:00
Olly Betts
353a0a59cc Fix a SEGV when processing an interface file which pulls a template
from one nested namespace into another with "using" (SF bug #1218884).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:52:56 +00:00
Olly Betts
ea75f3a1c3 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@9309 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:20:52 +00:00
Olly Betts
f4a08d4d44 Revert the "automatic -noproxy for C code" change (for now at least) - the
testsuite contains examples with proxy classes for C code, so it's not as
obviously correct a change as I had thought.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9307 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 11:00:51 +00:00
Olly Betts
fa0a9c74c1 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@9306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 08:04:24 +00:00
Olly Betts
4d4792dc5e Previously -noproxy was required when wrapping some C code
to avoid SWIG generating new_XXX methods.  Now proxy classes are
only ever enabled when wrapping C++ code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 05:32:22 +00:00
Olly Betts
330df5567b Use NewStringEmpty() rather than NewString("").
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-20 02:00:42 +00:00
Olly Betts
66c9ca9520 Remove an unused temporary buffer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 18:22:11 +00:00
Olly Betts
3403303a40 Use the DOH String instead of a static char array.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-19 18:13:53 +00:00
Olly Betts
f19b146f00 Remove fixed limit on number of command line options.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9292 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 16:43:15 +00:00
Olly Betts
445f87af3d Remove unused variable "var_name"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-16 11:29:06 +00:00
Olly Betts
b5812f4c30 Fix a few typos in comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9283 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 19:22:15 +00:00
William S Fulton
38a17f30fe - explicitcall feature removed.
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:55:24 +00:00
William S Fulton
7d1d4f5f32 default arg fixes for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:47:05 +00:00
Olly Betts
3a5fb61abe Apply patch from SF bug: [ 1466086 ] PHP namespace clash - ErrorCode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-05 16:18:01 +00:00
Olly Betts
b4f433d564 [php] Move constant initialisation from RINIT to MINIT to fix a
warning when using Apache and mod_php.  We only need to create
PHP constants once when we're first initialised, not for every HTTP
request.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-29 02:29:16 +00:00
Joseph Wang
de8b9eaea4 add methods call and deref for functor and dereferencing operators
add hash to make sure that each method only appears once


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-21 22:48:58 +00:00
John Lenz
ebeee6b93b Add feature:constasvar to guile module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-19 23:32:56 +00:00
Surendra Singhi
f13a5ee98c added preliminary C++ support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-13 13:22:11 +00:00
William S Fulton
e4a580f4f3 Fix for directors and non jvm created threads - the jvm would not close
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-11 22:41:12 +00:00
William S Fulton
685c0ade8f workaround indent beautifier problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-10 21:36:59 +00:00
William S Fulton
a238e8c4e6 Fix protected director methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-10 21:31:41 +00:00
William S Fulton
a14e16f184 more brackets in comment fixes for simple text editor bracket matching algorithms
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-07 21:32:18 +00:00
William S Fulton
b276b1a104 indent beautify parsing problem fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-07 21:19:17 +00:00
Joseph Wang
db17b68938 remove extern symbol that was causing errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-29 06:29:10 +00:00
Mikel Bancroft
f41560641b 07/25/2006: mutandiz
[allegrocl]
	    more additions to std::string, some tweaks and small bug fixes
	    -nocwrap mode.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-25 22:59:16 +00:00
Mikel Bancroft
b506475d12 07/19/2006: mutandiz
[allegrocl]
	    - Add std_string.i support.
	    - Add newobject patch submitted by mkoeppe (thanks!)
	    - Fix type name mismatch issue for nested type definitions.
	      specifically typedefs in templated class defns.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-19 21:53:07 +00:00
William S Fulton
a36cf15b7f Fix library paths
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-17 21:57:10 +00:00
Mark Gossage
5d78ede9d5 addition to support the -external-runtime command line option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-17 09:33:10 +00:00
Olly Betts
b9bf752f46 Fix the easiest warnings in the generated code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-11 04:53:33 +00:00
Hans Oesterholt-Dijkema
60aa816eec * mzscheme code can now dynamically load libraries, that are needed
at runtime. This allows for code to be generated at some site, and
  distributed without the need for SWIG.

  The distribution needs only the header filesfor which the code has been
   generated. Linking is done at runtime, by loading the dynamic libraries.

   Functions are resolved when needed.

   Though somewhat inefficient, it provides for a way to distribute code
   or binaries that are independent of the version of the installed libraries,

   which comes in especially handy for e.g. binding against Gtk.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9211 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-09 17:10:05 +00:00
Surendra Singhi
8c3713ae7b Cleaned some old code, allow overloading.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-09 16:47:04 +00:00
William S Fulton
c377ed7cc6 ensure $symname is suitably expanded
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-05 21:26:10 +00:00
John Lenz
3026463d4c Chicken: Add the %feature("constasvar"), which exports constants as variables instead of functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-05 01:54:32 +00:00
William S Fulton
0fd23e92ba new explicitcall feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9188 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-04 21:00:55 +00:00
William S Fulton
d384eef60d fix compiler warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-29 22:03:56 +00:00
William S Fulton
4d8ffa9f92 -help consistent with other languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-29 21:52:44 +00:00
William S Fulton
f8471d784a Authors go in the readme file and add missing cvs $
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-29 21:25:22 +00:00
Joseph Wang
3a821460fe Committing R-SWIG
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-29 03:01:18 +00:00
Olly Betts
bf06e16ce4 Fix typo in comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-22 18:11:30 +00:00
Olly Betts
084e8488a3 New PHP5 OO wrapper generation code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9169 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-19 03:21:23 +00:00
Olly Betts
b84f93e8a3 Fix a couple of typos, and unescaped % in a call to Swig_warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9168 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-18 17:03:16 +00:00
Olly Betts
d95e0cce8a Don't segfault if PHP Null is passed as this pointer (e.g.
Class_method(Null)) - give a PHP Error instead.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9166 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-17 01:33:17 +00:00
William S Fulton
37a8f2affc Replace JNIEXPORT with SWIGEXPORT, thereby enabling the possibility of using gcc -fvisibility=hidden for potentially smaller faster loading wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9162 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-13 20:00:59 +00:00
William S Fulton
f61c0f6c91 Fix for buffer overflow when using large %feature(docstring) reported by Joseph Winston
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9156 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-12 21:15:58 +00:00
William S Fulton
da0b5cf884 Fix for buffer overflow when using large %feature(docstring) reported by Joseph Winston
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-06-12 21:10:25 +00:00