[Numpy-svn] [numpy/numpy] b3121e: BUG: Rename fft C functions to avoid name conflict

GitHub noreply at github.com
Fri Dec 5 11:24:45 EST 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: b3121e856556ca2ca1cce22ab100d85dd702a30a
      https://github.com/numpy/numpy/commit/b3121e856556ca2ca1cce22ab100d85dd702a30a
  Author: Ryan Nelson <rnelsonchem at gmail.com>
  Date:   2014-12-04 (Thu, 04 Dec 2014)

  Changed paths:
    M numpy/fft/fftpack.c
    M numpy/fft/fftpack.h
    M numpy/fft/fftpack_litemodule.c

  Log Message:
  -----------
  BUG: Rename fft C functions to avoid name conflict

Resolves issue #565.

The public fft functions defined in fftpack.c have name conflicts on certain
systems, so the prefix "npy_" was added to these functions.

Added NPY_VISIBILITY_HIDDEN to the public functions in both fftpack.h and
fftpack.c. This required rearranging the includes at the beginning of
fftpack_litemodule.c so that this macro was properly defined. In addition,
Python.h and numpy/ndarraytypes.h were included in the fftpack.h.

One function, rfftb1, was flagged as `static` as it was not exported in the
header.

Build and tests pass using both Python 2.7.8 and Python 3.4.2.


  Commit: 152805e5e2f0dc51fdbe89e0a07127b3ac49984d
      https://github.com/numpy/numpy/commit/152805e5e2f0dc51fdbe89e0a07127b3ac49984d
  Author: Julian Taylor <juliantaylor108 at gmail.com>
  Date:   2014-12-05 (Fri, 05 Dec 2014)

  Changed paths:
    M numpy/fft/fftpack.c
    M numpy/fft/fftpack.h
    M numpy/fft/fftpack_litemodule.c

  Log Message:
  -----------
  Merge pull request #5335 from rnelsonchem/fft_name_fix

BUG: Rename fft C functions to avoid name conflict


Compare: https://github.com/numpy/numpy/compare/00e6f31e2d8b...152805e5e2f0


More information about the Numpy-svn mailing list