Commit graph

164 commits

Author SHA1 Message Date
Matthias Köppe
73ef2e5574 Fixed declaration of SwigType_typedef_resolve and
SwigType_typedef_resolve_all.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@695 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 20:27:15 +00:00
Matthias Köppe
0ebf3b7caa The pretty printer gets confused by comments including unbalanced
single or double quotes, like in this interface file:

-------------
%typemap(perl5, check) size_t *SIZE_T_VECTORINOUT
{
    /* NEXT LINE AND REST OF WRAPPER WILL BE MISSING. */
    /* Do nothing (don't check for NULL pointer) */
}

void x(size_t *SIZE_T_VECTORINOUT);
-------------

The code tries to find the end of the character/string constant. When
it reaches EOF, nothing will get emitted because no \n is seen.

This is a change to emit the last line of a string. But the pretty
printer probably should be fixed to handle comments.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-23 20:17:10 +00:00
Dave Beazley
abfdf2844d Fixed default value problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-20 01:23:45 +00:00
Dave Beazley
99721047c2 Fixed const problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-20 00:30:49 +00:00
Dave Beazley
c7f9991461 Added missing return type to pointer conversion function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@673 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-18 19:44:10 +00:00
Dave Beazley
cbf9d44696 Fixed weird enum type-handling problem (maybe).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-18 19:36:43 +00:00
Dave Beazley
3f37a8fd6f Lots of cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-17 05:08:26 +00:00
Dave Beazley
cbe8508865 Restored the Python module. Lots of minor fixes and cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-16 21:47:36 +00:00
Dave Beazley
c17ad6d71d Bug fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@661 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-15 21:29:46 +00:00
Dave Beazley
b99e4ee2a8 Eliminated old typemap/except code. Variety of minor bug fixes throughout.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@655 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-15 18:29:23 +00:00
Dave Beazley
fa2942e77c Completely new type implementation. Almost everything broken. Typemaps sort of work. Tcl is the only working language module. More changes to follow over the next few days.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-14 22:09:56 +00:00
Dave Beazley
d209bc3b70 Various work on new type system
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-11 20:48:58 +00:00
Dave Beazley
ef5e8a5b09 SWIG no longer generates temporary files.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-11 16:34:31 +00:00
Dave Beazley
5a477eef50 Converted parameter lists to linked lists
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-10 18:37:30 +00:00
Dave Beazley
8a5b42500d Minor changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-10 00:12:49 +00:00
Dave Beazley
27eee69dbd Various cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-07 21:18:24 +00:00
Dave Beazley
c738c6c639 Finished removal of all public attributes of types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-06 16:36:43 +00:00
Dave Beazley
f244b7cde8 Hid the name and is_reference attributes of types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-06 04:01:14 +00:00
Dave Beazley
4230cc4162 Started the (most painful) process of dropping type attributes behind a function call interface.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-25 04:02:31 +00:00
Dave Beazley
6bc7b11a9b Cleanup. Replaced Parm and ParmList data structures with new implementation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-24 21:48:56 +00:00
Dave Beazley
ccbe7d8213 Added cwrap.c file that contains a variety of wrapper function support code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-24 03:54:02 +00:00
Dave Beazley
cc46a46b6d More work on smoothing out the type system. Needs more work however.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-23 04:43:39 +00:00
Dave Beazley
22662ce490 Changed the handling of types in parameter lists and removed the %val
and %out directives.    This result of this change is that SWIG does
a lot less manipulation of types before they are given to language
modules.  It also means that a lot of stuff is going to be broken
for a short period of time.   I am working on cleaning all of this up
so give me a few days to sort it out.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-20 20:26:17 +00:00
Thien-Thi Nguyen
96e1b52606 (DelParmList): Fix bug: Handle NULL input.
Thanks to Matthias Koeppe.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-17 18:29:10 +00:00
Dave Beazley
f77eea732d Some API changes to DataType
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-14 21:37:34 +00:00
Dave Beazley
18d39ded19 Fixed Wrapper_new_local() function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-13 23:09:23 +00:00
Dave Beazley
c780f4bcf4 Moved parms and types to C. Changed parameter API
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-13 19:38:59 +00:00
Dave Beazley
ea8496bd99 Fixed the pretty-printing code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-11 15:04:08 +00:00
Dave Beazley
6242ed773b Removed the WrapperFunction class entirely. Everything uses the C version.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-10 21:52:58 +00:00
Dave Beazley
1eeae0ffcb Work in progress
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-06 21:23:29 +00:00
Dave Beazley
b3cc0723f5 More improvements to types and related code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-06 04:20:33 +00:00
Dave Beazley
2eacae1400 A lot of work on the type system. Experimental language module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@516 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-05 04:04:17 +00:00
Dave Beazley
398e53b89e Added type compare function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-03 04:36:14 +00:00
Dave Beazley
7c984700de Some refinement of the type system
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-03 04:06:04 +00:00
Dave Beazley
fb58b0e045 Minor compile bugs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-28 03:36:27 +00:00
Dave Beazley
ed8de1679f Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-28 01:15:41 +00:00
Dave Beazley
4068ffc0f9 Lot's of cleanup. Removed some more source files. Migrated more functionality to C.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-18 20:34:21 +00:00
Dave Beazley
4c655e9282 Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-18 16:24:55 +00:00
Dave Beazley
2aea5ad87b Slight tweak to copyright message in wrapper code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@489 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-17 21:14:11 +00:00
Dave Beazley
08f577be7b Cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@485 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-16 18:58:14 +00:00
Dave Beazley
9c8b02da28 Minor fixes and cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-15 03:23:47 +00:00
Dave Beazley
f5a217d613 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@454 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-06-06 18:05:49 +00:00
Dustin Mitchell
15f8a9ea36 Changed to catch up with new DOH version (removed scopes), and fixed a few
compiler warnings about unused variables.  Conflicts with ttn's modifications
were resolved in my favor.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 18:03:28 +00:00
Thien-Thi Nguyen
f69c746ade (Super_scope): Replace call to non-existent(?) `Setscope'
w/ a fprintf to stderr warning of `Super_scope' damage.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 08:11:30 +00:00
Thien-Thi Nguyen
ab1e1252e4 Include ctype.h as dependency.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 06:17:02 +00:00
Thien-Thi Nguyen
7f1079a5e0 (StringType_get_tag): Fix omission bug: Cast `DohMalloc()'
return value to `char *'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-05-11 06:16:37 +00:00
Dave Beazley
494d88aa06 Added banner.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 03:29:27 +00:00
Dave Beazley
461ecac467 Added include directory.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-13 03:24:17 +00:00
Dave Beazley
1b34892d53 Added warning message.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 22:48:42 +00:00
Dave Beazley
fe89f85915 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@405 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 21:23:07 +00:00