1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
module glfw
import gl
// note: we might need special case for this
// see TmpGlImportHack below (joe-c)
import gl
#flag -I @VROOT/thirdparty/glfw
#flag -L @VROOT/thirdparty/glfw

View File

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

View File

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

View File

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