mirror of
https://github.com/xiph/opus.git
synced 2025-06-06 07:21:03 +00:00
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:
parent
2852cb1486
commit
63fd63d665
6 changed files with 6 additions and 9 deletions
|
@ -25,5 +25,5 @@ libcelt/quant_bands.h \
|
|||
libcelt/rate.h \
|
||||
libcelt/stack_alloc.h \
|
||||
libcelt/vq.h \
|
||||
libcelt/static_modes_float.c \
|
||||
libcelt/static_modes_fixed.c
|
||||
libcelt/static_modes_float.h \
|
||||
libcelt/static_modes_fixed.h
|
||||
|
|
|
@ -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 \
|
||||
mathops.h modes.h os_support.h pitch.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
|
||||
testcelt_SOURCES = testcelt.c
|
||||
|
|
|
@ -311,12 +311,9 @@ int main(int argc, char **argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
file = fopen(BASENAME ".c", "w");
|
||||
file = fopen(BASENAME ".h", "w");
|
||||
dump_modes(file, m, nb);
|
||||
fclose(file);
|
||||
/*file = fopen(BASENAME ".h", "w");
|
||||
dump_header(file, m, nb);
|
||||
fclose(file);*/
|
||||
for (i=0;i<nb;i++)
|
||||
celt_mode_destroy(m[i]);
|
||||
free(m);
|
||||
|
|
|
@ -63,9 +63,9 @@ static const unsigned char band_allocation[] = {
|
|||
|
||||
#ifndef CUSTOM_MODES_ONLY
|
||||
#ifdef FIXED_POINT
|
||||
#include "static_modes_fixed.c"
|
||||
#include "static_modes_fixed.h"
|
||||
#else
|
||||
#include "static_modes_float.c"
|
||||
#include "static_modes_float.h"
|
||||
#endif
|
||||
#endif /* CUSTOM_MODES_ONLY */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue