guile: update, but disable for now

It's not ready for the new Message
This commit is contained in:
Dirk-Jan C. Binnema
2022-04-28 22:42:25 +03:00
parent 3ac3ce7828
commit 852c7044d9
6 changed files with 66 additions and 111 deletions

View File

@ -35,13 +35,12 @@
using namespace Mu;
SCM
mu_guile_scm_from_str(const char* str)
mu_guile_scm_from_string(const std::string& str)
{
if (!str)
if (str.empty())
return SCM_BOOL_F;
else
return scm_from_stringn(str,
strlen(str),
return scm_from_stringn(str.c_str(), str.size(),
"UTF-8",
SCM_FAILED_CONVERSION_QUESTION_MARK);
}