summaryrefslogtreecommitdiff
path: root/src/parse/properties
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties')
-rw-r--r--src/parse/properties/azimuth.c4
-rw-r--r--src/parse/properties/background.c60
-rw-r--r--src/parse/properties/background_position.c10
-rw-r--r--src/parse/properties/border_color.c4
-rw-r--r--src/parse/properties/border_spacing.c6
-rw-r--r--src/parse/properties/border_style.c2
-rw-r--r--src/parse/properties/border_width.c6
-rw-r--r--src/parse/properties/clip.c8
-rw-r--r--src/parse/properties/content.c32
-rw-r--r--src/parse/properties/css_property_parser_gen.c32
-rw-r--r--src/parse/properties/cursor.c6
-rw-r--r--src/parse/properties/elevation.c4
-rw-r--r--src/parse/properties/font.c74
-rw-r--r--src/parse/properties/font_family.c2
-rw-r--r--src/parse/properties/font_weight.c2
-rw-r--r--src/parse/properties/list_style.c30
-rw-r--r--src/parse/properties/list_style_type.c2
-rw-r--r--src/parse/properties/margin.c6
-rw-r--r--src/parse/properties/outline.c30
-rw-r--r--src/parse/properties/padding.c6
-rw-r--r--src/parse/properties/play_during.c6
-rw-r--r--src/parse/properties/quotes.c14
-rw-r--r--src/parse/properties/text_decoration.c4
-rw-r--r--src/parse/properties/utils.c42
-rw-r--r--src/parse/properties/voice_family.c2
25 files changed, 197 insertions, 197 deletions
diff --git a/src/parse/properties/azimuth.c b/src/parse/properties/azimuth.c
index ace29a2..76bc383 100644
--- a/src/parse/properties/azimuth.c
+++ b/src/parse/properties/azimuth.c
@@ -217,14 +217,14 @@ css_error css__parse_azimuth(css_language *c,
value = AZIMUTH_ANGLE;
}
- error = css_stylesheet_style_appendOPV(result, CSS_PROP_AZIMUTH, flags, value);
+ error = css__stylesheet_style_appendOPV(result, CSS_PROP_AZIMUTH, flags, value);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
}
if (((flags & FLAG_INHERIT) == false) && (value == AZIMUTH_ANGLE)) {
- error = css_stylesheet_style_vappend(result, 2, length, unit);
+ error = css__stylesheet_style_vappend(result, 2, length, unit);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
diff --git a/src/parse/properties/background.c b/src/parse/properties/background.c
index 137372e..cae069c 100644
--- a/src/parse/properties/background.c
+++ b/src/parse/properties/background.c
@@ -77,37 +77,37 @@ css_error css__parse_background(css_language *c,
}
/* allocate styles */
- error = css_stylesheet_style_create(c->sheet, &attachment_style);
+ error = css__stylesheet_style_create(c->sheet, &attachment_style);
if (error != CSS_OK)
return error;
- error = css_stylesheet_style_create(c->sheet, &color_style);
+ error = css__stylesheet_style_create(c->sheet, &color_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(attachment_style);
+ css__stylesheet_style_destroy(attachment_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &image_style);
+ error = css__stylesheet_style_create(c->sheet, &image_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(attachment_style);
- css_stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(attachment_style);
+ css__stylesheet_style_destroy(color_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &position_style);
+ error = css__stylesheet_style_create(c->sheet, &position_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(attachment_style);
- css_stylesheet_style_destroy(color_style);
- css_stylesheet_style_destroy(image_style);
+ css__stylesheet_style_destroy(attachment_style);
+ css__stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(image_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &repeat_style);
+ error = css__stylesheet_style_create(c->sheet, &repeat_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(attachment_style);
- css_stylesheet_style_destroy(color_style);
- css_stylesheet_style_destroy(image_style);
- css_stylesheet_style_destroy(position_style);
+ css__stylesheet_style_destroy(attachment_style);
+ css__stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(image_style);
+ css__stylesheet_style_destroy(position_style);
return error;
}
@@ -157,7 +157,7 @@ css_error css__parse_background(css_language *c,
} while (*ctx != prev_ctx && token != NULL);
if (attachment) {
- error = css_stylesheet_style_appendOPV(attachment_style,
+ error = css__stylesheet_style_appendOPV(attachment_style,
CSS_PROP_BACKGROUND_ATTACHMENT, 0,
BACKGROUND_ATTACHMENT_SCROLL);
if (error != CSS_OK)
@@ -165,7 +165,7 @@ css_error css__parse_background(css_language *c,
}
if (color) {
- error = css_stylesheet_style_appendOPV(color_style,
+ error = css__stylesheet_style_appendOPV(color_style,
CSS_PROP_BACKGROUND_COLOR, 0,
BACKGROUND_COLOR_TRANSPARENT);
if (error != CSS_OK)
@@ -173,7 +173,7 @@ css_error css__parse_background(css_language *c,
}
if (image) {
- error = css_stylesheet_style_appendOPV(image_style,
+ error = css__stylesheet_style_appendOPV(image_style,
CSS_PROP_BACKGROUND_IMAGE,
0, BACKGROUND_IMAGE_NONE);
if (error != CSS_OK)
@@ -181,7 +181,7 @@ css_error css__parse_background(css_language *c,
}
if (position) {
- error = css_stylesheet_style_appendOPV(position_style,
+ error = css__stylesheet_style_appendOPV(position_style,
CSS_PROP_BACKGROUND_POSITION,
0, BACKGROUND_POSITION_HORZ_LEFT |
BACKGROUND_POSITION_VERT_TOP);
@@ -190,37 +190,37 @@ css_error css__parse_background(css_language *c,
}
if (repeat) {
- error = css_stylesheet_style_appendOPV(repeat_style,
+ error = css__stylesheet_style_appendOPV(repeat_style,
CSS_PROP_BACKGROUND_REPEAT,
0, BACKGROUND_REPEAT_REPEAT);
if (error != CSS_OK)
goto css__parse_background_cleanup;
}
- error = css_stylesheet_merge_style(result, attachment_style);
+ error = css__stylesheet_merge_style(result, attachment_style);
if (error != CSS_OK)
goto css__parse_background_cleanup;
- error = css_stylesheet_merge_style(result, color_style);
+ error = css__stylesheet_merge_style(result, color_style);
if (error != CSS_OK)
goto css__parse_background_cleanup;
- error = css_stylesheet_merge_style(result, image_style);
+ error = css__stylesheet_merge_style(result, image_style);
if (error != CSS_OK)
goto css__parse_background_cleanup;
- error = css_stylesheet_merge_style(result, position_style);
+ error = css__stylesheet_merge_style(result, position_style);
if (error != CSS_OK)
goto css__parse_background_cleanup;
- error = css_stylesheet_merge_style(result, repeat_style);
+ error = css__stylesheet_merge_style(result, repeat_style);
css__parse_background_cleanup:
- css_stylesheet_style_destroy(attachment_style);
- css_stylesheet_style_destroy(color_style);
- css_stylesheet_style_destroy(image_style);
- css_stylesheet_style_destroy(position_style);
- css_stylesheet_style_destroy(repeat_style);
+ css__stylesheet_style_destroy(attachment_style);
+ css__stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(image_style);
+ css__stylesheet_style_destroy(position_style);
+ css__stylesheet_style_destroy(repeat_style);
if (error != CSS_OK)
*ctx = orig_ctx;
diff --git a/src/parse/properties/background_position.c b/src/parse/properties/background_position.c
index af38882..992372b 100644
--- a/src/parse/properties/background_position.c
+++ b/src/parse/properties/background_position.c
@@ -183,7 +183,7 @@ css_error css__parse_background_position(css_language *c,
}
}
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_BACKGROUND_POSITION,
flags,
value[0] | value[1]);
@@ -194,12 +194,12 @@ css_error css__parse_background_position(css_language *c,
if ((flags & FLAG_INHERIT) == false) {
if (value[0] == BACKGROUND_POSITION_HORZ_SET) {
- css_stylesheet_style_append(result, length[0]);
- css_stylesheet_style_append(result, unit[0]);
+ css__stylesheet_style_append(result, length[0]);
+ css__stylesheet_style_append(result, unit[0]);
}
if (value[1] == BACKGROUND_POSITION_VERT_SET) {
- css_stylesheet_style_append(result, length[1]);
- css_stylesheet_style_append(result, unit[1]);
+ css__stylesheet_style_append(result, length[1]);
+ css__stylesheet_style_append(result, unit[1]);
}
}
diff --git a/src/parse/properties/border_color.c b/src/parse/properties/border_color.c
index 87c1c5f..074b457 100644
--- a/src/parse/properties/border_color.c
+++ b/src/parse/properties/border_color.c
@@ -100,11 +100,11 @@ css_error css__parse_border_color(css_language *c,
#define SIDE_APPEND(OP,NUM) \
- error = css_stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
+ error = css__stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
if (error != CSS_OK) \
break; \
if (side_val[(NUM)] == BORDER_COLOR_SET) \
- error = css_stylesheet_style_append(result, side_color[(NUM)]); \
+ error = css__stylesheet_style_append(result, side_color[(NUM)]); \
if (error != CSS_OK) \
break;
diff --git a/src/parse/properties/border_spacing.c b/src/parse/properties/border_spacing.c
index 0d6bc76..e9949fd 100644
--- a/src/parse/properties/border_spacing.c
+++ b/src/parse/properties/border_spacing.c
@@ -51,7 +51,7 @@ css_error css__parse_border_spacing(css_language *c,
&match) == lwc_error_ok && match)) {
parserutils_vector_iterate(vector, ctx);
/* inherit */
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_BORDER_SPACING,
FLAG_INHERIT,
0);
@@ -109,7 +109,7 @@ css_error css__parse_border_spacing(css_language *c,
return CSS_INVALID;
}
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_BORDER_SPACING,
0,
BORDER_SPACING_SET);
@@ -119,7 +119,7 @@ css_error css__parse_border_spacing(css_language *c,
return error;
}
- error = css_stylesheet_style_vappend(result,
+ error = css__stylesheet_style_vappend(result,
4,
length[0],
unit[0],
diff --git a/src/parse/properties/border_style.c b/src/parse/properties/border_style.c
index ae697df..d4a4d12 100644
--- a/src/parse/properties/border_style.c
+++ b/src/parse/properties/border_style.c
@@ -111,7 +111,7 @@ css_error css__parse_border_style(css_language *c,
#define SIDE_APPEND(OP,NUM) \
- error = css_stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
+ error = css__stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
if (error != CSS_OK) \
break
diff --git a/src/parse/properties/border_width.c b/src/parse/properties/border_width.c
index 88abae5..8b86bc4 100644
--- a/src/parse/properties/border_width.c
+++ b/src/parse/properties/border_width.c
@@ -121,14 +121,14 @@ css_error css__parse_border_width(css_language *c,
#define SIDE_APPEND(OP,NUM) \
- error = css_stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
+ error = css__stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
if (error != CSS_OK) \
break; \
if (side_val[(NUM)] == BORDER_WIDTH_SET) { \
- error = css_stylesheet_style_append(result, side_length[(NUM)]); \
+ error = css__stylesheet_style_append(result, side_length[(NUM)]); \
if (error != CSS_OK) \
break; \
- error = css_stylesheet_style_append(result, side_unit[(NUM)]); \
+ error = css__stylesheet_style_append(result, side_unit[(NUM)]); \
if (error != CSS_OK) \
break; \
}
diff --git a/src/parse/properties/clip.c b/src/parse/properties/clip.c
index 0e06fd0..3d200f5 100644
--- a/src/parse/properties/clip.c
+++ b/src/parse/properties/clip.c
@@ -52,7 +52,7 @@ css_error css__parse_clip(css_language *c,
(lwc_string_caseless_isequal(
token->idata, c->strings[INHERIT],
&match) == lwc_error_ok && match)) {
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_CLIP,
FLAG_INHERIT,
0);
@@ -60,7 +60,7 @@ css_error css__parse_clip(css_language *c,
(lwc_string_caseless_isequal(
token->idata, c->strings[AUTO],
&match) == lwc_error_ok && match)) {
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_CLIP,
0,
CLIP_AUTO);
@@ -140,7 +140,7 @@ css_error css__parse_clip(css_language *c,
}
/* output bytecode */
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_CLIP,
0,
value);
@@ -150,7 +150,7 @@ css_error css__parse_clip(css_language *c,
}
for (i = 0; i < num_lengths; i++) {
- error = css_stylesheet_style_vappend(result,
+ error = css__stylesheet_style_vappend(result,
2,
length[i],
unit[i]);
diff --git a/src/parse/properties/content.c b/src/parse/properties/content.c
index 8ea8e2f..860d0f1 100644
--- a/src/parse/properties/content.c
+++ b/src/parse/properties/content.c
@@ -54,18 +54,18 @@ css_error css__parse_content(css_language *c,
(lwc_string_caseless_isequal(token->idata,
c->strings[NORMAL],
&match) == lwc_error_ok && match)) {
- error = css_stylesheet_style_appendOPV(result, CSS_PROP_CONTENT, 0, CONTENT_NORMAL);
+ error = css__stylesheet_style_appendOPV(result, CSS_PROP_CONTENT, 0, CONTENT_NORMAL);
} else if ((token->type == CSS_TOKEN_IDENT) &&
(lwc_string_caseless_isequal(token->idata,
c->strings[NONE],
&match) == lwc_error_ok && match)) {
- error = css_stylesheet_style_appendOPV(result, CSS_PROP_CONTENT, 0, CONTENT_NONE);
+ error = css__stylesheet_style_appendOPV(result, CSS_PROP_CONTENT, 0, CONTENT_NONE);
} else {
/* Macro to output the value marker, awkward because we need to check
* first to determine how the value is constructed.
*/
-#define CSS_APPEND(CSSVAL) css_stylesheet_style_append(result, first?buildOPV(CSS_PROP_CONTENT, 0, CSSVAL):CSSVAL)
+#define CSS_APPEND(CSSVAL) css__stylesheet_style_append(result, first?buildOPV(CSS_PROP_CONTENT, 0, CSSVAL):CSSVAL)
bool first = true;
int prev_ctx = orig_ctx;
@@ -108,7 +108,7 @@ css_error css__parse_content(css_language *c,
} else if (token->type == CSS_TOKEN_STRING) {
uint32_t snumber;
- error = css_stylesheet_string_add(c->sheet, lwc_string_ref(token->idata), &snumber);
+ error = css__stylesheet_string_add(c->sheet, lwc_string_ref(token->idata), &snumber);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
@@ -120,7 +120,7 @@ css_error css__parse_content(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, snumber);
+ error = css__stylesheet_style_append(result, snumber);
} else if (token->type == CSS_TOKEN_URI) {
lwc_string *uri;
uint32_t uri_snumber;
@@ -134,7 +134,7 @@ css_error css__parse_content(css_language *c,
return error;
}
- error = css_stylesheet_string_add(c->sheet,
+ error = css__stylesheet_string_add(c->sheet,
uri,
&uri_snumber);
if (error != CSS_OK) {
@@ -148,7 +148,7 @@ css_error css__parse_content(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, uri_snumber);
+ error = css__stylesheet_style_append(result, uri_snumber);
} else if (token->type == CSS_TOKEN_FUNCTION &&
(lwc_string_caseless_isequal(
token->idata, c->strings[ATTR],
@@ -164,7 +164,7 @@ css_error css__parse_content(css_language *c,
return CSS_INVALID;
}
- error = css_stylesheet_string_add(c->sheet, lwc_string_ref(token->idata), &snumber);
+ error = css__stylesheet_string_add(c->sheet, lwc_string_ref(token->idata), &snumber);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
@@ -176,7 +176,7 @@ css_error css__parse_content(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, snumber);
+ error = css__stylesheet_style_append(result, snumber);
consumeWhitespace(vector, ctx);
@@ -257,7 +257,7 @@ css_error css__parse_content(css_language *c,
}
- error = css_stylesheet_string_add(c->sheet, lwc_string_ref(name), &snumber);
+ error = css__stylesheet_string_add(c->sheet, lwc_string_ref(name), &snumber);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
@@ -269,7 +269,7 @@ css_error css__parse_content(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, snumber);
+ error = css__stylesheet_style_append(result, snumber);
} else if (token->type == CSS_TOKEN_FUNCTION &&
(lwc_string_caseless_isequal(
token->idata, c->strings[COUNTERS],
@@ -364,13 +364,13 @@ css_error css__parse_content(css_language *c,
}
- error = css_stylesheet_string_add(c->sheet, lwc_string_ref(name), &name_snumber);
+ error = css__stylesheet_string_add(c->sheet, lwc_string_ref(name), &name_snumber);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
}
- error = css_stylesheet_string_add(c->sheet, lwc_string_ref(sep), &sep_snumber);
+ error = css__stylesheet_string_add(c->sheet, lwc_string_ref(sep), &sep_snumber);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
@@ -382,13 +382,13 @@ css_error css__parse_content(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, name_snumber);
+ error = css__stylesheet_style_append(result, name_snumber);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
}
- error = css_stylesheet_style_append(result, sep_snumber);
+ error = css__stylesheet_style_append(result, sep_snumber);
} else if (first) {
/* Invalid if this is the first iteration */
error = CSS_INVALID;
@@ -414,7 +414,7 @@ css_error css__parse_content(css_language *c,
} /* while */
/* Write list terminator */
- css_stylesheet_style_append(result, CONTENT_NORMAL);
+ css__stylesheet_style_append(result, CONTENT_NORMAL);
}
if (error != CSS_OK)
diff --git a/src/parse/properties/css_property_parser_gen.c b/src/parse/properties/css_property_parser_gen.c
index d53fe16..ae1fa04 100644
--- a/src/parse/properties/css_property_parser_gen.c
+++ b/src/parse/properties/css_property_parser_gen.c
@@ -179,7 +179,7 @@ void output_ident(FILE *outputf, bool only_ident, struct keyval *parseid, struct
parseid->val);
} else {
fprintf(outputf,
- "\t\t\terror = css_stylesheet_style_appendOPV(result, %s, %s);\n",
+ "\t\t\terror = css__stylesheet_style_appendOPV(result, %s, %s);\n",
parseid->val,
ckv->val);
}
@@ -205,19 +205,19 @@ void output_uri(FILE *outputf, struct keyval *parseid, struct keyval_list *kvlis
" return error;\n"
" }\n"
"\n"
- " error = css_stylesheet_string_add(c->sheet, uri, &uri_snumber);\n"
+ " error = css__stylesheet_string_add(c->sheet, uri, &uri_snumber);\n"
" if (error != CSS_OK) {\n"
" *ctx = orig_ctx;\n"
" return error;\n"
" }\n"
"\n"
- " error = css_stylesheet_style_appendOPV(result, %s, 0, %s);\n"
+ " error = css__stylesheet_style_appendOPV(result, %s, 0, %s);\n"
" if (error != CSS_OK) {\n"
" *ctx = orig_ctx;\n"
" return error;\n"
" }\n"
"\n"
- " error = css_stylesheet_style_append(result, uri_snumber);\n"
+ " error = css__stylesheet_style_append(result, uri_snumber);\n"
" } else ",
parseid->val,
ckv->val);
@@ -255,12 +255,12 @@ void output_number(FILE *outputf, struct keyval *parseid, struct keyval_list *kv
}
fprintf(outputf,
- "\t\terror = css_stylesheet_style_appendOPV(result, %s, 0, %s);\n"
+ "\t\terror = css__stylesheet_style_appendOPV(result, %s, 0, %s);\n"
"\t\tif (error != CSS_OK) {\n"
"\t\t\t*ctx = orig_ctx;\n"
"\t\t\treturn error;\n"
"\t\t}\n\n"
- "\t\terror = css_stylesheet_style_append(result, num);\n"
+ "\t\terror = css__stylesheet_style_append(result, num);\n"
"\t} else ",
parseid->val,
ckv->val);
@@ -279,13 +279,13 @@ void output_color(FILE *outputf, struct keyval *parseid, struct keyval_list *kvl
"\t\t\t*ctx = orig_ctx;\n"
"\t\t\treturn error;\n"
"\t\t}\n\n"
- "\t\terror = css_stylesheet_style_appendOPV(result, %s, 0, %s);\n"
+ "\t\terror = css__stylesheet_style_appendOPV(result, %s, 0, %s);\n"
"\t\tif (error != CSS_OK) {\n"
"\t\t\t*ctx = orig_ctx;\n"
"\t\t\treturn error;\n"
"\t\t}\n"
"\n"
- "\t\terror = css_stylesheet_style_append(result, color);\n"
+ "\t\terror = css__stylesheet_style_append(result, color);\n"
"\t}\n\n",
parseid->val,
ckv->val);
@@ -338,13 +338,13 @@ void output_length_unit(FILE *outputf, struct keyval *parseid, struct keyval_lis
}
fprintf(outputf,
- "\t\terror = css_stylesheet_style_appendOPV(result, %s, 0, %s);\n"
+ "\t\terror = css__stylesheet_style_appendOPV(result, %s, 0, %s);\n"
"\t\tif (error != CSS_OK) {\n"
"\t\t\t*ctx = orig_ctx;\n"
"\t\t\treturn error;\n"
"\t\t}\n"
"\n"
- "\t\terror = css_stylesheet_style_vappend(result, 2, length, unit);\n"
+ "\t\terror = css__stylesheet_style_vappend(result, 2, length, unit);\n"
"\t}\n\n",
parseid->val,
ckv->val);
@@ -359,7 +359,7 @@ void output_ident_list(FILE *outputf, struct keyval *parseid, struct keyval_list
fprintf(outputf,
"{\n"
- "\t\terror = css_stylesheet_style_appendOPV(result, %s, 0, %s);\n"
+ "\t\terror = css__stylesheet_style_appendOPV(result, %s, 0, %s);\n"
"\t\tif (error != CSS_OK) {\n"
"\t\t\t*ctx = orig_ctx;\n"
"\t\t\treturn error;\n"
@@ -368,12 +368,12 @@ void output_ident_list(FILE *outputf, struct keyval *parseid, struct keyval_list
"\t\t\tuint32_t snumber;\n"
"\t\t\tcss_fixed num;\n"
"\t\t\tint pctx;\n\n"
- "\t\t\terror = css_stylesheet_string_add(c->sheet, lwc_string_ref(token->idata), &snumber);\n"
+ "\t\t\terror = css__stylesheet_string_add(c->sheet, lwc_string_ref(token->idata), &snumber);\n"
"\t\t\tif (error != CSS_OK) {\n"
"\t\t\t\t*ctx = orig_ctx;\n"
"\t\t\t\treturn error;\n"
"\t\t\t}\n\n"
- "\t\t\terror = css_stylesheet_style_append(result, snumber);\n"
+ "\t\t\terror = css__stylesheet_style_append(result, snumber);\n"
"\t\t\tif (error != CSS_OK) {\n"
"\t\t\t\t*ctx = orig_ctx;\n"
"\t\t\t\treturn error;\n"
@@ -394,7 +394,7 @@ void output_ident_list(FILE *outputf, struct keyval *parseid, struct keyval_list
"\t\t\t} else {\n"
"\t\t\t\tnum = INTTOFIX(%s);\n"
"\t\t\t}\n\n"
- "\t\t\terror = css_stylesheet_style_append(result, num);\n"
+ "\t\t\terror = css__stylesheet_style_append(result, num);\n"
"\t\t\tif (error != CSS_OK) {\n"
"\t\t\t\t*ctx = orig_ctx;\n"
"\t\t\t\treturn error;\n"
@@ -402,7 +402,7 @@ void output_ident_list(FILE *outputf, struct keyval *parseid, struct keyval_list
"\t\t\tif (token == NULL)\n"
"\t\t\t\tbreak;\n\n"
"\t\t\tif (token->type == CSS_TOKEN_IDENT) {\n"
- "\t\t\t\terror = css_stylesheet_style_append(result, %s);\n"
+ "\t\t\t\terror = css__stylesheet_style_append(result, %s);\n"
"\t\t\t\tif (error != CSS_OK) {\n"
"\t\t\t\t\t*ctx = orig_ctx;\n"
"\t\t\t\t\treturn error;\n"
@@ -411,7 +411,7 @@ void output_ident_list(FILE *outputf, struct keyval *parseid, struct keyval_list
"\t\t\t\t*ctx = pctx; /* rewind one token back */\n"
"\t\t\t}\n"
"\t\t}\n\n"
- "\t\terror = css_stylesheet_style_append(result, %s);\n"
+ "\t\terror = css__stylesheet_style_append(result, %s);\n"
"\t}\n\n",
parseid->val,
ckv->val,
diff --git a/src/parse/properties/cursor.c b/src/parse/properties/cursor.c
index 07e2d8a..6b9eadf 100644
--- a/src/parse/properties/cursor.c
+++ b/src/parse/properties/cursor.c
@@ -59,7 +59,7 @@ css_error css__parse_cursor(css_language *c,
/* Macro to output the value marker, awkward because we need to check
* first to determine how the value is constructed.
*/
-#define CSS_APPEND(CSSVAL) css_stylesheet_style_append(result, first?buildOPV(CSS_PROP_CURSOR, 0, CSSVAL):CSSVAL)
+#define CSS_APPEND(CSSVAL) css__stylesheet_style_append(result, first?buildOPV(CSS_PROP_CURSOR, 0, CSSVAL):CSSVAL)
/* URI* */
@@ -75,7 +75,7 @@ css_error css__parse_cursor(css_language *c,
return error;
}
- error = css_stylesheet_string_add(c->sheet,
+ error = css__stylesheet_string_add(c->sheet,
uri,
&uri_snumber);
if (error != CSS_OK) {
@@ -89,7 +89,7 @@ css_error css__parse_cursor(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, uri_snumber);
+ error = css__stylesheet_style_append(result, uri_snumber);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
diff --git a/src/parse/properties/elevation.c b/src/parse/properties/elevation.c
index 8c5e48e..f3a48a4 100644
--- a/src/parse/properties/elevation.c
+++ b/src/parse/properties/elevation.c
@@ -117,14 +117,14 @@ css_error css__parse_elevation(css_language *c,
value = ELEVATION_ANGLE;
}
- error = css_stylesheet_style_appendOPV(result, CSS_PROP_ELEVATION, flags, value);
+ error = css__stylesheet_style_appendOPV(result, CSS_PROP_ELEVATION, flags, value);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
}
if (((flags & FLAG_INHERIT) == false) && (value == ELEVATION_ANGLE)) {
- error = css_stylesheet_style_vappend(result, 2, length, unit);
+ error = css__stylesheet_style_vappend(result, 2, length, unit);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
diff --git a/src/parse/properties/font.c b/src/parse/properties/font.c
index 1417dda..25ce096 100644
--- a/src/parse/properties/font.c
+++ b/src/parse/properties/font.c
@@ -84,47 +84,47 @@ css_error css__parse_font(css_language *c,
/* allocate styles */
- error = css_stylesheet_style_create(c->sheet, &style_style);
+ error = css__stylesheet_style_create(c->sheet, &style_style);
if (error != CSS_OK)
return error;
- error = css_stylesheet_style_create(c->sheet, &variant_style);
+ error = css__stylesheet_style_create(c->sheet, &variant_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(style_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &weight_style);
+ error = css__stylesheet_style_create(c->sheet, &weight_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(style_style);
- css_stylesheet_style_destroy(variant_style);
+ css__stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(variant_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &size_style);
+ error = css__stylesheet_style_create(c->sheet, &size_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(style_style);
- css_stylesheet_style_destroy(variant_style);
- css_stylesheet_style_destroy(weight_style);
+ css__stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(variant_style);
+ css__stylesheet_style_destroy(weight_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &line_height_style);
+ error = css__stylesheet_style_create(c->sheet, &line_height_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(style_style);
- css_stylesheet_style_destroy(variant_style);
- css_stylesheet_style_destroy(weight_style);
- css_stylesheet_style_destroy(size_style);
+ css__stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(variant_style);
+ css__stylesheet_style_destroy(weight_style);
+ css__stylesheet_style_destroy(size_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &family_style);
+ error = css__stylesheet_style_create(c->sheet, &family_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(style_style);
- css_stylesheet_style_destroy(variant_style);
- css_stylesheet_style_destroy(weight_style);
- css_stylesheet_style_destroy(size_style);
- css_stylesheet_style_destroy(line_height_style);
+ css__stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(variant_style);
+ css__stylesheet_style_destroy(weight_style);
+ css__stylesheet_style_destroy(size_style);
+ css__stylesheet_style_destroy(line_height_style);
return error;
}
@@ -225,7 +225,7 @@ css_error css__parse_font(css_language *c,
/* defaults */
if (style) {
- error = css_stylesheet_style_appendOPV(style_style,
+ error = css__stylesheet_style_appendOPV(style_style,
CSS_PROP_FONT_STYLE, 0,
FONT_STYLE_NORMAL);
if (error != CSS_OK)
@@ -233,7 +233,7 @@ css_error css__parse_font(css_language *c,
}
if (variant) {
- error = css_stylesheet_style_appendOPV(variant_style,
+ error = css__stylesheet_style_appendOPV(variant_style,
CSS_PROP_FONT_VARIANT, 0,
FONT_VARIANT_NORMAL);
if (error != CSS_OK)
@@ -241,7 +241,7 @@ css_error css__parse_font(css_language *c,
}
if (weight) {
- error = css_stylesheet_style_appendOPV(weight_style,
+ error = css__stylesheet_style_appendOPV(weight_style,
CSS_PROP_FONT_WEIGHT,
0, FONT_WEIGHT_NORMAL);
if (error != CSS_OK)
@@ -249,7 +249,7 @@ css_error css__parse_font(css_language *c,
}
if (line_height) {
- error = css_stylesheet_style_appendOPV(line_height_style,
+ error = css__stylesheet_style_appendOPV(line_height_style,
CSS_PROP_LINE_HEIGHT,
0, LINE_HEIGHT_NORMAL);
if (error != CSS_OK)
@@ -257,37 +257,37 @@ css_error css__parse_font(css_language *c,
}
/* merge final output */
- error = css_stylesheet_merge_style(result, style_style);
+ error = css__stylesheet_merge_style(result, style_style);
if (error != CSS_OK)
goto css__parse_font_cleanup;
- error = css_stylesheet_merge_style(result, variant_style);
+ error = css__stylesheet_merge_style(result, variant_style);
if (error != CSS_OK)
goto css__parse_font_cleanup;
- error = css_stylesheet_merge_style(result, weight_style);
+ error = css__stylesheet_merge_style(result, weight_style);
if (error != CSS_OK)
goto css__parse_font_cleanup;
- error = css_stylesheet_merge_style(result, size_style);
+ error = css__stylesheet_merge_style(result, size_style);
if (error != CSS_OK)
goto css__parse_font_cleanup;
- error = css_stylesheet_merge_style(result, line_height_style);
+ error = css__stylesheet_merge_style(result, line_height_style);
if (error != CSS_OK)
goto css__parse_font_cleanup;
- error = css_stylesheet_merge_style(result, family_style);
+ error = css__stylesheet_merge_style(result, family_style);
css__parse_font_cleanup:
- css_stylesheet_style_destroy(style_style);
- css_stylesheet_style_destroy(variant_style);
- css_stylesheet_style_destroy(weight_style);
- css_stylesheet_style_destroy(size_style);
- css_stylesheet_style_destroy(line_height_style);
- css_stylesheet_style_destroy(family_style);
+ css__stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(variant_style);
+ css__stylesheet_style_destroy(weight_style);
+ css__stylesheet_style_destroy(size_style);
+ css__stylesheet_style_destroy(line_height_style);
+ css__stylesheet_style_destroy(family_style);
if (error != CSS_OK)
*ctx = orig_ctx;
diff --git a/src/parse/properties/font_family.c b/src/parse/properties/font_family.c
index 4d0a3b1..60c069d 100644
--- a/src/parse/properties/font_family.c
+++ b/src/parse/properties/font_family.c
@@ -139,7 +139,7 @@ css_error css__parse_font_family(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, FONT_FAMILY_END);
+ error = css__stylesheet_style_append(result, FONT_FAMILY_END);
}
if (error != CSS_OK) {
diff --git a/src/parse/properties/font_weight.c b/src/parse/properties/font_weight.c
index 9c4048b..4853106 100644
--- a/src/parse/properties/font_weight.c
+++ b/src/parse/properties/font_weight.c
@@ -94,7 +94,7 @@ css_error css__parse_font_weight(css_language *c,
return CSS_INVALID;
}
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_FONT_WEIGHT,
flags,
value);
diff --git a/src/parse/properties/list_style.c b/src/parse/properties/list_style.c
index 7ac0831..4ef4ce8 100644
--- a/src/parse/properties/list_style.c
+++ b/src/parse/properties/list_style.c
@@ -65,20 +65,20 @@ css_error css__parse_list_style(css_language *c,
}
/* allocate styles */
- error = css_stylesheet_style_create(c->sheet, &image_style);
+ error = css__stylesheet_style_create(c->sheet, &image_style);
if (error != CSS_OK)
return error;
- error = css_stylesheet_style_create(c->sheet, &position_style);
+ error = css__stylesheet_style_create(c->sheet, &position_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(image_style);
+ css__stylesheet_style_destroy(image_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &type_style);
+ error = css__stylesheet_style_create(c->sheet, &type_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(image_style);
- css_stylesheet_style_destroy(position_style);
+ css__stylesheet_style_destroy(image_style);
+ css__stylesheet_style_destroy(position_style);
return error;
}
@@ -121,40 +121,40 @@ css_error css__parse_list_style(css_language *c,
/* defaults */
if (image) {
- error = css_stylesheet_style_appendOPV(image_style,
+ error = css__stylesheet_style_appendOPV(image_style,
CSS_PROP_LIST_STYLE_IMAGE,
0, LIST_STYLE_IMAGE_NONE);
}
if (position) {
- error = css_stylesheet_style_appendOPV(position_style,
+ error = css__stylesheet_style_appendOPV(position_style,
CSS_PROP_LIST_STYLE_POSITION,
0, LIST_STYLE_POSITION_OUTSIDE);
}
if (type) {
- error = css_stylesheet_style_appendOPV(type_style,
+ error = css__stylesheet_style_appendOPV(type_style,
CSS_PROP_LIST_STYLE_TYPE,
0, LIST_STYLE_TYPE_DISC);
}
- error = css_stylesheet_merge_style(result, image_style);
+ error = css__stylesheet_merge_style(result, image_style);
if (error != CSS_OK)
goto css__parse_list_style_cleanup;
- error = css_stylesheet_merge_style(result, position_style);
+ error = css__stylesheet_merge_style(result, position_style);
if (error != CSS_OK)
goto css__parse_list_style_cleanup;
- error = css_stylesheet_merge_style(result, type_style);
+ error = css__stylesheet_merge_style(result, type_style);
css__parse_list_style_cleanup:
- css_stylesheet_style_destroy(type_style);
- css_stylesheet_style_destroy(position_style);
- css_stylesheet_style_destroy(image_style);
+ css__stylesheet_style_destroy(type_style);
+ css__stylesheet_style_destroy(position_style);
+ css__stylesheet_style_destroy(image_style);
if (error != CSS_OK)
*ctx = orig_ctx;
diff --git a/src/parse/properties/list_style_type.c b/src/parse/properties/list_style_type.c
index 12fb465..b73bcb7 100644
--- a/src/parse/properties/list_style_type.c
+++ b/src/parse/properties/list_style_type.c
@@ -61,7 +61,7 @@ css_error css__parse_list_style_type(css_language *c,
}
}
- error = css_stylesheet_style_appendOPV(result, CSS_PROP_LIST_STYLE_TYPE, flags, value);
+ error = css__stylesheet_style_appendOPV(result, CSS_PROP_LIST_STYLE_TYPE, flags, value);
if (error != CSS_OK)
*ctx = orig_ctx;
diff --git a/src/parse/properties/margin.c b/src/parse/properties/margin.c
index 04b8795..896e300 100644
--- a/src/parse/properties/margin.c
+++ b/src/parse/properties/margin.c
@@ -107,14 +107,14 @@ css_error css__parse_margin(css_language *c,
#define SIDE_APPEND(OP,NUM) \
- error = css_stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
+ error = css__stylesheet_style_appendOPV(result, (OP), 0, side_val[(NUM)]); \
if (error != CSS_OK) \
break; \
if (side_val[(NUM)] == MARGIN_SET) { \
- error = css_stylesheet_style_append(result, side_length[(NUM)]); \
+ error = css__stylesheet_style_append(result, side_length[(NUM)]); \
if (error != CSS_OK) \
break; \
- error = css_stylesheet_style_append(result, side_unit[(NUM)]); \
+ error = css__stylesheet_style_append(result, side_unit[(NUM)]); \
if (error != CSS_OK) \
break; \
}
diff --git a/src/parse/properties/outline.c b/src/parse/properties/outline.c
index 7cd74cd..eb4f525 100644
--- a/src/parse/properties/outline.c
+++ b/src/parse/properties/outline.c
@@ -65,20 +65,20 @@ css_error css__parse_outline(css_language *c,
}
/* allocate styles */
- error = css_stylesheet_style_create(c->sheet, &color_style);
+ error = css__stylesheet_style_create(c->sheet, &color_style);
if (error != CSS_OK)
return error;
- error = css_stylesheet_style_create(c->sheet, &style_style);
+ error = css__stylesheet_style_create(c->sheet, &style_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(color_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &width_style);
+ error = css__stylesheet_style_create(c->sheet, &width_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(color_style);
- css_stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(style_style);
return error;
}
@@ -121,40 +121,40 @@ css_error css__parse_outline(css_language *c,
/* defaults */
if (color) {
- error = css_stylesheet_style_appendOPV(color_style,
+ error = css__stylesheet_style_appendOPV(color_style,
CSS_PROP_OUTLINE_COLOR,
0, OUTLINE_COLOR_INVERT);
}
if (style) {
- error = css_stylesheet_style_appendOPV(style_style,
+ error = css__stylesheet_style_appendOPV(style_style,
CSS_PROP_OUTLINE_STYLE,
0, OUTLINE_STYLE_NONE);
}
if (width) {
- error = css_stylesheet_style_appendOPV(width_style,
+ error = css__stylesheet_style_appendOPV(width_style,
CSS_PROP_OUTLINE_WIDTH,
0, OUTLINE_WIDTH_MEDIUM);
}
- error = css_stylesheet_merge_style(result, color_style);
+ error = css__stylesheet_merge_style(result, color_style);
if (error != CSS_OK)
goto css__parse_outline_cleanup;
- error = css_stylesheet_merge_style(result, style_style);
+ error = css__stylesheet_merge_style(result, style_style);
if (error != CSS_OK)
goto css__parse_outline_cleanup;
- error = css_stylesheet_merge_style(result, width_style);
+ error = css__stylesheet_merge_style(result, width_style);
css__parse_outline_cleanup:
- css_stylesheet_style_destroy(width_style);
- css_stylesheet_style_destroy(style_style);
- css_stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(width_style);
+ css__stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(color_style);
if (error != CSS_OK)
*ctx = orig_ctx;
diff --git a/src/parse/properties/padding.c b/src/parse/properties/padding.c
index 5211e9d..7a5b88b 100644
--- a/src/parse/properties/padding.c
+++ b/src/parse/properties/padding.c
@@ -99,13 +99,13 @@ css_error css__parse_padding(css_language *c,
} while ((*ctx != prev_ctx) && (token != NULL) && (side_count < 4));
#define SIDE_APPEND(OP,NUM) \
- error = css_stylesheet_style_appendOPV(result, (OP), 0, PADDING_SET); \
+ error = css__stylesheet_style_appendOPV(result, (OP), 0, PADDING_SET); \
if (error != CSS_OK) \
break; \
- error = css_stylesheet_style_append(result, side_length[(NUM)]); \
+ error = css__stylesheet_style_append(result, side_length[(NUM)]); \
if (error != CSS_OK) \
break; \
- error = css_stylesheet_style_append(result, side_unit[(NUM)]); \
+ error = css__stylesheet_style_append(result, side_unit[(NUM)]); \
if (error != CSS_OK) \
break;
diff --git a/src/parse/properties/play_during.c b/src/parse/properties/play_during.c
index 8d83a92..1e5ad63 100644
--- a/src/parse/properties/play_during.c
+++ b/src/parse/properties/play_during.c
@@ -79,7 +79,7 @@ css_error css__parse_play_during(css_language *c,
return error;
}
- error = css_stylesheet_string_add(c->sheet,
+ error = css__stylesheet_string_add(c->sheet,
uri,
&uri_snumber);
if (error != CSS_OK) {
@@ -124,7 +124,7 @@ css_error css__parse_play_during(css_language *c,
}
}
- error = css_stylesheet_style_appendOPV(result, CSS_PROP_PLAY_DURING, flags, value);
+ error = css__stylesheet_style_appendOPV(result, CSS_PROP_PLAY_DURING, flags, value);
if (error != CSS_OK) {
*ctx = orig_ctx;
return error;
@@ -132,7 +132,7 @@ css_error css__parse_play_during(css_language *c,
if ((flags & FLAG_INHERIT) == false &&
(value & PLAY_DURING_TYPE_MASK) == PLAY_DURING_URI) {
- error = css_stylesheet_style_append(result, uri_snumber);
+ error = css__stylesheet_style_append(result, uri_snumber);
}
if (error != CSS_OK)
diff --git a/src/parse/properties/quotes.c b/src/parse/properties/quotes.c
index 6d235ab..07d8998 100644
--- a/src/parse/properties/quotes.c
+++ b/src/parse/properties/quotes.c
@@ -54,7 +54,7 @@ css_error css__parse_quotes(css_language *c,
(lwc_string_caseless_isequal(token->idata,
c->strings[NONE],
&match) == lwc_error_ok && match)) {
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_QUOTES, 0, QUOTES_NONE);
} else if (token->type == CSS_TOKEN_STRING) {
bool first = true;
@@ -62,14 +62,14 @@ css_error css__parse_quotes(css_language *c,
/* Macro to output the value marker, awkward because we need to check
* first to determine how the value is constructed.
*/
-#define CSS_FIRST_APPEND(CSSVAL) css_stylesheet_style_append(result, first?buildOPV(CSS_PROP_QUOTES, 0, CSSVAL):CSSVAL)
+#define CSS_FIRST_APPEND(CSSVAL) css__stylesheet_style_append(result, first?buildOPV(CSS_PROP_QUOTES, 0, CSSVAL):CSSVAL)
/* [ STRING STRING ]+ */
while ((token != NULL) && (token->type == CSS_TOKEN_STRING)) {
uint32_t open_snumber;
uint32_t close_snumber;
- error = css_stylesheet_string_add(c->sheet,
+ error = css__stylesheet_string_add(c->sheet,
lwc_string_ref(token->idata),
&open_snumber);
if (error != CSS_OK)
@@ -84,7 +84,7 @@ css_error css__parse_quotes(css_language *c,
break;
}
- error = css_stylesheet_string_add(c->sheet,
+ error = css__stylesheet_string_add(c->sheet,
lwc_string_ref(token->idata),
&close_snumber);
if (error != CSS_OK)
@@ -96,11 +96,11 @@ css_error css__parse_quotes(css_language *c,
if (error != CSS_OK)
break;
- error = css_stylesheet_style_append(result, open_snumber);
+ error = css__stylesheet_style_append(result, open_snumber);
if (error != CSS_OK)
break;
- error = css_stylesheet_style_append(result, close_snumber);
+ error = css__stylesheet_style_append(result, close_snumber);
if (error != CSS_OK)
break;
@@ -114,7 +114,7 @@ css_error css__parse_quotes(css_language *c,
if (error == CSS_OK) {
/* AddTerminator */
- error = css_stylesheet_style_append(result, QUOTES_NONE);
+ error = css__stylesheet_style_append(result, QUOTES_NONE);
}
} else {
error = CSS_INVALID;
diff --git a/src/parse/properties/text_decoration.c b/src/parse/properties/text_decoration.c
index 2d893f4..9bfdec2 100644
--- a/src/parse/properties/text_decoration.c
+++ b/src/parse/properties/text_decoration.c
@@ -51,7 +51,7 @@ css_error css__parse_text_decoration(css_language *c,
} else if (lwc_string_caseless_isequal(token->idata,
c->strings[NONE],
&match) == lwc_error_ok && match) {
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_TEXT_DECORATION, 0, TEXT_DECORATION_NONE);
} else {
uint16_t value = 0;
@@ -104,7 +104,7 @@ css_error css__parse_text_decoration(css_language *c,
break;
token = parserutils_vector_iterate(vector, ctx);
}
- error = css_stylesheet_style_appendOPV(result,
+ error = css__stylesheet_style_appendOPV(result,
CSS_PROP_TEXT_DECORATION, 0, value);
}
diff --git a/src/parse/properties/utils.c b/src/parse/properties/utils.c
index 35882ee..85c0e2d 100644
--- a/src/parse/properties/utils.c
+++ b/src/parse/properties/utils.c
@@ -155,20 +155,20 @@ css_error css__parse_border_side(css_language *c,
}
/* allocate styles */
- error = css_stylesheet_style_create(c->sheet, &color_style);
+ error = css__stylesheet_style_create(c->sheet, &color_style);
if (error != CSS_OK)
return error;
- error = css_stylesheet_style_create(c->sheet, &style_style);
+ error = css__stylesheet_style_create(c->sheet, &style_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(color_style);
return error;
}
- error = css_stylesheet_style_create(c->sheet, &width_style);
+ error = css__stylesheet_style_create(c->sheet, &width_style);
if (error != CSS_OK) {
- css_stylesheet_style_destroy(color_style);
- css_stylesheet_style_destroy(width_style);
+ css__stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(width_style);
return error;
}
@@ -212,7 +212,7 @@ css_error css__parse_border_side(css_language *c,
} while (*ctx != prev_ctx && token != NULL);
if (style) {
- error = css_stylesheet_style_appendOPV(style_style,
+ error = css__stylesheet_style_appendOPV(style_style,
CSS_PROP_BORDER_TOP_STYLE + side, 0,
BORDER_STYLE_NONE);
if (error != CSS_OK)
@@ -220,27 +220,27 @@ css_error css__parse_border_side(css_language *c,
}
if (width) {
- error = css_stylesheet_style_appendOPV(width_style,
+ error = css__stylesheet_style_appendOPV(width_style,
CSS_PROP_BORDER_TOP_WIDTH + side,
0, BORDER_WIDTH_MEDIUM);
if (error != CSS_OK)
goto css__parse_border_side_cleanup;
}
- error = css_stylesheet_merge_style(result, color_style);
+ error = css__stylesheet_merge_style(result, color_style);
if (error != CSS_OK)
goto css__parse_border_side_cleanup;
- error = css_stylesheet_merge_style(result, style_style);
+ error = css__stylesheet_merge_style(result, style_style);
if (error != CSS_OK)
goto css__parse_border_side_cleanup;
- error = css_stylesheet_merge_style(result, width_style);
+ error = css__stylesheet_merge_style(result, width_style);
css__parse_border_side_cleanup:
- css_stylesheet_style_destroy(color_style);
- css_stylesheet_style_destroy(style_style);
- css_stylesheet_style_destroy(width_style);
+ css__stylesheet_style_destroy(color_style);
+ css__stylesheet_style_destroy(style_style);
+ css__stylesheet_style_destroy(width_style);
if (error != CSS_OK)
*ctx = orig_ctx;
@@ -1172,22 +1172,22 @@ css_error css__comma_list_to_style(css_language *c,
if (error != CSS_OK)
goto cleanup;
- error = css_stylesheet_string_add(c->sheet,
+ error = css__stylesheet_string_add(c->sheet,
str, &snumber);
if (error != CSS_OK)
goto cleanup;
- error = css_stylesheet_style_append(result,
+ error = css__stylesheet_style_append(result,
value);
if (error != CSS_OK)
goto cleanup;
- error = css_stylesheet_style_append(result,
+ error = css__stylesheet_style_append(result,
snumber);
if (error != CSS_OK)
goto cleanup;
} else {
- error = css_stylesheet_style_append(result,
+ error = css__stylesheet_style_append(result,
value);
if (error != CSS_OK)
goto cleanup;
@@ -1196,16 +1196,16 @@ css_error css__comma_list_to_style(css_language *c,
css_code_t value = get_value(c, token, first);
uint32_t snumber;
- error = css_stylesheet_string_add(c->sheet,
+ error = css__stylesheet_string_add(c->sheet,
lwc_string_ref(token->idata), &snumber);
if (error != CSS_OK)
goto cleanup;
- error = css_stylesheet_style_append(result, value);
+ error = css__stylesheet_style_append(result, value);
if (error != CSS_OK)
goto cleanup;
- error = css_stylesheet_style_append(result, snumber);
+ error = css__stylesheet_style_append(result, snumber);
if (error != CSS_OK)
goto cleanup;
} else {
diff --git a/src/parse/properties/voice_family.c b/src/parse/properties/voice_family.c
index 9ef52be..8a969a6 100644
--- a/src/parse/properties/voice_family.c
+++ b/src/parse/properties/voice_family.c
@@ -121,7 +121,7 @@ css_error css__parse_voice_family(css_language *c,
return error;
}
- error = css_stylesheet_style_append(result, VOICE_FAMILY_END);
+ error = css__stylesheet_style_append(result, VOICE_FAMILY_END);
}
if (error != CSS_OK) {