php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
state.c File Reference

Go to the source code of this file.

Macros

#define lxb_css_selectors_state_string_dup_m(selectors, name)
 
#define lxb_css_selectors_state_append(parser, selectors, selector)
 
#define lxb_css_selectors_state_list_append(parser, selectors, list)
 

Functions

lxb_inline bool lxb_css_selectors_done (lxb_css_parser_t *parser)
 
lxb_inline void lxb_css_selectors_state_specificity_set_b (lxb_css_selectors_t *selectors)
 
lxb_inline void lxb_css_selectors_state_specificity_set_c (lxb_css_selectors_t *selectors)
 
lxb_inline void lxb_css_selectors_state_func_specificity (lxb_css_selectors_t *selectors)
 
bool lxb_css_selectors_state_complex_list (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
bool lxb_css_selectors_state_relative_list (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
bool lxb_css_selectors_state_relative (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
bool lxb_css_selectors_state_complex (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
bool lxb_css_selectors_state_compound_list (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
bool lxb_css_selectors_state_compound (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
bool lxb_css_selectors_state_simple_list (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
bool lxb_css_selectors_state_simple (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
lxb_inline void lxb_css_selectors_state_restore_combinator (lxb_css_selectors_t *selectors)
 
lxb_status_t lxb_css_selectors_state_function_end (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx, bool failed)
 
lxb_status_t lxb_css_selectors_state_function_forgiving (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx, bool failed)
 
lxb_status_t lxb_css_selectors_state_function_forgiving_relative (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx, bool failed)
 

Macro Definition Documentation

◆ lxb_css_selectors_state_append

#define lxb_css_selectors_state_append ( parser,
selectors,
selector )
Value:
do { \
(selector) = lxb_css_selector_create((selectors)->list_last); \
if ((selector) == NULL) { \
return lxb_css_parser_memory_fail(parser); \
} \
\
lxb_css_selectors_append_next((selectors), (selector)); \
\
(selector)->combinator = (selectors)->combinator; \
(selectors)->combinator = LXB_CSS_SELECTOR_COMBINATOR_CLOSE; \
} \
while (false)
bool lxb_css_parser_memory_fail(lxb_css_parser_t *parser)
Definition parser.c:335
#define NULL
Definition gdcache.h:45
lxb_css_selector_t * lxb_css_selector_create(lxb_css_selector_list_t *list)
Definition selector.c:111
@ LXB_CSS_SELECTOR_COMBINATOR_CLOSE
Definition selector.h:36

Definition at line 28 of file state.c.

◆ lxb_css_selectors_state_list_append

#define lxb_css_selectors_state_list_append ( parser,
selectors,
list )
Value:
do { \
(list) = lxb_css_selector_list_create((parser)->memory); \
if ((list) == NULL) { \
return lxb_css_parser_memory_fail(parser); \
} \
\
lxb_css_selectors_list_append_next((selectors), (list)); \
\
(list)->parent = selectors->parent; \
} \
while (false)
lxb_css_selector_list_t * lxb_css_selector_list_create(lxb_css_memory_t *mem)
Definition selector.c:169

Definition at line 42 of file state.c.

◆ lxb_css_selectors_state_string_dup_m

#define lxb_css_selectors_state_string_dup_m ( selectors,
name )
Value:
do { \
(parser)->memory->mraw); \
if ((status) != LXB_STATUS_OK) { \
return (status); \
} \
} \
while (false)
@ LXB_STATUS_OK
Definition base.h:49
lxb_status_t lxb_css_syntax_token_string_dup(lxb_css_syntax_token_string_t *token, lexbor_str_t *str, lexbor_mraw_t *mraw)
Definition token.c:96
#define lxb_css_syntax_token_string(token)
Definition token.h:25
DNS_STATUS status
Definition dns_win32.c:49
zend_string * name

Definition at line 17 of file state.c.

Function Documentation

◆ lxb_css_selectors_done()

lxb_inline bool lxb_css_selectors_done ( lxb_css_parser_t * parser)

Definition at line 211 of file state.c.

◆ lxb_css_selectors_state_complex()

bool lxb_css_selectors_state_complex ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 453 of file state.c.

◆ lxb_css_selectors_state_complex_list()

bool lxb_css_selectors_state_complex_list ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 283 of file state.c.

◆ lxb_css_selectors_state_compound()

bool lxb_css_selectors_state_compound ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 616 of file state.c.

◆ lxb_css_selectors_state_compound_list()

bool lxb_css_selectors_state_compound_list ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 585 of file state.c.

◆ lxb_css_selectors_state_func_specificity()

lxb_inline void lxb_css_selectors_state_func_specificity ( lxb_css_selectors_t * selectors)

Definition at line 265 of file state.c.

◆ lxb_css_selectors_state_function_end()

lxb_status_t lxb_css_selectors_state_function_end ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx,
bool failed )

Definition at line 1705 of file state.c.

◆ lxb_css_selectors_state_function_forgiving()

lxb_status_t lxb_css_selectors_state_function_forgiving ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx,
bool failed )

Definition at line 1754 of file state.c.

◆ lxb_css_selectors_state_function_forgiving_relative()

lxb_status_t lxb_css_selectors_state_function_forgiving_relative ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx,
bool failed )

Definition at line 1764 of file state.c.

◆ lxb_css_selectors_state_relative()

bool lxb_css_selectors_state_relative ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 343 of file state.c.

◆ lxb_css_selectors_state_relative_list()

bool lxb_css_selectors_state_relative_list ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 313 of file state.c.

◆ lxb_css_selectors_state_restore_combinator()

lxb_inline void lxb_css_selectors_state_restore_combinator ( lxb_css_selectors_t * selectors)

Definition at line 1679 of file state.c.

◆ lxb_css_selectors_state_simple()

bool lxb_css_selectors_state_simple ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 927 of file state.c.

◆ lxb_css_selectors_state_simple_list()

bool lxb_css_selectors_state_simple_list ( lxb_css_parser_t * parser,
const lxb_css_syntax_token_t * token,
void * ctx )

Definition at line 898 of file state.c.

◆ lxb_css_selectors_state_specificity_set_b()

lxb_inline void lxb_css_selectors_state_specificity_set_b ( lxb_css_selectors_t * selectors)

Definition at line 219 of file state.c.

◆ lxb_css_selectors_state_specificity_set_c()

lxb_inline void lxb_css_selectors_state_specificity_set_c ( lxb_css_selectors_t * selectors)

Definition at line 242 of file state.c.