core: rename write_string functions to write_cstr
This commit is contained in:
+4
-4
@@ -756,18 +756,18 @@ static void get_error_id(
|
||||
fx_stringstream *id = fx_stringstream_create_with_buffer(out, max);
|
||||
|
||||
if (vendor_name) {
|
||||
fx_stream_write_string(id, vendor_name, NULL);
|
||||
fx_stream_write_cstr(id, vendor_name, NULL);
|
||||
}
|
||||
|
||||
if (error_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 {
|
||||
if (vendor_name) {
|
||||
fx_stream_write_string(id, "#", NULL);
|
||||
fx_stream_write_cstr(id, "#", NULL);
|
||||
}
|
||||
|
||||
fx_stream_write_fmt(id, NULL, "%ld", code);
|
||||
|
||||
@@ -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_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_API fx_status fx_stream_write_bytes(
|
||||
|
||||
+1
-1
@@ -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_BORROWED:
|
||||
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;
|
||||
case FX_ROPE_F_INT:
|
||||
fx_stream_write_fmt(out, NULL, "%" PRIdPTR, rope->r_v.v_int);
|
||||
|
||||
Reference in New Issue
Block a user