Rename libcelt/static_modes_(fixed|float).c to .h to better reflect
authorGregory Maxwell <greg@xiph.org>
Tue, 2 Aug 2011 21:13:06 +0000 (17:13 -0400)
committerGregory Maxwell <greg@xiph.org>
Tue, 2 Aug 2011 21:13:06 +0000 (17:13 -0400)
their usage and to make any toolchain that doesn't like to #include
.c file happy.

celt_headers.txt
libcelt/Makefile.am
libcelt/dump_modes.c
libcelt/modes.c
libcelt/static_modes_fixed.h [moved from libcelt/static_modes_fixed.c with 100% similarity]
libcelt/static_modes_float.h [moved from libcelt/static_modes_float.c with 100% similarity]

index 36e965c..b227b7c 100644 (file)
@@ -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
index 42dfa00..2f1ac73 100644 (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 \
        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
index 9051475..d963ff1 100644 (file)
@@ -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);
index 7e813a0..483f9ee 100644 (file)
@@ -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 */