Olly Betts
b9dfced8ca
Convert C++ std::string to and from ruby such that strings containing
...
zero bytes are handled correctly, as they are elsewhere.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 02:01:05 +00:00
Olly Betts
1042bce00c
Add -php5 option which will turn on PHP5-specific output (and -php4 will
...
generate PHP4-specific output, with -php just being an alias for one of them.
Currently the only difference is that -php5 SWIGPHP5 is defined instead of
SWIGPHP4.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 00:16:32 +00:00
Olly Betts
869f684bb2
Fix typos in comments.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 20:19:21 +00:00
Olly Betts
b1b6b83371
Fix warning from Intel C++ v9.0 on generated header file:
...
ruby/foo_wrap.h(14): warning #64 : declaration does not declare anything
class Swig::Director;
^
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 20:01:49 +00:00
Olly Betts
74f6f7dc1a
There's no need to call zend_get_parameters_array_ex() when no parameters
...
have been passed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 19:58:34 +00:00
Olly Betts
9139e439c9
When iterating Hash hash with Iterator ki, use ki.item instead of
...
Getattr(hash, ki.key).
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9113 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 19:06:45 +00:00
Olly Betts
fe4b1da5dc
Fix a typo.
...
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:56:46 +00:00
Olly Betts
ee27510234
Store the Node for the current class rather than just its name (which
...
makes little difference now, but paves the way for future changes...)
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:54:40 +00:00
Olly Betts
de75c4c1ed
Use cap_module more instead of reconverting module to uppercase on the fly.
...
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:53:04 +00:00
William S Fulton
c03eaa5082
Fix char* %apply for directors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:50:06 +00:00
Olly Betts
0709d331df
More typos.
...
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:46:45 +00:00
Olly Betts
34c64955d7
Replace stderr messages with Swig_warning where there's an existing
...
WARN_XXX code.
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9107 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:31:49 +00:00
Olly Betts
3dea6969c0
Fix more typos!
...
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9106 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:24:13 +00:00
William S Fulton
f32a05a608
C# director support added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:38:24 +00:00
William S Fulton
b6e0d79f75
C# director runtime tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9104 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:31:35 +00:00
William S Fulton
3143fa70f7
More director tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9103 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:30:38 +00:00
William S Fulton
5ea73416b5
C# director support added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9102 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:27:58 +00:00
William S Fulton
fc84e395b9
C# director support added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:19:18 +00:00
William S Fulton
383264fda8
minor director tweaks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:18:31 +00:00
William S Fulton
8102074909
director support added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:18:07 +00:00
William S Fulton
a256f0b454
cosmetic mods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:17:45 +00:00
William S Fulton
bdc28f90ca
better director support for reference types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:16:20 +00:00
William S Fulton
b98445c19f
Director support added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:15:37 +00:00
Olly Betts
b578714315
Correct typos.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-07 02:32:28 +00:00
Olly Betts
843444d5ba
Don't segfault if PHP Null is passed where a C++ reference is wanted.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9094 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-07 01:10:31 +00:00
William S Fulton
ff7ab7afac
more %apply char* fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 23:26:57 +00:00
William S Fulton
8530c08222
add in intended %apply
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 23:26:36 +00:00
William S Fulton
7dd17279ad
remove debug
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9091 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 23:24:58 +00:00
Olly Betts
086d6b0280
Fix wrappers generated for global 'char' variables to not include a terminating
...
zero in the PHP string.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9090 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 14:57:19 +00:00
Olly Betts
9ac28a7e5c
Remove unnecessary use of %s with a constant string, making code consistent
...
with elsewhere.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 13:36:43 +00:00
Olly Betts
aab77a372a
Wrap multi-statement macro SWIG_PHP_Error(code,msg) in do {...} while (0)
...
to protect it from expanding incorrectly (spotted by Sam Liddicott).
Fortunately all current uses by SWIG itself appear to be safe.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-05 00:34:01 +00:00
Marcelo Matus
b9f0fe76b2
fig bug #1477756 , inline and restrict keywords in C99
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 06:49:52 +00:00
Marcelo Matus
ce3734c42e
fix bug #1480074
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9086 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 06:47:31 +00:00
Marcelo Matus
3eac44710d
fix bug #1480074
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9085 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 05:48:55 +00:00
Marcelo Matus
aef1bfcf1a
fix std::vector<const int*>, reported by tagna@gaia.ecs.csus.edu
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9084 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 05:24:41 +00:00
Marcelo Matus
eb5053c631
more fixes/tests for empty strings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 04:45:41 +00:00
Marcelo Matus
8947229522
more fixes to use %apply and char, unsigned char and others
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-04 02:01:17 +00:00
Marcelo Matus
ae96b6ec7d
cosmetic fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 23:08:51 +00:00
Marcelo Matus
12688fd642
fix changes in 1.3 to better support %apply, it didn't compile with python before
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 23:08:15 +00:00
Marcelo Matus
0a193a12be
fix empty std::string case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:46:50 +00:00
Marcelo Matus
20e425f31b
fix null char* case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:46:25 +00:00
Marcelo Matus
f61ae5e91c
fix null char* case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:34:26 +00:00
Marcelo Matus
3873d7f331
fix empty std::string case, reported by Daniel Moore
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 22:31:23 +00:00
William S Fulton
e05c3d46f3
bump version to 1.3.30
...
fix chicken detection when not installed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9075 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 21:01:16 +00:00
William S Fulton
06b6f2d8c9
move 1.3.29 changes into CHANGES and add a latest changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 21:00:23 +00:00
William S Fulton
f5c0d8dbf8
move 1.3.29 changes from CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 20:59:42 +00:00
William S Fulton
0f96efd9ce
ensure %apply with char*, unsigned char* and signed char* works
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 20:58:19 +00:00
William S Fulton
279914232c
add some director tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9071 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 20:55:55 +00:00
Surendra Singhi
55290cfeb5
a struct/enum/union is replaced with :pointer only if
...
that slot is actually a pointer to that type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 11:02:16 +00:00
Surendra Singhi
ded22097ab
Removed -extern-all option which was not present, and fixed exporting of variable names.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-03 06:47:08 +00:00