Art Yerkes
155471ff1a
Removed unneeded define.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6495 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-24 08:48:05 +00:00
William S Fulton
79bec67051
fixes for directors and default arguments in the constructor
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 18:16:21 +00:00
Art Yerkes
01f438f143
Updated documentation.
...
Provide a swig_val function which generates a shareable value from a module
specific one in a painless way.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-17 08:38:54 +00:00
Art Yerkes
a8add424e4
Some delayed maintenance.
...
Fixes for multimodule targets.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-17 07:56:17 +00:00
Marcelo Matus
c1ed709013
fix #if __cplusplus problem
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 16:51:22 +00:00
William S Fulton
96613ca3b5
Commit for Art Yerkes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-02 20:42:10 +00:00
Marcelo Matus
39bdc96e3e
added ocaml keywords
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-12 07:12:42 +00:00
Art Yerkes
fbb9c8481d
shapes example: slight correction to depth map.
...
makedebugtop: include swig.cmo
Lib: factored out more common code, slightly reorganized class type.
added director define and exceptions.
std_string: length from the original ocaml string (no longer depends on
null termination)
ocamldec.swg/ocaml.swg: added caml_string_len
Examples/Makefile.in: quiet about checking out files.
Ocaml.cxx:
Fixed abstract director test case.
Include/exclude director.swg based on directors being enabled.
Final edits for 1.3.20, barring bugs being discovered.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 06:15:07 +00:00
Art Yerkes
08d4b05e03
All test cases compile except director_abstract. I clued from what
...
William Fulton and Dave were talking about regarding the template parameters
and (), and this solved a bunch of wierd little problems I was having.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5455 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 08:50:39 +00:00
Art Yerkes
0de2a4a8f8
Added `` for C enums.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-23 12:25:26 +00:00
Art Yerkes
c12636c0f1
Added string.h include.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-23 11:59:03 +00:00
Art Yerkes
e7460b2ddb
Added sizeof operator for classes (and struct, unions), enabled with
...
"sizeof"="1" on the module node.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-23 11:58:12 +00:00
Art Yerkes
4c58bc268e
Added SWIG_contract_assert.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5368 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-23 08:20:12 +00:00
Art Yerkes
c760caa0f2
Missing assert.h
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-10 23:47:46 +00:00
Art Yerkes
074a0e1e61
Final edits. Corrected single, zero arg cases.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:54:12 +00:00
Art Yerkes
93008f32ba
Slight type adjustment for invoke. This makes swigp4 a bit easier to
...
deal with.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 06:10:50 +00:00
Art Yerkes
f9ea7fd22a
Some nice last-minute goodies for the camlp4 module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 05:56:12 +00:00
Art Yerkes
78fef8466a
preamble for swig modules now that a separate Swig module exists.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-25 03:24:31 +00:00
Art Yerkes
e92f0601a7
Added convert_c_obj function.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5201 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-25 03:22:51 +00:00
Art Yerkes
372c453cac
Cleaner interface.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5200 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-25 03:20:40 +00:00
Art Yerkes
b60aedb6c5
Forgot to add files.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-25 03:18:41 +00:00
Art Yerkes
c1e6a38f30
More orthodox way of building the Swig module. I'm working on making
...
modules easier to link together by isolating the common types and functions
in a module that they all open.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-22 13:46:42 +00:00
Art Yerkes
4951d70c53
Director related changes, other edits.
...
director_wombat testcase, as well as all others except director_abstract
compile.
Four test cases fail.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-22 04:01:27 +00:00
Art Yerkes
4107d3fa08
Working directors again. I need to focus on director_abstract testcase.
...
TODO: my ranting on typing.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-25 06:46:17 +00:00
William S Fulton
bd32960613
Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 (symbol names)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-23 21:16:38 +00:00
William S Fulton
f302d8bbdb
__OCAML__SWIG__MAXVALUES removed. It wasn't being used. Is this okay Art?
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5144 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-23 21:15:39 +00:00
William S Fulton
1a18a41044
Corrected __cpluscplus typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-23 21:14:35 +00:00
William S Fulton
9ecbd6f614
- Compliance with ISO/IEC 14882:1998(E) 17.4.3.1.2 -> eg double underscores removed
...
- Potential member variable and method name clashes remove by preceding with 'swig'
- consistent use of C++ booleans for the swig_disown flag across and within the modules that use this it in director code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 22:55:17 +00:00
William S Fulton
f569dd135d
__DIRECTOR__ renamed Swig::Director
...
SWIG_DIRECTOR_EXCEPTION renamed Swig::DirectorException (similarly for derived classes)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 20:13:42 +00:00
William S Fulton
69d79e0674
typemap name changes:
...
inv => directorin
outv => directorout
argoutv => directorargout
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 23:52:28 +00:00
William S Fulton
6e052aeb1d
First round of director mods
...
- Removed asserts
- The unused __DIRECTOR__ base class default constructor removed. I've used the conventional approach of having no default constructor rather than a private one (declaring it private doesn't serve any useful purpose when this constructor is not wanted).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 15:11:38 +00:00
Luigi Ballabio
10138e60b9
Typemap for size_t applied to std::size_t
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 11:52:31 +00:00
Luigi Ballabio
8c35d20048
std::pair added (but not very much tested)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-10 12:42:42 +00:00
Art Yerkes
310751dc48
Added class template support (removes text of ocaml class definition from swig
...
executable). Now, changes to the implementation of classes can be made without
affecting SWIG itself.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-08 03:49:09 +00:00
Art Yerkes
d2cd68c7cc
Typedef_mptr test (with runme).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 16:19:28 +00:00
Art Yerkes
a1ffa6afda
Added minherit test + runme.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4870 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 15:16:32 +00:00
Art Yerkes
0f99021074
All test cases work.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 04:29:38 +00:00
Art Yerkes
0d37f3609d
Three test cases remaining. Gotta fix em all!
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 04:01:56 +00:00
Art Yerkes
d70fd338be
Four failed test cases remaining.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 02:04:00 +00:00
Art Yerkes
2289a0009a
Fixed two test cases.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-06 01:42:57 +00:00
Art Yerkes
fdf7d97330
Added <assert.h>. I forgot it and GCC-3.3 no longer includes it from
...
any other header I use.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4845 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 02:36:46 +00:00
Art Yerkes
2695aede2d
Removed runtime lib. It's not needed anymore.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4798 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-19 17:59:31 +00:00
Luigi Ballabio
65cffcce15
Miscellaneous patches from users
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4654 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-02 07:41:56 +00:00
Art Yerkes
9ac1568443
All but four test cases work. I'm going to leave these for afterward.
...
I've moved completely away from the "value" type to "caml_value_t". Although
a bit painful, this will make things easier for me. I seem to be seeing
quite a few things that use the word value as a function, type, etc, and
wanted to get something that doesn't collide.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-20 20:51:05 +00:00
Art Yerkes
39f415aa47
Added:
...
Type registration. Correct support for casting. Proper type safety.
Changed:
ocaml.swg: Correct casts, declaration order for C
ocamldec.swg: Removed problematic forward declarations without array index.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 16:24:47 +00:00
Art Yerkes
69cbf4251c
Working example. See Examples/ocaml/shapes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4489 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-10 04:14:04 +00:00
Art Yerkes
b6895badf2
Director: added disown. It now mutates the reference held by the object.
...
mlheading and mliheading: Added C_director_core, which holds the state needed
by the director to disown.
std_string and std_vector: Added specific support for the common case of
a zero-terminated char **.
typemaps.i: Withdraw default argout for SWIGTYPE &
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-08 20:14:31 +00:00
Art Yerkes
c2a610092a
typemaps.i: $descriptor usage correction.
...
ocaml.cxx: director classes (needs more testing, but my Qt example works).
director.swg: Core director class for Ocaml.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-08 17:11:19 +00:00
William S Fulton
8f2dbc8462
long long typemap mods for use with %apply
...
Untested... I don't have ocaml
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-06 23:22:35 +00:00
Art Yerkes
47d747477f
Proper handling of arrays finally in the works, no special typemaps needed.
...
Some corrections for use with -small.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-01 07:53:24 +00:00