Freestyle: Fix for VC++ warnings about 'hypot' macro redefinitions (Part 2).

(See commit e1771e72fbbf828dbf5bed871b814288389f3611 for more detail of
the problem).

Fixed for #include <Python.h> not properly put in the extern "C" { ... } construct.

Also removed redundant inclusion of the header file in the Freestyle Python API code.
This commit is contained in:
2014-04-17 12:25:41 +09:00
parent 5db8da8105
commit 5d4a6a94ef
157 changed files with 83 additions and 286 deletions

View File

@@ -25,9 +25,9 @@
#ifndef __FREESTYLE_PYTHON_ADJACENCYITERATOR_H__
#define __FREESTYLE_PYTHON_ADJACENCYITERATOR_H__
#include "../../stroke/ChainingIterators.h"
#include "../BPy_Iterator.h"
#include "../../stroke/ChainingIterators.h"
#ifdef __cplusplus
extern "C" {
@@ -35,8 +35,6 @@ extern "C" {
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject AdjacencyIterator_Type;
#define BPy_AdjacencyIterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&AdjacencyIterator_Type))

View File

@@ -25,19 +25,16 @@
#ifndef __FREESTYLE_PYTHON_CHAINPREDICATEITERATOR_H__
#define __FREESTYLE_PYTHON_CHAINPREDICATEITERATOR_H__
#include "BPy_ChainingIterator.h"
#include "../../stroke/ChainingIterators.h"
#include "BPy_ChainingIterator.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject ChainPredicateIterator_Type;
#define BPy_ChainPredicateIterator_Check(v) \

View File

@@ -25,19 +25,16 @@
#ifndef __FREESTYLE_PYTHON_CHAINSILHOUETTEITERATOR_H__
#define __FREESTYLE_PYTHON_CHAINSILHOUETTEITERATOR_H__
#include "BPy_ChainingIterator.h"
#include "../../stroke/ChainingIterators.h"
#include "BPy_ChainingIterator.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject ChainSilhouetteIterator_Type;
#define BPy_ChainSilhouetteIterator_Check(v) \

View File

@@ -25,19 +25,16 @@
#ifndef __FREESTYLE_PYTHON_CHAININGITERATOR_H__
#define __FREESTYLE_PYTHON_CHAININGITERATOR_H__
#include "BPy_ViewEdgeIterator.h"
#include "../../stroke/ChainingIterators.h"
#include "BPy_ViewEdgeIterator.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject ChainingIterator_Type;
#define BPy_ChainingIterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&ChainingIterator_Type))

View File

@@ -25,18 +25,16 @@
#ifndef __FREESTYLE_PYTHON_CURVEPOINTITERATOR_H__
#define __FREESTYLE_PYTHON_CURVEPOINTITERATOR_H__
#include "../../stroke/CurveIterators.h"
#include "../BPy_Iterator.h"
#include "../../stroke/CurveIterators.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject CurvePointIterator_Type;
#define BPy_CurvePointIterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&CurvePointIterator_Type))

View File

@@ -25,9 +25,9 @@
#ifndef __FREESTYLE_PYTHON_INTERFACE0DITERATOR_H__
#define __FREESTYLE_PYTHON_INTERFACE0DITERATOR_H__
#include "../../view_map/Interface0D.h"
#include "../BPy_Iterator.h"
#include "../../view_map/Interface0D.h"
#ifdef __cplusplus
extern "C" {
@@ -35,8 +35,6 @@ extern "C" {
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject Interface0DIterator_Type;
#define BPy_Interface0DIterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Interface0DIterator_Type))

View File

@@ -25,10 +25,9 @@
#ifndef __FREESTYLE_PYTHON_SVERTEXITERATOR_H__
#define __FREESTYLE_PYTHON_SVERTEXITERATOR_H__
#include "../../view_map/ViewMapIterators.h"
#include "../BPy_Iterator.h"
#include "../../view_map/ViewMapIterators.h"
#ifdef __cplusplus
extern "C" {
@@ -36,8 +35,6 @@ extern "C" {
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject SVertexIterator_Type;
#define BPy_SVertexIterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&SVertexIterator_Type))

View File

@@ -25,18 +25,16 @@
#ifndef __FREESTYLE_PYTHON_STROKEVERTEXITERATOR_H__
#define __FREESTYLE_PYTHON_STROKEVERTEXITERATOR_H__
#include "../../stroke/StrokeIterators.h"
#include "../BPy_Iterator.h"
#include "../../stroke/StrokeIterators.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject StrokeVertexIterator_Type;
#define BPy_StrokeVertexIterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&StrokeVertexIterator_Type))

View File

@@ -25,19 +25,16 @@
#ifndef __FREESTYLE_PYTHON_VIEWEDGEITERATOR_H__
#define __FREESTYLE_PYTHON_VIEWEDGEITERATOR_H__
#include "../BPy_Iterator.h"
#include "../../view_map/ViewMapIterators.h"
#include "../BPy_Iterator.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject ViewEdgeIterator_Type;
#define BPy_ViewEdgeIterator_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&ViewEdgeIterator_Type))

View File

@@ -26,18 +26,16 @@
#define __FREESTYLE_PYTHON_ORIENTEDVIEWEDGEITERATOR_H__
#include "../../stroke/Stroke.h"
#include "../../view_map/ViewMapIterators.h"
#include "../BPy_Iterator.h"
#include "../../view_map/ViewMapIterators.h"
#ifdef __cplusplus
extern "C" {
#endif
///////////////////////////////////////////////////////////////////////////////////////////
#include <Python.h>
extern PyTypeObject orientedViewEdgeIterator_Type;
#define BPy_orientedViewEdgeIterator_Check(v) \