-void _string_type_free(struct type *type);
-
-void string_copy(struct stream_pos *dest, const struct format *fdest,
- struct stream_pos *src, const struct format *fsrc,
- struct type *type)
-{
- struct type_string *string = container_of(type, struct type_string, p);
- struct type_class_string *string_class = string->_class;
-
- if (fsrc->string_copy == fdest->string_copy) {
- fsrc->string_copy(dest, src, string_class);
- } else {
- char *tmp = NULL;
-
- fsrc->string_read(&tmp, src, string_class);
- fdest->string_write(dest, tmp, string_class);
- fsrc->string_free_temp(tmp);
- }
-}