From 2a7bff7d173e3cbdfee3926bd264696a61f75589 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 6 Sep 2011 21:42:37 +0000 Subject: Appease ancient compilers svn path=/trunk/libcss/; revision=12765 --- src/select/propset.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/select/propset.h b/src/select/propset.h index 6337536..738ec70 100644 --- a/src/select/propset.h +++ b/src/select/propset.h @@ -1860,9 +1860,11 @@ static inline uint8_t set_text_align( static inline css_error set_page_break_after( css_computed_style *style, uint8_t type) { + uint8_t *bits; + ENSURE_PAGE; - uint8_t *bits = &style->page->bits[PAGE_BREAK_AFTER_INDEX]; + bits = &style->page->bits[PAGE_BREAK_AFTER_INDEX]; /* 3bits: type */ *bits = (*bits & ~PAGE_BREAK_AFTER_MASK) | @@ -1880,9 +1882,11 @@ static inline css_error set_page_break_after( static inline css_error set_page_break_before( css_computed_style *style, uint8_t type) { + uint8_t *bits; + ENSURE_PAGE; - uint8_t *bits = &style->page->bits[PAGE_BREAK_BEFORE_INDEX]; + bits = &style->page->bits[PAGE_BREAK_BEFORE_INDEX]; /* 3bits: type */ *bits = (*bits & ~PAGE_BREAK_BEFORE_MASK) | @@ -1900,9 +1904,11 @@ static inline css_error set_page_break_before( static inline css_error set_page_break_inside( css_computed_style *style, uint8_t type) { + uint8_t *bits; + ENSURE_PAGE; - uint8_t *bits = &style->page->bits[PAGE_BREAK_INSIDE_INDEX]; + bits = &style->page->bits[PAGE_BREAK_INSIDE_INDEX]; /* 2bits: type */ *bits = (*bits & ~PAGE_BREAK_INSIDE_MASK) | -- cgit v1.2.3