Skip to content

Commit 82bed2a

Browse files
committed
skip lib/clang defs
1 parent a318a2e commit 82bed2a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

vlib/builtin/cfns.c.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ fn C.chmod(&char, u32) int
5353
fn C.printf(&char, ...voidptr) int
5454

5555
fn C.puts(&char) int
56+
fn C.abs(f64) f64
5657

5758
fn C.fputs(str &char, stream &C.FILE) int
5859

vlib/v/ast/types.v

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,14 +1148,15 @@ pub fn (t &Table) type_to_str_using_aliases(typ Type, import_aliases map[string]
11481148
}
11491149
}
11501150
.alias, .any, .placeholder, .enum_ {
1151-
res = t.shorten_user_defined_typenames(res, import_aliases)
1152-
/*
1151+
// res = t.shorten_user_defined_typenames(res, import_aliases)
11531152
if res.ends_with('.byte') {
1153+
$if vfmt ? {
1154+
eprintln('XAXAXA')
1155+
}
11541156
res = 'u8'
11551157
} else {
11561158
res = t.shorten_user_defined_typenames(res, import_aliases)
11571159
}
1158-
*/
11591160
}
11601161
.aggregate {}
11611162
}

vlib/v/parser/containers.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn (mut p Parser) array_init() ast.ArrayInit {
6969
// [100]u8
7070
elem_type = p.parse_type()
7171
if p.table.sym(elem_type).name == 'byte' {
72-
p.error('`byte` has been deprecated in favor of `u8`: use `[10]u8` instead of `[10]byte`')
72+
p.error('`byte` has been deprecated in favor of `u8`: use `[10]u8{}` instead of `[10]byte{}`')
7373
}
7474
last_pos = p.tok.pos()
7575
is_fixed = true

vlib/v/util/util.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const builtin_module_names = ['builtin', 'strconv', 'strings', 'dlmalloc']
4040

4141
pub fn module_is_builtin(mod string) bool {
4242
// NOTE: using util.builtin_module_parts here breaks -usecache on macos
43-
return mod in util.builtin_module_names
44-
// return mod in util.builtin_module_parts
43+
// return mod in util.builtin_module_names
44+
return mod in util.builtin_module_parts
4545
}
4646

4747
pub fn tabs(n int) string {

0 commit comments

Comments
 (0)