Remove pa_bool_t and replace it with bool.

commands used for this (executed from the pulseaudio/src directory):
    find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \
        -a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \
        -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
        -a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
        -a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \
        -a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \
        -exec sed -i -e 's/\bpa_bool_t\b/bool/g' \
        -e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \;

and:
    sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \
        -e '181,194!s/\bTRUE\b/true/' -e \
        '181,194!s/\bFALSE\b/false/' pulsecore/macro.h
This commit is contained in:
poljar (Damir Jelić) 2013-06-27 19:28:09 +02:00 committed by Tanu Kaskinen
parent e9822bfcb0
commit d806b19714
288 changed files with 3360 additions and 3360 deletions

View file

@ -43,7 +43,7 @@
static pa_context *context = NULL;
static pa_stream *stream = NULL;
static pa_mainloop_api *mainloop_api = NULL;
static pa_bool_t playback = TRUE;
static bool playback = true;
static pa_usec_t latency = 0;
static const char *bname = NULL;
@ -156,7 +156,7 @@ START_TEST (interpol_test) {
struct timeval start, last_info = { 0, 0 };
pa_usec_t old_t = 0, old_rtc = 0;
#ifdef CORK
pa_bool_t corked = FALSE;
bool corked = false;
#endif
/* Set up a new main loop */
@ -181,10 +181,10 @@ START_TEST (interpol_test) {
/* for (k = 0; k < 2000; k++) */
/* #endif */
{
pa_bool_t success = FALSE, changed = FALSE;
bool success = false, changed = false;
pa_usec_t t, rtc, d;
struct timeval now, tv;
pa_bool_t playing = FALSE;
bool playing = false;
pa_threaded_mainloop_lock(m);
@ -193,15 +193,15 @@ START_TEST (interpol_test) {
if (pa_stream_get_time(stream, &t) >= 0 &&
pa_stream_get_latency(stream, &d, NULL) >= 0)
success = TRUE;
success = true;
if ((info = pa_stream_get_timing_info(stream))) {
if (memcmp(&last_info, &info->timestamp, sizeof(struct timeval))) {
changed = TRUE;
changed = true;
last_info = info->timestamp;
}
if (info->playing)
playing = TRUE;
playing = true;
}
}
@ -211,7 +211,7 @@ START_TEST (interpol_test) {
if (success) {
#ifdef CORK
pa_bool_t cork_now;
bool cork_now;
#endif
rtc = pa_timeval_diff(&now, &start);
pa_log_info("%i\t%llu\t%llu\t%llu\t%llu\t%lli\t%u\t%u\t%llu\t%llu\n", k,