From 63fd63d6659edaedb89d72557f7c8dea2c44c355 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Tue, 2 Aug 2011 17:13:06 -0400 Subject: [PATCH] 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. --- celt_headers.txt | 4 ++-- libcelt/Makefile.am | 2 +- libcelt/dump_modes.c | 5 +---- libcelt/modes.c | 4 ++-- libcelt/{static_modes_fixed.c => static_modes_fixed.h} | 0 libcelt/{static_modes_float.c => static_modes_float.h} | 0 6 files changed, 6 insertions(+), 9 deletions(-) rename libcelt/{static_modes_fixed.c => static_modes_fixed.h} (100%) rename libcelt/{static_modes_float.c => static_modes_float.h} (100%) diff --git a/celt_headers.txt b/celt_headers.txt index 36e965c9..b227b7c6 100644 --- a/celt_headers.txt +++ b/celt_headers.txt @@ -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 diff --git a/libcelt/Makefile.am b/libcelt/Makefile.am index 42dfa004..2f1ac73b 100644 --- a/libcelt/Makefile.am +++ b/libcelt/Makefile.am @@ -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 diff --git a/libcelt/dump_modes.c b/libcelt/dump_modes.c index 90514757..d963ff10 100644 --- a/libcelt/dump_modes.c +++ b/libcelt/dump_modes.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