More fiddling with identifiers

This commit is contained in:
Martin Wickham 2021-11-23 23:16:05 -06:00
parent 0947abe4f4
commit 34fb550be7
26 changed files with 105 additions and 79 deletions

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;
@ -13,5 +14,5 @@ const gpa = util.gpa;
const data = @embedFile("../data/day01.txt"); const data = @embedFile("../data/day01.txt");
pub fn main() !void { pub fn main() !void {
} }

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
const util = @import("util.zig"); const util = @import("util.zig");
const gpa = util.gpa; const gpa = util.gpa;

View file

@ -2,10 +2,11 @@ const std = @import("std");
const Allocator = std.mem.Allocator; const Allocator = std.mem.Allocator;
const assert = std.debug.assert; const assert = std.debug.assert;
const print = std.debug.print; const print = std.debug.print;
const ArrayList = std.ArrayList; const List = std.ArrayList;
const HashMap = std.AutoHashMap; const Map = std.AutoHashMap;
const StringHashMap = std.StringHashMap; const StrMap = std.StringHashMap;
const BitSet = std.DynamicBitSet; const BitSet = std.DynamicBitSet;
const Str = []const u8;
var gpa_impl = std.heap.GeneralPurposeAllocator(.{}){}; var gpa_impl = std.heap.GeneralPurposeAllocator(.{}){};
pub const gpa = &gpa_impl.allocator; pub const gpa = &gpa_impl.allocator;