Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:04:57

0001 /* lzoutil.h -- utility functions for use by applications
0002 
0003    This file is part of the LZO real-time data compression library.
0004 
0005    Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
0006    All Rights Reserved.
0007 
0008    The LZO library is free software; you can redistribute it and/or
0009    modify it under the terms of the GNU General Public License as
0010    published by the Free Software Foundation; either version 2 of
0011    the License, or (at your option) any later version.
0012 
0013    The LZO library is distributed in the hope that it will be useful,
0014    but WITHOUT ANY WARRANTY; without even the implied warranty of
0015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016    GNU General Public License for more details.
0017 
0018    You should have received a copy of the GNU General Public License
0019    along with the LZO library; see the file COPYING.
0020    If not, write to the Free Software Foundation, Inc.,
0021    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0022 
0023    Markus F.X.J. Oberhumer
0024    <markus@oberhumer.com>
0025    http://www.oberhumer.com/opensource/lzo/
0026  */
0027 
0028 
0029 #ifndef __LZOUTIL_H_INCLUDED
0030 #define __LZOUTIL_H_INCLUDED 1
0031 
0032 #ifndef __LZOCONF_H_INCLUDED
0033 #include <lzo/lzoconf.h>
0034 #endif
0035 
0036 #ifdef __cplusplus
0037 extern "C" {
0038 #endif
0039 
0040 
0041 /***********************************************************************
0042 // LZO-v1 deprecated macros (which were used in the old example programs)
0043 //
0044 // THIS FILE IS DEPRECATED. DO NOT USE.
0045 ************************************************************************/
0046 
0047 #define lzo_alloc(a,b)      (malloc((a)*(b)))
0048 #define lzo_malloc(a)       (malloc(a))
0049 #define lzo_free(a)         (free(a))
0050 
0051 #define lzo_fread(f,b,s)    (fread(b,1,s,f))
0052 #define lzo_fwrite(f,b,s)   (fwrite(b,1,s,f))
0053 
0054 
0055 #ifdef __cplusplus
0056 } /* extern "C" */
0057 #endif
0058 
0059 #endif /* already included */
0060 
0061 
0062 /* vim:set ts=4 sw=4 et: */