From d16fe3df649cb48d5ffa26187da3dad4c3066646 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 3 Dec 2011 17:38:11 +0100 Subject: [PATCH] Always include stdbool.h. This adds the #include statement for stdbool.h to para.h. This allows to get rid of the individual includes in *.c. More importantly, since all *.c files include para.h, booleans will now be available everywhere so that we won't need to touch dozens of files anymore whenever a boolean is added to a public structure. --- aacdec_filter.c | 1 - alsa_write.c | 1 - amp_filter.c | 1 - ao_write.c | 1 - audiod.c | 1 - audiod_command.c | 1 - buffer_tree.c | 1 - client.c | 1 - command.c | 1 - compress_filter.c | 1 - crypt.c | 1 - crypt_common.c | 1 - daemon.c | 1 - fecdec_filter.c | 1 - file_write.c | 1 - filter.c | 1 - filter_common.c | 1 - flac_afh.c | 1 - flacdec_filter.c | 1 - gcrypt.c | 1 - grab_client.c | 1 - gui_theme.c | 1 - http_send.c | 1 - mp3dec_filter.c | 1 - net.h | 2 -- oggdec_filter.c | 1 - oss_write.c | 1 - osx_write.c | 1 - para.h | 1 + prebuffer_filter.c | 1 - recv.c | 1 - recv_common.c | 1 - sched.c | 1 - server.c | 1 - spx_afh.c | 1 - spxdec_filter.c | 1 - stdin.c | 1 - stdout.c | 1 - udp_send.c | 1 - wav_filter.c | 1 - wmadec_filter.c | 1 - write.c | 1 - write_common.c | 1 - 43 files changed, 1 insertion(+), 43 deletions(-) diff --git a/aacdec_filter.c b/aacdec_filter.c index 95c13305..6c843799 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -11,7 +11,6 @@ /** \file aacdec_filter.c paraslash's aac (m4a) decoder. */ #include -#include #include "para.h" #include "list.h" diff --git a/alsa_write.c b/alsa_write.c index e741578c..1ae26637 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -16,7 +16,6 @@ #include #include #include -#include #include "para.h" #include "fd.h" diff --git a/amp_filter.c b/amp_filter.c index 21fd9fd1..e857e31a 100644 --- a/amp_filter.c +++ b/amp_filter.c @@ -7,7 +7,6 @@ /** \file amp_filter.c Paraslash's amplify filter. */ #include -#include #include "para.h" #include "amp_filter.cmdline.h" diff --git a/ao_write.c b/ao_write.c index bb60e191..d36a53ab 100644 --- a/ao_write.c +++ b/ao_write.c @@ -9,7 +9,6 @@ #include #include #include -#include #include "para.h" #include "fd.h" diff --git a/audiod.c b/audiod.c index 29578726..88411af4 100644 --- a/audiod.c +++ b/audiod.c @@ -8,7 +8,6 @@ #include #include #include -#include #include "para.h" #include "error.h" diff --git a/audiod_command.c b/audiod_command.c index adfa07ed..9f867cce 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "audiod.cmdline.h" diff --git a/buffer_tree.c b/buffer_tree.c index cb9d514f..3a1f3e23 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -6,7 +6,6 @@ /** \file buffer_tree.c Buffer tree and buffer pool implementations. */ #include -#include #include "para.h" #include "list.h" diff --git a/client.c b/client.c index c6fde490..f4a4ad50 100644 --- a/client.c +++ b/client.c @@ -7,7 +7,6 @@ /** \file client.c the client program used to connect to para_server */ #include -#include #include #include "para.h" diff --git a/command.c b/command.c index 932c9f3a..aa827f2b 100644 --- a/command.c +++ b/command.c @@ -11,7 +11,6 @@ #include #include #include -#include #include "para.h" #include "error.h" diff --git a/compress_filter.c b/compress_filter.c index d0816df4..f6ab8b12 100644 --- a/compress_filter.c +++ b/compress_filter.c @@ -11,7 +11,6 @@ */ #include -#include #include "para.h" #include "compress_filter.cmdline.h" diff --git a/crypt.c b/crypt.c index 431de6fe..4762fddc 100644 --- a/crypt.c +++ b/crypt.c @@ -7,7 +7,6 @@ /** \file crypt.c Openssl-based encryption/decryption routines. */ #include -#include #include #include #include diff --git a/crypt_common.c b/crypt_common.c index 8de346c7..a421641e 100644 --- a/crypt_common.c +++ b/crypt_common.c @@ -7,7 +7,6 @@ /** \file crypt_common.c Crypto functions independent of openssl/libgcrypt. */ #include -#include #include "para.h" #include "error.h" diff --git a/daemon.c b/daemon.c index f06cf2f5..03058619 100644 --- a/daemon.c +++ b/daemon.c @@ -11,7 +11,6 @@ #include /* getgrnam() */ #include #include -#include #include #include "para.h" diff --git a/fecdec_filter.c b/fecdec_filter.c index 09a2fabd..950c1a1f 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -7,7 +7,6 @@ /** \file fecdec_filter.c A filter that fec-decodes an audio stream. */ #include -#include #include "para.h" #include "error.h" diff --git a/file_write.c b/file_write.c index bfade187..debf0767 100644 --- a/file_write.c +++ b/file_write.c @@ -9,7 +9,6 @@ #include #include #include -#include #include "para.h" #include "list.h" diff --git a/filter.c b/filter.c index bc9952ae..8ef9ac1a 100644 --- a/filter.c +++ b/filter.c @@ -7,7 +7,6 @@ /** \file filter.c The stand-alone filter program. */ #include -#include #include "para.h" #include "filter.cmdline.h" diff --git a/filter_common.c b/filter_common.c index 1233c9ad..461d88bb 100644 --- a/filter_common.c +++ b/filter_common.c @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "list.h" diff --git a/flac_afh.c b/flac_afh.c index b3a0f6e7..9efc4e0a 100644 --- a/flac_afh.c +++ b/flac_afh.c @@ -7,7 +7,6 @@ /** \file flac_afh.c Audio format handler for flac files. */ #include -#include #include #include diff --git a/flacdec_filter.c b/flacdec_filter.c index 02759643..9a83c599 100644 --- a/flacdec_filter.c +++ b/flacdec_filter.c @@ -7,7 +7,6 @@ /** \file flacdec_filter.c The flac decoder. */ #include -#include #include #include "para.h" diff --git a/gcrypt.c b/gcrypt.c index f825f6c6..8c0a4194 100644 --- a/gcrypt.c +++ b/gcrypt.c @@ -7,7 +7,6 @@ /** \file gcrypt.c Libgrcypt-based encryption/decryption routines. */ #include -#include #include #include "para.h" diff --git a/grab_client.c b/grab_client.c index e5f42416..de69f074 100644 --- a/grab_client.c +++ b/grab_client.c @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "list.h" diff --git a/gui_theme.c b/gui_theme.c index 4abc45ec..f3a3729e 100644 --- a/gui_theme.c +++ b/gui_theme.c @@ -4,7 +4,6 @@ * Licensed under the GPL v2. For licencing details see COPYING. */ -#include #include "para.h" #include "gui.h" #include diff --git a/http_send.c b/http_send.c index 50211701..b78784b5 100644 --- a/http_send.c +++ b/http_send.c @@ -9,7 +9,6 @@ #include #include #include -#include #include "para.h" #include "error.h" diff --git a/mp3dec_filter.c b/mp3dec_filter.c index 5c4b1611..a6fb2bd4 100644 --- a/mp3dec_filter.c +++ b/mp3dec_filter.c @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "mp3dec_filter.cmdline.h" diff --git a/net.h b/net.h index 79c5994c..ee5116e4 100644 --- a/net.h +++ b/net.h @@ -3,8 +3,6 @@ * * Licensed under the GPL v2. For licencing details see COPYING. */ -#include - /** \file net.h exported symbols from net.c */ /** diff --git a/oggdec_filter.c b/oggdec_filter.c index 07e4cec1..bba71c6c 100644 --- a/oggdec_filter.c +++ b/oggdec_filter.c @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "list.h" diff --git a/oss_write.c b/oss_write.c index d583c233..05669bb7 100644 --- a/oss_write.c +++ b/oss_write.c @@ -10,7 +10,6 @@ #include #include #include -#include #include "para.h" #include "fd.h" diff --git a/osx_write.c b/osx_write.c index 429c7139..001c8176 100644 --- a/osx_write.c +++ b/osx_write.c @@ -13,7 +13,6 @@ #include #include -#include #include "para.h" #include "fd.h" diff --git a/para.h b/para.h index 96492baa..ac6a03fc 100644 --- a/para.h +++ b/para.h @@ -25,6 +25,7 @@ #include /* needed by create_pf_socket */ #include #include +#include #include "gcc-compat.h" /** used in various contexts */ diff --git a/prebuffer_filter.c b/prebuffer_filter.c index e1b0390c..f0cd40c9 100644 --- a/prebuffer_filter.c +++ b/prebuffer_filter.c @@ -7,7 +7,6 @@ /** \file prebuffer_filter.c Paraslash's prebuffering filter. */ #include -#include #include "para.h" #include "prebuffer_filter.cmdline.h" diff --git a/recv.c b/recv.c index 9b63f517..b915156a 100644 --- a/recv.c +++ b/recv.c @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "list.h" diff --git a/recv_common.c b/recv_common.c index 53a105df..9544420b 100644 --- a/recv_common.c +++ b/recv_common.c @@ -7,7 +7,6 @@ /** \file recv_common.c common functions of para_recv and para_audiod */ #include -#include #include "para.h" #include "list.h" diff --git a/sched.c b/sched.c index 041cf417..4c94c423 100644 --- a/sched.c +++ b/sched.c @@ -9,7 +9,6 @@ #include #include #include -#include #include "para.h" #include "ipc.h" diff --git a/server.c b/server.c index ef79a2e8..d322dd47 100644 --- a/server.c +++ b/server.c @@ -67,7 +67,6 @@ #include #include #include -#include #include "para.h" #include "error.h" diff --git a/spx_afh.c b/spx_afh.c index a95f234c..dcd8e2d6 100644 --- a/spx_afh.c +++ b/spx_afh.c @@ -38,7 +38,6 @@ */ /** \file spx_afh.c Audio format handler for ogg/speex files. */ -#include #include #include #include diff --git a/spxdec_filter.c b/spxdec_filter.c index 41b66c51..a48d8695 100644 --- a/spxdec_filter.c +++ b/spxdec_filter.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/stdin.c b/stdin.c index c4ab323d..4b77a3d8 100644 --- a/stdin.c +++ b/stdin.c @@ -7,7 +7,6 @@ /** \file stdin.c Functions that deal with reading from stdin. */ #include -#include #include #include "para.h" diff --git a/stdout.c b/stdout.c index a2ee2aca..33770c46 100644 --- a/stdout.c +++ b/stdout.c @@ -7,7 +7,6 @@ /** \file stdout.c Functions that deal with writing to stdout. */ #include -#include #include "para.h" #include "list.h" diff --git a/udp_send.c b/udp_send.c index 880d7957..d55a9abf 100644 --- a/udp_send.c +++ b/udp_send.c @@ -13,7 +13,6 @@ #include #include #include -#include #include "server.cmdline.h" #include "para.h" diff --git a/wav_filter.c b/wav_filter.c index 8408034d..3149e5b4 100644 --- a/wav_filter.c +++ b/wav_filter.c @@ -7,7 +7,6 @@ /** \file wav_filter.c A filter that inserts a wave header. */ #include -#include #include "para.h" #include "error.h" diff --git a/wmadec_filter.c b/wmadec_filter.c index c6eb0b1c..7d89d112 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -25,7 +25,6 @@ #include #include #include -#include #include "para.h" #include "error.h" diff --git a/write.c b/write.c index afaad951..946653f6 100644 --- a/write.c +++ b/write.c @@ -8,7 +8,6 @@ #include #include -#include #include "para.h" #include "string.h" diff --git a/write_common.c b/write_common.c index 71b6664d..91c84775 100644 --- a/write_common.c +++ b/write_common.c @@ -7,7 +7,6 @@ /** \file write_common.c common functions of para_audiod and para_write */ #include -#include #include "para.h" #include "string.h" -- 2.39.5