Variable was defined in a header file (constant_Type), resulting in

'multiply defined symbol' warning on IRIX for every file that
included that file. Moved to a C source file.
This commit is contained in:
Chris Want
2005-08-23 22:12:06 +00:00
parent 1ac5239764
commit bc3f228bc9
2 changed files with 3 additions and 1 deletions

View File

@@ -34,6 +34,8 @@
#include "gen_utils.h"
PyTypeObject constant_Type;
//------------------METHOD IMPLEMENTATIONS-----------------------------
//------------------------constant.items()
//Returns a list of key:value pairs like dict.items()

View File

@@ -38,7 +38,7 @@
//-------------------TYPE CHECKS---------------------------------
#define BPy_Constant_Check(v) ((v)->ob_type==&constant_Type)
//-------------------TYPEOBJECT----------------------------------
PyTypeObject constant_Type;
extern PyTypeObject constant_Type;
//-------------------STRUCT DEFINITION---------------------------
typedef struct {
PyObject_HEAD