alex

/

v Public
0 Issues 1 Contributor 0 Releases 4 Branches
Additions: 2 Deletions: 1 View patch
1 // type cast. TODO: finish
2 // if name in ast.builtin_type_names_to_idx {
3 if (!known_var && (name in p.table.type_idxs || name_w_mod in p.table.type_idxs)
4- && name !in ['C.stat', 'C.sigaction']) || is_mod_cast || is_generic_cast
5+ && name !in ['C.statvfs', 'C.stat', 'C.sigaction']) || is_mod_cast
6+ || is_generic_cast
7 || (language == .v && name.len > 0 && name[0].is_capital()) {
8 // MainLetter(x) is *always* a cast, as long as it is not `C.`
9 // TODO handle C.stat()
10