diff options
Diffstat (limited to 'codegen')
| -rw-r--r-- | codegen/dwp.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/codegen/dwp.zig b/codegen/dwp.zig index a8cef57..36ab7cb 100644 --- a/codegen/dwp.zig +++ b/codegen/dwp.zig | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | 2 | ||
| 3 | const options = @import("options"); | ||
| 4 | |||
| 3 | const block_size = 256; | 5 | const block_size = 256; |
| 4 | const Block = [block_size]i3; | 6 | const Block = [block_size]i3; |
| 5 | 7 | ||
| @@ -75,7 +77,10 @@ pub fn main() !void { | |||
| 75 | }, | 77 | }, |
| 76 | 1 => { | 78 | 1 => { |
| 77 | // Width | 79 | // Width |
| 78 | if (std.mem.eql(u8, field, "W") or std.mem.eql(u8, field, "F")) { | 80 | if (std.mem.eql(u8, field, "W") or |
| 81 | std.mem.eql(u8, field, "F") or | ||
| 82 | (options.cjk and std.mem.eql(u8, field, "A"))) | ||
| 83 | { | ||
| 79 | for (current_code[0]..current_code[1] + 1) |cp| try flat_map.put(@intCast(cp), 2); | 84 | for (current_code[0]..current_code[1] + 1) |cp| try flat_map.put(@intCast(cp), 2); |
| 80 | } | 85 | } |
| 81 | }, | 86 | }, |