mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-09 20:29:26 -04:00
Remove leading underscores from include guards
This commit is contained in:
parent
f2b401539c
commit
015e95040c
@ -2,11 +2,11 @@
|
|||||||
* adler32.h - Adler-32 checksum algorithm
|
* adler32.h - Adler-32 checksum algorithm
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_ADLER32_H
|
#ifndef LIB_ADLER32_H
|
||||||
#define _LIB_ADLER32_H
|
#define LIB_ADLER32_H
|
||||||
|
|
||||||
#include "lib_common.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
extern u32 adler32(const void *buffer, size_t size);
|
extern u32 adler32(const void *buffer, size_t size);
|
||||||
|
|
||||||
#endif /* _LIB_ADLER32_H */
|
#endif /* LIB_ADLER32_H */
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
* aligned_malloc.c - aligned memory allocation
|
* aligned_malloc.c - aligned memory allocation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_ALIGNED_MALLOC_H
|
#ifndef LIB_ALIGNED_MALLOC_H
|
||||||
#define _LIB_ALIGNED_MALLOC_H
|
#define LIB_ALIGNED_MALLOC_H
|
||||||
|
|
||||||
#include "lib_common.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
extern void *aligned_malloc(size_t alignment, size_t size);
|
extern void *aligned_malloc(size_t alignment, size_t size);
|
||||||
extern void aligned_free(void *ptr);
|
extern void aligned_free(void *ptr);
|
||||||
|
|
||||||
#endif /* _LIB_ALIGNED_MALLOC_H */
|
#endif /* LIB_ALIGNED_MALLOC_H */
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
* crc32.h - CRC-32 checksum algorithm for the gzip format
|
* crc32.h - CRC-32 checksum algorithm for the gzip format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_CRC32_H
|
#ifndef LIB_CRC32_H
|
||||||
#define _LIB_CRC32_H
|
#define LIB_CRC32_H
|
||||||
|
|
||||||
#include "lib_common.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
extern u32 crc32_gzip(const void *buffer, size_t size);
|
extern u32 crc32_gzip(const void *buffer, size_t size);
|
||||||
|
|
||||||
#endif /* _LIB_CRC32_H */
|
#endif /* LIB_CRC32_H */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#ifndef _LIB_DEFLATE_COMPRESS_H
|
#ifndef LIB_DEFLATE_COMPRESS_H
|
||||||
#define _LIB_DEFLATE_COMPRESS_H
|
#define LIB_DEFLATE_COMPRESS_H
|
||||||
|
|
||||||
/* DEFLATE compression is private to deflate_compress.c, but we do need to be
|
/* DEFLATE compression is private to deflate_compress.c, but we do need to be
|
||||||
* able to query the compression level for zlib and gzip header generation. */
|
* able to query the compression level for zlib and gzip header generation. */
|
||||||
@ -9,4 +9,4 @@ struct libdeflate_compressor;
|
|||||||
extern unsigned int
|
extern unsigned int
|
||||||
deflate_get_compression_level(struct libdeflate_compressor *c);
|
deflate_get_compression_level(struct libdeflate_compressor *c);
|
||||||
|
|
||||||
#endif /* _LIB_DEFLATE_COMPRESS_H */
|
#endif /* LIB_DEFLATE_COMPRESS_H */
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* deflate_constants.h - constants for the DEFLATE compression format
|
* deflate_constants.h - constants for the DEFLATE compression format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_DEFLATE_CONSTANTS_H
|
#ifndef LIB_DEFLATE_CONSTANTS_H
|
||||||
#define _LIB_DEFLATE_CONSTANTS_H
|
#define LIB_DEFLATE_CONSTANTS_H
|
||||||
|
|
||||||
/* Valid block types */
|
/* Valid block types */
|
||||||
#define DEFLATE_BLOCKTYPE_UNCOMPRESSED 0
|
#define DEFLATE_BLOCKTYPE_UNCOMPRESSED 0
|
||||||
@ -63,4 +63,4 @@
|
|||||||
(DEFLATE_MAX_LITLEN_CODEWORD_LEN + DEFLATE_MAX_EXTRA_LENGTH_BITS + \
|
(DEFLATE_MAX_LITLEN_CODEWORD_LEN + DEFLATE_MAX_EXTRA_LENGTH_BITS + \
|
||||||
DEFLATE_MAX_OFFSET_CODEWORD_LEN + DEFLATE_MAX_EXTRA_OFFSET_BITS)
|
DEFLATE_MAX_OFFSET_CODEWORD_LEN + DEFLATE_MAX_EXTRA_OFFSET_BITS)
|
||||||
|
|
||||||
#endif /* _LIB_DEFLATE_CONSTANTS_H */
|
#endif /* LIB_DEFLATE_CONSTANTS_H */
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* gzip_constants.h - constants for the gzip wrapper format
|
* gzip_constants.h - constants for the gzip wrapper format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_GZIP_CONSTANTS_H
|
#ifndef LIB_GZIP_CONSTANTS_H
|
||||||
#define _LIB_GZIP_CONSTANTS_H
|
#define LIB_GZIP_CONSTANTS_H
|
||||||
|
|
||||||
#define GZIP_MIN_HEADER_SIZE 10
|
#define GZIP_MIN_HEADER_SIZE 10
|
||||||
#define GZIP_FOOTER_SIZE 8
|
#define GZIP_FOOTER_SIZE 8
|
||||||
@ -42,4 +42,4 @@
|
|||||||
#define GZIP_OS_RISCOS 13
|
#define GZIP_OS_RISCOS 13
|
||||||
#define GZIP_OS_UNKNOWN 255
|
#define GZIP_OS_UNKNOWN 255
|
||||||
|
|
||||||
#endif /* _LIB_GZIP_CONSTANTS_H */
|
#endif /* LIB_GZIP_CONSTANTS_H */
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* lib_common.h - internal header included by all library code
|
* lib_common.h - internal header included by all library code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_LIB_COMMON_H
|
#ifndef LIB_LIB_COMMON_H
|
||||||
#define _LIB_LIB_COMMON_H
|
#define LIB_LIB_COMMON_H
|
||||||
|
|
||||||
#define BUILDING_LIBDEFLATE
|
#define BUILDING_LIBDEFLATE
|
||||||
|
|
||||||
@ -29,4 +29,4 @@
|
|||||||
#define _x86_cpu_features SYM_FIXUP(_x86_cpu_features)
|
#define _x86_cpu_features SYM_FIXUP(_x86_cpu_features)
|
||||||
#define x86_setup_cpu_features SYM_FIXUP(x86_setup_cpu_features)
|
#define x86_setup_cpu_features SYM_FIXUP(x86_setup_cpu_features)
|
||||||
|
|
||||||
#endif /* _LIB_LIB_COMMON_H */
|
#endif /* LIB_LIB_COMMON_H */
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* matchfinder_common.h - common code for Lempel-Ziv matchfinding
|
* matchfinder_common.h - common code for Lempel-Ziv matchfinding
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_MATCHFINDER_COMMON_H
|
#ifndef LIB_MATCHFINDER_COMMON_H
|
||||||
#define _LIB_MATCHFINDER_COMMON_H
|
#define LIB_MATCHFINDER_COMMON_H
|
||||||
|
|
||||||
#include "lib_common.h"
|
#include "lib_common.h"
|
||||||
#include "unaligned.h"
|
#include "unaligned.h"
|
||||||
@ -202,4 +202,4 @@ word_differs:
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _LIB_MATCHFINDER_COMMON_H */
|
#endif /* LIB_MATCHFINDER_COMMON_H */
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* x86_cpu_features.h - feature detection for x86 processors
|
* x86_cpu_features.h - feature detection for x86 processors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_X86_CPU_FEATURES_H
|
#ifndef LIB_X86_CPU_FEATURES_H
|
||||||
#define _LIB_X86_CPU_FEATURES_H
|
#define LIB_X86_CPU_FEATURES_H
|
||||||
|
|
||||||
#include "lib_common.h"
|
#include "lib_common.h"
|
||||||
|
|
||||||
@ -44,4 +44,4 @@ x86_have_cpu_feature(u32 feature)
|
|||||||
|
|
||||||
#endif /* X86_CPU_FEATURES_ENABLED */
|
#endif /* X86_CPU_FEATURES_ENABLED */
|
||||||
|
|
||||||
#endif /* _LIB_X86_CPU_FEATURES_H */
|
#endif /* LIB_X86_CPU_FEATURES_H */
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* zlib_constants.h - constants for the zlib wrapper format
|
* zlib_constants.h - constants for the zlib wrapper format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LIB_ZLIB_CONSTANTS_H
|
#ifndef LIB_ZLIB_CONSTANTS_H
|
||||||
#define _LIB_ZLIB_CONSTANTS_H
|
#define LIB_ZLIB_CONSTANTS_H
|
||||||
|
|
||||||
#define ZLIB_MIN_HEADER_SIZE 2
|
#define ZLIB_MIN_HEADER_SIZE 2
|
||||||
#define ZLIB_FOOTER_SIZE 4
|
#define ZLIB_FOOTER_SIZE 4
|
||||||
@ -18,4 +18,4 @@
|
|||||||
#define ZLIB_DEFAULT_COMPRESSION 2
|
#define ZLIB_DEFAULT_COMPRESSION 2
|
||||||
#define ZLIB_SLOWEST_COMPRESSION 3
|
#define ZLIB_SLOWEST_COMPRESSION 3
|
||||||
|
|
||||||
#endif /* _LIB_ZLIB_CONSTANTS_H */
|
#endif /* LIB_ZLIB_CONSTANTS_H */
|
||||||
|
@ -5,8 +5,8 @@ if [ -z "$CC" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "/* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. */"
|
echo "/* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. */"
|
||||||
echo "#ifndef _CONFIG_H"
|
echo "#ifndef CONFIG_H"
|
||||||
echo "#define _CONFIG_H"
|
echo "#define CONFIG_H"
|
||||||
|
|
||||||
tmpfile="$(mktemp -t libdeflate_config.XXXXXXXX)"
|
tmpfile="$(mktemp -t libdeflate_config.XXXXXXXX)"
|
||||||
trap "rm -f \"$tmpfile\"" EXIT
|
trap "rm -f \"$tmpfile\"" EXIT
|
||||||
@ -31,4 +31,4 @@ check_function posix_fadvise
|
|||||||
check_function posix_madvise
|
check_function posix_madvise
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "#endif /* _CONFIG_H */"
|
echo "#endif /* CONFIG_H */"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user