From ebac89ec6ae0aca646420320c019a0e1cbb79d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 3 Aug 2022 22:04:05 +0200 Subject: Use Pascal case for all functions. --- c/pl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c/pl.h') diff --git a/c/pl.h b/c/pl.h index 670c926..5720eda 100644 --- a/c/pl.h +++ b/c/pl.h @@ -7,7 +7,7 @@ #include "wcharptr.h" -wchar_ptr PlString(const term_t t, const int flags = CVT_WRITE); +WcharPtr PlString(const term_t t, const int flags = CVT_WRITE); struct Frame { @@ -54,7 +54,7 @@ inline int PlPut(term_t, long*) { return -1; } inline int PlPut(term_t, long long*) { return -1; } inline int PlPut(term_t, atom_t*) { return -1; } inline int PlPut(term_t, char**) { return -1; } -inline int PlPut(term_t, wchar_ptr*) { return -1; } +inline int PlPut(term_t, WcharPtr*) { return -1; } inline int PlGet(term_t, int) { return -1; } inline int PlGet(term_t, long) { return -1; } @@ -67,11 +67,11 @@ inline int PlGet(term_t t, long* x) { return PL_get_long(t, x); } inline int PlGet(term_t t, long long* x) { return PL_get_int64(t, x); } inline int PlGet(term_t t, atom_t* x) { return PL_get_atom(t, x); } inline int PlGet(term_t t, char** x) { return PL_get_atom_chars(t, x); } -inline int PlGet(term_t t, wchar_ptr* x) { +inline int PlGet(term_t t, WcharPtr* x) { Mark m; char* s; if (!PlGet(t, &s)) return 0; - *x = wchar_ptr::from_narrow(s); + *x = WcharPtr::FromNarrow(s); return 1; /* or catch potential exception from BstrFromSz? */ } -- cgit v1.2.3