fixes for upcast and lowercase
This commit is contained in:
parent
aaa9aa2b7b
commit
f1c9952c77
18
os/charsio.c
18
os/charsio.c
@ -58,24 +58,6 @@ static Int skip(USES_REGS1);
|
|||||||
static Int flush_output(USES_REGS1);
|
static Int flush_output(USES_REGS1);
|
||||||
static Int flush_all_streams(USES_REGS1);
|
static Int flush_all_streams(USES_REGS1);
|
||||||
|
|
||||||
INLINE_ONLY inline EXTERN Term MkCharTerm(Int c);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* MkCharTerm: convert a character into a single atom.
|
|
||||||
*
|
|
||||||
* @param c the character code
|
|
||||||
*
|
|
||||||
* @return the term.
|
|
||||||
*/
|
|
||||||
INLINE_ONLY inline EXTERN Term MkCharTerm(Int c) {
|
|
||||||
wchar_t cs[2];
|
|
||||||
if (c < 0)
|
|
||||||
return MkAtomTerm(AtomEof);
|
|
||||||
cs[0] = c;
|
|
||||||
cs[1] = '\0';
|
|
||||||
return MkAtomTerm(Yap_LookupMaybeWideAtom(cs));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CharOfAtom: convert an atom into a single character.
|
* CharOfAtom: convert an atom into a single character.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user