blob: 2e3f0d147d46835f0c42ae84d0a1008371d0cb30 [file] [log] [blame]
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001<HTML
2><HEAD
3><TITLE
4>xmlmemory</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard539638b2002-07-06 19:55:14 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
Daniel Veillard60087f32001-10-10 09:45:09 +00008"><LINK
Daniel Veillard7c1206f1999-10-14 09:10:25 +00009REL="HOME"
10TITLE="Gnome XML Library Reference Manual"
11HREF="book1.html"><LINK
12REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000013TITLE="Libxml Library Reference"
14HREF="libxml-lib.html"><LINK
Daniel Veillard7c1206f1999-10-14 09:10:25 +000015REL="PREVIOUS"
Daniel Veillard294cbca1999-12-03 13:19:09 +000016TITLE="debugXML"
Daniel Veillard2ace1952002-09-26 12:28:02 +000017HREF="libxml-debugxml.html"><LINK
18REL="NEXT"
19TITLE="xmlregexp"
20HREF="libxml-xmlregexp.html"></HEAD
Daniel Veillard7c1206f1999-10-14 09:10:25 +000021><BODY
Daniel Veillardbed7b052001-05-19 14:59:49 +000022CLASS="REFENTRY"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000023BGCOLOR="#FFFFFF"
24TEXT="#000000"
Daniel Veillard503b8932001-01-05 06:36:31 +000025LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000028><DIV
29CLASS="NAVHEADER"
30><TABLE
31WIDTH="100%"
32BORDER="0"
33BGCOLOR="#000000"
34CELLPADDING="1"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="4"
39ALIGN="center"
40><FONT
41COLOR="#FFFFFF"
42SIZE="5"
43>Gnome XML Library Reference Manual</FONT
44></TH
45></TR
46><TR
47><TD
48WIDTH="25%"
49BGCOLOR="#C00000"
50ALIGN="left"
51><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000052HREF="libxml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000053><FONT
54COLOR="#FFFFFF"
55SIZE="3"
56><B
57>&#60;&#60;&#60; Previous Page</B
58></FONT
59></A
60></TD
61><TD
62WIDTH="25%"
63BGCOLOR="#0000C0"
64ALIGN="center"
65><FONT
66COLOR="#FFFFFF"
67SIZE="3"
68><B
69><A
70HREF="book1.html"
71><FONT
72COLOR="#FFFFFF"
73SIZE="3"
74><B
75>Home</B
76></FONT
77></A
78></B
79></FONT
80></TD
81><TD
82WIDTH="25%"
83BGCOLOR="#00C000"
84ALIGN="center"
85><FONT
86COLOR="#FFFFFF"
87SIZE="3"
88><B
89><A
Daniel Veillard35008381999-10-25 13:15:52 +000090HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000091><FONT
92COLOR="#FFFFFF"
93SIZE="3"
94><B
95>Up</B
96></FONT
97></A
98></B
99></FONT
100></TD
101><TD
102WIDTH="25%"
103BGCOLOR="#C00000"
104ALIGN="right"
Daniel Veillard2ace1952002-09-26 12:28:02 +0000105><A
106HREF="libxml-xmlregexp.html"
107><FONT
108COLOR="#FFFFFF"
109SIZE="3"
110><B
111>Next Page &#62;&#62;&#62;</B
112></FONT
113></A
114></TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000115></TR
116></TABLE
117></DIV
118><H1
Daniel Veillard503b8932001-01-05 06:36:31 +0000119><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000120NAME="LIBXML-XMLMEMORY"
121></A
122>xmlmemory</H1
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000123><DIV
124CLASS="REFNAMEDIV"
125><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000126NAME="AEN29382"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000127></A
128><H2
129>Name</H2
Daniel Veillard503b8932001-01-05 06:36:31 +0000130>xmlmemory&nbsp;--&nbsp;</DIV
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000131><DIV
132CLASS="REFSYNOPSISDIV"
133><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000134NAME="AEN29385"
135></A
136><H2
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000137>Synopsis</H2
138><TABLE
139BORDER="0"
140BGCOLOR="#D6E8FF"
141WIDTH="100%"
142CELLPADDING="6"
143><TR
144><TD
145><PRE
146CLASS="SYNOPSIS"
147>&#13;
148
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000149#define <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000150HREF="libxml-xmlmemory.html#DEBUG-MEMORY-CAPS"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000151>DEBUG_MEMORY</A
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000152>
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000153void (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000154HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000155>*xmlFreeFunc</A
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000156>) (void *mem);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000157void* (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000158HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000159>*xmlMallocFunc</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000160>) (<GTKDOCLINK
161HREF="SIZE-T"
162>size_t</GTKDOCLINK
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000163> size);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000164void* (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000165HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000166>*xmlReallocFunc</A
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000167>) (void *mem,
Daniel Veillardf012a642001-07-23 19:10:52 +0000168 <GTKDOCLINK
169HREF="SIZE-T"
170>size_t</GTKDOCLINK
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000171> size);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000172char* (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000173HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000174>*xmlStrdupFunc</A
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000175>) (const char *str);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000176int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000177HREF="libxml-xmlmemory.html#XMLMEMSETUP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000178>xmlMemSetup</A
179> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000180HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000181>xmlFreeFunc</A
182> freeFunc,
183 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000184HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000185>xmlMallocFunc</A
186> mallocFunc,
187 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000188HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000189>xmlReallocFunc</A
190> reallocFunc,
191 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000192HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000193>xmlStrdupFunc</A
194> strdupFunc);
195int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000196HREF="libxml-xmlmemory.html#XMLMEMGET"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000197>xmlMemGet</A
198> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000199HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000200>xmlFreeFunc</A
201> *freeFunc,
202 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000203HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000204>xmlMallocFunc</A
205> *mallocFunc,
206 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000207HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000208>xmlReallocFunc</A
209> *reallocFunc,
210 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000211HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000212>xmlStrdupFunc</A
213> *strdupFunc);
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000214int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000215HREF="libxml-xmlmemory.html#XMLINITMEMORY"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000216>xmlInitMemory</A
217> (void);
218int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000219HREF="libxml-xmlmemory.html#XMLMEMUSED"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000220>xmlMemUsed</A
221> (void);
222void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000223HREF="libxml-xmlmemory.html#XMLMEMDISPLAY"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000224>xmlMemDisplay</A
225> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000226HREF="FILE-CAPS"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000227>FILE</GTKDOCLINK
228> *fp);
Daniel Veillardf3a73582000-01-05 14:58:39 +0000229void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000230HREF="libxml-xmlmemory.html#XMLMEMSHOW"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000231>xmlMemShow</A
232> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000233HREF="FILE-CAPS"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000234>FILE</GTKDOCLINK
235> *fp,
236 int nr);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000237void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000238HREF="libxml-xmlmemory.html#XMLMEMORYDUMP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000239>xmlMemoryDump</A
240> (void);
Daniel Veillardaec63562003-03-23 20:42:17 +0000241void* <A
242HREF="libxml-xmlmemory.html#XMLMEMMALLOC"
243>xmlMemMalloc</A
244> (<GTKDOCLINK
245HREF="SIZE-T"
246>size_t</GTKDOCLINK
247> size);
248void* <A
249HREF="libxml-xmlmemory.html#XMLMEMREALLOC"
250>xmlMemRealloc</A
251> (void *ptr,
252 <GTKDOCLINK
253HREF="SIZE-T"
254>size_t</GTKDOCLINK
255> size);
256void <A
257HREF="libxml-xmlmemory.html#XMLMEMFREE"
258>xmlMemFree</A
259> (void *ptr);
260char* <A
261HREF="libxml-xmlmemory.html#XMLMEMORYSTRDUP"
262>xmlMemoryStrdup</A
263> (const char *str);
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000264#define <A
Daniel Veillard52dcab32001-10-30 12:51:17 +0000265HREF="libxml-globals.html#XMLMALLOC"
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000266>xmlMalloc</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000267> (size)
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000268#define <A
Daniel Veillard52dcab32001-10-30 12:51:17 +0000269HREF="libxml-globals.html#XMLREALLOC"
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000270>xmlRealloc</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000271> (ptr, size)
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000272#define <A
Daniel Veillard52dcab32001-10-30 12:51:17 +0000273HREF="libxml-globals.html#XMLMEMSTRDUP"
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000274>xmlMemStrdup</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000275> (str)
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000276void* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000277HREF="libxml-xmlmemory.html#XMLMALLOCLOC"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000278>xmlMallocLoc</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000279> (<GTKDOCLINK
280HREF="SIZE-T"
281>size_t</GTKDOCLINK
282> size,
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000283 const char *file,
284 int line);
285void* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000286HREF="libxml-xmlmemory.html#XMLREALLOCLOC"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000287>xmlReallocLoc</A
288> (void *ptr,
Daniel Veillardf012a642001-07-23 19:10:52 +0000289 <GTKDOCLINK
290HREF="SIZE-T"
291>size_t</GTKDOCLINK
292> size,
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000293 const char *file,
294 int line);
295char* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000296HREF="libxml-xmlmemory.html#XMLMEMSTRDUPLOC"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000297>xmlMemStrdupLoc</A
298> (const char *str,
299 const char *file,
300 int line);</PRE
301></TD
302></TR
303></TABLE
304></DIV
305><DIV
306CLASS="REFSECT1"
307><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000308NAME="AEN29426"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000309></A
310><H2
311>Description</H2
312><P
313></P
314></DIV
315><DIV
316CLASS="REFSECT1"
317><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000318NAME="AEN29429"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000319></A
320><H2
321>Details</H2
322><DIV
323CLASS="REFSECT2"
324><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000325NAME="AEN29431"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000326></A
327><H3
328><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000329NAME="DEBUG-MEMORY-CAPS"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000330></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000331>DEBUG_MEMORY</H3
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000332><TABLE
333BORDER="0"
334BGCOLOR="#D6E8FF"
335WIDTH="100%"
336CELLPADDING="6"
337><TR
338><TD
339><PRE
340CLASS="PROGRAMLISTING"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000341>#define DEBUG_MEMORY</PRE
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000342></TD
343></TR
344></TABLE
345><P
Daniel Veillard19274092002-03-25 16:48:03 +0000346>DEBUG_MEMORY replaces the allocator with a collect and debug
347shell to the libc allocator.
348DEBUG_MEMORY should only be activated when debugging
349libxml i.e. if libxml has been configured with --with-debug-mem too.</P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000350><P
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000351></P
352></DIV
353><HR><DIV
354CLASS="REFSECT2"
355><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000356NAME="AEN29437"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000357></A
358><H3
359><A
360NAME="XMLFREEFUNC"
361></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000362>xmlFreeFunc ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000363><TABLE
364BORDER="0"
365BGCOLOR="#D6E8FF"
366WIDTH="100%"
367CELLPADDING="6"
368><TR
369><TD
370><PRE
371CLASS="PROGRAMLISTING"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000372>void (*xmlFreeFunc) (void *mem);</PRE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000373></TD
374></TR
375></TABLE
Daniel Veillard06047432000-04-24 11:33:38 +0000376><P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000377>Signature for a <GTKDOCLINK
378HREF="FREE"
379>free</GTKDOCLINK
Daniel Veillard19274092002-03-25 16:48:03 +0000380>() implementation.</P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000381><P
Daniel Veillard06047432000-04-24 11:33:38 +0000382></P
383><DIV
384CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000385><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000386NAME="AEN29444"
387></A
388><P
Daniel Veillard06047432000-04-24 11:33:38 +0000389></P
390><TABLE
391BORDER="0"
392WIDTH="100%"
393BGCOLOR="#FFD0D0"
394CELLSPACING="0"
395CELLPADDING="4"
396CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000397><TBODY
Daniel Veillard06047432000-04-24 11:33:38 +0000398><TR
399><TD
400WIDTH="20%"
401ALIGN="RIGHT"
402VALIGN="TOP"
403><TT
404CLASS="PARAMETER"
405><I
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000406>mem</I
Daniel Veillard06047432000-04-24 11:33:38 +0000407></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000408>&nbsp;:</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000409><TD
410WIDTH="80%"
411ALIGN="LEFT"
412VALIGN="TOP"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000413> an already allocated block of memory</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000414></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000415></TBODY
Daniel Veillard06047432000-04-24 11:33:38 +0000416></TABLE
417><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000418></P
419></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000420></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000421><HR><DIV
422CLASS="REFSECT2"
423><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000424NAME="AEN29453"
Daniel Veillard8f621982000-03-20 13:07:15 +0000425></A
426><H3
427><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000428NAME="XMLMALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000429></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000430>xmlMallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000431><TABLE
432BORDER="0"
433BGCOLOR="#D6E8FF"
434WIDTH="100%"
435CELLPADDING="6"
436><TR
437><TD
438><PRE
439CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000440>void* (*xmlMallocFunc) (<GTKDOCLINK
441HREF="SIZE-T"
442>size_t</GTKDOCLINK
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000443> size);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000444></TD
445></TR
446></TABLE
447><P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000448>Signature for a <GTKDOCLINK
449HREF="MALLOC"
450>malloc</GTKDOCLINK
Daniel Veillard19274092002-03-25 16:48:03 +0000451>() implementation.</P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000452><P
Daniel Veillard06047432000-04-24 11:33:38 +0000453></P
454><DIV
455CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000456><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000457NAME="AEN29461"
458></A
459><P
Daniel Veillard06047432000-04-24 11:33:38 +0000460></P
461><TABLE
462BORDER="0"
463WIDTH="100%"
464BGCOLOR="#FFD0D0"
465CELLSPACING="0"
466CELLPADDING="4"
467CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000468><TBODY
Daniel Veillard06047432000-04-24 11:33:38 +0000469><TR
470><TD
471WIDTH="20%"
472ALIGN="RIGHT"
473VALIGN="TOP"
474><TT
475CLASS="PARAMETER"
476><I
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000477>size</I
Daniel Veillard06047432000-04-24 11:33:38 +0000478></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000479>&nbsp;:</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000480><TD
481WIDTH="80%"
482ALIGN="LEFT"
483VALIGN="TOP"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000484> the size requested in bytes</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000485></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000486></TBODY
Daniel Veillard06047432000-04-24 11:33:38 +0000487></TABLE
488><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000489></P
490></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000491></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000492><HR><DIV
493CLASS="REFSECT2"
494><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000495NAME="AEN29470"
Daniel Veillard8f621982000-03-20 13:07:15 +0000496></A
497><H3
498><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000499NAME="XMLREALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000500></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000501>xmlReallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000502><TABLE
503BORDER="0"
504BGCOLOR="#D6E8FF"
505WIDTH="100%"
506CELLPADDING="6"
507><TR
508><TD
509><PRE
510CLASS="PROGRAMLISTING"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000511>void* (*xmlReallocFunc) (void *mem,
Daniel Veillardf012a642001-07-23 19:10:52 +0000512 <GTKDOCLINK
513HREF="SIZE-T"
514>size_t</GTKDOCLINK
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000515> size);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000516></TD
517></TR
518></TABLE
519><P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000520>Signature for a <GTKDOCLINK
521HREF="REALLOC"
522>realloc</GTKDOCLINK
Daniel Veillard19274092002-03-25 16:48:03 +0000523>() implementation.</P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000524><P
Daniel Veillard06047432000-04-24 11:33:38 +0000525></P
526><DIV
527CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000528><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000529NAME="AEN29478"
530></A
531><P
Daniel Veillard06047432000-04-24 11:33:38 +0000532></P
533><TABLE
534BORDER="0"
535WIDTH="100%"
536BGCOLOR="#FFD0D0"
537CELLSPACING="0"
538CELLPADDING="4"
539CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000540><TBODY
Daniel Veillard06047432000-04-24 11:33:38 +0000541><TR
542><TD
543WIDTH="20%"
544ALIGN="RIGHT"
545VALIGN="TOP"
546><TT
547CLASS="PARAMETER"
548><I
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000549>mem</I
Daniel Veillard06047432000-04-24 11:33:38 +0000550></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000551>&nbsp;:</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000552><TD
553WIDTH="80%"
554ALIGN="LEFT"
555VALIGN="TOP"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000556> an already allocated block of memory</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000557></TR
558><TR
559><TD
560WIDTH="20%"
561ALIGN="RIGHT"
562VALIGN="TOP"
563><TT
564CLASS="PARAMETER"
565><I
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000566>size</I
Daniel Veillard06047432000-04-24 11:33:38 +0000567></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000568>&nbsp;:</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000569><TD
570WIDTH="80%"
571ALIGN="LEFT"
572VALIGN="TOP"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000573> the new size requested in bytes</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000574></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000575></TBODY
Daniel Veillard06047432000-04-24 11:33:38 +0000576></TABLE
577><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000578></P
579></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000580></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000581><HR><DIV
582CLASS="REFSECT2"
583><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000584NAME="AEN29491"
Daniel Veillard8f621982000-03-20 13:07:15 +0000585></A
586><H3
587><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000588NAME="XMLSTRDUPFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000589></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000590>xmlStrdupFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000591><TABLE
592BORDER="0"
593BGCOLOR="#D6E8FF"
594WIDTH="100%"
595CELLPADDING="6"
596><TR
597><TD
598><PRE
599CLASS="PROGRAMLISTING"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000600>char* (*xmlStrdupFunc) (const char *str);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000601></TD
602></TR
603></TABLE
604><P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000605>Signature for an <GTKDOCLINK
606HREF="STRDUP"
607>strdup</GTKDOCLINK
Daniel Veillard19274092002-03-25 16:48:03 +0000608>() implementation.</P
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000609><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000610></P
611><DIV
612CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000613><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000614NAME="AEN29498"
615></A
616><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000617></P
618><TABLE
619BORDER="0"
620WIDTH="100%"
621BGCOLOR="#FFD0D0"
622CELLSPACING="0"
623CELLPADDING="4"
624CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000625><TBODY
Daniel Veillard8f621982000-03-20 13:07:15 +0000626><TR
627><TD
628WIDTH="20%"
629ALIGN="RIGHT"
630VALIGN="TOP"
631><TT
632CLASS="PARAMETER"
633><I
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000634>str</I
Daniel Veillard8f621982000-03-20 13:07:15 +0000635></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000636>&nbsp;:</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000637><TD
638WIDTH="80%"
639ALIGN="LEFT"
640VALIGN="TOP"
Daniel Veillard5f4b5992002-02-20 10:22:49 +0000641> a zero terminated string</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000642></TR
643><TR
644><TD
645WIDTH="20%"
646ALIGN="RIGHT"
647VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000648><SPAN
649CLASS="emphasis"
Daniel Veillard8f621982000-03-20 13:07:15 +0000650><I
651CLASS="EMPHASIS"
652>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000653></SPAN
Daniel Veillard8f621982000-03-20 13:07:15 +0000654> :</TD
655><TD
656WIDTH="80%"
657ALIGN="LEFT"
658VALIGN="TOP"
Daniel Veillard19274092002-03-25 16:48:03 +0000659>the copy of the string or NULL in case of error.</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000660></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000661></TBODY
Daniel Veillard8f621982000-03-20 13:07:15 +0000662></TABLE
663><P
664></P
665></DIV
666></DIV
667><HR><DIV
668CLASS="REFSECT2"
669><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000670NAME="AEN29511"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000671></A
672><H3
673><A
674NAME="XMLMEMSETUP"
675></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000676>xmlMemSetup ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000677><TABLE
678BORDER="0"
679BGCOLOR="#D6E8FF"
680WIDTH="100%"
681CELLPADDING="6"
682><TR
683><TD
684><PRE
685CLASS="PROGRAMLISTING"
686>int xmlMemSetup (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000687HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000688>xmlFreeFunc</A
689> freeFunc,
690 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000691HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000692>xmlMallocFunc</A
693> mallocFunc,
694 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000695HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000696>xmlReallocFunc</A
697> reallocFunc,
698 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000699HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000700>xmlStrdupFunc</A
701> strdupFunc);</PRE
702></TD
703></TR
704></TABLE
705><P
706>Override the default memory access functions with a new set
707This has to be called before any other libxml routines !</P
708><P
709>Should this be blocked if there was already some allocations
710done ?</P
711><P
712></P
713><DIV
714CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000715><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000716NAME="AEN29522"
717></A
718><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000719></P
720><TABLE
721BORDER="0"
722WIDTH="100%"
723BGCOLOR="#FFD0D0"
724CELLSPACING="0"
725CELLPADDING="4"
726CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000727><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000728><TR
729><TD
730WIDTH="20%"
731ALIGN="RIGHT"
732VALIGN="TOP"
733><TT
734CLASS="PARAMETER"
735><I
736>freeFunc</I
737></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000738>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000739><TD
740WIDTH="80%"
741ALIGN="LEFT"
742VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000743> the <GTKDOCLINK
744HREF="FREE"
745>free</GTKDOCLINK
746>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000747></TR
748><TR
749><TD
750WIDTH="20%"
751ALIGN="RIGHT"
752VALIGN="TOP"
753><TT
754CLASS="PARAMETER"
755><I
756>mallocFunc</I
757></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000758>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000759><TD
760WIDTH="80%"
761ALIGN="LEFT"
762VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000763> the <GTKDOCLINK
764HREF="MALLOC"
765>malloc</GTKDOCLINK
766>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000767></TR
768><TR
769><TD
770WIDTH="20%"
771ALIGN="RIGHT"
772VALIGN="TOP"
773><TT
774CLASS="PARAMETER"
775><I
776>reallocFunc</I
777></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000778>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000779><TD
780WIDTH="80%"
781ALIGN="LEFT"
782VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000783> the <GTKDOCLINK
784HREF="REALLOC"
785>realloc</GTKDOCLINK
786>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000787></TR
788><TR
789><TD
790WIDTH="20%"
791ALIGN="RIGHT"
792VALIGN="TOP"
793><TT
794CLASS="PARAMETER"
795><I
796>strdupFunc</I
797></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000798>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000799><TD
800WIDTH="80%"
801ALIGN="LEFT"
802VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000803> the <GTKDOCLINK
804HREF="STRDUP"
805>strdup</GTKDOCLINK
806>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000807></TR
808><TR
809><TD
810WIDTH="20%"
811ALIGN="RIGHT"
812VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000813><SPAN
814CLASS="emphasis"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000815><I
816CLASS="EMPHASIS"
817>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000818></SPAN
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000819> :</TD
820><TD
821WIDTH="80%"
822ALIGN="LEFT"
823VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000824>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000825></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000826></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000827></TABLE
828><P
829></P
830></DIV
831></DIV
832><HR><DIV
833CLASS="REFSECT2"
834><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000835NAME="AEN29551"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000836></A
837><H3
838><A
839NAME="XMLMEMGET"
840></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000841>xmlMemGet ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000842><TABLE
843BORDER="0"
844BGCOLOR="#D6E8FF"
845WIDTH="100%"
846CELLPADDING="6"
847><TR
848><TD
849><PRE
850CLASS="PROGRAMLISTING"
851>int xmlMemGet (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000852HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000853>xmlFreeFunc</A
854> *freeFunc,
855 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000856HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000857>xmlMallocFunc</A
858> *mallocFunc,
859 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000860HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000861>xmlReallocFunc</A
862> *reallocFunc,
863 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000864HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000865>xmlStrdupFunc</A
866> *strdupFunc);</PRE
867></TD
868></TR
869></TABLE
870><P
Daniel Veillardaec63562003-03-23 20:42:17 +0000871>Provides the memory access functions set currently in use</P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000872><P
873></P
874><DIV
875CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000876><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000877NAME="AEN29561"
878></A
879><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000880></P
881><TABLE
882BORDER="0"
883WIDTH="100%"
884BGCOLOR="#FFD0D0"
885CELLSPACING="0"
886CELLPADDING="4"
887CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000888><TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000889><TR
890><TD
891WIDTH="20%"
892ALIGN="RIGHT"
893VALIGN="TOP"
894><TT
895CLASS="PARAMETER"
896><I
897>freeFunc</I
898></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000899>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000900><TD
901WIDTH="80%"
902ALIGN="LEFT"
903VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +0000904> place to save the <GTKDOCLINK
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000905HREF="FREE"
906>free</GTKDOCLINK
907>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000908></TR
909><TR
910><TD
911WIDTH="20%"
912ALIGN="RIGHT"
913VALIGN="TOP"
914><TT
915CLASS="PARAMETER"
916><I
917>mallocFunc</I
918></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000919>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000920><TD
921WIDTH="80%"
922ALIGN="LEFT"
923VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +0000924> place to save the <GTKDOCLINK
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000925HREF="MALLOC"
926>malloc</GTKDOCLINK
927>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000928></TR
929><TR
930><TD
931WIDTH="20%"
932ALIGN="RIGHT"
933VALIGN="TOP"
934><TT
935CLASS="PARAMETER"
936><I
937>reallocFunc</I
938></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000939>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000940><TD
941WIDTH="80%"
942ALIGN="LEFT"
943VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +0000944> place to save the <GTKDOCLINK
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000945HREF="REALLOC"
946>realloc</GTKDOCLINK
947>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000948></TR
949><TR
950><TD
951WIDTH="20%"
952ALIGN="RIGHT"
953VALIGN="TOP"
954><TT
955CLASS="PARAMETER"
956><I
957>strdupFunc</I
958></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000959>&nbsp;:</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000960><TD
961WIDTH="80%"
962ALIGN="LEFT"
963VALIGN="TOP"
Daniel Veillardaec63562003-03-23 20:42:17 +0000964> place to save the <GTKDOCLINK
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000965HREF="STRDUP"
966>strdup</GTKDOCLINK
967>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000968></TR
969><TR
970><TD
971WIDTH="20%"
972ALIGN="RIGHT"
973VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000974><SPAN
975CLASS="emphasis"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000976><I
977CLASS="EMPHASIS"
978>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000979></SPAN
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000980> :</TD
981><TD
982WIDTH="80%"
983ALIGN="LEFT"
984VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000985>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000986></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000987></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000988></TABLE
989><P
990></P
991></DIV
992></DIV
993><HR><DIV
994CLASS="REFSECT2"
995><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000996NAME="AEN29590"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000997></A
998><H3
999><A
1000NAME="XMLINITMEMORY"
1001></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001002>xmlInitMemory ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001003><TABLE
1004BORDER="0"
1005BGCOLOR="#D6E8FF"
1006WIDTH="100%"
1007CELLPADDING="6"
1008><TR
1009><TD
1010><PRE
1011CLASS="PROGRAMLISTING"
1012>int xmlInitMemory (void);</PRE
1013></TD
1014></TR
1015></TABLE
1016><P
1017>Initialize the memory layer.</P
1018><P
1019></P
1020><DIV
1021CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001022><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001023NAME="AEN29596"
1024></A
1025><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001026></P
1027><TABLE
1028BORDER="0"
1029WIDTH="100%"
1030BGCOLOR="#FFD0D0"
1031CELLSPACING="0"
1032CELLPADDING="4"
1033CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001034><TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001035><TR
1036><TD
1037WIDTH="20%"
1038ALIGN="RIGHT"
1039VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001040><SPAN
1041CLASS="emphasis"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001042><I
1043CLASS="EMPHASIS"
1044>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001045></SPAN
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001046> :</TD
1047><TD
1048WIDTH="80%"
1049ALIGN="LEFT"
1050VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001051>0 on success</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001052></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001053></TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001054></TABLE
1055><P
1056></P
1057></DIV
1058></DIV
1059><HR><DIV
1060CLASS="REFSECT2"
1061><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001062NAME="AEN29605"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001063></A
1064><H3
1065><A
1066NAME="XMLMEMUSED"
1067></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001068>xmlMemUsed ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001069><TABLE
1070BORDER="0"
1071BGCOLOR="#D6E8FF"
1072WIDTH="100%"
1073CELLPADDING="6"
1074><TR
1075><TD
1076><PRE
1077CLASS="PROGRAMLISTING"
1078>int xmlMemUsed (void);</PRE
1079></TD
1080></TR
1081></TABLE
1082><P
Daniel Veillardaec63562003-03-23 20:42:17 +00001083>Provides the amount of memory currently allocated</P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001084><P
1085></P
1086><DIV
1087CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001088><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001089NAME="AEN29611"
1090></A
1091><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001092></P
1093><TABLE
1094BORDER="0"
1095WIDTH="100%"
1096BGCOLOR="#FFD0D0"
1097CELLSPACING="0"
1098CELLPADDING="4"
1099CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001100><TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001101><TR
1102><TD
1103WIDTH="20%"
1104ALIGN="RIGHT"
1105VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001106><SPAN
1107CLASS="emphasis"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001108><I
1109CLASS="EMPHASIS"
1110>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001111></SPAN
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001112> :</TD
1113><TD
1114WIDTH="80%"
1115ALIGN="LEFT"
1116VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001117>an int representing the amount of memory allocated.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001118></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001119></TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001120></TABLE
1121><P
1122></P
1123></DIV
1124></DIV
1125><HR><DIV
1126CLASS="REFSECT2"
1127><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001128NAME="AEN29620"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001129></A
1130><H3
1131><A
1132NAME="XMLMEMDISPLAY"
1133></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001134>xmlMemDisplay ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001135><TABLE
1136BORDER="0"
1137BGCOLOR="#D6E8FF"
1138WIDTH="100%"
1139CELLPADDING="6"
1140><TR
1141><TD
1142><PRE
1143CLASS="PROGRAMLISTING"
1144>void xmlMemDisplay (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +00001145HREF="FILE-CAPS"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001146>FILE</GTKDOCLINK
1147> *fp);</PRE
1148></TD
1149></TR
1150></TABLE
1151><P
1152>show in-extenso the memory blocks allocated</P
1153><P
1154></P
1155><DIV
1156CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001157><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001158NAME="AEN29627"
1159></A
1160><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001161></P
1162><TABLE
1163BORDER="0"
1164WIDTH="100%"
1165BGCOLOR="#FFD0D0"
1166CELLSPACING="0"
1167CELLPADDING="4"
1168CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001169><TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001170><TR
1171><TD
1172WIDTH="20%"
1173ALIGN="RIGHT"
1174VALIGN="TOP"
1175><TT
1176CLASS="PARAMETER"
1177><I
1178>fp</I
1179></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001180>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001181><TD
1182WIDTH="80%"
1183ALIGN="LEFT"
1184VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001185> a FILE descriptor used as the output file, if NULL, the result is
Daniel Veillardaec63562003-03-23 20:42:17 +00001186 written to the file .memorylist</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001187></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001188></TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001189></TABLE
1190><P
1191></P
1192></DIV
1193></DIV
1194><HR><DIV
1195CLASS="REFSECT2"
1196><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001197NAME="AEN29636"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001198></A
1199><H3
1200><A
1201NAME="XMLMEMSHOW"
1202></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001203>xmlMemShow ()</H3
Daniel Veillardf3a73582000-01-05 14:58:39 +00001204><TABLE
1205BORDER="0"
1206BGCOLOR="#D6E8FF"
1207WIDTH="100%"
1208CELLPADDING="6"
1209><TR
1210><TD
1211><PRE
1212CLASS="PROGRAMLISTING"
1213>void xmlMemShow (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +00001214HREF="FILE-CAPS"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001215>FILE</GTKDOCLINK
1216> *fp,
1217 int nr);</PRE
1218></TD
1219></TR
1220></TABLE
1221><P
1222>show a show display of the memory allocated, and dump
1223the <TT
1224CLASS="PARAMETER"
1225><I
1226>nr</I
1227></TT
1228> last allocated areas which were not freed</P
1229><P
1230></P
1231><DIV
1232CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001233><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001234NAME="AEN29644"
1235></A
1236><P
Daniel Veillardf3a73582000-01-05 14:58:39 +00001237></P
1238><TABLE
1239BORDER="0"
1240WIDTH="100%"
1241BGCOLOR="#FFD0D0"
1242CELLSPACING="0"
1243CELLPADDING="4"
1244CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001245><TBODY
Daniel Veillardf3a73582000-01-05 14:58:39 +00001246><TR
1247><TD
1248WIDTH="20%"
1249ALIGN="RIGHT"
1250VALIGN="TOP"
1251><TT
1252CLASS="PARAMETER"
1253><I
1254>fp</I
1255></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001256>&nbsp;:</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001257><TD
1258WIDTH="80%"
1259ALIGN="LEFT"
1260VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001261> a FILE descriptor used as the output file</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001262></TR
1263><TR
1264><TD
1265WIDTH="20%"
1266ALIGN="RIGHT"
1267VALIGN="TOP"
1268><TT
1269CLASS="PARAMETER"
1270><I
1271>nr</I
1272></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001273>&nbsp;:</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001274><TD
1275WIDTH="80%"
1276ALIGN="LEFT"
1277VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001278> number of entries to dump</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001279></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001280></TBODY
Daniel Veillardf3a73582000-01-05 14:58:39 +00001281></TABLE
1282><P
1283></P
1284></DIV
1285></DIV
1286><HR><DIV
1287CLASS="REFSECT2"
1288><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001289NAME="AEN29657"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001290></A
1291><H3
1292><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001293NAME="XMLMEMORYDUMP"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001294></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001295>xmlMemoryDump ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001296><TABLE
1297BORDER="0"
1298BGCOLOR="#D6E8FF"
1299WIDTH="100%"
1300CELLPADDING="6"
1301><TR
1302><TD
1303><PRE
1304CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001305>void xmlMemoryDump (void);</PRE
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001306></TD
1307></TR
1308></TABLE
1309><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001310>Dump in-extenso the memory blocks allocated to the file .memorylist</P
1311><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001312></P
1313></DIV
1314><HR><DIV
1315CLASS="REFSECT2"
1316><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001317NAME="AEN29663"
1318></A
1319><H3
1320><A
1321NAME="XMLMEMMALLOC"
1322></A
1323>xmlMemMalloc ()</H3
1324><TABLE
1325BORDER="0"
1326BGCOLOR="#D6E8FF"
1327WIDTH="100%"
1328CELLPADDING="6"
1329><TR
1330><TD
1331><PRE
1332CLASS="PROGRAMLISTING"
1333>void* xmlMemMalloc (<GTKDOCLINK
1334HREF="SIZE-T"
1335>size_t</GTKDOCLINK
1336> size);</PRE
1337></TD
1338></TR
1339></TABLE
1340><P
1341>a <GTKDOCLINK
1342HREF="MALLOC"
1343>malloc</GTKDOCLINK
1344>() equivalent, with logging of the allocation info.</P
1345><P
1346></P
1347><DIV
1348CLASS="INFORMALTABLE"
1349><A
1350NAME="AEN29671"
1351></A
1352><P
1353></P
1354><TABLE
1355BORDER="0"
1356WIDTH="100%"
1357BGCOLOR="#FFD0D0"
1358CELLSPACING="0"
1359CELLPADDING="4"
1360CLASS="CALSTABLE"
1361><TBODY
1362><TR
1363><TD
1364WIDTH="20%"
1365ALIGN="RIGHT"
1366VALIGN="TOP"
1367><TT
1368CLASS="PARAMETER"
1369><I
1370>size</I
1371></TT
1372>&nbsp;:</TD
1373><TD
1374WIDTH="80%"
1375ALIGN="LEFT"
1376VALIGN="TOP"
1377> an int specifying the size in byte to allocate.</TD
1378></TR
1379></TBODY
1380></TABLE
1381><P
1382></P
1383></DIV
1384></DIV
1385><HR><DIV
1386CLASS="REFSECT2"
1387><A
1388NAME="AEN29680"
1389></A
1390><H3
1391><A
1392NAME="XMLMEMREALLOC"
1393></A
1394>xmlMemRealloc ()</H3
1395><TABLE
1396BORDER="0"
1397BGCOLOR="#D6E8FF"
1398WIDTH="100%"
1399CELLPADDING="6"
1400><TR
1401><TD
1402><PRE
1403CLASS="PROGRAMLISTING"
1404>void* xmlMemRealloc (void *ptr,
1405 <GTKDOCLINK
1406HREF="SIZE-T"
1407>size_t</GTKDOCLINK
1408> size);</PRE
1409></TD
1410></TR
1411></TABLE
1412><P
1413>a <GTKDOCLINK
1414HREF="REALLOC"
1415>realloc</GTKDOCLINK
1416>() equivalent, with logging of the allocation info.</P
1417><P
1418></P
1419><DIV
1420CLASS="INFORMALTABLE"
1421><A
1422NAME="AEN29688"
1423></A
1424><P
1425></P
1426><TABLE
1427BORDER="0"
1428WIDTH="100%"
1429BGCOLOR="#FFD0D0"
1430CELLSPACING="0"
1431CELLPADDING="4"
1432CLASS="CALSTABLE"
1433><TBODY
1434><TR
1435><TD
1436WIDTH="20%"
1437ALIGN="RIGHT"
1438VALIGN="TOP"
1439><TT
1440CLASS="PARAMETER"
1441><I
1442>ptr</I
1443></TT
1444>&nbsp;:</TD
1445><TD
1446WIDTH="80%"
1447ALIGN="LEFT"
1448VALIGN="TOP"
1449> the initial memory block pointer</TD
1450></TR
1451><TR
1452><TD
1453WIDTH="20%"
1454ALIGN="RIGHT"
1455VALIGN="TOP"
1456><TT
1457CLASS="PARAMETER"
1458><I
1459>size</I
1460></TT
1461>&nbsp;:</TD
1462><TD
1463WIDTH="80%"
1464ALIGN="LEFT"
1465VALIGN="TOP"
1466> an int specifying the size in byte to allocate.</TD
1467></TR
1468></TBODY
1469></TABLE
1470><P
1471></P
1472></DIV
1473></DIV
1474><HR><DIV
1475CLASS="REFSECT2"
1476><A
1477NAME="AEN29701"
1478></A
1479><H3
1480><A
1481NAME="XMLMEMFREE"
1482></A
1483>xmlMemFree ()</H3
1484><TABLE
1485BORDER="0"
1486BGCOLOR="#D6E8FF"
1487WIDTH="100%"
1488CELLPADDING="6"
1489><TR
1490><TD
1491><PRE
1492CLASS="PROGRAMLISTING"
1493>void xmlMemFree (void *ptr);</PRE
1494></TD
1495></TR
1496></TABLE
1497><P
1498>a <GTKDOCLINK
1499HREF="FREE"
1500>free</GTKDOCLINK
1501>() equivalent, with error checking.</P
1502><P
1503></P
1504><DIV
1505CLASS="INFORMALTABLE"
1506><A
1507NAME="AEN29708"
1508></A
1509><P
1510></P
1511><TABLE
1512BORDER="0"
1513WIDTH="100%"
1514BGCOLOR="#FFD0D0"
1515CELLSPACING="0"
1516CELLPADDING="4"
1517CLASS="CALSTABLE"
1518><TBODY
1519><TR
1520><TD
1521WIDTH="20%"
1522ALIGN="RIGHT"
1523VALIGN="TOP"
1524><TT
1525CLASS="PARAMETER"
1526><I
1527>ptr</I
1528></TT
1529>&nbsp;:</TD
1530><TD
1531WIDTH="80%"
1532ALIGN="LEFT"
1533VALIGN="TOP"
1534> the memory block pointer</TD
1535></TR
1536></TBODY
1537></TABLE
1538><P
1539></P
1540></DIV
1541></DIV
1542><HR><DIV
1543CLASS="REFSECT2"
1544><A
1545NAME="AEN29717"
1546></A
1547><H3
1548><A
1549NAME="XMLMEMORYSTRDUP"
1550></A
1551>xmlMemoryStrdup ()</H3
1552><TABLE
1553BORDER="0"
1554BGCOLOR="#D6E8FF"
1555WIDTH="100%"
1556CELLPADDING="6"
1557><TR
1558><TD
1559><PRE
1560CLASS="PROGRAMLISTING"
1561>char* xmlMemoryStrdup (const char *str);</PRE
1562></TD
1563></TR
1564></TABLE
1565><P
1566>a <GTKDOCLINK
1567HREF="STRDUP"
1568>strdup</GTKDOCLINK
1569>() equivalent, with logging of the allocation info.</P
1570><P
1571></P
1572><DIV
1573CLASS="INFORMALTABLE"
1574><A
1575NAME="AEN29724"
1576></A
1577><P
1578></P
1579><TABLE
1580BORDER="0"
1581WIDTH="100%"
1582BGCOLOR="#FFD0D0"
1583CELLSPACING="0"
1584CELLPADDING="4"
1585CLASS="CALSTABLE"
1586><TBODY
1587><TR
1588><TD
1589WIDTH="20%"
1590ALIGN="RIGHT"
1591VALIGN="TOP"
1592><TT
1593CLASS="PARAMETER"
1594><I
1595>str</I
1596></TT
1597>&nbsp;:</TD
1598><TD
1599WIDTH="80%"
1600ALIGN="LEFT"
1601VALIGN="TOP"
1602> the initial string pointer</TD
1603></TR
1604><TR
1605><TD
1606WIDTH="20%"
1607ALIGN="RIGHT"
1608VALIGN="TOP"
1609><SPAN
1610CLASS="emphasis"
1611><I
1612CLASS="EMPHASIS"
1613>Returns</I
1614></SPAN
1615> :</TD
1616><TD
1617WIDTH="80%"
1618ALIGN="LEFT"
1619VALIGN="TOP"
1620>a pointer to the new string or NULL if allocation error occurred.</TD
1621></TR
1622></TBODY
1623></TABLE
1624><P
1625></P
1626></DIV
1627></DIV
1628><HR><DIV
1629CLASS="REFSECT2"
1630><A
1631NAME="AEN29737"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001632></A
1633><H3
1634><A
1635NAME="XMLMALLOC"
1636></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001637>xmlMalloc()</H3
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001638><TABLE
1639BORDER="0"
1640BGCOLOR="#D6E8FF"
1641WIDTH="100%"
1642CELLPADDING="6"
1643><TR
1644><TD
1645><PRE
1646CLASS="PROGRAMLISTING"
Daniel Veillard52dcab32001-10-30 12:51:17 +00001647>#define xmlMalloc(size)</PRE
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001648></TD
1649></TR
1650></TABLE
1651><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001652>Wrapper for the <GTKDOCLINK
1653HREF="MALLOC"
1654>malloc</GTKDOCLINK
Daniel Veillard19274092002-03-25 16:48:03 +00001655>() function used in the XML library.</P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001656><P
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001657></P
1658><DIV
1659CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001660><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001661NAME="AEN29744"
1662></A
1663><P
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001664></P
1665><TABLE
1666BORDER="0"
1667WIDTH="100%"
1668BGCOLOR="#FFD0D0"
1669CELLSPACING="0"
1670CELLPADDING="4"
1671CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001672><TBODY
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001673><TR
1674><TD
1675WIDTH="20%"
1676ALIGN="RIGHT"
1677VALIGN="TOP"
1678><TT
1679CLASS="PARAMETER"
1680><I
Daniel Veillardf012a642001-07-23 19:10:52 +00001681>size</I
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001682></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001683>&nbsp;:</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001684><TD
1685WIDTH="80%"
1686ALIGN="LEFT"
1687VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001688> number of bytes to allocate</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001689></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001690></TBODY
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001691></TABLE
1692><P
1693></P
1694></DIV
1695></DIV
1696><HR><DIV
1697CLASS="REFSECT2"
1698><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001699NAME="AEN29753"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001700></A
1701><H3
1702><A
1703NAME="XMLREALLOC"
1704></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001705>xmlRealloc()</H3
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001706><TABLE
1707BORDER="0"
1708BGCOLOR="#D6E8FF"
1709WIDTH="100%"
1710CELLPADDING="6"
1711><TR
1712><TD
1713><PRE
1714CLASS="PROGRAMLISTING"
Daniel Veillard52dcab32001-10-30 12:51:17 +00001715>#define xmlRealloc(ptr, size)</PRE
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001716></TD
1717></TR
1718></TABLE
1719><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001720>Wrapper for the <GTKDOCLINK
1721HREF="REALLOC"
1722>realloc</GTKDOCLINK
Daniel Veillard19274092002-03-25 16:48:03 +00001723>() function used in the XML library.</P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001724><P
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001725></P
1726><DIV
1727CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001728><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001729NAME="AEN29760"
1730></A
1731><P
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001732></P
1733><TABLE
1734BORDER="0"
1735WIDTH="100%"
1736BGCOLOR="#FFD0D0"
1737CELLSPACING="0"
1738CELLPADDING="4"
1739CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001740><TBODY
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001741><TR
1742><TD
1743WIDTH="20%"
1744ALIGN="RIGHT"
1745VALIGN="TOP"
1746><TT
1747CLASS="PARAMETER"
1748><I
Daniel Veillardf012a642001-07-23 19:10:52 +00001749>ptr</I
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001750></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001751>&nbsp;:</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001752><TD
1753WIDTH="80%"
1754ALIGN="LEFT"
1755VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001756> pointer to the existing allocated area</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001757></TR
1758><TR
1759><TD
1760WIDTH="20%"
1761ALIGN="RIGHT"
1762VALIGN="TOP"
1763><TT
1764CLASS="PARAMETER"
1765><I
Daniel Veillardf012a642001-07-23 19:10:52 +00001766>size</I
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001767></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001768>&nbsp;:</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001769><TD
1770WIDTH="80%"
1771ALIGN="LEFT"
1772VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001773> number of bytes to allocate</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001774></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001775></TBODY
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001776></TABLE
1777><P
1778></P
1779></DIV
1780></DIV
1781><HR><DIV
1782CLASS="REFSECT2"
1783><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001784NAME="AEN29773"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001785></A
1786><H3
1787><A
1788NAME="XMLMEMSTRDUP"
1789></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001790>xmlMemStrdup()</H3
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001791><TABLE
1792BORDER="0"
1793BGCOLOR="#D6E8FF"
1794WIDTH="100%"
1795CELLPADDING="6"
1796><TR
1797><TD
1798><PRE
1799CLASS="PROGRAMLISTING"
Daniel Veillard52dcab32001-10-30 12:51:17 +00001800>#define xmlMemStrdup(str)</PRE
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001801></TD
1802></TR
1803></TABLE
1804><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001805>Wrapper for the <GTKDOCLINK
1806HREF="STRDUP"
1807>strdup</GTKDOCLINK
1808>() function, <A
1809HREF="libxml-parser.html#XMLSTRDUP"
1810>xmlStrdup</A
Daniel Veillard19274092002-03-25 16:48:03 +00001811>() is usually preferred.</P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001812><P
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001813></P
1814><DIV
1815CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001816><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001817NAME="AEN29781"
1818></A
1819><P
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001820></P
1821><TABLE
1822BORDER="0"
1823WIDTH="100%"
1824BGCOLOR="#FFD0D0"
1825CELLSPACING="0"
1826CELLPADDING="4"
1827CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001828><TBODY
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001829><TR
1830><TD
1831WIDTH="20%"
1832ALIGN="RIGHT"
1833VALIGN="TOP"
1834><TT
1835CLASS="PARAMETER"
1836><I
Daniel Veillardf012a642001-07-23 19:10:52 +00001837>str</I
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001838></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001839>&nbsp;:</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001840><TD
1841WIDTH="80%"
1842ALIGN="LEFT"
1843VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001844> pointer to the existing string</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001845></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001846></TBODY
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001847></TABLE
1848><P
1849></P
1850></DIV
1851></DIV
1852><HR><DIV
1853CLASS="REFSECT2"
1854><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001855NAME="AEN29790"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001856></A
1857><H3
1858><A
1859NAME="XMLMALLOCLOC"
1860></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001861>xmlMallocLoc ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001862><TABLE
1863BORDER="0"
1864BGCOLOR="#D6E8FF"
1865WIDTH="100%"
1866CELLPADDING="6"
1867><TR
1868><TD
1869><PRE
1870CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +00001871>void* xmlMallocLoc (<GTKDOCLINK
1872HREF="SIZE-T"
1873>size_t</GTKDOCLINK
1874> size,
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001875 const char *file,
1876 int line);</PRE
1877></TD
1878></TR
1879></TABLE
1880><P
1881>a <GTKDOCLINK
1882HREF="MALLOC"
1883>malloc</GTKDOCLINK
1884>() equivalent, with logging of the allocation info.</P
1885><P
1886></P
1887><DIV
1888CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001889><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001890NAME="AEN29798"
1891></A
1892><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001893></P
1894><TABLE
1895BORDER="0"
1896WIDTH="100%"
1897BGCOLOR="#FFD0D0"
1898CELLSPACING="0"
1899CELLPADDING="4"
1900CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001901><TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001902><TR
1903><TD
1904WIDTH="20%"
1905ALIGN="RIGHT"
1906VALIGN="TOP"
1907><TT
1908CLASS="PARAMETER"
1909><I
1910>size</I
1911></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001912>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001913><TD
1914WIDTH="80%"
1915ALIGN="LEFT"
1916VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001917> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001918></TR
1919><TR
1920><TD
1921WIDTH="20%"
1922ALIGN="RIGHT"
1923VALIGN="TOP"
1924><TT
1925CLASS="PARAMETER"
1926><I
1927>file</I
1928></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001929>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001930><TD
1931WIDTH="80%"
1932ALIGN="LEFT"
1933VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001934> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001935></TR
1936><TR
1937><TD
1938WIDTH="20%"
1939ALIGN="RIGHT"
1940VALIGN="TOP"
1941><TT
1942CLASS="PARAMETER"
1943><I
1944>line</I
1945></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001946>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001947><TD
1948WIDTH="80%"
1949ALIGN="LEFT"
1950VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001951> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001952></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001953></TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001954></TABLE
1955><P
1956></P
1957></DIV
1958></DIV
1959><HR><DIV
1960CLASS="REFSECT2"
1961><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001962NAME="AEN29815"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001963></A
1964><H3
1965><A
1966NAME="XMLREALLOCLOC"
1967></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001968>xmlReallocLoc ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001969><TABLE
1970BORDER="0"
1971BGCOLOR="#D6E8FF"
1972WIDTH="100%"
1973CELLPADDING="6"
1974><TR
1975><TD
1976><PRE
1977CLASS="PROGRAMLISTING"
1978>void* xmlReallocLoc (void *ptr,
Daniel Veillardf012a642001-07-23 19:10:52 +00001979 <GTKDOCLINK
1980HREF="SIZE-T"
1981>size_t</GTKDOCLINK
1982> size,
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001983 const char *file,
1984 int line);</PRE
1985></TD
1986></TR
1987></TABLE
1988><P
1989>a <GTKDOCLINK
1990HREF="REALLOC"
1991>realloc</GTKDOCLINK
1992>() equivalent, with logging of the allocation info.</P
1993><P
1994></P
1995><DIV
1996CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001997><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001998NAME="AEN29823"
1999></A
2000><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002001></P
2002><TABLE
2003BORDER="0"
2004WIDTH="100%"
2005BGCOLOR="#FFD0D0"
2006CELLSPACING="0"
2007CELLPADDING="4"
2008CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002009><TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002010><TR
2011><TD
2012WIDTH="20%"
2013ALIGN="RIGHT"
2014VALIGN="TOP"
2015><TT
2016CLASS="PARAMETER"
2017><I
2018>ptr</I
2019></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002020>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002021><TD
2022WIDTH="80%"
2023ALIGN="LEFT"
2024VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002025> the initial memory block pointer</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002026></TR
2027><TR
2028><TD
2029WIDTH="20%"
2030ALIGN="RIGHT"
2031VALIGN="TOP"
2032><TT
2033CLASS="PARAMETER"
2034><I
2035>size</I
2036></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002037>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002038><TD
2039WIDTH="80%"
2040ALIGN="LEFT"
2041VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002042> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002043></TR
2044><TR
2045><TD
2046WIDTH="20%"
2047ALIGN="RIGHT"
2048VALIGN="TOP"
2049><TT
2050CLASS="PARAMETER"
2051><I
2052>file</I
2053></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002054>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002055><TD
2056WIDTH="80%"
2057ALIGN="LEFT"
2058VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002059> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002060></TR
2061><TR
2062><TD
2063WIDTH="20%"
2064ALIGN="RIGHT"
2065VALIGN="TOP"
2066><TT
2067CLASS="PARAMETER"
2068><I
2069>line</I
2070></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002071>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002072><TD
2073WIDTH="80%"
2074ALIGN="LEFT"
2075VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002076> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002077></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002078></TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002079></TABLE
2080><P
2081></P
2082></DIV
2083></DIV
2084><HR><DIV
2085CLASS="REFSECT2"
2086><A
Daniel Veillardaec63562003-03-23 20:42:17 +00002087NAME="AEN29844"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002088></A
2089><H3
2090><A
2091NAME="XMLMEMSTRDUPLOC"
2092></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00002093>xmlMemStrdupLoc ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002094><TABLE
2095BORDER="0"
2096BGCOLOR="#D6E8FF"
2097WIDTH="100%"
2098CELLPADDING="6"
2099><TR
2100><TD
2101><PRE
2102CLASS="PROGRAMLISTING"
2103>char* xmlMemStrdupLoc (const char *str,
2104 const char *file,
2105 int line);</PRE
2106></TD
2107></TR
2108></TABLE
2109><P
2110>a <GTKDOCLINK
2111HREF="STRDUP"
2112>strdup</GTKDOCLINK
2113>() equivalent, with logging of the allocation info.</P
2114><P
2115></P
2116><DIV
2117CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002118><A
Daniel Veillardaec63562003-03-23 20:42:17 +00002119NAME="AEN29851"
2120></A
2121><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002122></P
2123><TABLE
2124BORDER="0"
2125WIDTH="100%"
2126BGCOLOR="#FFD0D0"
2127CELLSPACING="0"
2128CELLPADDING="4"
2129CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002130><TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002131><TR
2132><TD
2133WIDTH="20%"
2134ALIGN="RIGHT"
2135VALIGN="TOP"
2136><TT
2137CLASS="PARAMETER"
2138><I
2139>str</I
2140></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002141>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002142><TD
2143WIDTH="80%"
2144ALIGN="LEFT"
2145VALIGN="TOP"
Daniel Veillard5f4b5992002-02-20 10:22:49 +00002146> the initial string pointer</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002147></TR
2148><TR
2149><TD
2150WIDTH="20%"
2151ALIGN="RIGHT"
2152VALIGN="TOP"
2153><TT
2154CLASS="PARAMETER"
2155><I
2156>file</I
2157></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002158>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002159><TD
2160WIDTH="80%"
2161ALIGN="LEFT"
2162VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002163> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002164></TR
2165><TR
2166><TD
2167WIDTH="20%"
2168ALIGN="RIGHT"
2169VALIGN="TOP"
2170><TT
2171CLASS="PARAMETER"
2172><I
2173>line</I
2174></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002175>&nbsp;:</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002176><TD
2177WIDTH="80%"
2178ALIGN="LEFT"
2179VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002180> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002181></TR
2182><TR
2183><TD
2184WIDTH="20%"
2185ALIGN="RIGHT"
2186VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00002187><SPAN
2188CLASS="emphasis"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002189><I
2190CLASS="EMPHASIS"
2191>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00002192></SPAN
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002193> :</TD
2194><TD
2195WIDTH="80%"
2196ALIGN="LEFT"
2197VALIGN="TOP"
Daniel Veillard744683d2002-01-14 17:30:20 +00002198>a pointer to the new string or NULL if allocation error occurred.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002199></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002200></TBODY
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002201></TABLE
2202><P
2203></P
2204></DIV
2205></DIV
2206></DIV
2207><DIV
2208CLASS="NAVFOOTER"
2209><BR
2210CLEAR="all"><BR><TABLE
2211WIDTH="100%"
2212BORDER="0"
2213BGCOLOR="#000000"
2214CELLPADDING="1"
2215CELLSPACING="0"
2216><TR
2217><TD
2218WIDTH="25%"
2219BGCOLOR="#C00000"
2220ALIGN="left"
2221><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00002222HREF="libxml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002223><FONT
2224COLOR="#FFFFFF"
2225SIZE="3"
2226><B
2227>&#60;&#60;&#60; Previous Page</B
2228></FONT
2229></A
2230></TD
2231><TD
2232WIDTH="25%"
2233BGCOLOR="#0000C0"
2234ALIGN="center"
2235><FONT
2236COLOR="#FFFFFF"
2237SIZE="3"
2238><B
2239><A
2240HREF="book1.html"
2241><FONT
2242COLOR="#FFFFFF"
2243SIZE="3"
2244><B
2245>Home</B
2246></FONT
2247></A
2248></B
2249></FONT
2250></TD
2251><TD
2252WIDTH="25%"
2253BGCOLOR="#00C000"
2254ALIGN="center"
2255><FONT
2256COLOR="#FFFFFF"
2257SIZE="3"
2258><B
2259><A
Daniel Veillard35008381999-10-25 13:15:52 +00002260HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002261><FONT
2262COLOR="#FFFFFF"
2263SIZE="3"
2264><B
2265>Up</B
2266></FONT
2267></A
2268></B
2269></FONT
2270></TD
2271><TD
2272WIDTH="25%"
2273BGCOLOR="#C00000"
2274ALIGN="right"
Daniel Veillard2ace1952002-09-26 12:28:02 +00002275><A
2276HREF="libxml-xmlregexp.html"
2277><FONT
2278COLOR="#FFFFFF"
2279SIZE="3"
2280><B
2281>Next Page &#62;&#62;&#62;</B
2282></FONT
2283></A
2284></TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002285></TR
2286><TR
2287><TD
2288COLSPAN="2"
2289ALIGN="left"
2290><FONT
2291COLOR="#FFFFFF"
2292SIZE="3"
2293><B
Daniel Veillard294cbca1999-12-03 13:19:09 +00002294>debugXML</B
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002295></FONT
2296></TD
2297><TD
2298COLSPAN="2"
2299ALIGN="right"
Daniel Veillard2ace1952002-09-26 12:28:02 +00002300><FONT
2301COLOR="#FFFFFF"
2302SIZE="3"
2303><B
2304>xmlregexp</B
2305></FONT
2306></TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00002307></TR
2308></TABLE
2309></DIV
2310></BODY
2311></HTML
2312>