Compare commits
3 Commits
4e76388f4f
...
b3f117a785
Author | SHA1 | Date | |
---|---|---|---|
b3f117a785 | |||
d87ae4bfba | |||
16e24195e7 |
@ -122,8 +122,8 @@ endforeach ()
|
|||||||
|
|
||||||
# CPack
|
# CPack
|
||||||
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hex viewer")
|
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hex viewer")
|
||||||
set (CPACK_PACKAGE_VENDOR "Premysl Janouch")
|
set (CPACK_PACKAGE_VENDOR "Premysl Eric Janouch")
|
||||||
set (CPACK_PACKAGE_CONTACT "Přemysl Janouch <p@janouch.name>")
|
set (CPACK_PACKAGE_CONTACT "Přemysl Eric Janouch <p@janouch.name>")
|
||||||
set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
|
set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
|
||||||
set (CPACK_PACKAGE_VERSION_MAJOR ${project_VERSION_MAJOR})
|
set (CPACK_PACKAGE_VERSION_MAJOR ${project_VERSION_MAJOR})
|
||||||
set (CPACK_PACKAGE_VERSION_MINOR ${project_VERSION_MINOR})
|
set (CPACK_PACKAGE_VERSION_MINOR ${project_VERSION_MINOR})
|
||||||
|
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2016 - 2017, Přemysl Janouch <p@janouch.name>
|
Copyright (c) 2016 - 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted.
|
purpose with or without fee is hereby granted.
|
||||||
|
3
hex.c
3
hex.c
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* hex -- hex viewer
|
* hex -- hex viewer
|
||||||
*
|
*
|
||||||
* Copyright (c) 2016 - 2017, Přemysl Janouch <p@janouch.name>
|
* Copyright (c) 2016 - 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted.
|
* purpose with or without fee is hereby granted.
|
||||||
@ -54,7 +54,6 @@ enum
|
|||||||
|
|
||||||
#define LIBERTY_WANT_POLLER
|
#define LIBERTY_WANT_POLLER
|
||||||
#define LIBERTY_WANT_ASYNC
|
#define LIBERTY_WANT_ASYNC
|
||||||
#define LIBERTY_WANT_PROTO_HTTP
|
|
||||||
#include "liberty/liberty.c"
|
#include "liberty/liberty.c"
|
||||||
#include "liberty/liberty-tui.c"
|
#include "liberty/liberty-tui.c"
|
||||||
|
|
||||||
|
2
liberty
2
liberty
@ -1 +1 @@
|
|||||||
Subproject commit bb30c7d86ef7b165c5e00cc8e0ad2e3e85b9e617
|
Subproject commit 1a76b2032e6d18d9f95d9d0bb98edc26023c8618
|
@ -1,7 +1,7 @@
|
|||||||
--
|
--
|
||||||
-- bencode.lua: BitTorrent data encoding
|
-- bencode.lua: BitTorrent data encoding
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--
|
--
|
||||||
-- elf.lua: Executable and Linkable Format
|
-- elf.lua: Executable and Linkable Format
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--
|
--
|
||||||
-- gzip.lua: GZIP File Format
|
-- gzip.lua: GZIP File Format
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--
|
--
|
||||||
-- pcap.lua: libpcap file format
|
-- pcap.lua: libpcap file format
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
-- In practice almost useless, I just wanted to learn about the file format.
|
-- In practice almost useless, I just wanted to learn about the file format.
|
||||||
-- FIXME: it's also not very robust and doesn't support all documents.
|
-- FIXME: it's also not very robust and doesn't support all documents.
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--
|
--
|
||||||
-- vdi.lua: VirtualBox Disk Image
|
-- vdi.lua: VirtualBox Disk Image
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--
|
--
|
||||||
-- zip.lua: ZIP archives
|
-- zip.lua: ZIP archives
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
@ -42,6 +42,7 @@ local decode = function (c)
|
|||||||
c (c.position, c.position + comment_len - 1):mark ("comment")
|
c (c.position, c.position + comment_len - 1):mark ("comment")
|
||||||
|
|
||||||
-- TODO: decode the fields better
|
-- TODO: decode the fields better
|
||||||
|
-- https://stackoverflow.com/a/30028491/76313
|
||||||
-- TODO: also mark actual file data if someone wants to put in the effort
|
-- TODO: also mark actual file data if someone wants to put in the effort
|
||||||
c.position = cd_offset + 1
|
c.position = cd_offset + 1
|
||||||
for i = 1, cd_len do
|
for i = 1, cd_len do
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
--
|
--
|
||||||
-- zlib.lua: ZLIB Compressed Data Format
|
-- zlib.lua: ZLIB Compressed Data Format
|
||||||
--
|
--
|
||||||
-- Copyright (c) 2017, Přemysl Janouch <p@janouch.name>
|
-- Copyright (c) 2017, Přemysl Eric Janouch <p@janouch.name>
|
||||||
--
|
--
|
||||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||||
-- purpose with or without fee is hereby granted.
|
-- purpose with or without fee is hereby granted.
|
||||||
|
2
termo
2
termo
@ -1 +1 @@
|
|||||||
Subproject commit 30e0eee1a82df265642cff6d57452ff660f0f2c9
|
Subproject commit 8c4e867760eb20e3cdf997a301c8f8672c01e380
|
Loading…
x
Reference in New Issue
Block a user