Commit graph

540 commits

Author SHA1 Message Date
Dave Beazley
267beb814f Major reworking of the Wrapper object. It is now a DOH object.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-11-22 23:14:01 +00:00
Dave Beazley
0bef542956 Minor fix to formatted I/O.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-11-22 22:57:27 +00:00
Masaki Fukushima
b279a1c3f4 fixed bug in ruby -feature option handling
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-11-13 14:53:03 +00:00
Dave Beazley
d97eab2c7f Fixed bool handling bug in Python module reported by Michael Scharf.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-26 03:13:05 +00:00
Dave Beazley
a9a69c6510 A bit more cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-20 03:57:32 +00:00
Dave Beazley
60b65c6466 Continued thrashing of the Language API
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-20 03:49:32 +00:00
Dave Beazley
c34628aca5 Started conversion of Language API
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-18 05:06:39 +00:00
Dave Beazley
9a2dbc637a Fixed bug in hash table copy.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-18 04:52:34 +00:00
Dave Beazley
4e2fb1a6df Fixed weird assertion problem reported by Jan Delgado.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-17 22:04:20 +00:00
Dave Beazley
ff0fae0a14 Minor tweaks to fix output path problems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-14 16:08:27 +00:00
Dave Beazley
6e9629c7a8 Incorporated Macintosh changes submitted by Luigi Ballabio
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-14 15:25:48 +00:00
Dave Beazley
4970a67b06 Fixed minor preprocessor bug introduced by last revision.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-08 04:14:26 +00:00
Dave Beazley
391cabbb00 Fixed weird const and return-by-value problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-06 01:51:29 +00:00
Dave Beazley
8b5f757406 Added dynamic module loading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-04 03:37:52 +00:00
Dave Beazley
1c14592d9c Fixed %apply merging problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-03 20:42:23 +00:00
Dave Beazley
712de8a663 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@910 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-02 03:22:25 +00:00
Dave Beazley
5c39b4bc22 Substantial changes for new module system.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-02 03:04:25 +00:00
Dave Beazley
44f72308da Fixed Python string handling bug
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@907 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-10-02 03:02:51 +00:00
Dave Beazley
319317814a Changes to preprocessor. More parsing improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-29 20:52:45 +00:00
Dave Beazley
fc84a3085c Preprocessor/parser improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-29 16:57:07 +00:00
Dave Beazley
3a1bdd1c53 Added named file functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-29 03:05:32 +00:00
Dave Beazley
6f6b748285 Added named file functions (more details later)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-29 03:05:11 +00:00
Dave Beazley
7d7e92bf43 Changes to code insertion directives.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-29 03:04:22 +00:00
Masaki Fukushima
23520c19c0 missing newline
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-27 13:52:21 +00:00
Masaki Fukushima
0c2fe7dc74 fixed destructor bug reported by Nobuyuki Horie
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-27 13:50:52 +00:00
Dave Beazley
c8674e1f2e Minor stuff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 21:34:11 +00:00
Dave Beazley
fac1fde9ac *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 13:10:54 +00:00
Dave Beazley
ef4acfb954 Minor changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 13:05:36 +00:00
Dave Beazley
3c763c92e0 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@891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 03:00:55 +00:00
Dave Beazley
1d32989a90 Fixed broken inheritance in shadow classes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 20:20:18 +00:00
Matthias Köppe
bf6c97e2d3 [Guile] Changed SCHEME_NAME to FUNC_NAME.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 14:00:56 +00:00
Dave Beazley
2bde2bb269 Incorporated return value optimization suggested by Jon Travis.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 04:29:29 +00:00
Dave Beazley
b3af6259e0 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@862 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-20 02:23:38 +00:00
Dave Beazley
c5bc01c898 Fixed infinite loop on enum.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 16:40:54 +00:00
Matthias Köppe
3ad0a40afb [Guile] New command-line option "-emit-setters".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 14:50:15 +00:00
Dave Beazley
15d36d0140 Slight tweak to enum handling and typedefs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@857 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 03:44:03 +00:00
Dave Beazley
8c1045407b 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@856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-19 03:42:03 +00:00
Masaki Fukushima
feb39b0fd2 Many bug fixes to Ruby module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 13:32:29 +00:00
Matthias Köppe
aef09f73b8 Incorporated patch #101430, fixing bugs in the Guile module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@852 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 09:35:36 +00:00
Dave Beazley
1117997767 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@850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 02:18:45 +00:00
Dave Beazley
754ffa9309 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@849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 01:40:45 +00:00
Dave Beazley
7e5a1db735 Fixed constant creation bug with pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 15:53:40 +00:00
Dave Beazley
3633dd45d6 Fixed pointer to function bug.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@825 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 02:16:17 +00:00
Dave Beazley
739be7912a Added $typemap variable to typemaps. Feature request on mailing list.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@823 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 01:51:33 +00:00
Dave Beazley
c583dcc5f9 Took out cv=cv, items=items hack.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@822 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 00:46:02 +00:00
Dave Beazley
9db86ad87f Took out 'self = self' hack.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-04 00:43:47 +00:00
Dave Beazley
23c5ecabd0 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@816 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 21:24:13 +00:00
Dave Beazley
5821746d4d Changes to support memberin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 19:14:55 +00:00
Dave Beazley
1a1e64d919 Fixed bizarre seg-fault in Perl5 module (I think).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@812 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 19:04:52 +00:00
Dave Beazley
5f1b257382 Fixed seg-fault with arrays.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 18:34:54 +00:00