Age | Commit message (Collapse) | Author |
|
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.
|
|
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
|
|
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
|
|
|
|
|
|
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.
|
|
--HG--
extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
|
|
For contributed code, leave whatever the version we last synced for is using
to make simpler future syncs.
|
|
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
|
|
|
|
xine-lib XML parser to GNU LGPL
CVS patchset: 8643
CVS date: 2007/03/04 16:19:12
|
|
Remove some unnecessary NULL tests (free()).
Replace an unneeded printf() wrapper.
CVS patchset: 7891
CVS date: 2006/02/14 02:25:00
|
|
- recognise " ' & < > &#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
|
|
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
|
|
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
|
|
CVS patchset: 5796
CVS date: 2003/11/26 19:43:26
|
|
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
|
|
CVS patchset: 5393
CVS date: 2003/09/16 02:12:54
|
|
CVS patchset: 5361
CVS date: 2003/09/13 14:30:29
|
|
CVS patchset: 5357
CVS date: 2003/09/13 00:05:38
|
|
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
|
|
engine and the utils, removed unused variables
CVS patchset: 5219
CVS date: 2003/07/27 12:47:23
|
|
Thanks Günter.
CVS patchset: 5182
CVS date: 2003/07/19 00:22:43
|
|
CVS patchset: 3416
CVS date: 2002/12/02 22:37:08
|
|
fix some input plugins that would not copy the mrl on open
CVS patchset: 2623
CVS date: 2002/09/06 18:13:10
|
|
CVS patchset: 1823
CVS date: 2002/05/01 19:41:55
|