diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:10:42 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:10:42 +0000 |
commit | e2f36dd00ba51cd2e5c1793bfd5327c5d4aba142 (patch) | |
tree | cf7e6fe72f0d01c3f0a275ab3e0aafd266c9dc7e /main.h | |
parent | Adding debian version 0.1-1. (diff) | |
download | plzip-e2f36dd00ba51cd2e5c1793bfd5327c5d4aba142.tar.xz plzip-e2f36dd00ba51cd2e5c1793bfd5327c5d4aba142.zip |
Merging upstream version 0.2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | main.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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); |