<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xine-lib/src/post, branch 1.1.14</title>
<subtitle>xine-lib git mirror
</subtitle>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/'/>
<entry>
<title>Remove MIN/MAX macro definitions on unit.</title>
<updated>2008-05-23T21:43:00+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-23T21:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=37f4983b76f90efb4e5715f3eca693daf668310a'/>
<id>37f4983b76f90efb4e5715f3eca693daf668310a</id>
<content type='text'>
Now that the macro are either imported from the system or defined by
configure. don't define them in every source file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that the macro are either imported from the system or defined by
configure. don't define them in every source file.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mark initialisation functions with malloc attribute.</title>
<updated>2008-05-23T18:07:00+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-23T18:07:00+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=08c066cac2efdfcf569e47609e9e1b0a947ce129'/>
<id>08c066cac2efdfcf569e47609e9e1b0a947ce129</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid loop for common memory operations (zeroing, copying, moving).</title>
<updated>2008-05-09T15:51:40+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-09T15:51:40+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=902d66eb8304ccffdb683b7130e9f548011b8d30'/>
<id>902d66eb8304ccffdb683b7130e9f548011b8d30</id>
<content type='text'>
Use the proper function for common memory operations (memset() for
zeroing, memcpy() for copying, memmove() for moving), instead of
looping through arrays.

By extension, remove loops to reset arrays when they were allocated
with calloc() and thus already zeroed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the proper function for common memory operations (memset() for
zeroing, memcpy() for copying, memmove() for moving), instead of
looping through arrays.

By extension, remove loops to reset arrays when they were allocated
with calloc() and thus already zeroed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Include config.h</title>
<updated>2008-05-07T17:56:28+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-07T17:56:28+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=0e5f1e3163d7423b6e323cdd5701d48a9fb64e52'/>
<id>0e5f1e3163d7423b6e323cdd5701d48a9fb64e52</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Again, use asprintf() rather than malloc()+sprintf().</title>
<updated>2008-05-07T17:54:15+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-07T17:54:15+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=b0bd88abfbe3f1deb8fad7c1aa71e5692fb7faf3'/>
<id>b0bd88abfbe3f1deb8fad7c1aa71e5692fb7faf3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace strn?cpy() + strn?cat() calls with a?sprintf().</title>
<updated>2008-05-07T16:38:38+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-07T16:38:38+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=e16d7dddf1ef1df0c8a00f01fede497521134b74'/>
<id>e16d7dddf1ef1df0c8a00f01fede497521134b74</id>
<content type='text'>
Instead of creating strings through a series os string copy and
concatenations, use directly the appropriate printf-like function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of creating strings through a series os string copy and
concatenations, use directly the appropriate printf-like function.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use proper string functions in place of sn?printf.</title>
<updated>2008-05-07T16:06:56+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-07T16:06:56+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=bbb2643bdcc8fb3d7f29c11e1344286b042535bf'/>
<id>bbb2643bdcc8fb3d7f29c11e1344286b042535bf</id>
<content type='text'>
Instead of calling sprintf or snprintf with a "%s" format string, use
the proper strcpy, strncpy, strdup or strndup function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of calling sprintf or snprintf with a "%s" format string, use
the proper strcpy, strncpy, strdup or strndup function.
</pre>
</div>
</content>
</entry>
<entry>
<title>xine_xmalloc() deprecation: replace its use with static and non-zero size.</title>
<updated>2008-05-07T14:59:00+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-05-07T14:59:00+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=88d23a2dbabf419ab4014b449be119a741aa54f5'/>
<id>88d23a2dbabf419ab4014b449be119a741aa54f5</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace xine_xcalloc usage with calloc, for the revisions transplanted from 1.2 series.</title>
<updated>2008-04-18T23:54:11+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2008-04-18T23:54:11+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=95973431372272b749762591cd4b82fe7e587a84'/>
<id>95973431372272b749762591cd4b82fe7e587a84</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use xine_xcalloc instead of xine_xmalloc when mutiplying the number of elements by the size of the single element.</title>
<updated>2007-04-14T16:30:19+00:00</updated>
<author>
<name>Diego 'Flameeyes' Pettenò</name>
<email>flameeyes@gmail.com</email>
</author>
<published>2007-04-14T16:30:19+00:00</published>
<link rel='alternate' type='text/html' href='https://vdr-projects.e-tobi.net/git/xine-lib/commit/?id=cb2dc09164a533fc544c59469f6f8bd7d1cc5e04'/>
<id>cb2dc09164a533fc544c59469f6f8bd7d1cc5e04</id>
<content type='text'>
(transplanted from 512894f517c423fed0cadeca0d46c6d909403106)

--HG--
extra : transplant_source : Q%28%94%F5%17%C4%23%FE%D0%CA%DE%CA%0DF%C6%D9%09%401%06
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(transplanted from 512894f517c423fed0cadeca0d46c6d909403106)

--HG--
extra : transplant_source : Q%28%94%F5%17%C4%23%FE%D0%CA%DE%CA%0DF%C6%D9%09%401%06
</pre>
</div>
</content>
</entry>
</feed>
