Commit graph

519 commits

Author SHA1 Message Date
Dave Beazley
bcc6cbfb16 Added named file functions (more details later)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-29 03:05:11 +00:00
Dave Beazley
4f965d95f5 Changes to code insertion directives.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-29 03:04:22 +00:00
Masaki Fukushima
466fcbfcfd missing newline
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-27 13:52:21 +00:00
Masaki Fukushima
9aa55f5970 fixed destructor bug reported by Nobuyuki Horie
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-27 13:50:52 +00:00
Dave Beazley
ee4856e064 Minor stuff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 21:34:11 +00:00
Dave Beazley
703a022d0a *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 13:10:54 +00:00
Dave Beazley
0e709ada2e Minor changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 13:05:36 +00:00
Dave Beazley
ecd8d72ef5 Modified the preprocessor to allow identifiers to start with "%". This is highly experimental
(I may take it out), but I have this idea that you might be able to create new SWIG directives
as C preprocessor macros.

For example:

#define %check(type) %typemap(check) type

%check(int positive) {
   if ($source < 0) error("hey, what's with this?");
}

(In reality, I think that this feature may allow me to reduce the parser to a smaller
set of more primitive directives that will simplify some of the code maintenance).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 03:00:55 +00:00
Dave Beazley
ff2943a35d Fixed broken inheritance in shadow classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 20:20:18 +00:00
Matthias Köppe
66b7d171d7 [Guile] Changed SCHEME_NAME to FUNC_NAME.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 14:00:56 +00:00
Dave Beazley
b35f368548 Incorporated return value optimization suggested by Jon Travis.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 04:29:29 +00:00
Dave Beazley
71dad53e9f Modified -l option so that library files are included at the end again. The earlier
change broke a lot of existing code I wasn't anticipating.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@862 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 02:23:38 +00:00
Dave Beazley
9b3c9e12d2 Fixed infinite loop on enum.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 16:40:54 +00:00
Matthias Köppe
2963e7676c [Guile] New command-line option "-emit-setters".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 14:50:15 +00:00
Dave Beazley
8b3c2f1c0a Slight tweak to enum handling and typedefs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@857 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 03:44:03 +00:00
Dave Beazley
455500b25d Changed enum handling to try and fix C++ enum handling bugs.
Any enum type is now explicitly reduced to an 'int' by SwigType_lstr() and
SwigType_ltype().

Also made a few modifications to the handling of 'const' keywords which
reduces the amount of casting.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 03:42:03 +00:00
Masaki Fukushima
48bc25b91e Many bug fixes to Ruby module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 13:32:29 +00:00
Matthias Köppe
e867ed25a8 Incorporated patch #101430, fixing bugs in the Guile module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@852 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 09:35:36 +00:00
Dave Beazley
465ee17792 Fixed large file assertion problem. Not really a problem with large files, but rather an
extraneous Delete in the code to emit type-tables that didn't cause a problem except
in interfaces that had lots of types (and classes).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 02:18:45 +00:00
Dave Beazley
895a86895d Fixed scanning problem with '%' tokens (they were mysteriously disappearing in added methods and elsewhere).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 01:40:45 +00:00
Dave Beazley
dcefa8ad30 Fixed constant creation bug with pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 15:53:40 +00:00
Dave Beazley
59ec687725 Fixed pointer to function bug.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 02:16:17 +00:00
Dave Beazley
56c40c8a45 Added $typemap variable to typemaps. Feature request on mailing list.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@823 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 01:51:33 +00:00
Dave Beazley
ed10189a0b Took out cv=cv, items=items hack.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 00:46:02 +00:00
Dave Beazley
88face31f8 Took out 'self = self' hack.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 00:43:47 +00:00
Dave Beazley
d2c2d5ac09 Didn't fix the virtual member function problem (at least I don't think
so), but I did discover a simple code-generation optimization that
greatly reduces the amount of wrapper code generated for interfaces with
lots of virtual functions.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@816 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 21:24:13 +00:00
Dave Beazley
77a76ff4ce Changes to support memberin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 19:14:55 +00:00
Dave Beazley
c05519fd55 Fixed bizarre seg-fault in Perl5 module (I think).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@812 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 19:04:52 +00:00
Dave Beazley
df6cbfac91 Fixed seg-fault with arrays.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 18:34:54 +00:00
Masaki Fukushima
4db681110d a few bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 17:11:15 +00:00
Dave Beazley
74f12225d3 Fixed bug in default argument handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-02 16:45:30 +00:00
Dave Beazley
34c2500de2 New %types directive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@800 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-02 16:26:10 +00:00
Dave Beazley
16ff68c288 Changed _swig_type_info to swig_type_info
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@799 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-02 16:25:50 +00:00
Dave Beazley
e60ab82481 Removed unused tokens and other cleanup of parser/scanner
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@795 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 21:02:37 +00:00
Dave Beazley
3beee3ed17 Restored mzscheme
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 20:55:59 +00:00
Dave Beazley
f80859b855 Minor cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 16:01:42 +00:00
Dave Beazley
86789b2084 Added new Swig_init function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@784 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 16:01:30 +00:00
Dave Beazley
8b909b0d8a Fixed bug with creating pointer constants.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@782 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 16:00:40 +00:00
Matthias Köppe
5083014aa8 Fixed bugs reported by Purify.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 15:50:55 +00:00
Dave Beazley
7ccdd2fc6d Fixed const problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@780 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-01 01:00:38 +00:00
Dave Beazley
2b0da81001 Modified C++ handling code to inherit destructors so that a derived class
without a destructor can pick up a destructor (if any) from a base class.
This is highly experimental---I may take it out if it breaks too much stuff.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@777 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 21:41:00 +00:00
Matthias Köppe
6df63cbf3c Handle `ltdlmod' linkage.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@776 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 21:39:21 +00:00
Dave Beazley
cb4255a086 Fixed problem with abstract base classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 20:41:14 +00:00
Dave Beazley
ee67a3e146 Fixed C++ code generation so that constructors for abstract classes aren't
generated (note: this is a sick hack).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 20:41:02 +00:00
Dave Beazley
1bdc09434b Fixed naming generation problem for static C++ variables.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 20:11:56 +00:00
Dave Beazley
f748c7a6e9 Fixed problem in void pointer handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 18:22:40 +00:00
Dave Beazley
90a7839b0c Fixed problem in handling of void pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 18:19:50 +00:00
Thien-Thi Nguyen
877aa52016 Use EXIT_SUCCESS' and EXIT_FAILURE'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 18:04:30 +00:00
Thien-Thi Nguyen
6958bb4c08 (SWIG_exit): Fix bug: Use exit code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 17:47:33 +00:00
Thien-Thi Nguyen
09278801cb Comment. No functional change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 17:43:42 +00:00