Skip to content

Commit

Permalink
Revert "Drop Cstring wrappers"
Browse files Browse the repository at this point in the history
This reverts commit 011552c.
  • Loading branch information
odow committed Mar 26, 2024
1 parent 0d410bc commit a83772c
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 142 deletions.
3 changes: 3 additions & 0 deletions scripts/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function postprocess(filename)
end
# Remove the cenum block
contents = replace(contents, r"\@cenum.+?end\s+"s => "")
# Replace Ptr{Cchar} with Cstring for backward compatibility with older
# versions of Xpress.jl
contents = replace(contents, "Ptr{Cchar}" => "Cstring")
write(filename, contents)
# Add comments to any symbols which are new in the current version
lines = readlines(filename)
Expand Down
Loading

0 comments on commit a83772c

Please sign in to comment.