mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
sway/main: move constants off the stack
This makes stack traces from gdb slightly easier to read.
This commit is contained in:
parent
fb3330c1fb
commit
8f036b6f78
1 changed files with 24 additions and 24 deletions
12
sway/main.c
12
sway/main.c
|
@ -240,9 +240,6 @@ static void handle_wlr_log(enum wlr_log_importance importance,
|
|||
_sway_vlog(convert_wlr_log_importance(importance), sway_fmt, args);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
static bool verbose = false, debug = false, validate = false, allow_unsupported_gpu = false;
|
||||
|
||||
static const struct option long_options[] = {
|
||||
{"help", no_argument, NULL, 'h'},
|
||||
{"config", required_argument, NULL, 'c'},
|
||||
|
@ -255,9 +252,7 @@ int main(int argc, char **argv) {
|
|||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
char *config_path = NULL;
|
||||
|
||||
const char* usage =
|
||||
static const char usage[] =
|
||||
"Usage: sway [options] [command]\n"
|
||||
"\n"
|
||||
" -h, --help Show help message and quit.\n"
|
||||
|
@ -269,6 +264,11 @@ int main(int argc, char **argv) {
|
|||
" --get-socketpath Gets the IPC socket path and prints it, then exits.\n"
|
||||
"\n";
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
static bool verbose = false, debug = false, validate = false, allow_unsupported_gpu = false;
|
||||
|
||||
char *config_path = NULL;
|
||||
|
||||
int c;
|
||||
while (1) {
|
||||
int option_index = 0;
|
||||
|
|
Loading…
Reference in a new issue