xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 4.93MB
    文件類型: .gz
    金幣: 1
    下載: 0 次
    發布日期: 2023-11-01
  • 語言: Html/CSS
  • 標簽: libxml2??

資源簡介

XML toolkit from the GNOME project Full documentation is available on-line at http://xmlsoft.org/ This code is released under the MIT Licence see the Copyright file. To build on an Unixised setup: ./configure ; make ; make install To build on Windows: see instructions on win32/Readme.txt To assert build quality: on an Unixised setup: run make tests otherwise: There is 3 standalone tools runtest.c runsuite.c testapi.c, which should compile as part of the build or as any application would. Launch them from this directory to get results, runtest checks the proper functionning of libxml2 main APIs while testapi does a full coverage check. Report failures to the list. To report bugs, follow the instructions at: http://xmlsoft.org/bugs.html A mailing-list xml@gnome.org is available, to subscribe: http://mail.gnome.org/mailman/listinfo/xml The list archive is at: http://mail.gnome.org/archives/xml/ All technical answers asked privately will be automatically answered on the list and archived for public access unless privacy is explicitly required and justified. Daniel Veillard $Id$

資源截圖

代碼片段和文件信息

/*
?*?buf.c:?memory?buffers?for?libxml2
?*
?*?new?buffer?structures?and?entry?points?to?simplify?the?maintainance
?*?of?libxml2?and?ensure?we?keep?good?control?over?memory?allocations
?*?and?stay?64?bits?clean.
?*?The?new?entry?point?use?the?xmlBufPtr?opaque?structure?and
?*?xmlBuf...()?counterparts?to?the?old?xmlBuf...()?functions
?*
?*?See?Copyright?for?the?status?of?this?software.
?*
?*?daniel@veillard.com
?*/

#define?IN_LIBxml
#include?“libxml.h“

#include??/*?for?memset()?only?!?*/
#include?
#ifdef?HAVE_CTYPE_H
#include?
#endif
#ifdef?HAVE_STDLIB_H
#include?
#endif

#include?l/tree.h>
#include?l/globals.h>
#include?l/tree.h>
#include?“buf.h“

#define?WITH_BUFFER_COMPAT

/**
?*?xmlBuf:
?*
?*?A?buffer?structure.?The?base?of?the?structure?is?somehow?compatible
?*?with?struct?_xmlBuffer?to?limit?risks?on?application?which?accessed
?*?directly?the?input->buf->buffer?structures.
?*/

struct?_xmlBuf?{
????xmlChar?*content; /*?The?buffer?content?UTF8?*/
????unsigned?int?compat_use;????/*?for?binary?compatibility?*/
????unsigned?int?compat_size;???/*?for?binary?compatibility?*/
????xmlBufferAllocationScheme?alloc;?/*?The?realloc?method?*/
????xmlChar?*contentIO; /*?in?IO?mode?we?may?have?a?different?base?*/
????size_t?use; ????????/*?The?buffer?size?used?*/
????size_t?size; /*?The?buffer?size?*/
????xmlBufferPtr?buffer;????????/*?wrapper?for?an?old?buffer?*/
????int?error;??????????????????/*?an?error?code?if?a?failure?occured?*/
};

#ifdef?WITH_BUFFER_COMPAT
/*
?*?Macro?for?compatibility?with?xmlBuffer?to?be?used?after?an?xmlBuf
?*?is?updated.?This?makes?sure?the?compat?fields?are?updated?too.
?*/
#define?UPDATE_COMPAT(buf) ????\
?????if?(buf->size?compat_size?=?buf->size;?\
?????else?buf->compat_size?=?INT_MAX; ????\
?????if?(buf->use?compat_use?=?buf->use;?\
?????else?buf->compat_use?=?INT_MAX;

/*
?*?Macro?for?compatibility?with?xmlBuffer?to?be?used?in?all?the?xmlBuf
?*?entry?points?it?checks?that?the?compat?fields?have?not?been?modified
?*?by?direct?call?to?xmlBuffer?function?from?code?compiled?before?2.9.0?.
?*/
#define?CHECK_COMPAT(buf) ????\
?????if?(buf->size?!=?(size_t)?buf->compat_size) ????\
?????????if?(buf->compat_size? ?????buf->size?=?buf->compat_size; ????\
?????if?(buf->use?!=?(size_t)?buf->compat_use) ????\
?????????if?(buf->compat_use? ?????buf->use?=?buf->compat_use;

#else?/*?!?WITH_BUFFER_COMPAT?*/
#define?UPDATE_COMPAT(buf)
#define?CHECK_COMPAT(buf)
#endif?/*?WITH_BUFFER_COMPAT?*/

/**
?*?xmlBufMemoryError:
?*?@extra:??extra?informations
?*
?*?Handle?an?out?of?memory?condition
?*?To?be?improved...
?*/
static?void
xmlBufMemoryError(xmlBufPtr?buf?const?char?*extra)
{
????__xmlSimpleError(xml_FROM_BUFFER?xml_ERR_NO_MEMORY?NULL?NULL?extra);
????if?((buf)?&&?(buf->error?==?0))
????????buf->error?=?xml_ERR_NO_MEMORY;
}

/**
?*?xmlBufOverflowError:
?*?@extra:??extra?informations
?*
?*?Hand

評論

共有 條評論

相關資源