Skip to content

Commit

Permalink
fix missing static modifiers for internal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsegev committed Oct 22, 2024
1 parent 396bb55 commit a9c82dc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions fio-stl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19731,16 +19731,18 @@ SFUNC int fio_string_write_escape(fio_str_info_s *restrict dest,
return r;
}

const uint8_t *fio___string_write_unescape_next(const uint8_t *restrict s,
const uint8_t *restrict e) {
FIO_SFUNC const uint8_t *fio___string_write_unescape_next(
const uint8_t *restrict s,
const uint8_t *restrict e) {
if (*s == '\\')
return s;
return (const uint8_t *)FIO_MEMCHR(s, '\\', e - s);
}

size_t fio___string_write_unescape_diff(uint8_t *restrict dest,
const uint8_t *restrict *restrict ps,
const uint8_t *restrict e) {
FIO_SFUNC size_t
fio___string_write_unescape_diff(uint8_t *restrict dest,
const uint8_t *restrict *restrict ps,
const uint8_t *restrict e) {
size_t r = 1;
unsigned step = 1;
const uint8_t *s = *ps;
Expand Down Expand Up @@ -42462,7 +42464,7 @@ SFUNC void *fio_http_listen FIO_NOOP(const char *url, fio_http_settings_s s) {
HTTP Connect
***************************************************************************** */

void fio___http_connect_on_failed(fio_protocol_s *p, void *udata) {
static void fio___http_connect_on_failed(fio_protocol_s *p, void *udata) {
fio___http_connection_s *c = (fio___http_connection_s *)udata;
fio_http_free(c->h);
c->h = NULL;
Expand Down
12 changes: 7 additions & 5 deletions fio-stl/102 string core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1858,16 +1858,18 @@ SFUNC int fio_string_write_escape(fio_str_info_s *restrict dest,
return r;
}

const uint8_t *fio___string_write_unescape_next(const uint8_t *restrict s,
const uint8_t *restrict e) {
FIO_SFUNC const uint8_t *fio___string_write_unescape_next(
const uint8_t *restrict s,
const uint8_t *restrict e) {
if (*s == '\\')
return s;
return (const uint8_t *)FIO_MEMCHR(s, '\\', e - s);
}

size_t fio___string_write_unescape_diff(uint8_t *restrict dest,
const uint8_t *restrict *restrict ps,
const uint8_t *restrict e) {
FIO_SFUNC size_t
fio___string_write_unescape_diff(uint8_t *restrict dest,
const uint8_t *restrict *restrict ps,
const uint8_t *restrict e) {
size_t r = 1;
unsigned step = 1;
const uint8_t *s = *ps;
Expand Down
2 changes: 1 addition & 1 deletion fio-stl/439 http.h
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ SFUNC void *fio_http_listen FIO_NOOP(const char *url, fio_http_settings_s s) {
HTTP Connect
***************************************************************************** */

void fio___http_connect_on_failed(fio_protocol_s *p, void *udata) {
static void fio___http_connect_on_failed(fio_protocol_s *p, void *udata) {
fio___http_connection_s *c = (fio___http_connection_s *)udata;
fio_http_free(c->h);
c->h = NULL;
Expand Down

0 comments on commit a9c82dc

Please sign in to comment.