Skip to content

Commit

Permalink
FIX: resolving some Unicode related compiler's warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 8, 2020
1 parent aedd6bb commit 359ca00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/s-unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static const REBYTE utf8d[] = {
12,36,12,12,12,12,12,12,12,12,12,12,
};

REBCNT inline
REBCNT static inline
decode_UTF8(REBCNT* state, REBCNT* codep, REBCNT byte) {
REBCNT type = utf8d[byte];

Expand Down Expand Up @@ -335,7 +335,7 @@ Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {

/***********************************************************************
**
*/ REBINT What_UTF(REBYTE *bp, REBCNT len)
*/ REBINT What_UTF(const REBYTE *bp, REBCNT len)
/*
** Tell us what UTF encoding the string has. Negative for LE.
**
Expand Down Expand Up @@ -522,7 +522,7 @@ Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {

/***********************************************************************
**
*/ int Decode_UTF16(REBUNI *dst, REBYTE *src, REBCNT len, REBFLG lee, REBFLG ccr)
*/ int Decode_UTF16(REBUNI *dst, const REBYTE *src, REBCNT len, REBFLG lee, REBFLG ccr)
/*
** dst: the desination array, must always be large enough!
** src: source binary data
Expand Down Expand Up @@ -576,7 +576,7 @@ Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {

/***********************************************************************
**
*/ int Decode_UTF32(REBUNI *dst, REBYTE *src, REBINT len, REBFLG lee, REBFLG ccr)
*/ int Decode_UTF32(REBUNI *dst, const REBYTE *src, REBINT len, REBFLG lee, REBFLG ccr)
/*
***********************************************************************/
{
Expand Down Expand Up @@ -635,7 +635,7 @@ Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {

/***********************************************************************
**
*/ REBSER *Decode_UTF_String(REBYTE *bp, REBCNT len, REBINT utf, REBFLG ccr)
*/ REBSER *Decode_UTF_String(const REBYTE *bp, REBCNT len, REBINT utf, REBFLG ccr)
/*
** Do all the details to decode a string.
** Input is a byte series. Len is len of input.
Expand Down

0 comments on commit 359ca00

Please sign in to comment.