Skip to content

Commit

Permalink
Merge pull request open-ead#54 from AlexApps99/rust
Browse files Browse the repository at this point in the history
Added support for WIP function status
  • Loading branch information
leoetlino authored Aug 1, 2021
2 parents 2f5bb47 + 3c0648e commit e9dfd13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/viking/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub enum Status {
NonMatchingMinor,
NonMatchingMajor,
NotDecompiled,
Wip,
Library,
}

Expand Down Expand Up @@ -51,6 +52,7 @@ fn parse_function_csv_entry(record: &csv::StringRecord) -> Result<Info> {
Some('M') => Status::NonMatchingMajor,
Some('O') => Status::Matching,
Some('U') => Status::NotDecompiled,
Some('W') => Status::Wip,
Some('L') => Status::Library,
Some(code) => bail!("unexpected status code: {}", code),
None => bail!("missing status code"),
Expand Down
2 changes: 1 addition & 1 deletion tools/viking/src/tools/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ fn check_function(
}
}

Status::NonMatchingMinor | Status::NonMatchingMajor => {
Status::NonMatchingMinor | Status::NonMatchingMajor | Status::Wip => {
let orig_fn = get_orig_fn()?;

let result = checker
Expand Down

0 comments on commit e9dfd13

Please sign in to comment.