aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpacien2018-11-30 21:06:39 +0100
committerpacien2018-11-30 21:06:39 +0100
commit1f0c6a7638353d1ebbbc4ba1a8de0887d5f68e98 (patch)
treeed9867c9997e9ceee750194fe8aaaa6f067a93f1 /src
parent3d5a87a5879aa724e47546d1bdbb7f6c9466cf94 (diff)
downloadgziplike-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.nim2
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
17import bitio/bitreader, bitio/bitwriter 17import ../bitio/bitreader, ../bitio/bitwriter
18 18
19type LzssBlock* = object 19type 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
17import bitio/integers, bitio/bitreader, bitio/bitwriter 17import ../bitio/integers, ../bitio/bitreader, ../bitio/bitwriter
18 18
19const maxDataBitLength = high(uint16).int 19const maxDataBitLength = high(uint16).int
20const bitLengthFieldBitLength = 2 * wordBitLength 20const 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
17import sequtils 17import sequtils
18import bitio/integers, bitio/bitreader, bitio/bitwriter 18import ../bitio/integers, ../bitio/bitreader, ../bitio/bitwriter
19import rawblock, lzssblock 19import rawblock, lzssblock
20 20
21type BlockKind* = enum 21type 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
17import os, streams, sugar 17import os, streams, sugar
18import bitio/bitreader, bitio/bitwriter, streamblock 18import bitio/bitreader, bitio/bitwriter, blocks/streamblock
19 19
20proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) = 20proc transform*(operation: (BitReader, BitWriter) -> void, input, output: string) =
21 let inputStream = openFileStream(input, fmRead) 21 let inputStream = openFileStream(input, fmRead)