Fix coding style in output.c and xbm/tokenize.c

This commit is contained in:
Johan Malm 2021-09-24 20:56:44 +01:00
parent 0413d7fa9a
commit 69e236932e
2 changed files with 15 additions and 8 deletions

View file

@ -196,8 +196,10 @@ output_unmanaged_for_each_surface(struct output *output,
} }
} }
static void render_unmanaged(struct output *output, pixman_region32_t *damage, static void
struct wl_list *unmanaged) { render_unmanaged(struct output *output, pixman_region32_t *damage,
struct wl_list *unmanaged)
{
struct render_data data = { struct render_data data = {
.damage = damage, .damage = damage,
}; };
@ -241,9 +243,11 @@ output_view_for_each_popup_surface(struct output *output, struct view *view,
} }
/* for sending frame done */ /* for sending frame done */
void output_layer_for_each_surface(struct output *output, void
output_layer_for_each_surface(struct output *output,
struct wl_list *layer_surfaces, surface_iterator_func_t iterator, struct wl_list *layer_surfaces, surface_iterator_func_t iterator,
void *user_data) { void *user_data)
{
struct lab_layer_surface *layer_surface; struct lab_layer_surface *layer_surface;
wl_list_for_each(layer_surface, layer_surfaces, link) { wl_list_for_each(layer_surface, layer_surfaces, link) {
struct wlr_layer_surface_v1 *wlr_layer_surface_v1 = struct wlr_layer_surface_v1 *wlr_layer_surface_v1 =
@ -593,7 +597,8 @@ render_rootmenu(struct output *output, pixman_region32_t *output_damage)
} }
} }
void output_layer_for_each_surface_toplevel(struct output *output, void
output_layer_for_each_surface_toplevel(struct output *output,
struct wl_list *layer_surfaces, surface_iterator_func_t iterator, struct wl_list *layer_surfaces, surface_iterator_func_t iterator,
void *user_data) void *user_data)
{ {
@ -607,8 +612,10 @@ void output_layer_for_each_surface_toplevel(struct output *output,
} }
} }
static void render_layer_toplevel(struct output *output, static void
pixman_region32_t *damage, struct wl_list *layer_surfaces) { render_layer_toplevel(struct output *output, pixman_region32_t *damage,
struct wl_list *layer_surfaces)
{
struct render_data data = { struct render_data data = {
.damage = damage, .damage = damage,
}; };

View file

@ -53,7 +53,7 @@ get_identifier_token()
} }
static void static void
get_number_token() get_number_token(void)
{ {
struct token *token = tokens + nr_tokens - 1; struct token *token = tokens + nr_tokens - 1;
token->name[token->pos] = current_buffer_position[0]; token->name[token->pos] = current_buffer_position[0];