diff options
author | pacien | 2018-11-30 21:06:39 +0100 |
---|---|---|
committer | pacien | 2018-11-30 21:06:39 +0100 |
commit | 1f0c6a7638353d1ebbbc4ba1a8de0887d5f68e98 (patch) | |
tree | ed9867c9997e9ceee750194fe8aaaa6f067a93f1 /src | |
parent | 3d5a87a5879aa724e47546d1bdbb7f6c9466cf94 (diff) | |
download | gziplike-1f0c6a7638353d1ebbbc4ba1a8de0887d5f68e98.tar.gz |
isolate blocks
Diffstat (limited to 'src')
-rw-r--r-- | src/blocks/lzssblock.nim (renamed from src/lzssblock.nim) | 2 | ||||
-rw-r--r-- | src/blocks/rawblock.nim (renamed from src/rawblock.nim) | 2 | ||||
-rw-r--r-- | src/blocks/streamblock.nim (renamed from src/streamblock.nim) | 2 | ||||
-rw-r--r-- | src/main.nim | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/lzssblock.nim b/src/blocks/lzssblock.nim index 317e768..f68f665 100644 --- a/src/lzssblock.nim +++ b/src/blocks/lzssblock.nim | |||
@@ -14,7 +14,7 @@ | |||
14 | # You should have received a copy of the GNU Affero General Public License | 14 | # You should have received a copy of the GNU Affero General Public License |
15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. |
16 | 16 | ||
17 | import bitio/bitreader, bitio/bitwriter | 17 | import ../bitio/bitreader, ../bitio/bitwriter |
18 | 18 | ||
19 | type LzssBlock* = object | 19 | type LzssBlock* = object |
20 | discard | 20 | discard |
diff --git a/src/rawblock.nim b/src/blocks/rawblock.nim index b4920fc..2b32831 100644 --- a/src/rawblock.nim +++ b/src/blocks/rawblock.nim | |||
@@ -14,7 +14,7 @@ | |||
14 | # You should have received a copy of the GNU Affero General Public License | 14 | # You should have received a copy of the GNU Affero General Public License |
15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. |
16 | 16 | ||
17 | import bitio/integers, bitio/bitreader, bitio/bitwriter | 17 | import ../bitio/integers, ../bitio/bitreader, ../bitio/bitwriter |
18 | 18 | ||
19 | const maxDataBitLength = high(uint16).int | 19 | const maxDataBitLength = high(uint16).int |
20 | const bitLengthFieldBitLength = 2 * wordBitLength | 20 | const bitLengthFieldBitLength = 2 * wordBitLength |
diff --git a/src/streamblock.nim b/src/blocks/streamblock.nim index 489097e..c904af7 100644 --- a/src/streamblock.nim +++ b/src/blocks/streamblock.nim | |||
@@ -15,7 +15,7 @@ | |||
15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. |
16 | 16 | ||
17 | import sequtils | 17 | import sequtils |
18 | import bitio/integers, bitio/bitreader, bitio/bitwriter | 18 | import ../bitio/integers, ../bitio/bitreader, ../bitio/bitwriter |
19 | import rawblock, lzssblock | 19 | import rawblock, lzssblock |
20 | 20 | ||
21 | type BlockKind* = enum | 21 | type BlockKind* = enum |
diff --git a/src/main.nim b/src/main.nim index 450f52d..cf76f5e 100644 --- a/src/main.nim +++ b/src/main.nim | |||
@@ -15,7 +15,7 @@ | |||
15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. |
16 | 16 | ||
17 | import os, streams, sugar | 17 | import os, streams, sugar |
18 | import bitio/bitreader, bitio/bitwriter, streamblock | 18 | import bitio/bitreader, bitio/bitwriter, blocks/streamblock |
19 | 19 | ||
20 | proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) = | 20 | proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) = |
21 | let inputStream = openFileStream(input, fmRead) | 21 | let inputStream = openFileStream(input, fmRead) |