From e3573e447c9df3dc2657df423276aca32d51d114 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 7 Nov 2015 16:10:35 +0100 Subject: Adding upstream version 0.2. Signed-off-by: Daniel Baumann --- main.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'main.h') diff --git a/main.h b/main.h index 2f066cd..6c7ffb6 100644 --- a/main.h +++ b/main.h @@ -1,6 +1,6 @@ /* Plzip - A parallel version of the lzip data compressor Copyright (C) 2009 Laszlo Ersek. - Copyright (C) 2009 Antonio Diaz Diaz. + Copyright (C) 2009, 2010 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,8 +17,8 @@ */ void show_error( const char * msg, const int errcode = 0, const bool help = false ) throw(); -extern void *(*mallocf)(size_t size); -extern void (*freef)(void *ptr); +int readblock( const int fd, char * buf, const int size ) throw(); +int writeblock( const int fd, const char * buf, const int size ) throw(); struct Cond @@ -30,9 +30,8 @@ struct Cond }; -/* Terminate the process with EXIT_FAILURE. */ -void -fatal(void); +/* Terminate the process. */ +void fatal(); /* Format operation and append resolved error, then call fatal(). */ void @@ -43,8 +42,6 @@ __attribute__((format(printf, 1, 3))) ; /* If these primitives fail, they call fail(), which in turn calls fatal(). */ -void * -xalloc(size_t size); void xinit(Cond *cond); -- cgit v1.2.3