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
8
9
12 const lxb_char_t *pos,
14{
15 if (parse_errors == NULL) {
16 return NULL;
17 }
18
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}
void * lexbor_array_obj_push(lexbor_array_obj_t *array)
Definition array_obj.c:93
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
lxb_css_syntax_tokenizer_error_id_t
Definition error.h:18
#define NULL
Definition gdcache.h:45
unsigned const char * pos
Definition php_ffi.h:52
lxb_css_syntax_tokenizer_error_id_t id
Definition error.h:42
const lxb_char_t * pos
Definition error.h:41
unsigned char lxb_char_t
Definition types.h:27