mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
merge 'lennart' branch back into trunk.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6687dd0131
commit
a67c21f093
294 changed files with 79057 additions and 11614 deletions
|
|
@ -75,6 +75,15 @@ static inline void* pa_xnew0_internal(unsigned n, size_t k) {
|
|||
/** Same as pa_xnew() but set the memory to zero */
|
||||
#define pa_xnew0(type, n) ((type*) pa_xnew0_internal((n), sizeof(type)))
|
||||
|
||||
/** Internal helper for pa_xnew0() */
|
||||
static inline void* pa_xnewdup_internal(const void *p, unsigned n, size_t k) {
|
||||
assert(n < INT_MAX/k);
|
||||
return pa_xmemdup(p, n*k);
|
||||
}
|
||||
|
||||
/** Same as pa_xnew() but set the memory to zero */
|
||||
#define pa_xnewdup(type, p, n) ((type*) pa_xnewdup_internal((p), (n), sizeof(type)))
|
||||
|
||||
PA_C_DECL_END
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue