+++ /dev/null
-/* -*-c-*-
- *
- * $Id$
- *
- * Binary polynomial arithmetic
- *
- * (c) 2004 Straylight/Edgeware
- */
-
-/*----- Licensing notice --------------------------------------------------*
- *
- * This file is part of the Python interface to Catacomb.
- *
- * Catacomb/Python is free software; you can redistribute it and/or modify
- * 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.
- *
- * Catacomb/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 Catacomb/Python; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/*----- Revision history --------------------------------------------------*
- *
- * $Log$
- */
-
-/*----- Header files ------------------------------------------------------*/
-
-#include "catacomb-python.h"
-
-/*----- Main code ---------------------------------------------------------*/
-
-PyTypeObject *gf_pytype;
-
-PyObject *gf_pywrap(mp *x)
-{
- mp_pyobj *z = PyObject_New(mp_pyobj, mp_pytype);
- z->x = x;
- return ((PyObject *)z);
-}
-
-mp *getgf(PyObject *o)
-{
- mp *x = 0;
- if ((x = tomp(o)) == 0) {
- PyErr_Format(PyExc_TypeError, "can't convert %.100s to gf",
- o->ob_type->tp_name);
- }
- return (x);
-}
-
-
-
-/*----- That's all, folks -------------------------------------------------*/