From 91786cd2c71cb2d36fa16da97d5a624d54f69660 Mon Sep 17 00:00:00 2001 From: Andrew Rasmussen Date: Tue, 30 Sep 2014 13:18:03 -0700 Subject: [PATCH] make isUndefined public, add CSS_POSITION_COUNT back --- src/Layout.c | 2 +- src/Layout.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Layout.c b/src/Layout.c index 60bb0b1a..7f991790 100644 --- a/src/Layout.c +++ b/src/Layout.c @@ -6,7 +6,7 @@ #include "Layout.h" -static bool isUndefined(float value) { +bool isUndefined(float value) { return isnan(value); } diff --git a/src/Layout.h b/src/Layout.h index b6a245a6..546b4883 100644 --- a/src/Layout.h +++ b/src/Layout.h @@ -39,7 +39,8 @@ typedef enum { CSS_LEFT = 0, CSS_TOP, CSS_RIGHT, - CSS_BOTTOM + CSS_BOTTOM, + CSS_POSITION_COUNT } css_position_t; typedef enum { @@ -116,5 +117,6 @@ void print_css_node(css_node_t *node, css_print_options_t options); // Function that computes the layout! void layoutNode(css_node_t *node, float maxWidth); +bool isUndefined(float value); #endif