+
+static
+struct declaration *
+ _float_declaration_new(struct type *type,
+ struct declaration_scope *parent_scope)
+{
+ struct type_float *float_type =
+ container_of(type, struct type_float, p);
+ struct declaration_float *_float;
+
+ _float = g_new(struct declaration_float, 1);
+ type_ref(&_float_type->p);
+ _float->p.type= _float_type;
+ _float->p.ref = 1;
+ _float->value = 0.0;
+ return &_float->p;
+}
+
+static
+void _float_declaration_free(struct declaration *declaration)
+{
+ struct declaration_float *_float =
+ container_of(declaration, struct declaration_float, p);
+
+ type_unref(_float->p.type);
+ g_free(_float);
+}