summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b4d15a0)
raw | patch | inline | side by side (parent: b4d15a0)
author | ishmal <ishmal@users.sourceforge.net> | |
Wed, 15 Nov 2006 13:44:09 +0000 (13:44 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Wed, 15 Nov 2006 13:44:09 +0000 (13:44 +0000) |
index 456ac51fa3b848d9284ec4913054e5f8fdee17f1..973a5f373435e2bc020ae5587748d25d9c785226 100644 (file)
{"UCS-4", CR_UCS_4},
{"UCS_4", CR_UCS_4},
{"ASCII", CR_ASCII},
- {(char *)0, (CREncoding)0}
+ {(char *)0, (enum CREncoding)0}
};
static CREncHandler gv_default_enc_handlers[] = {
{CR_ASCII, cr_utils_ucs1_to_utf8, cr_utils_utf8_to_ucs1,
cr_utils_ucs1_str_len_as_utf8, cr_utils_utf8_str_len_as_ucs1},
- {(CREncoding)0, NULL, NULL, NULL, NULL}
+ {(enum CREncoding)0, NULL, NULL, NULL, NULL}
};
/**
index 63d8412f256286fec2cf313812ba3c8eef56b86b..14438c344264e626594b65360ab7027e0b76fd2a 100644 (file)
--- a/src/libcroco/cr-fonts.c
+++ b/src/libcroco/cr-fonts.c
cr_utils_trace_info ("FONT_WEIGHT_BOLDER or FONT_WEIGHT_LIGHTER should not appear here") ;
return FONT_WEIGHT_NORMAL ;
} else {
- return (CRFontWeight)(a_weight << 1) ;
+ return (enum CRFontWeight)(a_weight << 1) ;
}
}
index 2b411a8d48283ca0e067df2e19781290c9ab41b7..5b0a56f32eb4b5fae0aa4aa9780336a267e9965f 100644 (file)
--- a/src/libcroco/cr-parser.c
+++ b/src/libcroco/cr-parser.c
if (token && token->type == DELIM_TK
&& token->u.unichar == '*') {
int comb = (int)sel->type_mask | (int) UNIVERSAL_SELECTOR;
- sel->type_mask = (SimpleSelectorType)comb;
+ sel->type_mask = (enum SimpleSelectorType)comb;
//sel->type_mask |= UNIVERSAL_SELECTOR;
sel->name = cr_string_new_from_string ("*");
found_sel = TRUE;
} else if (token && token->type == IDENT_TK) {
sel->name = token->u.str;
int comb = (int)sel->type_mask | (int) TYPE_SELECTOR;
- sel->type_mask = (SimpleSelectorType)comb;
+ sel->type_mask = (enum SimpleSelectorType)comb;
//sel->type_mask |= TYPE_SELECTOR;
token->u.str = NULL;
found_sel = TRUE;
break;
if (comb && sel) {
- sel->combinator = (Combinator)comb;
+ sel->combinator = (enum Combinator)comb;
comb = 0;
}
if (sel) {
index 49e8a3ce967c7144ba6a36a152690aac3447338c..38a75a6e6244ff3a42cd03ebd82a846997b8c5ab 100644 (file)
g_return_val_if_fail (a_this, NULL) ;
if (!a_mask) {
- a_mask = (CRParsingLocationSerialisationMask)
+ a_mask = (enum CRParsingLocationSerialisationMask)
((int)DUMP_LINE | (int)DUMP_COLUMN | (int)DUMP_BYTE_OFFSET) ;
}
GString *result = (GString *)g_string_new (NULL) ;
index 82b2a2494658bee0af78ef1de7aa975818d996fc..e0abba83a42463db0e08a839169b63181785d7b4 100644 (file)
--- a/src/libcroco/cr-style.c
+++ b/src/libcroco/cr-style.c
{"font-weight", PROP_ID_FONT_WEIGHT},
{"white-space", PROP_ID_WHITE_SPACE},
/*must be the last one */
- {NULL, (CRPropertyID)0}
+ {NULL, (enum CRPropertyID)0}
};
/**
{NUM_PROP_MARGIN_BOTTOM, "margin-bottom"},
{NUM_PROP_MARGIN_LEFT, "margin-left"},
{NUM_PROP_WIDTH, "width"},
- {(CRNumProp)0, NULL}
+ {(enum CRNumProp)0, NULL}
};
struct CRRgbPropEnumDumpInfo {
{RGB_PROP_BORDER_LEFT_COLOR, "left-color"},
{RGB_PROP_COLOR, "color"},
{RGB_PROP_BACKGROUND_COLOR, "background-color"},
- {(CRRgbProp)0, NULL}
+ {(enum CRRgbProp)0, NULL}
};
struct CRBorderStylePropEnumDumpInfo {
{BORDER_STYLE_PROP_RIGHT, "border-style-right"},
{BORDER_STYLE_PROP_BOTTOM, "boder-style-bottom"},
{BORDER_STYLE_PROP_LEFT, "border-style-left"},
- {(CRBorderStyleProp)0, NULL}
+ {(enum CRBorderStyleProp)0, NULL}
};
static enum CRStatus
if (!raw_id) {
return PROP_ID_NOT_KNOWN;
}
- return (CRPropertyID)GPOINTER_TO_INT (raw_id);
+ return (enum CRPropertyID)GPOINTER_TO_INT (raw_id);
}
static enum CRStatus
if (!cur_term)
return CR_ERROR ;
- for (int dir = (int) DIR_TOP ;
- dir < (int)NB_DIRS ; dir++) {
- CRDirection direction = (CRDirection)dir;
+ int dir;
+ for (dir = (int) DIR_TOP ; dir < (int)NB_DIRS ; dir++) {
+ enum CRDirection direction = (enum CRDirection)dir;
set_prop_border_x_width_from_value (a_style,
cur_term,
direction) ;
return CR_ERROR ;
}
- for (int dir = (int)DIR_TOP ; dir < (int)NB_DIRS ; dir++)
- {
- CRDirection direction = (CRDirection)dir;
+ int dir;
+ for (dir = (int)DIR_TOP ; dir < (int)NB_DIRS ; dir++) {
+ enum CRDirection direction = (enum CRDirection)dir;
set_prop_border_x_style_from_value (a_style,
cur_term,
direction) ;
{
g_return_val_if_fail (a_style && a_value, CR_BAD_PARAM_ERROR);
- for (int direction = 0; direction < NB_DIRS; direction++) {
+ int dir;
+ for (dir = 0; dir < (int)NB_DIRS; dir++) {
set_prop_border_x_from_value (a_style,
a_value,
- (CRDirection)direction);
+ (enum CRDirection)dir);
}
return CR_OK;
if (!cur_term)
return CR_ERROR ;
- for (int direction = 0; direction < (int)NB_DIRS; direction++) {
+ int dir;
+ for (dir = 0; dir < (int)NB_DIRS; dir++) {
set_prop_padding_x_from_value (a_style,
- cur_term, (CRDirection)direction);
+ cur_term, (enum CRDirection)dir);
}
cur_term = cur_term->next;
if (!cur_term)
return CR_OK;
- for (int direction = 0; direction < (int)NB_DIRS; direction++) {
+ int dir;
+ for (dir = 0; dir < (int)NB_DIRS; dir++) {
set_prop_margin_x_from_value(a_style,
- cur_term, (CRDirection)direction);
+ cur_term, (enum CRDirection)dir);
}
cur_term = cur_term->next;
*before outputing it value
*/
cr_utils_dump_n_chars2 (' ', str, indent);
- tmp_str = (gchar *) num_prop_code_to_string ((CRNumProp)i);
+ tmp_str = (gchar *) num_prop_code_to_string ((enum CRNumProp)i);
if (tmp_str) {
g_string_append_printf (str, "%s: ", tmp_str);
} else {
}
/*loop over the rgb_props and to_string() them all */
for (i = RGB_PROP_BORDER_TOP_COLOR; i < NB_RGB_PROPS; i++) {
- tmp_str = (gchar *) rgb_prop_code_to_string ((CRRgbProp)i);
+ tmp_str = (gchar *) rgb_prop_code_to_string ((enum CRRgbProp)i);
cr_utils_dump_n_chars2 (' ', str, indent);
if (tmp_str) {
g_string_append_printf (str, "%s: ", tmp_str);
/*loop over the border_style_props and to_string() them */
for (i = BORDER_STYLE_PROP_TOP; i < NB_BORDER_STYLE_PROPS; i++) {
tmp_str = (gchar *)
- border_style_prop_code_to_string ((CRBorderStyleProp)i);
+ border_style_prop_code_to_string ((enum CRBorderStyleProp)i);
cr_utils_dump_n_chars2 (' ', str, indent);
if (tmp_str) {
g_string_append_printf (str, "%s: ", tmp_str);