X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/20bce5e92b01cd928f26b61be78215117039c561..244ede1869d2b168cf311bb327a5758d11fc0f66:/atom.h diff --git a/atom.h b/atom.h index 8a2ff31..3f1a04f 100644 --- a/atom.h +++ b/atom.h @@ -7,7 +7,7 @@ * (c) 2005 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the Python interface to mLib. * @@ -15,12 +15,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * mLib/Python is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with mLib/Python; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -49,11 +49,13 @@ typedef struct atom_pyobj { #define ATOM_PYCHECK(obj) PyObject_TypeCheck(obj, &atom_pytype) #define ATOM_A(obj) (((atom_pyobj *)(obj))->a) +extern PyTypeObject atom_pytype; + /*----- Functions provided ------------------------------------------------*/ extern PyObject *atom_pywrap(atom *); extern PyObject *atom_pyintern(PyObject *); -extern PyObject *atom_pystartup(void); +extern void atom_pysetup(void); /*----- That's all, folks -------------------------------------------------*/