[Scipy-svn] r4239 - branches/refactor_fft/scipy/fftpack/src
scipy-svn at scipy.org
scipy-svn at scipy.org
Tue May 6 21:16:55 EDT 2008
Author: cdavid
Date: 2008-05-06 20:16:50 -0500 (Tue, 06 May 2008)
New Revision: 4239
Modified:
branches/refactor_fft/scipy/fftpack/src/drfft.cxx
Log:
Set C linkage for drfft api.
Modified: branches/refactor_fft/scipy/fftpack/src/drfft.cxx
===================================================================
--- branches/refactor_fft/scipy/fftpack/src/drfft.cxx 2008-05-07 01:15:55 UTC (rev 4238)
+++ branches/refactor_fft/scipy/fftpack/src/drfft.cxx 2008-05-07 01:16:50 UTC (rev 4239)
@@ -9,12 +9,12 @@
/* The following macro convert private backend specific function to the public
* functions exported by the module */
#define GEN_PUBLIC_API(name) \
-void destroy_drfft_cache(void)\
+extern "C" void destroy_drfft_cache(void)\
{\
destroy_dr##name##_caches();\
}\
\
-void drfft(double *inout, int n, \
+extern "C" void drfft(double *inout, int n, \
int direction, int howmany, int normalize)\
{\
drfft_##name(inout, n, direction, howmany, normalize);\
@@ -58,12 +58,12 @@
*/
#ifdef WITH_DJBFFT
#include "djbfft/drfft.c"
- void destroy_drfft_cache(void)
+ extern "C" void destroy_drfft_cache(void)
{
destroy_drdjbfft_caches();
drfft_def_destroy_cache();
}
- void drfft(double *inout, int n,
+ extern "C" void drfft(double *inout, int n,
int direction, int howmany, int normalize)
{
drfft_djbfft(inout, n, direction, howmany, normalize);
More information about the Scipy-svn
mailing list