+
+static
+struct type_string *_string_type_new(struct type_class *type_class,
+ struct declaration_scope *parent_scope)
+{
+ struct type_class_string *string_class =
+ container_of(type_class, struct type_class_string, p);
+ struct type_string *string;
+
+ string = g_new(struct type_string, 1);
+ type_class_ref(&string_class->p);
+ string->p._class = string_class;
+ string->p.ref = 1;
+ string->value = NULL;
+ return &string->p;
+}
+
+static
+void _string_type_free(struct type *type)
+{
+ struct type_string *string =
+ container_of(type, struct type_string, p);
+
+ type_class_unref(string->p._class);
+ g_free(string->value);
+ g_free(string);
+}