mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
one more static declaration
This commit is contained in:
parent
bdcfea1989
commit
639d3b1438
2 changed files with 2 additions and 2 deletions
|
@ -767,7 +767,6 @@ void Cyc_set_globals_changed(gc_thread_data *thd);
|
||||||
|
|
||||||
int Cyc_utf8_encode(char *dest, int sz, uint32_t *src, int srcsz);
|
int Cyc_utf8_encode(char *dest, int sz, uint32_t *src, int srcsz);
|
||||||
int Cyc_utf8_count_code_points(uint8_t* s);
|
int Cyc_utf8_count_code_points(uint8_t* s);
|
||||||
int Cyc_utf8_count_code_points_and_bytes(uint8_t* s, char_type *codepoint, int *cpts, int *bytes);
|
|
||||||
uint32_t Cyc_utf8_validate_stream(uint32_t *state, char *str, size_t len);
|
uint32_t Cyc_utf8_validate_stream(uint32_t *state, char *str, size_t len);
|
||||||
uint32_t Cyc_utf8_validate(char *str, size_t len);
|
uint32_t Cyc_utf8_validate(char *str, size_t len);
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
//int gcMoveCountsDEBUG[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
//int gcMoveCountsDEBUG[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
||||||
|
|
||||||
static uint32_t Cyc_utf8_decode(uint32_t* state, uint32_t* codep, uint32_t byte);
|
static uint32_t Cyc_utf8_decode(uint32_t* state, uint32_t* codep, uint32_t byte);
|
||||||
|
static int Cyc_utf8_count_code_points_and_bytes(uint8_t* s, char_type *codepoint, int *cpts, int *bytes);
|
||||||
|
|
||||||
object Cyc_global_set(void *thd, object * glo, object value)
|
object Cyc_global_set(void *thd, object * glo, object value)
|
||||||
{
|
{
|
||||||
|
@ -7292,7 +7293,7 @@ int Cyc_utf8_count_code_points(uint8_t* s) {
|
||||||
* @param bytes Out parameter, set to the number of bytes
|
* @param bytes Out parameter, set to the number of bytes
|
||||||
* @return Returns `CYC_UTF8_ACCEPT` on success, otherwise `CYC_UTF8_REJECT`.
|
* @return Returns `CYC_UTF8_ACCEPT` on success, otherwise `CYC_UTF8_REJECT`.
|
||||||
*/
|
*/
|
||||||
int Cyc_utf8_count_code_points_and_bytes(uint8_t* s, char_type *codepoint, int *cpts, int *bytes) {
|
static int Cyc_utf8_count_code_points_and_bytes(uint8_t* s, char_type *codepoint, int *cpts, int *bytes) {
|
||||||
uint32_t state = 0;
|
uint32_t state = 0;
|
||||||
*cpts = 0;
|
*cpts = 0;
|
||||||
*bytes = 0;
|
*bytes = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue