Skip to content

Commit

Permalink
Update Project.toml to use Zstd_jll 1.5.5
Browse files Browse the repository at this point in the history
Update the clang wrapper generator to clang 0.17
Reorganize the source tree a bit
  • Loading branch information
ViralBShah committed Aug 17, 2023
1 parent f7e431a commit f7a80ab
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 216 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "6b39b394-51ab-5f42-8807-6242bab2b4c2"
license = "MIT"
authors = ["Kenta Sato <[email protected]>",
"JuliaIO Github Organization"]
version = "0.7.2"
version = "0.8.0"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Expand All @@ -12,7 +12,7 @@ Zstd_jll = "3161d3a3-bdf6-5164-811a-617609db77b4"

[compat]
TranscodingStreams = "0.9"
Zstd_jll = "1.4"
Zstd_jll = "1.5.5"
CEnum = "0.4"
julia = "1.3"

Expand Down
1 change: 1 addition & 0 deletions gen/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Manifest.toml
2 changes: 1 addition & 1 deletion src/libzstd/Project.toml → gen/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31"
Zstd_jll = "3161d3a3-bdf6-5164-811a-617609db77b4"

[compat]
Clang = "0.14"
Clang = "0.17"
File renamed without changes.
9 changes: 9 additions & 0 deletions gen/generator.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[general]
library_name = "libzstd"
output_file_path = "../src/LibZstd_clang.jl"
module_name = "LibZstd"
jll_pkg_name = "Zstd_jll"
export_symbol_prefixes = ["ZSTD_", "ZDICT_"]
prologue_file_path = "./prologue.jl"
use_julia_native_enum_type = true
print_using_CEnum = false
4 changes: 4 additions & 0 deletions gen/prologue.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const INT_MAX = typemax(Cint)
const size_t = Int64

ZSTD_EXPAND_AND_QUOTE(expr) = string(expr)
2 changes: 1 addition & 1 deletion src/CodecZstd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import TranscodingStreams:
using Zstd_jll

# Module containing directly wrapped ccalls generated by CLang.jl
include("libzstd/LibZstd.jl")
include("LibZstd_clang.jl")
# Library functions that have a Julian interface. This file originally preceded the above module
include("libzstd.jl")
include("compression.jl")
Expand Down
Loading

0 comments on commit f7a80ab

Please sign in to comment.