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

@ -70,19 +70,19 @@ static char *device = NULL;
static SNDFILE* sndfile = NULL;
static pa_bool_t verbose = FALSE;
static bool verbose = false;
static pa_volume_t volume = PA_VOLUME_NORM;
static pa_bool_t volume_is_set = FALSE;
static bool volume_is_set = false;
static pa_sample_spec sample_spec = {
.format = PA_SAMPLE_S16LE,
.rate = 44100,
.channels = 2
};
static pa_bool_t sample_spec_set = FALSE;
static bool sample_spec_set = false;
static pa_channel_map channel_map;
static pa_bool_t channel_map_set = FALSE;
static bool channel_map_set = false;
static sf_count_t (*readf_function)(SNDFILE *_sndfile, void *ptr, sf_count_t frames) = NULL;
static sf_count_t (*writef_function)(SNDFILE *_sndfile, const void *ptr, sf_count_t frames) = NULL;
@ -92,7 +92,7 @@ static pa_stream_flags_t flags = 0;
static size_t latency = 0, process_time = 0;
static int32_t latency_msec = 0, process_time_msec = 0;
static pa_bool_t raw = TRUE;
static bool raw = true;
static int file_format = -1;
static uint32_t cork_requests = 0;
@ -776,16 +776,16 @@ int main(int argc, char *argv[]) {
if (strstr(bn, "play")) {
mode = PLAYBACK;
raw = FALSE;
raw = false;
} else if (strstr(bn, "record")) {
mode = RECORD;
raw = FALSE;
raw = false;
} else if (strstr(bn, "cat")) {
mode = PLAYBACK;
raw = TRUE;
raw = true;
} else if (strstr(bn, "rec") || strstr(bn, "mon")) {
mode = RECORD;
raw = TRUE;
raw = true;
}
proplist = pa_proplist_new();
@ -863,23 +863,23 @@ int main(int argc, char *argv[]) {
case ARG_VOLUME: {
int v = atoi(optarg);
volume = v < 0 ? 0U : (pa_volume_t) v;
volume_is_set = TRUE;
volume_is_set = true;
break;
}
case ARG_CHANNELS:
sample_spec.channels = (uint8_t) atoi(optarg);
sample_spec_set = TRUE;
sample_spec_set = true;
break;
case ARG_SAMPLEFORMAT:
sample_spec.format = pa_parse_sample_format(optarg);
sample_spec_set = TRUE;
sample_spec_set = true;
break;
case ARG_SAMPLERATE:
sample_spec.rate = (uint32_t) atoi(optarg);
sample_spec_set = TRUE;
sample_spec_set = true;
break;
case ARG_CHANNELMAP:
@ -888,7 +888,7 @@ int main(int argc, char *argv[]) {
goto quit;
}
channel_map_set = TRUE;
channel_map_set = true;
break;
case ARG_FIX_CHANNELS:
@ -955,7 +955,7 @@ int main(int argc, char *argv[]) {
}
case ARG_RAW:
raw = TRUE;
raw = true;
break;
case ARG_PASSTHROUGH:
@ -970,7 +970,7 @@ int main(int argc, char *argv[]) {
}
}
raw = FALSE;
raw = false;
break;
case ARG_LIST_FILE_FORMATS:
@ -1055,7 +1055,7 @@ int main(int argc, char *argv[]) {
pa_log(_("Failed to determine sample specification from file."));
goto quit;
}
sample_spec_set = TRUE;
sample_spec_set = true;
if (!channel_map_set) {
/* Allow the user to overwrite the channel map on the command line */
@ -1063,7 +1063,7 @@ int main(int argc, char *argv[]) {
if (sample_spec.channels > 2)
pa_log(_("Warning: Failed to determine channel map from file."));
} else
channel_map_set = TRUE;
channel_map_set = true;
}
}
}