mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[css] cast
This commit is contained in:
parent
723bc935d2
commit
dea07293e7
@ -600,7 +600,7 @@ css_parse_ruleset(struct css_stylesheet *css, struct scanner *scanner)
|
|||||||
* waste that having the property multiple times in a selector, I
|
* waste that having the property multiple times in a selector, I
|
||||||
* believe. --pasky */
|
* believe. --pasky */
|
||||||
|
|
||||||
pkg = selectors.next;
|
pkg = (struct selector_pkg *)selectors.next;
|
||||||
css_parse_properties(&properties, scanner);
|
css_parse_properties(&properties, scanner);
|
||||||
|
|
||||||
skip_css_tokens(scanner, '}');
|
skip_css_tokens(scanner, '}');
|
||||||
|
@ -113,7 +113,7 @@ struct scanner_info css_scanner_info = {
|
|||||||
&& check_css_precedence(*(s), skipto)) { \
|
&& check_css_precedence(*(s), skipto)) { \
|
||||||
if (isquote(*(s))) { \
|
if (isquote(*(s))) { \
|
||||||
int size = (scanner)->end - (s); \
|
int size = (scanner)->end - (s); \
|
||||||
char *end = memchr(s + 1, *(s), size); \
|
char *end = (char *)memchr(s + 1, *(s), size); \
|
||||||
\
|
\
|
||||||
if (end) (s) = end; \
|
if (end) (s) = end; \
|
||||||
} \
|
} \
|
||||||
@ -302,7 +302,7 @@ scan_css_token(struct scanner *scanner, struct scanner_token *token)
|
|||||||
} else if (isquote(first_char)) {
|
} else if (isquote(first_char)) {
|
||||||
/* TODO: Escaped delimiters --jonas */
|
/* TODO: Escaped delimiters --jonas */
|
||||||
int size = scanner->end - string;
|
int size = scanner->end - string;
|
||||||
char *string_end = memchr(string, first_char, size);
|
char *string_end = (char *)memchr(string, first_char, size);
|
||||||
|
|
||||||
if (string_end) {
|
if (string_end) {
|
||||||
/* We don't want the delimiters in the token */
|
/* We don't want the delimiters in the token */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user