X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fclient%2Finterface_conf.c;fp=src%2Fclient%2Finterface_conf.c;h=afc3ede3f75d808c90e0121f827a961a97db84e1;hb=a3c8dd9de99c7c77ad8218c3767abd4475c3dab6;hp=69ef9eb54675fe2f009359e0de502727103801df;hpb=39754116c2ce1d6aa1f4cb6c931a33132ef46bfe;p=plomrogue diff --git a/src/client/interface_conf.c b/src/client/interface_conf.c index 69ef9eb..afc3ede 100644 --- a/src/client/interface_conf.c +++ b/src/client/interface_conf.c @@ -10,7 +10,7 @@ #include /* memset(), strchr(), strcmp(), strdup(), strlen() */ #include /* optarg, getopt() */ #include "../common/parse_file.h" /* EDIT_STARTED, parse_file(), set_val(), - * token_from_line() + * token_from_line(), finalize_by_readyflag() */ #include "../common/readwrite.h" /* try_fopen(), try_fclose_unlink_rename(), * try_fwrite() @@ -187,14 +187,10 @@ static void tokens_into_entries(char * token0, char * token1) if (!token0 || !strcmp(token0, str_win) || !strcmp(token0, str_ord) || !strcmp(token0, str_kbd)) { - err_line( ((win_flags & READY_WIN) ^ READY_WIN) - || ((ord_flags & READY_ORD) ^ READY_ORD) - || ((kbd_flags & READY_KBD) ^ READY_KBD), - "Last definition block not yet finished yet."); + finalize_by_readyflag(&win_flags, READY_WIN); + finalize_by_readyflag(&ord_flags, READY_ORD); + finalize_by_readyflag(&kbd_flags, READY_KBD); write_if_win(&win); - ord_flags = READY_ORD; - win_flags = READY_WIN; - kbd_flags = READY_KBD; } if (!token0) {