3 ms·
Ruby strings are mutable, so you need to be able to free s->data without freeing the RString itself.
by teaspoon 15y ago
Ruby strings are mutable, so you need to be able to free s->data without freeing the RString itself.
- ori_b 15y agos = realloc(s, sizeof(RString));
- charliesome 15y agoMRI objects are not relocatable so that won't work if realloc has to move the structure in memory