authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-05-31 15:08:26 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-05-31 15:08:26 -07:00
log8ff8f872de3c9a532915be47f3a231ca10f28131
treed6f360129dc38332a4172d184f87480934cb3636
parentffaa3284e095454920cdac2017398560d73739b7

gen- make array output always be called `data`


5 files changed, 7 insertions(+), 7 deletions(-)

scripts/arabic_shaping.zig+1-1
...@@ -130,7 +130,7 @@ pub const default = common.Main(struct {...@@ -130,7 +130,7 @@ pub const default = common.Main(struct {
130 \\ };130 \\ };
131 \\};131 \\};
132 \\132 \\
133 \\pub const arabic_shaping = [_]Shaping{133 \\pub const data = [_]Shaping{
134 \\134 \\
135 ;135 ;
136136
scripts/blocks.zig+1-1
...@@ -13,7 +13,7 @@ pub const default = common.Main(struct {...@@ -13,7 +13,7 @@ pub const default = common.Main(struct {
13 \\ name: []const u8,13 \\ name: []const u8,
14 \\};14 \\};
15 \\15 \\
16 \\pub const blocks = [_]Block{16 \\pub const data = [_]Block{
17 \\17 \\
18 ;18 ;
1919
src/arabic_shaping.zig+1-1
...@@ -125,7 +125,7 @@ pub const Joining = struct {...@@ -125,7 +125,7 @@ pub const Joining = struct {
125 };125 };
126};126};
127127
128pub const arabic_shaping = [_]Shaping{128pub const data = [_]Shaping{
129 .{ .codepoint = 0x0600, .schematic_name = "ARABIC NUMBER SIGN", .joining_type = .U, .joining_group = .No_Joining_Group },129 .{ .codepoint = 0x0600, .schematic_name = "ARABIC NUMBER SIGN", .joining_type = .U, .joining_group = .No_Joining_Group },
130 .{ .codepoint = 0x0601, .schematic_name = "ARABIC SIGN SANAH", .joining_type = .U, .joining_group = .No_Joining_Group },130 .{ .codepoint = 0x0601, .schematic_name = "ARABIC SIGN SANAH", .joining_type = .U, .joining_group = .No_Joining_Group },
131 .{ .codepoint = 0x0602, .schematic_name = "ARABIC FOOTNOTE MARKER", .joining_type = .U, .joining_group = .No_Joining_Group },131 .{ .codepoint = 0x0602, .schematic_name = "ARABIC FOOTNOTE MARKER", .joining_type = .U, .joining_group = .No_Joining_Group },
src/blocks.zig+1-1
...@@ -8,7 +8,7 @@ pub const Block = struct {...@@ -8,7 +8,7 @@ pub const Block = struct {
8 name: []const u8,8 name: []const u8,
9};9};
1010
11pub const blocks = [_]Block{11pub const data = [_]Block{
12 .{ .from = 0x0000, .to = 0x007F, .name = "Basic Latin" },12 .{ .from = 0x0000, .to = 0x007F, .name = "Basic Latin" },
13 .{ .from = 0x0080, .to = 0x00FF, .name = "Latin-1 Supplement" },13 .{ .from = 0x0080, .to = 0x00FF, .name = "Latin-1 Supplement" },
14 .{ .from = 0x0100, .to = 0x017F, .name = "Latin Extended-A" },14 .{ .from = 0x0100, .to = 0x017F, .name = "Latin Extended-A" },
src/main.zig+3-3
...@@ -6,11 +6,11 @@ pub fn main() !void {...@@ -6,11 +6,11 @@ pub fn main() !void {
6 std.log.info("All your codebase are belong to us.", .{});6 std.log.info("All your codebase are belong to us.", .{});
77
8 const data = .{8 const data = .{
9 ucd.blocks.blocks,9 ucd.blocks,
10 ucd.arabic_shaping.arabic_shaping,10 ucd.arabic_shaping,
11 };11 };
1212
13 inline for (data) |b| {13 inline for (data) |b| {
14 _ = b;14 _ = b.data;
15 }15 }
16}16}