get rid of type redefinitions

This commit is contained in:
Ivan Krylov 2018-12-13 14:32:41 +03:00
parent f238fb1ce6
commit 4e34b8926b
5 changed files with 3 additions and 28 deletions

View File

@ -21,14 +21,6 @@ typedef struct conv_set* conv_object;
conv_object conv_init(int N, int L);
struct conv_set{
fft_real_object fobj;
fft_real_object iobj;
int ilen1;
int ilen2;
int clen;
};
int factorf(int M);
int findnext(int M);

View File

@ -12,6 +12,8 @@
#include <math.h>
#include <string.h>
#include "wavelib.h"
#ifdef __cplusplus
extern "C" {
#endif
@ -22,11 +24,6 @@ extern "C" {
#define fft_type double
#endif
typedef struct fft_t {
fft_type re;
fft_type im;
} fft_data;
/*
#define SADD(a,b) ((a)+(b))
@ -39,15 +36,6 @@ typedef struct fft_set* fft_object;
fft_object fft_init(int N, int sgn);
struct fft_set{
int N;
int sgn;
int factors[64];
int lf;
int lt;
fft_data twiddle[1];
};
void fft_exec(fft_object obj,fft_data *inp,fft_data *oup);
int divideby(int M,int d);

View File

@ -18,11 +18,6 @@ typedef struct fft_real_set* fft_real_object;
fft_real_object fft_real_init(int N, int sgn);
struct fft_real_set{
fft_object cobj;
fft_data twiddle2[1];
};
void fft_r2c_exec(fft_real_object obj,fft_type *inp,fft_data *oup);
void fft_c2r_exec(fft_real_object obj,fft_data *inp,fft_type *oup);

View File

@ -11,7 +11,6 @@
#include "wavelib.h"
#include "wtmath.h"
wave_object wave_init(const char* wname) {
wave_object obj = NULL;
int retval;

View File

@ -5,6 +5,7 @@
#include <sstream>
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <string>
#include <cmath>