ReactOS 0.4.16-dev-2232-gc2aaa52
entities.c File Reference
#include "libxml.h"
#include <string.h>
#include <stdlib.h>
#include <libxml/xmlmemory.h>
#include <libxml/hash.h>
#include <libxml/entities.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/xmlerror.h>
#include <libxml/dict.h>
#include "private/entities.h"
#include "private/error.h"
Include dependency graph for entities.c:

Go to the source code of this file.

Macros

#define IN_LIBXML
 
#define growBufferReentrant()
 

Functions

static void xmlEntitiesErrMemory (const char *extra)
 

Variables

static xmlEntity xmlEntityLt
 
static xmlEntity xmlEntityGt
 
static xmlEntity xmlEntityAmp
 
static xmlEntity xmlEntityQuot
 
static xmlEntity xmlEntityApos
 

Macro Definition Documentation

◆ growBufferReentrant

#define growBufferReentrant ( )
Value:
{ \
xmlChar *tmp; \
size_t new_size = buffer_size * 2; \
if (new_size < buffer_size) goto mem_error; \
if (tmp == NULL) goto mem_error; \
buffer = tmp; \
}
#define NULL
Definition: types.h:112
size_t const new_size
Definition: expand.cpp:66
GLuint buffer
Definition: glext.h:5915
xmlReallocFunc xmlRealloc
Definition: globals.c:214
wchar_t const *const size_t const buffer_size
Definition: stat.cpp:95
unsigned char xmlChar
Definition: xmlstring.h:28

◆ IN_LIBXML

#define IN_LIBXML

Definition at line 14 of file entities.c.

Function Documentation

◆ xmlEntitiesErrMemory()

static void xmlEntitiesErrMemory ( const char extra)
static

xmlEntitiesErrMemory: @extra: extra information

Handle an out of memory condition

Definition at line 78 of file entities.c.

79{
81}
@ extra
Definition: id3.c:95
XML_HIDDEN void XML_HIDDEN void __xmlSimpleError(int domain, int code, struct _xmlNode *node, const char *msg, const char *extra) LIBXML_ATTR_FORMAT(4
@ XML_FROM_TREE
Definition: xmlerror.h:39
@ XML_ERR_NO_MEMORY
Definition: xmlerror.h:102

Variable Documentation

◆ xmlEntityAmp

xmlEntity xmlEntityAmp
static
Initial value:
= {
NULL, XML_ENTITY_DECL, BAD_CAST "amp",
BAD_CAST "&", BAD_CAST "&", 1,
NULL, NULL, NULL, NULL, 0, 0, 0
}
@ XML_INTERNAL_PREDEFINED_ENTITY
Definition: entities.h:32
#define BAD_CAST
Definition: xmlstring.h:35

Definition at line 49 of file entities.c.

◆ xmlEntityApos

xmlEntity xmlEntityApos
static
Initial value:
= {
NULL, XML_ENTITY_DECL, BAD_CAST "apos",
BAD_CAST "'", BAD_CAST "'", 1,
NULL, NULL, NULL, NULL, 0, 0, 0
}

Definition at line 63 of file entities.c.

◆ xmlEntityGt

xmlEntity xmlEntityGt
static
Initial value:
= {
NULL, XML_ENTITY_DECL, BAD_CAST "gt",
BAD_CAST ">", BAD_CAST ">", 1,
NULL, NULL, NULL, NULL, 0, 0, 0
}

Definition at line 42 of file entities.c.

◆ xmlEntityLt

xmlEntity xmlEntityLt
static
Initial value:
= {
NULL, XML_ENTITY_DECL, BAD_CAST "lt",
BAD_CAST "<", BAD_CAST "<", 1,
NULL, NULL, NULL, NULL, 0, 0, 0
}

Definition at line 35 of file entities.c.

◆ xmlEntityQuot

xmlEntity xmlEntityQuot
static
Initial value:
= {
NULL, XML_ENTITY_DECL, BAD_CAST "quot",
BAD_CAST "\"", BAD_CAST "\"", 1,
NULL, NULL, NULL, NULL, 0, 0, 0
}

Definition at line 56 of file entities.c.