-void _integer_declaration_free(struct declaration *declaration);
-
-void integer_copy(struct stream_pos *dest, const struct format *fdest,
- struct stream_pos *src, const struct format *fsrc,
- struct declaration *declaration)
-{
- struct declaration_integer *integer =
- container_of(declaration, struct declaration_integer, p);
- struct type_integer *integer_type = integer->type;
-
- if (!integer_type->signedness) {
- uint64_t v;
-
- v = fsrc->uint_read(src, integer_type);
- fdest->uint_write(dest, integer_type, v);
- } else {
- int64_t v;
-
- v = fsrc->int_read(src, integer_type);
- fdest->int_write(dest, integer_type, v);
- }
-}