~ubuntu-branches/ubuntu/karmic/python-scipy/karmic

« back to all changes in this revision

Viewing changes to Lib/interpolate/_fitpackmodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T. Chen (new)
  • Date: 2005-03-16 02:15:29 UTC
  • Revision ID: james.westby@ubuntu.com-20050316021529-xrjlowsejs0cijig
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Multipack project.
 
3
    This file is generated by setmodules.py. Do not modify it.
 
4
 */
 
5
#include "multipack.h"
 
6
static PyObject *fitpack_error;
 
7
#include "__fitpack.h"
 
8
static struct PyMethodDef fitpack_module_methods[] = {
 
9
{"_curfit", fitpack_curfit, METH_VARARGS, doc_curfit},
 
10
{"_spl_", fitpack_spl_, METH_VARARGS, doc_spl_},
 
11
{"_splint", fitpack_splint, METH_VARARGS, doc_splint},
 
12
{"_sproot", fitpack_sproot, METH_VARARGS, doc_sproot},
 
13
{"_spalde", fitpack_spalde, METH_VARARGS, doc_spalde},
 
14
{"_parcur", fitpack_parcur, METH_VARARGS, doc_parcur},
 
15
{"_surfit", fitpack_surfit, METH_VARARGS, doc_surfit},
 
16
{"_bispev", fitpack_bispev, METH_VARARGS, doc_bispev},
 
17
{NULL,          NULL, 0, NULL}
 
18
};
 
19
void init_fitpack(void) {
 
20
  PyObject *m, *d, *s;
 
21
  m = Py_InitModule("_fitpack", fitpack_module_methods);
 
22
  import_array();
 
23
  d = PyModule_GetDict(m);
 
24
 
 
25
  s = PyString_FromString(" 1.6 ");
 
26
  PyDict_SetItemString(d, "__version__", s);
 
27
  fitpack_error = PyErr_NewException ("fitpack.error", NULL, NULL);
 
28
  Py_DECREF(s);
 
29
  if (PyErr_Occurred())
 
30
    Py_FatalError("can't initialize module fitpack");
 
31
}
 
32