blob: 248f70c10d09e5c2d1653ceb2da01e9f912c31ed [file] [log] [blame]
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001<HTML
2><HEAD
3><TITLE
4>xmlmemory</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><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"
16HREF="gnome-xml-debugxml.html"></HEAD
Daniel Veillard7c1206f1999-10-14 09:10:25 +000017><BODY
18BGCOLOR="#FFFFFF"
19TEXT="#000000"
20><DIV
21CLASS="NAVHEADER"
22><TABLE
23WIDTH="100%"
24BORDER="0"
25BGCOLOR="#000000"
26CELLPADDING="1"
27CELLSPACING="0"
28><TR
29><TH
30COLSPAN="4"
31ALIGN="center"
32><FONT
33COLOR="#FFFFFF"
34SIZE="5"
35>Gnome XML Library Reference Manual</FONT
36></TH
37></TR
38><TR
39><TD
40WIDTH="25%"
41BGCOLOR="#C00000"
42ALIGN="left"
43><A
Daniel Veillard294cbca1999-12-03 13:19:09 +000044HREF="gnome-xml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000045><FONT
46COLOR="#FFFFFF"
47SIZE="3"
48><B
49>&#60;&#60;&#60; Previous Page</B
50></FONT
51></A
52></TD
53><TD
54WIDTH="25%"
55BGCOLOR="#0000C0"
56ALIGN="center"
57><FONT
58COLOR="#FFFFFF"
59SIZE="3"
60><B
61><A
62HREF="book1.html"
63><FONT
64COLOR="#FFFFFF"
65SIZE="3"
66><B
67>Home</B
68></FONT
69></A
70></B
71></FONT
72></TD
73><TD
74WIDTH="25%"
75BGCOLOR="#00C000"
76ALIGN="center"
77><FONT
78COLOR="#FFFFFF"
79SIZE="3"
80><B
81><A
Daniel Veillard35008381999-10-25 13:15:52 +000082HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +000083><FONT
84COLOR="#FFFFFF"
85SIZE="3"
86><B
87>Up</B
88></FONT
89></A
90></B
91></FONT
92></TD
93><TD
94WIDTH="25%"
95BGCOLOR="#C00000"
96ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +000097>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +000098></TR
99></TABLE
100></DIV
101><H1
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000102>xmlmemory</H1
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000103><DIV
104CLASS="REFNAMEDIV"
105><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000106NAME="AEN16285"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000107></A
108><H2
109>Name</H2
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000110>xmlmemory &#8212; </DIV
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000111><DIV
112CLASS="REFSYNOPSISDIV"
113><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000114NAME="AEN16288"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000115></A
116><H2
117>Synopsis</H2
118><TABLE
119BORDER="0"
120BGCOLOR="#D6E8FF"
121WIDTH="100%"
122CELLPADDING="6"
123><TR
124><TD
125><PRE
126CLASS="SYNOPSIS"
127>&#13;
128
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000129#define <A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000130HREF="gnome-xml-xmlmemory.html#DEBUG-MEMORY"
131>DEBUG_MEMORY</A
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000132>
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000133#define <A
134HREF="gnome-xml-xmlmemory.html#MEM-LIST"
135>MEM_LIST</A
136>
137void (<A
138HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
139>*xmlFreeFunc</A
140>) (void*);
141void* (<A
142HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
143>*xmlMallocFunc</A
144>) (...);
145void* (<A
146HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
147>*xmlReallocFunc</A
148>) (void*,
149 ...);
150char* (<A
151HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
152>*xmlStrdupFunc</A
153>) (const char*);
154extern xmlFreeFunc <A
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000155HREF="gnome-xml-xmlmemory.html#XMLFREE"
156>xmlFree</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000157>;
158extern xmlMallocFunc <A
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000159HREF="gnome-xml-xmlmemory.html#XMLMALLOC"
160>xmlMalloc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000161>;
162extern xmlReallocFunc <A
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000163HREF="gnome-xml-xmlmemory.html#XMLREALLOC"
164>xmlRealloc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000165>;
166extern xmlStrdupFunc <A
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000167HREF="gnome-xml-xmlmemory.html#XMLMEMSTRDUP"
168>xmlMemStrdup</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000169>;
170int <A
171HREF="gnome-xml-xmlmemory.html#XMLMEMSETUP"
172>xmlMemSetup</A
173> (<A
174HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
175>xmlFreeFunc</A
176> freeFunc,
177 <A
178HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
179>xmlMallocFunc</A
180> mallocFunc,
181 <A
182HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
183>xmlReallocFunc</A
184> reallocFunc,
185 <A
186HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
187>xmlStrdupFunc</A
188> strdupFunc);
189int <A
190HREF="gnome-xml-xmlmemory.html#XMLMEMGET"
191>xmlMemGet</A
192> (<A
193HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
194>xmlFreeFunc</A
195> *freeFunc,
196 <A
197HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
198>xmlMallocFunc</A
199> *mallocFunc,
200 <A
201HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
202>xmlReallocFunc</A
203> *reallocFunc,
204 <A
205HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
206>xmlStrdupFunc</A
207> *strdupFunc);
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000208int <A
209HREF="gnome-xml-xmlmemory.html#XMLINITMEMORY"
210>xmlInitMemory</A
211> (void);
212int <A
213HREF="gnome-xml-xmlmemory.html#XMLMEMUSED"
214>xmlMemUsed</A
215> (void);
216void <A
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000217HREF="gnome-xml-xmlmemory.html#XMLMEMDISPLAY"
218>xmlMemDisplay</A
219> (<GTKDOCLINK
220HREF="FILE"
221>FILE</GTKDOCLINK
222> *fp);
Daniel Veillardf3a73582000-01-05 14:58:39 +0000223void <A
224HREF="gnome-xml-xmlmemory.html#XMLMEMSHOW"
225>xmlMemShow</A
226> (<GTKDOCLINK
227HREF="FILE"
228>FILE</GTKDOCLINK
229> *fp,
230 int nr);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000231void <A
232HREF="gnome-xml-xmlmemory.html#XMLMEMORYDUMP"
233>xmlMemoryDump</A
234> (void);
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000235void* <A
236HREF="gnome-xml-xmlmemory.html#XMLMALLOCLOC"
237>xmlMallocLoc</A
238> (int size,
239 const char *file,
240 int line);
241void* <A
242HREF="gnome-xml-xmlmemory.html#XMLREALLOCLOC"
243>xmlReallocLoc</A
244> (void *ptr,
245 int size,
246 const char *file,
247 int line);
248char* <A
249HREF="gnome-xml-xmlmemory.html#XMLMEMSTRDUPLOC"
250>xmlMemStrdupLoc</A
251> (const char *str,
252 const char *file,
253 int line);</PRE
254></TD
255></TR
256></TABLE
257></DIV
258><DIV
259CLASS="REFSECT1"
260><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000261NAME="AEN16321"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000262></A
263><H2
264>Description</H2
265><P
266></P
267></DIV
268><DIV
269CLASS="REFSECT1"
270><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000271NAME="AEN16324"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000272></A
273><H2
274>Details</H2
275><DIV
276CLASS="REFSECT2"
277><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000278NAME="AEN16326"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000279></A
280><H3
281><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000282NAME="DEBUG-MEMORY"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000283></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000284>DEBUG_MEMORY</H3
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000285><TABLE
286BORDER="0"
287BGCOLOR="#D6E8FF"
288WIDTH="100%"
289CELLPADDING="6"
290><TR
291><TD
292><PRE
293CLASS="PROGRAMLISTING"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000294>#define DEBUG_MEMORY</PRE
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000295></TD
296></TR
297></TABLE
298><P
299></P
300></DIV
301><HR><DIV
302CLASS="REFSECT2"
303><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000304NAME="AEN16331"
Daniel Veillard8f621982000-03-20 13:07:15 +0000305></A
306><H3
307><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000308NAME="MEM-LIST"
Daniel Veillard8f621982000-03-20 13:07:15 +0000309></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000310>MEM_LIST</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000311><TABLE
312BORDER="0"
313BGCOLOR="#D6E8FF"
314WIDTH="100%"
315CELLPADDING="6"
316><TR
317><TD
318><PRE
319CLASS="PROGRAMLISTING"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000320>#define MEM_LIST</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000321></TD
322></TR
323></TABLE
324><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000325></P
326></DIV
327><HR><DIV
328CLASS="REFSECT2"
329><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000330NAME="AEN16336"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000331></A
332><H3
333><A
334NAME="XMLFREEFUNC"
335></A
336>xmlFreeFunc ()</H3
337><TABLE
338BORDER="0"
339BGCOLOR="#D6E8FF"
340WIDTH="100%"
341CELLPADDING="6"
342><TR
343><TD
344><PRE
345CLASS="PROGRAMLISTING"
346>void (*xmlFreeFunc) (void*);</PRE
347></TD
348></TR
349></TABLE
Daniel Veillard06047432000-04-24 11:33:38 +0000350><P
351></P
352><DIV
353CLASS="INFORMALTABLE"
354><P
355></P
356><TABLE
357BORDER="0"
358WIDTH="100%"
359BGCOLOR="#FFD0D0"
360CELLSPACING="0"
361CELLPADDING="4"
362CLASS="CALSTABLE"
363><TR
364><TD
365WIDTH="20%"
366ALIGN="RIGHT"
367VALIGN="TOP"
368><TT
369CLASS="PARAMETER"
370><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000371>Param1</I
Daniel Veillard06047432000-04-24 11:33:38 +0000372></TT
373>&nbsp;:</TD
374><TD
375WIDTH="80%"
376ALIGN="LEFT"
377VALIGN="TOP"
378>&nbsp;</TD
379></TR
380></TABLE
381><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000382></P
383></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000384></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000385><HR><DIV
386CLASS="REFSECT2"
387><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000388NAME="AEN16350"
Daniel Veillard8f621982000-03-20 13:07:15 +0000389></A
390><H3
391><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000392NAME="XMLMALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000393></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000394>xmlMallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000395><TABLE
396BORDER="0"
397BGCOLOR="#D6E8FF"
398WIDTH="100%"
399CELLPADDING="6"
400><TR
401><TD
402><PRE
403CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000404>void* (*xmlMallocFunc) (...);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000405></TD
406></TR
407></TABLE
408><P
Daniel Veillard06047432000-04-24 11:33:38 +0000409></P
410><DIV
411CLASS="INFORMALTABLE"
412><P
413></P
414><TABLE
415BORDER="0"
416WIDTH="100%"
417BGCOLOR="#FFD0D0"
418CELLSPACING="0"
419CELLPADDING="4"
420CLASS="CALSTABLE"
421><TR
422><TD
423WIDTH="20%"
424ALIGN="RIGHT"
425VALIGN="TOP"
426><TT
427CLASS="PARAMETER"
428><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000429>...</I
Daniel Veillard06047432000-04-24 11:33:38 +0000430></TT
431>&nbsp;:</TD
432><TD
433WIDTH="80%"
434ALIGN="LEFT"
435VALIGN="TOP"
436>&nbsp;</TD
437></TR
438></TABLE
439><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000440></P
441></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000442></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000443><HR><DIV
444CLASS="REFSECT2"
445><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000446NAME="AEN16364"
Daniel Veillard8f621982000-03-20 13:07:15 +0000447></A
448><H3
449><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000450NAME="XMLREALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000451></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000452>xmlReallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000453><TABLE
454BORDER="0"
455BGCOLOR="#D6E8FF"
456WIDTH="100%"
457CELLPADDING="6"
458><TR
459><TD
460><PRE
461CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000462>void* (*xmlReallocFunc) (void*,
463 ...);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000464></TD
465></TR
466></TABLE
467><P
Daniel Veillard06047432000-04-24 11:33:38 +0000468></P
469><DIV
470CLASS="INFORMALTABLE"
471><P
472></P
473><TABLE
474BORDER="0"
475WIDTH="100%"
476BGCOLOR="#FFD0D0"
477CELLSPACING="0"
478CELLPADDING="4"
479CLASS="CALSTABLE"
480><TR
481><TD
482WIDTH="20%"
483ALIGN="RIGHT"
484VALIGN="TOP"
485><TT
486CLASS="PARAMETER"
487><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000488>Param1</I
Daniel Veillard06047432000-04-24 11:33:38 +0000489></TT
490>&nbsp;:</TD
491><TD
492WIDTH="80%"
493ALIGN="LEFT"
494VALIGN="TOP"
495>&nbsp;</TD
496></TR
497><TR
498><TD
499WIDTH="20%"
500ALIGN="RIGHT"
501VALIGN="TOP"
502><TT
503CLASS="PARAMETER"
504><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000505>...</I
Daniel Veillard06047432000-04-24 11:33:38 +0000506></TT
507>&nbsp;:</TD
508><TD
509WIDTH="80%"
510ALIGN="LEFT"
511VALIGN="TOP"
512>&nbsp;</TD
513></TR
514></TABLE
515><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000516></P
517></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000518></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000519><HR><DIV
520CLASS="REFSECT2"
521><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000522NAME="AEN16382"
Daniel Veillard8f621982000-03-20 13:07:15 +0000523></A
524><H3
525><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000526NAME="XMLSTRDUPFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000527></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000528>xmlStrdupFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000529><TABLE
530BORDER="0"
531BGCOLOR="#D6E8FF"
532WIDTH="100%"
533CELLPADDING="6"
534><TR
535><TD
536><PRE
537CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000538>char* (*xmlStrdupFunc) (const char*);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000539></TD
540></TR
541></TABLE
542><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000543></P
544><DIV
545CLASS="INFORMALTABLE"
546><P
547></P
548><TABLE
549BORDER="0"
550WIDTH="100%"
551BGCOLOR="#FFD0D0"
552CELLSPACING="0"
553CELLPADDING="4"
554CLASS="CALSTABLE"
555><TR
556><TD
557WIDTH="20%"
558ALIGN="RIGHT"
559VALIGN="TOP"
560><TT
561CLASS="PARAMETER"
562><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000563>Param1</I
Daniel Veillard8f621982000-03-20 13:07:15 +0000564></TT
565>&nbsp;:</TD
566><TD
567WIDTH="80%"
568ALIGN="LEFT"
569VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000570>&nbsp;</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000571></TR
572><TR
573><TD
574WIDTH="20%"
575ALIGN="RIGHT"
576VALIGN="TOP"
577><I
578CLASS="EMPHASIS"
579>Returns</I
580> :</TD
581><TD
582WIDTH="80%"
583ALIGN="LEFT"
584VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000585>&nbsp;</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000586></TR
587></TABLE
588><P
589></P
590></DIV
591></DIV
592><HR><DIV
593CLASS="REFSECT2"
594><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000595NAME="AEN16400"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000596></A
597><H3
598><A
599NAME="XMLFREE"
600></A
601>xmlFree</H3
602><TABLE
603BORDER="0"
604BGCOLOR="#D6E8FF"
605WIDTH="100%"
606CELLPADDING="6"
607><TR
608><TD
609><PRE
610CLASS="PROGRAMLISTING"
611>extern xmlFreeFunc xmlFree;</PRE
612></TD
613></TR
614></TABLE
615><P
616></P
617></DIV
618><HR><DIV
619CLASS="REFSECT2"
620><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000621NAME="AEN16405"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000622></A
623><H3
624><A
625NAME="XMLMALLOC"
626></A
627>xmlMalloc</H3
628><TABLE
629BORDER="0"
630BGCOLOR="#D6E8FF"
631WIDTH="100%"
632CELLPADDING="6"
633><TR
634><TD
635><PRE
636CLASS="PROGRAMLISTING"
637>extern xmlMallocFunc xmlMalloc;</PRE
638></TD
639></TR
640></TABLE
641><P
642></P
643></DIV
644><HR><DIV
645CLASS="REFSECT2"
646><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000647NAME="AEN16410"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000648></A
649><H3
650><A
651NAME="XMLREALLOC"
652></A
653>xmlRealloc</H3
654><TABLE
655BORDER="0"
656BGCOLOR="#D6E8FF"
657WIDTH="100%"
658CELLPADDING="6"
659><TR
660><TD
661><PRE
662CLASS="PROGRAMLISTING"
663>extern xmlReallocFunc xmlRealloc;</PRE
664></TD
665></TR
666></TABLE
667><P
668></P
669></DIV
670><HR><DIV
671CLASS="REFSECT2"
672><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000673NAME="AEN16415"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000674></A
675><H3
676><A
677NAME="XMLMEMSTRDUP"
678></A
679>xmlMemStrdup</H3
680><TABLE
681BORDER="0"
682BGCOLOR="#D6E8FF"
683WIDTH="100%"
684CELLPADDING="6"
685><TR
686><TD
687><PRE
688CLASS="PROGRAMLISTING"
689>extern xmlStrdupFunc xmlMemStrdup;</PRE
690></TD
691></TR
692></TABLE
693><P
694></P
695></DIV
696><HR><DIV
697CLASS="REFSECT2"
698><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000699NAME="AEN16420"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000700></A
701><H3
702><A
703NAME="XMLMEMSETUP"
704></A
705>xmlMemSetup ()</H3
706><TABLE
707BORDER="0"
708BGCOLOR="#D6E8FF"
709WIDTH="100%"
710CELLPADDING="6"
711><TR
712><TD
713><PRE
714CLASS="PROGRAMLISTING"
715>int xmlMemSetup (<A
716HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
717>xmlFreeFunc</A
718> freeFunc,
719 <A
720HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
721>xmlMallocFunc</A
722> mallocFunc,
723 <A
724HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
725>xmlReallocFunc</A
726> reallocFunc,
727 <A
728HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
729>xmlStrdupFunc</A
730> strdupFunc);</PRE
731></TD
732></TR
733></TABLE
734><P
735>Override the default memory access functions with a new set
736This has to be called before any other libxml routines !</P
737><P
738>Should this be blocked if there was already some allocations
739done ?</P
740><P
741></P
742><DIV
743CLASS="INFORMALTABLE"
744><P
745></P
746><TABLE
747BORDER="0"
748WIDTH="100%"
749BGCOLOR="#FFD0D0"
750CELLSPACING="0"
751CELLPADDING="4"
752CLASS="CALSTABLE"
753><TR
754><TD
755WIDTH="20%"
756ALIGN="RIGHT"
757VALIGN="TOP"
758><TT
759CLASS="PARAMETER"
760><I
761>freeFunc</I
762></TT
763>&nbsp;:</TD
764><TD
765WIDTH="80%"
766ALIGN="LEFT"
767VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000768>&nbsp;</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>mallocFunc</I
779></TT
780>&nbsp;:</TD
781><TD
782WIDTH="80%"
783ALIGN="LEFT"
784VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000785>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000786></TR
787><TR
788><TD
789WIDTH="20%"
790ALIGN="RIGHT"
791VALIGN="TOP"
792><TT
793CLASS="PARAMETER"
794><I
795>reallocFunc</I
796></TT
797>&nbsp;:</TD
798><TD
799WIDTH="80%"
800ALIGN="LEFT"
801VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000802>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000803></TR
804><TR
805><TD
806WIDTH="20%"
807ALIGN="RIGHT"
808VALIGN="TOP"
809><TT
810CLASS="PARAMETER"
811><I
812>strdupFunc</I
813></TT
814>&nbsp;:</TD
815><TD
816WIDTH="80%"
817ALIGN="LEFT"
818VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000819>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000820></TR
821><TR
822><TD
823WIDTH="20%"
824ALIGN="RIGHT"
825VALIGN="TOP"
826><I
827CLASS="EMPHASIS"
828>Returns</I
829> :</TD
830><TD
831WIDTH="80%"
832ALIGN="LEFT"
833VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000834>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000835></TR
836></TABLE
837><P
838></P
839></DIV
840></DIV
841><HR><DIV
842CLASS="REFSECT2"
843><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000844NAME="AEN16456"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000845></A
846><H3
847><A
848NAME="XMLMEMGET"
849></A
850>xmlMemGet ()</H3
851><TABLE
852BORDER="0"
853BGCOLOR="#D6E8FF"
854WIDTH="100%"
855CELLPADDING="6"
856><TR
857><TD
858><PRE
859CLASS="PROGRAMLISTING"
860>int xmlMemGet (<A
861HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
862>xmlFreeFunc</A
863> *freeFunc,
864 <A
865HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
866>xmlMallocFunc</A
867> *mallocFunc,
868 <A
869HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
870>xmlReallocFunc</A
871> *reallocFunc,
872 <A
873HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
874>xmlStrdupFunc</A
875> *strdupFunc);</PRE
876></TD
877></TR
878></TABLE
879><P
880>Return the memory access functions set currently in use</P
881><P
882></P
883><DIV
884CLASS="INFORMALTABLE"
885><P
886></P
887><TABLE
888BORDER="0"
889WIDTH="100%"
890BGCOLOR="#FFD0D0"
891CELLSPACING="0"
892CELLPADDING="4"
893CLASS="CALSTABLE"
894><TR
895><TD
896WIDTH="20%"
897ALIGN="RIGHT"
898VALIGN="TOP"
899><TT
900CLASS="PARAMETER"
901><I
902>freeFunc</I
903></TT
904>&nbsp;:</TD
905><TD
906WIDTH="80%"
907ALIGN="LEFT"
908VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000909>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000910></TR
911><TR
912><TD
913WIDTH="20%"
914ALIGN="RIGHT"
915VALIGN="TOP"
916><TT
917CLASS="PARAMETER"
918><I
919>mallocFunc</I
920></TT
921>&nbsp;:</TD
922><TD
923WIDTH="80%"
924ALIGN="LEFT"
925VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000926>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000927></TR
928><TR
929><TD
930WIDTH="20%"
931ALIGN="RIGHT"
932VALIGN="TOP"
933><TT
934CLASS="PARAMETER"
935><I
936>reallocFunc</I
937></TT
938>&nbsp;:</TD
939><TD
940WIDTH="80%"
941ALIGN="LEFT"
942VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000943>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000944></TR
945><TR
946><TD
947WIDTH="20%"
948ALIGN="RIGHT"
949VALIGN="TOP"
950><TT
951CLASS="PARAMETER"
952><I
953>strdupFunc</I
954></TT
955>&nbsp;:</TD
956><TD
957WIDTH="80%"
958ALIGN="LEFT"
959VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000960>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000961></TR
962><TR
963><TD
964WIDTH="20%"
965ALIGN="RIGHT"
966VALIGN="TOP"
967><I
968CLASS="EMPHASIS"
969>Returns</I
970> :</TD
971><TD
972WIDTH="80%"
973ALIGN="LEFT"
974VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000975>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000976></TR
977></TABLE
978><P
979></P
980></DIV
981></DIV
982><HR><DIV
983CLASS="REFSECT2"
984><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000985NAME="AEN16491"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000986></A
987><H3
988><A
989NAME="XMLINITMEMORY"
990></A
991>xmlInitMemory ()</H3
992><TABLE
993BORDER="0"
994BGCOLOR="#D6E8FF"
995WIDTH="100%"
996CELLPADDING="6"
997><TR
998><TD
999><PRE
1000CLASS="PROGRAMLISTING"
1001>int xmlInitMemory (void);</PRE
1002></TD
1003></TR
1004></TABLE
1005><P
1006>Initialize the memory layer.</P
1007><P
1008></P
1009><DIV
1010CLASS="INFORMALTABLE"
1011><P
1012></P
1013><TABLE
1014BORDER="0"
1015WIDTH="100%"
1016BGCOLOR="#FFD0D0"
1017CELLSPACING="0"
1018CELLPADDING="4"
1019CLASS="CALSTABLE"
1020><TR
1021><TD
1022WIDTH="20%"
1023ALIGN="RIGHT"
1024VALIGN="TOP"
1025><I
1026CLASS="EMPHASIS"
1027>Returns</I
1028> :</TD
1029><TD
1030WIDTH="80%"
1031ALIGN="LEFT"
1032VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001033>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001034></TR
1035></TABLE
1036><P
1037></P
1038></DIV
1039></DIV
1040><HR><DIV
1041CLASS="REFSECT2"
1042><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001043NAME="AEN16506"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001044></A
1045><H3
1046><A
1047NAME="XMLMEMUSED"
1048></A
1049>xmlMemUsed ()</H3
1050><TABLE
1051BORDER="0"
1052BGCOLOR="#D6E8FF"
1053WIDTH="100%"
1054CELLPADDING="6"
1055><TR
1056><TD
1057><PRE
1058CLASS="PROGRAMLISTING"
1059>int xmlMemUsed (void);</PRE
1060></TD
1061></TR
1062></TABLE
1063><P
1064>returns the amount of memory currenly allocated</P
1065><P
1066></P
1067><DIV
1068CLASS="INFORMALTABLE"
1069><P
1070></P
1071><TABLE
1072BORDER="0"
1073WIDTH="100%"
1074BGCOLOR="#FFD0D0"
1075CELLSPACING="0"
1076CELLPADDING="4"
1077CLASS="CALSTABLE"
1078><TR
1079><TD
1080WIDTH="20%"
1081ALIGN="RIGHT"
1082VALIGN="TOP"
1083><I
1084CLASS="EMPHASIS"
1085>Returns</I
1086> :</TD
1087><TD
1088WIDTH="80%"
1089ALIGN="LEFT"
1090VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001091>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001092></TR
1093></TABLE
1094><P
1095></P
1096></DIV
1097></DIV
1098><HR><DIV
1099CLASS="REFSECT2"
1100><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001101NAME="AEN16521"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001102></A
1103><H3
1104><A
1105NAME="XMLMEMDISPLAY"
1106></A
1107>xmlMemDisplay ()</H3
1108><TABLE
1109BORDER="0"
1110BGCOLOR="#D6E8FF"
1111WIDTH="100%"
1112CELLPADDING="6"
1113><TR
1114><TD
1115><PRE
1116CLASS="PROGRAMLISTING"
1117>void xmlMemDisplay (<GTKDOCLINK
1118HREF="FILE"
1119>FILE</GTKDOCLINK
1120> *fp);</PRE
1121></TD
1122></TR
1123></TABLE
1124><P
1125>show in-extenso the memory blocks allocated</P
1126><P
1127></P
1128><DIV
1129CLASS="INFORMALTABLE"
1130><P
1131></P
1132><TABLE
1133BORDER="0"
1134WIDTH="100%"
1135BGCOLOR="#FFD0D0"
1136CELLSPACING="0"
1137CELLPADDING="4"
1138CLASS="CALSTABLE"
1139><TR
1140><TD
1141WIDTH="20%"
1142ALIGN="RIGHT"
1143VALIGN="TOP"
1144><TT
1145CLASS="PARAMETER"
1146><I
1147>fp</I
1148></TT
1149>&nbsp;:</TD
1150><TD
1151WIDTH="80%"
1152ALIGN="LEFT"
1153VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001154>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001155></TR
1156></TABLE
1157><P
1158></P
1159></DIV
1160></DIV
1161><HR><DIV
1162CLASS="REFSECT2"
1163><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001164NAME="AEN16537"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001165></A
1166><H3
1167><A
1168NAME="XMLMEMSHOW"
1169></A
1170>xmlMemShow ()</H3
1171><TABLE
1172BORDER="0"
1173BGCOLOR="#D6E8FF"
1174WIDTH="100%"
1175CELLPADDING="6"
1176><TR
1177><TD
1178><PRE
1179CLASS="PROGRAMLISTING"
1180>void xmlMemShow (<GTKDOCLINK
1181HREF="FILE"
1182>FILE</GTKDOCLINK
1183> *fp,
1184 int nr);</PRE
1185></TD
1186></TR
1187></TABLE
1188><P
1189>show a show display of the memory allocated, and dump
1190the <TT
1191CLASS="PARAMETER"
1192><I
1193>nr</I
1194></TT
1195> last allocated areas which were not freed</P
1196><P
1197></P
1198><DIV
1199CLASS="INFORMALTABLE"
1200><P
1201></P
1202><TABLE
1203BORDER="0"
1204WIDTH="100%"
1205BGCOLOR="#FFD0D0"
1206CELLSPACING="0"
1207CELLPADDING="4"
1208CLASS="CALSTABLE"
1209><TR
1210><TD
1211WIDTH="20%"
1212ALIGN="RIGHT"
1213VALIGN="TOP"
1214><TT
1215CLASS="PARAMETER"
1216><I
1217>fp</I
1218></TT
1219>&nbsp;:</TD
1220><TD
1221WIDTH="80%"
1222ALIGN="LEFT"
1223VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001224>&nbsp;</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001225></TR
1226><TR
1227><TD
1228WIDTH="20%"
1229ALIGN="RIGHT"
1230VALIGN="TOP"
1231><TT
1232CLASS="PARAMETER"
1233><I
1234>nr</I
1235></TT
1236>&nbsp;:</TD
1237><TD
1238WIDTH="80%"
1239ALIGN="LEFT"
1240VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001241>&nbsp;</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001242></TR
1243></TABLE
1244><P
1245></P
1246></DIV
1247></DIV
1248><HR><DIV
1249CLASS="REFSECT2"
1250><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001251NAME="AEN16558"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001252></A
1253><H3
1254><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001255NAME="XMLMEMORYDUMP"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001256></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001257>xmlMemoryDump ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001258><TABLE
1259BORDER="0"
1260BGCOLOR="#D6E8FF"
1261WIDTH="100%"
1262CELLPADDING="6"
1263><TR
1264><TD
1265><PRE
1266CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001267>void xmlMemoryDump (void);</PRE
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001268></TD
1269></TR
1270></TABLE
1271><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001272>Dump in-extenso the memory blocks allocated to the file .memorylist</P
1273><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001274></P
1275></DIV
1276><HR><DIV
1277CLASS="REFSECT2"
1278><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001279NAME="AEN16564"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001280></A
1281><H3
1282><A
1283NAME="XMLMALLOCLOC"
1284></A
1285>xmlMallocLoc ()</H3
1286><TABLE
1287BORDER="0"
1288BGCOLOR="#D6E8FF"
1289WIDTH="100%"
1290CELLPADDING="6"
1291><TR
1292><TD
1293><PRE
1294CLASS="PROGRAMLISTING"
1295>void* xmlMallocLoc (int size,
1296 const char *file,
1297 int line);</PRE
1298></TD
1299></TR
1300></TABLE
1301><P
1302>a <GTKDOCLINK
1303HREF="MALLOC"
1304>malloc</GTKDOCLINK
1305>() equivalent, with logging of the allocation info.</P
1306><P
1307></P
1308><DIV
1309CLASS="INFORMALTABLE"
1310><P
1311></P
1312><TABLE
1313BORDER="0"
1314WIDTH="100%"
1315BGCOLOR="#FFD0D0"
1316CELLSPACING="0"
1317CELLPADDING="4"
1318CLASS="CALSTABLE"
1319><TR
1320><TD
1321WIDTH="20%"
1322ALIGN="RIGHT"
1323VALIGN="TOP"
1324><TT
1325CLASS="PARAMETER"
1326><I
1327>size</I
1328></TT
1329>&nbsp;:</TD
1330><TD
1331WIDTH="80%"
1332ALIGN="LEFT"
1333VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001334>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001335></TR
1336><TR
1337><TD
1338WIDTH="20%"
1339ALIGN="RIGHT"
1340VALIGN="TOP"
1341><TT
1342CLASS="PARAMETER"
1343><I
1344>file</I
1345></TT
1346>&nbsp;:</TD
1347><TD
1348WIDTH="80%"
1349ALIGN="LEFT"
1350VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001351>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001352></TR
1353><TR
1354><TD
1355WIDTH="20%"
1356ALIGN="RIGHT"
1357VALIGN="TOP"
1358><TT
1359CLASS="PARAMETER"
1360><I
1361>line</I
1362></TT
1363>&nbsp;:</TD
1364><TD
1365WIDTH="80%"
1366ALIGN="LEFT"
1367VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001368>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001369></TR
1370></TABLE
1371><P
1372></P
1373></DIV
1374></DIV
1375><HR><DIV
1376CLASS="REFSECT2"
1377><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001378NAME="AEN16588"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001379></A
1380><H3
1381><A
1382NAME="XMLREALLOCLOC"
1383></A
1384>xmlReallocLoc ()</H3
1385><TABLE
1386BORDER="0"
1387BGCOLOR="#D6E8FF"
1388WIDTH="100%"
1389CELLPADDING="6"
1390><TR
1391><TD
1392><PRE
1393CLASS="PROGRAMLISTING"
1394>void* xmlReallocLoc (void *ptr,
1395 int size,
1396 const char *file,
1397 int line);</PRE
1398></TD
1399></TR
1400></TABLE
1401><P
1402>a <GTKDOCLINK
1403HREF="REALLOC"
1404>realloc</GTKDOCLINK
1405>() equivalent, with logging of the allocation info.</P
1406><P
1407></P
1408><DIV
1409CLASS="INFORMALTABLE"
1410><P
1411></P
1412><TABLE
1413BORDER="0"
1414WIDTH="100%"
1415BGCOLOR="#FFD0D0"
1416CELLSPACING="0"
1417CELLPADDING="4"
1418CLASS="CALSTABLE"
1419><TR
1420><TD
1421WIDTH="20%"
1422ALIGN="RIGHT"
1423VALIGN="TOP"
1424><TT
1425CLASS="PARAMETER"
1426><I
1427>ptr</I
1428></TT
1429>&nbsp;:</TD
1430><TD
1431WIDTH="80%"
1432ALIGN="LEFT"
1433VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001434>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001435></TR
1436><TR
1437><TD
1438WIDTH="20%"
1439ALIGN="RIGHT"
1440VALIGN="TOP"
1441><TT
1442CLASS="PARAMETER"
1443><I
1444>size</I
1445></TT
1446>&nbsp;:</TD
1447><TD
1448WIDTH="80%"
1449ALIGN="LEFT"
1450VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001451>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001452></TR
1453><TR
1454><TD
1455WIDTH="20%"
1456ALIGN="RIGHT"
1457VALIGN="TOP"
1458><TT
1459CLASS="PARAMETER"
1460><I
1461>file</I
1462></TT
1463>&nbsp;:</TD
1464><TD
1465WIDTH="80%"
1466ALIGN="LEFT"
1467VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001468>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001469></TR
1470><TR
1471><TD
1472WIDTH="20%"
1473ALIGN="RIGHT"
1474VALIGN="TOP"
1475><TT
1476CLASS="PARAMETER"
1477><I
1478>line</I
1479></TT
1480>&nbsp;:</TD
1481><TD
1482WIDTH="80%"
1483ALIGN="LEFT"
1484VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001485>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001486></TR
1487></TABLE
1488><P
1489></P
1490></DIV
1491></DIV
1492><HR><DIV
1493CLASS="REFSECT2"
1494><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001495NAME="AEN16616"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001496></A
1497><H3
1498><A
1499NAME="XMLMEMSTRDUPLOC"
1500></A
1501>xmlMemStrdupLoc ()</H3
1502><TABLE
1503BORDER="0"
1504BGCOLOR="#D6E8FF"
1505WIDTH="100%"
1506CELLPADDING="6"
1507><TR
1508><TD
1509><PRE
1510CLASS="PROGRAMLISTING"
1511>char* xmlMemStrdupLoc (const char *str,
1512 const char *file,
1513 int line);</PRE
1514></TD
1515></TR
1516></TABLE
1517><P
1518>a <GTKDOCLINK
1519HREF="STRDUP"
1520>strdup</GTKDOCLINK
1521>() equivalent, with logging of the allocation info.</P
1522><P
1523></P
1524><DIV
1525CLASS="INFORMALTABLE"
1526><P
1527></P
1528><TABLE
1529BORDER="0"
1530WIDTH="100%"
1531BGCOLOR="#FFD0D0"
1532CELLSPACING="0"
1533CELLPADDING="4"
1534CLASS="CALSTABLE"
1535><TR
1536><TD
1537WIDTH="20%"
1538ALIGN="RIGHT"
1539VALIGN="TOP"
1540><TT
1541CLASS="PARAMETER"
1542><I
1543>str</I
1544></TT
1545>&nbsp;:</TD
1546><TD
1547WIDTH="80%"
1548ALIGN="LEFT"
1549VALIGN="TOP"
1550>&nbsp;</TD
1551></TR
1552><TR
1553><TD
1554WIDTH="20%"
1555ALIGN="RIGHT"
1556VALIGN="TOP"
1557><TT
1558CLASS="PARAMETER"
1559><I
1560>file</I
1561></TT
1562>&nbsp;:</TD
1563><TD
1564WIDTH="80%"
1565ALIGN="LEFT"
1566VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001567>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001568></TR
1569><TR
1570><TD
1571WIDTH="20%"
1572ALIGN="RIGHT"
1573VALIGN="TOP"
1574><TT
1575CLASS="PARAMETER"
1576><I
1577>line</I
1578></TT
1579>&nbsp;:</TD
1580><TD
1581WIDTH="80%"
1582ALIGN="LEFT"
1583VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001584>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001585></TR
1586><TR
1587><TD
1588WIDTH="20%"
1589ALIGN="RIGHT"
1590VALIGN="TOP"
1591><I
1592CLASS="EMPHASIS"
1593>Returns</I
1594> :</TD
1595><TD
1596WIDTH="80%"
1597ALIGN="LEFT"
1598VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00001599>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001600></TR
1601></TABLE
1602><P
1603></P
1604></DIV
1605></DIV
1606></DIV
1607><DIV
1608CLASS="NAVFOOTER"
1609><BR
1610CLEAR="all"><BR><TABLE
1611WIDTH="100%"
1612BORDER="0"
1613BGCOLOR="#000000"
1614CELLPADDING="1"
1615CELLSPACING="0"
1616><TR
1617><TD
1618WIDTH="25%"
1619BGCOLOR="#C00000"
1620ALIGN="left"
1621><A
Daniel Veillard294cbca1999-12-03 13:19:09 +00001622HREF="gnome-xml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001623><FONT
1624COLOR="#FFFFFF"
1625SIZE="3"
1626><B
1627>&#60;&#60;&#60; Previous Page</B
1628></FONT
1629></A
1630></TD
1631><TD
1632WIDTH="25%"
1633BGCOLOR="#0000C0"
1634ALIGN="center"
1635><FONT
1636COLOR="#FFFFFF"
1637SIZE="3"
1638><B
1639><A
1640HREF="book1.html"
1641><FONT
1642COLOR="#FFFFFF"
1643SIZE="3"
1644><B
1645>Home</B
1646></FONT
1647></A
1648></B
1649></FONT
1650></TD
1651><TD
1652WIDTH="25%"
1653BGCOLOR="#00C000"
1654ALIGN="center"
1655><FONT
1656COLOR="#FFFFFF"
1657SIZE="3"
1658><B
1659><A
Daniel Veillard35008381999-10-25 13:15:52 +00001660HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001661><FONT
1662COLOR="#FFFFFF"
1663SIZE="3"
1664><B
1665>Up</B
1666></FONT
1667></A
1668></B
1669></FONT
1670></TD
1671><TD
1672WIDTH="25%"
1673BGCOLOR="#C00000"
1674ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001675>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001676></TR
1677><TR
1678><TD
1679COLSPAN="2"
1680ALIGN="left"
1681><FONT
1682COLOR="#FFFFFF"
1683SIZE="3"
1684><B
Daniel Veillard294cbca1999-12-03 13:19:09 +00001685>debugXML</B
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001686></FONT
1687></TD
1688><TD
1689COLSPAN="2"
1690ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001691>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001692></TR
1693></TABLE
1694></DIV
1695></BODY
1696></HTML
1697>