diff options
| author | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:29 +0000 |
|---|---|---|
| committer | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:29 +0000 |
| commit | c0bf63530bcb93425a6088c14fca1868e8b3a9fc (patch) | |
| tree | ed6e003cffe4bd09366437f82434e24ad746b233 /python/configuration.cc | |
| parent | bd0b7c36a57ddf88abe8e3d6cf388b783780a40b (diff) | |
| download | python-apt-c0bf63530bcb93425a6088c14fca1868e8b3a9fc.tar.gz | |
Fix g++-3.0 compilation issues
Author: mdz
Date: 2002-02-26 01:36:15 GMT
Fix g++-3.0 compilation issues
Diffstat (limited to 'python/configuration.cc')
| -rw-r--r-- | python/configuration.cc | 19 |
1 files changed, 9 insertions, 10 deletions
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 <Python.h> /*}}}*/ -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<Configuration> @@ -34,13 +32,6 @@ struct SubConfiguration : public CppPyObject<Configuration> 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 = |
