X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/20bce5e92b01cd928f26b61be78215117039c561..2fa7b5dbd2e7b53d4f91cd9136263658933f56f0:/atom.h diff --git a/atom.h b/atom.h index 8a2ff31..a2ac94e 100644 --- a/atom.h +++ b/atom.h @@ -1,13 +1,11 @@ /* -*-c-*- * - * $Id$ - * * Atom stuff * * (c) 2005 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the Python interface to mLib. * @@ -15,12 +13,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 +47,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 -------------------------------------------------*/