mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
dcparser: Delete dcPython.h
py_panda.h has the same purpose; we also don't want Python.h brought in from the headers (only from the .cxx files) so that including the headers won't require linkage against Python.
This commit is contained in:
parent
0e4597fb2e
commit
36df3bdf0b
@ -18,6 +18,9 @@
|
||||
#include "dcindent.h"
|
||||
#include "dcmsgtypes.h"
|
||||
|
||||
#include "datagram.h"
|
||||
#include "datagramIterator.h"
|
||||
|
||||
#include "dcClassParameter.h"
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "dcbase.h"
|
||||
#include "dcField.h"
|
||||
#include "dcDeclaration.h"
|
||||
#include "dcPython.h"
|
||||
|
||||
#ifdef WITHIN_PANDA
|
||||
#include "pStatCollector.h"
|
||||
|
@ -18,6 +18,9 @@
|
||||
#include "hashGenerator.h"
|
||||
#include "dcmsgtypes.h"
|
||||
|
||||
#include "datagram.h"
|
||||
#include "datagramIterator.h"
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
#include "py_panda.h"
|
||||
#endif
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "dcbase.h"
|
||||
#include "dcPackerInterface.h"
|
||||
#include "dcKeywordList.h"
|
||||
#include "dcPython.h"
|
||||
|
||||
#ifdef WITHIN_PANDA
|
||||
#include "pStatCollector.h"
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include "dcSubatomicType.h"
|
||||
#include "dcPackData.h"
|
||||
#include "dcPackerCatalog.h"
|
||||
#include "dcPython.h"
|
||||
|
||||
class DCClass;
|
||||
class DCSwitchParameter;
|
||||
|
@ -1,42 +0,0 @@
|
||||
/**
|
||||
* PANDA 3D SOFTWARE
|
||||
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
||||
*
|
||||
* All use of this software is subject to the terms of the revised BSD
|
||||
* license. You should have received a copy of this license along
|
||||
* with this source code in a file named "LICENSE."
|
||||
*
|
||||
* @file dcPython.h
|
||||
* @author drose
|
||||
* @date 2004-06-22
|
||||
*/
|
||||
|
||||
#ifndef DCPYTHON_H
|
||||
#define DCPYTHON_H
|
||||
|
||||
// The only purpose of this file is to serve as a common place to put the
|
||||
// nonsense associated with #including <Python.h>.
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
|
||||
#define PY_SSIZE_T_CLEAN 1
|
||||
|
||||
#undef _POSIX_C_SOURCE
|
||||
#undef _XOPEN_SOURCE
|
||||
#include <Python.h>
|
||||
|
||||
// Python 2.5 adds Py_ssize_t; earlier versions don't have it.
|
||||
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
|
||||
typedef int Py_ssize_t;
|
||||
#define PY_SSIZE_T_MAX INT_MAX
|
||||
#define PY_SSIZE_T_MIN INT_MIN
|
||||
#endif
|
||||
|
||||
// Several interfaces in this module that use Python also require these header
|
||||
// files, so we might as well pick them up too.
|
||||
#include "datagram.h"
|
||||
#include "datagramIterator.h"
|
||||
|
||||
#endif // HAVE_PYTHON
|
||||
|
||||
#endif
|
@ -18,6 +18,10 @@
|
||||
#include "dcmsgtypes.h"
|
||||
#include "config_distributed.h"
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
#include "py_panda.h"
|
||||
#endif
|
||||
|
||||
static const PN_stdfloat smooth_node_epsilon = 0.01;
|
||||
static const double network_time_precision = 100.0; // Matches ClockDelta.py
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "nodePath.h"
|
||||
#include "dcbase.h"
|
||||
#include "dcPacker.h"
|
||||
#include "dcPython.h" // to pick up Python.h
|
||||
#include "clockObject.h"
|
||||
|
||||
class DCClass;
|
||||
|
Loading…
x
Reference in New Issue
Block a user