From 255ef3522c8d06dc7d539209fc9eb6dc3aac67d6 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Fri, 1 Sep 2000 16:01:00 +0000 Subject: [PATCH] Fixed a few constant problems. Used new %constant directive instead. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@783 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/GIFPlot/Interface/gifplot.i | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Examples/GIFPlot/Interface/gifplot.i b/Examples/GIFPlot/Interface/gifplot.i index b8f17f657..69a7cdbb9 100644 --- a/Examples/GIFPlot/Interface/gifplot.i +++ b/Examples/GIFPlot/Interface/gifplot.i @@ -261,9 +261,12 @@ typedef struct Plot3D { } Plot3D; #ifndef SWIGJAVA -const PixMap *SQUARE = &PixMap_SQUARE; -const PixMap *TRIANGLE = &PixMap_TRIANGLE; -const PixMap *CROSS = &PixMap_CROSS; +/* These directives create constants of a specific type. They + do not correspond to any C variable or declared constant in the + header file */ +%constant(PixMap *) SQUARE = &PixMap_SQUARE; +%constant(PixMap *) TRIANGLE = &PixMap_TRIANGLE; +%constant(PixMap *) CROSS = &PixMap_CROSS; #endif %enabledoc