libs/fst: Fix filename references

This commit is contained in:
Krystine Sherwin 2024-10-17 07:05:23 +13:00
parent 2edb9397c3
commit c4a0845207
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View File

@ -11,3 +11,6 @@ for src in *.c; do
mv -- "$src" "${src%.c}.cc" mv -- "$src" "${src%.c}.cc"
done done
mv config.h.bak config.h mv config.h.bak config.h
sed -i -e 's,<config.h>,"config.h",' *.cc *.h
sed -i -e 's,"fastlz.c","fastlz.cc",' *.cc *.h

View File

@ -108,7 +108,7 @@ int fastlz_decompress(const void* input, int length, void* output, int maxout);
#define FASTLZ_DECOMPRESSOR fastlz1_decompress #define FASTLZ_DECOMPRESSOR fastlz1_decompress
static FASTLZ_INLINE int FASTLZ_COMPRESSOR(const void* input, int length, void* output); static FASTLZ_INLINE int FASTLZ_COMPRESSOR(const void* input, int length, void* output);
static FASTLZ_INLINE int FASTLZ_DECOMPRESSOR(const void* input, int length, void* output, int maxout); static FASTLZ_INLINE int FASTLZ_DECOMPRESSOR(const void* input, int length, void* output, int maxout);
#include "fastlz.c" #include "fastlz.cc"
#undef FASTLZ_LEVEL #undef FASTLZ_LEVEL
#define FASTLZ_LEVEL 2 #define FASTLZ_LEVEL 2
@ -123,7 +123,7 @@ static FASTLZ_INLINE int FASTLZ_DECOMPRESSOR(const void* input, int length, void
#define FASTLZ_DECOMPRESSOR fastlz2_decompress #define FASTLZ_DECOMPRESSOR fastlz2_decompress
static FASTLZ_INLINE int FASTLZ_COMPRESSOR(const void* input, int length, void* output); static FASTLZ_INLINE int FASTLZ_COMPRESSOR(const void* input, int length, void* output);
static FASTLZ_INLINE int FASTLZ_DECOMPRESSOR(const void* input, int length, void* output, int maxout); static FASTLZ_INLINE int FASTLZ_DECOMPRESSOR(const void* input, int length, void* output, int maxout);
#include "fastlz.c" #include "fastlz.cc"
int fastlz_compress(const void* input, int length, void* output) int fastlz_compress(const void* input, int length, void* output)
{ {

View File

@ -39,7 +39,7 @@
*/ */
#ifndef FST_CONFIG_INCLUDE #ifndef FST_CONFIG_INCLUDE
# define FST_CONFIG_INCLUDE <config.h> # define FST_CONFIG_INCLUDE "config.h"
#endif #endif
#include FST_CONFIG_INCLUDE #include FST_CONFIG_INCLUDE