php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
base.h File Reference
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <stdarg.h>
#include <memory.h>
#include <limits.h>
#include <string.h>
#include "lexbor/core/def.h"
#include "lexbor/core/types.h"
#include "lexbor/core/lexbor.h"

Go to the source code of this file.

Data Structures

struct  lexbor_serialize_ctx_t
 

Macros

#define LEXBOR_VERSION_MAJOR   1
 
#define LEXBOR_VERSION_MINOR   7
 
#define LEXBOR_VERSION_PATCH   0
 
#define LEXBOR_VERSION_STRING
 
#define lexbor_assert(val)
 
#define lexbor_max(val1, val2)
 
#define lexbor_min(val1, val2)
 

Typedefs

typedef lxb_status_t(* lexbor_serialize_cb_f) (const lxb_char_t *data, size_t len, void *ctx)
 
typedef lxb_status_t(* lexbor_serialize_cb_cp_f) (const lxb_codepoint_t *cps, size_t len, void *ctx)
 

Enumerations

enum  lexbor_status_t {
  LXB_STATUS_OK = 0x0000 , LXB_STATUS_ERROR = 0x0001 , LXB_STATUS_ERROR_MEMORY_ALLOCATION , LXB_STATUS_ERROR_OBJECT_IS_NULL ,
  LXB_STATUS_ERROR_SMALL_BUFFER , LXB_STATUS_ERROR_INCOMPLETE_OBJECT , LXB_STATUS_ERROR_NO_FREE_SLOT , LXB_STATUS_ERROR_TOO_SMALL_SIZE ,
  LXB_STATUS_ERROR_NOT_EXISTS , LXB_STATUS_ERROR_WRONG_ARGS , LXB_STATUS_ERROR_WRONG_STAGE , LXB_STATUS_ERROR_UNEXPECTED_RESULT ,
  LXB_STATUS_ERROR_UNEXPECTED_DATA , LXB_STATUS_ERROR_OVERFLOW , LXB_STATUS_CONTINUE , LXB_STATUS_SMALL_BUFFER ,
  LXB_STATUS_ABORTED , LXB_STATUS_STOPPED , LXB_STATUS_NEXT , LXB_STATUS_STOP ,
  LXB_STATUS_WARNING
}
 
enum  lexbor_action_t { LEXBOR_ACTION_OK = 0x00 , LEXBOR_ACTION_STOP = 0x01 , LEXBOR_ACTION_NEXT = 0x02 }
 

Macro Definition Documentation

◆ lexbor_assert

#define lexbor_assert ( val)

Definition at line 37 of file base.h.

◆ lexbor_max

#define lexbor_max ( val1,
val2 )
Value:
((val1) > (val2) ? (val1) : (val2))

Definition at line 39 of file base.h.

◆ lexbor_min

#define lexbor_min ( val1,
val2 )
Value:
((val1) < (val2) ? (val1) : (val2))

Definition at line 40 of file base.h.

◆ LEXBOR_VERSION_MAJOR

#define LEXBOR_VERSION_MAJOR   1

Definition at line 29 of file base.h.

◆ LEXBOR_VERSION_MINOR

#define LEXBOR_VERSION_MINOR   7

Definition at line 30 of file base.h.

◆ LEXBOR_VERSION_PATCH

#define LEXBOR_VERSION_PATCH   0

Definition at line 31 of file base.h.

◆ LEXBOR_VERSION_STRING

#define LEXBOR_VERSION_STRING
Value:
LEXBOR_STRINGIZE(LEXBOR_VERSION_MINOR) "." \
LEXBOR_STRINGIZE(LEXBOR_VERSION_PATCH)
#define LEXBOR_VERSION_MAJOR
Definition base.h:29
#define LEXBOR_VERSION_MINOR
Definition base.h:30
#define LEXBOR_VERSION_PATCH
Definition base.h:31
#define LEXBOR_STRINGIZE(x)
Definition def.h:11

Definition at line 33 of file base.h.

Typedef Documentation

◆ lexbor_serialize_cb_cp_f

typedef lxb_status_t(* lexbor_serialize_cb_cp_f) (const lxb_codepoint_t *cps, size_t len, void *ctx)

Definition at line 84 of file base.h.

◆ lexbor_serialize_cb_f

typedef lxb_status_t(* lexbor_serialize_cb_f) (const lxb_char_t *data, size_t len, void *ctx)

Definition at line 81 of file base.h.

Enumeration Type Documentation

◆ lexbor_action_t

Enumerator
LEXBOR_ACTION_OK 
LEXBOR_ACTION_STOP 
LEXBOR_ACTION_NEXT 

Definition at line 73 of file base.h.

◆ lexbor_status_t

Enumerator
LXB_STATUS_OK 
LXB_STATUS_ERROR 
LXB_STATUS_ERROR_MEMORY_ALLOCATION 
LXB_STATUS_ERROR_OBJECT_IS_NULL 
LXB_STATUS_ERROR_SMALL_BUFFER 
LXB_STATUS_ERROR_INCOMPLETE_OBJECT 
LXB_STATUS_ERROR_NO_FREE_SLOT 
LXB_STATUS_ERROR_TOO_SMALL_SIZE 
LXB_STATUS_ERROR_NOT_EXISTS 
LXB_STATUS_ERROR_WRONG_ARGS 
LXB_STATUS_ERROR_WRONG_STAGE 
LXB_STATUS_ERROR_UNEXPECTED_RESULT 
LXB_STATUS_ERROR_UNEXPECTED_DATA 
LXB_STATUS_ERROR_OVERFLOW 
LXB_STATUS_CONTINUE 
LXB_STATUS_SMALL_BUFFER 
LXB_STATUS_ABORTED 
LXB_STATUS_STOPPED 
LXB_STATUS_NEXT 
LXB_STATUS_STOP 
LXB_STATUS_WARNING 

Definition at line 48 of file base.h.