diff options
author | Ron <ron@debian.org> | 2013-12-07 02:14:18 +0400 |
---|---|---|
committer | Ron <ron@debian.org> | 2013-12-07 04:57:07 +0400 |
commit | e2d3bc3923287bc3e68ba13ddebe72ad2f9c62ae (patch) | |
tree | e829cddde8584ef4e69cac238ee17fa389c7b1d5 /libspeex | |
parent | 6da046b6c1afbe11f4efead4723df6a9f04d2097 (diff) |
Tidy the speex/*.h includes some more
This is a partial revert of 785e61a593c61ebc0afee5d87eca9cc73e16d6a6.
The _BUILD_SPEEX special case isn't needed in the public headers, and
we don't need '../include' relative paths in the internal files.
Drop a few of the latter altogether where foo.c was including headers
already included by its foo.h.
The OUTSIDE_SPEEX guard isn't needed here anymore either, since that
was only for the resampler which is now in a separate source tree.
Diffstat (limited to 'libspeex')
-rw-r--r-- | libspeex/Makefile.am | 2 | ||||
-rw-r--r-- | libspeex/arch.h | 4 | ||||
-rw-r--r-- | libspeex/bits.c | 2 | ||||
-rw-r--r-- | libspeex/cb_search.h | 2 | ||||
-rw-r--r-- | libspeex/ltp.c | 1 | ||||
-rw-r--r-- | libspeex/ltp.h | 2 | ||||
-rw-r--r-- | libspeex/modes.h | 3 | ||||
-rw-r--r-- | libspeex/nb_celp.c | 2 | ||||
-rw-r--r-- | libspeex/nb_celp.h | 3 | ||||
-rw-r--r-- | libspeex/quant_lsp.h | 2 | ||||
-rw-r--r-- | libspeex/sb_celp.h | 1 | ||||
-rw-r--r-- | libspeex/speex_callbacks.c | 2 | ||||
-rw-r--r-- | libspeex/speex_header.c | 4 | ||||
-rw-r--r-- | libspeex/stereo.c | 4 | ||||
-rw-r--r-- | libspeex/testenc.c | 3 | ||||
-rw-r--r-- | libspeex/testenc_uwb.c | 3 | ||||
-rw-r--r-- | libspeex/testenc_wb.c | 3 |
17 files changed, 16 insertions, 27 deletions
diff --git a/libspeex/Makefile.am b/libspeex/Makefile.am index 91f5da9..e71173b 100644 --- a/libspeex/Makefile.am +++ b/libspeex/Makefile.am @@ -17,7 +17,7 @@ else FFTSRC= endif -INCLUDES = -I$(top_builddir)/include -I$(top_builddir) @OGG_CFLAGS@ @FFT_CFLAGS@ +INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include/speex -I$(top_builddir) @OGG_CFLAGS@ @FFT_CFLAGS@ lib_LTLIBRARIES = libspeex.la diff --git a/libspeex/arch.h b/libspeex/arch.h index 3b47ed9..70fd669 100644 --- a/libspeex/arch.h +++ b/libspeex/arch.h @@ -74,9 +74,7 @@ #endif -#ifndef OUTSIDE_SPEEX -#include "../include/speex/speex_types.h" -#endif +#include "speex/speex_types.h" #define ABS(x) ((x) < 0 ? (-(x)) : (x)) /**< Absolute integer value. */ #define ABS16(x) ((x) < 0 ? (-(x)) : (x)) /**< Absolute 16-bit value. */ diff --git a/libspeex/bits.c b/libspeex/bits.c index 95adbfd..94c280a 100644 --- a/libspeex/bits.c +++ b/libspeex/bits.c @@ -36,7 +36,7 @@ #include "config.h" #endif -#include "../include/speex/speex_bits.h" +#include "speex/speex_bits.h" #include "arch.h" #include "os_support.h" diff --git a/libspeex/cb_search.h b/libspeex/cb_search.h index e4fa60b..50b530a 100644 --- a/libspeex/cb_search.h +++ b/libspeex/cb_search.h @@ -35,7 +35,7 @@ #ifndef CB_SEARCH_H #define CB_SEARCH_H -#include "../include/speex/speex_bits.h" +#include "speex/speex_bits.h" #include "arch.h" /** Split codebook parameters. */ diff --git a/libspeex/ltp.c b/libspeex/ltp.c index f20bca5..e9e6c5a 100644 --- a/libspeex/ltp.c +++ b/libspeex/ltp.c @@ -38,7 +38,6 @@ #include "ltp.h" #include "stack_alloc.h" #include "filters.h" -#include "../include/speex/speex_bits.h" #include "math_approx.h" #include "os_support.h" diff --git a/libspeex/ltp.h b/libspeex/ltp.h index 7218ffe..95bb126 100644 --- a/libspeex/ltp.h +++ b/libspeex/ltp.h @@ -35,7 +35,7 @@ #ifndef LTP_H #define LTP_H -#include "../include/speex/speex_bits.h" +#include "speex/speex_bits.h" #include "arch.h" /** LTP parameters. */ diff --git a/libspeex/modes.h b/libspeex/modes.h index cc4d064..0977a57 100644 --- a/libspeex/modes.h +++ b/libspeex/modes.h @@ -36,8 +36,7 @@ #ifndef MODES_H #define MODES_H -#include "../include/speex/speex.h" -#include "../include/speex/speex_bits.h" +#include "speex/speex.h" #include "arch.h" #define NB_SUBMODES 16 diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c index ab2511d..3b050aa 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -43,12 +43,10 @@ #include "filters.h" #include "stack_alloc.h" #include "vq.h" -#include "../include/speex/speex_bits.h" #include "vbr.h" #include "arch.h" #include "math_approx.h" #include "os_support.h" -#include "../include/speex/speex_callbacks.h" #ifdef VORBIS_PSYCHO #include "vorbis_psy.h" diff --git a/libspeex/nb_celp.h b/libspeex/nb_celp.h index 39be0b1..a8d3088 100644 --- a/libspeex/nb_celp.h +++ b/libspeex/nb_celp.h @@ -37,8 +37,7 @@ #define NB_CELP_H #include "modes.h" -#include "../include/speex/speex_bits.h" -#include "../include/speex/speex_callbacks.h" +#include "speex/speex_callbacks.h" #include "vbr.h" #include "filters.h" diff --git a/libspeex/quant_lsp.h b/libspeex/quant_lsp.h index 2f89430..0fc206b 100644 --- a/libspeex/quant_lsp.h +++ b/libspeex/quant_lsp.h @@ -35,7 +35,7 @@ #ifndef QUANT_LSP_H #define QUANT_LSP_H -#include "../include/speex/speex_bits.h" +#include "speex/speex_bits.h" #include "arch.h" #define MAX_LSP_SIZE 20 diff --git a/libspeex/sb_celp.h b/libspeex/sb_celp.h index f60e86e..141d0c2 100644 --- a/libspeex/sb_celp.h +++ b/libspeex/sb_celp.h @@ -37,7 +37,6 @@ #define SB_CELP_H #include "modes.h" -#include "../include/speex/speex_bits.h" #include "nb_celp.h" /**Structure representing the full state of the sub-band encoder*/ diff --git a/libspeex/speex_callbacks.c b/libspeex/speex_callbacks.c index 27fd19a..09f037c 100644 --- a/libspeex/speex_callbacks.c +++ b/libspeex/speex_callbacks.c @@ -36,7 +36,7 @@ #include "config.h" #endif -#include "../include/speex/speex_callbacks.h" +#include "speex/speex_callbacks.h" #include "arch.h" #include "os_support.h" diff --git a/libspeex/speex_header.c b/libspeex/speex_header.c index 5d6bb04..e56f87e 100644 --- a/libspeex/speex_header.c +++ b/libspeex/speex_header.c @@ -36,8 +36,8 @@ #endif #include "arch.h" -#include "../include/speex/speex_header.h" -#include "../include/speex/speex.h" +#include "speex/speex_header.h" +#include "speex/speex.h" #include "os_support.h" #ifndef NULL diff --git a/libspeex/stereo.c b/libspeex/stereo.c index 02337ef..8fee55e 100644 --- a/libspeex/stereo.c +++ b/libspeex/stereo.c @@ -33,8 +33,8 @@ #include "config.h" #endif -#include "../include/speex/speex_stereo.h" -#include "../include/speex/speex_callbacks.h" +#include "speex/speex_stereo.h" +#include "speex/speex_callbacks.h" #include "math_approx.h" #include "vq.h" #include <math.h> diff --git a/libspeex/testenc.c b/libspeex/testenc.c index f4709b4..88a6492 100644 --- a/libspeex/testenc.c +++ b/libspeex/testenc.c @@ -2,10 +2,9 @@ #include "config.h" #endif -#include "../include/speex/speex.h" +#include "speex/speex_callbacks.h" #include <stdio.h> #include <stdlib.h> -#include "../include/speex/speex_callbacks.h" #ifdef FIXED_DEBUG extern long long spx_mips; diff --git a/libspeex/testenc_uwb.c b/libspeex/testenc_uwb.c index 18b51d6..2dfd695 100644 --- a/libspeex/testenc_uwb.c +++ b/libspeex/testenc_uwb.c @@ -2,10 +2,9 @@ #include "config.h" #endif -#include "../include/speex/speex.h" +#include "speex/speex_callbacks.h" #include <stdio.h> #include <stdlib.h> -#include "../include/speex/speex_callbacks.h" #ifdef FIXED_DEBUG extern long long spx_mips; diff --git a/libspeex/testenc_wb.c b/libspeex/testenc_wb.c index 843bc24..64ba237 100644 --- a/libspeex/testenc_wb.c +++ b/libspeex/testenc_wb.c @@ -2,10 +2,9 @@ #include "config.h" #endif -#include "../include/speex/speex.h" +#include "speex/speex_callbacks.h" #include <stdio.h> #include <stdlib.h> -#include "../include/speex/speex_callbacks.h" #ifdef FIXED_DEBUG extern long long spx_mips; |