diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2015-02-11 15:14:25 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2015-03-26 09:34:26 +0100 |
commit | 119890b3a68746f8733676e3f544ef90e1c165c3 (patch) | |
tree | d0ee6c2f17b849da85535b75a88551056c559bc4 /bsdiff.c | |
parent | 95f126c7eec42de0dec71b93362b9ea05033c62d (diff) | |
download | bsdiff-119890b3a68746f8733676e3f544ef90e1c165c3.tar.gz |
build: split .c files into .c and .h
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'bsdiff.c')
-rw-r--r-- | bsdiff.c | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -25,24 +25,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include <stddef.h> -#include <stdint.h> - -struct bsdiff_stream -{ - void* opaque; - - void* (*malloc)(size_t size); - void (*free)(void* ptr); - int (*write)(struct bsdiff_stream* stream, const void* buffer, int size); -}; - -int bsdiff(const uint8_t* old, int64_t oldsize, const uint8_t* new, int64_t newsize, struct bsdiff_stream* stream); - -#if !defined(BSDIFF_HEADER_ONLY) - -#include <limits.h> -#include <string.h> +#include "bsdiff.h" #define MIN(x,y) (((x)<(y)) ? (x) : (y)) @@ -457,5 +440,3 @@ int main(int argc,char *argv[]) } #endif - -#endif |