[Debian-astro-commits] [gyoto] 183/221: Python: correctly support Gyoto::Quantity_t as a integer type

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

thibaut pushed a commit to branch master
in repository gyoto.

commit 1f85f55834b543671e4f8bb6ef41d26385951ac5
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Fri Jan 9 10:44:02 2015 +0100

    Python: correctly support Gyoto::Quantity_t as a integer type
---
 python/gyoto.i | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/python/gyoto.i b/python/gyoto.i
index 03ef3d1..75989a6 100644
--- a/python/gyoto.i
+++ b/python/gyoto.i
@@ -190,6 +190,7 @@ GyotoSmPtrClassDerivedHdr(nspace, klass, Gyoto ## klass ## .h)
 #include "Python.h"
 #define GYOTO_NO_DEPRECATED
 #include "GyotoConfig.h"
+#include "GyotoDefs.h"
 #include "GyotoFactory.h"
 #include "GyotoFactoryMessenger.h"
 #include "GyotoValue.h"
@@ -254,11 +255,14 @@ GyotoSmPtrTypeMapClassDerived(Units, Converter);
 %numpy_typemaps(double, NPY_DOUBLE, size_t);
 
 // ******** INTERFACE ******** //
-// Here starts the actual pasing of the various header files
+// Here starts the actual parsing of the various header files
 
 // Expose the build-time configuration variables
 %include "GyotoConfig.h"
 
+// Expose the global definitions and typedefs
+%include "GyotoDefs.h"
+
 // Expose the Gyoto::Error class
 %include "GyotoError.h"
 
@@ -380,7 +384,6 @@ GyotoSmPtrClassDerivedPtrHdr(Spectrometer, Complex, ComplexSpectrometer, GyotoCo
 GyotoSmPtrClassDerivedPtrHdr(Spectrometer, Uniform, UniformSpectrometer, GyotoUniformSpectrometer.h)
 
 %include "GyotoConfig.h"
-%include "GyotoDefs.h"
 %include "GyotoUtils.h"
 %include "GyotoFactory.h"
 %include "GyotoFactoryMessenger.h"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git



More information about the Debian-astro-commits mailing list