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

@ -7,7 +7,7 @@
/* chicken.h has to appear first. */
%insert(runtime) %{
#include "chicken.h"
#include <chicken.h>
%}
%insert(runtime) "swigrun.swg"; // Common C API type-checking code
@ -695,7 +695,7 @@ $result = C_SCHEME_UNDEFINED;
#endif
/* Warnings for certain CHICKEN keywords */
%include "chickenkw.swg"
%include <chickenkw.swg>
/* TinyCLOS <--> Low-level CHICKEN */

View file

@ -53,12 +53,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);
@ -96,12 +96,12 @@ returns the integer part in one of its parameters).K:
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);
@ -208,18 +208,18 @@ 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);
As well, you can wrap variables with :
%include typemaps.i
%include <typemaps.i>
%apply double *INOUT { double *y };
extern double *y;