1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 21:35:07 +00:00

LibCore: compile puff.c as a separate object

This commit is contained in:
joshua stein 2019-12-24 15:41:17 -06:00 committed by Andreas Kling
parent 0343be3837
commit 2aeae2aea9
3 changed files with 10 additions and 2 deletions

View file

@ -2,7 +2,6 @@
#include <AK/ByteBuffer.h> #include <AK/ByteBuffer.h>
#include <AK/Optional.h> #include <AK/Optional.h>
#include <LibCore/puff.h> #include <LibCore/puff.h>
#include <LibCore/puff.c>
#include <limits.h> #include <limits.h>
#include <stddef.h> #include <stddef.h>

View file

@ -22,7 +22,8 @@ OBJS = \
CProcessStatisticsReader.o \ CProcessStatisticsReader.o \
CDirIterator.o \ CDirIterator.o \
CUserInfo.o \ CUserInfo.o \
CGzip.o CGzip.o \
puff.o
LIBRARY = libcore.a LIBRARY = libcore.a

View file

@ -21,6 +21,10 @@
Mark Adler madler@alumni.caltech.edu Mark Adler madler@alumni.caltech.edu
*/ */
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* See puff.c for purpose and usage. * See puff.c for purpose and usage.
*/ */
@ -32,3 +36,7 @@ int puff(unsigned char* dest, /* pointer to destination pointer */
unsigned long* destlen, /* amount of output space */ unsigned long* destlen, /* amount of output space */
const unsigned char* source, /* pointer to source data pointer */ const unsigned char* source, /* pointer to source data pointer */
unsigned long* sourcelen); /* amount of input available */ unsigned long* sourcelen); /* amount of input available */
#ifdef __cplusplus
}
#endif