+static
+struct declaration *
+ _integer_declaration_new(struct type *type,
+ struct declaration_scope *parent_scope)
+{
+ struct type_integer *integer_type =
+ container_of(type, struct type_integer, p);
+ struct declaration_integer *integer;
+
+ integer = g_new(struct declaration_integer, 1);
+ type_ref(&integer_type->p);
+ integer->p.type = type;
+ integer->type = integer_type;
+ integer->p.ref = 1;
+ integer->value._unsigned = 0;
+ return &integer->p;
+}
+
+static
+void _integer_declaration_free(struct declaration *declaration)
+{
+ struct declaration_integer *integer =
+ container_of(declaration, struct declaration_integer, p);
+
+ type_unref(integer->p.type);
+ g_free(integer);
+}