From 8f76a062ddb4fbde1895830306a4c4d5a09244ec Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 14 Oct 2023 18:50:15 +0300 Subject: [PATCH] checker: remove time_t hack now that C aliases are supported --- vlib/time/time.c.v | 2 +- vlib/v/checker/checker.v | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vlib/time/time.c.v b/vlib/time/time.c.v index 95072526b1dce7..e775a0a112eb75 100644 --- a/vlib/time/time.c.v +++ b/vlib/time/time.c.v @@ -16,7 +16,7 @@ fn C.localtime_r(t &C.time_t, tm &C.tm) // struct C.time_t {} -// type C.time_t = i64 +type C.time_t = i64 fn C.time(t &C.time_t) C.time_t diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index cf35003a429ace..e5f2a22353b19e 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -4700,10 +4700,10 @@ fn (mut c Checker) ensure_type_exists(typ ast.Type, pos token.Pos) bool { } match sym.kind { .placeholder { - if sym.language == .c && sym.name == 'C.time_t' { - // TODO temporary hack until we can define C aliases - return true - } + // if sym.language == .c && sym.name == 'C.time_t' { + // TODO temporary hack until we can define C aliases + // return true + //} // if sym.language == .v && !sym.name.starts_with('C.') { // if sym.language in [.v, .c] { if sym.language == .v {