From 14c05d50ad56eedaa50869de6d8b1df749a773fe Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 3 Sep 2013 02:00:12 +0000 Subject: encapsulate --- fft.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fft.c') diff --git a/fft.c b/fft.c index d178a84..55b35f4 100644 --- a/fft.c +++ b/fft.c @@ -30,7 +30,7 @@ struct fft { double *window; }; -double * +static double * hamming(size_t n) { double *w; @@ -46,8 +46,8 @@ hamming(size_t n) return w; } -double * -fft_realloc(double *p, size_t n) +static double * +resize(double *p, size_t n) { if (p) fftw_free(p); @@ -64,8 +64,8 @@ resize_fft(struct fft *p, size_t n) if (n != p->n) { p->n = n; - p->in = fft_realloc(p->in, p->n); - p->out = fft_realloc(p->out, p->n); + p->in = resize(p->in, p->n); + p->out = resize(p->out, p->n); if (p->window) free(p->window); -- cgit v1.2.3