sokol,fontstash: move f_d_use_freetype.v to vlib/fontstash/a_d_use_freetype.v
							parent
							
								
									c21f57ff59
								
							
						
					
					
						commit
						d4f6f5eec4
					
				|  | @ -1,4 +1,4 @@ | ||||||
| module f | module fontstash | ||||||
| 
 | 
 | ||||||
| #define FONS_USE_FREETYPE | #define FONS_USE_FREETYPE | ||||||
| 
 | 
 | ||||||
|  | @ -765,8 +765,9 @@ pub mut: | ||||||
| // #include etc
 | // #include etc
 | ||||||
| pub struct HashStmt { | 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'
 | ||||||
|  |  | ||||||
|  | @ -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') | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue