summaryrefslogtreecommitdiff
path: root/include/hubbub/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hubbub/types.h')
-rw-r--r--include/hubbub/types.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/hubbub/types.h b/include/hubbub/types.h
index 5b49786..42d1460 100644
--- a/include/hubbub/types.h
+++ b/include/hubbub/types.h
@@ -70,16 +70,7 @@ typedef enum hubbub_ns {
* Tokeniser string type
*/
typedef struct hubbub_string {
- enum {
- HUBBUB_STRING_OFF,
- HUBBUB_STRING_PTR
- } type;
-
- union {
- const uint8_t *ptr; /**< Pointer to data */
- uint32_t off; /**< Byte offset of string start */
- } data;
-
+ const uint8_t *ptr; /**< Pointer to data */
size_t len; /**< Byte length of string */
} hubbub_string;