+static struct symbol * sym_text_copy(struct symbol *sym)
+{
+ struct sym_text *t = (struct sym_text *) sym;
+
+ struct sym_text *new = xmalloc(sizeof(struct sym_text));
+ *new = *t; // FIXME: Is this OK? with respect to pointer fields...
+
+ return (struct symbol *) new;
+}
+
+static bool sym_text_look_same(struct symbol *s1, struct symbol *s2)
+{
+ struct sym_text *st1 = (struct sym_text *) s1;
+ struct sym_text *st2 = (struct sym_text *) s2;
+ return (st1->text == st2->text && st1->text_color == st2->text_color);
+}
+