From c0bf63530bcb93425a6088c14fca1868e8b3a9fc Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Wed, 24 Nov 2004 10:00:29 +0000 Subject: Fix g++-3.0 compilation issues Author: mdz Date: 2002-02-26 01:36:15 GMT Fix g++-3.0 compilation issues --- python/configuration.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'python/configuration.cc') diff --git a/python/configuration.cc b/python/configuration.cc index a66f8b12..a15c4694 100644 --- a/python/configuration.cc +++ b/python/configuration.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: configuration.cc,v 1.2 2002/01/08 06:53:04 jgg Exp $ +// $Id: configuration.cc,v 1.3 2002/02/26 01:36:15 mdz Exp $ /* ###################################################################### Configuration - Binding for the configuration object. @@ -25,8 +25,6 @@ #include /*}}}*/ -static PyMethodDef CnfMethods[]; - /* If we create a sub tree then it is of this type, the Owner is used to manage reference counting. */ struct SubConfiguration : public CppPyObject @@ -34,13 +32,6 @@ struct SubConfiguration : public CppPyObject PyObject *Owner; }; -// CnfGetAttr - Get an attribute - variable/method /*{{{*/ -// --------------------------------------------------------------------- -/* */ -static PyObject *CnfGetAttr(PyObject *Self,char *Name) -{ - return Py_FindMethod(CnfMethods,Self,Name); -} /*}}}*/ // CnfSubFree - Free a sub configuration /*{{{*/ // --------------------------------------------------------------------- @@ -459,6 +450,14 @@ static PyMethodDef CnfMethods[] = {} }; +// CnfGetAttr - Get an attribute - variable/method /*{{{*/ +// --------------------------------------------------------------------- +/* */ +static PyObject *CnfGetAttr(PyObject *Self,char *Name) +{ + return Py_FindMethod(CnfMethods,Self,Name); +} + // Type for a Normal Configuration object static PyMappingMethods ConfigurationMap = {0,CnfMap,CnfMapSet}; PyTypeObject ConfigurationType = -- cgit v1.2.3