blob: 2139a497bfb6feae71f62b65aa7c589bdba7cf60 [file] [log] [blame]
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001<HTML
2><HEAD
3><TITLE
4>xmlmemory</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard503b8932001-01-05 06:36:31 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
Daniel Veillard7c1206f1999-10-14 09:10:25 +00008REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000012TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
Daniel Veillard7c1206f1999-10-14 09:10:25 +000014REL="PREVIOUS"
Daniel Veillard294cbca1999-12-03 13:19:09 +000015TITLE="debugXML"
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000016HREF="libxml-debugxml.html"></HEAD
Daniel Veillard7c1206f1999-10-14 09:10:25 +000017><BODY
18BGCOLOR="#FFFFFF"
19TEXT="#000000"
Daniel Veillard503b8932001-01-05 06:36:31 +000020LINK="#0000FF"
21VLINK="#840084"
22ALINK="#0000FF"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000023><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
28BGCOLOR="#000000"
29CELLPADDING="1"
30CELLSPACING="0"
31><TR
32><TH
33COLSPAN="4"
34ALIGN="center"
35><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
40></TR
41><TR
42><TD
43WIDTH="25%"
44BGCOLOR="#C00000"
45ALIGN="left"
46><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000047HREF="libxml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000048><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
55></TD
56><TD
57WIDTH="25%"
58BGCOLOR="#0000C0"
59ALIGN="center"
60><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
75></TD
76><TD
77WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
Daniel Veillard35008381999-10-25 13:15:52 +000085HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000086><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
99ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +0000100>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000101></TR
102></TABLE
103></DIV
104><H1
Daniel Veillard503b8932001-01-05 06:36:31 +0000105><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000106NAME="LIBXML-XMLMEMORY"
Daniel Veillard503b8932001-01-05 06:36:31 +0000107>xmlmemory</A
108></H1
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000109><DIV
110CLASS="REFNAMEDIV"
111><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000112NAME="AEN19093"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000113></A
114><H2
115>Name</H2
Daniel Veillard503b8932001-01-05 06:36:31 +0000116>xmlmemory&nbsp;--&nbsp;</DIV
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000117><DIV
118CLASS="REFSYNOPSISDIV"
119><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000120NAME="AEN19096"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000121></A
122><H2
123>Synopsis</H2
124><TABLE
125BORDER="0"
126BGCOLOR="#D6E8FF"
127WIDTH="100%"
128CELLPADDING="6"
129><TR
130><TD
131><PRE
132CLASS="SYNOPSIS"
133>&#13;
134
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000135#define <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000136HREF="libxml-xmlmemory.html#DEBUG-MEMORY-CAPS"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000137>DEBUG_MEMORY</A
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000138>
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000139#define <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000140HREF="libxml-xmlmemory.html#MEM-LIST-CAPS"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000141>MEM_LIST</A
142>
Daniel Veillarde356c282001-03-10 12:32:04 +0000143#define <A
144HREF="libxml-xmlmemory.html#MEM-CLEANUP-CAPS"
145>MEM_CLEANUP</A
146> (p,l)
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000147void (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000148HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000149>*xmlFreeFunc</A
150>) (void*);
151void* (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000152HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000153>*xmlMallocFunc</A
154>) (...);
155void* (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000156HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000157>*xmlReallocFunc</A
158>) (void*,
159 ...);
160char* (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000161HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000162>*xmlStrdupFunc</A
163>) (const char*);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000164int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000165HREF="libxml-xmlmemory.html#XMLMEMSETUP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000166>xmlMemSetup</A
167> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000168HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000169>xmlFreeFunc</A
170> freeFunc,
171 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000172HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000173>xmlMallocFunc</A
174> mallocFunc,
175 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000176HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000177>xmlReallocFunc</A
178> reallocFunc,
179 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000180HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000181>xmlStrdupFunc</A
182> strdupFunc);
183int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000184HREF="libxml-xmlmemory.html#XMLMEMGET"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000185>xmlMemGet</A
186> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000187HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000188>xmlFreeFunc</A
189> *freeFunc,
190 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000191HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000192>xmlMallocFunc</A
193> *mallocFunc,
194 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000195HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000196>xmlReallocFunc</A
197> *reallocFunc,
198 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000199HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000200>xmlStrdupFunc</A
201> *strdupFunc);
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000202int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000203HREF="libxml-xmlmemory.html#XMLINITMEMORY"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000204>xmlInitMemory</A
205> (void);
206int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000207HREF="libxml-xmlmemory.html#XMLMEMUSED"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000208>xmlMemUsed</A
209> (void);
210void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000211HREF="libxml-xmlmemory.html#XMLMEMDISPLAY"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000212>xmlMemDisplay</A
213> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000214HREF="FILE-CAPS"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000215>FILE</GTKDOCLINK
216> *fp);
Daniel Veillardf3a73582000-01-05 14:58:39 +0000217void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000218HREF="libxml-xmlmemory.html#XMLMEMSHOW"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000219>xmlMemShow</A
220> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000221HREF="FILE-CAPS"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000222>FILE</GTKDOCLINK
223> *fp,
224 int nr);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000225void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000226HREF="libxml-xmlmemory.html#XMLMEMORYDUMP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000227>xmlMemoryDump</A
228> (void);
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000229#define <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000230HREF="libxml-xmlmemory.html#XMLMALLOC"
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000231>xmlMalloc</A
232> (x)
233#define <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000234HREF="libxml-xmlmemory.html#XMLREALLOC"
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000235>xmlRealloc</A
236> (p, x)
237#define <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000238HREF="libxml-xmlmemory.html#XMLMEMSTRDUP"
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000239>xmlMemStrdup</A
240> (x)
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000241void* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000242HREF="libxml-xmlmemory.html#XMLMALLOCLOC"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000243>xmlMallocLoc</A
244> (int size,
245 const char *file,
246 int line);
247void* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000248HREF="libxml-xmlmemory.html#XMLREALLOCLOC"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000249>xmlReallocLoc</A
250> (void *ptr,
251 int size,
252 const char *file,
253 int line);
254char* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000255HREF="libxml-xmlmemory.html#XMLMEMSTRDUPLOC"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000256>xmlMemStrdupLoc</A
257> (const char *str,
258 const char *file,
259 int line);</PRE
260></TD
261></TR
262></TABLE
263></DIV
264><DIV
265CLASS="REFSECT1"
266><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000267NAME="AEN19129"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000268></A
269><H2
270>Description</H2
271><P
272></P
273></DIV
274><DIV
275CLASS="REFSECT1"
276><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000277NAME="AEN19132"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000278></A
279><H2
280>Details</H2
281><DIV
282CLASS="REFSECT2"
283><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000284NAME="AEN19134"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000285></A
286><H3
287><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000288NAME="DEBUG-MEMORY-CAPS"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000289></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000290>DEBUG_MEMORY</H3
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000291><TABLE
292BORDER="0"
293BGCOLOR="#D6E8FF"
294WIDTH="100%"
295CELLPADDING="6"
296><TR
297><TD
298><PRE
299CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000300>#define DEBUG_MEMORY</PRE
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000301></TD
302></TR
303></TABLE
304><P
305></P
306></DIV
307><HR><DIV
308CLASS="REFSECT2"
309><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000310NAME="AEN19139"
Daniel Veillard8f621982000-03-20 13:07:15 +0000311></A
312><H3
313><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000314NAME="MEM-LIST-CAPS"
Daniel Veillard8f621982000-03-20 13:07:15 +0000315></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000316>MEM_LIST</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000317><TABLE
318BORDER="0"
319BGCOLOR="#D6E8FF"
320WIDTH="100%"
321CELLPADDING="6"
322><TR
323><TD
324><PRE
325CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000326>#define MEM_LIST /* keep a list of all the allocated memory blocks */</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000327></TD
328></TR
329></TABLE
330><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000331></P
332></DIV
333><HR><DIV
334CLASS="REFSECT2"
335><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000336NAME="AEN19144"
Daniel Veillarde356c282001-03-10 12:32:04 +0000337></A
338><H3
339><A
340NAME="MEM-CLEANUP-CAPS"
341></A
342>MEM_CLEANUP()</H3
343><TABLE
344BORDER="0"
345BGCOLOR="#D6E8FF"
346WIDTH="100%"
347CELLPADDING="6"
348><TR
349><TD
350><PRE
351CLASS="PROGRAMLISTING"
352>#define MEM_CLEANUP(p,l)</PRE
353></TD
354></TR
355></TABLE
356><P
357></P
358><DIV
359CLASS="INFORMALTABLE"
360><P
361></P
362><TABLE
363BORDER="0"
364WIDTH="100%"
365BGCOLOR="#FFD0D0"
366CELLSPACING="0"
367CELLPADDING="4"
368CLASS="CALSTABLE"
369><TR
370><TD
371WIDTH="20%"
372ALIGN="RIGHT"
373VALIGN="TOP"
374><TT
375CLASS="PARAMETER"
376><I
377>p</I
378></TT
379>&nbsp;:</TD
380><TD
381WIDTH="80%"
382ALIGN="LEFT"
383VALIGN="TOP"
384>&nbsp;</TD
385></TR
386><TR
387><TD
388WIDTH="20%"
389ALIGN="RIGHT"
390VALIGN="TOP"
391><TT
392CLASS="PARAMETER"
393><I
394>l</I
395></TT
396>&nbsp;:</TD
397><TD
398WIDTH="80%"
399ALIGN="LEFT"
400VALIGN="TOP"
401>&#13;</TD
402></TR
403></TABLE
404><P
405></P
406></DIV
407></DIV
408><HR><DIV
409CLASS="REFSECT2"
410><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000411NAME="AEN19162"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000412></A
413><H3
414><A
415NAME="XMLFREEFUNC"
416></A
417>xmlFreeFunc ()</H3
418><TABLE
419BORDER="0"
420BGCOLOR="#D6E8FF"
421WIDTH="100%"
422CELLPADDING="6"
423><TR
424><TD
425><PRE
426CLASS="PROGRAMLISTING"
427>void (*xmlFreeFunc) (void*);</PRE
428></TD
429></TR
430></TABLE
Daniel Veillard06047432000-04-24 11:33:38 +0000431><P
432></P
433><DIV
434CLASS="INFORMALTABLE"
435><P
436></P
437><TABLE
438BORDER="0"
439WIDTH="100%"
440BGCOLOR="#FFD0D0"
441CELLSPACING="0"
442CELLPADDING="4"
443CLASS="CALSTABLE"
444><TR
445><TD
446WIDTH="20%"
447ALIGN="RIGHT"
448VALIGN="TOP"
449><TT
450CLASS="PARAMETER"
451><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000452>Param1</I
Daniel Veillard06047432000-04-24 11:33:38 +0000453></TT
454>&nbsp;:</TD
455><TD
456WIDTH="80%"
457ALIGN="LEFT"
458VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000459>&#13;</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000460></TR
461></TABLE
462><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000463></P
464></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000465></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000466><HR><DIV
467CLASS="REFSECT2"
468><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000469NAME="AEN19176"
Daniel Veillard8f621982000-03-20 13:07:15 +0000470></A
471><H3
472><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000473NAME="XMLMALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000474></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000475>xmlMallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000476><TABLE
477BORDER="0"
478BGCOLOR="#D6E8FF"
479WIDTH="100%"
480CELLPADDING="6"
481><TR
482><TD
483><PRE
484CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000485>void* (*xmlMallocFunc) (...);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000486></TD
487></TR
488></TABLE
489><P
Daniel Veillard06047432000-04-24 11:33:38 +0000490></P
491><DIV
492CLASS="INFORMALTABLE"
493><P
494></P
495><TABLE
496BORDER="0"
497WIDTH="100%"
498BGCOLOR="#FFD0D0"
499CELLSPACING="0"
500CELLPADDING="4"
501CLASS="CALSTABLE"
502><TR
503><TD
504WIDTH="20%"
505ALIGN="RIGHT"
506VALIGN="TOP"
507><TT
508CLASS="PARAMETER"
509><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000510>...</I
Daniel Veillard06047432000-04-24 11:33:38 +0000511></TT
512>&nbsp;:</TD
513><TD
514WIDTH="80%"
515ALIGN="LEFT"
516VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000517>&#13;</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000518></TR
519></TABLE
520><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000521></P
522></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000523></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000524><HR><DIV
525CLASS="REFSECT2"
526><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000527NAME="AEN19190"
Daniel Veillard8f621982000-03-20 13:07:15 +0000528></A
529><H3
530><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000531NAME="XMLREALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000532></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000533>xmlReallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000534><TABLE
535BORDER="0"
536BGCOLOR="#D6E8FF"
537WIDTH="100%"
538CELLPADDING="6"
539><TR
540><TD
541><PRE
542CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000543>void* (*xmlReallocFunc) (void*,
544 ...);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000545></TD
546></TR
547></TABLE
548><P
Daniel Veillard06047432000-04-24 11:33:38 +0000549></P
550><DIV
551CLASS="INFORMALTABLE"
552><P
553></P
554><TABLE
555BORDER="0"
556WIDTH="100%"
557BGCOLOR="#FFD0D0"
558CELLSPACING="0"
559CELLPADDING="4"
560CLASS="CALSTABLE"
561><TR
562><TD
563WIDTH="20%"
564ALIGN="RIGHT"
565VALIGN="TOP"
566><TT
567CLASS="PARAMETER"
568><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000569>Param1</I
Daniel Veillard06047432000-04-24 11:33:38 +0000570></TT
571>&nbsp;:</TD
572><TD
573WIDTH="80%"
574ALIGN="LEFT"
575VALIGN="TOP"
576>&nbsp;</TD
577></TR
578><TR
579><TD
580WIDTH="20%"
581ALIGN="RIGHT"
582VALIGN="TOP"
583><TT
584CLASS="PARAMETER"
585><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000586>...</I
Daniel Veillard06047432000-04-24 11:33:38 +0000587></TT
588>&nbsp;:</TD
589><TD
590WIDTH="80%"
591ALIGN="LEFT"
592VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000593>&#13;</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000594></TR
595></TABLE
596><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000597></P
598></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000599></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000600><HR><DIV
601CLASS="REFSECT2"
602><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000603NAME="AEN19208"
Daniel Veillard8f621982000-03-20 13:07:15 +0000604></A
605><H3
606><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000607NAME="XMLSTRDUPFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000608></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000609>xmlStrdupFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000610><TABLE
611BORDER="0"
612BGCOLOR="#D6E8FF"
613WIDTH="100%"
614CELLPADDING="6"
615><TR
616><TD
617><PRE
618CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000619>char* (*xmlStrdupFunc) (const char*);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000620></TD
621></TR
622></TABLE
623><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000624></P
625><DIV
626CLASS="INFORMALTABLE"
627><P
628></P
629><TABLE
630BORDER="0"
631WIDTH="100%"
632BGCOLOR="#FFD0D0"
633CELLSPACING="0"
634CELLPADDING="4"
635CLASS="CALSTABLE"
636><TR
637><TD
638WIDTH="20%"
639ALIGN="RIGHT"
640VALIGN="TOP"
641><TT
642CLASS="PARAMETER"
643><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000644>Param1</I
Daniel Veillard8f621982000-03-20 13:07:15 +0000645></TT
646>&nbsp;:</TD
647><TD
648WIDTH="80%"
649ALIGN="LEFT"
650VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000651>&nbsp;</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000652></TR
653><TR
654><TD
655WIDTH="20%"
656ALIGN="RIGHT"
657VALIGN="TOP"
658><I
659CLASS="EMPHASIS"
660>Returns</I
661> :</TD
662><TD
663WIDTH="80%"
664ALIGN="LEFT"
665VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000666>&#13;</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000667></TR
668></TABLE
669><P
670></P
671></DIV
672></DIV
673><HR><DIV
674CLASS="REFSECT2"
675><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000676NAME="AEN19226"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000677></A
678><H3
679><A
680NAME="XMLMEMSETUP"
681></A
682>xmlMemSetup ()</H3
683><TABLE
684BORDER="0"
685BGCOLOR="#D6E8FF"
686WIDTH="100%"
687CELLPADDING="6"
688><TR
689><TD
690><PRE
691CLASS="PROGRAMLISTING"
692>int xmlMemSetup (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000693HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000694>xmlFreeFunc</A
695> freeFunc,
696 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000697HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000698>xmlMallocFunc</A
699> mallocFunc,
700 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000701HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000702>xmlReallocFunc</A
703> reallocFunc,
704 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000705HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000706>xmlStrdupFunc</A
707> strdupFunc);</PRE
708></TD
709></TR
710></TABLE
711><P
712>Override the default memory access functions with a new set
713This has to be called before any other libxml routines !</P
714><P
715>Should this be blocked if there was already some allocations
716done ?</P
717><P
718></P
719><DIV
720CLASS="INFORMALTABLE"
721><P
722></P
723><TABLE
724BORDER="0"
725WIDTH="100%"
726BGCOLOR="#FFD0D0"
727CELLSPACING="0"
728CELLPADDING="4"
729CLASS="CALSTABLE"
730><TR
731><TD
732WIDTH="20%"
733ALIGN="RIGHT"
734VALIGN="TOP"
735><TT
736CLASS="PARAMETER"
737><I
738>freeFunc</I
739></TT
740>&nbsp;:</TD
741><TD
742WIDTH="80%"
743ALIGN="LEFT"
744VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000745> the <GTKDOCLINK
746HREF="FREE"
747>free</GTKDOCLINK
748>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000749></TR
750><TR
751><TD
752WIDTH="20%"
753ALIGN="RIGHT"
754VALIGN="TOP"
755><TT
756CLASS="PARAMETER"
757><I
758>mallocFunc</I
759></TT
760>&nbsp;:</TD
761><TD
762WIDTH="80%"
763ALIGN="LEFT"
764VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000765> the <GTKDOCLINK
766HREF="MALLOC"
767>malloc</GTKDOCLINK
768>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000769></TR
770><TR
771><TD
772WIDTH="20%"
773ALIGN="RIGHT"
774VALIGN="TOP"
775><TT
776CLASS="PARAMETER"
777><I
778>reallocFunc</I
779></TT
780>&nbsp;:</TD
781><TD
782WIDTH="80%"
783ALIGN="LEFT"
784VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000785> the <GTKDOCLINK
786HREF="REALLOC"
787>realloc</GTKDOCLINK
788>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000789></TR
790><TR
791><TD
792WIDTH="20%"
793ALIGN="RIGHT"
794VALIGN="TOP"
795><TT
796CLASS="PARAMETER"
797><I
798>strdupFunc</I
799></TT
800>&nbsp;:</TD
801><TD
802WIDTH="80%"
803ALIGN="LEFT"
804VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000805> the <GTKDOCLINK
806HREF="STRDUP"
807>strdup</GTKDOCLINK
808>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000809></TR
810><TR
811><TD
812WIDTH="20%"
813ALIGN="RIGHT"
814VALIGN="TOP"
815><I
816CLASS="EMPHASIS"
817>Returns</I
818> :</TD
819><TD
820WIDTH="80%"
821ALIGN="LEFT"
822VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000823>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000824></TR
825></TABLE
826><P
827></P
828></DIV
829></DIV
830><HR><DIV
831CLASS="REFSECT2"
832><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000833NAME="AEN19266"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000834></A
835><H3
836><A
837NAME="XMLMEMGET"
838></A
839>xmlMemGet ()</H3
840><TABLE
841BORDER="0"
842BGCOLOR="#D6E8FF"
843WIDTH="100%"
844CELLPADDING="6"
845><TR
846><TD
847><PRE
848CLASS="PROGRAMLISTING"
849>int xmlMemGet (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000850HREF="libxml-xmlmemory.html#XMLFREEFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000851>xmlFreeFunc</A
852> *freeFunc,
853 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000854HREF="libxml-xmlmemory.html#XMLMALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000855>xmlMallocFunc</A
856> *mallocFunc,
857 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000858HREF="libxml-xmlmemory.html#XMLREALLOCFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000859>xmlReallocFunc</A
860> *reallocFunc,
861 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000862HREF="libxml-xmlmemory.html#XMLSTRDUPFUNC"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000863>xmlStrdupFunc</A
864> *strdupFunc);</PRE
865></TD
866></TR
867></TABLE
868><P
869>Return the memory access functions set currently in use</P
870><P
871></P
872><DIV
873CLASS="INFORMALTABLE"
874><P
875></P
876><TABLE
877BORDER="0"
878WIDTH="100%"
879BGCOLOR="#FFD0D0"
880CELLSPACING="0"
881CELLPADDING="4"
882CLASS="CALSTABLE"
883><TR
884><TD
885WIDTH="20%"
886ALIGN="RIGHT"
887VALIGN="TOP"
888><TT
889CLASS="PARAMETER"
890><I
891>freeFunc</I
892></TT
893>&nbsp;:</TD
894><TD
895WIDTH="80%"
896ALIGN="LEFT"
897VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000898> the <GTKDOCLINK
899HREF="FREE"
900>free</GTKDOCLINK
901>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000902></TR
903><TR
904><TD
905WIDTH="20%"
906ALIGN="RIGHT"
907VALIGN="TOP"
908><TT
909CLASS="PARAMETER"
910><I
911>mallocFunc</I
912></TT
913>&nbsp;:</TD
914><TD
915WIDTH="80%"
916ALIGN="LEFT"
917VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000918> the <GTKDOCLINK
919HREF="MALLOC"
920>malloc</GTKDOCLINK
921>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000922></TR
923><TR
924><TD
925WIDTH="20%"
926ALIGN="RIGHT"
927VALIGN="TOP"
928><TT
929CLASS="PARAMETER"
930><I
931>reallocFunc</I
932></TT
933>&nbsp;:</TD
934><TD
935WIDTH="80%"
936ALIGN="LEFT"
937VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000938> the <GTKDOCLINK
939HREF="REALLOC"
940>realloc</GTKDOCLINK
941>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000942></TR
943><TR
944><TD
945WIDTH="20%"
946ALIGN="RIGHT"
947VALIGN="TOP"
948><TT
949CLASS="PARAMETER"
950><I
951>strdupFunc</I
952></TT
953>&nbsp;:</TD
954><TD
955WIDTH="80%"
956ALIGN="LEFT"
957VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000958> the <GTKDOCLINK
959HREF="STRDUP"
960>strdup</GTKDOCLINK
961>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000962></TR
963><TR
964><TD
965WIDTH="20%"
966ALIGN="RIGHT"
967VALIGN="TOP"
968><I
969CLASS="EMPHASIS"
970>Returns</I
971> :</TD
972><TD
973WIDTH="80%"
974ALIGN="LEFT"
975VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000976>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000977></TR
978></TABLE
979><P
980></P
981></DIV
982></DIV
983><HR><DIV
984CLASS="REFSECT2"
985><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000986NAME="AEN19305"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000987></A
988><H3
989><A
990NAME="XMLINITMEMORY"
991></A
992>xmlInitMemory ()</H3
993><TABLE
994BORDER="0"
995BGCOLOR="#D6E8FF"
996WIDTH="100%"
997CELLPADDING="6"
998><TR
999><TD
1000><PRE
1001CLASS="PROGRAMLISTING"
1002>int xmlInitMemory (void);</PRE
1003></TD
1004></TR
1005></TABLE
1006><P
1007>Initialize the memory layer.</P
1008><P
1009></P
1010><DIV
1011CLASS="INFORMALTABLE"
1012><P
1013></P
1014><TABLE
1015BORDER="0"
1016WIDTH="100%"
1017BGCOLOR="#FFD0D0"
1018CELLSPACING="0"
1019CELLPADDING="4"
1020CLASS="CALSTABLE"
1021><TR
1022><TD
1023WIDTH="20%"
1024ALIGN="RIGHT"
1025VALIGN="TOP"
1026><I
1027CLASS="EMPHASIS"
1028>Returns</I
1029> :</TD
1030><TD
1031WIDTH="80%"
1032ALIGN="LEFT"
1033VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001034>0 on success</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001035></TR
1036></TABLE
1037><P
1038></P
1039></DIV
1040></DIV
1041><HR><DIV
1042CLASS="REFSECT2"
1043><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001044NAME="AEN19320"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001045></A
1046><H3
1047><A
1048NAME="XMLMEMUSED"
1049></A
1050>xmlMemUsed ()</H3
1051><TABLE
1052BORDER="0"
1053BGCOLOR="#D6E8FF"
1054WIDTH="100%"
1055CELLPADDING="6"
1056><TR
1057><TD
1058><PRE
1059CLASS="PROGRAMLISTING"
1060>int xmlMemUsed (void);</PRE
1061></TD
1062></TR
1063></TABLE
1064><P
1065>returns the amount of memory currenly allocated</P
1066><P
1067></P
1068><DIV
1069CLASS="INFORMALTABLE"
1070><P
1071></P
1072><TABLE
1073BORDER="0"
1074WIDTH="100%"
1075BGCOLOR="#FFD0D0"
1076CELLSPACING="0"
1077CELLPADDING="4"
1078CLASS="CALSTABLE"
1079><TR
1080><TD
1081WIDTH="20%"
1082ALIGN="RIGHT"
1083VALIGN="TOP"
1084><I
1085CLASS="EMPHASIS"
1086>Returns</I
1087> :</TD
1088><TD
1089WIDTH="80%"
1090ALIGN="LEFT"
1091VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001092>an int representing the amount of memory allocated.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001093></TR
1094></TABLE
1095><P
1096></P
1097></DIV
1098></DIV
1099><HR><DIV
1100CLASS="REFSECT2"
1101><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001102NAME="AEN19335"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001103></A
1104><H3
1105><A
1106NAME="XMLMEMDISPLAY"
1107></A
1108>xmlMemDisplay ()</H3
1109><TABLE
1110BORDER="0"
1111BGCOLOR="#D6E8FF"
1112WIDTH="100%"
1113CELLPADDING="6"
1114><TR
1115><TD
1116><PRE
1117CLASS="PROGRAMLISTING"
1118>void xmlMemDisplay (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +00001119HREF="FILE-CAPS"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001120>FILE</GTKDOCLINK
1121> *fp);</PRE
1122></TD
1123></TR
1124></TABLE
1125><P
1126>show in-extenso the memory blocks allocated</P
1127><P
1128></P
1129><DIV
1130CLASS="INFORMALTABLE"
1131><P
1132></P
1133><TABLE
1134BORDER="0"
1135WIDTH="100%"
1136BGCOLOR="#FFD0D0"
1137CELLSPACING="0"
1138CELLPADDING="4"
1139CLASS="CALSTABLE"
1140><TR
1141><TD
1142WIDTH="20%"
1143ALIGN="RIGHT"
1144VALIGN="TOP"
1145><TT
1146CLASS="PARAMETER"
1147><I
1148>fp</I
1149></TT
1150>&nbsp;:</TD
1151><TD
1152WIDTH="80%"
1153ALIGN="LEFT"
1154VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001155> a FILE descriptor used as the output file, if NULL, the result is
1156written to the file .memorylist</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001157></TR
1158></TABLE
1159><P
1160></P
1161></DIV
1162></DIV
1163><HR><DIV
1164CLASS="REFSECT2"
1165><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001166NAME="AEN19351"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001167></A
1168><H3
1169><A
1170NAME="XMLMEMSHOW"
1171></A
1172>xmlMemShow ()</H3
1173><TABLE
1174BORDER="0"
1175BGCOLOR="#D6E8FF"
1176WIDTH="100%"
1177CELLPADDING="6"
1178><TR
1179><TD
1180><PRE
1181CLASS="PROGRAMLISTING"
1182>void xmlMemShow (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +00001183HREF="FILE-CAPS"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001184>FILE</GTKDOCLINK
1185> *fp,
1186 int nr);</PRE
1187></TD
1188></TR
1189></TABLE
1190><P
1191>show a show display of the memory allocated, and dump
1192the <TT
1193CLASS="PARAMETER"
1194><I
1195>nr</I
1196></TT
1197> last allocated areas which were not freed</P
1198><P
1199></P
1200><DIV
1201CLASS="INFORMALTABLE"
1202><P
1203></P
1204><TABLE
1205BORDER="0"
1206WIDTH="100%"
1207BGCOLOR="#FFD0D0"
1208CELLSPACING="0"
1209CELLPADDING="4"
1210CLASS="CALSTABLE"
1211><TR
1212><TD
1213WIDTH="20%"
1214ALIGN="RIGHT"
1215VALIGN="TOP"
1216><TT
1217CLASS="PARAMETER"
1218><I
1219>fp</I
1220></TT
1221>&nbsp;:</TD
1222><TD
1223WIDTH="80%"
1224ALIGN="LEFT"
1225VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001226> a FILE descriptor used as the output file</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001227></TR
1228><TR
1229><TD
1230WIDTH="20%"
1231ALIGN="RIGHT"
1232VALIGN="TOP"
1233><TT
1234CLASS="PARAMETER"
1235><I
1236>nr</I
1237></TT
1238>&nbsp;:</TD
1239><TD
1240WIDTH="80%"
1241ALIGN="LEFT"
1242VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001243> number of entries to dump</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001244></TR
1245></TABLE
1246><P
1247></P
1248></DIV
1249></DIV
1250><HR><DIV
1251CLASS="REFSECT2"
1252><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001253NAME="AEN19372"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001254></A
1255><H3
1256><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001257NAME="XMLMEMORYDUMP"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001258></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001259>xmlMemoryDump ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001260><TABLE
1261BORDER="0"
1262BGCOLOR="#D6E8FF"
1263WIDTH="100%"
1264CELLPADDING="6"
1265><TR
1266><TD
1267><PRE
1268CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001269>void xmlMemoryDump (void);</PRE
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001270></TD
1271></TR
1272></TABLE
1273><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001274>Dump in-extenso the memory blocks allocated to the file .memorylist</P
1275><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001276></P
1277></DIV
1278><HR><DIV
1279CLASS="REFSECT2"
1280><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001281NAME="AEN19378"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001282></A
1283><H3
1284><A
1285NAME="XMLMALLOC"
1286></A
1287>xmlMalloc()</H3
1288><TABLE
1289BORDER="0"
1290BGCOLOR="#D6E8FF"
1291WIDTH="100%"
1292CELLPADDING="6"
1293><TR
1294><TD
1295><PRE
1296CLASS="PROGRAMLISTING"
1297>#define xmlMalloc(x) xmlMallocLoc((x), __FILE__, __LINE__)</PRE
1298></TD
1299></TR
1300></TABLE
1301><P
1302></P
1303><DIV
1304CLASS="INFORMALTABLE"
1305><P
1306></P
1307><TABLE
1308BORDER="0"
1309WIDTH="100%"
1310BGCOLOR="#FFD0D0"
1311CELLSPACING="0"
1312CELLPADDING="4"
1313CLASS="CALSTABLE"
1314><TR
1315><TD
1316WIDTH="20%"
1317ALIGN="RIGHT"
1318VALIGN="TOP"
1319><TT
1320CLASS="PARAMETER"
1321><I
1322>x</I
1323></TT
1324>&nbsp;:</TD
1325><TD
1326WIDTH="80%"
1327ALIGN="LEFT"
1328VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +00001329>&#13;</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001330></TR
1331></TABLE
1332><P
1333></P
1334></DIV
1335></DIV
1336><HR><DIV
1337CLASS="REFSECT2"
1338><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001339NAME="AEN19392"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001340></A
1341><H3
1342><A
1343NAME="XMLREALLOC"
1344></A
1345>xmlRealloc()</H3
1346><TABLE
1347BORDER="0"
1348BGCOLOR="#D6E8FF"
1349WIDTH="100%"
1350CELLPADDING="6"
1351><TR
1352><TD
1353><PRE
1354CLASS="PROGRAMLISTING"
1355>#define xmlRealloc(p, x) xmlReallocLoc((p), (x), __FILE__, __LINE__)</PRE
1356></TD
1357></TR
1358></TABLE
1359><P
1360></P
1361><DIV
1362CLASS="INFORMALTABLE"
1363><P
1364></P
1365><TABLE
1366BORDER="0"
1367WIDTH="100%"
1368BGCOLOR="#FFD0D0"
1369CELLSPACING="0"
1370CELLPADDING="4"
1371CLASS="CALSTABLE"
1372><TR
1373><TD
1374WIDTH="20%"
1375ALIGN="RIGHT"
1376VALIGN="TOP"
1377><TT
1378CLASS="PARAMETER"
1379><I
1380>p</I
1381></TT
1382>&nbsp;:</TD
1383><TD
1384WIDTH="80%"
1385ALIGN="LEFT"
1386VALIGN="TOP"
1387>&nbsp;</TD
1388></TR
1389><TR
1390><TD
1391WIDTH="20%"
1392ALIGN="RIGHT"
1393VALIGN="TOP"
1394><TT
1395CLASS="PARAMETER"
1396><I
1397>x</I
1398></TT
1399>&nbsp;:</TD
1400><TD
1401WIDTH="80%"
1402ALIGN="LEFT"
1403VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +00001404>&#13;</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001405></TR
1406></TABLE
1407><P
1408></P
1409></DIV
1410></DIV
1411><HR><DIV
1412CLASS="REFSECT2"
1413><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001414NAME="AEN19410"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001415></A
1416><H3
1417><A
1418NAME="XMLMEMSTRDUP"
1419></A
1420>xmlMemStrdup()</H3
1421><TABLE
1422BORDER="0"
1423BGCOLOR="#D6E8FF"
1424WIDTH="100%"
1425CELLPADDING="6"
1426><TR
1427><TD
1428><PRE
1429CLASS="PROGRAMLISTING"
1430>#define xmlMemStrdup(x) xmlMemStrdupLoc((x), __FILE__, __LINE__)</PRE
1431></TD
1432></TR
1433></TABLE
1434><P
1435></P
1436><DIV
1437CLASS="INFORMALTABLE"
1438><P
1439></P
1440><TABLE
1441BORDER="0"
1442WIDTH="100%"
1443BGCOLOR="#FFD0D0"
1444CELLSPACING="0"
1445CELLPADDING="4"
1446CLASS="CALSTABLE"
1447><TR
1448><TD
1449WIDTH="20%"
1450ALIGN="RIGHT"
1451VALIGN="TOP"
1452><TT
1453CLASS="PARAMETER"
1454><I
1455>x</I
1456></TT
1457>&nbsp;:</TD
1458><TD
1459WIDTH="80%"
1460ALIGN="LEFT"
1461VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +00001462>&#13;</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001463></TR
1464></TABLE
1465><P
1466></P
1467></DIV
1468></DIV
1469><HR><DIV
1470CLASS="REFSECT2"
1471><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001472NAME="AEN19424"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001473></A
1474><H3
1475><A
1476NAME="XMLMALLOCLOC"
1477></A
1478>xmlMallocLoc ()</H3
1479><TABLE
1480BORDER="0"
1481BGCOLOR="#D6E8FF"
1482WIDTH="100%"
1483CELLPADDING="6"
1484><TR
1485><TD
1486><PRE
1487CLASS="PROGRAMLISTING"
1488>void* xmlMallocLoc (int size,
1489 const char *file,
1490 int line);</PRE
1491></TD
1492></TR
1493></TABLE
1494><P
1495>a <GTKDOCLINK
1496HREF="MALLOC"
1497>malloc</GTKDOCLINK
1498>() equivalent, with logging of the allocation info.</P
1499><P
1500></P
1501><DIV
1502CLASS="INFORMALTABLE"
1503><P
1504></P
1505><TABLE
1506BORDER="0"
1507WIDTH="100%"
1508BGCOLOR="#FFD0D0"
1509CELLSPACING="0"
1510CELLPADDING="4"
1511CLASS="CALSTABLE"
1512><TR
1513><TD
1514WIDTH="20%"
1515ALIGN="RIGHT"
1516VALIGN="TOP"
1517><TT
1518CLASS="PARAMETER"
1519><I
1520>size</I
1521></TT
1522>&nbsp;:</TD
1523><TD
1524WIDTH="80%"
1525ALIGN="LEFT"
1526VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001527> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001528></TR
1529><TR
1530><TD
1531WIDTH="20%"
1532ALIGN="RIGHT"
1533VALIGN="TOP"
1534><TT
1535CLASS="PARAMETER"
1536><I
1537>file</I
1538></TT
1539>&nbsp;:</TD
1540><TD
1541WIDTH="80%"
1542ALIGN="LEFT"
1543VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001544> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001545></TR
1546><TR
1547><TD
1548WIDTH="20%"
1549ALIGN="RIGHT"
1550VALIGN="TOP"
1551><TT
1552CLASS="PARAMETER"
1553><I
1554>line</I
1555></TT
1556>&nbsp;:</TD
1557><TD
1558WIDTH="80%"
1559ALIGN="LEFT"
1560VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001561> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001562></TR
1563></TABLE
1564><P
1565></P
1566></DIV
1567></DIV
1568><HR><DIV
1569CLASS="REFSECT2"
1570><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001571NAME="AEN19448"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001572></A
1573><H3
1574><A
1575NAME="XMLREALLOCLOC"
1576></A
1577>xmlReallocLoc ()</H3
1578><TABLE
1579BORDER="0"
1580BGCOLOR="#D6E8FF"
1581WIDTH="100%"
1582CELLPADDING="6"
1583><TR
1584><TD
1585><PRE
1586CLASS="PROGRAMLISTING"
1587>void* xmlReallocLoc (void *ptr,
1588 int size,
1589 const char *file,
1590 int line);</PRE
1591></TD
1592></TR
1593></TABLE
1594><P
1595>a <GTKDOCLINK
1596HREF="REALLOC"
1597>realloc</GTKDOCLINK
1598>() equivalent, with logging of the allocation info.</P
1599><P
1600></P
1601><DIV
1602CLASS="INFORMALTABLE"
1603><P
1604></P
1605><TABLE
1606BORDER="0"
1607WIDTH="100%"
1608BGCOLOR="#FFD0D0"
1609CELLSPACING="0"
1610CELLPADDING="4"
1611CLASS="CALSTABLE"
1612><TR
1613><TD
1614WIDTH="20%"
1615ALIGN="RIGHT"
1616VALIGN="TOP"
1617><TT
1618CLASS="PARAMETER"
1619><I
1620>ptr</I
1621></TT
1622>&nbsp;:</TD
1623><TD
1624WIDTH="80%"
1625ALIGN="LEFT"
1626VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001627> the initial memory block pointer</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001628></TR
1629><TR
1630><TD
1631WIDTH="20%"
1632ALIGN="RIGHT"
1633VALIGN="TOP"
1634><TT
1635CLASS="PARAMETER"
1636><I
1637>size</I
1638></TT
1639>&nbsp;:</TD
1640><TD
1641WIDTH="80%"
1642ALIGN="LEFT"
1643VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001644> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001645></TR
1646><TR
1647><TD
1648WIDTH="20%"
1649ALIGN="RIGHT"
1650VALIGN="TOP"
1651><TT
1652CLASS="PARAMETER"
1653><I
1654>file</I
1655></TT
1656>&nbsp;:</TD
1657><TD
1658WIDTH="80%"
1659ALIGN="LEFT"
1660VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001661> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001662></TR
1663><TR
1664><TD
1665WIDTH="20%"
1666ALIGN="RIGHT"
1667VALIGN="TOP"
1668><TT
1669CLASS="PARAMETER"
1670><I
1671>line</I
1672></TT
1673>&nbsp;:</TD
1674><TD
1675WIDTH="80%"
1676ALIGN="LEFT"
1677VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001678> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001679></TR
1680></TABLE
1681><P
1682></P
1683></DIV
1684></DIV
1685><HR><DIV
1686CLASS="REFSECT2"
1687><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001688NAME="AEN19476"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001689></A
1690><H3
1691><A
1692NAME="XMLMEMSTRDUPLOC"
1693></A
1694>xmlMemStrdupLoc ()</H3
1695><TABLE
1696BORDER="0"
1697BGCOLOR="#D6E8FF"
1698WIDTH="100%"
1699CELLPADDING="6"
1700><TR
1701><TD
1702><PRE
1703CLASS="PROGRAMLISTING"
1704>char* xmlMemStrdupLoc (const char *str,
1705 const char *file,
1706 int line);</PRE
1707></TD
1708></TR
1709></TABLE
1710><P
1711>a <GTKDOCLINK
1712HREF="STRDUP"
1713>strdup</GTKDOCLINK
1714>() equivalent, with logging of the allocation info.</P
1715><P
1716></P
1717><DIV
1718CLASS="INFORMALTABLE"
1719><P
1720></P
1721><TABLE
1722BORDER="0"
1723WIDTH="100%"
1724BGCOLOR="#FFD0D0"
1725CELLSPACING="0"
1726CELLPADDING="4"
1727CLASS="CALSTABLE"
1728><TR
1729><TD
1730WIDTH="20%"
1731ALIGN="RIGHT"
1732VALIGN="TOP"
1733><TT
1734CLASS="PARAMETER"
1735><I
1736>str</I
1737></TT
1738>&nbsp;:</TD
1739><TD
1740WIDTH="80%"
1741ALIGN="LEFT"
1742VALIGN="TOP"
1743>&nbsp;</TD
1744></TR
1745><TR
1746><TD
1747WIDTH="20%"
1748ALIGN="RIGHT"
1749VALIGN="TOP"
1750><TT
1751CLASS="PARAMETER"
1752><I
1753>file</I
1754></TT
1755>&nbsp;:</TD
1756><TD
1757WIDTH="80%"
1758ALIGN="LEFT"
1759VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001760> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001761></TR
1762><TR
1763><TD
1764WIDTH="20%"
1765ALIGN="RIGHT"
1766VALIGN="TOP"
1767><TT
1768CLASS="PARAMETER"
1769><I
1770>line</I
1771></TT
1772>&nbsp;:</TD
1773><TD
1774WIDTH="80%"
1775ALIGN="LEFT"
1776VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001777> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001778></TR
1779><TR
1780><TD
1781WIDTH="20%"
1782ALIGN="RIGHT"
1783VALIGN="TOP"
1784><I
1785CLASS="EMPHASIS"
1786>Returns</I
1787> :</TD
1788><TD
1789WIDTH="80%"
1790ALIGN="LEFT"
1791VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001792>a pointer to the new string or NULL if allocation error occured.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001793></TR
1794></TABLE
1795><P
1796></P
1797></DIV
1798></DIV
1799></DIV
1800><DIV
1801CLASS="NAVFOOTER"
1802><BR
1803CLEAR="all"><BR><TABLE
1804WIDTH="100%"
1805BORDER="0"
1806BGCOLOR="#000000"
1807CELLPADDING="1"
1808CELLSPACING="0"
1809><TR
1810><TD
1811WIDTH="25%"
1812BGCOLOR="#C00000"
1813ALIGN="left"
1814><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001815HREF="libxml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001816><FONT
1817COLOR="#FFFFFF"
1818SIZE="3"
1819><B
1820>&#60;&#60;&#60; Previous Page</B
1821></FONT
1822></A
1823></TD
1824><TD
1825WIDTH="25%"
1826BGCOLOR="#0000C0"
1827ALIGN="center"
1828><FONT
1829COLOR="#FFFFFF"
1830SIZE="3"
1831><B
1832><A
1833HREF="book1.html"
1834><FONT
1835COLOR="#FFFFFF"
1836SIZE="3"
1837><B
1838>Home</B
1839></FONT
1840></A
1841></B
1842></FONT
1843></TD
1844><TD
1845WIDTH="25%"
1846BGCOLOR="#00C000"
1847ALIGN="center"
1848><FONT
1849COLOR="#FFFFFF"
1850SIZE="3"
1851><B
1852><A
Daniel Veillard35008381999-10-25 13:15:52 +00001853HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001854><FONT
1855COLOR="#FFFFFF"
1856SIZE="3"
1857><B
1858>Up</B
1859></FONT
1860></A
1861></B
1862></FONT
1863></TD
1864><TD
1865WIDTH="25%"
1866BGCOLOR="#C00000"
1867ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001868>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001869></TR
1870><TR
1871><TD
1872COLSPAN="2"
1873ALIGN="left"
1874><FONT
1875COLOR="#FFFFFF"
1876SIZE="3"
1877><B
Daniel Veillard294cbca1999-12-03 13:19:09 +00001878>debugXML</B
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001879></FONT
1880></TD
1881><TD
1882COLSPAN="2"
1883ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001884>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001885></TR
1886></TABLE
1887></DIV
1888></BODY
1889></HTML
1890>