changes needed for 0.14.0
This commit is contained in:
parent
5fa0db871d
commit
c64475b0a4
2 changed files with 5 additions and 5 deletions
|
|
@ -803,7 +803,7 @@ pub export fn __call_reducer__(
|
|||
comptime var argList: []const std.builtin.Type.StructField = &[_]std.builtin.Type.StructField{
|
||||
std.builtin.Type.StructField{
|
||||
.alignment = @alignOf(*ReducerContext),
|
||||
.default_value = null,
|
||||
.default_value_ptr = null,
|
||||
.is_comptime = false,
|
||||
.name = "0",
|
||||
.type = *ReducerContext,
|
||||
|
|
@ -815,7 +815,7 @@ pub export fn __call_reducer__(
|
|||
argList = argList ++ &[_]std.builtin.Type.StructField{
|
||||
std.builtin.Type.StructField{
|
||||
.alignment = @alignOf(param.type.?),
|
||||
.default_value = null,
|
||||
.default_value_ptr = null,
|
||||
.is_comptime = false,
|
||||
.name = comptime utils.itoa(argCount),
|
||||
.type = param.type.?,
|
||||
|
|
|
|||
|
|
@ -285,9 +285,9 @@ pub fn UnionDeserializer(union_type: type) fn(allocator: std.mem.Allocator, *[]c
|
|||
}.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 {
|
||||
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);
|
||||
var offset_mem = data.*;
|
||||
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 = &.{
|
||||
std.builtin.Type.StructField{
|
||||
.alignment = @alignOf(column_type),
|
||||
.default_value = null,
|
||||
.default_value_ptr = null,
|
||||
.is_comptime = false,
|
||||
.name = column_name,
|
||||
.type = column_type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue