Commit graph

1,562 commits

Author SHA1 Message Date
Kevin Ruland
3959f9cfda Fixes to support %constant strings defined by other variables or preprocessor
defines such as:
#define STR "a constant string"
%constant char *ConstantValue = STR;


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-07 01:18:29 +00:00
Kevin Ruland
cbab331e47 Fixed error in Printv in functionWrapper.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-05 14:11:35 +00:00
William S Fulton
50543e36d1 Modify following features to work as flags, so that they can be truely set and unset: director, nodirector
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 21:47:33 +00:00
William S Fulton
98fb466409 Modify following features to work as flags, so that they can be truely set and unset: novaluewrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:36:09 +00:00
William S Fulton
1ca5dca583 typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:34:40 +00:00
William S Fulton
dda5e32a18 Modify following features to work as flags, so that they can be truely set and unset: nounref, noref, noattr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:34:10 +00:00
William S Fulton
a333a56da0 Modify following features to work as flags, so that they can be truely set and unset: kwargs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:30:41 +00:00
William S Fulton
7ad869e745 Modify following features to work as flags, so that they can be truely set and unset: noautodoc, python:maybecall, classic, modern, python:nondynamic
Removed the nokwargs feature.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:28:15 +00:00
William S Fulton
ca5cdbe0a3 Modify following features to work as flags, so that they can be truely set and unset: allowexcept, director, nodirector, notabstract
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:24:54 +00:00
William S Fulton
b3584316e7 Modify following features to work as flags, so that they can be truely set and unset: notabstract
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7582 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:20:41 +00:00
William S Fulton
c81ffa2bfa Modify following features to work as flags, so that they can be truely set and unset: kwargs,
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:17:00 +00:00
Charlie Savage
65a0a3b9f2 Fixed handling of constants. Previously if a %constant directive was defined before a #define it would not work correctly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-03 19:47:06 +00:00
William S Fulton
ae1735485f Modify following features to work as flags, so that they can be truely set and unset:
predicate


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:51:11 +00:00
William S Fulton
49369ed1e3 simple comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7575 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:50:39 +00:00
William S Fulton
f0d9cfac38 Modify following features to work as flags, so that they can be truely set and unset:
ruby


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7574 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:46:15 +00:00
William S Fulton
a5ab84ddc7 Modify following features to work as flags, so that they can be truely set and unset:
ignore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:37:41 +00:00
William S Fulton
0706c5d13a Modify following features to work as flags, so that they can be truely set and unset:
modula3:multiretval


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:35:52 +00:00
William S Fulton
4e3bc83ad5 Modify following features to work as flags, so that they can be truely set and unset:
exceptionclass


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:21:59 +00:00
William S Fulton
963da5f126 Modify following features to work as flags, so that they can be truely set and unset:
cs:const


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7570 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:20:54 +00:00
William S Fulton
1fd078512c Modify following features to work as flags, so that they can be truely set and unset:
nodefault


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7568 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:05:50 +00:00
William S Fulton
32839df23b Modify following features to work as flags, so that they can be truely set and unset:
immutable


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:01:13 +00:00
William S Fulton
bc0c43d7c1 Modify following features to work as flags, so that they can be truely set and unset:
new


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 22:16:51 +00:00
William S Fulton
656cb7ab06 Modify following features to work as flags, so that they can be truely set and unset:
new


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 22:10:17 +00:00
William S Fulton
4ec01af9dd Modify following features to work as flags, so that they can be truely set and unset:
java:const
            java:downcast
            compactdefaultargs
            ignore
            valuewrapper


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 21:37:40 +00:00
William S Fulton
0c71a1f3ba New functions GetFlag and SetFlag
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 21:34:01 +00:00
Marcelo Matus
d13e98213b recover the %import(module=name) option,lost in previous fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 15:27:20 +00:00
Marcelo Matus
39731cb611 fix again the %import + module name problem, now it works.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 13:22:48 +00:00
Marcelo Matus
f8b864d23a fix for %import + module name, detected in OSS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 12:00:34 +00:00
amigalemming
3575cd6e06 Modula-3 convention: enumeration item names shall start with a capital
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 14:38:52 +00:00
Marcelo Matus
78735a4ec8 add %exceptionclass and %noexceptionclass directives and manage the feature:exceptionclass in a consistent way
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-29 13:04:42 +00:00
William S Fulton
219517adc0 warning/error fixes for Visual Studio
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-28 20:58:41 +00:00
William S Fulton
da2a914365 Visual Studio warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-27 20:16:09 +00:00
William S Fulton
16d7c98196 Patch #1116431 Fix non member functions inadvertently being called instead of member functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 21:20:58 +00:00
Charlie Savage
883264b6e7 Added support for the new track objects functionality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:05:24 +00:00
William S Fulton
afda89dc49 Mark Gossage patch 1295168
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 19:35:23 +00:00
Kevin Ruland
455035e04e In create_simple_make(), use CXX to link the extension module when
either -c++ or -withcxx is used.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-20 13:55:23 +00:00
Marcelo Matus
285ecebd14 Add -nocppcast. Now the default is to use the cppcast operator. If this seems to break your code... your welcome\!, it means it was broken before and you never notice. Use -nocppcast only for very old C++ compilers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7448 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-16 00:34:04 +00:00
Marcelo Matus
cc61850448 avoid swig_types of length 0, and allow to iterate over the array, for Lua mainly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-12 23:25:03 +00:00
Marcelo Matus
635677c450 add module option to import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 19:31:23 +00:00
Marcelo Matus
1c6a2a2cfb fix incomplete module name replacement when using the -module flag #1282637
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7428 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 18:20:13 +00:00
Marcelo Matus
2557f80bba fix incomplete module name replacement when using the -module flag #1282637
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-11 17:53:20 +00:00
William S Fulton
b939d0ed91 Remove attached typemaps after a variable set wrapper has been generated so that the get method doesn't pick up any incorrect typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:40:11 +00:00
William S Fulton
ee4450aaf2 function comments added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-10 23:37:56 +00:00
William S Fulton
61a8b9caaf minor typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:35:37 +00:00
William S Fulton
bed81d66d3 Better error message displayed when file cannot be opened
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:31:21 +00:00
Marcelo Matus
fb3ad6528b allow to use %define inside a %define macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 07:33:17 +00:00
Marcelo Matus
c1416a59a5 normalize cstring.i to use fragments, and add cwstring.i as a subproduct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-06 06:22:10 +00:00
Marcelo Matus
e2ec34d2b0 fix for #1247477, sorting tables properly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-30 17:36:14 +00:00
Marcelo Matus
d27f751265 fix for #1247477, sorting tables properly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-30 17:23:10 +00:00
Kevin Ruland
307d856876 Clean up use of gen_extra flag. Adjust whitespace in create_extra_files().
Emit the s_header contents after writing final comment.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-29 11:57:35 +00:00