Commit graph

475 commits

Author SHA1 Message Date
Dave Beazley
d67ebf543e Fixed naming generation problem for static C++ variables.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 20:11:56 +00:00
Dave Beazley
fb1e76ebcc Fixed problem in void pointer handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 18:22:40 +00:00
Dave Beazley
6612f1e743 Fixed problem in handling of void pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 18:19:50 +00:00
Thien-Thi Nguyen
758b848455 Use EXIT_SUCCESS' and EXIT_FAILURE'.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 18:04:30 +00:00
Thien-Thi Nguyen
42195c4599 (SWIG_exit): Fix bug: Use exit code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 17:47:33 +00:00
Thien-Thi Nguyen
21f1620a01 Comment. No functional change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 17:43:42 +00:00
Dave Beazley
67087e7f8a Fixed void pointer problem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 16:34:22 +00:00
Matthias Köppe
dbd9b844a8 Handle more than 10 args.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 12:12:40 +00:00
Matthias Köppe
865a5d0c26 Use \033 instead of \e since the latter is not standard (Sun cc warns
about an anachronism).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 10:49:31 +00:00
Dave Beazley
299679cea4 Bug fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 04:39:35 +00:00
Dave Beazley
9623f0d127 Variable linking patches.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-31 04:37:53 +00:00
Dave Beazley
c252d8e4eb Bug fixes in variable linking.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 22:37:51 +00:00
Matthias Köppe
196f66f49c Fixed handling of char types.
Added support for optional arguments.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 21:53:49 +00:00
Matthias Köppe
7095803824 Declare initialization function in runtime section.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 20:35:02 +00:00
Dave Beazley
a59ad4b201 Extensive bug fixes to variable linking.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 20:24:44 +00:00
Dave Beazley
b240e6dea8 Added Swig_string_mangle() function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 20:23:58 +00:00
Matthias Köppe
7baa90abee Fixed %init directive warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 20:18:54 +00:00
Matthias Köppe
f25bebd64f Added documentation for variable and constant wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 19:54:45 +00:00
Dave Beazley
b39499ff2e Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 16:29:53 +00:00
Dave Beazley
f43bb6bf71 Modified to include a nice typename as part of the _swig_type_info structure.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@724 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 15:13:28 +00:00
Masaki Fukushima
c5d1168781 '-toplevel' option obsoleted.
C++ comment removed and copyright notice added.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@723 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 14:28:57 +00:00
Matthias Köppe
7b9c22a923 Fixed handling of ignored args.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 11:19:46 +00:00
Matthias Köppe
f20b30ec95 File insertion now data-driven via %insert.
Using %define for multiline defines.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 08:50:06 +00:00
Matthias Köppe
96ab0c8fe2 (SwigType_str, SwigType_lstr, SwigType_rcaststr, SwigType_lcaststr)
Constified prototypes, enabling build with Solaris c++.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 08:38:46 +00:00
Dave Beazley
459759611c Lot's of minor bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-30 03:32:41 +00:00
Dave Beazley
2cc3ddb79d Slight cleanup. Test of new CVS commit message.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@716 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 14:40:10 +00:00
Matthias Köppe
006146b8f0 New Guile command-line argument "-procdoc", specifying procedure
documentation output file.
Fixed "-Linkage" parsing.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 12:05:01 +00:00
Matthias Köppe
0d31aa7163 Added configuration file for Guile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 08:50:34 +00:00
Matthias Köppe
42729844ef (SWIG_config_file) Constified prototype, enabling build with Solaris c++.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@712 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 08:41:27 +00:00
Matthias Köppe
f6d5f68aed Added dependency to allow for parallel builds.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@711 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 08:40:09 +00:00
Dave Beazley
b2e1d63628 Made it so language modules can specify a file to process before anything else (for typemaps). Also fixed line-numbering problem in main.cxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@709 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 01:46:54 +00:00
Dave Beazley
bd4192fc85 Fixed minor bug with line continuations in macros.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@708 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-29 01:14:31 +00:00
Matthias Köppe
a227b419fe Major clean up in the Guile module.
Started new typemap-based procedure documentation system.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 21:53:47 +00:00
Matthias Köppe
14fb2af077 Fixed typemap specification syntax with strings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 21:44:17 +00:00
Dave Beazley
b746069e7d Changed internal handling of string literals. Added new typemap specification syntax with strings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@704 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 20:15:08 +00:00
Dave Beazley
1459d38a19 Modified to follow typedefs when resolving typemaps. Slight modifications
to typemap registration code to make %apply directive work better.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 04:12:35 +00:00
Dave Beazley
b4fe86b884 Slight change to Cmp() function to better handle null-pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@697 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-28 04:10:53 +00:00
Matthias Köppe
64a5de3bf7 Enabled the Guile module again.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 20:28:10 +00:00
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
0203a7da5d Include library (`-l') files at the beginning, rather than at the end.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 20:25:54 +00:00
Matthias Köppe
130df734cb Updated Guile module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 20:24:22 +00:00
Masaki Fukushima
a116b4b292 Ruby module changed to use pointer object instead of mangled string.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-27 15:43:59 +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
Matthias Köppe
da71635b16 Make typedefs for anonymous enums work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-23 20:16:28 +00:00
Dave Beazley
32326f4b5e Fixed namespace bug.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-21 19:37:04 +00:00
Masaki Fukushima
a68bf13ae4 Ruby module replaced DataType with SwigType
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-21 13:46:52 +00:00
Dave Beazley
1f6f0e0074 Fixed typemap argument problem with references.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-20 01:25:39 +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
0ca0e356a3 Fixed problem with reference return types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-19 22:17:46 +00:00