Skip to content

Commit

Permalink
[56_5] Upgrade to lolly 1.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Dec 11, 2023
1 parent 78e5ee6 commit 1b5dedc
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/Plugins/Tex/conservative_fromtex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "analyze.hpp"
#include "hashset.hpp"
#include "scheme.hpp"
#include "base64.hpp"
#include "lolly/data/base64.hpp"
#include "iterator.hpp"
#include "fast_search.hpp"
#include "merge_sort.hpp"
Expand Down Expand Up @@ -82,7 +82,7 @@ get_texmacs_attachments (string s, string& mod, tree& src, string& mtar,
if (i<n) return false;
string comm_enc_atts= s (bpos + N(bs), epos);
string enc_atts= replace (comm_enc_atts, "\n %", "\n");
string atts= decode_base64 (enc_atts);
string atts= lolly::data::decode_base64 (enc_atts);
// TODO: check integrity checksum
string sep= "\n% Separate attachments\n";
int spos= search_forwards (sep, 0, atts);
Expand Down
4 changes: 2 additions & 2 deletions src/Plugins/Tex/tracked_totex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "analyze.hpp"
#include "hashset.hpp"
#include "scheme.hpp"
#include "base64.hpp"
#include "lolly/data/base64.hpp"
#include "iterator.hpp"
#include "fast_search.hpp"
#include "file.hpp"
Expand Down Expand Up @@ -234,7 +234,7 @@ tracked_texmacs_to_latex (tree doc, object opts) {
post << "\n% Separate attachments\n";
post << ms;
// TODO: add integrity checksum
post= encode_base64 (post);
post= lolly::data::encode_base64 (post);
s << "\n%%%%%%%%%% Begin TeXmacs source\n";
s << "% " << replace (post, "\n", "\n% ");
s << "\n%%%%%%%%%% End TeXmacs source\n";
Expand Down
51 changes: 26 additions & 25 deletions src/Scheme/L2/glue_lolly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -410,23 +410,6 @@ function main()
"string"
}
},
-- Data/String/base64.hpp
{
scm_name = "encode-base64",
cpp_name = "encode_base64",
ret_type = "string",
arg_list = {
"string"
}
},
{
scm_name = "decode-base64",
cpp_name = "decode_base64",
ret_type = "string",
arg_list = {
"string"
}
},
-- System/Misc/sys_utils.hpp
{
scm_name = "get-user-login",
Expand Down Expand Up @@ -481,14 +464,6 @@ function main()
"string",
}
},
{
scm_name = "system",
cpp_name = "lolly::system::call",
ret_type = "void",
arg_list = {
"string",
}
},
-- System/Classes/url
{
scm_name = "url->url",
Expand Down Expand Up @@ -927,6 +902,32 @@ function main()
"url"
}
},
-- lolly/data
{
scm_name = "encode-base64",
cpp_name = "lolly::data::encode_base64",
ret_type = "string",
arg_list = {
"string"
}
},
{
scm_name = "decode-base64",
cpp_name = "lolly::data::decode_base64",
ret_type = "string",
arg_list = {
"string"
}
},
-- lolly/system
{
scm_name = "system",
cpp_name = "lolly::system::call",
ret_type = "void",
arg_list = {
"string",
}
},
}
}
end
2 changes: 1 addition & 1 deletion src/Scheme/L2/init_glue_l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#include "s7_tm.hpp"

#include "analyze.hpp"
#include "base64.hpp"
#include "file.hpp"
#include "locale.hpp"
#include "lolly/data/base64.hpp"
#include "lolly/io/http.hpp"
#include "lolly/io/http_response.hpp"
#include "lolly/system/subprocess.hpp"
Expand Down
4 changes: 2 additions & 2 deletions xmake/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

-- The following versions are adopted on macOS/Windows/ArchLinux
-- We will use the system provided packages on Ubuntu 22.04/Debian 12/...
local LOLLY_VERSION = "1.3.6"
local LOLLY_VERSION = "1.3.7"
local TBOX_VERSION = "1.7.5"
local CPR_VERSION = "1.10.5"
local CURL_VERSION = "8.4.0"
Expand All @@ -47,7 +47,7 @@ package("lolly")
add_deps("cpr")
end

add_versions("v" .. LOLLY_VERSION, "3c0502ac6a090742c9d3b4eaaf4b2f770ef61fa3")
add_versions("v" .. LOLLY_VERSION, "e1ace389df8c25c78cd09b7fccc13466a5e87f7c")

on_install("linux", "macosx", "mingw", "wasm", "windows", function (package)
local configs = {}
Expand Down

0 comments on commit 1b5dedc

Please sign in to comment.