checker: remove time_t hack now that C aliases are supported

This commit is contained in:
Alexander Medvednikov 2023-10-14 18:50:15 +03:00
parent 545ee1ae23
commit 8f76a062dd
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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 {