cgen: minor cleanup of consts (#8441)
							parent
							
								
									ced7649bf8
								
							
						
					
					
						commit
						97cb7687a2
					
				|  | @ -22,6 +22,9 @@ const ( | |||
| 	cmp_str    = ['eq', 'ne', 'gt', 'lt', 'ge', 'le'] | ||||
| 	// when operands are switched
 | ||||
| 	cmp_rev    = ['eq', 'ne', 'lt', 'gt', 'le', 'ge'] | ||||
| 	tabs       = ['', '\t', '\t\t', '\t\t\t', '\t\t\t\t', '\t\t\t\t\t', '\t\t\t\t\t\t', '\t\t\t\t\t\t\t', | ||||
| 		'\t\t\t\t\t\t\t\t', | ||||
| 	] | ||||
| ) | ||||
| 
 | ||||
| struct Gen { | ||||
|  | @ -145,12 +148,6 @@ mut: | |||
| 	force_main_console bool // true when [console] used on fn main()
 | ||||
| } | ||||
| 
 | ||||
| const ( | ||||
| 	tabs = ['', '\t', '\t\t', '\t\t\t', '\t\t\t\t', '\t\t\t\t\t', '\t\t\t\t\t\t', '\t\t\t\t\t\t\t', | ||||
| 		'\t\t\t\t\t\t\t\t', | ||||
| 	] | ||||
| ) | ||||
| 
 | ||||
| pub fn cgen(files []ast.File, table &table.Table, pref &pref.Preferences) string { | ||||
| 	// println('start cgen2')
 | ||||
| 	mut module_built := '' | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue