/*****************************************************************************1# Copyright (C) 2007 William Stein <[email protected]>2#3# Distributed under the terms of the GNU General Public License (GPL) as4# published by the Free Software Foundation; either version 2 of the5# License, or (at your option) any later version.6#7# This code is distributed in the hope that it will be useful,8# but WITHOUT ANY WARRANTY; without even the implied warranty of9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU10# General Public License for more details.11#12# The full text of the GPL is available at:13#14# http://www.gnu.org/licenses/15#*****************************************************************************/1617/* Author: Joel B. Mohler <[email protected]> (2007-06-17) */1819#ifndef ZZ_PYLONG_H20#define ZZ_PYLONG_H2122/* Yes, this is kind of weird. I'm only wrapping this for C++ */23#ifdef __cplusplus2425#include <Python.h>26#include <NTL/ZZ.h>27using namespace NTL;28#include "gmp.h"2930/* ZZ -> pylong conversion */31PyObject * ZZ_get_pylong(ZZ &z);3233/* pylong -> ZZ conversion */34int ZZ_set_pylong(ZZ &z, PyObject * ll);35#endif3637#endif383940