file.c (libcaca-0.99.beta19) | : | file.c (libcaca-0.99.beta20.tar.bz2) | ||
---|---|---|---|---|
/* | /* | |||
* libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | |||
* Copyright (c) 2006-2012 Sam Hocevar <sam@hocevar.net> | * Copyright © 2006—2018 Sam Hocevar <sam@hocevar.net> | |||
* All Rights Reserved | * All Rights Reserved | |||
* | * | |||
* This library is free software. It comes without any warranty, to | * This library is free software. It comes without any warranty, to | |||
* the extent permitted by applicable law. You can redistribute it | * the extent permitted by applicable law. You can redistribute it | |||
* and/or modify it under the terms of the Do What the Fuck You Want | * and/or modify it under the terms of the Do What the Fuck You Want | |||
* to Public License, Version 2, as published by Sam Hocevar. See | * to Public License, Version 2, as published by Sam Hocevar. See | |||
* http://www.wtfpl.net/ for more details. | * http://www.wtfpl.net/ for more details. | |||
*/ | */ | |||
/* | /* | |||
* This file contains functions for compressed file I/O. | * This file contains functions for compressed file I/O. | |||
skipping to change at line 356 | skipping to change at line 356 | |||
} | } | |||
if(ret != Z_OK) | if(ret != Z_OK) | |||
return ret; | return ret; | |||
} | } | |||
fp->total += total_read; | fp->total += total_read; | |||
return total_read; | return total_read; | |||
} | } | |||
#endif | #endif | |||
/* | ||||
* XXX: The following functions are aliases. | ||||
*/ | ||||
cucul_file_t *cucul_file_open(char const *, const char *) | ||||
CACA_ALIAS(caca_file_open); | ||||
int cucul_file_close(cucul_file_t *) CACA_ALIAS(caca_file_close); | ||||
uint64_t cucul_file_tell(cucul_file_t *) CACA_ALIAS(caca_file_tell); | ||||
size_t cucul_file_read(cucul_file_t *, void *, size_t) | ||||
CACA_ALIAS(caca_file_read); | ||||
size_t cucul_file_write(cucul_file_t *, const void *, size_t) | ||||
CACA_ALIAS(caca_file_write); | ||||
char * cucul_file_gets(cucul_file_t *, char *, int) | ||||
CACA_ALIAS(caca_file_gets); | ||||
int cucul_file_eof(cucul_file_t *) CACA_ALIAS(caca_file_eof); | ||||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |