summaryrefslogtreecommitdiff
path: root/src/xine-utils/xmlparser.c
AgeCommit message (Collapse)Author
2008-05-23Mark initialisation functions with malloc attribute.Diego 'Flameeyes' Pettenò
All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call.
2008-05-09Use size_t to keep the value returned by strlen().Diego 'Flameeyes' Pettenò
When using a variable to store the result of strlen(), make sure its type is size_t just like the function returns, rather than using a smaller type like int. --HG-- extra : transplant_source : %B0%D5%3B%D7%1Dy%0A%7E%7D%7C%023%08%B2%CE%D3t%0B3%D7
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
2007-12-31Convert XML parser ABI breakage into ABI extension. Bump the soname accordingly.Darren Salt
2007-12-30Dereference buffer size pointers when comparing buffer sizes.Darren Salt
2007-12-27xmlparser: fix token buffer being too smallMaximilian Schwerin
What this patch does is replace the token buffer of static size in xml_parser_get_node with a malloced buffer. If the lexer notices, that it needs more size it just increases the size of this buffer by factor two and tries again. This may not be very elegant, but it works. node_name and property_name are dynamically-sized too.
2007-11-10Delete most of the CVS $Id$/$Log$ lines.Darren Salt
--HG-- extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2007-10-23Simple patch to the XML parserBastien Nocera
Found this little problem (was causing some "uninitialised variable accesses" under valgrind) while implementing Podcast reading in RB using Totem's playlist parser. --HG-- extra : transplant_source : J%D9/%16%E2i%B2%84%FA%8A%85%888N%A5%B4%16s%BD%16
2007-04-21Fix comments - '>' and '?>' were reversed.Darren Salt
2007-03-04- commit documentation, and header changes for the relicensing of theBastien Nocera
xine-lib XML parser to GNU LGPL CVS patchset: 8643 CVS date: 2007/03/04 16:19:12
2006-02-14Minor constness fixups.Darren Salt
Remove some unnecessary NULL tests (free()). Replace an unneeded printf() wrapper. CVS patchset: 7891 CVS date: 2006/02/14 02:25:00
2005-01-16Add basic support for character entities:Darren Salt
- recognise &quot; &apos; &amp; &lt; &gt; &#X; (1<=X<256) - automatic decoding for text and for attribute values - provide a function for front-ends to use to escape text for XML output CVS patchset: 7352 CVS date: 2005/01/16 17:51:04
2003-12-06reading through Daniel's huge patch was quite tiresome, but it was not ↵Michael Roitzsch
worthless: * fixing some lprintf's * fixing one printf -> xprintf * adding patch to diff_to_ffmpeg_cvs * small addition to xineutils.h (some gcc magic for future optimizations) CVS patchset: 5853 CVS date: 2003/12/06 18:11:53
2003-12-05cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's ↵Daniel Caujolle-Bert
relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued... CVS patchset: 5844 CVS date: 2003/12/05 15:54:56
2003-11-26lprintf cleanup, pass I.Daniel Caujolle-Bert
CVS patchset: 5796 CVS date: 2003/11/26 19:43:26
2003-10-28Change .dsp and .dsw files for simple using under VCC 6.0 - just change unix ↵František Dvořák
end lines to dos end lines. First small changes for compilation engine under VCC, but it isn't finished yet. CVS patchset: 5624 CVS date: 2003/10/28 13:48:45
2003-09-16Removed headers that were providing nothing needed to the build.Stephen Torri
CVS patchset: 5393 CVS date: 2003/09/16 02:12:54
2003-09-13Oups, wrong node...Thibaut Mattern
CVS patchset: 5361 CVS date: 2003/09/13 14:30:29
2003-09-13Fix memory leaks.Thibaut Mattern
CVS patchset: 5357 CVS date: 2003/09/13 00:05:38
2003-09-11Better xml_parser_free_tree()Thibaut Mattern
faster and uses less memory fix a segfault with >30Mo files. ok, it's a bit stupid to parse 30Mo xml file, but a crazy tried to parse a 30Mo asx file and he was not happy with the parser. ;) CVS patchset: 5356 CVS date: 2003/09/11 23:05:39
2003-07-27- removed xine-engine/locale.c as it is unused, fix static functions in theBastien Nocera
engine and the utils, removed unused variables CVS patchset: 5219 CVS date: 2003/07/27 12:47:23
2003-07-19Backport cleanups/fixes/improvements from gxine.Thibaut Mattern
Thanks Günter. CVS patchset: 5182 CVS date: 2003/07/19 00:22:43
2002-12-02less noise with xmlparsing.Daniel Caujolle-Bert
CVS patchset: 3416 CVS date: 2002/12/02 22:37:08
2002-09-06introduce "const"Michael Roitzsch
fix some input plugins that would not copy the mrl on open CVS patchset: 2623 CVS date: 2002/09/06 18:13:10
2002-05-01added xml parser/lexer from thibaut matternGuenter Bartsch
CVS patchset: 1823 CVS date: 2002/05/01 19:41:55