The next few commits are going to be about shoring up implicit
conversions in generic arithmetic operators, and, in particular, in
forbidding obviously silly conversions, e.g., from floating-point
numbers of strings to integers or polynomials. This is a first step
towards that.
No new callers yet, and no functional change.
extern mp *mp_frompylong(PyObject *);
extern PyObject *mp_topylong(mp *);
extern mp *tomp(PyObject *);
+extern mp *implicitmp(PyObject *);
extern mp *getmp(PyObject *);
extern int convmp(PyObject *, void *);
+extern mp *implicitgf(PyObject *);
extern mp *getgf(PyObject *);
extern int convgf(PyObject *, void *);
extern PyObject *mp_pywrap(mp *);
return (1);
}
-static mp *implicitmp(PyObject *o)
+mp *implicitmp(PyObject *o)
{
if (!o ||
GF_PYCHECK(o) ||
return (tomp(o));
}
-static mp *implicitgf(PyObject *o)
+mp *implicitgf(PyObject *o)
{
if (!o ||
MP_PYCHECK(o) ||