Skip to content

Commit 5950508

Browse files
committed
Relicense the project from AGPL-3.0 to MIT
1 parent 6bdb102 commit 5950508

File tree

6 files changed

+18
-665
lines changed

6 files changed

+18
-665
lines changed

LICENSE

Lines changed: 11 additions & 658 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function or macro in the C API.
336336

337337
## Licensing
338338

339-
The `zig-luajit` Zig languge bindings are distributed under the terms of the AGPL-3.0 License. The terms of this
339+
The `zig-luajit` Zig languge bindings are distributed under the terms of the open and permissive MIT License. The terms of this
340340
license can be found in the [LICENSE](./LICENSE) file.
341341

342342
This project depends on source code and other artifacts from third parties. Information about their respective licenses

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Copyright (c) 2024-2025 Theodore Sackos
2-
//! SPDX-License-Identifier: AGPL-3.0-or-later
2+
//! SPDX-License-Identifier: MIT
33

44
const std = @import("std");
55

examples/simple-repl/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Copyright (c) 2024-2025 Theodore Sackos
2-
//! SPDX-License-Identifier: AGPL-3.0-or-later
2+
//! SPDX-License-Identifier: MIT
33

44
const std = @import("std");
55
const Lua = @import("luajit").Lua;

src/allocator_adapter.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Copyright (c) 2024-2025 Theodore Sackos
2-
//! SPDX-License-Identifier: AGPL-3.0-or-later
2+
//! SPDX-License-Identifier: MIT
33

44
const std = @import("std");
55

src/root.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Copyright (c) 2024-2025 Theodore Sackos
2-
//! SPDX-License-Identifier: AGPL-3.0-or-later
2+
//! SPDX-License-Identifier: MIT
33

44
const std = @import("std");
55
const assert = std.debug.assert;
@@ -2100,7 +2100,7 @@ pub const Lua = opaque {
21002100

21012101
_ = l;
21022102

2103-
const context: *@This() = @alignCast(@ptrCast(ud));
2103+
const context: *@This() = @ptrCast(@alignCast(ud));
21042104
const slice: []const u8 = @as([*]const u8, @ptrCast(bytes))[0..size];
21052105
context.writer.writeAll(slice) catch |err| {
21062106
return @intCast(@intFromError(err));
@@ -2155,7 +2155,7 @@ pub const Lua = opaque {
21552155
fn loadAdapter(l: *Lua, ud: ?*anyopaque, size: *usize) callconv(.c) [*]const u8 {
21562156
assert(ud != null);
21572157

2158-
const context: *@This() = @alignCast(@ptrCast(ud.?));
2158+
const context: *@This() = @ptrCast(@alignCast(ud.?));
21592159
const actual = context.reader.read(context.read_buffer) catch |err| {
21602160
_ = l.pushFString("Unable to load function, found error '%s' while reading.", .{@errorName(err).ptr});
21612161
l.raiseError();

0 commit comments

Comments
 (0)