~ubuntu-branches/ubuntu/lucid/python-scipy/lucid

« back to all changes in this revision

Viewing changes to Lib/integrate/multipack.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-07 14:12:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070107141212-mm0ebkh5b37hcpzn
* Remove build dependency on python-numpy-dev.
* python-scipy: Depend on python-numpy instead of python-numpy-dev.
* Package builds on other archs than i386. Closes: #402783.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*/
30
30
 
31
31
#include "Python.h"
32
 
#include "Numeric/arrayobject.h"
 
32
#include "numpy/arrayobject.h"
33
33
 
34
34
#define PYERR(errobj,message) {PyErr_SetString(errobj,message); goto fail;}
35
35
#define PYERR2(errobj,message) {PyErr_Print(); PyErr_SetString(errobj, message); goto fail;}
36
36
#define ISCONTIGUOUS(m) ((m)->flags & CONTIGUOUS)
37
37
 
38
 
#define MAX(n1,n2) ((n1) > (n2))?(n1):(n2);
39
 
#define MIN(n1,n2) ((n1) > (n2))?(n2):(n1);
40
 
 
41
38
#define STORE_VARS() PyObject *store_multipack_globals[4]; int store_multipack_globals3;
42
39
 
43
40
#define INIT_FUNC(fun,arg,errobj) { /* Get extra arguments or set to zero length tuple */ \
169
166
    PYERR2(error_obj,"Internal error constructing argument list.");
170
167
 
171
168
  Py_DECREF(arg1);    /* arglist has a reference to sequence, now. */
172
 
    
 
169
  arg1=NULL;
173
170
 
174
171
  /* Call function object --- variable passed to routine.  Extra
175
172
          arguments are in another passed variable.