git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1550
fefdeb5f-60dc-0310-8127-
8f9354f1896f
#include <config.h>
#endif
-#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <inttypes.h>
#include <iconv.h>
#endif
+#include <pulsecore/macro.h>
+
#include "utf8.h"
#include "xmalloc.h"
inlen = len = strlen(str) + 1;
new_str = pa_xmalloc(len);
- assert(new_str);
- while (1) {
- inbuf = (ICONV_CONST char*)str; /* Brain dead prototype for iconv() */
+ for (;;) {
+ inbuf = (ICONV_CONST char*) str; /* Brain dead prototype for iconv() */
inbytes = inlen;
outbuf = new_str;
outbytes = len;
break;
}
- assert(inbytes != 0);
+ pa_assert(inbytes != 0);
len += inbytes;
new_str = pa_xrealloc(new_str, len);
- assert(new_str);
}
iconv_close(cd);