changes needed for 0.14.0

This commit is contained in:
ookami125 2025-04-10 00:51:03 -04:00
parent 5fa0db871d
commit c64475b0a4
2 changed files with 5 additions and 5 deletions

View file

@ -803,7 +803,7 @@ pub export fn __call_reducer__(
comptime var argList: []const std.builtin.Type.StructField = &[_]std.builtin.Type.StructField{ comptime var argList: []const std.builtin.Type.StructField = &[_]std.builtin.Type.StructField{
std.builtin.Type.StructField{ std.builtin.Type.StructField{
.alignment = @alignOf(*ReducerContext), .alignment = @alignOf(*ReducerContext),
.default_value = null, .default_value_ptr = null,
.is_comptime = false, .is_comptime = false,
.name = "0", .name = "0",
.type = *ReducerContext, .type = *ReducerContext,
@ -815,7 +815,7 @@ pub export fn __call_reducer__(
argList = argList ++ &[_]std.builtin.Type.StructField{ argList = argList ++ &[_]std.builtin.Type.StructField{
std.builtin.Type.StructField{ std.builtin.Type.StructField{
.alignment = @alignOf(param.type.?), .alignment = @alignOf(param.type.?),
.default_value = null, .default_value_ptr = null,
.is_comptime = false, .is_comptime = false,
.name = comptime utils.itoa(argCount), .name = comptime utils.itoa(argCount),
.type = param.type.?, .type = param.type.?,

View file

@ -285,9 +285,9 @@ pub fn UnionDeserializer(union_type: type) fn(allocator: std.mem.Allocator, *[]c
}.deserialize; }.deserialize;
} }
pub fn StructDeserializer(struct_type: type) fn(allocator: std.mem.Allocator, *[]const u8) std.mem.Allocator.Error!*struct_type { pub fn StructDeserializer(struct_type: type) fn(allocator: std.mem.Allocator, *[]u8) std.mem.Allocator.Error!*struct_type {
return struct { return struct {
pub fn deserialize(allocator: std.mem.Allocator, data: *[]const u8) std.mem.Allocator.Error!*struct_type { pub fn deserialize(allocator: std.mem.Allocator, data: *[]u8) std.mem.Allocator.Error!*struct_type {
const ret = try allocator.create(struct_type); const ret = try allocator.create(struct_type);
var offset_mem = data.*; var offset_mem = data.*;
const fields = std.meta.fields(struct_type); const fields = std.meta.fields(struct_type);
@ -402,7 +402,7 @@ pub fn Column2ORM(comptime table_name: []const u8, comptime column_name: [:0]con
.fields = &.{ .fields = &.{
std.builtin.Type.StructField{ std.builtin.Type.StructField{
.alignment = @alignOf(column_type), .alignment = @alignOf(column_type),
.default_value = null, .default_value_ptr = null,
.is_comptime = false, .is_comptime = false,
.name = column_name, .name = column_name,
.type = column_type, .type = column_type,