vlib: minor tweaks for various module imports, needed for vdoc

pull/5250/head
Delyan Angelov 2020-06-06 19:14:00 +03:00
parent 8d3f680d07
commit e534f8507b
4 changed files with 9 additions and 6 deletions

View File

@ -1,12 +1,12 @@
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved. // Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license // Use of this source code is governed by an MIT license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
module glfw module glfw
import gl
// note: we might need special case for this // note: we might need special case for this
// see TmpGlImportHack below (joe-c) // see TmpGlImportHack below (joe-c)
import gl
#flag -I @VROOT/thirdparty/glfw #flag -I @VROOT/thirdparty/glfw
#flag -L @VROOT/thirdparty/glfw #flag -L @VROOT/thirdparty/glfw

View File

@ -18,9 +18,11 @@
* *
**********************************************************************/ **********************************************************************/
module ftoa module ftoa
//import math
import math.bits import math.bits
//import math
/****************************************************************************** /******************************************************************************
* *
* General Utilities * General Utilities

View File

@ -3,10 +3,11 @@
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
module ast module ast
// These methods are used only by vfmt, vdoc, and for debugging.
import v.table import v.table
import strings import strings
// These methods are used only by vfmt, vdoc, and for debugging.
pub fn (node &FnDecl) str(t &table.Table) string { pub fn (node &FnDecl) str(t &table.Table) string {
mut f := strings.new_builder(30) mut f := strings.new_builder(30)
if node.is_pub { if node.is_pub {

View File

@ -1,8 +1,8 @@
module parser
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved. // Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license // Use of this source code is governed by an MIT license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
module parser
import v.table import v.table
pub fn (mut p Parser) parse_array_type() table.Type { pub fn (mut p Parser) parse_array_type() table.Type {