summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-09-06 21:42:37 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-09-06 21:42:37 +0000
commit2a7bff7d173e3cbdfee3926bd264696a61f75589 (patch)
treeec57e304d9849d21643b268791b7b7e6662db175
parent19ece80529ccb8a8c6ec017eee5264b7ba62dcf8 (diff)
downloadlibcss-2a7bff7d173e3cbdfee3926bd264696a61f75589.tar.gz
libcss-2a7bff7d173e3cbdfee3926bd264696a61f75589.tar.bz2
Appease ancient compilers
svn path=/trunk/libcss/; revision=12765
-rw-r--r--src/select/propset.h12
1 files changed, 9 insertions, 3 deletions
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) |