From 77292e90d8b2453088a8724fa2003067b6c982b3 Mon Sep 17 00:00:00 2001 From: Aygul Salahli Date: Thu, 17 Oct 2019 14:58:00 +0300 Subject: [PATCH] Fix function declaration --- include/mycss/property/parser.h | 2 +- source/mycss/property/parser.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/mycss/property/parser.h b/include/mycss/property/parser.h index 65a67c1..4a1b171 100644 --- a/include/mycss/property/parser.h +++ b/include/mycss/property/parser.h @@ -131,6 +131,7 @@ bool mycss_property_parser_border_right(mycss_entry_t* entry, mycss_token_t* tok bool mycss_property_parser_border_right_color(mycss_entry_t* entry, mycss_token_t* token, bool last_response); bool mycss_property_parser_border_right_style(mycss_entry_t* entry, mycss_token_t* token, bool last_response); bool mycss_property_parser_border_right_width(mycss_entry_t* entry, mycss_token_t* token, bool last_response); +bool mycss_property_parser_short_two_type(mycss_entry_t* entry, mycss_token_t* token); bool mycss_property_parser_border_spacing(mycss_entry_t* entry, mycss_token_t* token, bool last_response); bool mycss_property_parser_border_style(mycss_entry_t* entry, mycss_token_t* token, bool last_response); bool mycss_property_parser_border_top(mycss_entry_t* entry, mycss_token_t* token, bool last_response); @@ -370,7 +371,6 @@ bool mycss_property_parser_wrap_flow(mycss_entry_t* entry, mycss_token_t* token, bool mycss_property_parser_wrap_through(mycss_entry_t* entry, mycss_token_t* token, bool last_response); bool mycss_property_parser_writing_mode(mycss_entry_t* entry, mycss_token_t* token, bool last_response); bool mycss_property_parser_z_index(mycss_entry_t* entry, mycss_token_t* token, bool last_response); -bool mycss_property_parser_short_two_type(mycss_entry_t* entry, mycss_token_t* token); #ifdef __cplusplus } /* extern "C" */ diff --git a/source/mycss/property/parser.c b/source/mycss/property/parser.c index 17c9448..f129f0a 100644 --- a/source/mycss/property/parser.c +++ b/source/mycss/property/parser.c @@ -1033,11 +1033,6 @@ bool mycss_property_parser_border_radius(mycss_entry_t* entry, mycss_token_t* to return mycss_property_parser_destroy_string(&str, mycss_property_shared_switch_to_parse_error(entry)); } -bool mycss_property_parser_border_top_right_radius(mycss_entry_t* entry, mycss_token_t* token, bool last_response) -{ - return mycss_property_parser_short_two_type(entry, token); -} - bool mycss_property_parser_short_two_type(mycss_entry_t* entry, mycss_token_t* token) { if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) @@ -1080,6 +1075,11 @@ bool mycss_property_parser_short_two_type(mycss_entry_t* entry, mycss_token_t* t return mycss_property_parser_destroy_string(&str, mycss_property_shared_switch_to_parse_error(entry)); } +bool mycss_property_parser_border_top_right_radius(mycss_entry_t* entry, mycss_token_t* token, bool last_response) +{ + return mycss_property_parser_short_two_type(entry, token); +} + bool mycss_property_parser_border_top_left_radius(mycss_entry_t* entry, mycss_token_t* token, bool last_response) { return mycss_property_parser_border_top_right_radius(entry, token, last_response);