mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
Style fix: Remove new lines from opening brackets
This patch replaces every occurrence of ')\n{' with ') {'.
Command used for this:
find . -type d \( -name ffmpeg \) -prune -o \
-regex '\(.*\.[hc]\|.*\.cc\)' \
-a -not -name core-util.c -a -not \
-name adrian-aec.c -a -not -name g711.c \
-exec sed -i -e '/)$/{N;s/)\n{$/) {/}' {} \;
The excluded files are mirrored files from external sources.
This commit is contained in:
parent
cbd274676d
commit
e95d054e40
25 changed files with 40 additions and 80 deletions
|
|
@ -422,8 +422,7 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
int pa_format_info_get_prop_int_array(pa_format_info *f, const char *key, int **values, int *n_values)
|
||||
{
|
||||
int pa_format_info_get_prop_int_array(pa_format_info *f, const char *key, int **values, int *n_values) {
|
||||
const char *str;
|
||||
json_object *o, *o1;
|
||||
int i, ret = -PA_ERR_INVALID;
|
||||
|
|
@ -493,8 +492,7 @@ int pa_format_info_get_prop_string(pa_format_info *f, const char *key, char **v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int pa_format_info_get_prop_string_array(pa_format_info *f, const char *key, char ***values, int *n_values)
|
||||
{
|
||||
int pa_format_info_get_prop_string_array(pa_format_info *f, const char *key, char ***values, int *n_values) {
|
||||
const char *str;
|
||||
json_object *o, *o1;
|
||||
int i, ret = -PA_ERR_INVALID;
|
||||
|
|
@ -642,8 +640,7 @@ void pa_format_info_set_prop_string_array(pa_format_info *f, const char *key, co
|
|||
json_object_put(o);
|
||||
}
|
||||
|
||||
static pa_bool_t pa_json_is_fixed_type(json_object *o)
|
||||
{
|
||||
static pa_bool_t pa_json_is_fixed_type(json_object *o) {
|
||||
switch(json_object_get_type(o)) {
|
||||
case json_type_object:
|
||||
case json_type_array:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue