Kouhei Sutou
null+****@clear*****
Thu Oct 30 18:41:14 JST 2014
Kouhei Sutou 2014-10-30 18:41:14 +0900 (Thu, 30 Oct 2014) New Revision: 16b3e76177d33f5911a30a7756d3ed3e071169e0 https://github.com/groonga/groonga/commit/16b3e76177d33f5911a30a7756d3ed3e071169e0 Message: Remove needless indef checks They are done in included headers. Modified files: lib/grn.h lib/grn_com.h lib/grn_ctx.h lib/grn_db.h lib/grn_hash.h lib/grn_ii.h lib/grn_io.h lib/grn_normalizer.h lib/grn_output.h lib/grn_pat.h lib/grn_plugin.h lib/grn_proc.h lib/grn_store.h lib/grn_str.h lib/grn_token.h lib/grn_util.h lib/output.c Modified: lib/grn.h (+1 -3) =================================================================== --- lib/grn.h 2014-10-30 18:37:01 +0900 (51f5fe2) +++ lib/grn.h 2014-10-30 18:41:14 +0900 (9e66efd) @@ -751,8 +751,6 @@ grn_str_greater(const uint8_t *ap, uint32_t as, const uint8_t *bp, uint32_t bs) GRN_API void grn_sleep(uint32_t seconds); GRN_API void grn_nanosleep(uint64_t nanoseconds); -#ifndef GROONGA_H -# include <groonga.h> -#endif /* GROONGA_H */ +#include <groonga.h> #endif /* GRN_H */ Modified: lib/grn_com.h (+0 -8) =================================================================== --- lib/grn_com.h 2014-10-30 18:37:01 +0900 (8f09e1f) +++ lib/grn_com.h 2014-10-30 18:41:14 +0900 (203ed56) @@ -18,17 +18,9 @@ #ifndef GRN_COM_H #define GRN_COM_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_STR_H #include "grn_str.h" -#endif /* GRN_STR_H */ - -#ifndef GRN_HASH_H #include "grn_hash.h" -#endif /* GRN_HASH_H */ #ifdef HAVE_NETDB_H #include <netdb.h> Modified: lib/grn_ctx.h (+0 -7) =================================================================== --- lib/grn_ctx.h 2014-10-30 18:37:01 +0900 (c2c0e08) +++ lib/grn_ctx.h 2014-10-30 18:41:14 +0900 (b502f94) @@ -18,13 +18,8 @@ #ifndef GRN_CTX_H #define GRN_CTX_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifdef HAVE_ERRNO_H #include <errno.h> -#endif /* HAVE_ERRNO_H */ #ifdef HAVE_SIGNAL_H #include <signal.h> @@ -35,9 +30,7 @@ #include <execinfo.h> #endif /* HAVE_EXECINFO_H */ -#ifndef GRN_IO_H #include "grn_io.h" -#endif /* GRN_IO_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_db.h (+0 -8) =================================================================== --- lib/grn_db.h 2014-10-30 18:37:01 +0900 (068c4e7) +++ lib/grn_db.h 2014-10-30 18:41:14 +0900 (ef932cc) @@ -17,17 +17,9 @@ #ifndef GRN_DB_H #define GRN_DB_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ - -#ifndef GRN_STORE_H #include "grn_store.h" -#endif /* GRN_STORE_H */ #include <groonga/token_filter.h> Modified: lib/grn_hash.h (+0 -5) =================================================================== --- lib/grn_hash.h 2014-10-30 18:37:01 +0900 (5ce7d71) +++ lib/grn_hash.h 2014-10-30 18:41:14 +0900 (44f5bcb) @@ -17,13 +17,8 @@ #ifndef GRN_HASH_H #define GRN_HASH_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_ii.h (+0 -11) =================================================================== --- lib/grn_ii.h 2014-10-30 18:37:01 +0900 (20bafe1) +++ lib/grn_ii.h 2014-10-30 18:41:14 +0900 (7bc2964) @@ -19,21 +19,10 @@ /* "ii" is for inverted index */ -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_HASH_H #include "grn_hash.h" -#endif /* GRN_HASH_H */ - -#ifndef GRN_IO_H #include "grn_io.h" -#endif /* GRN_IO_H */ - -#ifndef GRN_STORE_H #include "grn_store.h" -#endif /* GRN_STORE_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_io.h (+0 -5) =================================================================== --- lib/grn_io.h 2014-10-30 18:37:01 +0900 (fed0f25) +++ lib/grn_io.h 2014-10-30 18:41:14 +0900 (fcf1174) @@ -17,13 +17,8 @@ #ifndef GRN_IO_H #define GRN_IO_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_ERROR_H #include "grn_error.h" -#endif /* GRN_ERROR_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_normalizer.h (+0 -8) =================================================================== --- lib/grn_normalizer.h 2014-10-30 18:37:01 +0900 (1ed12a7) +++ lib/grn_normalizer.h 2014-10-30 18:41:14 +0900 (8c7bfdd) @@ -18,17 +18,9 @@ #ifndef GRN_NORMALIZER_H #define GRN_NORMALIZER_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ - -#ifndef GRN_DB_H #include "grn_db.h" -#endif /* GRN_DB_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_output.h (+0 -11) =================================================================== --- lib/grn_output.h 2014-10-30 18:37:01 +0900 (2892b5b) +++ lib/grn_output.h 2014-10-30 18:41:14 +0900 (7602ca7) @@ -17,21 +17,10 @@ #ifndef GRN_OUTPUT_H #define GRN_OUTPUT_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ - -#ifndef GRN_STORE_H #include "grn_store.h" -#endif /* GRN_STORE_H */ - -#ifndef GRN_CTX_IMPL_H #include "grn_ctx_impl.h" -#endif /* GRN_CTX_IMPL_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_pat.h (+0 -3) =================================================================== --- lib/grn_pat.h 2014-10-30 18:37:01 +0900 (882d869) +++ lib/grn_pat.h 2014-10-30 18:41:14 +0900 (763c684) @@ -17,10 +17,7 @@ #ifndef GRN_PAT_H #define GRN_PAT_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - #include "grn_db.h" #include "grn_hash.h" Modified: lib/grn_plugin.h (+0 -8) =================================================================== --- lib/grn_plugin.h 2014-10-30 18:37:01 +0900 (841ca6d) +++ lib/grn_plugin.h 2014-10-30 18:41:14 +0900 (d5636e3) @@ -17,17 +17,9 @@ #ifndef GRN_PLUGIN_H #define GRN_PLUGIN_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ - -#ifndef GRN_STORE_H #include "grn_store.h" -#endif /* GRN_STORE_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_proc.h (+0 -2) =================================================================== --- lib/grn_proc.h 2014-10-30 18:37:01 +0900 (340904d) +++ lib/grn_proc.h 2014-10-30 18:41:14 +0900 (fb01698) @@ -17,9 +17,7 @@ #ifndef GRN_PROC_H #define GRN_PROC_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_store.h (+0 -11) =================================================================== --- lib/grn_store.h 2014-10-30 18:37:01 +0900 (abe2c2c) +++ lib/grn_store.h 2014-10-30 18:41:14 +0900 (742d113) @@ -17,21 +17,10 @@ #ifndef GRN_STORE_H #define GRN_STORE_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ - -#ifndef GRN_HASH_H #include "grn_hash.h" -#endif /* GRN_HASH_H */ - -#ifndef GRN_IO_H #include "grn_io.h" -#endif /* GRN_IO_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_str.h (+0 -5) =================================================================== --- lib/grn_str.h 2014-10-30 18:37:01 +0900 (af7a604) +++ lib/grn_str.h 2014-10-30 18:41:14 +0900 (d283010) @@ -17,13 +17,8 @@ #ifndef GRN_STR_H #define GRN_STR_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_NFKC_H #include <groonga/nfkc.h> -#endif /* GRN_NFKC_H */ #ifdef __cplusplus extern "C" { Modified: lib/grn_token.h (+0 -11) =================================================================== --- lib/grn_token.h 2014-10-30 18:37:01 +0900 (6af68a8) +++ lib/grn_token.h 2014-10-30 18:41:14 +0900 (bb6dc39) @@ -17,21 +17,10 @@ #ifndef GRN_TOKEN_H #define GRN_TOKEN_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ - -#ifndef GRN_DB_H #include "grn_db.h" -#endif /* GRN_DB_H */ - -#ifndef GRN_STR_H #include "grn_str.h" -#endif /* GRN_STR_H */ #include <groonga/tokenizer.h> Modified: lib/grn_util.h (+0 -5) =================================================================== --- lib/grn_util.h 2014-10-30 18:37:01 +0900 (e9c3f17) +++ lib/grn_util.h 2014-10-30 18:41:14 +0900 (8daea9a) @@ -17,13 +17,8 @@ #ifndef GRN_UTIL_H #define GRN_UTIL_H -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ - -#ifndef GRN_CTX_H #include "grn_ctx.h" -#endif /* GRN_CTX_H */ #ifdef __cplusplus extern "C" { Modified: lib/output.c (+0 -2) =================================================================== --- lib/output.c 2014-10-30 18:37:01 +0900 (fb6bc02) +++ lib/output.c 2014-10-30 18:41:14 +0900 (ca44fcb) @@ -15,9 +15,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef GRN_H #include "grn.h" -#endif /* GRN_H */ #include <string.h> #include "grn_str.h" -------------- next part -------------- HTML����������������������������... Descargar