mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-28 01:40:36 -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
|
|
@ -59,8 +59,8 @@ struct timeval;
|
|||
void pa_make_fd_nonblock(int fd);
|
||||
void pa_make_fd_cloexec(int fd);
|
||||
|
||||
int pa_make_secure_dir(const char* dir, mode_t m, uid_t uid, gid_t gid, pa_bool_t update_perms);
|
||||
int pa_make_secure_parent_dir(const char *fn, mode_t, uid_t uid, gid_t gid, pa_bool_t update_perms);
|
||||
int pa_make_secure_dir(const char* dir, mode_t m, uid_t uid, gid_t gid, bool update_perms);
|
||||
int pa_make_secure_parent_dir(const char *fn, mode_t, uid_t uid, gid_t gid, bool update_perms);
|
||||
|
||||
ssize_t pa_read(int fd, void *buf, size_t count, int *type);
|
||||
ssize_t pa_write(int fd, const void *buf, size_t count, int *type);
|
||||
|
|
@ -86,7 +86,7 @@ int pa_parse_boolean(const char *s) PA_GCC_PURE;
|
|||
|
||||
int pa_parse_volume(const char *s, pa_volume_t *volume);
|
||||
|
||||
static inline const char *pa_yes_no(pa_bool_t b) {
|
||||
static inline const char *pa_yes_no(bool b) {
|
||||
return b ? "yes" : "no";
|
||||
}
|
||||
|
||||
|
|
@ -124,8 +124,8 @@ int pa_unlock_lockfile(const char *fn, int fd);
|
|||
char *pa_hexstr(const uint8_t* d, size_t dlength, char *s, size_t slength);
|
||||
size_t pa_parsehex(const char *p, uint8_t *d, size_t dlength);
|
||||
|
||||
pa_bool_t pa_startswith(const char *s, const char *pfx) PA_GCC_PURE;
|
||||
pa_bool_t pa_endswith(const char *s, const char *sfx) PA_GCC_PURE;
|
||||
bool pa_startswith(const char *s, const char *pfx) PA_GCC_PURE;
|
||||
bool pa_endswith(const char *s, const char *sfx) PA_GCC_PURE;
|
||||
|
||||
FILE *pa_open_config_file(const char *global, const char *local, const char *env, char **result);
|
||||
char* pa_find_config_file(const char *global, const char *local, const char *env);
|
||||
|
|
@ -135,7 +135,7 @@ char *pa_get_state_dir(void);
|
|||
char *pa_get_home_dir_malloc(void);
|
||||
char *pa_get_binary_name_malloc(void);
|
||||
char *pa_runtime_path(const char *fn);
|
||||
char *pa_state_path(const char *fn, pa_bool_t prepend_machine_id);
|
||||
char *pa_state_path(const char *fn, bool prepend_machine_id);
|
||||
|
||||
int pa_atoi(const char *s, int32_t *ret_i);
|
||||
int pa_atou(const char *s, uint32_t *ret_u);
|
||||
|
|
@ -151,7 +151,7 @@ int pa_match(const char *expr, const char *v);
|
|||
|
||||
char *pa_getcwd(void);
|
||||
char *pa_make_path_absolute(const char *p);
|
||||
pa_bool_t pa_is_path_absolute(const char *p);
|
||||
bool pa_is_path_absolute(const char *p);
|
||||
|
||||
void *pa_will_need(const void *p, size_t l);
|
||||
|
||||
|
|
@ -205,7 +205,7 @@ void pa_set_env(const char *key, const char *value);
|
|||
void pa_set_env_and_record(const char *key, const char *value);
|
||||
void pa_unset_env_recorded(void);
|
||||
|
||||
pa_bool_t pa_in_system_mode(void);
|
||||
bool pa_in_system_mode(void);
|
||||
|
||||
#define pa_streq(a,b) (!strcmp((a),(b)))
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ static inline bool pa_safe_streq(const char *a, const char *b) {
|
|||
return pa_streq(a, b);
|
||||
}
|
||||
|
||||
pa_bool_t pa_str_in_list_spaces(const char *needle, const char *haystack);
|
||||
bool pa_str_in_list_spaces(const char *needle, const char *haystack);
|
||||
|
||||
char *pa_get_host_name_malloc(void);
|
||||
char *pa_get_user_name_malloc(void);
|
||||
|
|
@ -226,10 +226,10 @@ char *pa_session_id(void);
|
|||
char *pa_uname_string(void);
|
||||
|
||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
||||
pa_bool_t pa_in_valgrind(void);
|
||||
bool pa_in_valgrind(void);
|
||||
#else
|
||||
static inline pa_bool_t pa_in_valgrind(void) {
|
||||
return FALSE;
|
||||
static inline bool pa_in_valgrind(void) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ size_t pa_pipe_buf(int fd);
|
|||
|
||||
void pa_reset_personality(void);
|
||||
|
||||
pa_bool_t pa_run_from_build_tree(void) PA_GCC_CONST;
|
||||
bool pa_run_from_build_tree(void) PA_GCC_CONST;
|
||||
|
||||
const char *pa_get_temp_dir(void);
|
||||
|
||||
|
|
@ -281,7 +281,7 @@ FILE* pa_fopen_cloexec(const char *path, const char *mode);
|
|||
void pa_nullify_stdfds(void);
|
||||
|
||||
char *pa_read_line_from_file(const char *fn);
|
||||
pa_bool_t pa_running_in_vm(void);
|
||||
bool pa_running_in_vm(void);
|
||||
|
||||
#ifdef OS_IS_WIN32
|
||||
char *pa_win32_get_toplevel(HANDLE handle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue