From 785d93d9fb948bddf51ac22a8b2bd5cb82cb7ba9 Mon Sep 17 00:00:00 2001
From: William S Fulton
@@ -360,7 +360,7 @@ need to link in the Allegro shared library. The library you create from
the C++ wrapper will be what you then load into Allegro CL.
@@ -396,7 +396,7 @@ See Section 17.5 Identifier converter
functions for more details.
@@ -436,7 +436,7 @@ Note that the block %{ ... %} is effectively a shortcut for
@@ -446,7 +446,7 @@ New users to SWIG are encouraged to read
interested in generating an interface to C++.
@@ -499,7 +499,7 @@ interested in generating an interface to C++.
@@ -512,7 +512,7 @@ interested in generating an interface to C++.
typemap.
@@ -593,7 +593,7 @@ char *xxx();
ff:def-foreign-call's.
@@ -606,7 +606,7 @@ char *xxx();
this function can be manipulated via the lout typemap.
@@ -622,7 +622,7 @@ char *xxx();
can be manipulated via the lout typemap.
@@ -635,7 +635,7 @@ char *xxx();
into the foreign module.
@@ -657,7 +657,7 @@ char *xxx();
foreign function interface.
@@ -665,7 +665,7 @@ char *xxx();
translated into lisp.
@@ -742,7 +742,7 @@ namespace car {
function such as (car '(1 2 3).
17 SWIG and Allegro Common Lisp
+18 SWIG and Allegro Common Lisp
@@ -135,10 +135,10 @@ be unhappy to see some enterprising folk use this work to add
to it.
-
17.1 Basics
+18.1 Basics
-17.1.1 Running SWIG
+18.1.1 Running SWIG
17.1.2 Command Line Options
+18.1.2 Command Line Options
17.1.3 Inserting user code into generated files
+18.1.3 Inserting user code into generated files
17.2 Wrapping Overview
+18.2 Wrapping Overview
17.2.1 Function Wrapping
+18.2.1 Function Wrapping
17.2.2 Foreign Wrappers
+18.2.2 Foreign Wrappers
17.2.3 FFI Wrappers
+18.2.3 FFI Wrappers
17.2.4 Non-overloaded Defuns
+18.2.4 Non-overloaded Defuns
17.2.5 Overloaded Defuns
+18.2.5 Overloaded Defuns
17.2.6 What about constant and variable access?
+18.2.6 What about constant and variable access?
17.2.7 Object Wrapping
+18.2.7 Object Wrapping
17.3 Wrapping Details
+18.3 Wrapping Details
17.3.1 Namespaces
+18.3.1 Namespaces
17.3.2 Constants
+18.3.2 Constants
@@ -803,7 +803,7 @@ namespace car {
not use the -nocwrap command-line option.
@@ -881,7 +881,7 @@ globalvar> (globalvar.nnn::glob_float) -
@@ -957,7 +957,7 @@ EXPORT const int ACL_ENUM___FOO3__SWIG_0 = FOO3; -
@@ -1105,10 +1105,10 @@ namespace BAR { -
@@ -1123,7 +1123,7 @@ namespace BAR { integer values.
-@@ -1136,7 +1136,7 @@ namespace BAR { parameter.
-@@ -1152,7 +1152,7 @@ namespace BAR { the interface does nothing for friend directives,
-@@ -1170,11 +1170,11 @@ namespace BAR { use the more robust wrapper functions.
-@@ -1187,7 +1187,7 @@ namespace BAR { directive.
-@@ -1197,7 +1197,7 @@ namespace BAR { class schema.
-@@ -1277,7 +1277,7 @@ synonym> -
@@ -1298,7 +1298,7 @@ synonym> -
@@ -1461,7 +1461,7 @@ overload> -
@@ -1607,7 +1607,7 @@ opoverload> -
@@ -1628,7 +1628,7 @@ opoverload> with other ways such functions can be wrapped.
-@@ -1640,7 +1640,7 @@ opoverload> implemented.
-@@ -1652,7 +1652,7 @@ opoverload> newly defined types.
-@@ -1663,7 +1663,7 @@ opoverload> on Typemaps for more information.
-@@ -1728,7 +1728,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) -
@@ -1752,7 +1752,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) -
@@ -1784,7 +1784,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) these common typemaps here.
-@@ -1803,7 +1803,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) 16.3.1 Namespaces for details.
-@@ -1846,7 +1846,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) -
@@ -1889,7 +1889,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) -
@@ -1959,7 +1959,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) -
@@ -1983,7 +1983,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) -
@@ -2017,10 +2017,10 @@ return-val wrapper-name(parm0, parm1, ..., parmN) -
@@ -2041,11 +2041,11 @@ return-val wrapper-name(parm0, parm1, ..., parmN) of arguments.
-Two basic identifier routines have been defined. -
@@ -2054,7 +2054,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) strings, from which a symbol will be created.
-@@ -2063,7 +2063,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) same symbol transformations.
-@@ -2072,7 +2072,7 @@ return-val wrapper-name(parm0, parm1, ..., parmN) default naming conventions.
-@@ -2128,7 +2128,7 @@ indicating the number of arguments passed to the routine indicated by this identifier.
-diff --git a/Doc/Manual/Android.html b/Doc/Manual/Android.html index e02271169..e62139797 100644 --- a/Doc/Manual/Android.html +++ b/Doc/Manual/Android.html @@ -5,7 +5,7 @@
-@@ -40,10 +40,10 @@ Everything in the Java chapter applies to generating cod This chapter contains a few Android specific notes and examples.
-@@ -76,7 +76,7 @@ $ android list targets The following examples are shipped with SWIG under the Examples/android directory and include a Makefile to build and install each example.
-@@ -398,7 +398,7 @@ Run the app again and this time you will see the output pictured below, showing

@@ -746,7 +746,7 @@ Run the app to see the result of calling the C++ code from Java:

@@ -758,7 +758,7 @@ Note that the 'extend' example is demonstrates the directors feature. Normally C++ exception handling and the STL is not available by default in the version of g++ shipped with Android, but this example turns these features on as described in the next section.
-diff --git a/Doc/Manual/Arguments.html b/Doc/Manual/Arguments.html index 1ae9a6d2f..3b7713686 100644 --- a/Doc/Manual/Arguments.html +++ b/Doc/Manual/Arguments.html @@ -6,7 +6,7 @@
-@@ -50,7 +50,7 @@ This section describes the typemaps.i library file--commonly used to change certain properties of argument conversion.
-@@ -194,7 +194,7 @@ else. To clear a typemap, the %clear directive should be used. For e
@@ -247,7 +247,7 @@ When the function is used in the scripting language interpreter, it will work li result = add(3,4)
@@ -314,7 +314,7 @@ iresult, dresult = foo(3.5, 2) -
@@ -379,7 +379,7 @@ rather than directly overwriting the value of the original input object. SWIG. Backwards compatibility is preserved, but deprecated.
-@@ -413,7 +413,7 @@ Typemap declarations are lexically scoped so a typemap takes effect from the poi file or a matching %clear declaration.
-@@ -423,7 +423,7 @@ insure that a value is positive, or that a pointer is non-NULL. This can be accomplished including the constraints.i library file.
-@@ -449,7 +449,7 @@ the arguments violate the constraint condition, a scripting language exception will be raised. As a result, it is possible to catch bad values, prevent mysterious program crashes and so on.
-@@ -465,7 +465,7 @@ NONNULL Non-NULL pointer (pointers only). -
diff --git a/Doc/Manual/CPlusPlus11.html b/Doc/Manual/CPlusPlus11.html index ed2edd630..ce9174254 100644 --- a/Doc/Manual/CPlusPlus11.html +++ b/Doc/Manual/CPlusPlus11.html @@ -23,6 +23,7 @@
class MyClass {
...
- std::vector numbers;
+ std::vector<int> numbers;
public:
MyClass(MyClass &&other) : numbers(std::move(other.numbers)) {}
MyClass & operator=(MyClass &&other) {
@@ -459,7 +463,8 @@ public:
};
The special identifiers final and override can be used on methods and destructors, @@ -482,12 +487,12 @@ struct DerivedStruct : BaseStruct { -
The nullptr constant is mostly unimportant in wrappers. In the few places it has an effect, it is treated like NULL.
-SWIG parses the new enum class syntax and forward declarator for the enums:
@@ -543,7 +548,7 @@ class AllColors { Expect to see this improved in a future version of SWIG. -SWIG correctly parses the symbols >> as closing the @@ -554,7 +559,7 @@ shift operator >> otherwise.
std::vector<std::vector<int>> myIntTable; -SWIG correctly parses the keyword explicit for operators in addition to constructors now. @@ -597,7 +602,7 @@ Conversion operators either with or without explicit need renaming to a them available as a normal proxy method.
-@@ -650,7 +655,7 @@ example.i:17: Warning 341: The 'using' keyword in type aliasing is not fully sup typedef void (*PFD)(double); // The old style -
SWIG fully supports any type inside a union even if it does not @@ -676,7 +681,7 @@ union P { } p1; -
SWIG supports the variadic templates syntax (inside the <> @@ -711,7 +716,7 @@ const int SIZE = sizeof...(ClassName<int, int>); In the above example SIZE is of course wrapped as a constant.
-SWIG supports wide string and Unicode string constants and raw string literals.
@@ -741,7 +746,7 @@ Note: There is a bug currently where SWIG's preprocessor incorrectly parses an o inside raw string literals. -@@ -808,7 +813,7 @@ OutputType var2 = 1234_suffix; OutputType var3 = 3.1416_suffix; -
SWIG correctly parses the thread_local keyword. For example, variables @@ -828,7 +833,7 @@ A variable will be thread local if accessed from different threads from the targ same way that it will be thread local if accessed from C++ code.
-SWIG handles explicitly defaulted functions, that is, = default added to a function declaration. Deleted definitions, which are also called deleted functions, have = delete added to the function declaration. @@ -866,12 +871,12 @@ This is a C++ compile time check and SWIG does not make any attempt to detect if so in this case it is entirely possible to pass an int instead of a double to f from Java, Python etc.
-SWIG correctly parses and uses the new long long type already introduced in C99 some time ago.
-@@ -886,7 +891,7 @@ struct Check { }; -
@@ -907,7 +912,7 @@ const int SIZE = sizeof(A::member); // does not work with C++03. Okay with C++11 8 -
@@ -923,7 +928,8 @@ int noex2(int) noexcept(true); int noex3(int, bool) noexcept(false); -
An alignof operator is used mostly within C++ to return alignment in number of bytes, but could be used to initialize a variable as shown below. @@ -954,7 +960,8 @@ Use the preprocessor to work around this for now: -
Attributes such as those shown below, are not yet supported and will give a syntax error. @@ -979,26 +986,28 @@ SWIG target languages offer their own threading facilities so there is limited u
SWIG does not provide library files for the new tuple types yet. Variadic template support requires further work to provide substantial tuple wrappers.
-The new hash tables in the STL are unordered_set, unordered_multiset, unordered_map, unordered_multimap. These are not available in SWIG, but in principle should be easily implemented by adapting the current STL containers.
-While SWIG could provide wrappers for the new C++11 regular expressions classes, there is little need as the target languages have their own regular expression facilities.
-@@ -1007,12 +1016,12 @@ Please see the shared_ptr smart po There is no special smart pointer handling available for std::weak_ptr and std::unique_ptr yet.
-This feature extends and standardizes the standard library only and does not effect the C++ language nor SWIG.
-@@ -1023,7 +1032,7 @@ Users would need to write their own typemaps if wrapper references are being use
-@@ -1054,7 +1063,7 @@ t = Test() b = t(1,2) # invoke C++ function object -
The type_traits functions to support C++ metaprogramming is useful at compile time and is aimed specifically at C++ development:
@@ -1104,7 +1113,7 @@ Then the appropriate algorithm can be called for the subset of types given by th 2 -diff --git a/Doc/Manual/CSharp.html b/Doc/Manual/CSharp.html index 6ee33ac68..7f53423fc 100644 --- a/Doc/Manual/CSharp.html +++ b/Doc/Manual/CSharp.html @@ -5,7 +5,7 @@
-@@ -72,13 +72,14 @@ The Microsoft Developer Network (MSDN) h Monodoc, available from the Mono project, has a very useful section titled Interop with native libraries.
-In order to minimize name collisions between names generated based on input to SWIG and names used in the generated code from the .NET framework, SWIG 3 fully qualifies the use of all .NET types. Furthermore, SWIG 3 avoids using directives in generated code. This breaks backwards compatibility with typemaps, pragmas, etc written for use with SWIG 2 that assume the presence of using System; or using System.Runtime.InteropServices; directives in the intermediate class imports, module imports, or proxy imports. SWIG 3 supports backwards compatibility though the use of the SWIG2_CSHARP macro. If SWIG2_CSHARP is defined, SWIG 3 generates using directives in the intermediate class, module class, and proxy class code similar to those generated by SWIG 2. This can be done without modifying any of the input code by passing the -DSWIG2_CSHARP commandline parameter when executing swig.
-@@ -491,7 +492,7 @@ Windows users can also get the examples working using a Cygwin or MinGW environment for automatic configuration of the example makefiles. Any one of the three C# compilers (Portable.NET, Mono or Microsoft) can be detected from within a Cygwin or Mingw environment if installed in your path. -
@@ -509,7 +510,7 @@ void * f(void *v);
@@ -521,7 +522,7 @@ with one of the following three approaches; namely the SWIG C arrays library, P/ pinned arrays.
-@@ -558,7 +559,7 @@ example.print_array(c.cast()); // Pass to C -
@@ -685,7 +686,7 @@ and intermediary class method -
@@ -780,7 +781,7 @@ public static extern void myArrayCopy(global::System.IntPtr jarg1, global::Syste -
@@ -877,7 +878,7 @@ set so should only be used when a C# exception is not created.
-@@ -1059,7 +1060,7 @@ method and C# code does not handle pending exceptions via the canthrow attribute Actually it will issue this warning for any function beginning with SWIG_CSharpSetPendingException.
-@@ -1124,7 +1125,7 @@ The managed code generated does check for the pending exception as mentioned ear -
@@ -1181,7 +1182,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_evensonly(int jarg1) { Multiple catch handlers are generated should there be more than one exception specifications declared.
-@@ -1315,7 +1316,7 @@ try { -
@@ -1328,7 +1329,7 @@ The following sections provide information on the C# director implementation and However, the Java directors section should also be read in order to gain more insight into directors.
-@@ -1449,7 +1450,7 @@ CSharpDerived - UIntMethod(123) -
@@ -1632,7 +1633,7 @@ void SwigDirector_Base::BaseBoolMethod(Base const &b, bool flag) { -
@@ -1680,7 +1681,7 @@ However, a call from C# to CSharpDefaults.DefaultMethod() will of cours should pass the call on to CSharpDefaults.DefaultMethod(int)using the C++ default value, as shown above.
-@@ -1715,7 +1716,7 @@ the [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrows if you don't want users to easily stumble upon these so called 'internal workings' of the wrappers.
-@@ -1847,7 +1848,7 @@ public class Bike : global::System.IDisposable { Note the addReference call.
-@@ -1966,7 +1967,7 @@ The 'cscode' typemap simply adds in the specified code into the C# proxy class. -
@@ -2252,7 +2253,7 @@ public class example { -
@@ -2352,7 +2353,7 @@ Some points to note:
@@ -2414,7 +2415,7 @@ Pay special attention to the memory management issues, using these attributes.
-@@ -2514,7 +2515,7 @@ demonstrating that the class contains methods calling both unmanaged code - The following example is an alternative approach to adding managed code to the generated proxy class.
-@@ -2553,7 +2554,7 @@ public class ExtendMe : global::System.IDisposable { -
diff --git a/Doc/Manual/Chicken.html b/Doc/Manual/Chicken.html index 4e43b9b90..82861c31c 100644 --- a/Doc/Manual/Chicken.html +++ b/Doc/Manual/Chicken.html @@ -8,7 +8,7 @@
-@@ -89,7 +89,7 @@ directory for the basic steps to run SWIG CHICKEN.
-@@ -122,7 +122,7 @@ object files and linked into your project.
-@@ -151,10 +151,10 @@ object files and linked into your project.
-@@ -170,7 +170,7 @@ %rename SWIG directive in the SWIG interface file.
-@@ -192,7 +192,7 @@ (uses modulename)) CHICKEN Scheme form.
-@@ -229,7 +229,7 @@ for info on how to apply the %feature.
-
@@ -248,7 +248,7 @@
parameters). The return values can then be accessed with (call-with-values).
The SWIG chicken module has support for exceptions thrown from @@ -290,7 +290,7 @@
@@ -333,7 +333,7 @@
-@@ -354,7 +354,7 @@
-We can easily use csc to build a static binary.
@@ -395,7 +395,7 @@ in which case the test script does not need to be linked with example.so. The t be run with csi. -Building a shared library like in the above section only works if the library @@ -453,7 +453,7 @@ distributed and used by anyone, even if SWIG is not installed.
See the Examples/chicken/egg directory in the SWIG source for an example that builds two eggs, one using the first method and one using the second method.
-Linking together multiple modules that share type information using the %import
@@ -477,7 +477,7 @@ with (declare (uses ...)).
To create an extension library or an egg, just create a module_load.scm file that (declare (uses ...))
all the modules.
@@ -486,7 +486,7 @@ all the modules.
Lib/chicken/chicken.swg.
-@@ -519,7 +519,7 @@ all the modules.
type. flags is either zero or SWIG_POINTER_DISOWN (see below). -If the owner flag passed to SWIG_NewPointerObj is 1, NewPointerObj will add a
@@ -550,7 +550,7 @@ all the modules.
In Chicken versions equal to or below 1.92, TinyCLOS has a limitation such that generic methods do not properly work on methods diff --git a/Doc/Manual/Contents.html b/Doc/Manual/Contents.html index 77280c8bc..de64429cb 100644 --- a/Doc/Manual/Contents.html +++ b/Doc/Manual/Contents.html @@ -262,7 +262,61 @@ -
@@ -173,7 +173,7 @@ specified for the derived class all must hold. In the above example, this means that both the arguments to Spam::bar must be positive.
-@@ -262,7 +262,7 @@ Regrettably, there is no automatic way to perform similar checks with enums valu release.
-diff --git a/Doc/Manual/Customization.html b/Doc/Manual/Customization.html index f420f42d6..a0a89c042 100644 --- a/Doc/Manual/Customization.html +++ b/Doc/Manual/Customization.html @@ -6,7 +6,7 @@
-@@ -100,7 +100,7 @@ for exception handling. That directive is deprecated--%exception provides the same functionality, but is substantially more flexible.
-@@ -166,7 +166,7 @@ Each target language has its own approach to creating a runtime error/exception and for Perl it is the croak method shown above.
-@@ -240,7 +240,7 @@ Note: This implementation is only intended to illustrate the general idea. To m modify it to handle nested try declarations.
-@@ -275,7 +275,7 @@ class OutOfMemory {};
@@ -300,7 +300,7 @@ The %allowexception feature works like any other feature and so can be
@@ -437,7 +437,7 @@ declarations. However, it never really worked that well and the new %exception directive is much better.
-@@ -540,7 +540,7 @@ Below shows the expansions for the 1st of the overloaded something wrap -
@@ -595,7 +595,7 @@ SWIG_NullReferenceError The SWIG_exception() function can also be used in typemaps.
-@@ -752,7 +752,7 @@ char *strdup(const char *s); The results might not be what you expect.
-@@ -834,7 +834,7 @@ The following are all equivalent: The syntax in the first variation will generate the { } delimiters used whereas the other variations will not.
-@@ -875,7 +875,7 @@ In the following example, MyExceptionClass is the name of the Java clas Further details can be obtained from the Java exception handling section.
-@@ -973,7 +973,7 @@ in the swig.swg Library file. The following shows the alternative synta The concept of clearing features is discussed next.
-@@ -1066,7 +1066,7 @@ The three macros below show this for the "except" feature: -
@@ -1141,7 +1141,7 @@ specifying or not specifying default arguments in a feature is not applicable as in SWIG-1.3.23 when the approach to wrapping methods with default arguments was changed.
-diff --git a/Doc/Manual/D.html b/Doc/Manual/D.html index 43fa69196..47dab50f1 100644 --- a/Doc/Manual/D.html +++ b/Doc/Manual/D.html @@ -6,7 +6,7 @@
-From the D Programming Language web site: D is a systems programming language. Its focus is on combining the power and high performance of C and C++ with the programmer productivity of modern languages like Ruby and Python. [...] The D language is statically typed and compiles directly to machine code. As such, it is not very surprising that D is able to directly interface with C libraries. Why would a SWIG module for D be needed then in the first place?
@@ -53,7 +53,7 @@To help addressing these issues, the SWIG C# module has been forked to support D. Is has evolved quite a lot since then, but there are still many similarities, so if you do not find what you are looking for on this page, it might be worth having a look at the chapter on C# (and also on Java, since the C# module was in turn forked from it).
-To activate the D module, pass the -d option to SWIG at the command line. The same standard command line switches as with any other language module are available, plus the following D specific ones:
@@ -83,10 +83,10 @@ -If you already know the SWIG C# module, you might find the following name comparison table useful:
@@ -112,7 +112,7 @@Mapping of types between the C/C++ library, the C/C++ library wrapper exposing the C functions, the D wrapper module importing these functions and the D proxy code.
@@ -120,7 +120,7 @@The ctype typemap is used to determine the types to use in the C wrapper functions. The types from the imtype typemap are used in the extern(C) declarations of these functions in the intermediary D module. The dtype typemap contains the D types used in the D proxy module/class.
-Used for converting between the types for C/C++ and D when generating the code for the wrapper functions (on the C++ side).
@@ -130,7 +130,7 @@The directorin typemap is used to convert parameters to the type used in the D director callback function, its return value is processed by directorout (see below).
-Typemaps for code generation in D proxy and type wrapper classes.
@@ -157,13 +157,13 @@ dtype DClass.method(dtype a) -Because, unlike many scripting languages supported by SWIG, D does not need any dynamic dispatch helper to access an overloaded function, the purpose of these is merely to issue a warning for overloaded C++ functions that cannot be overloaded in D (as more than one C++ type maps to a single D type).
-These typemaps are used for generating the skeleton of proxy classes for C++ types.
@@ -175,7 +175,7 @@dconstructor, ddestructor, ddispose and ddispose_derived are used to generate the class constructor, destructor and dispose() method, respectively. The auxiliary code for handling the pointer to the C++ object is stored in dbody and dbody_derived. You can override them for specific types.
-The standard SWIG special variables are available for use within typemaps as described in the Typemaps documentation, for example $1, $input, $result etc.
@@ -295,7 +295,7 @@ $importtype(AnotherInterface) -The D module defines a number of directives which modify the SWIG features set globally or for a specific declaration:
@@ -325,7 +325,7 @@ struct A { -There are a few SWIG pragmas specific to the D module, which you can use to influence the D code SWIG generates:
@@ -364,7 +364,7 @@ struct A { -Out of the box, C++ exceptions are fundamentally incompatible to their equivalent in the D world and cannot simply be propagated to a calling D method. There is, however, an easy way to solve this problem: Just catch the exception in the C/C++ wrapper layer, pass the contents to D, and make the wrapper code rethrow the exception in the D world.
@@ -374,7 +374,7 @@ struct A {As this feature is implemented in exactly the same way it is for C#, please see the C# documentation for a more detailed explanation.
-When the directors feature is activated, SWIG generates extra code on both the C++ and the D side to enable cross-language polymorphism. Essentially, this means that if you subclass a proxy class in D, C++ code can access any overridden virtual methods just as if you created a derived class in C++.
@@ -383,16 +383,16 @@ struct A { -By default, SWIG flattens all C++ namespaces into a single target language namespace, but as for Java and C#, the nspace feature is supported for D. If it is active, C++ namespaces are mapped to D packages/modules. Note, however, that like for the other languages, free variables and functions are not supported yet; currently, they are all allows written to the main proxy D module.
-Contrary to many of the scripting languages supported by SWIG, D fully supports C-style pointers. The D module thus includes a custom mechanism to wrap C pointers directly as D pointers where applicable, that is, if the type that is pointed to is represented the same in C and D (on the bit-level), dubbed a primitive type below.
@@ -404,7 +404,7 @@ struct A {To determine if a type should be considered primitive, the cprimitive attribute on its dtype attribute is used. For example, the dtype typemap for float has cprimitive="1", so the code from the nativepointer attribute is taken into account e.g. for float ** or the function pointer float (*)(float *).
-The D module comes with basic operator overloading support for both D1 and D2. There are, however, a few limitations arising from conceptual differences between C++ and D:
@@ -416,7 +416,7 @@ struct A {There are also some cases where the operators can be translated to D, but the differences in the implementation details are big enough that a rather involved scheme would be required for automatic wrapping them, which has not been implemented yet. This affects, for example, the array subscript operator, [], in combination with assignments - while operator [] in C++ simply returns a reference which is then written to, D resorts to a separate opIndexAssign method -, or implicit casting (which was introduced in D2 via alias this). Despite the lack of automatic support, manually handling these cases should be perfectly possible.
-As with any other language, the SWIG test-suite can be built for D using the *-d-test-suite targets of the top-level Makefile. By default, D1 is targeted, to build it with D2, use the optional D_VERSION variable, e.g. make check-d-test-suite D_VERSION=2.
@@ -424,14 +424,14 @@ struct A {Note: If you want to use GDC on Linux or another platform which requires you to link libdl for dynamically loading the shared library, you might have to add -ldl manually to the d_compile target in Examples/Makefile, because GDC does not currently honor the pragma(lib,...) statement.
-There are no D-specific typemap examples yet. However, with the above name comparison table, you should be able to get an idea what can be done by looking at the corresponding C# section.
-There are a couple of features which are not implemented yet, but would be very useful and might be added in the near future:
diff --git a/Doc/Manual/Extending.html b/Doc/Manual/Extending.html index a8c15fe03..5cd89a280 100644 --- a/Doc/Manual/Extending.html +++ b/Doc/Manual/Extending.html @@ -6,7 +6,7 @@ -@@ -91,7 +91,7 @@ Also, this chapter is not meant to be a hand-holding tutorial. As a starting po you should probably look at one of SWIG's existing modules.
-@@ -121,7 +121,7 @@ obvious, but almost all SWIG directives as well as the low-level generation of wrapper code are driven by C++ datatypes.
-@@ -158,7 +158,7 @@ role in making the system work. For example, both typemaps and declaration anno based on pattern matching and interact heavily with the underlying type system.
-@@ -203,7 +203,7 @@ latter stage of compilation. The next few sections briefly describe some of these stages.
-@@ -284,7 +284,7 @@ been expanded as well as everything else that goes into the low-level construction of the wrapper code.
-@@ -385,7 +385,7 @@ returning a foo and taking types a and b as arguments).
-@@ -640,7 +640,7 @@ $ swig -c++ -python -debug-module 4 example.i
@@ -659,7 +659,7 @@ that matches the name of the target language. For example, python:foo perl:foo.
-@@ -750,7 +750,7 @@ example.i:5. Previous declaration is foo_i(int ) -
@@ -806,7 +806,7 @@ For example, the exception code above is simply stored without any modifications.
-@@ -928,7 +928,7 @@ public : The role of these functions is described shortly.
-@@ -941,7 +941,7 @@ internal data structures, it may be useful to keep XML in the back of your mind as a model.
-@@ -987,7 +987,7 @@ typedef Hash Typetab; -
@@ -1128,7 +1128,7 @@ Returns the number of replacements made (if any). -
@@ -1205,7 +1205,7 @@ Returns the list of hash table keys. -
@@ -1294,7 +1294,7 @@ If t is not a standard object, it is assumed to be a char * and is used to create a String object. -
@@ -1782,7 +1782,7 @@ the attribute is optional. Swig_restore() must always be called after function. -
@@ -1791,7 +1791,7 @@ pointers, references, and pointers to members. A detailed discussion of type theory is impossible here. However, let's cover the highlights.
-@@ -1892,7 +1892,7 @@ make the final type, the two parts are just joined together using string concatenation.
-@@ -2061,7 +2061,7 @@ Returns the prefix of a type. For example, if ty is ty is unmodified. -
@@ -2148,7 +2148,7 @@ Checks if ty is a varargs type. Checks if ty is a templatized type. -
@@ -2250,7 +2250,7 @@ Fully reduces ty according to typedef rules. Resulting datatype will consist only of primitive typenames. -
@@ -2287,7 +2287,7 @@ Literal y; // type = 'Literal', ltype='p.char' -
@@ -2349,7 +2349,7 @@ SWIG, but is most commonly associated with type-descriptor objects that appear in wrappers (e.g., SWIGTYPE_p_double). -
@@ -2448,7 +2448,7 @@ included. Used to emit prototypes. Returns the number of required (non-optional) arguments in p. -
@@ -2463,7 +2463,7 @@ describes the creation of a minimal Python module. You should be able to extra this to other languages.
-@@ -2473,7 +2473,7 @@ the parsing of command line options, all aspects of code generation are controll different methods of the Language that must be defined by your module.
-@@ -2581,7 +2581,7 @@ that activates your module. For example, swig -python foo.i. The messages from your new module should appear.
-@@ -2640,7 +2640,7 @@ to mark the option as valid. If you forget to do this, SWIG will terminate wit unrecognized command line option error.
-@@ -2689,7 +2689,7 @@ an implementation file python.cxx and a configuration file python.swg.
-@@ -2747,7 +2747,7 @@ int Python::top(Node *n) { -
@@ -3203,7 +3203,7 @@ Discuss the kinds of functions typically needed for SWIG runtime support (e.g. the SWIG files that implement those functions.
-@@ -3222,7 +3222,7 @@ The following are the minimum that are usually supported: Please copy these and modify for any new language.
-@@ -3251,7 +3251,7 @@ during this process, see the section on .
-@@ -3310,7 +3310,7 @@ It is therefore essential that the runtime tests are written in a manner that di but error/exception out with an error message on stderr on failure.
-@@ -3502,7 +3502,7 @@ It can be run in the same way as the other language test-suites, replacing [lang The test cases used and the way it works is described in Examples/test-suite/errors/Makefile.in.
-@@ -3534,7 +3534,7 @@ Some topics that you'll want to be sure to address include: if available. -
@@ -3591,7 +3591,7 @@ should be added should there be an area not already covered by the existing tests.
-@@ -3615,7 +3615,7 @@ The generated C/C++ code should also follow this style as close as possible. How should be avoided as unlike the SWIG developers, users will never have consistent tab settings.
-@@ -3642,7 +3642,7 @@ There are various command line options which can aid debugging a SWIG interface The complete list of command line options for SWIG are available by running swig -help.
-@@ -4050,7 +4050,7 @@ extern "X" { ... } declaration. -
diff --git a/Doc/Manual/Go.html b/Doc/Manual/Go.html index 226acaabf..f970b02e8 100644 --- a/Doc/Manual/Go.html +++ b/Doc/Manual/Go.html @@ -5,7 +5,7 @@
-@@ -67,7 +67,7 @@ checking and runtime library are not used with Go. This should be borne in mind when reading the rest of the SWIG documentation.
-@@ -76,7 +76,7 @@ default SWIG will generate code for the gc compilers. To generate code for gccgo, you should also use the -gccgo option.
-@@ -150,7 +150,7 @@ swig -go -help -
When generating Go code, SWIG will generate the following @@ -226,7 +226,7 @@ this: % go tool 6l main.6
@@ -236,7 +236,7 @@ modifications have to occur. This section briefly covers the essential aspects of this wrapping.
-@@ -246,7 +246,7 @@ directive. You may override this by using SWIG's -package command line option.
-@@ -278,7 +278,7 @@ followed by that name, and the destructor will be named Delete followed by that name.
-@@ -286,7 +286,7 @@ C/C++ constants created via #define or the %constant directive become Go constants, declared with a const declaration. -
@@ -296,7 +296,7 @@ usual). The values of the enumeration will become variables in Go; code should avoid modifying those variables.
-@@ -374,7 +374,7 @@ returns a go interface. If the returned pointer can be null, you can check for this by calling the Swigcptr() method.
-@@ -386,7 +386,7 @@ Doing the reverse will require an explicit type assertion, which will be checked dynamically.
-@@ -394,7 +394,7 @@ In order to use C++ templates in Go, you must tell SWIG to create wrappers for a particular template instantation. To do this, use the %template directive. -
@@ -437,7 +437,7 @@ method defined in Go. The Go code may of course call other methods on itself, and those methods may be defined either in Go or in C++.
-@@ -544,7 +544,7 @@ that typemap, or add new values, to control how C/C++ types are mapped into Go types.
-Because of limitations in the way output arguments are processed in swig, @@ -597,7 +597,7 @@ void f(char *output); -
Often the APIs generated by swig are not very natural in go, especially if diff --git a/Doc/Manual/Guile.html b/Doc/Manual/Guile.html index 17e3a3fab..4c1126c7f 100644 --- a/Doc/Manual/Guile.html +++ b/Doc/Manual/Guile.html @@ -8,7 +8,7 @@
-This section details guile-specific support in SWIG. -
@@ -61,7 +61,7 @@ improved performance. This is currently not tested with swig so your mileage may vary. To be safe set environment variable GUILE_AUTO_COMPILE to 0 when using swig generated guile code. -
@@ -69,7 +69,7 @@ There are three different concepts of "module" involved, defined separately for SWIG, Guile, and Libtool. To avoid horrible confusion, we explicitly prefix the context, e.g., "guile-module". -
Guile 1.8 and older could be interfaced using two different api's, the SCM @@ -80,7 +80,7 @@ or the GH API. The GH interface to guile is deprecated. Read more about why in version of SWIG that can still generate guile GH wrapper code is 2.0.9. Please use that version if you really need the GH wrapper code. -
@@ -88,7 +88,7 @@ Guile support is complicated by a lack of user community cohesiveness, which manifests in multiple shared-library usage conventions. A set of policies implementing a usage convention is called a linkage. -
@@ -193,7 +193,7 @@ placed between the define-module form and the
SWIG_init via a preprocessor define to avoid symbol
clashes. For this case, however, passive linkage is available.
-
Passive linkage is just like simple linkage, but it generates an @@ -203,7 +203,7 @@ package name (see below).
You should use passive linkage rather than simple linkage when you are using multiple modules. -
SWIG can also generate wrapper code that does all the Guile module @@ -244,7 +244,7 @@ Newer Guile versions have a shorthand procedure for this:
Guile used to support an autoloading facility for object-code @@ -270,7 +270,7 @@ option, SWIG generates an exported module initialization function with an appropriate name. -
@@ -295,7 +295,7 @@ my/lib/libfoo.so.X.Y.Z and friends. This scheme is still very experimental; the (hobbit4d link) conventions are not well understood.
-
@@ -307,7 +307,7 @@ complained so far.
%rename to specify the Guile name of the wrapped
functions and variables (see CHANGES).
-
@@ -399,7 +399,7 @@ constant will appear as a scheme variable. See Features and the %feature directive for info on how to apply the %feature.
-
@@ -420,7 +420,7 @@ representing the expected pointer type. See also
If the Scheme object passed was not a SWIG smob representing a compatible
pointer, a wrong-type-arg exception is raised.
-
@@ -439,7 +439,7 @@ structure describing this type. If a generated GOOPS module has been loaded, sm the corresponding GOOPS class.
-Garbage collection is a feature of Guile since version 1.6. As SWIG now requires Guile > 1.8, @@ -453,7 +453,7 @@ is exactly like described in 23.8 Exception Handling +
@@ -479,7 +479,7 @@ mapping: The default when not specified here is to use "swig-error". See Lib/exception.i for details. -
If invoked with the command-line option For global variables, SWIG creates a single wrapper procedure
@@ -542,7 +542,7 @@ struct members, the procedures SWIG can also generate classes and generic functions for use with
@@ -688,7 +688,7 @@ Notice that <Foo> is used before it is defined. The fix is to just put th
As you can see in the example above, there are potential naming conflicts. The default exported
@@ -725,7 +725,7 @@ guile-modules. For example, The guile-modules generated above all need to be linked together. GOOPS support requires
diff --git a/Doc/Manual/Java.html b/Doc/Manual/Java.html
index 3144341e1..fb8e5d694 100644
--- a/Doc/Manual/Java.html
+++ b/Doc/Manual/Java.html
@@ -5,7 +5,7 @@
@@ -192,7 +192,7 @@ Various customisation tips and techniques using SWIG directives are covered.
The latter sections cover the advanced techniques of using typemaps for complete control of the wrapping process.
@@ -212,7 +212,7 @@ This is the commonly used method to load JNI code so your system will more than
Android uses Java JNI and also works with SWIG. Please read the Android chapter in conjunction with this one if you are targeting Android.
@@ -271,7 +271,7 @@ The following sections have further practical examples and details on how you mi
compiling and using the generated files.
@@ -308,7 +308,7 @@ swig -java -help
Their use will become clearer by the time you have finished reading this section on SWIG and Java.
@@ -323,7 +323,7 @@ They are usually in directories like this:
The exact location may vary on your machine, but the above locations are typical.
@@ -360,7 +360,7 @@ The name of the shared library output file is important.
If the name of your SWIG module is "example", the name of the corresponding shared library file should be "libexample.so" (or equivalent depending on your machine, see Dynamic linking problems for more information).
The name of the module is specified using the %module directive or -module command line option.
@@ -395,7 +395,7 @@ $
If it doesn't work have a look at the following section which discusses problems loading the shared library.
@@ -482,7 +482,7 @@ The following section also contains some C++ specific linking problems and solut
@@ -534,7 +534,7 @@ Finally make sure the version of JDK header files matches the version of Java th
@@ -543,7 +543,7 @@ You will want to produce a DLL that can be loaded by the Java Virtual Machine.
This section covers the process of using SWIG with Microsoft Visual C++ 6 although the procedure may be similar with other compilers.
In order for everything to work, you will need to have a JDK installed on your machine in order to read the JNI header files.
@@ -582,7 +582,7 @@ To run the native code in the DLL (example.dll), make sure that it is in your pa
If the library fails to load have a look at Dynamic linking problems.
@@ -641,7 +641,7 @@ Of course you may want to make changes for it to work for C++ by adding in the -
@@ -651,7 +651,7 @@ variables are wrapped with JavaBean type getters and setters and so forth.
This section briefly covers the essential aspects of this wrapping.
@@ -687,7 +687,7 @@ swig -java -package com.bloggs.swig -outdir com/bloggs/swig example.i
SWIG won't create the directory, so make sure it exists beforehand.
@@ -721,7 +721,7 @@ System.out.println(example.fact(4));
@@ -808,7 +808,7 @@ extern char *path; // Read-only (due to %immutable)
-
@@ -948,7 +948,7 @@ Or if you decide this practice isn't so bad and your own class implements ex
@@ -962,7 +962,7 @@ The final two approaches use simple integers for each enum item.
Before looking at the various approaches for wrapping named C/C++ enums, anonymous enums are considered.
@@ -1025,7 +1025,7 @@ As in the case of constants, you can access them through either the module class
@@ -1119,7 +1119,7 @@ When upgrading to JDK 1.5 or later, proper Java enums could be used instead, wit
The following section details proper Java enum generation.
@@ -1172,7 +1172,7 @@ The additional support methods need not be generated if none of the enum items h
Simpler Java enums for enums without initializers section.
@@ -1220,7 +1220,7 @@ Note that unlike typesafe enums, this approach requires users to mostly use diff
Thus the upgrade path to proper enums provided in JDK 1.5 is more painful.
@@ -1239,7 +1239,7 @@ SWIG-1.3.21 and earlier versions wrapped all enums using this approach.
The type unsafe approach is preferable to this one and this simple approach is only included for backwards compatibility with these earlier versions of SWIG.
@@ -1327,7 +1327,7 @@ C-style cast may return a bogus result whereas as the C++-style cast will return
a NULL pointer if the conversion can't be performed.
@@ -1495,7 +1495,7 @@ x.setA(3); // Modify x.a - this is the same as b.f.a
-
@@ -1558,7 +1558,7 @@ int bar = Spam.getBar();
-
@@ -1619,7 +1619,7 @@ Note that Java does not support multiple inheritance so any multiple inheritance
A warning is given when multiple inheritance is detected and only the first base class is used.
@@ -1674,7 +1674,7 @@ to hold the result and a pointer is returned (Java will release this memory
when the returned object's finalizer is run by the garbage collector).
@@ -1698,7 +1698,7 @@ For spam1 and spam4 above the Java null gets translat
The converse also occurs, that is, NULL pointers are translated into null Java objects when returned from a C/C++ function.
@@ -1813,7 +1813,7 @@ void spam(unsigned short); // Ignored
-
@@ -1856,7 +1856,7 @@ Further details on default arguments and how to restore this approach are given
@@ -1946,7 +1946,7 @@ If the resulting use of the nspace feature and hence packages results in a proxy
you will need to open up the visibility for the pointer constructor and getCPtr method from the default 'protected' to 'public' with the SWIG_JAVABODY_PROXY macro. See Java code typemaps.
@@ -1995,7 +1995,7 @@ Obviously, there is more to template wrapping than shown in this example.
More details can be found in the SWIG and C++ chapter.
@@ -2079,7 +2079,7 @@ Foo f = p.__deref__(); // Returns underlying Foo *
-
@@ -2094,7 +2094,7 @@ Finally enum classes are covered.
First, the crucial intermediary JNI class is considered.
@@ -2214,7 +2214,7 @@ If name is the same as modulename then the module class name g
from modulename to modulenameModule.
@@ -2296,7 +2296,7 @@ For example, let's change the intermediary JNI class access to just the default
All the methods in the intermediary JNI class will then not be callable outside of the package as the method modifiers have been changed from public access to default access. This is useful if you want to prevent users calling these low level functions.
@@ -2327,7 +2327,7 @@ example.egg(new Foo());
The primary reason for having the module class wrapping the calls in the intermediary JNI class is to implement static type checking. In this case only a Foo can be passed to the egg function, whereas any long can be passed to the egg function in the intermediary JNI class.
@@ -2378,7 +2378,7 @@ See The intermediary JNI class pragmas secti
@@ -2454,7 +2454,7 @@ int y = f.spam(5, new Foo());
-
@@ -2616,7 +2616,7 @@ and
@@ -2732,7 +2732,7 @@ However, true cross language polymorphism can be achieved using the 24.4.3.3 Proxy classes and garbage collection
+
@@ -2815,7 +2815,7 @@ The section on Java typemaps details how to specify
See the How to Handle Java Finalization's Memory-Retention Issues article for alternative approaches to managing memory by avoiding finalizers altogether.
@@ -2937,7 +2937,7 @@ For example:
Compatibility note: The generation of this additional parameter did not occur in versions prior to SWIG-1.3.30.
@@ -3025,7 +3025,7 @@ for (int i=0; i<100000; i++) {
-
@@ -3112,7 +3112,7 @@ public static void spam(SWIGTYPE_p_int x, SWIGTYPE_p_int y, int z) { ... }
-
@@ -3121,7 +3121,7 @@ The Enumerations section discussed these but om
The following sub-sections detail the various types of enum classes that can be generated.
@@ -3205,7 +3205,7 @@ The swigValue method is used for marshalling in the other direction.
The toString method is overridden so that the enum name is available.
@@ -3283,7 +3283,7 @@ These needn't be generated if the enum being wrapped does not have any initializ
Simpler Java enums for enums without initializers section describes how typemaps can be used to achieve this.
@@ -3314,7 +3314,7 @@ public final class Beverage {
-
@@ -3336,7 +3336,7 @@ The upshot is that C++ classes can be extended in Java and from C++ these extens
Neither C++ code nor Java code needs to know where a particular method is implemented: the combination of proxy classes, director classes, and C wrapper functions transparently takes care of all the cross-language method routing.
@@ -3404,7 +3404,7 @@ public:
-
@@ -3431,7 +3431,7 @@ If the correct implementation is in Java, the Java API is used to call the metho
@@ -3449,7 +3449,7 @@ This situation can be optimized by selectively enabling director methods (using
@@ -3514,7 +3514,7 @@ DirectorDerived::upcall_method() invoked.
-
@@ -3534,7 +3534,7 @@ Macros can be defined on the commandline when compiling your C++ code, or altern
-
@@ -3555,7 +3555,8 @@ However, if all director methods are expected to usually be overridden by Java s
The disadvantage is that invocation of director methods from C++ when Java doesn't actually override the method will require an additional call up into Java and back to C++. As such, this option is only useful when overrides are extremely common and instantiation is frequent enough that its performance is critical.
With directors routing method calls to Java, and proxies routing them
@@ -3716,6 +3717,7 @@ this potential fate.
-procdoc
@@ -514,7 +514,7 @@ like this:
typemap argument doc. See Lib/guile/typemaps.i for
details.
-23.10 Procedures with setters
+24.10 Procedures with setters
(struct-member-get
pointer) and (struct-member-set pointer
value) are not generated.
-23.11 GOOPS Proxy Classes
+24.11 GOOPS Proxy Classes
%import "foo.h" before the %inline block.
23.11.1 Naming Issues
+24.11.1 Naming Issues
23.11.2 Linking
+24.11.2 Linking
24 SWIG and Java
+25 SWIG and Java
@@ -87,7 +87,7 @@
24.1 Overview
+25.1 Overview
24.2 Preliminaries
+25.2 Preliminaries
24.2.1 Running SWIG
+25.2.1 Running SWIG
24.2.2 Additional Commandline Options
+25.2.2 Additional Commandline Options
24.2.3 Getting the right header files
+25.2.3 Getting the right header files
24.2.4 Compiling a dynamic module
+25.2.4 Compiling a dynamic module
24.2.5 Using your module
+25.2.5 Using your module
24.2.6 Dynamic linking problems
+25.2.6 Dynamic linking problems
24.2.7 Compilation problems and compiling with C++
+25.2.7 Compilation problems and compiling with C++
24.2.8 Building on Windows
+25.2.8 Building on Windows
24.2.8.1 Running SWIG from Visual Studio
+25.2.8.1 Running SWIG from Visual Studio
24.2.8.2 Using NMAKE
+25.2.8.2 Using NMAKE
24.3 A tour of basic C/C++ wrapping
+25.3 A tour of basic C/C++ wrapping
24.3.1 Modules, packages and generated Java classes
+25.3.1 Modules, packages and generated Java classes
24.3.2 Functions
+25.3.2 Functions
24.3.3 Global variables
+25.3.3 Global variables
24.3.4 Constants
+25.3.4 Constants
24.3.5 Enumerations
+25.3.5 Enumerations
24.3.5.1 Anonymous enums
+25.3.5.1 Anonymous enums
24.3.5.2 Typesafe enums
+25.3.5.2 Typesafe enums
24.3.5.3 Proper Java enums
+25.3.5.3 Proper Java enums
24.3.5.4 Type unsafe enums
+25.3.5.4 Type unsafe enums
24.3.5.5 Simple enums
+25.3.5.5 Simple enums
24.3.6 Pointers
+25.3.6 Pointers
24.3.7 Structures
+25.3.7 Structures
24.3.8 C++ classes
+25.3.8 C++ classes
24.3.9 C++ inheritance
+25.3.9 C++ inheritance
24.3.10 Pointers, references, arrays and pass by value
+25.3.10 Pointers, references, arrays and pass by value
24.3.10.1 Null pointers
+25.3.10.1 Null pointers
24.3.11 C++ overloaded functions
+25.3.11 C++ overloaded functions
24.3.12 C++ default arguments
+25.3.12 C++ default arguments
24.3.13 C++ namespaces
+25.3.13 C++ namespaces
24.3.14 C++ templates
+25.3.14 C++ templates
24.3.15 C++ Smart Pointers
+25.3.15 C++ Smart Pointers
24.4 Further details on the generated Java classes
+25.4 Further details on the generated Java classes
24.4.1 The intermediary JNI class
+25.4.1 The intermediary JNI class
24.4.1.1 The intermediary JNI class pragmas
+25.4.1.1 The intermediary JNI class pragmas
24.4.2 The Java module class
+25.4.2 The Java module class
24.4.2.1 The Java module class pragmas
+25.4.2.1 The Java module class pragmas
24.4.3 Java proxy classes
+25.4.3 Java proxy classes
24.4.3.1 Memory management
+25.4.3.1 Memory management
24.4.3.2 Inheritance
+25.4.3.2 Inheritance
25.4.3.3 Proxy classes and garbage collection
24.4.3.4 The premature garbage collection prevention parameter for proxy class marshalling
+25.4.3.4 The premature garbage collection prevention parameter for proxy class marshalling
24.4.3.5 Single threaded applications and thread safety
+25.4.3.5 Single threaded applications and thread safety
24.4.4 Type wrapper classes
+25.4.4 Type wrapper classes
24.4.5 Enum classes
+25.4.5 Enum classes
24.4.5.1 Typesafe enum classes
+25.4.5.1 Typesafe enum classes
24.4.5.2 Proper Java enum classes
+25.4.5.2 Proper Java enum classes
24.4.5.3 Type unsafe enum classes
+25.4.5.3 Type unsafe enum classes
24.5 Cross language polymorphism using directors
+25.5 Cross language polymorphism using directors
24.5.1 Enabling directors
+25.5.1 Enabling directors
24.5.2 Director classes
+25.5.2 Director classes
24.5.3 Overhead and code bloat
+25.5.3 Overhead and code bloat
24.5.4 Simple directors example
+25.5.4 Simple directors example
24.5.5 Director threading issues
+25.5.5 Director threading issues
24.5.6 Director performance tuning
+25.5.6 Director performance tuning
24.5.7 Java exceptions from directors
+25.5.7 Java exceptions from directors
+
Swig::DirectorException, any director methods that have exception
specifications may cause program termination. To simply ignore
unexpected exceptions, the default handling can be changed with:
+
@@ -3729,7 +3731,6 @@ unexpected exceptions, the default handling can be changed with:
%}
Alternatively an exception compatible with the existing director method exception specifications can be thrown. Assuming that all @@ -3862,7 +3863,7 @@ See the Exception handling with %exception an section for more on converting C++ exceptions to Java exceptions.
-@@ -3958,7 +3959,7 @@ class MyProtectedBase extends ProtectedBase -
@@ -3970,7 +3971,7 @@ be awkward. This section describes some common SWIG features that are used to improve the interface to existing C/C++ code.
-@@ -4036,7 +4037,7 @@ hard to implement. It is possible to improve on this using Java code, typemaps, customization features as covered in later sections, but sometimes helper functions are a quick and easy solution to difficult cases.
-@@ -4099,7 +4100,7 @@ Vector(2,3,4) in any way---the extensions only show up in the Java interface.
-@@ -4258,7 +4259,7 @@ to raise exceptions. See the SWIG Library ch The typemap example Handling C++ exception specifications as Java exceptions provides further exception handling capabilities.
-@@ -4284,7 +4285,7 @@ protected static void protect_me() { -
@@ -4294,7 +4295,7 @@ strings and arrays. This chapter discusses the common techniques for solving these problems.
-@@ -4468,7 +4469,7 @@ void foo(Bar *OUTPUT); will not have the intended effect since typemaps.i does not define an OUTPUT rule for Bar.
-@@ -4534,7 +4535,7 @@ System.out.println("3 + 4 = " + result); See the SWIG Library chapter for further details.
-@@ -4601,7 +4602,7 @@ Please be aware that the typemaps in this library are not efficient as all the e There is an alternative approach using the SWIG array library and this is covered in the next section.
-@@ -4746,7 +4747,7 @@ well suited for applications in which you need to create buffers, package binary data, etc.
-@@ -4790,7 +4791,7 @@ len: 5 data: 68 69 0 6a 6b -
@@ -4907,7 +4908,7 @@ model and use these functions in place of malloc and free in your own code.
-@@ -4928,7 +4929,7 @@ Before proceeding, it should be stressed that typemaps are not a required part of using SWIG---the default wrapping behavior is enough in most cases. Typemaps are only used if you want to change some aspect of the generated code. -
@@ -5080,7 +5081,7 @@ However, the mappings allow the full range of values for each C type from Java.
-@@ -5095,7 +5096,7 @@ So in summary, the C/C++ pointer to non-primitive types is cast into the 64 bit The Java type is either the proxy class or type wrapper class.
-@@ -5108,7 +5109,7 @@ Unfortunately it won't of course hold true for JNI code.
-@@ -5231,7 +5232,7 @@ int c = example.count('e',"Hello World"); -
@@ -5491,7 +5492,7 @@ These are listed below: -
@@ -5537,7 +5538,7 @@ The "javain" typemap has the optional 'pre', 'post' and 'pgcppname' attributes. Note that when the 'pre' or 'post' attributes are specified and the associated type is used in a constructor, a constructor helper function is generated. This is necessary as the Java proxy constructor wrapper makes a call to a support constructor using a this call. In Java the this call must be the first statement in the constructor body. The constructor body thus calls the helper function and the helper function instead makes the JNI call, ensuring the 'pre' code is called before the JNI call is made. There is a Date marshalling example showing 'pre', 'post' and 'pgcppname' attributes in action.
-@@ -5688,7 +5689,7 @@ This special variable expands to the intermediary class name. Usually this is th unless the jniclassname attribute is specified in the %module directive.
-@@ -5725,7 +5726,7 @@ If you do not intend your code to be targeting both C and C++ then your typemaps
-@@ -5963,7 +5964,7 @@ to make the method and constructor public: -
@@ -6227,7 +6228,7 @@ The basic strategy here is to provide a default package typemap for the majority -
@@ -6237,7 +6238,7 @@ the SWIG library.
-@@ -6316,7 +6317,7 @@ This would be done by using the original versions of these typemaps in "enums.sw
-@@ -6441,7 +6442,7 @@ We could alternatively have used %rename to rename what() into
-@@ -6596,7 +6597,7 @@ If we were a martyr to the JNI cause, we could replace the succinct code within If we had, we would have put it in the "in" typemap which, like all JNI and Java typemaps, also supports the 'throws' attribute.
-@@ -6740,7 +6741,7 @@ Lastly the "jni", "jtype" and "jstype" typemaps are also required to specify what Java types to use.
-@@ -6822,7 +6823,7 @@ example.foo(new String[]{"red", "green", "blue", "white"}); -
@@ -6940,7 +6941,7 @@ $ java runme 1 12.0 340.0 -
@@ -7146,7 +7147,7 @@ SWIG usually generates code which constructs the proxy classes using Java code a Note that the JNI code above uses a number of string lookups to call a constructor, whereas this would not occur using byte compiled Java code.
-@@ -7190,7 +7191,7 @@ System.out.println("foo1? " + foo1.equals(foo2)); -
@@ -7249,7 +7250,7 @@ This example contains some useful functionality which you may want in your code.
@@ -7429,7 +7430,7 @@ The C functional interface has been completely morphed into an object-oriented i the Butler class would behave much like any pure Java class and feel more natural to Java users.
-@@ -7552,7 +7553,7 @@ public class Bike { Note the addReference call.
-@@ -7668,7 +7669,7 @@ The 'javacode' typemap simply adds in the specified code into the Java proxy cla -
@@ -7845,7 +7846,7 @@ A few things to note: -
@@ -8026,10 +8027,10 @@ public abstract class UserVisibleFoo extends Foo {
@@ -8085,7 +8086,7 @@ public class Barmy { -
@@ -8146,7 +8147,7 @@ All destructors have to be called manually for example the delete_Foo(foo)
-@@ -8196,7 +8197,7 @@ This directive is only really useful if you want to mix your own hand crafted JN
-@@ -8217,7 +8218,7 @@ However, you will have to be careful about memory management and make sure that This method normally calls the C++ destructor or free() for C code.
-@@ -8239,7 +8240,7 @@ The -verbose:jni and -verbose:gc are also useful options for monitoring code beh
-diff --git a/Doc/Manual/Library.html b/Doc/Manual/Library.html index 7510c8686..740988e71 100644 --- a/Doc/Manual/Library.html +++ b/Doc/Manual/Library.html @@ -6,7 +6,7 @@
-@@ -91,7 +91,7 @@ Set the environment variable to hold an alternative library directory. The directories that are searched are displayed when using -verbose commandline option.
-@@ -103,7 +103,7 @@ pointers as class-like objects. Since these functions provide direct access to memory, their use is potentially unsafe and you should exercise caution.
-@@ -319,7 +319,7 @@ In this example, the function int_to_uint() would be used to cast type Note: When working with simple pointers, typemaps can often be used to provide more seamless operation.
-@@ -497,7 +497,7 @@ you should consider using a special array object rather than a bare pointer. used with types of char or char *.
-@@ -658,7 +658,7 @@ Now, in a script:
@@ -760,7 +760,7 @@ char *cdata_name(type* ptr, int nitems) Clearly they are unsafe.
-@@ -780,7 +780,7 @@ morality. The modules in this section provide basic functionality for manipulating raw C strings.
-@@ -821,7 +821,7 @@ interpreter and lead to a crash). Furthermore, the default behavior does not work well with binary data. Instead, strings are assumed to be NULL-terminated.
-@@ -863,7 +863,7 @@ In the wrapper function, the passed string will be expanded to a pointer and len The (char *STRING, int LENGTH) multi-argument typemap is also available in addition to (char *STRING, size_t LENGTH).
-@@ -904,7 +904,7 @@ however, you may need to provide your own "newfree" typemap for other types. See Object ownership and %newobject for more details.
-@@ -1364,7 +1364,7 @@ structure or class instead. -
@@ -1402,7 +1402,7 @@ Please look for the library files in the appropriate language library directory.
-@@ -1486,7 +1486,7 @@ void foo(string s, const String &t); // std_string typemaps still applie -
@@ -1665,7 +1665,7 @@ if you want to make their head explode. details and the public API exposed to the interpreter vary.
-@@ -1715,7 +1715,7 @@ The %exception directive can be used by placing the following code befo Any thrown STL exceptions will then be gracefully handled instead of causing a crash.
-@@ -1904,7 +1904,8 @@ Adding the missing %shared_ptr macros will fix this:
-While std::auto_ptr is deprecated in C++11, some existing code may @@ -1952,10 +1953,10 @@ int value = k.getValue(); -
diff --git a/Doc/Manual/Lisp.html b/Doc/Manual/Lisp.html index 09e410185..7ea9139ac 100644 --- a/Doc/Manual/Lisp.html +++ b/Doc/Manual/Lisp.html @@ -6,7 +6,7 @@
-@@ -50,7 +50,7 @@ here
-@@ -77,7 +77,7 @@ swig -cffi -module module-name file-name files and the various things which you can do with them.
-@@ -118,7 +118,7 @@ swig -cffi -help -
This feature to SWIG (for CFFI) is very new and still far from @@ -568,7 +568,7 @@ If you have any questions, suggestions, patches, etc., related to CFFI module feel free to contact us on the SWIG mailing list, and also please add a "[CFFI]" tag in the subject line. -
@@ -608,7 +608,7 @@ Note that the block %{ ... %} is effectively a shortcut for
-@@ -638,7 +638,7 @@ swig -clisp -module module-name file-name interface file for the CLISP module. The CLISP module tries to produce code which is both human readable and easily modifyable.
-
@@ -671,7 +671,7 @@ and global variables will be created otherwise only definitions for
-
@@ -795,7 +795,7 @@ struct bar { -
The current SWIG implementation is designed to work with Lua 5.0.x, 5.1.x and 5.2.x. It should work with later versions of Lua, but certainly not with Lua 4.0 due to substantial API changes. It is possible to either static link or dynamic link a Lua module into the interpreter (normally Lua static links its libraries, as dynamic linking is not available on all platforms). SWIG also has support for eLua starting from eLua 0.8. Due to substantial changes between SWIG 2.x and SWIG 3.0 and unavailability of testing platform, eLua status was downgraded to 'experimental'.
-@@ -128,7 +140,7 @@ $ swig -lua -eluac example.i The -elua option puts all the C function wrappers and variable get/set wrappers in rotables. It also generates a metatable which will control the access to these variables from eLua. It also offers a significant amount of module size compression. On the other hand, the -eluac option puts all the wrappers in a single rotable. With this option, no matter how huge the module, it will consume no additional microcontroller SRAM (crass compression). There is a catch though: Metatables are not generated with -eluac. To access any value from eLua, one must directly call the wrapper function associated with that value.
-@@ -169,7 +181,7 @@ swig -lua -help -
@@ -240,7 +252,7 @@ LUALIB_API int ( luaopen_mod )(lua_State *L ); More information on building and configuring eLua can be found here: http://www.eluaproject.net/doc/v0.8/en_building.html
-@@ -308,7 +320,7 @@ Is quite obvious (Go back and consult the Lua documents on how to enable loadlib -
@@ -326,19 +338,19 @@ $ ./my_lua >
By default, SWIG tries to build a very natural Lua interface to your C/C++ code. This section briefly covers the essential aspects of this wrapping.
-The SWIG module directive specifies the name of the Lua module. If you specify `module example', then everything is wrapped into a Lua table 'example' containing all the functions and variables. When choosing a module name, make sure you don't use the same name as a built-in Lua command or standard module name.
-@@ -379,7 +391,7 @@ It is also possible to rename the module with an assignment. 24 -
@@ -467,7 +479,7 @@ If you have used the -eluac option for your eLua module, you will have In general, functions of the form "variable_get()" and "variable_set()" are automatically generated by SWIG for use with -eluac.
-@@ -502,7 +514,9 @@ If you're using eLua and have used -elua or -eluac to generate Hello World -
Enums are exported into a class table. For example, given some enums:
@@ -556,7 +570,7 @@ If the -no-old-metatable-bindings option is used, then these old-style It is worth mentioning, that example.Test.TEST1 and example.Test_TEST1 are different entities and changing one does not change the other. Given the fact that these are constantes and they are not supposed to be changed, it is up to you to avoid such issues. -@@ -594,7 +608,7 @@ Lua enforces the integrity of its userdata, so it is virtually impossible to cor nil -
@@ -698,7 +712,7 @@ For eLua with the -eluac option, structure manipulation has to be perfo In general, functions of the form "new_struct()", "struct_member_get()", "struct_member_set()" and "free_struct()" are automatically generated by SWIG for each structure defined in C. (Please note: This doesn't apply for modules generated with the -elua option)
-@@ -770,7 +784,7 @@ Both style names are generated by default now. However, if the -no-old-metatable-bindings option is used, then the backward compatible names are not generated in addition to ordinary ones.
-@@ -795,7 +809,7 @@ then the function spam() accepts a Foo pointer or a pointer to any clas
It is safe to use multiple inheritance with SWIG.
-@@ -826,7 +840,7 @@ Foo spam7();
then all three functions will return a pointer to some Foo object. Since the third function (spam7) returns a value, newly allocated memory is used to hold the result and a pointer is returned (Lua will release this memory when the return value is garbage collected). The other two are pointers which are assumed to be managed by the C code and so will not be garbage collected.
-@@ -912,7 +926,7 @@ Please refer to the "SWIG and C++" chapter for more information about overloadin
Dealing with the Lua coercion mechanism, the priority is roughly (integers, floats, strings, userdata). But it is better to rename the functions rather than rely upon the ordering.
-@@ -1024,7 +1038,7 @@ It is also possible to overload the operator[], but currently this cann }; -
@@ -1080,7 +1094,7 @@ true Extend works with both C and C++ code, on classes and structs. It does not modify the underlying object in any way---the extensions only show up in the Lua interface. The only item to take note of is the code has to use the '$self' instead of 'this', and that you cannot access protected/private members of the code (as you are not officially part of the class).
-If you have a function that allocates memory like this,
@@ -1104,7 +1118,7 @@ char *foo();This will release the allocated memory.
-@@ -1139,7 +1153,7 @@ In Lua:
Obviously, there is more to template wrapping than shown in this example. More details can be found in the SWIG and C++ chapter. Some more complicated examples will appear later.
-
@@ -1191,7 +1205,7 @@ If you ever need to access the underlying pointer returned by operator->(
> f = p:__deref__() -- Returns underlying Foo *
-26.3.16 C++ Exceptions
+27.3.16 C++ Exceptions
@@ -1334,7 +1348,9 @@ and the "Exception handling add exception specification to functions or globally (respectively).
-Since SWIG-3.0.0 C++ namespaces are supported via the %nspace feature.
@@ -1379,7 +1395,9 @@ Now, from Lua usage is as follows: 19 > -If SWIG is running in backward compatible way, i.e. without -no-old-metatable-bindings option, then additional old-style names are generated(notice the underscore):
@@ -1391,8 +1409,12 @@ If SWIG is running in backward compatible way, i.e. without -no-old-metatabl 11 > -If SWIG is launched without -no-old-metatable-bindings option, then it enters backward-compatible mode. While in this mode, it tries to generate additional names for static functions, class static constants and class enums. Those names are in a form $classname_$symbolname and are added to the scope surrounding the class. @@ -1434,7 +1456,9 @@ surrounding scope without any prefixing. Pretending that Test2 is a struct, not > -
The internal organization of inheritance has changed. Consider the following C++ code:
%module example @@ -1473,12 +1497,12 @@ function >
This section explains what typemaps are and how to use them. The default wrapping behaviour of SWIG is enough in most cases. However sometimes SWIG may need a little additional assistance to know which typemap to apply to provide the best wrapping. This section will be explaining how to use typemaps to best effect
-A typemap is nothing more than a code generation rule that is attached to a specific C datatype. For example, to convert integers from Lua to C, you might define a typemap like this:
@@ -1506,7 +1530,7 @@ Received an integer : 6 720 -There are many ready written typemaps built into SWIG for all common types (int, float, short, long, char*, enum and more), which SWIG uses automatically, with no effort required on your part.
@@ -1559,7 +1583,7 @@ void swap(int *sx, int *sy);Note: C++ references must be handled exactly the same way. However SWIG will automatically wrap a const int& as an input parameter (since that it obviously input).
-Arrays present a challenge for SWIG, because like pointers SWIG does not know whether these are input or output values, nor @@ -1623,7 +1647,7 @@ and Lua tables to be 1..N, (the indexing follows the norm for the language). In
Note: SWIG also can support arrays of pointers in a similar manner.
-Several C++ libraries use a pointer-pointer functions to create its objects. These functions require a pointer to a pointer which is then filled with the pointer to the new object. Microsoft's COM and DirectX as well as many other libraries have this kind of function. An example is given below:
@@ -1657,7 +1681,7 @@ int Create_Math(iMath** pptr); // its creator (assume it mallocs) ptr=nil -- the iMath* will be GC'ed as normal -This section describes how you can modify SWIG's default wrapping behavior for various C/C++ datatypes using the %typemap directive. This is an advanced topic that assumes familiarity with the Lua C API as well as the material in the "Typemaps" chapter.
@@ -1666,7 +1690,7 @@ ptr=nil -- the iMath* will be GC'ed as normalBefore proceeding, you should read the previous section on using typemaps, and look at the existing typemaps found in luatypemaps.swg and typemaps.i. These are both well documented and fairly easy to read. You should not attempt to write your own typemaps until you have read and can understand both of these files (they may well also give you an idea to base your work on).
-There are many different types of typemap that can be written, the full list can be found in the "Typemaps" chapter. However the following are the most commonly used ones.
@@ -1679,7 +1703,7 @@ ptr=nil -- the iMath* will be GC'ed as normal (the syntax for the typecheck is different from the typemap, see typemaps for details). -This section explains the SWIG specific Lua-C API. It does not cover the main Lua-C api, as this is well documented and not worth covering.
@@ -1728,7 +1752,7 @@ This macro, when called within the context of a SWIG wrapped function, will disp@@ -1737,7 +1761,7 @@ This section covers adding of some small extra bits to your module to add the la -
@@ -1756,7 +1780,7 @@ int native_function(lua_State*L) // my native code The %native directive in the above example, tells SWIG that there is a function int native_function(lua_State*L); which is to be added into the module under the name 'my_func'. SWIG will not add any wrapper for this function, beyond adding it into the function table. How you write your code is entirely up to you.
-@@ -1794,7 +1818,7 @@ Good uses for this feature is adding of new code, or writing helper functions to See Examples/lua/arrays for an example of this code.
-@@ -1805,7 +1829,7 @@ See Examples/lua/arrays for an example of this code.
-@@ -1865,7 +1889,7 @@ end
That way when you call 'a=example.Foo', the interpreter looks at the table 'example' sees that there is no field 'Foo' and calls __index. This will in turn check in '.get' table and find the existence of 'Foo' and then return the value of the C function call 'Foo_get()'. Similarly for the code 'example.Foo=10', the interpreter will check the table, then call the __newindex which will then check the '.set' table and call the C function 'Foo_set(10)'.
-@@ -1945,7 +1969,7 @@ Note: Both the opaque structures (like the FILE*) and normal wrapped classes/str
Note: Operator overloads are basically done in the same way, by adding functions such as '__add' & '__call' to the class' metatable. The current implementation is a bit rough as it will add any member function beginning with '__' into the metatable too, assuming its an operator overload.
-diff --git a/Doc/Manual/Modula3.html b/Doc/Manual/Modula3.html index 329127a0f..0bf9f2995 100644 --- a/Doc/Manual/Modula3.html +++ b/Doc/Manual/Modula3.html @@ -5,7 +5,7 @@
-@@ -84,7 +84,7 @@ FFTW -
@@ -131,10 +131,10 @@ functions), but it doesn't allow you to easily integrate a Modula-3 module into a C/C++ project.
-@@ -283,7 +283,7 @@ and the principal type must be renamed (%typemap).
-@@ -384,10 +384,10 @@ There is no C++ library I wrote a SWIG interface for, so I'm not sure if this is possible or sensible, yet.
-@@ -400,7 +400,7 @@ For testing examples I use Critical Mass cm3.
-@@ -477,10 +477,10 @@ Instead generate templates for some basic typemaps. -
@@ -694,7 +694,7 @@ consist of the following parts: -
@@ -746,7 +746,7 @@ that I'd like to automate.
-@@ -759,7 +759,7 @@ is not really useful, yet.
-@@ -792,7 +792,7 @@ IMPORT M3toC;
@@ -816,7 +816,7 @@ you should declare %typemap("m3wrapinconv:throws") blah * %{OSError.E%}.
-@@ -863,10 +863,10 @@ where almost everything is generated by a typemap: -
@@ -77,7 +77,7 @@ where you want to create a collection of modules. Each module in the collection is created via separate invocations of SWIG.
-@@ -176,7 +176,7 @@ in parallel from multiple threads as SWIG provides no locking - for more on that issue, read on.
-@@ -242,7 +242,7 @@ can peacefully coexist. So the type structures are separated by the is empty. Only modules compiled with the same pair will share type information.
-As described in The run-time type checker, @@ -279,7 +279,7 @@ SWIG_TYPE_TABLE to be the same as the module whose types you are trying to access.
-@@ -290,7 +290,7 @@ into it. This is very often NOT what you want and it can lead to unexpect behavior. When working with dynamically loadable modules, you should try to work exclusively with shared libraries.
-@@ -298,7 +298,7 @@ Due to the complexity of working with shared libraries and multiple modules, it an outside reference. John Levine's "Linkers and Loaders" is highly recommended.
-diff --git a/Doc/Manual/Mzscheme.html b/Doc/Manual/Mzscheme.html index 3b49a2974..40173d720 100644 --- a/Doc/Manual/Mzscheme.html +++ b/Doc/Manual/Mzscheme.html @@ -8,7 +8,7 @@
-@@ -166,7 +166,7 @@ Some points of interest:
diff --git a/Doc/Manual/Ocaml.html b/Doc/Manual/Ocaml.html index 2eef3ad4d..ec46d6e50 100644 --- a/Doc/Manual/Ocaml.html +++ b/Doc/Manual/Ocaml.html @@ -6,7 +6,7 @@
-@@ -99,7 +99,7 @@ file Examples/Makefile illustrate how to compile and link SWIG modules that will be loaded dynamically. This has only been tested on Linux so far.
-@@ -122,7 +122,7 @@ you will compile the file example_wrap.c with ocamlc or the resulting .ml and .mli files as well, and do the final link with -custom (not needed for native link).
-@@ -158,7 +158,7 @@ the user more freedom with respect to custom typing.
@@ -234,7 +234,7 @@ let b = C_string (getenv "PATH") -
@@ -248,7 +248,7 @@ When linking any ocaml bytecode with your module, use the -custom option is not needed when you build native code.
-@@ -259,7 +259,7 @@ liberal with pointer types may not compile under the C++ compiler. Most code meant to be compiled as C++ will not have problems.
-@@ -360,7 +360,7 @@ is that you must append them to the return list with swig_result = caml_list_a signature for a function that uses value in this way.
-@@ -394,7 +394,7 @@ it describes the output SWIG will generate for class definitions. -
@@ -457,7 +457,7 @@ val x : Enum_test.c_obj = C_enum `a
@@ -470,10 +470,10 @@ functions imported from different modules. You must convert values to master values using the swig_val function before sharing them with another module.
-@@ -494,7 +494,7 @@ arrays of simple types with known bounds in your code, but this only works for arrays whose bounds are completely specified.
-@@ -507,7 +507,7 @@ SWIG can't predict which of these methods will be used in the array, so you have to specify it for yourself in the form of a typemap.
-@@ -521,7 +521,7 @@ Consider writing an object when the ending condition of your array is complex, such as using a required sentinel, etc.
-@@ -572,7 +572,7 @@ void printfloats( float *tab, int len ); -
@@ -615,7 +615,7 @@ the underlying pointer, so using create_[x]_from_ptr alters the returned value for the same object.
-@@ -695,7 +695,7 @@ baz # -
@@ -725,7 +725,7 @@ public: }; -
@@ -743,7 +743,7 @@ bash-2.05a$ ocamlmktop -custom swig.cmo -I `camlp4 -where` \ -L$QTPATH/lib -cclib -lqt
@@ -770,10 +770,10 @@ Assuming you have a working installation of QT, you will see a window containing the string "hi" in a button. -29.2.5 Director Classes
+30.2.5 Director Classes
-29.2.5.1 Director Introduction
+30.2.5.1 Director Introduction
@@ -800,7 +800,7 @@ class foo { };
@@ -828,7 +828,7 @@ In this example, I'll examine the objective caml code involved in providing an overloaded class. This example is contained in Examples/ocaml/shapes.
-The "arginit" typemap is used to set the initial value of a @@ -2802,7 +2802,7 @@ applications. For example:
} -The "default" typemap is used to turn an argument into a @@ -2827,7 +2827,7 @@ arguments that follow must have default values. See the 36.7.6.6 "check" typemap +
The "check" typemap is used to supply value checking code @@ -2842,7 +2842,7 @@ arguments have been converted. For example:
} -The "argout" typemap is used to return values from arguments. @@ -2896,7 +2896,7 @@ some function like SWIG_Ruby_AppendOutput.
See the typemaps.i library for examples.
-The "freearg" typemap is used to cleanup argument data. It is @@ -2923,7 +2923,7 @@ This code is also placed into a special variable $cleanup that may be used in other typemaps whenever a wrapper function needs to abort prematurely.
-The "newfree" typemap is used in conjunction with the %newobject @@ -2947,7 +2947,7 @@ string *foo();
See Object ownership and %newobject for further details.
-The "memberin" typemap is used to copy data from an @@ -2965,21 +2965,21 @@ example:
already provides a default implementation for arrays, strings, and other objects. -The "varin" typemap is used to convert objects in the target language to C for the purposes of assigning to a C/C++ global variable. This is implementation specific.
-The "varout" typemap is used to convert a C/C++ object to an object in the target language when reading a C/C++ global variable. This is implementation specific.
-The "throws" typemap is only used when SWIG parses a C++ @@ -3020,7 +3020,7 @@ specification yet they do throw exceptions, SWIG cannot know how to deal with them. For a neat way to handle these, see the Exception handling with %exception section.
-Converts C++ objects in director @@ -3079,7 +3079,7 @@ referring to the class itself. -
Converts Ruby objects in director @@ -3152,7 +3152,7 @@ exception.
-Output argument processing in director @@ -3210,19 +3210,19 @@ referring to the instance of the class itself -
Cleanup of function return values
-Setting of C global variables
-@@ -3272,7 +3272,7 @@ so that their values can be properly assigned.
When you write a typemap, you usually have to work directly @@ -3287,7 +3287,7 @@ stick to the swig functions instead of the native Ruby functions. That should help you avoid having to rewrite a lot of typemaps across multiple languages.
-Here, while the Ruby versions return the value directly, the SWIG @@ -3397,7 +3397,7 @@ versions do not, but return a status value to indicate success (SWIG_OK -
RSTRING_LEN(str)
@@ -3420,7 +3420,7 @@ versions do not, but return a status value to indicate success (SWIG_OK void rb_raise(VALUE exception, const char *fmt,
@@ -3499,7 +3499,7 @@ message to standard error if Ruby was invoked with the -w
flag. The given format string fmt and remaining
arguments are interpreted as with printf().
-36.7.8.5 Iterators
+37.7.8.5 Iterators
void rb_iter_break()
@@ -3545,14 +3545,14 @@ VALUE), VALUE value)This section includes a few examples of typemaps. For more examples, you might look at the examples in the Example/ruby directory.
-A common problem in many C programs is the processing of @@ -3617,7 +3617,7 @@ array. Since dynamic memory allocation is used to allocate memory for the array, the "freearg" typemap is used to later release this memory after the execution of the C function.
-Ruby's solution to the "keyword arguments" capability of some @@ -3831,7 +3831,7 @@ memory leak. Fortunately, this typemap is a lot easier to write:
program that uses the extension, can be found in the Examples/ruby/hashargs directory of the SWIG distribution. -Occasionally, it might be necessary to convert pointer values @@ -3890,7 +3890,7 @@ For example:
} - VALUE Data_Wrap_Struct(VALUE class, void
@@ -3917,7 +3917,7 @@ as above.
type c-type from the data object obj
and assigns that pointer to ptr.
-36.7.13 Example: STL Vector to Ruby Array
+37.7.13 Example: STL Vector to Ruby Array
Another use for macros and type maps is to create a Ruby array @@ -4009,7 +4009,7 @@ STL with ruby, you are advised to use the standard swig STL library, which does much more than this. Refer to the section called the C++ Standard Template Library. -
@@ -4043,7 +4043,7 @@ generate ri documentation from a c wrap file, you could do:
$ rdoc -r file_wrap.c -@@ -4073,7 +4073,7 @@ layout of controls on a panel, etc. to be loaded from an XML file." %module(docstring=DOCSTRING) xrc -
Since SWIG does know everything about the function it wraps, @@ -4094,7 +4094,7 @@ several options for autodoc controlled by the value given to the feature, described below.
-@@ -4118,7 +4118,7 @@ Then Ruby code like this will be generated: ... -
@@ -4138,7 +4138,7 @@ this: ... -
@@ -4150,7 +4150,7 @@ parameter types with the "2" option will result in Ruby code like this:
-@@ -4171,7 +4171,7 @@ Parameters: bar - Bar -
@@ -4187,7 +4187,7 @@ generated string. For example: void GetPosition(int* OUTPUT, int* OUTPUT); -
@@ -4198,10 +4198,10 @@ docstring associated with classes, function or methods are output. If an item already has an autodoc string then it is combined with the docstring and they are output together.
-SWIG allows operator overloading with, by using the %extend @@ -4382,7 +4382,7 @@ separate method for handling inequality since Ruby parses the expression a != b as !(a == b).
- The chapter on Working
@@ -4508,7 +4508,7 @@ irb(main):005:0> c.getX()
5.0
- The Ruby language doesn't support multiple inheritance, but
@@ -4575,7 +4575,7 @@ matching rules used for other kinds of features apply (see the chapter
on "Customization
Features") for more details). One of the most common issues in generating SWIG bindings for
@@ -4598,7 +4598,7 @@ to C++ (or vice versa) depending on what function or methods are
invoked. Clearly, developing a SWIG wrapper requires a thorough
understanding of how the underlying library manages memory. Ruby uses a mark and sweep garbage collector. When the garbage
@@ -4630,7 +4630,7 @@ any memory has been allocated in creating the underlying C struct or
C++ struct, then a "free" function must be defined that deallocates
this memory. As described above, memory management depends on clearly
@@ -4775,7 +4775,7 @@ public:
This code can be seen in swig/examples/ruby/tracking. The remaining parts of this section will use the class library
@@ -5000,7 +5000,7 @@ However, if you implement your own free functions (see below) you may
also have to call the SWIG_RubyRemoveTracking and RubyUnlinkObjects
methods. With a bit more testing, we see that our class library still
@@ -5129,7 +5129,7 @@ irb(main):016:0>
This code can be seen in swig/examples/ruby/mark_function. By default, SWIG creates a "free" function that is called when
@@ -5296,7 +5296,7 @@ been freed, and thus raises a runtime exception. This code can be seen in swig/examples/ruby/free_function. As has been said, the Ruby GC runs and marks objects before
diff --git a/Doc/Manual/SWIGPlus.html b/Doc/Manual/SWIGPlus.html
index aa02b2dee..f9558994b 100644
--- a/Doc/Manual/SWIGPlus.html
+++ b/Doc/Manual/SWIGPlus.html
@@ -4972,6 +4972,7 @@ public:
If the target language supports the nested classes concept (like Java), the nested C++ classes
are wrapped as nested target language proxy classes. (In case of Java - "static" nested classes.)
diff --git a/Doc/Manual/Tcl.html b/Doc/Manual/Tcl.html
index 9b9cd7218..45eebbf5e 100644
--- a/Doc/Manual/Tcl.html
+++ b/Doc/Manual/Tcl.html
@@ -6,7 +6,7 @@
@@ -109,7 +109,7 @@ build a Tcl extension module. To finish building the module, you
need to compile this file and link it with the rest of your program.
@@ -127,7 +127,7 @@ this is the case, you should probably make a symbolic link so that tcl.h
-
@@ -163,7 +163,7 @@ The name of the module is specified using the %module directive or the
-module command line option.
@@ -229,7 +229,7 @@ minimal in most situations (and quite frankly not worth the extra
hassle in the opinion of this author).
@@ -357,7 +357,7 @@ to the default system configuration (this requires root access and you will need
the man pages).
@@ -440,7 +440,7 @@ erratic program behavior. If working with lots of software components, you
might want to investigate using a more formal standard such as COM.
@@ -467,7 +467,7 @@ also introduce problems on platforms that support more than one
linking standard (e.g., -o32 and -n32 on Irix).
@@ -486,7 +486,7 @@ option will append the prefix to the name when creating a command and
call it "Foo_bar".
@@ -508,7 +508,7 @@ When the -namespace option is used, objects in the module
are always accessed with the namespace name such as Foo::bar.
@@ -519,7 +519,7 @@ covers the process of using SWIG with Microsoft Visual C++.
although the procedure may be similar with other compilers.
@@ -577,7 +577,7 @@ MSDOS > tclsh80
%
@@ -640,7 +640,7 @@ to get you started. With a little practice, you'll be making lots of
Tcl extensions.
@@ -651,7 +651,7 @@ classes. This section briefly covers the essential aspects of this
wrapping.
@@ -685,7 +685,7 @@ To fix this, supply an extra argument to load like this:
-
@@ -710,7 +710,7 @@ like you think it does:
%
-
@@ -790,7 +790,7 @@ extern char *path; // Read-only (due to %immutable)
-
@@ -874,7 +874,7 @@ When an identifier name is given, it is used to perform an implicit hash-table l
conversion. This allows the global statement to be omitted.
@@ -970,7 +970,7 @@ C-style cast may return a bogus result whereas as the C++-style cast will return
None if the conversion can't be performed.
@@ -1252,7 +1252,7 @@ Note: Tcl only destroys the underlying object if it has ownership. See the
memory management section that appears shortly.
@@ -1319,7 +1319,7 @@ In Tcl, the static member is accessed as follows:
-
@@ -1368,7 +1368,7 @@ For instance:
It is safe to use multiple inheritance with SWIG.
@@ -1422,7 +1422,7 @@ to hold the result and a pointer is returned (Tcl will release this memory
when the return value is garbage collected).
@@ -1545,7 +1545,7 @@ first declaration takes precedence.
Please refer to the "SWIG and C++" chapter for more information about overloading.
@@ -1647,7 +1647,7 @@ There are ways to make this operator appear as part of the class using the %
Keep reading.
@@ -1711,7 +1711,7 @@ utilizes thousands of small deeply nested namespaces each with
identical symbol names, well, then you get what you deserve.
@@ -1763,7 +1763,7 @@ More details can be found in the SWIG and C++
examples will appear later.
@@ -1847,7 +1847,7 @@ simply use the __deref__() method. For example:
-
@@ -1860,7 +1860,7 @@ of low-level details were omitted. This section provides a brief overview
of how the proxy classes work.
@@ -1925,7 +1925,7 @@ function. This allows objects to be encapsulated objects that look a lot like
as shown in the last section.
@@ -2113,7 +2113,7 @@ typemaps--an advanced topic discussed later.
@@ -2301,7 +2301,7 @@ set c [lindex $dim 1]
-
@@ -2435,7 +2435,7 @@ Since SWIG's exception handling is user-definable, you are not limited to C++ ex
See the chapter on "Customization Features" for more examples.
@@ -2452,7 +2452,7 @@ Typemaps are only used if you want to change some aspect of the primitive
C-Tcl interface.
@@ -2569,7 +2569,7 @@ parameter is omitted):
-
@@ -2707,7 +2707,7 @@ Initialize an argument to a value before any conversions occur.
Examples of these methods will appear shortly.
@@ -2778,7 +2778,7 @@ properly assigned.
The Tcl name of the wrapper function being created.
-
@@ -2840,7 +2840,7 @@ argv[2] = Larry
3
-
@@ -2882,7 +2882,7 @@ result, a Tcl function using these typemaps will work like this :
%
-
@@ -2959,7 +2959,7 @@ int Tcl_IsShared(Tcl_Obj *obj);
-
@@ -3043,7 +3043,7 @@ work)
-
@@ -3119,7 +3119,7 @@ For example:
-
@@ -3191,7 +3191,7 @@ As a final note, most SWIG examples do not yet use the
to use the load command instead.
@@ -3290,7 +3290,7 @@ danger of blowing something up (although it is easily accomplished
with an out of bounds array access).
@@ -3411,7 +3411,7 @@ short, but clever Tcl script can be combined with SWIG to do many
interesting things.
diff --git a/Doc/Manual/Typemaps.html b/Doc/Manual/Typemaps.html
index 20ad085f8..cba524149 100644
--- a/Doc/Manual/Typemaps.html
+++ b/Doc/Manual/Typemaps.html
@@ -6,7 +6,7 @@
@@ -112,7 +112,7 @@ to re-read the earlier chapters if you have found your way to this
chapter with only a vague idea of what SWIG already does by default.
@@ -205,7 +205,7 @@ to read the extension documentation for your favorite language to know
how it works (an exercise left to the reader).
@@ -306,7 +306,7 @@ parts of the generated wrapper functions. Because arbitrary code can be insert
possible to completely change the way in which values are converted.
@@ -408,7 +408,7 @@ In this case, a single input object is expanded into a pair of C arguments. Thi
provides a hint to the unusual variable naming scheme involving $1, $2, and so forth.
@@ -464,7 +464,7 @@ typedef int size_t;
then SWIG already knows that the int typemaps apply. You don't have to do anything.
@@ -576,7 +576,7 @@ typemaps that expand upon this list. For example, the Java module defines a var
aspects of the Java bindings. Consult language specific documentation for further details.
@@ -639,7 +639,7 @@ void wrap_foo(char *s, int x) {
@@ -657,7 +657,7 @@ SWIG can also be viewed as has having a second set of aspects based around %exception are also cross-cutting concerns as they encapsulate code that can be used to add logging or exception handling to any function.
@@ -677,14 +677,14 @@ of "The C Programming Language" by Kernighan and Ritchie or
"The C++ Programming Language" by Stroustrup before going any further.
This section describes the behavior of the %typemap directive itself.
@@ -797,7 +797,7 @@ Admittedly, it's not the most readable syntax at first glance. However, the pur
individual pieces will become clear.
@@ -847,7 +847,7 @@ class Foo {
-
@@ -905,7 +905,7 @@ The patterns for %apply follow the same rules as for %typemap.
-
@@ -938,7 +938,7 @@ For example:
after the clear operation.
@@ -1018,7 +1018,7 @@ It should be noted that for scoping to work, SWIG has to know that stringclass string.
@@ -1026,7 +1026,7 @@ The section describes the pattern matching rules by which C/C++ datatypes are as
The matching rules can be observed in practice by using the debugging options also described.
@@ -1125,7 +1125,7 @@ void F(int x[1000]); // int [ANY] rule (typemap 5)
stripped all qualifiers in one step.
@@ -1300,7 +1300,7 @@ void go(Struct aStruct);
-
@@ -1438,7 +1438,7 @@ Finally the best way to view the typemap matching rules in action is via the
-
@@ -1468,7 +1468,7 @@ but all subsequent arguments must match exactly.
@@ -1627,7 +1627,7 @@ are similar to those for specialized template handling.
@@ -1840,7 +1840,7 @@ Also the types may be displayed slightly differently - char const * and
36.9.3 Specifying Mixin Modules
+37.9.3 Specifying Mixin Modules
36.10 Memory Management
+37.10 Memory Management
36.10.1 Mark and Sweep Garbage Collector
+37.10.1 Mark and Sweep Garbage Collector
36.10.2 Object Ownership
+37.10.2 Object Ownership
36.10.3 Object Tracking
+37.10.3 Object Tracking
36.10.4 Mark Functions
+37.10.4 Mark Functions
36.10.5 Free Functions
+37.10.5 Free Functions
36.10.6 Embedded Ruby and the C++ Stack
+37.10.6 Embedded Ruby and the C++ Stack
6.27 Nested classes
+
37 SWIG and Tcl
+38 SWIG and Tcl
@@ -83,7 +83,7 @@ Tcl 8.0 or a later release. Earlier releases of SWIG supported Tcl 7.x, but
this is no longer supported.
-
37.1 Preliminaries
+38.1 Preliminaries
37.1.1 Getting the right header files
+38.1.1 Getting the right header files
37.1.2 Compiling a dynamic module
+38.1.2 Compiling a dynamic module
37.1.3 Static linking
+38.1.3 Static linking
37.1.4 Using your module
+38.1.4 Using your module
37.1.5 Compilation of C++ extensions
+38.1.5 Compilation of C++ extensions
37.1.6 Compiling for 64-bit platforms
+38.1.6 Compiling for 64-bit platforms
37.1.7 Setting a package prefix
+38.1.7 Setting a package prefix
37.1.8 Using namespaces
+38.1.8 Using namespaces
37.2 Building Tcl/Tk Extensions under Windows 95/NT
+38.2 Building Tcl/Tk Extensions under Windows 95/NT
37.2.1 Running SWIG from Developer Studio
+38.2.1 Running SWIG from Developer Studio
37.2.2 Using NMAKE
+38.2.2 Using NMAKE
37.3 A tour of basic C/C++ wrapping
+38.3 A tour of basic C/C++ wrapping
37.3.1 Modules
+38.3.1 Modules
37.3.2 Functions
+38.3.2 Functions
37.3.3 Global variables
+38.3.3 Global variables
37.3.4 Constants and enums
+38.3.4 Constants and enums
37.3.5 Pointers
+38.3.5 Pointers
37.3.6 Structures
+38.3.6 Structures
37.3.7 C++ classes
+38.3.7 C++ classes
37.3.8 C++ inheritance
+38.3.8 C++ inheritance
37.3.9 Pointers, references, values, and arrays
+38.3.9 Pointers, references, values, and arrays
37.3.10 C++ overloaded functions
+38.3.10 C++ overloaded functions
37.3.11 C++ operators
+38.3.11 C++ operators
37.3.12 C++ namespaces
+38.3.12 C++ namespaces
37.3.13 C++ templates
+38.3.13 C++ templates
37.3.14 C++ Smart Pointers
+38.3.14 C++ Smart Pointers
37.4 Further details on the Tcl class interface
+38.4 Further details on the Tcl class interface
37.4.1 Proxy classes
+38.4.1 Proxy classes
37.4.2 Memory management
+38.4.2 Memory management
37.5 Input and output parameters
+38.5 Input and output parameters
37.6 Exception handling
+38.6 Exception handling
37.7 Typemaps
+38.7 Typemaps
37.7.1 What is a typemap?
+38.7.1 What is a typemap?
37.7.2 Tcl typemaps
+38.7.2 Tcl typemaps
37.7.3 Typemap variables
+38.7.3 Typemap variables
37.7.4 Converting a Tcl list to a char **
+38.7.4 Converting a Tcl list to a char **
37.7.5 Returning values in arguments
+38.7.5 Returning values in arguments
37.7.6 Useful functions
+38.7.6 Useful functions
37.7.7 Standard typemaps
+38.7.7 Standard typemaps
37.7.8 Pointer handling
+38.7.8 Pointer handling
37.8 Turning a SWIG module into a Tcl Package.
+38.8 Turning a SWIG module into a Tcl Package.
37.9 Building new kinds of Tcl interfaces (in Tcl)
+38.9 Building new kinds of Tcl interfaces (in Tcl)
37.9.1 Proxy classes
+38.9.1 Proxy classes
37.10 Tcl/Tk Stubs
+38.10 Tcl/Tk Stubs
10 Typemaps
+11 Typemaps
@@ -95,7 +95,7 @@
-
10.1 Introduction
+11.1 Introduction
10.1.1 Type conversion
+11.1.1 Type conversion
10.1.2 Typemaps
+11.1.2 Typemaps
10.1.3 Pattern matching
+11.1.3 Pattern matching
10.1.4 Reusing typemaps
+11.1.4 Reusing typemaps
10.1.5 What can be done with typemaps?
+11.1.5 What can be done with typemaps?
10.1.6 What can't be done with typemaps?
+11.1.6 What can't be done with typemaps?
10.1.7 Similarities to Aspect Oriented Programming
+11.1.7 Similarities to Aspect Oriented Programming
10.1.8 The rest of this chapter
+11.1.8 The rest of this chapter
10.2 Typemap specifications
+11.2 Typemap specifications
10.2.1 Defining a typemap
+11.2.1 Defining a typemap
10.2.2 Typemap scope
+11.2.2 Typemap scope
10.2.3 Copying a typemap
+11.2.3 Copying a typemap
10.2.4 Deleting a typemap
+11.2.4 Deleting a typemap
10.2.5 Placement of typemaps
+11.2.5 Placement of typemaps
10.3 Pattern matching rules
+11.3 Pattern matching rules
10.3.1 Basic matching rules
+11.3.1 Basic matching rules
10.3.2 Typedef reductions matching
+11.3.2 Typedef reductions matching
10.3.3 Default typemap matching rules
+11.3.3 Default typemap matching rules
10.3.4 Multi-arguments typemaps
+11.3.4 Multi-arguments typemaps
10.3.5 Matching rules compared to C++ templates
+11.3.5 Matching rules compared to C++ templates
10.3.6 Debugging typemap pattern matching
+11.3.6 Debugging typemap pattern matching
@@ -1848,7 +1848,7 @@ This section describes rules by which typemap code is inserted into the generated wrapper code.
-@@ -1926,7 +1926,7 @@ a block scope when it is emitted. This sometimes results in a less complicated Note that only the third of the three typemaps have the typemap code passed through the SWIG preprocessor.
-@@ -2077,7 +2077,7 @@ each type must have its own local variable declaration. -
@@ -2329,7 +2329,7 @@ Another approach, which only works for arrays is to use the $1_basetype -
@@ -2341,7 +2341,7 @@ it is done during the SWIG parsing/compilation stages. The following special variable macros are available across all language modules.
-@@ -2352,7 +2352,7 @@ For example, $descriptor(std::vector<int> *) will expand into Run-time type checker usage section.
-@@ -2409,7 +2409,7 @@ The result is the following expansion -
@@ -2417,7 +2417,7 @@ The set of typemaps recognized by a language module may vary. However, the following typemap methods are nearly universal:
-@@ -2477,7 +2477,7 @@ Usually numinputs is not specified, whereupon the default value is 1, t is the same as the old "ignore" typemap.
-@@ -2503,7 +2503,7 @@ If you define new "in" typemaps and your program uses overloaded method "typecheck" typemaps. More details about this follow in the Typemaps and overloading section.
-@@ -2534,7 +2534,7 @@ $symname - Name of function/method being wrapped The "out" typemap supports an optional attribute flag called "optimal". This is for code optimisation and is detailed in the Optimal code generation when returning by value section.
-@@ -2553,7 +2553,7 @@ For example: -
@@ -2586,7 +2586,7 @@ See the Default/optional arguments sec for further information on default argument wrapping.
-@@ -2605,7 +2605,7 @@ converted. For example: -
@@ -2651,7 +2651,7 @@ return values are often appended to return value of the function. See the typemaps.i library file for examples.
-@@ -2684,7 +2684,7 @@ be used in other typemaps whenever a wrapper function needs to abort prematurely.
-@@ -2713,7 +2713,7 @@ string *foo(); See Object ownership and %newobject for further details.
-@@ -2735,7 +2735,7 @@ It is rarely necessary to write "memberin" typemaps---SWIG already provides a default implementation for arrays, strings, and other objects.
-@@ -2743,7 +2743,7 @@ The "varin" typemap is used to convert objects in the target language to C for t purposes of assigning to a C/C++ global variable. This is implementation specific.
-@@ -2751,7 +2751,7 @@ The "varout" typemap is used to convert a C/C++ object to an object in the targe language when reading a C/C++ global variable. This is implementation specific.
-@@ -2797,7 +2797,7 @@ Note that if your methods do not have an exception specification yet they do thr For a neat way to handle these, see the Exception handling with %exception section.
-@@ -2805,7 +2805,7 @@ This section contains a few examples. Consult language module documentation for more examples.
-@@ -3064,7 +3064,7 @@ Now, you will find that member access is quite nice: useless and has since been eliminated. To return structure members, simply use the "out" typemap.
-@@ -3112,7 +3112,7 @@ a NULL pointer. As a result, SWIG can often prevent a potential segmentation faults or other run-time problems by raising an exception rather than blindly passing values to the underlying C/C++ program.
-@@ -3142,7 +3142,7 @@ The example above also shows a common approach of issuing a warning for an as ye %typemap(ruby,in) int "$1 = NUM2INT($input);".
-@@ -3331,7 +3331,7 @@ example.i:7: Warning 475: optimal attribute usage in the out typemap. However, it doesn't always get it right, for example when $1 is within some commented out code.
-@@ -3598,7 +3598,7 @@ with non-consecutive C/C++ arguments; a workaround such as a helper function re- the arguments to make them consecutive will need to be written.
-@@ -3607,7 +3607,7 @@ See the information in the issuing warnings
-@@ -3860,7 +3860,7 @@ fragment usage unless a desire to really get to grips with some powerful but tricky macro and fragment usage that is used in parts of the SWIG typemap library.
-@@ -3893,7 +3893,7 @@ struct A { -
@@ -3939,7 +3939,7 @@ The interested (or very brave) reader can take a look at the fragments.swg file
-@@ -3965,7 +3965,7 @@ language modules.
@@ -4151,7 +4151,7 @@ structures rather than creating new ones. These swig_module_info structures are chained together in a circularly linked list.
-This section covers how to use these functions from typemaps. To learn how to @@ -4245,7 +4245,7 @@ probably just look at the output of SWIG to get a better sense for how types are managed.
-@@ -4556,7 +4556,7 @@ Subsequent "in" typemaps would then perform more extensive type-checking. -
@@ -4642,7 +4642,7 @@ example: -
@@ -4679,7 +4679,7 @@ sure that the typemaps sharing information have exactly the same types and names
-@@ -4739,7 +4739,7 @@ will also match the typemap. One work around is to create an interface file tha the method, but gives the argument a name other than self.
-diff --git a/Doc/Manual/Varargs.html b/Doc/Manual/Varargs.html index 9564fe00b..dac1ad7bc 100644 --- a/Doc/Manual/Varargs.html +++ b/Doc/Manual/Varargs.html @@ -6,7 +6,7 @@
-@@ -232,7 +232,7 @@ can also support real varargs wrapping (with stack-frame manipulation) if you are willing to get hands dirty. Keep reading.
-@@ -301,7 +301,7 @@ Read on for further solutions.
-@@ -412,7 +412,7 @@ mixed argument types such as printf(). Providing general purpose wrappers to such functions presents special problems (covered shortly).
-@@ -589,7 +589,7 @@ really want to elevate your guru status and increase your job security, continue to the next section.
-@@ -841,7 +841,7 @@ provide an argument number for the first extra argument. This can be used to in values. Please consult the chapter on each language module for more details.
-@@ -895,7 +895,7 @@ int my_vprintf(const char *fmt, ...) { -
@@ -964,7 +964,7 @@ design or to provide an alternative interface using a helper function than it is fully general wrapper to a varargs C++ member function.
-diff --git a/Doc/Manual/Warnings.html b/Doc/Manual/Warnings.html index b4d27872c..99b89c425 100644 --- a/Doc/Manual/Warnings.html +++ b/Doc/Manual/Warnings.html @@ -6,7 +6,7 @@
-@@ -55,7 +55,7 @@ where the generated wrapper code will probably compile, but it may not work like you expect.
-@@ -147,7 +147,7 @@ your interface. Ignore the warning messages at your own peril.
-@@ -220,7 +220,7 @@ that is, any warnings suppressed or added in %warnfilter, #pragma S or the -w option.
-@@ -274,7 +274,7 @@ example.i:24: Warning 901: You are really going to regret this usage of blah * s
@@ -309,7 +309,7 @@ or -
@@ -326,7 +326,7 @@ no obvious recovery. There is no mechanism for suppressing error messages.
-@@ -335,7 +335,7 @@ option. This will cause SWIG to exit with a non successful exit code if a warning is encountered.
-@@ -354,10 +354,10 @@ $ swig -python -Fmicrosoft example.i example.i(4) : Syntax error in input. -
These numbers can be used by your own application.
-