diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-01-18 20:10:13 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-01-18 20:10:13 +0000 |
commit | 0455fb54f5c7291c43ec782c11499ef074284cbc (patch) | |
tree | ba2d517638f6db1325f217fe68a98ee4e6a356b7 /include | |
parent | f0b5caf942091d7b43bfc987689b5fd3302f5c80 (diff) | |
download | mupdf-0455fb54f5c7291c43ec782c11499ef074284cbc.tar.xz |
Save some space in fz_html_flow with a union.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/html.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mupdf/html.h b/include/mupdf/html.h index 3955aebc..fd42ec08 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -215,8 +215,10 @@ struct fz_html_flow_s unsigned int block_r2l : 1; float x, y, w, h, em; fz_css_style *style; - char *text; - fz_image *image; + union { + char *text; + fz_image *image; + } content; fz_html_flow *next; }; |