Use the system angle brackets for %include

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-11-26 09:28:20 +00:00
commit cfdad24993
52 changed files with 132 additions and 134 deletions

View file

@ -4,7 +4,7 @@
* CSharp typemaps
* ----------------------------------------------------------------------------- */
%include "csharphead.swg"
%include <csharphead.swg>
/* The ctype, imtype and cstype typemaps work together and so there should be one of each.
* The ctype typemap contains the PInvoke type used in the PInvoke (C/C++) code.
@ -640,10 +640,10 @@ using System.Runtime.InteropServices;
%apply unsigned long { size_t };
/* csharp keywords */
%include "csharpkw.swg"
%include <csharpkw.swg>
// Default enum handling
%include "enums.swg"
%include <enums.swg>
/*
// Alternative char * typemaps.

View file

@ -5,8 +5,8 @@
//
// Common implementation
%include std_common.i
%include exception.i
%include <std_common.i>
%include <exception.i>
// ------------------------------------------------------------------------
// std::pair

View file

@ -358,6 +358,6 @@ SWIG_STD_VECTOR_SPECIALIZE(long, long long)
SWIG_STD_VECTOR_SPECIALIZE(ulong, unsigned long long)
SWIG_STD_VECTOR_SPECIALIZE(float, float)
SWIG_STD_VECTOR_SPECIALIZE(double, double)
SWIG_STD_VECTOR_SPECIALIZE(string, std::string) // also requires a %include "std_string.i"
SWIG_STD_VECTOR_SPECIALIZE(string, std::string) // also requires a %include <std_string.i>

View file

@ -43,12 +43,12 @@ To use these, suppose you had a C function like this :
You could wrap it with SWIG as follows :
%include "typemaps.i"
%include <typemaps.i>
double fadd(double *INPUT, double *INPUT);
or you can use the %apply directive :
%include "typemaps.i"
%include <typemaps.i>
%apply double *INPUT { double *a, double *b };
double fadd(double *a, double *b);
@ -121,12 +121,12 @@ returns the integer part in one of its parameters):
You could wrap it with SWIG as follows :
%include "typemaps.i"
%include <typemaps.i>
double modf(double x, double *OUTPUT);
or you can use the %apply directive :
%include "typemaps.i"
%include <typemaps.i>
%apply double *OUTPUT { double *ip };
double modf(double x, double *ip);
@ -201,12 +201,12 @@ For example, suppose you were trying to wrap the following function :
You could wrap it with SWIG as follows :
%include "typemaps.i"
%include <typemaps.i>
void neg(double *INOUT);
or you can use the %apply directive :
%include "typemaps.i"
%include <typemaps.i>
%apply double *INOUT { double *x };
void neg(double *x);