disambiguate enum blocks and complete distinct type operations
This commit is contained in:
@@ -142,17 +142,22 @@ is_version_command :: proc(arg: string) -> bool {
|
||||
}
|
||||
|
||||
template_root_valid :: proc(root: string) -> bool {
|
||||
std_build, std_error := filepath.join({root, "std", "build", "build.bro"})
|
||||
if std_error != nil {
|
||||
std_build_bro, bro_error := filepath.join({root, "std", "build", "build.bro"})
|
||||
if bro_error != nil {
|
||||
return false
|
||||
}
|
||||
defer delete(std_build)
|
||||
defer delete(std_build_bro)
|
||||
std_build_hon, hon_error := filepath.join({root, "std", "build", "build.hon"})
|
||||
if hon_error != nil {
|
||||
return false
|
||||
}
|
||||
defer delete(std_build_hon)
|
||||
ffi_stdio, ffi_error := filepath.join({root, "ffi", "c", "stdio.bro"})
|
||||
if ffi_error != nil {
|
||||
return false
|
||||
}
|
||||
defer delete(ffi_stdio)
|
||||
return os.exists(std_build) && os.exists(ffi_stdio)
|
||||
return (os.exists(std_build_bro) || os.exists(std_build_hon)) && os.exists(ffi_stdio)
|
||||
}
|
||||
|
||||
find_template_root :: proc(allocator := context.allocator) -> (string, bool) {
|
||||
|
||||
Reference in New Issue
Block a user