lzoruby 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{README.txt → README} +3 -7
- data/ext/extconf.rb +4 -1
- metadata +24 -131
- data/ext/compr1b.h +0 -81
- data/ext/compr1c.h +0 -81
- data/ext/config1.h +0 -61
- data/ext/config1a.h +0 -196
- data/ext/config1b.h +0 -140
- data/ext/config1c.h +0 -145
- data/ext/config1f.h +0 -97
- data/ext/config1x.h +0 -118
- data/ext/config1y.h +0 -66
- data/ext/config1z.h +0 -65
- data/ext/config2a.h +0 -155
- data/ext/lzo/lzo1.h +0 -96
- data/ext/lzo/lzo1a.h +0 -96
- data/ext/lzo/lzo1b.h +0 -160
- data/ext/lzo/lzo1c.h +0 -160
- data/ext/lzo/lzo1f.h +0 -108
- data/ext/lzo/lzo1x.h +0 -177
- data/ext/lzo/lzo1y.h +0 -145
- data/ext/lzo/lzo1z.h +0 -150
- data/ext/lzo/lzo2a.h +0 -92
- data/ext/lzo/lzo_asm.h +0 -139
- data/ext/lzo/lzoconf.h +0 -417
- data/ext/lzo/lzodefs.h +0 -1807
- data/ext/lzo/lzoutil.h +0 -73
- data/ext/lzo1.c +0 -635
- data/ext/lzo1_99.c +0 -130
- data/ext/lzo1_cm.ch +0 -52
- data/ext/lzo1_d.ch +0 -155
- data/ext/lzo1a.c +0 -657
- data/ext/lzo1a_99.c +0 -130
- data/ext/lzo1a_cm.ch +0 -242
- data/ext/lzo1a_cr.ch +0 -128
- data/ext/lzo1a_de.h +0 -158
- data/ext/lzo1b_1.c +0 -46
- data/ext/lzo1b_2.c +0 -46
- data/ext/lzo1b_3.c +0 -46
- data/ext/lzo1b_4.c +0 -46
- data/ext/lzo1b_5.c +0 -46
- data/ext/lzo1b_6.c +0 -46
- data/ext/lzo1b_7.c +0 -46
- data/ext/lzo1b_8.c +0 -46
- data/ext/lzo1b_9.c +0 -46
- data/ext/lzo1b_99.c +0 -49
- data/ext/lzo1b_9x.c +0 -365
- data/ext/lzo1b_c.ch +0 -270
- data/ext/lzo1b_cc.c +0 -167
- data/ext/lzo1b_cc.h +0 -93
- data/ext/lzo1b_cm.ch +0 -294
- data/ext/lzo1b_cr.ch +0 -126
- data/ext/lzo1b_d.ch +0 -282
- data/ext/lzo1b_d1.c +0 -46
- data/ext/lzo1b_d2.c +0 -46
- data/ext/lzo1b_de.h +0 -344
- data/ext/lzo1b_r.ch +0 -117
- data/ext/lzo1b_rr.c +0 -43
- data/ext/lzo1b_sm.ch +0 -210
- data/ext/lzo1b_tm.ch +0 -99
- data/ext/lzo1b_xx.c +0 -98
- data/ext/lzo1c_1.c +0 -46
- data/ext/lzo1c_2.c +0 -46
- data/ext/lzo1c_3.c +0 -46
- data/ext/lzo1c_4.c +0 -46
- data/ext/lzo1c_5.c +0 -46
- data/ext/lzo1c_6.c +0 -46
- data/ext/lzo1c_7.c +0 -46
- data/ext/lzo1c_8.c +0 -46
- data/ext/lzo1c_9.c +0 -46
- data/ext/lzo1c_99.c +0 -49
- data/ext/lzo1c_9x.c +0 -379
- data/ext/lzo1c_cc.c +0 -167
- data/ext/lzo1c_cc.h +0 -93
- data/ext/lzo1c_d1.c +0 -46
- data/ext/lzo1c_d2.c +0 -46
- data/ext/lzo1c_rr.c +0 -43
- data/ext/lzo1c_xx.c +0 -98
- data/ext/lzo1f_1.c +0 -312
- data/ext/lzo1f_9x.c +0 -345
- data/ext/lzo1f_d.ch +0 -223
- data/ext/lzo1f_d1.c +0 -46
- data/ext/lzo1f_d2.c +0 -46
- data/ext/lzo1x_1.c +0 -50
- data/ext/lzo1x_1k.c +0 -50
- data/ext/lzo1x_1l.c +0 -50
- data/ext/lzo1x_1o.c +0 -50
- data/ext/lzo1x_9x.c +0 -881
- data/ext/lzo1x_c.ch +0 -351
- data/ext/lzo1x_d.ch +0 -466
- data/ext/lzo1x_d1.c +0 -46
- data/ext/lzo1x_d2.c +0 -46
- data/ext/lzo1x_d3.c +0 -108
- data/ext/lzo1x_o.c +0 -45
- data/ext/lzo1x_oo.ch +0 -366
- data/ext/lzo1y_1.c +0 -50
- data/ext/lzo1y_9x.c +0 -42
- data/ext/lzo1y_d1.c +0 -46
- data/ext/lzo1y_d2.c +0 -46
- data/ext/lzo1y_d3.c +0 -45
- data/ext/lzo1y_o.c +0 -45
- data/ext/lzo1z_9x.c +0 -42
- data/ext/lzo1z_d1.c +0 -46
- data/ext/lzo1z_d2.c +0 -46
- data/ext/lzo1z_d3.c +0 -45
- data/ext/lzo2a_9x.c +0 -357
- data/ext/lzo2a_d.ch +0 -188
- data/ext/lzo2a_d1.c +0 -46
- data/ext/lzo2a_d2.c +0 -46
- data/ext/lzo_conf.h +0 -323
- data/ext/lzo_crc.c +0 -167
- data/ext/lzo_dict.h +0 -316
- data/ext/lzo_dll.ch +0 -64
- data/ext/lzo_init.c +0 -176
- data/ext/lzo_mchw.ch +0 -242
- data/ext/lzo_ptr.c +0 -92
- data/ext/lzo_ptr.h +0 -154
- data/ext/lzo_str.c +0 -71
- data/ext/lzo_swd.ch +0 -707
- data/ext/lzo_util.c +0 -165
- data/ext/miniacc.h +0 -6553
- data/ext/stats1a.h +0 -137
- data/ext/stats1b.h +0 -142
- data/ext/stats1c.h +0 -61
data/{README.txt → README}
RENAMED
|
@@ -8,24 +8,20 @@ Ruby bindings for LZO.
|
|
|
8
8
|
|
|
9
9
|
LZO is a portable lossless data compression library written in ANSI C.
|
|
10
10
|
|
|
11
|
-
==
|
|
11
|
+
== Source Code
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
https://bitbucket.org/winebarrel/lzo-ruby
|
|
14
14
|
|
|
15
15
|
== Install
|
|
16
16
|
|
|
17
17
|
gem install lzoruby
|
|
18
18
|
|
|
19
|
-
== Download
|
|
20
|
-
|
|
21
|
-
http://rubyforge.org/frs/?group_id=6734
|
|
22
|
-
|
|
23
19
|
== Example
|
|
24
20
|
|
|
25
21
|
require 'lzoruby'
|
|
26
22
|
require 'open-uri'
|
|
27
23
|
|
|
28
|
-
source = open('http://
|
|
24
|
+
source = open('http://www.yahoo.co.jp/') {|f| f.read }
|
|
29
25
|
|
|
30
26
|
puts "uncompress size: #{source.length}"
|
|
31
27
|
|
data/ext/extconf.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lzoruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
hash: 29
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 1
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.1.3
|
|
5
11
|
platform: ruby
|
|
6
12
|
authors:
|
|
7
13
|
- winebarrel
|
|
@@ -9,7 +15,7 @@ autorequire:
|
|
|
9
15
|
bindir: bin
|
|
10
16
|
cert_chain: []
|
|
11
17
|
|
|
12
|
-
date:
|
|
18
|
+
date: 2011-01-10 00:00:00 +09:00
|
|
13
19
|
default_executable:
|
|
14
20
|
dependencies: []
|
|
15
21
|
|
|
@@ -20,137 +26,18 @@ executables: []
|
|
|
20
26
|
extensions:
|
|
21
27
|
- ext/extconf.rb
|
|
22
28
|
extra_rdoc_files:
|
|
23
|
-
- README
|
|
29
|
+
- README
|
|
24
30
|
- LICENSE.txt
|
|
25
31
|
- ext/lzoruby.c
|
|
26
32
|
files:
|
|
27
|
-
- ext/compr1b.h
|
|
28
|
-
- ext/compr1c.h
|
|
29
|
-
- ext/config1.h
|
|
30
|
-
- ext/config1a.h
|
|
31
|
-
- ext/config1b.h
|
|
32
|
-
- ext/config1c.h
|
|
33
|
-
- ext/config1f.h
|
|
34
|
-
- ext/config1x.h
|
|
35
|
-
- ext/config1y.h
|
|
36
|
-
- ext/config1z.h
|
|
37
|
-
- ext/config2a.h
|
|
38
33
|
- ext/extconf.rb
|
|
39
|
-
- ext/lzo/lzo1.h
|
|
40
|
-
- ext/lzo/lzo1a.h
|
|
41
|
-
- ext/lzo/lzo1b.h
|
|
42
|
-
- ext/lzo/lzo1c.h
|
|
43
|
-
- ext/lzo/lzo1f.h
|
|
44
|
-
- ext/lzo/lzo1x.h
|
|
45
|
-
- ext/lzo/lzo1y.h
|
|
46
|
-
- ext/lzo/lzo1z.h
|
|
47
|
-
- ext/lzo/lzo2a.h
|
|
48
|
-
- ext/lzo/lzoconf.h
|
|
49
|
-
- ext/lzo/lzodefs.h
|
|
50
|
-
- ext/lzo/lzoutil.h
|
|
51
|
-
- ext/lzo/lzo_asm.h
|
|
52
|
-
- ext/lzo1.c
|
|
53
|
-
- ext/lzo1a.c
|
|
54
|
-
- ext/lzo1a_99.c
|
|
55
|
-
- ext/lzo1a_cm.ch
|
|
56
|
-
- ext/lzo1a_cr.ch
|
|
57
|
-
- ext/lzo1a_de.h
|
|
58
|
-
- ext/lzo1b_1.c
|
|
59
|
-
- ext/lzo1b_2.c
|
|
60
|
-
- ext/lzo1b_3.c
|
|
61
|
-
- ext/lzo1b_4.c
|
|
62
|
-
- ext/lzo1b_5.c
|
|
63
|
-
- ext/lzo1b_6.c
|
|
64
|
-
- ext/lzo1b_7.c
|
|
65
|
-
- ext/lzo1b_8.c
|
|
66
|
-
- ext/lzo1b_9.c
|
|
67
|
-
- ext/lzo1b_99.c
|
|
68
|
-
- ext/lzo1b_9x.c
|
|
69
|
-
- ext/lzo1b_c.ch
|
|
70
|
-
- ext/lzo1b_cc.c
|
|
71
|
-
- ext/lzo1b_cc.h
|
|
72
|
-
- ext/lzo1b_cm.ch
|
|
73
|
-
- ext/lzo1b_cr.ch
|
|
74
|
-
- ext/lzo1b_d.ch
|
|
75
|
-
- ext/lzo1b_d1.c
|
|
76
|
-
- ext/lzo1b_d2.c
|
|
77
|
-
- ext/lzo1b_de.h
|
|
78
|
-
- ext/lzo1b_r.ch
|
|
79
|
-
- ext/lzo1b_rr.c
|
|
80
|
-
- ext/lzo1b_sm.ch
|
|
81
|
-
- ext/lzo1b_tm.ch
|
|
82
|
-
- ext/lzo1b_xx.c
|
|
83
|
-
- ext/lzo1c_1.c
|
|
84
|
-
- ext/lzo1c_2.c
|
|
85
|
-
- ext/lzo1c_3.c
|
|
86
|
-
- ext/lzo1c_4.c
|
|
87
|
-
- ext/lzo1c_5.c
|
|
88
|
-
- ext/lzo1c_6.c
|
|
89
|
-
- ext/lzo1c_7.c
|
|
90
|
-
- ext/lzo1c_8.c
|
|
91
|
-
- ext/lzo1c_9.c
|
|
92
|
-
- ext/lzo1c_99.c
|
|
93
|
-
- ext/lzo1c_9x.c
|
|
94
|
-
- ext/lzo1c_cc.c
|
|
95
|
-
- ext/lzo1c_cc.h
|
|
96
|
-
- ext/lzo1c_d1.c
|
|
97
|
-
- ext/lzo1c_d2.c
|
|
98
|
-
- ext/lzo1c_rr.c
|
|
99
|
-
- ext/lzo1c_xx.c
|
|
100
|
-
- ext/lzo1f_1.c
|
|
101
|
-
- ext/lzo1f_9x.c
|
|
102
|
-
- ext/lzo1f_d.ch
|
|
103
|
-
- ext/lzo1f_d1.c
|
|
104
|
-
- ext/lzo1f_d2.c
|
|
105
|
-
- ext/lzo1x_1.c
|
|
106
|
-
- ext/lzo1x_1k.c
|
|
107
|
-
- ext/lzo1x_1l.c
|
|
108
|
-
- ext/lzo1x_1o.c
|
|
109
|
-
- ext/lzo1x_9x.c
|
|
110
|
-
- ext/lzo1x_c.ch
|
|
111
|
-
- ext/lzo1x_d.ch
|
|
112
|
-
- ext/lzo1x_d1.c
|
|
113
|
-
- ext/lzo1x_d2.c
|
|
114
|
-
- ext/lzo1x_d3.c
|
|
115
|
-
- ext/lzo1x_o.c
|
|
116
|
-
- ext/lzo1x_oo.ch
|
|
117
|
-
- ext/lzo1y_1.c
|
|
118
|
-
- ext/lzo1y_9x.c
|
|
119
|
-
- ext/lzo1y_d1.c
|
|
120
|
-
- ext/lzo1y_d2.c
|
|
121
|
-
- ext/lzo1y_d3.c
|
|
122
|
-
- ext/lzo1y_o.c
|
|
123
|
-
- ext/lzo1z_9x.c
|
|
124
|
-
- ext/lzo1z_d1.c
|
|
125
|
-
- ext/lzo1z_d2.c
|
|
126
|
-
- ext/lzo1z_d3.c
|
|
127
|
-
- ext/lzo1_99.c
|
|
128
|
-
- ext/lzo1_cm.ch
|
|
129
|
-
- ext/lzo1_d.ch
|
|
130
|
-
- ext/lzo2a_9x.c
|
|
131
|
-
- ext/lzo2a_d.ch
|
|
132
|
-
- ext/lzo2a_d1.c
|
|
133
|
-
- ext/lzo2a_d2.c
|
|
134
34
|
- ext/lzoruby.c
|
|
135
|
-
-
|
|
136
|
-
- ext/lzo_crc.c
|
|
137
|
-
- ext/lzo_dict.h
|
|
138
|
-
- ext/lzo_dll.ch
|
|
139
|
-
- ext/lzo_init.c
|
|
140
|
-
- ext/lzo_mchw.ch
|
|
141
|
-
- ext/lzo_ptr.c
|
|
142
|
-
- ext/lzo_ptr.h
|
|
143
|
-
- ext/lzo_str.c
|
|
144
|
-
- ext/lzo_swd.ch
|
|
145
|
-
- ext/lzo_util.c
|
|
146
|
-
- ext/miniacc.h
|
|
147
|
-
- ext/stats1a.h
|
|
148
|
-
- ext/stats1b.h
|
|
149
|
-
- ext/stats1c.h
|
|
150
|
-
- README.txt
|
|
35
|
+
- README
|
|
151
36
|
- LICENSE.txt
|
|
152
37
|
has_rdoc: true
|
|
153
|
-
homepage:
|
|
38
|
+
homepage: https://bitbucket.org/winebarrel/lzo-ruby
|
|
39
|
+
licenses: []
|
|
40
|
+
|
|
154
41
|
post_install_message:
|
|
155
42
|
rdoc_options:
|
|
156
43
|
- --title
|
|
@@ -158,23 +45,29 @@ rdoc_options:
|
|
|
158
45
|
require_paths:
|
|
159
46
|
- lib
|
|
160
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
|
+
none: false
|
|
161
49
|
requirements:
|
|
162
50
|
- - ">="
|
|
163
51
|
- !ruby/object:Gem::Version
|
|
52
|
+
hash: 3
|
|
53
|
+
segments:
|
|
54
|
+
- 0
|
|
164
55
|
version: "0"
|
|
165
|
-
version:
|
|
166
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
167
58
|
requirements:
|
|
168
59
|
- - ">="
|
|
169
60
|
- !ruby/object:Gem::Version
|
|
61
|
+
hash: 3
|
|
62
|
+
segments:
|
|
63
|
+
- 0
|
|
170
64
|
version: "0"
|
|
171
|
-
version:
|
|
172
65
|
requirements: []
|
|
173
66
|
|
|
174
|
-
rubyforge_project:
|
|
175
|
-
rubygems_version: 1.
|
|
67
|
+
rubyforge_project:
|
|
68
|
+
rubygems_version: 1.3.7
|
|
176
69
|
signing_key:
|
|
177
|
-
specification_version:
|
|
70
|
+
specification_version: 3
|
|
178
71
|
summary: Ruby bindings for LZO.
|
|
179
72
|
test_files: []
|
|
180
73
|
|
data/ext/compr1b.h
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/* compr1b.h --
|
|
2
|
-
|
|
3
|
-
This file is part of the LZO real-time data compression library.
|
|
4
|
-
|
|
5
|
-
Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
|
|
6
|
-
Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
|
|
7
|
-
Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
|
|
8
|
-
Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
|
|
9
|
-
Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
|
|
10
|
-
Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
|
|
11
|
-
Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
|
|
12
|
-
Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
|
|
13
|
-
Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
|
|
14
|
-
Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
|
|
15
|
-
Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
|
|
16
|
-
Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
|
|
17
|
-
Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
|
|
18
|
-
All Rights Reserved.
|
|
19
|
-
|
|
20
|
-
The LZO library is free software; you can redistribute it and/or
|
|
21
|
-
modify it under the terms of the GNU General Public License as
|
|
22
|
-
published by the Free Software Foundation; either version 2 of
|
|
23
|
-
the License, or (at your option) any later version.
|
|
24
|
-
|
|
25
|
-
The LZO library is distributed in the hope that it will be useful,
|
|
26
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
27
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
28
|
-
GNU General Public License for more details.
|
|
29
|
-
|
|
30
|
-
You should have received a copy of the GNU General Public License
|
|
31
|
-
along with the LZO library; see the file COPYING.
|
|
32
|
-
If not, write to the Free Software Foundation, Inc.,
|
|
33
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
34
|
-
|
|
35
|
-
Markus F.X.J. Oberhumer
|
|
36
|
-
<markus@oberhumer.com>
|
|
37
|
-
http://www.oberhumer.com/opensource/lzo/
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
#define LZO_NEED_DICT_H
|
|
42
|
-
#include "config1b.h"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
#if !defined(COMPRESS_ID)
|
|
46
|
-
#define COMPRESS_ID LZO_CPP_ECONCAT2(DD_BITS,CLEVEL)
|
|
47
|
-
#endif
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
#include "lzo1b_c.ch"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/***********************************************************************
|
|
54
|
-
//
|
|
55
|
-
************************************************************************/
|
|
56
|
-
|
|
57
|
-
#define LZO_COMPRESS \
|
|
58
|
-
LZO_CPP_ECONCAT3(lzo1b_,COMPRESS_ID,_compress)
|
|
59
|
-
|
|
60
|
-
#define LZO_COMPRESS_FUNC \
|
|
61
|
-
LZO_CPP_ECONCAT3(_lzo1b_,COMPRESS_ID,_compress_func)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/***********************************************************************
|
|
66
|
-
//
|
|
67
|
-
************************************************************************/
|
|
68
|
-
|
|
69
|
-
const lzo_compress_t LZO_COMPRESS_FUNC = do_compress;
|
|
70
|
-
|
|
71
|
-
LZO_PUBLIC(int)
|
|
72
|
-
LZO_COMPRESS ( const lzo_bytep in, lzo_uint in_len,
|
|
73
|
-
lzo_bytep out, lzo_uintp out_len,
|
|
74
|
-
lzo_voidp wrkmem )
|
|
75
|
-
{
|
|
76
|
-
return _lzo1b_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/*
|
|
80
|
-
vi:ts=4:et
|
|
81
|
-
*/
|
data/ext/compr1c.h
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/* compr1c.h --
|
|
2
|
-
|
|
3
|
-
This file is part of the LZO real-time data compression library.
|
|
4
|
-
|
|
5
|
-
Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
|
|
6
|
-
Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
|
|
7
|
-
Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
|
|
8
|
-
Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
|
|
9
|
-
Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
|
|
10
|
-
Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
|
|
11
|
-
Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
|
|
12
|
-
Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
|
|
13
|
-
Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
|
|
14
|
-
Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
|
|
15
|
-
Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
|
|
16
|
-
Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
|
|
17
|
-
Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
|
|
18
|
-
All Rights Reserved.
|
|
19
|
-
|
|
20
|
-
The LZO library is free software; you can redistribute it and/or
|
|
21
|
-
modify it under the terms of the GNU General Public License as
|
|
22
|
-
published by the Free Software Foundation; either version 2 of
|
|
23
|
-
the License, or (at your option) any later version.
|
|
24
|
-
|
|
25
|
-
The LZO library is distributed in the hope that it will be useful,
|
|
26
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
27
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
28
|
-
GNU General Public License for more details.
|
|
29
|
-
|
|
30
|
-
You should have received a copy of the GNU General Public License
|
|
31
|
-
along with the LZO library; see the file COPYING.
|
|
32
|
-
If not, write to the Free Software Foundation, Inc.,
|
|
33
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
34
|
-
|
|
35
|
-
Markus F.X.J. Oberhumer
|
|
36
|
-
<markus@oberhumer.com>
|
|
37
|
-
http://www.oberhumer.com/opensource/lzo/
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
#define LZO_NEED_DICT_H
|
|
42
|
-
#include "config1c.h"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
#if !defined(COMPRESS_ID)
|
|
46
|
-
#define COMPRESS_ID LZO_CPP_ECONCAT2(DD_BITS,CLEVEL)
|
|
47
|
-
#endif
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
#include "lzo1b_c.ch"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/***********************************************************************
|
|
54
|
-
//
|
|
55
|
-
************************************************************************/
|
|
56
|
-
|
|
57
|
-
#define LZO_COMPRESS \
|
|
58
|
-
LZO_CPP_ECONCAT3(lzo1c_,COMPRESS_ID,_compress)
|
|
59
|
-
|
|
60
|
-
#define LZO_COMPRESS_FUNC \
|
|
61
|
-
LZO_CPP_ECONCAT3(_lzo1c_,COMPRESS_ID,_compress_func)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/***********************************************************************
|
|
66
|
-
//
|
|
67
|
-
************************************************************************/
|
|
68
|
-
|
|
69
|
-
const lzo_compress_t LZO_COMPRESS_FUNC = do_compress;
|
|
70
|
-
|
|
71
|
-
LZO_PUBLIC(int)
|
|
72
|
-
LZO_COMPRESS ( const lzo_bytep in, lzo_uint in_len,
|
|
73
|
-
lzo_bytep out, lzo_uintp out_len,
|
|
74
|
-
lzo_voidp wrkmem )
|
|
75
|
-
{
|
|
76
|
-
return _lzo1c_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/*
|
|
80
|
-
vi:ts=4:et
|
|
81
|
-
*/
|
data/ext/config1.h
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* config1.h -- configuration for the LZO1 algorithm
|
|
2
|
-
|
|
3
|
-
This file is part of the LZO real-time data compression library.
|
|
4
|
-
|
|
5
|
-
Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
|
|
6
|
-
Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
|
|
7
|
-
Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
|
|
8
|
-
Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
|
|
9
|
-
Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
|
|
10
|
-
Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
|
|
11
|
-
Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
|
|
12
|
-
Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
|
|
13
|
-
Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
|
|
14
|
-
Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
|
|
15
|
-
Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
|
|
16
|
-
Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
|
|
17
|
-
Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
|
|
18
|
-
All Rights Reserved.
|
|
19
|
-
|
|
20
|
-
The LZO library is free software; you can redistribute it and/or
|
|
21
|
-
modify it under the terms of the GNU General Public License as
|
|
22
|
-
published by the Free Software Foundation; either version 2 of
|
|
23
|
-
the License, or (at your option) any later version.
|
|
24
|
-
|
|
25
|
-
The LZO library is distributed in the hope that it will be useful,
|
|
26
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
27
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
28
|
-
GNU General Public License for more details.
|
|
29
|
-
|
|
30
|
-
You should have received a copy of the GNU General Public License
|
|
31
|
-
along with the LZO library; see the file COPYING.
|
|
32
|
-
If not, write to the Free Software Foundation, Inc.,
|
|
33
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
34
|
-
|
|
35
|
-
Markus F.X.J. Oberhumer
|
|
36
|
-
<markus@oberhumer.com>
|
|
37
|
-
http://www.oberhumer.com/opensource/lzo/
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
/* WARNING: this file should *not* be used by applications. It is
|
|
42
|
-
part of the implementation of the library and is subject
|
|
43
|
-
to change.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
#ifndef __LZO_CONFIG1_H
|
|
47
|
-
#define __LZO_CONFIG1_H
|
|
48
|
-
|
|
49
|
-
#include "lzo_conf.h"
|
|
50
|
-
#include "lzo/lzo1.h"
|
|
51
|
-
|
|
52
|
-
#define LZO_NO_R1
|
|
53
|
-
#include "config1a.h"
|
|
54
|
-
|
|
55
|
-
#endif /* already included */
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
/*
|
|
59
|
-
vi:ts=4:et
|
|
60
|
-
*/
|
|
61
|
-
|