mirror of
https://github.com/labwc/labwc.git
synced 2026-03-23 05:34:52 -04:00
tree-wide: auto-replace of (struct server *)
#!/bin/bash
read -r -d '' EXPRS << EOF
s/xwayland->server/xwayland->svr/g;
s/\t*struct server \*server;\n//g;
s/\t*struct server \*server =.*?;\n//gs;
s/\t*.* = ([a-z_]*->)*server[;,]\n//g;
s/\{\n\n/\{\n/g;
s/\n\n+/\n\n/g;
s/\(\s*struct server \*server\)/(void)/g;
s/\(\s*struct server \*server,\s*/(/g;
s/,\s*struct server \*server\)/)/g;
s/,\s*struct server \*server,\s*/, /g;
s/\(\s*([a-z_]*->)*server\)/()/g;
s/\(\s*([a-z_]*->)*server,\s*/(/g;
s/,\s*([a-z_]*->)*server\)/)/g;
s/,\s*([a-z_]*->)*server,\s*/, /g;
s/([a-z_]*->)*server->/g_server./g;
s/xwayland->svr/xwayland->server/g;
EOF
find src include \( -name \*.c -o -name \*.h \) -exec \
perl -0777 -i -pe "$EXPRS" \{\} \;
This commit is contained in:
parent
60ac8f07bb
commit
cb49bddf63
81 changed files with 1522 additions and 1682 deletions
|
|
@ -12,7 +12,6 @@ struct wlr_scene_tree;
|
|||
|
||||
struct workspace {
|
||||
struct wl_list link; /* struct server.workspaces */
|
||||
struct server *server;
|
||||
|
||||
char *name;
|
||||
struct wlr_scene_tree *tree;
|
||||
|
|
@ -34,12 +33,12 @@ struct workspace {
|
|||
} on_ext;
|
||||
};
|
||||
|
||||
void workspaces_init(struct server *server);
|
||||
void workspaces_init(void);
|
||||
void workspaces_switch_to(struct workspace *target, bool update_focus);
|
||||
void workspaces_destroy(struct server *server);
|
||||
void workspaces_destroy(void);
|
||||
void workspaces_osd_hide(struct seat *seat);
|
||||
struct workspace *workspaces_find(struct workspace *anchor, const char *name,
|
||||
bool wrap);
|
||||
void workspaces_reconfigure(struct server *server);
|
||||
void workspaces_reconfigure(void);
|
||||
|
||||
#endif /* LABWC_WORKSPACES_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue