[Expat-bugs]
[ expat-Bugs-651754 ] Function to get XML_Memory_Handling_Suite
noreply at sourceforge.net
noreply at sourceforge.net
Wed Dec 11 03:32:56 EST 2002
Bugs item #651754, was opened at 2002-12-11 04:16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=651754&group_id=10127
Category: None
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Artyom Bolgar (artyom17)
Assigned to: Nobody/Anonymous (nobody)
Summary: Function to get XML_Memory_Handling_Suite
Initial Comment:
It is not a bug report, it is a feature request. What do
you think of adding the function, that returns the pointer
to XML_Memory_Handling_Suite for passed
XML_Parser? It is necessary for me, I am developing an
extension for Expat and I would like to use the same
allocation/reallocation/free function as the current
XML_Parser uses. Since XML_Parser struct defined
inside .C-file, I can't get an access to
XML_Memory_Handling_Suite struct for the parser.
Please add this function, since it will be very simple.
Sincerely,
Artyom Bolgar.
----------------------------------------------------------------------
>Comment By: Artyom Bolgar (artyom17)
Date: 2002-12-11 14:32
Message:
Logged In: YES
user_id=657326
Of course, I know about this. But in my case, I use
XML_Parser passed by user (and it is created by him), and I
don't know how it was created, either by
XML_ParserCreate_MM or not. That is why I requested this
function.
----------------------------------------------------------------------
Comment By: Karl Waclawek (kwaclaw)
Date: 2002-12-11 05:24
Message:
Logged In: YES
user_id=290026
Are you creating the parser using XML_ParserCreate?
In that case - without supplying an external memory handler,
Expat just uses the standard C runtime functions
malloc, realloc and free.
If you use XML_ParserCreate_MM however, then *you*
are supplying the memory handler yourself.
In both cases you don't need the requested function.
Is your situation different from what I described?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=651754&group_id=10127
More information about the Expat-bugs
mailing list