php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
error.c
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
#include "
lexbor/html/tokenizer/error.h
"
8
9
10
lxb_html_tokenizer_error_t
*
11
lxb_html_tokenizer_error_add
(
lexbor_array_obj_t
*parse_errors,
12
const
lxb_char_t
*
pos
,
13
lxb_html_tokenizer_error_id_t
id
)
14
{
15
if
(parse_errors ==
NULL
) {
16
return
NULL
;
17
}
18
19
lxb_html_tokenizer_error_t
*entry =
lexbor_array_obj_push
(parse_errors);
20
if
(entry ==
NULL
) {
21
return
NULL
;
22
}
23
24
entry->
id
= id;
25
entry->
pos
=
pos
;
26
27
return
entry;
28
}
lexbor_array_obj_push
void * lexbor_array_obj_push(lexbor_array_obj_t *array)
Definition
array_obj.c:93
NULL
#define NULL
Definition
gdcache.h:45
lxb_html_tokenizer_error_add
lxb_html_tokenizer_error_t * lxb_html_tokenizer_error_add(lexbor_array_obj_t *parse_errors, const lxb_char_t *pos, lxb_html_tokenizer_error_id_t id)
Definition
error.c:11
error.h
lxb_html_tokenizer_error_id_t
lxb_html_tokenizer_error_id_t
Definition
error.h:20
pos
unsigned const char * pos
Definition
php_ffi.h:52
lexbor_array_obj_t
Definition
array_obj.h:17
lxb_html_tokenizer_error_t
Definition
error.h:123
lxb_html_tokenizer_error_t::pos
const lxb_char_t * pos
Definition
error.h:124
lxb_html_tokenizer_error_t::id
lxb_html_tokenizer_error_id_t id
Definition
error.h:125
lxb_char_t
unsigned char lxb_char_t
Definition
types.h:27
ext
dom
lexbor
lexbor
html
tokenizer
error.c
Generated on Sat Aug 23 2025 01:46:06 for php-internal-docs by
1.13.2