php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
base.h File Reference
#include "lexbor/core/base.h"
#include "lexbor/core/mraw.h"
#include "lexbor/core/str.h"

Go to the source code of this file.

Data Structures

struct  lxb_css_memory
 
struct  lxb_css_entry_data_t
 
struct  lxb_css_data_t
 

Macros

#define LXB_CSS_VERSION_MAJOR   1
 
#define LXB_CSS_VERSION_MINOR   2
 
#define LXB_CSS_VERSION_PATCH   0
 
#define LXB_CSS_VERSION_STRING
 

Typedefs

typedef struct lxb_css_memory lxb_css_memory_t
 
typedef uint32_t lxb_css_type_t
 
typedef struct lxb_css_parser lxb_css_parser_t
 
typedef struct lxb_css_parser_state lxb_css_parser_state_t
 
typedef struct lxb_css_parser_error lxb_css_parser_error_t
 
typedef struct lxb_css_syntax_tokenizer lxb_css_syntax_tokenizer_t
 
typedef struct lxb_css_syntax_token lxb_css_syntax_token_t
 
typedef bool(* lxb_css_parser_state_f) (lxb_css_parser_t *parser, const lxb_css_syntax_token_t *token, void *ctx)
 
typedef void *(* lxb_css_style_create_f) (lxb_css_memory_t *memory)
 
typedef lxb_status_t(* lxb_css_style_serialize_f) (const void *style, lexbor_serialize_cb_f cb, void *ctx)
 
typedef void *(* lxb_css_style_destroy_f) (lxb_css_memory_t *memory, void *style, bool self_destroy)
 
typedef struct lxb_css_stylesheet lxb_css_stylesheet_t
 
typedef struct lxb_css_rule_list lxb_css_rule_list_t
 
typedef struct lxb_css_rule_style lxb_css_rule_style_t
 
typedef struct lxb_css_rule_bad_style lxb_css_rule_bad_style_t
 
typedef struct lxb_css_rule_declaration_list lxb_css_rule_declaration_list_t
 
typedef struct lxb_css_rule_declaration lxb_css_rule_declaration_t
 
typedef struct lxb_css_rule_at lxb_css_rule_at_t
 

Functions

LXB_API lxb_css_memory_tlxb_css_memory_create (void)
 
LXB_API lxb_status_t lxb_css_memory_init (lxb_css_memory_t *memory, size_t prepare_count)
 
LXB_API void lxb_css_memory_clean (lxb_css_memory_t *memory)
 
LXB_API lxb_css_memory_tlxb_css_memory_destroy (lxb_css_memory_t *memory, bool self_destroy)
 
LXB_API lxb_css_memory_tlxb_css_memory_ref_inc (lxb_css_memory_t *memory)
 
LXB_API void lxb_css_memory_ref_dec (lxb_css_memory_t *memory)
 
LXB_API lxb_css_memory_tlxb_css_memory_ref_dec_destroy (lxb_css_memory_t *memory)
 

Macro Definition Documentation

◆ LXB_CSS_VERSION_MAJOR

#define LXB_CSS_VERSION_MAJOR   1

Definition at line 20 of file base.h.

◆ LXB_CSS_VERSION_MINOR

#define LXB_CSS_VERSION_MINOR   2

Definition at line 21 of file base.h.

◆ LXB_CSS_VERSION_PATCH

#define LXB_CSS_VERSION_PATCH   0

Definition at line 22 of file base.h.

◆ LXB_CSS_VERSION_STRING

#define LXB_CSS_VERSION_STRING
Value:
LEXBOR_STRINGIZE(LXB_CSS_VERSION_MINOR) "." \
LEXBOR_STRINGIZE(LXB_CSS_VERSION_PATCH)
#define LXB_CSS_VERSION_MAJOR
Definition base.h:20
#define LXB_CSS_VERSION_MINOR
Definition base.h:21
#define LXB_CSS_VERSION_PATCH
Definition base.h:22
#define LEXBOR_STRINGIZE(x)
Definition def.h:11

Definition at line 24 of file base.h.

Typedef Documentation

◆ lxb_css_memory_t

◆ lxb_css_parser_error_t

Definition at line 43 of file base.h.

◆ lxb_css_parser_state_f

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

Definition at line 48 of file base.h.

◆ lxb_css_parser_state_t

Definition at line 42 of file base.h.

◆ lxb_css_parser_t

Definition at line 41 of file base.h.

◆ lxb_css_rule_at_t

Definition at line 71 of file base.h.

◆ lxb_css_rule_bad_style_t

Definition at line 68 of file base.h.

◆ lxb_css_rule_declaration_list_t

Definition at line 69 of file base.h.

◆ lxb_css_rule_declaration_t

Definition at line 70 of file base.h.

◆ lxb_css_rule_list_t

Definition at line 66 of file base.h.

◆ lxb_css_rule_style_t

Definition at line 67 of file base.h.

◆ lxb_css_style_create_f

typedef void *(* lxb_css_style_create_f) (lxb_css_memory_t *memory)

Definition at line 52 of file base.h.

◆ lxb_css_style_destroy_f

typedef void *(* lxb_css_style_destroy_f) (lxb_css_memory_t *memory, void *style, bool self_destroy)

Definition at line 59 of file base.h.

◆ lxb_css_style_serialize_f

typedef lxb_status_t(* lxb_css_style_serialize_f) (const void *style, lexbor_serialize_cb_f cb, void *ctx)

Definition at line 55 of file base.h.

◆ lxb_css_stylesheet_t

Definition at line 65 of file base.h.

◆ lxb_css_syntax_token_t

Definition at line 46 of file base.h.

◆ lxb_css_syntax_tokenizer_t

Definition at line 45 of file base.h.

◆ lxb_css_type_t

typedef uint32_t lxb_css_type_t

Definition at line 39 of file base.h.

Function Documentation

◆ lxb_css_memory_clean()

LXB_API void lxb_css_memory_clean ( lxb_css_memory_t * memory)

Definition at line 81 of file css.c.

◆ lxb_css_memory_create()

LXB_API lxb_css_memory_t * lxb_css_memory_create ( void )

Definition at line 22 of file css.c.

◆ lxb_css_memory_destroy()

LXB_API lxb_css_memory_t * lxb_css_memory_destroy ( lxb_css_memory_t * memory,
bool self_destroy )

Definition at line 97 of file css.c.

◆ lxb_css_memory_init()

LXB_API lxb_status_t lxb_css_memory_init ( lxb_css_memory_t * memory,
size_t prepare_count )

Definition at line 28 of file css.c.

◆ lxb_css_memory_ref_dec()

LXB_API void lxb_css_memory_ref_dec ( lxb_css_memory_t * memory)

Definition at line 135 of file css.c.

◆ lxb_css_memory_ref_dec_destroy()

LXB_API lxb_css_memory_t * lxb_css_memory_ref_dec_destroy ( lxb_css_memory_t * memory)

Definition at line 143 of file css.c.

◆ lxb_css_memory_ref_inc()

LXB_API lxb_css_memory_t * lxb_css_memory_ref_inc ( lxb_css_memory_t * memory)

Definition at line 123 of file css.c.