From 45e23e195c7f328121303ebefd3375528eb821bb Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 15 Jan 2016 15:37:51 +0000 Subject: Move fz_html_flow to use a bitfield. Saves a bit of memory, and prepares for the addition of later fields (such as direction). --- include/mupdf/html.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/mupdf/html.h b/include/mupdf/html.h index 14966c47..830c95f8 100644 --- a/include/mupdf/html.h +++ b/include/mupdf/html.h @@ -182,19 +182,19 @@ struct fz_html_s enum { - FLOW_WORD, - FLOW_GLUE, - FLOW_BREAK, - FLOW_IMAGE, + FLOW_WORD = 0, + FLOW_GLUE = 1, + FLOW_BREAK = 2, + FLOW_IMAGE = 3 }; struct fz_html_flow_s { - int type; + unsigned int type : 2; + unsigned int expand : 1; float x, y, w, h, em; fz_css_style *style; char *text; - int expand; fz_image *image; fz_html_flow *next; }; -- cgit v1.2.3