diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-26 19:27:35 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-26 19:27:35 +0200 |
commit | 547cbe578dcdb5aa5cfdac1cdb327f92bad21219 (patch) | |
tree | dc41dc107559a3ac2c87669b3616d8a33d221180 /c/pl.h | |
parent | dccea47e9bc322d654902a1db4fc52cbf6dd0cd7 (diff) | |
download | EpisodeBrowser-547cbe578dcdb5aa5cfdac1cdb327f92bad21219.tar.gz |
Remove ANSI compatibility.
Even though it is a fun challange in many ways, I think that,
realistically, it is probably not worth the complexity. The
Prolog backend isn't ANSI-compatible either.
Diffstat (limited to 'c/pl.h')
-rw-r--r-- | c/pl.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,6 +7,8 @@ #include "common.h" +int PlString(term_t t, std::wstring* pWstr, int iFlags = CVT_WRITE); + struct Frame { Frame(); @@ -37,8 +39,6 @@ private: qid_t m_q; }; -template <typename T> int PlString(term_t t, std::basic_string<T>* pBstr, int iFlags = CVT_WRITE); - /* Polymorphic aliases for PL_put_*, PL_get_*. */ inline int PlPut(term_t t, int x) { return PL_put_integer(t, x); } inline int PlPut(term_t t, long x) { return PL_put_integer(t, x); } @@ -76,7 +76,7 @@ inline int PlGet(term_t t, std::wstring* x) { Mark m; char* sz; if (!PlGet(t, &sz)) return 0; - *x = BstrFromSz<wchar_t>(sz); + *x = WstrFromSz(sz); return 1; /* or catch potential exception from BstrFromSz? */ } |