aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:03:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:35 +0000
commit9ee392dc8ce678113ecc7827dedb23e0bdae3b84 (patch)
tree39f7a8371c263410e42f5c2b241ffd154a318f25 /input.c
parenturl-mode: be consistent; use xmalloc() + xrealloc() (diff)
url-mode: generate-key-combos: minor efficiency tweaks
* Use a do..while loop; this lets us drop the second half of the loop condition. * Call wcslen(prefix) once, *before* iterating the alphabet characters. * Step through the alphabet characters using a pointer, as this avoids an indexed load (with possibly an imul instruction in e.g. -Os builds).
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions