Changeset 125a27bb77892ec016fce319a63880f1544da784
- Timestamp:
- 01/02/06 15:39:05
(3 years ago)
- Author:
- Christophe Mutricy <xtophe@videolan.org>
- git-committer:
- Christophe Mutricy <xtophe@videolan.org> 1138804745 +0000
- git-parent:
[7b93bebca5e874523e286558cb945cad41136a01]
- git-author:
- Christophe Mutricy <xtophe@videolan.org> 1138804745 +0000
- Message:
Test for assert() in configure.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3acd855 |
r125a27b |
|
| 374 | 374 | need_libc=false |
|---|
| 375 | 375 | |
|---|
| 376 | | AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch) |
|---|
| | 376 | AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch assert) |
|---|
| 377 | 377 | |
|---|
| 378 | 378 | dnl Check for usual libc functions |
|---|
| rc4fef7e |
r125a27b |
|
| 2730 | 2730 | } |
|---|
| 2731 | 2731 | vlc_mutex_unlock( &libvlc.from_locale_lock ); |
|---|
| 2732 | | |
|---|
| | 2732 | #ifdef HAVE_ASSERT |
|---|
| 2733 | 2733 | assert (inb == 0); |
|---|
| 2734 | 2734 | assert (*iptr == '\0'); |
|---|
| 2735 | 2735 | assert (*optr == '\0'); |
|---|
| 2736 | 2736 | assert (strlen( output ) == (size_t)(optr - output)); |
|---|
| | 2737 | #endif |
|---|
| 2737 | 2738 | return realloc( output, optr - output + 1 ); |
|---|
| 2738 | 2739 | } |
|---|
| … | … | |
| 2777 | 2778 | vlc_mutex_unlock( &libvlc.to_locale_lock ); |
|---|
| 2778 | 2779 | |
|---|
| | 2780 | #ifdef HAVE_ASSERT |
|---|
| 2779 | 2781 | assert (inb == 0); |
|---|
| 2780 | 2782 | assert (*iptr == '\0'); |
|---|
| 2781 | 2783 | assert (*optr == '\0'); |
|---|
| 2782 | 2784 | assert (strlen( output ) == (size_t)(optr - output)); |
|---|
| 2783 | | return realloc( output, optr - output + 1 ); |
|---|
| | 2785 | #endif |
|---|
| | 2786 | return realloc( output, optr - output + 1 ); |
|---|
| 2784 | 2787 | } |
|---|
| 2785 | 2788 | return (char *)utf8; |
|---|