Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Bug report: return statements missing in LogicServer::StrToTerm() and StrToTermW()

In the logicserver.h header file (contained in downloads amzi_apls_win32_10-0-04b.zip and amzi_apls_win64_10-0-05.zip) the following functions are missing return statements:
inline TERM LogicServer::StrToTerm(std::string s)
{
TERM term;
char *c_str = new char[s.length()+1];
strcpy(c_str, s.c_str());
RC rc = lsStrToTermA(m_eng, &term, c_str);
delete c_str;
if (rc) THROW_LSEXCEPTION;
}

inline TERM LogicServer::StrToTermW(std::wstring s)
{
TERM term;
wchar_t *c_str = new wchar_t[s.length()+1];
wcscpy(c_str, s.c_str());
RC rc = lsStrToTermW(m_eng, &term, c_str);
delete c_str;
if (rc) THROW_LSEXCEPTION;
}

Comments

  • Or maybe there are still some :-) They should both return term. Actually, my previous comment holds for the core, which hasn't changed much. Most of the more recent development work around Amzi was in the interfaces and the IDE.
Sign In or Register to comment.