blob: 1ef5778f92cd22bc5c446231e2cda9c7c6071ecf [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"
16HREF="gnome-xml-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 Veillard294cbca1999-12-03 13:19:09 +000047HREF="gnome-xml-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
106NAME="GNOME-XML-XMLMEMORY"
107>xmlmemory</A
108></H1
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000109><DIV
110CLASS="REFNAMEDIV"
111><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000112NAME="AEN18452"
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 Veillard503b8932001-01-05 06:36:31 +0000120NAME="AEN18455"
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 Veillard503b8932001-01-05 06:36:31 +0000136HREF="gnome-xml-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 Veillard503b8932001-01-05 06:36:31 +0000140HREF="gnome-xml-xmlmemory.html#MEM-LIST-CAPS"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000141>MEM_LIST</A
142>
143void (<A
144HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
145>*xmlFreeFunc</A
146>) (void*);
147void* (<A
148HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
149>*xmlMallocFunc</A
150>) (...);
151void* (<A
152HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
153>*xmlReallocFunc</A
154>) (void*,
155 ...);
156char* (<A
157HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
158>*xmlStrdupFunc</A
159>) (const char*);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000160int <A
161HREF="gnome-xml-xmlmemory.html#XMLMEMSETUP"
162>xmlMemSetup</A
163> (<A
164HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
165>xmlFreeFunc</A
166> freeFunc,
167 <A
168HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
169>xmlMallocFunc</A
170> mallocFunc,
171 <A
172HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
173>xmlReallocFunc</A
174> reallocFunc,
175 <A
176HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
177>xmlStrdupFunc</A
178> strdupFunc);
179int <A
180HREF="gnome-xml-xmlmemory.html#XMLMEMGET"
181>xmlMemGet</A
182> (<A
183HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
184>xmlFreeFunc</A
185> *freeFunc,
186 <A
187HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
188>xmlMallocFunc</A
189> *mallocFunc,
190 <A
191HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
192>xmlReallocFunc</A
193> *reallocFunc,
194 <A
195HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
196>xmlStrdupFunc</A
197> *strdupFunc);
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000198int <A
199HREF="gnome-xml-xmlmemory.html#XMLINITMEMORY"
200>xmlInitMemory</A
201> (void);
202int <A
203HREF="gnome-xml-xmlmemory.html#XMLMEMUSED"
204>xmlMemUsed</A
205> (void);
206void <A
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000207HREF="gnome-xml-xmlmemory.html#XMLMEMDISPLAY"
208>xmlMemDisplay</A
209> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000210HREF="FILE-CAPS"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000211>FILE</GTKDOCLINK
212> *fp);
Daniel Veillardf3a73582000-01-05 14:58:39 +0000213void <A
214HREF="gnome-xml-xmlmemory.html#XMLMEMSHOW"
215>xmlMemShow</A
216> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000217HREF="FILE-CAPS"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000218>FILE</GTKDOCLINK
219> *fp,
220 int nr);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000221void <A
222HREF="gnome-xml-xmlmemory.html#XMLMEMORYDUMP"
223>xmlMemoryDump</A
224> (void);
Daniel Veillarda1fe9102000-11-25 10:49:25 +0000225#define <A
226HREF="gnome-xml-xmlmemory.html#XMLMALLOC"
227>xmlMalloc</A
228> (x)
229#define <A
230HREF="gnome-xml-xmlmemory.html#XMLREALLOC"
231>xmlRealloc</A
232> (p, x)
233#define <A
234HREF="gnome-xml-xmlmemory.html#XMLMEMSTRDUP"
235>xmlMemStrdup</A
236> (x)
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000237void* <A
238HREF="gnome-xml-xmlmemory.html#XMLMALLOCLOC"
239>xmlMallocLoc</A
240> (int size,
241 const char *file,
242 int line);
243void* <A
244HREF="gnome-xml-xmlmemory.html#XMLREALLOCLOC"
245>xmlReallocLoc</A
246> (void *ptr,
247 int size,
248 const char *file,
249 int line);
250char* <A
251HREF="gnome-xml-xmlmemory.html#XMLMEMSTRDUPLOC"
252>xmlMemStrdupLoc</A
253> (const char *str,
254 const char *file,
255 int line);</PRE
256></TD
257></TR
258></TABLE
259></DIV
260><DIV
261CLASS="REFSECT1"
262><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000263NAME="AEN18487"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000264></A
265><H2
266>Description</H2
267><P
268></P
269></DIV
270><DIV
271CLASS="REFSECT1"
272><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000273NAME="AEN18490"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000274></A
275><H2
276>Details</H2
277><DIV
278CLASS="REFSECT2"
279><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000280NAME="AEN18492"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000281></A
282><H3
283><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000284NAME="DEBUG-MEMORY-CAPS"
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000285></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000286>DEBUG_MEMORY</H3
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000287><TABLE
288BORDER="0"
289BGCOLOR="#D6E8FF"
290WIDTH="100%"
291CELLPADDING="6"
292><TR
293><TD
294><PRE
295CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000296>#define DEBUG_MEMORY</PRE
Daniel Veillard4c3a2031999-11-19 17:46:26 +0000297></TD
298></TR
299></TABLE
300><P
301></P
302></DIV
303><HR><DIV
304CLASS="REFSECT2"
305><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000306NAME="AEN18497"
Daniel Veillard8f621982000-03-20 13:07:15 +0000307></A
308><H3
309><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000310NAME="MEM-LIST-CAPS"
Daniel Veillard8f621982000-03-20 13:07:15 +0000311></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000312>MEM_LIST</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000313><TABLE
314BORDER="0"
315BGCOLOR="#D6E8FF"
316WIDTH="100%"
317CELLPADDING="6"
318><TR
319><TD
320><PRE
321CLASS="PROGRAMLISTING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000322>#define MEM_LIST /* keep a list of all the allocated memory blocks */</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000323></TD
324></TR
325></TABLE
326><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000327></P
328></DIV
329><HR><DIV
330CLASS="REFSECT2"
331><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000332NAME="AEN18502"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000333></A
334><H3
335><A
336NAME="XMLFREEFUNC"
337></A
338>xmlFreeFunc ()</H3
339><TABLE
340BORDER="0"
341BGCOLOR="#D6E8FF"
342WIDTH="100%"
343CELLPADDING="6"
344><TR
345><TD
346><PRE
347CLASS="PROGRAMLISTING"
348>void (*xmlFreeFunc) (void*);</PRE
349></TD
350></TR
351></TABLE
Daniel Veillard06047432000-04-24 11:33:38 +0000352><P
353></P
354><DIV
355CLASS="INFORMALTABLE"
356><P
357></P
358><TABLE
359BORDER="0"
360WIDTH="100%"
361BGCOLOR="#FFD0D0"
362CELLSPACING="0"
363CELLPADDING="4"
364CLASS="CALSTABLE"
365><TR
366><TD
367WIDTH="20%"
368ALIGN="RIGHT"
369VALIGN="TOP"
370><TT
371CLASS="PARAMETER"
372><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000373>Param1</I
Daniel Veillard06047432000-04-24 11:33:38 +0000374></TT
375>&nbsp;:</TD
376><TD
377WIDTH="80%"
378ALIGN="LEFT"
379VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000380>&#13;</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000381></TR
382></TABLE
383><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000384></P
385></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000386></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000387><HR><DIV
388CLASS="REFSECT2"
389><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000390NAME="AEN18516"
Daniel Veillard8f621982000-03-20 13:07:15 +0000391></A
392><H3
393><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000394NAME="XMLMALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000395></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000396>xmlMallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000397><TABLE
398BORDER="0"
399BGCOLOR="#D6E8FF"
400WIDTH="100%"
401CELLPADDING="6"
402><TR
403><TD
404><PRE
405CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000406>void* (*xmlMallocFunc) (...);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000407></TD
408></TR
409></TABLE
410><P
Daniel Veillard06047432000-04-24 11:33:38 +0000411></P
412><DIV
413CLASS="INFORMALTABLE"
414><P
415></P
416><TABLE
417BORDER="0"
418WIDTH="100%"
419BGCOLOR="#FFD0D0"
420CELLSPACING="0"
421CELLPADDING="4"
422CLASS="CALSTABLE"
423><TR
424><TD
425WIDTH="20%"
426ALIGN="RIGHT"
427VALIGN="TOP"
428><TT
429CLASS="PARAMETER"
430><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000431>...</I
Daniel Veillard06047432000-04-24 11:33:38 +0000432></TT
433>&nbsp;:</TD
434><TD
435WIDTH="80%"
436ALIGN="LEFT"
437VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000438>&#13;</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000439></TR
440></TABLE
441><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000442></P
443></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000444></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000445><HR><DIV
446CLASS="REFSECT2"
447><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000448NAME="AEN18530"
Daniel Veillard8f621982000-03-20 13:07:15 +0000449></A
450><H3
451><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000452NAME="XMLREALLOCFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000453></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000454>xmlReallocFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000455><TABLE
456BORDER="0"
457BGCOLOR="#D6E8FF"
458WIDTH="100%"
459CELLPADDING="6"
460><TR
461><TD
462><PRE
463CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000464>void* (*xmlReallocFunc) (void*,
465 ...);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000466></TD
467></TR
468></TABLE
469><P
Daniel Veillard06047432000-04-24 11:33:38 +0000470></P
471><DIV
472CLASS="INFORMALTABLE"
473><P
474></P
475><TABLE
476BORDER="0"
477WIDTH="100%"
478BGCOLOR="#FFD0D0"
479CELLSPACING="0"
480CELLPADDING="4"
481CLASS="CALSTABLE"
482><TR
483><TD
484WIDTH="20%"
485ALIGN="RIGHT"
486VALIGN="TOP"
487><TT
488CLASS="PARAMETER"
489><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000490>Param1</I
Daniel Veillard06047432000-04-24 11:33:38 +0000491></TT
492>&nbsp;:</TD
493><TD
494WIDTH="80%"
495ALIGN="LEFT"
496VALIGN="TOP"
497>&nbsp;</TD
498></TR
499><TR
500><TD
501WIDTH="20%"
502ALIGN="RIGHT"
503VALIGN="TOP"
504><TT
505CLASS="PARAMETER"
506><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000507>...</I
Daniel Veillard06047432000-04-24 11:33:38 +0000508></TT
509>&nbsp;:</TD
510><TD
511WIDTH="80%"
512ALIGN="LEFT"
513VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000514>&#13;</TD
Daniel Veillard06047432000-04-24 11:33:38 +0000515></TR
516></TABLE
517><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000518></P
519></DIV
Daniel Veillard06047432000-04-24 11:33:38 +0000520></DIV
Daniel Veillard8f621982000-03-20 13:07:15 +0000521><HR><DIV
522CLASS="REFSECT2"
523><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000524NAME="AEN18548"
Daniel Veillard8f621982000-03-20 13:07:15 +0000525></A
526><H3
527><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000528NAME="XMLSTRDUPFUNC"
Daniel Veillard8f621982000-03-20 13:07:15 +0000529></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000530>xmlStrdupFunc ()</H3
Daniel Veillard8f621982000-03-20 13:07:15 +0000531><TABLE
532BORDER="0"
533BGCOLOR="#D6E8FF"
534WIDTH="100%"
535CELLPADDING="6"
536><TR
537><TD
538><PRE
539CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000540>char* (*xmlStrdupFunc) (const char*);</PRE
Daniel Veillard8f621982000-03-20 13:07:15 +0000541></TD
542></TR
543></TABLE
544><P
Daniel Veillard8f621982000-03-20 13:07:15 +0000545></P
546><DIV
547CLASS="INFORMALTABLE"
548><P
549></P
550><TABLE
551BORDER="0"
552WIDTH="100%"
553BGCOLOR="#FFD0D0"
554CELLSPACING="0"
555CELLPADDING="4"
556CLASS="CALSTABLE"
557><TR
558><TD
559WIDTH="20%"
560ALIGN="RIGHT"
561VALIGN="TOP"
562><TT
563CLASS="PARAMETER"
564><I
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000565>Param1</I
Daniel Veillard8f621982000-03-20 13:07:15 +0000566></TT
567>&nbsp;:</TD
568><TD
569WIDTH="80%"
570ALIGN="LEFT"
571VALIGN="TOP"
Daniel Veillard06047432000-04-24 11:33:38 +0000572>&nbsp;</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000573></TR
574><TR
575><TD
576WIDTH="20%"
577ALIGN="RIGHT"
578VALIGN="TOP"
579><I
580CLASS="EMPHASIS"
581>Returns</I
582> :</TD
583><TD
584WIDTH="80%"
585ALIGN="LEFT"
586VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +0000587>&#13;</TD
Daniel Veillard8f621982000-03-20 13:07:15 +0000588></TR
589></TABLE
590><P
591></P
592></DIV
593></DIV
594><HR><DIV
595CLASS="REFSECT2"
596><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000597NAME="AEN18566"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000598></A
599><H3
600><A
601NAME="XMLMEMSETUP"
602></A
603>xmlMemSetup ()</H3
604><TABLE
605BORDER="0"
606BGCOLOR="#D6E8FF"
607WIDTH="100%"
608CELLPADDING="6"
609><TR
610><TD
611><PRE
612CLASS="PROGRAMLISTING"
613>int xmlMemSetup (<A
614HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
615>xmlFreeFunc</A
616> freeFunc,
617 <A
618HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
619>xmlMallocFunc</A
620> mallocFunc,
621 <A
622HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
623>xmlReallocFunc</A
624> reallocFunc,
625 <A
626HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
627>xmlStrdupFunc</A
628> strdupFunc);</PRE
629></TD
630></TR
631></TABLE
632><P
633>Override the default memory access functions with a new set
634This has to be called before any other libxml routines !</P
635><P
636>Should this be blocked if there was already some allocations
637done ?</P
638><P
639></P
640><DIV
641CLASS="INFORMALTABLE"
642><P
643></P
644><TABLE
645BORDER="0"
646WIDTH="100%"
647BGCOLOR="#FFD0D0"
648CELLSPACING="0"
649CELLPADDING="4"
650CLASS="CALSTABLE"
651><TR
652><TD
653WIDTH="20%"
654ALIGN="RIGHT"
655VALIGN="TOP"
656><TT
657CLASS="PARAMETER"
658><I
659>freeFunc</I
660></TT
661>&nbsp;:</TD
662><TD
663WIDTH="80%"
664ALIGN="LEFT"
665VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000666> the <GTKDOCLINK
667HREF="FREE"
668>free</GTKDOCLINK
669>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000670></TR
671><TR
672><TD
673WIDTH="20%"
674ALIGN="RIGHT"
675VALIGN="TOP"
676><TT
677CLASS="PARAMETER"
678><I
679>mallocFunc</I
680></TT
681>&nbsp;:</TD
682><TD
683WIDTH="80%"
684ALIGN="LEFT"
685VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000686> the <GTKDOCLINK
687HREF="MALLOC"
688>malloc</GTKDOCLINK
689>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000690></TR
691><TR
692><TD
693WIDTH="20%"
694ALIGN="RIGHT"
695VALIGN="TOP"
696><TT
697CLASS="PARAMETER"
698><I
699>reallocFunc</I
700></TT
701>&nbsp;:</TD
702><TD
703WIDTH="80%"
704ALIGN="LEFT"
705VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000706> the <GTKDOCLINK
707HREF="REALLOC"
708>realloc</GTKDOCLINK
709>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000710></TR
711><TR
712><TD
713WIDTH="20%"
714ALIGN="RIGHT"
715VALIGN="TOP"
716><TT
717CLASS="PARAMETER"
718><I
719>strdupFunc</I
720></TT
721>&nbsp;:</TD
722><TD
723WIDTH="80%"
724ALIGN="LEFT"
725VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000726> the <GTKDOCLINK
727HREF="STRDUP"
728>strdup</GTKDOCLINK
729>() function to use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000730></TR
731><TR
732><TD
733WIDTH="20%"
734ALIGN="RIGHT"
735VALIGN="TOP"
736><I
737CLASS="EMPHASIS"
738>Returns</I
739> :</TD
740><TD
741WIDTH="80%"
742ALIGN="LEFT"
743VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000744>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000745></TR
746></TABLE
747><P
748></P
749></DIV
750></DIV
751><HR><DIV
752CLASS="REFSECT2"
753><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000754NAME="AEN18606"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000755></A
756><H3
757><A
758NAME="XMLMEMGET"
759></A
760>xmlMemGet ()</H3
761><TABLE
762BORDER="0"
763BGCOLOR="#D6E8FF"
764WIDTH="100%"
765CELLPADDING="6"
766><TR
767><TD
768><PRE
769CLASS="PROGRAMLISTING"
770>int xmlMemGet (<A
771HREF="gnome-xml-xmlmemory.html#XMLFREEFUNC"
772>xmlFreeFunc</A
773> *freeFunc,
774 <A
775HREF="gnome-xml-xmlmemory.html#XMLMALLOCFUNC"
776>xmlMallocFunc</A
777> *mallocFunc,
778 <A
779HREF="gnome-xml-xmlmemory.html#XMLREALLOCFUNC"
780>xmlReallocFunc</A
781> *reallocFunc,
782 <A
783HREF="gnome-xml-xmlmemory.html#XMLSTRDUPFUNC"
784>xmlStrdupFunc</A
785> *strdupFunc);</PRE
786></TD
787></TR
788></TABLE
789><P
790>Return the memory access functions set currently in use</P
791><P
792></P
793><DIV
794CLASS="INFORMALTABLE"
795><P
796></P
797><TABLE
798BORDER="0"
799WIDTH="100%"
800BGCOLOR="#FFD0D0"
801CELLSPACING="0"
802CELLPADDING="4"
803CLASS="CALSTABLE"
804><TR
805><TD
806WIDTH="20%"
807ALIGN="RIGHT"
808VALIGN="TOP"
809><TT
810CLASS="PARAMETER"
811><I
812>freeFunc</I
813></TT
814>&nbsp;:</TD
815><TD
816WIDTH="80%"
817ALIGN="LEFT"
818VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000819> the <GTKDOCLINK
820HREF="FREE"
821>free</GTKDOCLINK
822>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000823></TR
824><TR
825><TD
826WIDTH="20%"
827ALIGN="RIGHT"
828VALIGN="TOP"
829><TT
830CLASS="PARAMETER"
831><I
832>mallocFunc</I
833></TT
834>&nbsp;:</TD
835><TD
836WIDTH="80%"
837ALIGN="LEFT"
838VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000839> the <GTKDOCLINK
840HREF="MALLOC"
841>malloc</GTKDOCLINK
842>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000843></TR
844><TR
845><TD
846WIDTH="20%"
847ALIGN="RIGHT"
848VALIGN="TOP"
849><TT
850CLASS="PARAMETER"
851><I
852>reallocFunc</I
853></TT
854>&nbsp;:</TD
855><TD
856WIDTH="80%"
857ALIGN="LEFT"
858VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000859> the <GTKDOCLINK
860HREF="REALLOC"
861>realloc</GTKDOCLINK
862>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000863></TR
864><TR
865><TD
866WIDTH="20%"
867ALIGN="RIGHT"
868VALIGN="TOP"
869><TT
870CLASS="PARAMETER"
871><I
872>strdupFunc</I
873></TT
874>&nbsp;:</TD
875><TD
876WIDTH="80%"
877ALIGN="LEFT"
878VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000879> the <GTKDOCLINK
880HREF="STRDUP"
881>strdup</GTKDOCLINK
882>() function in use</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000883></TR
884><TR
885><TD
886WIDTH="20%"
887ALIGN="RIGHT"
888VALIGN="TOP"
889><I
890CLASS="EMPHASIS"
891>Returns</I
892> :</TD
893><TD
894WIDTH="80%"
895ALIGN="LEFT"
896VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000897>0 on success</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000898></TR
899></TABLE
900><P
901></P
902></DIV
903></DIV
904><HR><DIV
905CLASS="REFSECT2"
906><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000907NAME="AEN18645"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000908></A
909><H3
910><A
911NAME="XMLINITMEMORY"
912></A
913>xmlInitMemory ()</H3
914><TABLE
915BORDER="0"
916BGCOLOR="#D6E8FF"
917WIDTH="100%"
918CELLPADDING="6"
919><TR
920><TD
921><PRE
922CLASS="PROGRAMLISTING"
923>int xmlInitMemory (void);</PRE
924></TD
925></TR
926></TABLE
927><P
928>Initialize the memory layer.</P
929><P
930></P
931><DIV
932CLASS="INFORMALTABLE"
933><P
934></P
935><TABLE
936BORDER="0"
937WIDTH="100%"
938BGCOLOR="#FFD0D0"
939CELLSPACING="0"
940CELLPADDING="4"
941CLASS="CALSTABLE"
942><TR
943><TD
944WIDTH="20%"
945ALIGN="RIGHT"
946VALIGN="TOP"
947><I
948CLASS="EMPHASIS"
949>Returns</I
950> :</TD
951><TD
952WIDTH="80%"
953ALIGN="LEFT"
954VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000955>0 on success</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000956></TR
957></TABLE
958><P
959></P
960></DIV
961></DIV
962><HR><DIV
963CLASS="REFSECT2"
964><A
Daniel Veillard503b8932001-01-05 06:36:31 +0000965NAME="AEN18660"
Daniel Veillard7c1206f1999-10-14 09:10:25 +0000966></A
967><H3
968><A
969NAME="XMLMEMUSED"
970></A
971>xmlMemUsed ()</H3
972><TABLE
973BORDER="0"
974BGCOLOR="#D6E8FF"
975WIDTH="100%"
976CELLPADDING="6"
977><TR
978><TD
979><PRE
980CLASS="PROGRAMLISTING"
981>int xmlMemUsed (void);</PRE
982></TD
983></TR
984></TABLE
985><P
986>returns the amount of memory currenly allocated</P
987><P
988></P
989><DIV
990CLASS="INFORMALTABLE"
991><P
992></P
993><TABLE
994BORDER="0"
995WIDTH="100%"
996BGCOLOR="#FFD0D0"
997CELLSPACING="0"
998CELLPADDING="4"
999CLASS="CALSTABLE"
1000><TR
1001><TD
1002WIDTH="20%"
1003ALIGN="RIGHT"
1004VALIGN="TOP"
1005><I
1006CLASS="EMPHASIS"
1007>Returns</I
1008> :</TD
1009><TD
1010WIDTH="80%"
1011ALIGN="LEFT"
1012VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001013>an int representing the amount of memory allocated.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001014></TR
1015></TABLE
1016><P
1017></P
1018></DIV
1019></DIV
1020><HR><DIV
1021CLASS="REFSECT2"
1022><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001023NAME="AEN18675"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001024></A
1025><H3
1026><A
1027NAME="XMLMEMDISPLAY"
1028></A
1029>xmlMemDisplay ()</H3
1030><TABLE
1031BORDER="0"
1032BGCOLOR="#D6E8FF"
1033WIDTH="100%"
1034CELLPADDING="6"
1035><TR
1036><TD
1037><PRE
1038CLASS="PROGRAMLISTING"
1039>void xmlMemDisplay (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +00001040HREF="FILE-CAPS"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001041>FILE</GTKDOCLINK
1042> *fp);</PRE
1043></TD
1044></TR
1045></TABLE
1046><P
1047>show in-extenso the memory blocks allocated</P
1048><P
1049></P
1050><DIV
1051CLASS="INFORMALTABLE"
1052><P
1053></P
1054><TABLE
1055BORDER="0"
1056WIDTH="100%"
1057BGCOLOR="#FFD0D0"
1058CELLSPACING="0"
1059CELLPADDING="4"
1060CLASS="CALSTABLE"
1061><TR
1062><TD
1063WIDTH="20%"
1064ALIGN="RIGHT"
1065VALIGN="TOP"
1066><TT
1067CLASS="PARAMETER"
1068><I
1069>fp</I
1070></TT
1071>&nbsp;:</TD
1072><TD
1073WIDTH="80%"
1074ALIGN="LEFT"
1075VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001076> a FILE descriptor used as the output file, if NULL, the result is
1077written to the file .memorylist</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001078></TR
1079></TABLE
1080><P
1081></P
1082></DIV
1083></DIV
1084><HR><DIV
1085CLASS="REFSECT2"
1086><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001087NAME="AEN18691"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001088></A
1089><H3
1090><A
1091NAME="XMLMEMSHOW"
1092></A
1093>xmlMemShow ()</H3
1094><TABLE
1095BORDER="0"
1096BGCOLOR="#D6E8FF"
1097WIDTH="100%"
1098CELLPADDING="6"
1099><TR
1100><TD
1101><PRE
1102CLASS="PROGRAMLISTING"
1103>void xmlMemShow (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +00001104HREF="FILE-CAPS"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001105>FILE</GTKDOCLINK
1106> *fp,
1107 int nr);</PRE
1108></TD
1109></TR
1110></TABLE
1111><P
1112>show a show display of the memory allocated, and dump
1113the <TT
1114CLASS="PARAMETER"
1115><I
1116>nr</I
1117></TT
1118> last allocated areas which were not freed</P
1119><P
1120></P
1121><DIV
1122CLASS="INFORMALTABLE"
1123><P
1124></P
1125><TABLE
1126BORDER="0"
1127WIDTH="100%"
1128BGCOLOR="#FFD0D0"
1129CELLSPACING="0"
1130CELLPADDING="4"
1131CLASS="CALSTABLE"
1132><TR
1133><TD
1134WIDTH="20%"
1135ALIGN="RIGHT"
1136VALIGN="TOP"
1137><TT
1138CLASS="PARAMETER"
1139><I
1140>fp</I
1141></TT
1142>&nbsp;:</TD
1143><TD
1144WIDTH="80%"
1145ALIGN="LEFT"
1146VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001147> a FILE descriptor used as the output file</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001148></TR
1149><TR
1150><TD
1151WIDTH="20%"
1152ALIGN="RIGHT"
1153VALIGN="TOP"
1154><TT
1155CLASS="PARAMETER"
1156><I
1157>nr</I
1158></TT
1159>&nbsp;:</TD
1160><TD
1161WIDTH="80%"
1162ALIGN="LEFT"
1163VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001164> number of entries to dump</TD
Daniel Veillardf3a73582000-01-05 14:58:39 +00001165></TR
1166></TABLE
1167><P
1168></P
1169></DIV
1170></DIV
1171><HR><DIV
1172CLASS="REFSECT2"
1173><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001174NAME="AEN18712"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001175></A
1176><H3
1177><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001178NAME="XMLMEMORYDUMP"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001179></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001180>xmlMemoryDump ()</H3
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001181><TABLE
1182BORDER="0"
1183BGCOLOR="#D6E8FF"
1184WIDTH="100%"
1185CELLPADDING="6"
1186><TR
1187><TD
1188><PRE
1189CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001190>void xmlMemoryDump (void);</PRE
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001191></TD
1192></TR
1193></TABLE
1194><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001195>Dump in-extenso the memory blocks allocated to the file .memorylist</P
1196><P
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001197></P
1198></DIV
1199><HR><DIV
1200CLASS="REFSECT2"
1201><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001202NAME="AEN18718"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001203></A
1204><H3
1205><A
1206NAME="XMLMALLOC"
1207></A
1208>xmlMalloc()</H3
1209><TABLE
1210BORDER="0"
1211BGCOLOR="#D6E8FF"
1212WIDTH="100%"
1213CELLPADDING="6"
1214><TR
1215><TD
1216><PRE
1217CLASS="PROGRAMLISTING"
1218>#define xmlMalloc(x) xmlMallocLoc((x), __FILE__, __LINE__)</PRE
1219></TD
1220></TR
1221></TABLE
1222><P
1223></P
1224><DIV
1225CLASS="INFORMALTABLE"
1226><P
1227></P
1228><TABLE
1229BORDER="0"
1230WIDTH="100%"
1231BGCOLOR="#FFD0D0"
1232CELLSPACING="0"
1233CELLPADDING="4"
1234CLASS="CALSTABLE"
1235><TR
1236><TD
1237WIDTH="20%"
1238ALIGN="RIGHT"
1239VALIGN="TOP"
1240><TT
1241CLASS="PARAMETER"
1242><I
1243>x</I
1244></TT
1245>&nbsp;:</TD
1246><TD
1247WIDTH="80%"
1248ALIGN="LEFT"
1249VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +00001250>&#13;</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001251></TR
1252></TABLE
1253><P
1254></P
1255></DIV
1256></DIV
1257><HR><DIV
1258CLASS="REFSECT2"
1259><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001260NAME="AEN18732"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001261></A
1262><H3
1263><A
1264NAME="XMLREALLOC"
1265></A
1266>xmlRealloc()</H3
1267><TABLE
1268BORDER="0"
1269BGCOLOR="#D6E8FF"
1270WIDTH="100%"
1271CELLPADDING="6"
1272><TR
1273><TD
1274><PRE
1275CLASS="PROGRAMLISTING"
1276>#define xmlRealloc(p, x) xmlReallocLoc((p), (x), __FILE__, __LINE__)</PRE
1277></TD
1278></TR
1279></TABLE
1280><P
1281></P
1282><DIV
1283CLASS="INFORMALTABLE"
1284><P
1285></P
1286><TABLE
1287BORDER="0"
1288WIDTH="100%"
1289BGCOLOR="#FFD0D0"
1290CELLSPACING="0"
1291CELLPADDING="4"
1292CLASS="CALSTABLE"
1293><TR
1294><TD
1295WIDTH="20%"
1296ALIGN="RIGHT"
1297VALIGN="TOP"
1298><TT
1299CLASS="PARAMETER"
1300><I
1301>p</I
1302></TT
1303>&nbsp;:</TD
1304><TD
1305WIDTH="80%"
1306ALIGN="LEFT"
1307VALIGN="TOP"
1308>&nbsp;</TD
1309></TR
1310><TR
1311><TD
1312WIDTH="20%"
1313ALIGN="RIGHT"
1314VALIGN="TOP"
1315><TT
1316CLASS="PARAMETER"
1317><I
1318>x</I
1319></TT
1320>&nbsp;:</TD
1321><TD
1322WIDTH="80%"
1323ALIGN="LEFT"
1324VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +00001325>&#13;</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001326></TR
1327></TABLE
1328><P
1329></P
1330></DIV
1331></DIV
1332><HR><DIV
1333CLASS="REFSECT2"
1334><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001335NAME="AEN18750"
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001336></A
1337><H3
1338><A
1339NAME="XMLMEMSTRDUP"
1340></A
1341>xmlMemStrdup()</H3
1342><TABLE
1343BORDER="0"
1344BGCOLOR="#D6E8FF"
1345WIDTH="100%"
1346CELLPADDING="6"
1347><TR
1348><TD
1349><PRE
1350CLASS="PROGRAMLISTING"
1351>#define xmlMemStrdup(x) xmlMemStrdupLoc((x), __FILE__, __LINE__)</PRE
1352></TD
1353></TR
1354></TABLE
1355><P
1356></P
1357><DIV
1358CLASS="INFORMALTABLE"
1359><P
1360></P
1361><TABLE
1362BORDER="0"
1363WIDTH="100%"
1364BGCOLOR="#FFD0D0"
1365CELLSPACING="0"
1366CELLPADDING="4"
1367CLASS="CALSTABLE"
1368><TR
1369><TD
1370WIDTH="20%"
1371ALIGN="RIGHT"
1372VALIGN="TOP"
1373><TT
1374CLASS="PARAMETER"
1375><I
1376>x</I
1377></TT
1378>&nbsp;:</TD
1379><TD
1380WIDTH="80%"
1381ALIGN="LEFT"
1382VALIGN="TOP"
Daniel Veillard503b8932001-01-05 06:36:31 +00001383>&#13;</TD
Daniel Veillarda1fe9102000-11-25 10:49:25 +00001384></TR
1385></TABLE
1386><P
1387></P
1388></DIV
1389></DIV
1390><HR><DIV
1391CLASS="REFSECT2"
1392><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001393NAME="AEN18764"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001394></A
1395><H3
1396><A
1397NAME="XMLMALLOCLOC"
1398></A
1399>xmlMallocLoc ()</H3
1400><TABLE
1401BORDER="0"
1402BGCOLOR="#D6E8FF"
1403WIDTH="100%"
1404CELLPADDING="6"
1405><TR
1406><TD
1407><PRE
1408CLASS="PROGRAMLISTING"
1409>void* xmlMallocLoc (int size,
1410 const char *file,
1411 int line);</PRE
1412></TD
1413></TR
1414></TABLE
1415><P
1416>a <GTKDOCLINK
1417HREF="MALLOC"
1418>malloc</GTKDOCLINK
1419>() equivalent, with logging of the allocation info.</P
1420><P
1421></P
1422><DIV
1423CLASS="INFORMALTABLE"
1424><P
1425></P
1426><TABLE
1427BORDER="0"
1428WIDTH="100%"
1429BGCOLOR="#FFD0D0"
1430CELLSPACING="0"
1431CELLPADDING="4"
1432CLASS="CALSTABLE"
1433><TR
1434><TD
1435WIDTH="20%"
1436ALIGN="RIGHT"
1437VALIGN="TOP"
1438><TT
1439CLASS="PARAMETER"
1440><I
1441>size</I
1442></TT
1443>&nbsp;:</TD
1444><TD
1445WIDTH="80%"
1446ALIGN="LEFT"
1447VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001448> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001449></TR
1450><TR
1451><TD
1452WIDTH="20%"
1453ALIGN="RIGHT"
1454VALIGN="TOP"
1455><TT
1456CLASS="PARAMETER"
1457><I
1458>file</I
1459></TT
1460>&nbsp;:</TD
1461><TD
1462WIDTH="80%"
1463ALIGN="LEFT"
1464VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001465> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001466></TR
1467><TR
1468><TD
1469WIDTH="20%"
1470ALIGN="RIGHT"
1471VALIGN="TOP"
1472><TT
1473CLASS="PARAMETER"
1474><I
1475>line</I
1476></TT
1477>&nbsp;:</TD
1478><TD
1479WIDTH="80%"
1480ALIGN="LEFT"
1481VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001482> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001483></TR
1484></TABLE
1485><P
1486></P
1487></DIV
1488></DIV
1489><HR><DIV
1490CLASS="REFSECT2"
1491><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001492NAME="AEN18788"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001493></A
1494><H3
1495><A
1496NAME="XMLREALLOCLOC"
1497></A
1498>xmlReallocLoc ()</H3
1499><TABLE
1500BORDER="0"
1501BGCOLOR="#D6E8FF"
1502WIDTH="100%"
1503CELLPADDING="6"
1504><TR
1505><TD
1506><PRE
1507CLASS="PROGRAMLISTING"
1508>void* xmlReallocLoc (void *ptr,
1509 int size,
1510 const char *file,
1511 int line);</PRE
1512></TD
1513></TR
1514></TABLE
1515><P
1516>a <GTKDOCLINK
1517HREF="REALLOC"
1518>realloc</GTKDOCLINK
1519>() equivalent, with logging of the allocation info.</P
1520><P
1521></P
1522><DIV
1523CLASS="INFORMALTABLE"
1524><P
1525></P
1526><TABLE
1527BORDER="0"
1528WIDTH="100%"
1529BGCOLOR="#FFD0D0"
1530CELLSPACING="0"
1531CELLPADDING="4"
1532CLASS="CALSTABLE"
1533><TR
1534><TD
1535WIDTH="20%"
1536ALIGN="RIGHT"
1537VALIGN="TOP"
1538><TT
1539CLASS="PARAMETER"
1540><I
1541>ptr</I
1542></TT
1543>&nbsp;:</TD
1544><TD
1545WIDTH="80%"
1546ALIGN="LEFT"
1547VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001548> the initial memory block pointer</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001549></TR
1550><TR
1551><TD
1552WIDTH="20%"
1553ALIGN="RIGHT"
1554VALIGN="TOP"
1555><TT
1556CLASS="PARAMETER"
1557><I
1558>size</I
1559></TT
1560>&nbsp;:</TD
1561><TD
1562WIDTH="80%"
1563ALIGN="LEFT"
1564VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001565> an int specifying the size in byte to allocate.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001566></TR
1567><TR
1568><TD
1569WIDTH="20%"
1570ALIGN="RIGHT"
1571VALIGN="TOP"
1572><TT
1573CLASS="PARAMETER"
1574><I
1575>file</I
1576></TT
1577>&nbsp;:</TD
1578><TD
1579WIDTH="80%"
1580ALIGN="LEFT"
1581VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001582> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001583></TR
1584><TR
1585><TD
1586WIDTH="20%"
1587ALIGN="RIGHT"
1588VALIGN="TOP"
1589><TT
1590CLASS="PARAMETER"
1591><I
1592>line</I
1593></TT
1594>&nbsp;:</TD
1595><TD
1596WIDTH="80%"
1597ALIGN="LEFT"
1598VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001599> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001600></TR
1601></TABLE
1602><P
1603></P
1604></DIV
1605></DIV
1606><HR><DIV
1607CLASS="REFSECT2"
1608><A
Daniel Veillard503b8932001-01-05 06:36:31 +00001609NAME="AEN18816"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001610></A
1611><H3
1612><A
1613NAME="XMLMEMSTRDUPLOC"
1614></A
1615>xmlMemStrdupLoc ()</H3
1616><TABLE
1617BORDER="0"
1618BGCOLOR="#D6E8FF"
1619WIDTH="100%"
1620CELLPADDING="6"
1621><TR
1622><TD
1623><PRE
1624CLASS="PROGRAMLISTING"
1625>char* xmlMemStrdupLoc (const char *str,
1626 const char *file,
1627 int line);</PRE
1628></TD
1629></TR
1630></TABLE
1631><P
1632>a <GTKDOCLINK
1633HREF="STRDUP"
1634>strdup</GTKDOCLINK
1635>() equivalent, with logging of the allocation info.</P
1636><P
1637></P
1638><DIV
1639CLASS="INFORMALTABLE"
1640><P
1641></P
1642><TABLE
1643BORDER="0"
1644WIDTH="100%"
1645BGCOLOR="#FFD0D0"
1646CELLSPACING="0"
1647CELLPADDING="4"
1648CLASS="CALSTABLE"
1649><TR
1650><TD
1651WIDTH="20%"
1652ALIGN="RIGHT"
1653VALIGN="TOP"
1654><TT
1655CLASS="PARAMETER"
1656><I
1657>str</I
1658></TT
1659>&nbsp;:</TD
1660><TD
1661WIDTH="80%"
1662ALIGN="LEFT"
1663VALIGN="TOP"
1664>&nbsp;</TD
1665></TR
1666><TR
1667><TD
1668WIDTH="20%"
1669ALIGN="RIGHT"
1670VALIGN="TOP"
1671><TT
1672CLASS="PARAMETER"
1673><I
1674>file</I
1675></TT
1676>&nbsp;:</TD
1677><TD
1678WIDTH="80%"
1679ALIGN="LEFT"
1680VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001681> the file name or NULL</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001682></TR
1683><TR
1684><TD
1685WIDTH="20%"
1686ALIGN="RIGHT"
1687VALIGN="TOP"
1688><TT
1689CLASS="PARAMETER"
1690><I
1691>line</I
1692></TT
1693>&nbsp;:</TD
1694><TD
1695WIDTH="80%"
1696ALIGN="LEFT"
1697VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001698> the line number</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001699></TR
1700><TR
1701><TD
1702WIDTH="20%"
1703ALIGN="RIGHT"
1704VALIGN="TOP"
1705><I
1706CLASS="EMPHASIS"
1707>Returns</I
1708> :</TD
1709><TD
1710WIDTH="80%"
1711ALIGN="LEFT"
1712VALIGN="TOP"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001713>a pointer to the new string or NULL if allocation error occured.</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001714></TR
1715></TABLE
1716><P
1717></P
1718></DIV
1719></DIV
1720></DIV
1721><DIV
1722CLASS="NAVFOOTER"
1723><BR
1724CLEAR="all"><BR><TABLE
1725WIDTH="100%"
1726BORDER="0"
1727BGCOLOR="#000000"
1728CELLPADDING="1"
1729CELLSPACING="0"
1730><TR
1731><TD
1732WIDTH="25%"
1733BGCOLOR="#C00000"
1734ALIGN="left"
1735><A
Daniel Veillard294cbca1999-12-03 13:19:09 +00001736HREF="gnome-xml-debugxml.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001737><FONT
1738COLOR="#FFFFFF"
1739SIZE="3"
1740><B
1741>&#60;&#60;&#60; Previous Page</B
1742></FONT
1743></A
1744></TD
1745><TD
1746WIDTH="25%"
1747BGCOLOR="#0000C0"
1748ALIGN="center"
1749><FONT
1750COLOR="#FFFFFF"
1751SIZE="3"
1752><B
1753><A
1754HREF="book1.html"
1755><FONT
1756COLOR="#FFFFFF"
1757SIZE="3"
1758><B
1759>Home</B
1760></FONT
1761></A
1762></B
1763></FONT
1764></TD
1765><TD
1766WIDTH="25%"
1767BGCOLOR="#00C000"
1768ALIGN="center"
1769><FONT
1770COLOR="#FFFFFF"
1771SIZE="3"
1772><B
1773><A
Daniel Veillard35008381999-10-25 13:15:52 +00001774HREF="libxml-lib.html"
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001775><FONT
1776COLOR="#FFFFFF"
1777SIZE="3"
1778><B
1779>Up</B
1780></FONT
1781></A
1782></B
1783></FONT
1784></TD
1785><TD
1786WIDTH="25%"
1787BGCOLOR="#C00000"
1788ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001789>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001790></TR
1791><TR
1792><TD
1793COLSPAN="2"
1794ALIGN="left"
1795><FONT
1796COLOR="#FFFFFF"
1797SIZE="3"
1798><B
Daniel Veillard294cbca1999-12-03 13:19:09 +00001799>debugXML</B
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001800></FONT
1801></TD
1802><TD
1803COLSPAN="2"
1804ALIGN="right"
Daniel Veillard35008381999-10-25 13:15:52 +00001805>&nbsp;</TD
Daniel Veillard7c1206f1999-10-14 09:10:25 +00001806></TR
1807></TABLE
1808></DIV
1809></BODY
1810></HTML
1811>