diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-21 06:02:44 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-21 06:02:44 +0000 |
commit | 90f25defe0787086543df96da7a8d80bb8461b5d (patch) | |
tree | f6c9bcb0339e38efc3940329db20ad71cc707822 /numpy | |
parent | 9cabc65d39f61ee3141ef0e2d113f5a36ac23da0 (diff) | |
download | numpy-90f25defe0787086543df96da7a8d80bb8461b5d.tar.gz |
Update comments in umath.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/umath_funcs_c99.inc.src | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/numpy/core/src/umath_funcs_c99.inc.src b/numpy/core/src/umath_funcs_c99.inc.src index f9c9957e8..7122eb10b 100644 --- a/numpy/core/src/umath_funcs_c99.inc.src +++ b/numpy/core/src/umath_funcs_c99.inc.src @@ -44,27 +44,10 @@ * } * #define foo npy_foo * - * iii) Finally, even if foo is in the library, add a prototype. Just being - * in the library doesn't guarantee a prototype in math.h, and in any case - * you want to make sure the prototype is what you think it is. Count on it, - * whatever can go wrong will go wrong. Think defensively! The result: - * - * #ifdef foo - * #undef foo - * #endif - * #ifndef HAVE_FOO - * static double - * npy_foo(double x) - * { - * return x; - * } - * #define foo npy_foo - * #else - * double foo(double x); - * #end - * - * And there you have it. - * + * iii) Avoid as much as possible to declare any function here. Declaring + * functions is not portable: some platforms define some function inline + * with a non standard identifier, for example. If you really have to, + * ALWAYS declare it for the one platform you are dealing with */ /* |