From: Laslo Hunhold Date: Wed, 23 May 2018 13:29:37 +0000 (+0200) Subject: Refactor keymap.c X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/f17f39d0a2e2898177dbcf5daf67284956005b9b?ds=sidebyside;hp=f17f39d0a2e2898177dbcf5daf67284956005b9b Refactor keymap.c - Get rid of camel-casing - Don't use all-caps for variable names - use LEN()-macro - use strncmp() rather than strstr() for prefix-checking - clean up the tokenizer-loop and don't use copies - make the loop more readable by separating different breaking conditions - stricter error-checking and cleanup - store the layout directly with bprintf rather than having a separate buffer ---