text_object: introduce a generic payload pointer
authorPhil Sutter <phil@nwl.cc>
Sat, 3 Oct 2009 14:08:33 +0000 (16:08 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 3 Nov 2009 22:23:22 +0000 (23:23 +0100)
src/text_object.h

index 2bc3669..9062d55 100644 (file)
@@ -442,6 +442,7 @@ struct text_object {
        struct text_object *next, *prev;        /* doubly linked list of text objects */
        struct text_object *sub;                /* for objects parsing text into objects */
        union {
+               void *opaque;           /* new style generic per object data */
                char *s;                /* some string */
                int i;                  /* some integer */
                long l;                 /* some other integer */