php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
template_insertion.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Alexander Borisov
3 *
4 * Author: Alexander Borisov <borisov@lexbor.com>
5 */
6
7#ifndef LEXBOR_HTML_TEMPLATE_INSERTION_H
8#define LEXBOR_HTML_TEMPLATE_INSERTION_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include "lexbor/core/array.h"
15
16#include "lexbor/html/tree.h"
17
18
23
24
25/*
26 * Inline functions
27 */
42
45{
47
50 if (tmp_ins == NULL) {
51 return NULL;
52 }
53
54 return tmp_ins->mode;
55}
56
62
79
82{
84
87 if (tmp_ins == NULL) {
88 return NULL;
89 }
90
91 return tmp_ins->mode;
92}
93
94
95#ifdef __cplusplus
96} /* extern "C" */
97#endif
98
99#endif /* LEXBOR_HTML_TEMPLATE_INSERTION_H */
100
void * lexbor_array_obj_pop(lexbor_array_obj_t *array)
Definition array_obj.c:147
void * lexbor_array_obj_push(lexbor_array_obj_t *array)
Definition array_obj.c:93
lxb_inline size_t lexbor_array_obj_length(lexbor_array_obj_t *array)
Definition array_obj.h:80
lxb_inline void * lexbor_array_obj_get(const lexbor_array_obj_t *array, size_t idx)
Definition array_obj.h:70
lxb_inline void * lexbor_array_obj_last(lexbor_array_obj_t *array)
Definition array_obj.h:98
@ LXB_STATUS_ERROR_MEMORY_ALLOCATION
Definition base.h:51
@ LXB_STATUS_OK
Definition base.h:49
char * mode
#define NULL
Definition gdcache.h:45
struct lxb_html_tree lxb_html_tree_t
Definition base.h:28
lxb_html_tree_insertion_mode_f mode
lexbor_array_obj_t * template_insertion_modes
Definition tree.h:49
lxb_inline lxb_status_t lxb_html_tree_template_insertion_push(lxb_html_tree_t *tree, lxb_html_tree_insertion_mode_f mode)
lxb_inline lxb_html_tree_insertion_mode_f lxb_html_tree_template_insertion_current(lxb_html_tree_t *tree)
lxb_inline lxb_html_tree_insertion_mode_f lxb_html_tree_template_insertion_first(lxb_html_tree_t *tree)
lxb_inline lxb_html_tree_insertion_mode_f lxb_html_tree_template_insertion_pop(lxb_html_tree_t *tree)
lxb_inline lxb_html_tree_insertion_mode_f lxb_html_tree_template_insertion_get(lxb_html_tree_t *tree, size_t idx)
bool(* lxb_html_tree_insertion_mode_f)(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition tree.h:26
unsigned int lxb_status_t
Definition types.h:28
#define lxb_inline
Definition types.h:21