mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-01 06:41:30 +00:00
Make wcwidth-std.h more generally includeable
This commit is contained in:
parent
debd9fe419
commit
9838a336d5
2 changed files with 2 additions and 2 deletions
|
|
@ -504,7 +504,7 @@ def gen_wcwidth() -> None:
|
|||
p('\t\t// }}}\n')
|
||||
|
||||
with create_header('kitty/wcwidth-std.h') as p:
|
||||
p('static int\nwcwidth_std(int32_t code) {')
|
||||
p('static inline int\nwcwidth_std(int32_t code) {')
|
||||
p('\tif (LIKELY(0x20 <= code && code <= 0x7e)) return 1;')
|
||||
p('\tswitch(code) {')
|
||||
|
||||
|
|
|
|||
2
kitty/wcwidth-std.h
generated
2
kitty/wcwidth-std.h
generated
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
START_ALLOW_CASE_RANGE
|
||||
|
||||
static int
|
||||
static inline int
|
||||
wcwidth_std(int32_t code) {
|
||||
if (LIKELY(0x20 <= code && code <= 0x7e)) return 1;
|
||||
switch(code) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue