diff --git a/cmd/tools/modules/testing/output_normal.v b/cmd/tools/modules/testing/output_normal.v index 272fabf39d..3e27664b1d 100644 --- a/cmd/tools/modules/testing/output_normal.v +++ b/cmd/tools/modules/testing/output_normal.v @@ -113,8 +113,8 @@ pub fn (r NormalReporter) report_stop() { eprintln('') } -//// TODO: reconsider if these should be public: - +// progress will show the given message normally +// TODO: reconsider if these should be public: pub fn (r NormalReporter) progress(index int, message string) { eprintln(message) } diff --git a/vlib/datatypes/bstree.v b/vlib/datatypes/bstree.v index c73206f5ed..7cae56497f 100644 --- a/vlib/datatypes/bstree.v +++ b/vlib/datatypes/bstree.v @@ -1,6 +1,6 @@ module datatypes -/// Internal representation of the tree node +// Internal representation of the tree node @[heap] struct BSTreeNode[T] { mut: diff --git a/vlib/dlmalloc/dlmalloc.v b/vlib/dlmalloc/dlmalloc.v index 8c5785379b..d47576efa2 100644 --- a/vlib/dlmalloc/dlmalloc.v +++ b/vlib/dlmalloc/dlmalloc.v @@ -926,7 +926,7 @@ pub fn (mut dl Dlmalloc) malloc(size usize) voidptr { } } -/// malloc behaves as libc malloc, but operates within the given space +// malloc_real behaves as libc malloc, but operates within the given space @[unsafe] fn (mut dl Dlmalloc) malloc_real(size usize) voidptr { mut nb := usize(0) diff --git a/vlib/dlmalloc/global.v b/vlib/dlmalloc/global.v index 7a509ccb40..390d5f201f 100644 --- a/vlib/dlmalloc/global.v +++ b/vlib/dlmalloc/global.v @@ -3,10 +3,9 @@ module dlmalloc __global global = new(get_system_allocator()) -/// malloc allocates `size` bytes. -/// -/// Returns a null pointer if allocation fails. Returns a valid pointer -/// otherwise. +// malloc allocates `size` bytes. +// It returns a null pointer if allocation fails. +// It returns a valid pointer otherwise. @[unsafe] pub fn malloc(size usize) voidptr { unsafe { diff --git a/vlib/io/reader.v b/vlib/io/reader.v index f1937bf280..47170f5756 100644 --- a/vlib/io/reader.v +++ b/vlib/io/reader.v @@ -1,6 +1,6 @@ module io -/// Eof error means that we reach the end of the stream. +// Eof error means that we reach the end of the stream. pub struct Eof { Error } diff --git a/vlib/os/file.c.v b/vlib/os/file.c.v index 303652050e..b69ef6ce0e 100644 --- a/vlib/os/file.c.v +++ b/vlib/os/file.c.v @@ -1,6 +1,6 @@ module os -/// Eof error means that we reach the end of the file. +// Eof error means that we reach the end of the file. pub struct Eof { Error } diff --git a/vlib/v/checker/autocomplete.v b/vlib/v/checker/autocomplete.v index a254174639..0b02059af3 100644 --- a/vlib/v/checker/autocomplete.v +++ b/vlib/v/checker/autocomplete.v @@ -42,7 +42,7 @@ fn (mut c Checker) ident_autocomplete(node ast.Ident) { if !c.pref.linfo.vars_printed[nt] { // avoid dups sb.writeln('===') sb.writeln('VAR ${nt}') //${node.name}:${sym.name}') - /// print_backtrace() + // print_backtrace() /* if sym.kind == .alias { parent_sym := c.table.sym(sym.parent_type) diff --git a/vlib/v/gen/c/fn.v b/vlib/v/gen/c/fn.v index 029a2a192c..ca05d6efb1 100644 --- a/vlib/v/gen/c/fn.v +++ b/vlib/v/gen/c/fn.v @@ -754,7 +754,7 @@ fn (mut g Gen) fn_decl_params(params []ast.Param, scope &ast.Scope, is_variadic g.write('void') } } - /// mut is_implicit_ctx := false + // mut is_implicit_ctx := false // Veb actions defined by user can have implicit context /* if g.cur_fn != unsafe { nil } && g.cur_fn.is_method && g.cur_mod.name != 'veb' { diff --git a/vlib/v/gen/native/macho.v b/vlib/v/gen/native/macho.v index b05fc6b63e..05fc54e556 100644 --- a/vlib/v/gen/native/macho.v +++ b/vlib/v/gen/native/macho.v @@ -317,7 +317,7 @@ pub fn (mut g Gen) generate_macho_object_header() { g.write32(0) g.write32(0) g.write32(0) - /// ??? + // ??? g.write32(0x32) g.write32(0x18) g.write32(0x01) diff --git a/vlib/v/pref/line_info.v b/vlib/v/pref/line_info.v index 2a93e22965..8139e325d8 100644 --- a/vlib/v/pref/line_info.v +++ b/vlib/v/pref/line_info.v @@ -2,11 +2,6 @@ // Use of this source code is governed by an MIT license that can be found in the LICENSE file. module pref -// import v.ast -// import v.pref -// import os - -// fn (mut p Pref) parse_line_info(line string, all_ast_files []&ast.File) { fn (mut p Preferences) parse_line_info(line string) { // println("parse_line_info '${line}'") format_err := 'wrong format, use `-line-info "file.v:24:expr_to_look_up"' @@ -22,34 +17,6 @@ fn (mut p Preferences) parse_line_info(line string) { eprintln(format_err) return } - - // println('files.len=${c.files.len}') - // Find which file contains the line - mut found := true // false - //// mut found_path := '' - // mut found_file_idx := -1 - /* - for i, file in all_ast_files { - // base := os.base(file.path) - base := file.path // os.base(file.path) - // println(base) - if base == file_name { - if found { - eprintln('more than one "${file_name}" found: "${file.path}" and "${found_path}"') - return - } - found = true - found_path = file.path - found_file_idx = i - } - } - */ - - if !found { - eprintln('file "${file_name}" not found among those parsed') - return - } - p.linfo = LineInfo{ line_nr: line_nr path: file_name