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