From 639d3b1438336c315ab5de8ea3b715c08d788c14 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 26 Nov 2018 11:00:28 -0500 Subject: [PATCH] one more static declaration --- include/cyclone/runtime.h | 1 - runtime.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cyclone/runtime.h b/include/cyclone/runtime.h index d040472c..96b74023 100644 --- a/include/cyclone/runtime.h +++ b/include/cyclone/runtime.h @@ -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_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(char *str, size_t len); /**@}*/ diff --git a/runtime.c b/runtime.c index 3d588a14..fb8fc767 100644 --- a/runtime.c +++ b/runtime.c @@ -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}; 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) { @@ -7292,7 +7293,7 @@ int Cyc_utf8_count_code_points(uint8_t* s) { * @param bytes Out parameter, set to the number of bytes * @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; *cpts = 0; *bytes = 0;