1
0

refactor: seperate highlevel into 2 individual files

This commit is contained in:
2026-05-19 10:26:17 +08:00
parent f8db414da3
commit 658806e9ff
8 changed files with 844 additions and 784 deletions

View File

@@ -65,7 +65,7 @@ fn stringified_exts_to_indices(
// If star is present alone, return fixed list from zero to the maximum ext index.
if has_star {
return Ok((0..program.get_ext_count()).collect());
return Ok((0..program.exts_len()).collect());
}
// Convert each extension name to index using program.find_ext()
@@ -138,7 +138,7 @@ fn run_ext_list(
) -> Result<()> {
// Fetch info
let mut ext_list: HashMap<String, Option<String>> = HashMap::new();
for index in 0..program.get_ext_count() {
for index in 0..program.exts_len() {
let ext = program.get_ext(index)?;
let status = program.query_ext(view, index)?;
ext_list.insert(ext.dotted_inner(), status.map(|s| s.get_name().to_string()));