lzo: update to 2.09
[tomato.git] / release / src / router / lzo / src / lzo_str.c
blob3364e8af863501b027117fefb5e842dd7aa05b2c
1 /* lzo_str.c -- string functions for the the LZO library
3 This file is part of the LZO real-time data compression library.
5 Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
6 All Rights Reserved.
8 The LZO library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of
11 the License, or (at your option) any later version.
13 The LZO library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with the LZO library; see the file COPYING.
20 If not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 Markus F.X.J. Oberhumer
24 <markus@oberhumer.com>
25 http://www.oberhumer.com/opensource/lzo/
29 #include "lzo_conf.h"
31 #undef lzo_memcmp
32 #undef lzo_memcpy
33 #undef lzo_memmove
34 #undef lzo_memset
37 /***********************************************************************
38 // slow but portable <string.h> stuff, only used in assertions
39 ************************************************************************/
41 #define lzo_hsize_t lzo_uint
42 #define lzo_hvoid_p lzo_voidp
43 #define lzo_hbyte_p lzo_bytep
44 #define LZOLIB_PUBLIC(r,f) LZO_PUBLIC(r) f
45 #ifndef __LZOLIB_FUNCNAME
46 #define __LZOLIB_FUNCNAME(f) f
47 #endif
48 #define lzo_hmemcmp __LZOLIB_FUNCNAME(lzo_memcmp)
49 #define lzo_hmemcpy __LZOLIB_FUNCNAME(lzo_memcpy)
50 #define lzo_hmemmove __LZOLIB_FUNCNAME(lzo_memmove)
51 #define lzo_hmemset __LZOLIB_FUNCNAME(lzo_memset)
52 #define LZO_WANT_ACCLIB_HMEMCPY 1
53 #include "lzo_supp.h"
54 #undef LZOLIB_PUBLIC
57 /* vim:set ts=4 sw=4 et: */