Initial addition.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
870e6457d1
commit
85ace8facd
70 changed files with 9710 additions and 0 deletions
26
SWIG/Examples/GIFPlot/Chicken/full/gifplot.i
Normal file
26
SWIG/Examples/GIFPlot/Chicken/full/gifplot.i
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/* Oh what the heck, let's just grab the whole darn header file
|
||||
and see what happens. */
|
||||
|
||||
%module gifplot
|
||||
%{
|
||||
|
||||
/* Note: You still need this part because the %include directive
|
||||
merely causes SWIG to interpret the contents of a file. It doesn't
|
||||
include the right include headers for the resulting C code */
|
||||
|
||||
#include "gifplot.h"
|
||||
|
||||
%}
|
||||
|
||||
/* Pixel is typedef'd to unsigned char, and SWIG will translate this
|
||||
type into Scheme characters. We would like to translate Pixels to
|
||||
Scheme integers instead, so: */
|
||||
|
||||
SIMPLE_TYPEMAP(Pixel, C_unfix, C_fix, C_swig_is_fixnum, (int), 0);
|
||||
|
||||
%{
|
||||
static Pixel int_to_Pixel (int v) { return (Pixel) v; }
|
||||
%}
|
||||
extern Pixel int_to_Pixel (int v);
|
||||
|
||||
%include gifplot.h
|
||||
Loading…
Add table
Add a link
Reference in a new issue