summaryrefslogtreecommitdiff
path: root/numpy/f2py/doc
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2012-01-28 18:40:19 -0700
committerCharles Harris <charlesr.harris@gmail.com>2012-02-04 16:11:39 -0700
commitb63f91e4ce487c89a67ca31ccb2e1c53574b7857 (patch)
tree52f0027c9cfdbfd34c27cd04cc82ac51715053a6 /numpy/f2py/doc
parent6f9a3ce3545d73d338d6e4467992b66c143093f8 (diff)
downloadnumpy-b63f91e4ce487c89a67ca31ccb2e1c53574b7857.tar.gz
STY: f2py - replace macros in old_defines.h with new.
Diffstat (limited to 'numpy/f2py/doc')
-rw-r--r--numpy/f2py/doc/fortranobject.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/f2py/doc/fortranobject.tex b/numpy/f2py/doc/fortranobject.tex
index dbb244cdd..88a56835e 100644
--- a/numpy/f2py/doc/fortranobject.tex
+++ b/numpy/f2py/doc/fortranobject.tex
@@ -77,7 +77,7 @@ typedef struct {
int rank; /* array rank, 0 for scalar, max is F2PY_MAX_DIMS,
|| rank=-1 for Fortran routine */
struct {int d[F2PY_MAX_DIMS];} dims; /* dimensions of the array, || not used */
- int type; /* PyArray_<type> || not used */
+ int type; /* NPY_<type> || not used */
char *data; /* pointer to array || Fortran routine */
void (*func)(); /* initialization function for
allocatable arrays:
@@ -182,7 +182,7 @@ In order to access the variable \texttt{i} from Python,
\texttt{PyFortranObject} is defined as follows:
\begin{verbatim}
static FortranDataDef f2py_bar_def[] = {
- {"i",0,{-1},PyArray_INT},
+ {"i",0,{-1},NPY_INT},
{NULL}
};
static void f2py_setup_bar(char *i) {
@@ -328,7 +328,7 @@ end module fun
Then
\begin{verbatim}
static FortranDataDef f2py_fun_def[] = {
- {"i",0,{-1},PyArray_INT},
+ {"i",0,{-1},NPY_INT},
{NULL}
};
static void f2py_setup_fun(char *i) {
@@ -370,7 +370,7 @@ end module fun
Then
\begin{verbatim}
static FortranDataDef f2py_fun_def[] = {
- {"r",1,{-1},PyArray_FLOAT},
+ {"r",1,{-1},NPY_FLOAT},
{NULL}
};
static void f2py_setup_fun(void (*r)()) {