Cyclone Scheme  0.28.0

◆ make_utf8_string_noalloc

#define make_utf8_string_noalloc (   cs,
  s,
  length 
)
Value:
{ cs.hdr.mark = gc_color_red; cs.hdr.grayed = 0; cs.hdr.immutable = 0; \
cs.tag = string_tag; cs.len = length; \
cs.num_cp = length; \
cs.str = s; }

Create a string object using the given C string and length. No allocation is done for the given C string.

gc_color_red
#define gc_color_red
Definition: types.h:297
gc_header_type_t::immutable
unsigned char immutable
Definition: types.h:270
gc_header_type_t::grayed
unsigned char grayed
Definition: types.h:269
string_type::len
int len
Definition: types.h:937
gc_header_type_t::mark
unsigned char mark
Definition: types.h:268
string_type::hdr
gc_header_type hdr
Definition: types.h:934
string_type
The string type.
Definition: types.h:933
string_tag
@ string_tag
Definition: types.h:67