Skip to content

Commit d229233

Browse files
committed
FIX: moving the newly introduced host lib function to the tail (to keep compatibility with old extensions)
1 parent 4bcc98d commit d229233

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/core/a-lib.c

+14-14
Original file line numberDiff line numberDiff line change
@@ -1112,20 +1112,6 @@ RL_API REBSER* RL_Encode_UTF8_String(void *src, REBCNT len, REBFLG uni, REBFLG o
11121112
return Encode_UTF8_String(src, len, uni, opts);
11131113
}
11141114

1115-
RL_API REBCNT RL_Decode_UTF8_Char(const REBYTE *str, REBCNT *len)
1116-
/*
1117-
** Converts a single UTF8 code-point (to 32 bit).
1118-
**
1119-
** Returns:
1120-
** 32 bit character code
1121-
** Arguments:
1122-
** src - UTF8 encoded data
1123-
** len - number of source bytes consumed.
1124-
*/
1125-
{
1126-
return Decode_UTF8_Char(&str, len);
1127-
}
1128-
11291115
RL_API REBSER* RL_Decode_UTF_String(REBYTE *src, REBCNT len, REBINT utf, REBFLG ccr, REBFLG uni)
11301116
/*
11311117
** Decode the UTF8 encoded data into Rebol series.
@@ -1200,6 +1186,20 @@ RL_API void RL_Free_Handle_Context(REBHOB *hob)
12001186
}
12011187

12021188

1189+
RL_API REBCNT RL_Decode_UTF8_Char(const REBYTE *str, REBCNT *len)
1190+
/*
1191+
** Converts a single UTF8 code-point (to 32 bit).
1192+
**
1193+
** Returns:
1194+
** 32 bit character code
1195+
** Arguments:
1196+
** src - UTF8 encoded data
1197+
** len - number of source bytes consumed.
1198+
*/
1199+
{
1200+
return Decode_UTF8_Char(&str, len);
1201+
}
1202+
12031203

12041204

12051205
#include "reb-lib-lib.h"

0 commit comments

Comments
 (0)