Skip to content
Myr

config: --anchor: use 'enum anchor' instead of uint32_t

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 5ae2ca9 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:config.c+1 added-1 removed
872 unmodified lines
873 else if (strcmp(key, "launch-prefix") == 0)874 return value_to_str(ctx, &conf->launch_prefix);875876 else if (strcmp(key, "anchor") == 0) {877 uint32_t anchor;877 enum anchors anchor;878 bool valid_anchor = false;879880 for (size_t i = 0; anchors_map[i].name != NULL; i++) {881 if (strcmp(value, anchors_map[i].name) == 0) {
772 unmodified lines
modified:main.c+1 added-1 removed
813 unmodified lines
814 cmdline_overrides.conf.terminal = optarg;815 break;816817 case 'a': {818 uint32_t anchor;818 enum anchors anchor;819 bool valid_anchor = false;820821 for (size_t i = 0; anchors_map[i].name != NULL; i++) {822 if (strcmp(optarg, anchors_map[i].name) == 0) {
732 unmodified lines