mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-01 01:40:26 -05:00
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:
parent
e9822bfcb0
commit
d806b19714
288 changed files with 3360 additions and 3360 deletions
|
|
@ -99,7 +99,7 @@ int main(int argc, char*argv[]) {
|
|||
char *obuf = NULL;
|
||||
size_t buf_size, ibuf_size, ibuf_index, ibuf_length, obuf_size, obuf_index, obuf_length;
|
||||
char *cli;
|
||||
pa_bool_t ibuf_eof, obuf_eof, ibuf_closed, obuf_closed;
|
||||
bool ibuf_eof, obuf_eof, ibuf_closed, obuf_closed;
|
||||
struct pollfd pollfd[3];
|
||||
struct pollfd *watch_socket, *watch_stdin, *watch_stdout;
|
||||
|
||||
|
|
@ -190,7 +190,7 @@ int main(int argc, char*argv[]) {
|
|||
obuf_size = PA_MIN(buf_size, pa_pipe_buf(STDOUT_FILENO));
|
||||
obuf = pa_xmalloc(obuf_size);
|
||||
ibuf_index = ibuf_length = obuf_index = obuf_length = 0;
|
||||
ibuf_eof = obuf_eof = ibuf_closed = obuf_closed = FALSE;
|
||||
ibuf_eof = obuf_eof = ibuf_closed = obuf_closed = false;
|
||||
|
||||
if (argc > 1) {
|
||||
for (i = 1; i < argc; i++) {
|
||||
|
|
@ -206,7 +206,7 @@ int main(int argc, char*argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
ibuf_eof = TRUE;
|
||||
ibuf_eof = true;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
|
|
@ -220,12 +220,12 @@ int main(int argc, char*argv[]) {
|
|||
|
||||
if (ibuf_length <= 0 && ibuf_eof && !ibuf_closed) {
|
||||
shutdown(fd, SHUT_WR);
|
||||
ibuf_closed = TRUE;
|
||||
ibuf_closed = true;
|
||||
}
|
||||
|
||||
if (obuf_length <= 0 && obuf_eof && !obuf_closed) {
|
||||
shutdown(fd, SHUT_RD);
|
||||
obuf_closed = TRUE;
|
||||
obuf_closed = true;
|
||||
}
|
||||
|
||||
pa_zero(pollfd);
|
||||
|
|
@ -275,13 +275,13 @@ int main(int argc, char*argv[]) {
|
|||
goto quit;
|
||||
}
|
||||
|
||||
ibuf_eof = TRUE;
|
||||
ibuf_eof = true;
|
||||
} else {
|
||||
ibuf_length = (size_t) r;
|
||||
ibuf_index = 0;
|
||||
}
|
||||
} else if (watch_stdin->revents & POLLHUP)
|
||||
ibuf_eof = TRUE;
|
||||
ibuf_eof = true;
|
||||
}
|
||||
|
||||
if (watch_socket) {
|
||||
|
|
@ -295,18 +295,18 @@ int main(int argc, char*argv[]) {
|
|||
goto quit;
|
||||
}
|
||||
|
||||
obuf_eof = TRUE;
|
||||
obuf_eof = true;
|
||||
} else {
|
||||
obuf_length = (size_t) r;
|
||||
obuf_index = 0;
|
||||
}
|
||||
} else if (watch_socket->revents & POLLHUP)
|
||||
obuf_eof = TRUE;
|
||||
obuf_eof = true;
|
||||
}
|
||||
|
||||
if (watch_stdout) {
|
||||
if (watch_stdout->revents & POLLHUP) {
|
||||
obuf_eof = TRUE;
|
||||
obuf_eof = true;
|
||||
obuf_length = 0;
|
||||
} else if (watch_stdout->revents & POLLOUT) {
|
||||
ssize_t r;
|
||||
|
|
@ -324,7 +324,7 @@ int main(int argc, char*argv[]) {
|
|||
|
||||
if (watch_socket) {
|
||||
if (watch_socket->revents & POLLHUP) {
|
||||
ibuf_eof = TRUE;
|
||||
ibuf_eof = true;
|
||||
ibuf_length = 0;
|
||||
} if (watch_socket->revents & POLLOUT) {
|
||||
ssize_t r;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue