mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: remove time_t hack now that C aliases are supported
This commit is contained in:
parent
545ee1ae23
commit
8f76a062dd
2 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ fn C.localtime_r(t &C.time_t, tm &C.tm)
|
||||||
|
|
||||||
// struct C.time_t {}
|
// struct C.time_t {}
|
||||||
|
|
||||||
// type C.time_t = i64
|
type C.time_t = i64
|
||||||
|
|
||||||
fn C.time(t &C.time_t) C.time_t
|
fn C.time(t &C.time_t) C.time_t
|
||||||
|
|
||||||
|
|
|
@ -4700,10 +4700,10 @@ fn (mut c Checker) ensure_type_exists(typ ast.Type, pos token.Pos) bool {
|
||||||
}
|
}
|
||||||
match sym.kind {
|
match sym.kind {
|
||||||
.placeholder {
|
.placeholder {
|
||||||
if sym.language == .c && sym.name == 'C.time_t' {
|
// if sym.language == .c && sym.name == 'C.time_t' {
|
||||||
// TODO temporary hack until we can define C aliases
|
// TODO temporary hack until we can define C aliases
|
||||||
return true
|
// return true
|
||||||
}
|
//}
|
||||||
// if sym.language == .v && !sym.name.starts_with('C.') {
|
// if sym.language == .v && !sym.name.starts_with('C.') {
|
||||||
// if sym.language in [.v, .c] {
|
// if sym.language in [.v, .c] {
|
||||||
if sym.language == .v {
|
if sym.language == .v {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue