Skip to content

Commit 0d0f3be

Browse files
committed
Rename Gc to GC for consistent naming
- Renamed Gc.zig to GC.zig following uppercase convention for acronyms - Updated imports in Lua.zig and lib.zig - Updated gc() function to return GC type instead of Gc - All tests passing with renamed type
1 parent 3785288 commit 0d0f3be

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
File renamed without changes.

src/Lua.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Allocator = std.mem.Allocator;
4646
pub const State = @import("State.zig");
4747
pub const Compiler = @import("Compiler.zig");
4848
pub const Debug = @import("Debug.zig");
49-
pub const Gc = @import("Gc.zig");
49+
pub const GC = @import("GC.zig");
5050

5151
/// Error types that can be returned by Lua operations.
5252
pub const Error = error{
@@ -120,9 +120,9 @@ pub inline fn debug(self: Self) Debug {
120120
}
121121

122122
/// Get garbage collector control for this Lua state.
123-
/// Returns a Gc instance that provides GC operations.
124-
pub inline fn gc(self: Self) Gc {
125-
return Gc{ .lua = self };
123+
/// Returns a GC instance that provides GC operations.
124+
pub inline fn gc(self: Self) GC {
125+
return GC{ .lua = self };
126126
}
127127

128128
pub inline fn fromState(state: State.LuaState) Self {

src/lib.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ pub const Lua = @import("Lua.zig");
88
pub const State = @import("State.zig");
99
pub const Compiler = @import("Compiler.zig");
1010
pub const Debug = @import("Debug.zig");
11-
pub const Gc = @import("Gc.zig");
11+
pub const GC = @import("GC.zig");

0 commit comments

Comments
 (0)