blob: dc302111fc7694d46ff6c602b133f054cb3a6eba [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 Veillard28929b22000-11-13 18:22:49 +0000106NAME="AEN18252"
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 Veillard28929b22000-11-13 18:22:49 +0000114NAME="AEN18255"
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 Veillard28929b22000-11-13 18:22:49 +0000261NAME="AEN18288"
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 Veillard28929b22000-11-13 18:22:49 +0000271NAME="AEN18291"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000272></A
273><H2
274>Details</H2
275><DIV
276CLASS="REFSECT2"
277><A
Daniel Veillard28929b22000-11-13 18:22:49 +0000278NAME="AEN18293"
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 Veillardb732a0e2000-10-15 11:27:01 +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 Veillard28929b22000-11-13 18:22:49 +0000304NAME="AEN18298"
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 Veillardb732a0e2000-10-15 11:27:01 +0000320>#define MEM_LIST /* keep a list of all the allocated memory blocks */</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 Veillard28929b22000-11-13 18:22:49 +0000330NAME="AEN18303"
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 Veillard28929b22000-11-13 18:22:49 +0000388NAME="AEN18317"
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 Veillard28929b22000-11-13 18:22:49 +0000446NAME="AEN18331"
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 Veillard28929b22000-11-13 18:22:49 +0000522NAME="AEN18349"
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 Veillard28929b22000-11-13 18:22:49 +0000595NAME="AEN18367"
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 Veillard28929b22000-11-13 18:22:49 +0000621NAME="AEN18372"
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 Veillard28929b22000-11-13 18:22:49 +0000647NAME="AEN18377"
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 Veillard28929b22000-11-13 18:22:49 +0000673NAME="AEN18382"
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 Veillard28929b22000-11-13 18:22:49 +0000699NAME="AEN18387"
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 Veillardb732a0e2000-10-15 11:27:01 +0000768> the <GTKDOCLINK
769HREF="FREE"
770>free</GTKDOCLINK
771>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000772></TR
773><TR
774><TD
775WIDTH="20%"
776ALIGN="RIGHT"
777VALIGN="TOP"
778><TT
779CLASS="PARAMETER"
780><I
781>mallocFunc</I
782></TT
783>&nbsp;:</TD
784><TD
785WIDTH="80%"
786ALIGN="LEFT"
787VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000788> the <GTKDOCLINK
789HREF="MALLOC"
790>malloc</GTKDOCLINK
791>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000792></TR
793><TR
794><TD
795WIDTH="20%"
796ALIGN="RIGHT"
797VALIGN="TOP"
798><TT
799CLASS="PARAMETER"
800><I
801>reallocFunc</I
802></TT
803>&nbsp;:</TD
804><TD
805WIDTH="80%"
806ALIGN="LEFT"
807VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000808> the <GTKDOCLINK
809HREF="REALLOC"
810>realloc</GTKDOCLINK
811>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000812></TR
813><TR
814><TD
815WIDTH="20%"
816ALIGN="RIGHT"
817VALIGN="TOP"
818><TT
819CLASS="PARAMETER"
820><I
821>strdupFunc</I
822></TT
823>&nbsp;:</TD
824><TD
825WIDTH="80%"
826ALIGN="LEFT"
827VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000828> the <GTKDOCLINK
829HREF="STRDUP"
830>strdup</GTKDOCLINK
831>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000832></TR
833><TR
834><TD
835WIDTH="20%"
836ALIGN="RIGHT"
837VALIGN="TOP"
838><I
839CLASS="EMPHASIS"
840>Returns</I
841> :</TD
842><TD
843WIDTH="80%"
844ALIGN="LEFT"
845VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000846>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000847></TR
848></TABLE
849><P
850></P
851></DIV
852></DIV
853><HR><DIV
854CLASS="REFSECT2"
855><A
Daniel Veillard28929b22000-11-13 18:22:49 +0000856NAME="AEN18427"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000857></A
858><H3
859><A
860NAME="XMLMEMGET"
861></A
862>xmlMemGet ()</H3
863><TABLE
864BORDER="0"
865BGCOLOR="#D6E8FF"
866WIDTH="100%"
867CELLPADDING="6"
868><TR
869><TD
870><PRE
871CLASS="PROGRAMLISTING"
872>int xmlMemGet (<A
873HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
874>xmlFreeFunc</A
875> *freeFunc,
876 <A
877HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
878>xmlMallocFunc</A
879> *mallocFunc,
880 <A
881HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
882>xmlReallocFunc</A
883> *reallocFunc,
884 <A
885HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
886>xmlStrdupFunc</A
887> *strdupFunc);</PRE
888></TD
889></TR
890></TABLE
891><P
892>Return the memory access functions set currently in use</P
893><P
894></P
895><DIV
896CLASS="INFORMALTABLE"
897><P
898></P
899><TABLE
900BORDER="0"
901WIDTH="100%"
902BGCOLOR="#FFD0D0"
903CELLSPACING="0"
904CELLPADDING="4"
905CLASS="CALSTABLE"
906><TR
907><TD
908WIDTH="20%"
909ALIGN="RIGHT"
910VALIGN="TOP"
911><TT
912CLASS="PARAMETER"
913><I
914>freeFunc</I
915></TT
916>&nbsp;:</TD
917><TD
918WIDTH="80%"
919ALIGN="LEFT"
920VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000921> the <GTKDOCLINK
922HREF="FREE"
923>free</GTKDOCLINK
924>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000925></TR
926><TR
927><TD
928WIDTH="20%"
929ALIGN="RIGHT"
930VALIGN="TOP"
931><TT
932CLASS="PARAMETER"
933><I
934>mallocFunc</I
935></TT
936>&nbsp;:</TD
937><TD
938WIDTH="80%"
939ALIGN="LEFT"
940VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000941> the <GTKDOCLINK
942HREF="MALLOC"
943>malloc</GTKDOCLINK
944>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000945></TR
946><TR
947><TD
948WIDTH="20%"
949ALIGN="RIGHT"
950VALIGN="TOP"
951><TT
952CLASS="PARAMETER"
953><I
954>reallocFunc</I
955></TT
956>&nbsp;:</TD
957><TD
958WIDTH="80%"
959ALIGN="LEFT"
960VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000961> the <GTKDOCLINK
962HREF="REALLOC"
963>realloc</GTKDOCLINK
964>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000965></TR
966><TR
967><TD
968WIDTH="20%"
969ALIGN="RIGHT"
970VALIGN="TOP"
971><TT
972CLASS="PARAMETER"
973><I
974>strdupFunc</I
975></TT
976>&nbsp;:</TD
977><TD
978WIDTH="80%"
979ALIGN="LEFT"
980VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000981> the <GTKDOCLINK
982HREF="STRDUP"
983>strdup</GTKDOCLINK
984>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000985></TR
986><TR
987><TD
988WIDTH="20%"
989ALIGN="RIGHT"
990VALIGN="TOP"
991><I
992CLASS="EMPHASIS"
993>Returns</I
994> :</TD
995><TD
996WIDTH="80%"
997ALIGN="LEFT"
998VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000999>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001000></TR
1001></TABLE
1002><P
1003></P
1004></DIV
1005></DIV
1006><HR><DIV
1007CLASS="REFSECT2"
1008><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001009NAME="AEN18466"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001010></A
1011><H3
1012><A
1013NAME="XMLINITMEMORY"
1014></A
1015>xmlInitMemory ()</H3
1016><TABLE
1017BORDER="0"
1018BGCOLOR="#D6E8FF"
1019WIDTH="100%"
1020CELLPADDING="6"
1021><TR
1022><TD
1023><PRE
1024CLASS="PROGRAMLISTING"
1025>int xmlInitMemory (void);</PRE
1026></TD
1027></TR
1028></TABLE
1029><P
1030>Initialize the memory layer.</P
1031><P
1032></P
1033><DIV
1034CLASS="INFORMALTABLE"
1035><P
1036></P
1037><TABLE
1038BORDER="0"
1039WIDTH="100%"
1040BGCOLOR="#FFD0D0"
1041CELLSPACING="0"
1042CELLPADDING="4"
1043CLASS="CALSTABLE"
1044><TR
1045><TD
1046WIDTH="20%"
1047ALIGN="RIGHT"
1048VALIGN="TOP"
1049><I
1050CLASS="EMPHASIS"
1051>Returns</I
1052> :</TD
1053><TD
1054WIDTH="80%"
1055ALIGN="LEFT"
1056VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001057>0 on success</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001058></TR
1059></TABLE
1060><P
1061></P
1062></DIV
1063></DIV
1064><HR><DIV
1065CLASS="REFSECT2"
1066><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001067NAME="AEN18481"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001068></A
1069><H3
1070><A
1071NAME="XMLMEMUSED"
1072></A
1073>xmlMemUsed ()</H3
1074><TABLE
1075BORDER="0"
1076BGCOLOR="#D6E8FF"
1077WIDTH="100%"
1078CELLPADDING="6"
1079><TR
1080><TD
1081><PRE
1082CLASS="PROGRAMLISTING"
1083>int xmlMemUsed (void);</PRE
1084></TD
1085></TR
1086></TABLE
1087><P
1088>returns the amount of memory currenly allocated</P
1089><P
1090></P
1091><DIV
1092CLASS="INFORMALTABLE"
1093><P
1094></P
1095><TABLE
1096BORDER="0"
1097WIDTH="100%"
1098BGCOLOR="#FFD0D0"
1099CELLSPACING="0"
1100CELLPADDING="4"
1101CLASS="CALSTABLE"
1102><TR
1103><TD
1104WIDTH="20%"
1105ALIGN="RIGHT"
1106VALIGN="TOP"
1107><I
1108CLASS="EMPHASIS"
1109>Returns</I
1110> :</TD
1111><TD
1112WIDTH="80%"
1113ALIGN="LEFT"
1114VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001115>an int representing the amount of memory allocated.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001116></TR
1117></TABLE
1118><P
1119></P
1120></DIV
1121></DIV
1122><HR><DIV
1123CLASS="REFSECT2"
1124><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001125NAME="AEN18496"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001126></A
1127><H3
1128><A
1129NAME="XMLMEMDISPLAY"
1130></A
1131>xmlMemDisplay ()</H3
1132><TABLE
1133BORDER="0"
1134BGCOLOR="#D6E8FF"
1135WIDTH="100%"
1136CELLPADDING="6"
1137><TR
1138><TD
1139><PRE
1140CLASS="PROGRAMLISTING"
1141>void xmlMemDisplay (<GTKDOCLINK
1142HREF="FILE"
1143>FILE</GTKDOCLINK
1144> *fp);</PRE
1145></TD
1146></TR
1147></TABLE
1148><P
1149>show in-extenso the memory blocks allocated</P
1150><P
1151></P
1152><DIV
1153CLASS="INFORMALTABLE"
1154><P
1155></P
1156><TABLE
1157BORDER="0"
1158WIDTH="100%"
1159BGCOLOR="#FFD0D0"
1160CELLSPACING="0"
1161CELLPADDING="4"
1162CLASS="CALSTABLE"
1163><TR
1164><TD
1165WIDTH="20%"
1166ALIGN="RIGHT"
1167VALIGN="TOP"
1168><TT
1169CLASS="PARAMETER"
1170><I
1171>fp</I
1172></TT
1173>&nbsp;:</TD
1174><TD
1175WIDTH="80%"
1176ALIGN="LEFT"
1177VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001178> a FILE descriptor used as the output file, if NULL, the result is
1179written to the file .memorylist</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001180></TR
1181></TABLE
1182><P
1183></P
1184></DIV
1185></DIV
1186><HR><DIV
1187CLASS="REFSECT2"
1188><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001189NAME="AEN18512"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001190></A
1191><H3
1192><A
1193NAME="XMLMEMSHOW"
1194></A
1195>xmlMemShow ()</H3
1196><TABLE
1197BORDER="0"
1198BGCOLOR="#D6E8FF"
1199WIDTH="100%"
1200CELLPADDING="6"
1201><TR
1202><TD
1203><PRE
1204CLASS="PROGRAMLISTING"
1205>void xmlMemShow (<GTKDOCLINK
1206HREF="FILE"
1207>FILE</GTKDOCLINK
1208> *fp,
1209 int nr);</PRE
1210></TD
1211></TR
1212></TABLE
1213><P
1214>show a show display of the memory allocated, and dump
1215the <TT
1216CLASS="PARAMETER"
1217><I
1218>nr</I
1219></TT
1220> last allocated areas which were not freed</P
1221><P
1222></P
1223><DIV
1224CLASS="INFORMALTABLE"
1225><P
1226></P
1227><TABLE
1228BORDER="0"
1229WIDTH="100%"
1230BGCOLOR="#FFD0D0"
1231CELLSPACING="0"
1232CELLPADDING="4"
1233CLASS="CALSTABLE"
1234><TR
1235><TD
1236WIDTH="20%"
1237ALIGN="RIGHT"
1238VALIGN="TOP"
1239><TT
1240CLASS="PARAMETER"
1241><I
1242>fp</I
1243></TT
1244>&nbsp;:</TD
1245><TD
1246WIDTH="80%"
1247ALIGN="LEFT"
1248VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001249> a FILE descriptor used as the output file</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001250></TR
1251><TR
1252><TD
1253WIDTH="20%"
1254ALIGN="RIGHT"
1255VALIGN="TOP"
1256><TT
1257CLASS="PARAMETER"
1258><I
1259>nr</I
1260></TT
1261>&nbsp;:</TD
1262><TD
1263WIDTH="80%"
1264ALIGN="LEFT"
1265VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001266> number of entries to dump</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001267></TR
1268></TABLE
1269><P
1270></P
1271></DIV
1272></DIV
1273><HR><DIV
1274CLASS="REFSECT2"
1275><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001276NAME="AEN18533"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001277></A
1278><H3
1279><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001280NAME="XMLMEMORYDUMP"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001281></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001282>xmlMemoryDump ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001283><TABLE
1284BORDER="0"
1285BGCOLOR="#D6E8FF"
1286WIDTH="100%"
1287CELLPADDING="6"
1288><TR
1289><TD
1290><PRE
1291CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001292>void xmlMemoryDump (void);</PRE
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001293></TD
1294></TR
1295></TABLE
1296><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001297>Dump in-extenso the memory blocks allocated to the file .memorylist</P
1298><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001299></P
1300></DIV
1301><HR><DIV
1302CLASS="REFSECT2"
1303><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001304NAME="AEN18539"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001305></A
1306><H3
1307><A
1308NAME="XMLMALLOCLOC"
1309></A
1310>xmlMallocLoc ()</H3
1311><TABLE
1312BORDER="0"
1313BGCOLOR="#D6E8FF"
1314WIDTH="100%"
1315CELLPADDING="6"
1316><TR
1317><TD
1318><PRE
1319CLASS="PROGRAMLISTING"
1320>void* xmlMallocLoc (int size,
1321 const char *file,
1322 int line);</PRE
1323></TD
1324></TR
1325></TABLE
1326><P
1327>a <GTKDOCLINK
1328HREF="MALLOC"
1329>malloc</GTKDOCLINK
1330>() equivalent, with logging of the allocation info.</P
1331><P
1332></P
1333><DIV
1334CLASS="INFORMALTABLE"
1335><P
1336></P
1337><TABLE
1338BORDER="0"
1339WIDTH="100%"
1340BGCOLOR="#FFD0D0"
1341CELLSPACING="0"
1342CELLPADDING="4"
1343CLASS="CALSTABLE"
1344><TR
1345><TD
1346WIDTH="20%"
1347ALIGN="RIGHT"
1348VALIGN="TOP"
1349><TT
1350CLASS="PARAMETER"
1351><I
1352>size</I
1353></TT
1354>&nbsp;:</TD
1355><TD
1356WIDTH="80%"
1357ALIGN="LEFT"
1358VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001359> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001360></TR
1361><TR
1362><TD
1363WIDTH="20%"
1364ALIGN="RIGHT"
1365VALIGN="TOP"
1366><TT
1367CLASS="PARAMETER"
1368><I
1369>file</I
1370></TT
1371>&nbsp;:</TD
1372><TD
1373WIDTH="80%"
1374ALIGN="LEFT"
1375VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001376> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001377></TR
1378><TR
1379><TD
1380WIDTH="20%"
1381ALIGN="RIGHT"
1382VALIGN="TOP"
1383><TT
1384CLASS="PARAMETER"
1385><I
1386>line</I
1387></TT
1388>&nbsp;:</TD
1389><TD
1390WIDTH="80%"
1391ALIGN="LEFT"
1392VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001393> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001394></TR
1395></TABLE
1396><P
1397></P
1398></DIV
1399></DIV
1400><HR><DIV
1401CLASS="REFSECT2"
1402><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001403NAME="AEN18563"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001404></A
1405><H3
1406><A
1407NAME="XMLREALLOCLOC"
1408></A
1409>xmlReallocLoc ()</H3
1410><TABLE
1411BORDER="0"
1412BGCOLOR="#D6E8FF"
1413WIDTH="100%"
1414CELLPADDING="6"
1415><TR
1416><TD
1417><PRE
1418CLASS="PROGRAMLISTING"
1419>void* xmlReallocLoc (void *ptr,
1420 int size,
1421 const char *file,
1422 int line);</PRE
1423></TD
1424></TR
1425></TABLE
1426><P
1427>a <GTKDOCLINK
1428HREF="REALLOC"
1429>realloc</GTKDOCLINK
1430>() equivalent, with logging of the allocation info.</P
1431><P
1432></P
1433><DIV
1434CLASS="INFORMALTABLE"
1435><P
1436></P
1437><TABLE
1438BORDER="0"
1439WIDTH="100%"
1440BGCOLOR="#FFD0D0"
1441CELLSPACING="0"
1442CELLPADDING="4"
1443CLASS="CALSTABLE"
1444><TR
1445><TD
1446WIDTH="20%"
1447ALIGN="RIGHT"
1448VALIGN="TOP"
1449><TT
1450CLASS="PARAMETER"
1451><I
1452>ptr</I
1453></TT
1454>&nbsp;:</TD
1455><TD
1456WIDTH="80%"
1457ALIGN="LEFT"
1458VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001459> the initial memory block pointer</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001460></TR
1461><TR
1462><TD
1463WIDTH="20%"
1464ALIGN="RIGHT"
1465VALIGN="TOP"
1466><TT
1467CLASS="PARAMETER"
1468><I
1469>size</I
1470></TT
1471>&nbsp;:</TD
1472><TD
1473WIDTH="80%"
1474ALIGN="LEFT"
1475VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001476> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001477></TR
1478><TR
1479><TD
1480WIDTH="20%"
1481ALIGN="RIGHT"
1482VALIGN="TOP"
1483><TT
1484CLASS="PARAMETER"
1485><I
1486>file</I
1487></TT
1488>&nbsp;:</TD
1489><TD
1490WIDTH="80%"
1491ALIGN="LEFT"
1492VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001493> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001494></TR
1495><TR
1496><TD
1497WIDTH="20%"
1498ALIGN="RIGHT"
1499VALIGN="TOP"
1500><TT
1501CLASS="PARAMETER"
1502><I
1503>line</I
1504></TT
1505>&nbsp;:</TD
1506><TD
1507WIDTH="80%"
1508ALIGN="LEFT"
1509VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001510> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001511></TR
1512></TABLE
1513><P
1514></P
1515></DIV
1516></DIV
1517><HR><DIV
1518CLASS="REFSECT2"
1519><A
Daniel Veillard28929b22000-11-13 18:22:49 +00001520NAME="AEN18591"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001521></A
1522><H3
1523><A
1524NAME="XMLMEMSTRDUPLOC"
1525></A
1526>xmlMemStrdupLoc ()</H3
1527><TABLE
1528BORDER="0"
1529BGCOLOR="#D6E8FF"
1530WIDTH="100%"
1531CELLPADDING="6"
1532><TR
1533><TD
1534><PRE
1535CLASS="PROGRAMLISTING"
1536>char* xmlMemStrdupLoc (const char *str,
1537 const char *file,
1538 int line);</PRE
1539></TD
1540></TR
1541></TABLE
1542><P
1543>a <GTKDOCLINK
1544HREF="STRDUP"
1545>strdup</GTKDOCLINK
1546>() equivalent, with logging of the allocation info.</P
1547><P
1548></P
1549><DIV
1550CLASS="INFORMALTABLE"
1551><P
1552></P
1553><TABLE
1554BORDER="0"
1555WIDTH="100%"
1556BGCOLOR="#FFD0D0"
1557CELLSPACING="0"
1558CELLPADDING="4"
1559CLASS="CALSTABLE"
1560><TR
1561><TD
1562WIDTH="20%"
1563ALIGN="RIGHT"
1564VALIGN="TOP"
1565><TT
1566CLASS="PARAMETER"
1567><I
1568>str</I
1569></TT
1570>&nbsp;:</TD
1571><TD
1572WIDTH="80%"
1573ALIGN="LEFT"
1574VALIGN="TOP"
1575>&nbsp;</TD
1576></TR
1577><TR
1578><TD
1579WIDTH="20%"
1580ALIGN="RIGHT"
1581VALIGN="TOP"
1582><TT
1583CLASS="PARAMETER"
1584><I
1585>file</I
1586></TT
1587>&nbsp;:</TD
1588><TD
1589WIDTH="80%"
1590ALIGN="LEFT"
1591VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001592> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001593></TR
1594><TR
1595><TD
1596WIDTH="20%"
1597ALIGN="RIGHT"
1598VALIGN="TOP"
1599><TT
1600CLASS="PARAMETER"
1601><I
1602>line</I
1603></TT
1604>&nbsp;:</TD
1605><TD
1606WIDTH="80%"
1607ALIGN="LEFT"
1608VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001609> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001610></TR
1611><TR
1612><TD
1613WIDTH="20%"
1614ALIGN="RIGHT"
1615VALIGN="TOP"
1616><I
1617CLASS="EMPHASIS"
1618>Returns</I
1619> :</TD
1620><TD
1621WIDTH="80%"
1622ALIGN="LEFT"
1623VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001624>a pointer to the new string or NULL if allocation error occured.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001625></TR
1626></TABLE
1627><P
1628></P
1629></DIV
1630></DIV
1631></DIV
1632><DIV
1633CLASS="NAVFOOTER"
1634><BR
1635CLEAR="all"><BR><TABLE
1636WIDTH="100%"
1637BORDER="0"
1638BGCOLOR="#000000"
1639CELLPADDING="1"
1640CELLSPACING="0"
1641><TR
1642><TD
1643WIDTH="25%"
1644BGCOLOR="#C00000"
1645ALIGN="left"
1646><A
Daniel Veillard294cbca1999-12-03 13:19:09 +00001647HREF="gnome-xml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001648><FONT
1649COLOR="#FFFFFF"
1650SIZE="3"
1651><B
1652>&#60;&#60;&#60; Previous Page</B
1653></FONT
1654></A
1655></TD
1656><TD
1657WIDTH="25%"
1658BGCOLOR="#0000C0"
1659ALIGN="center"
1660><FONT
1661COLOR="#FFFFFF"
1662SIZE="3"
1663><B
1664><A
1665HREF="book1.html"
1666><FONT
1667COLOR="#FFFFFF"
1668SIZE="3"
1669><B
1670>Home</B
1671></FONT
1672></A
1673></B
1674></FONT
1675></TD
1676><TD
1677WIDTH="25%"
1678BGCOLOR="#00C000"
1679ALIGN="center"
1680><FONT
1681COLOR="#FFFFFF"
1682SIZE="3"
1683><B
1684><A
Daniel Veillard35008381999-10-25 13:15:52 +00001685HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001686><FONT
1687COLOR="#FFFFFF"
1688SIZE="3"
1689><B
1690>Up</B
1691></FONT
1692></A
1693></B
1694></FONT
1695></TD
1696><TD
1697WIDTH="25%"
1698BGCOLOR="#C00000"
1699ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001700>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001701></TR
1702><TR
1703><TD
1704COLSPAN="2"
1705ALIGN="left"
1706><FONT
1707COLOR="#FFFFFF"
1708SIZE="3"
1709><B
Daniel Veillard294cbca1999-12-03 13:19:09 +00001710>debugXML</B
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001711></FONT
1712></TD
1713><TD
1714COLSPAN="2"
1715ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001716>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001717></TR
1718></TABLE
1719></DIV
1720></BODY
1721></HTML
1722>