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