Rename libcelt/static_modes_(fixed|float).c to .h to better reflect

their usage and to make any toolchain that doesn't like to #include
.c file happy.
This commit is contained in:
Gregory Maxwell 2011-08-02 17:13:06 -04:00
parent 2852cb1486
commit 63fd63d665
6 changed files with 6 additions and 9 deletions

View file

@ -25,5 +25,5 @@ libcelt/quant_bands.h \
libcelt/rate.h \ libcelt/rate.h \
libcelt/stack_alloc.h \ libcelt/stack_alloc.h \
libcelt/vq.h \ libcelt/vq.h \
libcelt/static_modes_float.c \ libcelt/static_modes_float.h \
libcelt/static_modes_fixed.c libcelt/static_modes_fixed.h

View file

@ -27,7 +27,7 @@ noinst_HEADERS = _kiss_fft_guts.h arch.h bands.h fixed_c5x.h fixed_c6x.h \
kiss_fft.h laplace.h mdct.h mfrngcod.h \ kiss_fft.h laplace.h mdct.h mfrngcod.h \
mathops.h modes.h os_support.h pitch.h \ mathops.h modes.h os_support.h pitch.h \
quant_bands.h rate.h stack_alloc.h \ quant_bands.h rate.h stack_alloc.h \
static_modes_fixed.c static_modes_float.c vq.h plc.h static_modes_fixed.h static_modes_float.h vq.h plc.h
noinst_PROGRAMS = testcelt dump_modes noinst_PROGRAMS = testcelt dump_modes
testcelt_SOURCES = testcelt.c testcelt_SOURCES = testcelt.c

View file

@ -311,12 +311,9 @@ int main(int argc, char **argv)
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} }
file = fopen(BASENAME ".c", "w"); file = fopen(BASENAME ".h", "w");
dump_modes(file, m, nb); dump_modes(file, m, nb);
fclose(file); fclose(file);
/*file = fopen(BASENAME ".h", "w");
dump_header(file, m, nb);
fclose(file);*/
for (i=0;i<nb;i++) for (i=0;i<nb;i++)
celt_mode_destroy(m[i]); celt_mode_destroy(m[i]);
free(m); free(m);

View file

@ -63,9 +63,9 @@ static const unsigned char band_allocation[] = {
#ifndef CUSTOM_MODES_ONLY #ifndef CUSTOM_MODES_ONLY
#ifdef FIXED_POINT #ifdef FIXED_POINT
#include "static_modes_fixed.c" #include "static_modes_fixed.h"
#else #else
#include "static_modes_float.c" #include "static_modes_float.h"
#endif #endif
#endif /* CUSTOM_MODES_ONLY */ #endif /* CUSTOM_MODES_ONLY */