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-2019 Alexander Borisov
3
*
4
* Author: Alexander Borisov <borisov@lexbor.com>
5
*/
6
7
#include "
lexbor/css/syntax/tokenizer/error.h
"
8
9
10
lxb_css_syntax_tokenizer_error_t
*
11
lxb_css_syntax_tokenizer_error_add
(
lexbor_array_obj_t
*parse_errors,
12
const
lxb_char_t
*
pos
,
13
lxb_css_syntax_tokenizer_error_id_t
id
)
14
{
15
if
(parse_errors ==
NULL
) {
16
return
NULL
;
17
}
18
19
lxb_css_syntax_tokenizer_error_t
*entry;
20
21
entry =
lexbor_array_obj_push
(parse_errors);
22
if
(entry ==
NULL
) {
23
return
NULL
;
24
}
25
26
entry->
id
= id;
27
entry->
pos
=
pos
;
28
29
return
entry;
30
}
lexbor_array_obj_push
void * lexbor_array_obj_push(lexbor_array_obj_t *array)
Definition
array_obj.c:93
lxb_css_syntax_tokenizer_error_add
lxb_css_syntax_tokenizer_error_t * lxb_css_syntax_tokenizer_error_add(lexbor_array_obj_t *parse_errors, const lxb_char_t *pos, lxb_css_syntax_tokenizer_error_id_t id)
Definition
error.c:11
error.h
lxb_css_syntax_tokenizer_error_id_t
lxb_css_syntax_tokenizer_error_id_t
Definition
error.h:18
NULL
#define NULL
Definition
gdcache.h:45
pos
unsigned const char * pos
Definition
php_ffi.h:52
lexbor_array_obj_t
Definition
array_obj.h:17
lxb_css_syntax_tokenizer_error_t
Definition
error.h:40
lxb_css_syntax_tokenizer_error_t::id
lxb_css_syntax_tokenizer_error_id_t id
Definition
error.h:42
lxb_css_syntax_tokenizer_error_t::pos
const lxb_char_t * pos
Definition
error.h:41
lxb_char_t
unsigned char lxb_char_t
Definition
types.h:27
ext
dom
lexbor
lexbor
css
syntax
tokenizer
error.c
Generated on Sat Aug 23 2025 01:46:06 for php-internal-docs by
1.13.2