core: rename write_string functions to write_cstr

This commit is contained in:
2026-04-20 21:41:38 +01:00
parent 709d11331c
commit 5ab348fd30
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -756,18 +756,18 @@ static void get_error_id(
fx_stringstream *id = fx_stringstream_create_with_buffer(out, max); fx_stringstream *id = fx_stringstream_create_with_buffer(out, max);
if (vendor_name) { if (vendor_name) {
fx_stream_write_string(id, vendor_name, NULL); fx_stream_write_cstr(id, vendor_name, NULL);
} }
if (error_name) { if (error_name) {
if (vendor_name) { if (vendor_name) {
fx_stream_write_string(id, ".", NULL); fx_stream_write_cstr(id, ".", NULL);
} }
fx_stream_write_string(id, error_name, NULL); fx_stream_write_cstr(id, error_name, NULL);
} else { } else {
if (vendor_name) { if (vendor_name) {
fx_stream_write_string(id, "#", NULL); fx_stream_write_cstr(id, "#", NULL);
} }
fx_stream_write_fmt(id, NULL, "%ld", code); fx_stream_write_fmt(id, NULL, "%ld", code);
+1 -1
View File
@@ -84,7 +84,7 @@ FX_API fx_status fx_stream_read_all_bytes_s(
fx_stream *src, fx_stream *dest, fx_stream_buffer *buffer, size_t *nr_read); fx_stream *src, fx_stream *dest, fx_stream_buffer *buffer, size_t *nr_read);
FX_API fx_status fx_stream_write_char(fx_stream *stream, fx_wchar c); FX_API fx_status fx_stream_write_char(fx_stream *stream, fx_wchar c);
FX_API fx_status fx_stream_write_string( FX_API fx_status fx_stream_write_cstr(
fx_stream *stream, const char *s, size_t *nr_written); fx_stream *stream, const char *s, size_t *nr_written);
FX_API fx_status fx_stream_write_bytes( FX_API fx_status fx_stream_write_bytes(
+1 -1
View File
@@ -238,7 +238,7 @@ static void to_stream(const struct fx_rope *rope, void *arg)
case FX_ROPE_F_CSTR: case FX_ROPE_F_CSTR:
case FX_ROPE_F_CSTR_BORROWED: case FX_ROPE_F_CSTR_BORROWED:
case FX_ROPE_F_CSTR_STATIC: case FX_ROPE_F_CSTR_STATIC:
fx_stream_write_string(out, rope->r_v.v_cstr.s, NULL); fx_stream_write_cstr(out, rope->r_v.v_cstr.s, NULL);
break; break;
case FX_ROPE_F_INT: case FX_ROPE_F_INT:
fx_stream_write_fmt(out, NULL, "%" PRIdPTR, rope->r_v.v_int); fx_stream_write_fmt(out, NULL, "%" PRIdPTR, rope->r_v.v_int);