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

sokol,fontstash: move f_d_use_freetype.v to vlib/fontstash/a_d_use_freetype.v

This commit is contained in:
Delyan Angelov 2021-01-23 11:39:12 +02:00
parent c21f57ff59
commit d4f6f5eec4
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
4 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
module f module fontstash
#define FONS_USE_FREETYPE #define FONS_USE_FREETYPE

View File

@ -767,6 +767,7 @@ pub struct HashStmt {
pub: pub:
mod string mod string
pos token.Position pos token.Position
source_file string
pub mut: pub mut:
val string // example: 'include <openssl/rand.h> # please install openssl // comment' val string // example: 'include <openssl/rand.h> # please install openssl // comment'
kind string // : 'include' kind string // : 'include'

View File

@ -1165,7 +1165,7 @@ fn (mut g Gen) stmt(node ast.Stmt) {
g.includes.writeln(guarded_include) g.includes.writeln(guarded_include)
} }
} else if node.kind == 'define' { } else if node.kind == 'define' {
g.includes.writeln('// defined by module `$node.mod`:') g.includes.writeln('// defined by module `$node.mod` in file `$node.source_file`:')
g.includes.writeln('#define $node.main') g.includes.writeln('#define $node.main')
} }
} }

View File

@ -33,6 +33,7 @@ fn (mut p Parser) hash() ast.HashStmt {
// p.trace('a.v', 'kind: ${kind:-10s} | pos: ${pos:-45s} | hash: $val') // p.trace('a.v', 'kind: ${kind:-10s} | pos: ${pos:-45s} | hash: $val')
return ast.HashStmt{ return ast.HashStmt{
mod: p.mod mod: p.mod
source_file: p.file_name
val: val val: val
kind: kind kind: kind
main: main_str main: main_str