-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.ooc
38 lines (26 loc) · 1.03 KB
/
config.ooc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use gifnooc
import gifnooc/Entity
import gifnooc/entities/[INI, Fixed]
Settings: class {
oocEnding: static String = ".ooc"
outEnding: static String = ".out"
suiteEnding: static String = ".wt"
defSuite: static String = "suite" + suiteEnding
readSize: static Int = 1000 // For StringBuffer
depth: static Int = 25 // walk depth for findOOCFiles
SUCCESS :static Int = 0 // everything compiled fine
C_FAIL :static Int = 1 // the ooc-compiler failed
B_FAIL :static Int = 2 // the backend-compiler failed
defaults: FixedEntity
init: func() {
defaults = FixedEntity new(null)
defaults addValue("Settings.Compiler", "ooc").addValue("Settings.CompilerBackend", "gcc")
defaults addValue("Settings.CompilerStat", SUCCESS).addValue("Settings.TestDir", ".")
}
getConfigger: func~withSuite(confFile: String) -> Entity {
return INIEntity new(defaults, confFile)
}
getConfigger: func() -> Entity {
return defaults
}
}