Skip to content

Commit

Permalink
Version 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielT committed Sep 3, 2024
1 parent 63390a7 commit 2a9f70c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "a2ltool"
version = "2.1.1"
version = "2.2.0"
authors = ["Daniel Thaler <daniel@dthaler.de>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
10 changes: 10 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## Version 2.2.0

- upgrade to a2lfile 2.2.0
- Bugfix: during merges, some items might be renamed to prevent name collisions, but not all references to renamed items were updated inside of TYPEDEF_*
- Successfully parse non-standard a2l files which contain hex-encoded integers where the parser expects a float value. (by @louiscaron)
- Add the ability to remove items by regex. This will remove any CHARACTERISTIC, MEASUREMENT or INSTANCE whose name matches.
Removal happens before insertion, if both are done in the same run.
- Change the behavior of insertion by regex: the regex must match the whole variable name, instead of any substring inside it.
This makes insertion more precise, but some regexes that worked previously will need to be extended with .*

## Version 2.1.1

- Bugfix: Don't fail to read DWARF type info if it contains any of the attributes packed, atomic, restrict, or immutable.
Expand Down
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,7 @@ fn core() -> Result<(), String> {
for msg in log_msgs {
cond_print!(verbose, now, msg);
}
cond_print!(
verbose,
now,
format!("Removed {} items", removed_count)
);
cond_print!(verbose, now, format!("Removed {} items", removed_count));
}

if let Some(debugdata) = &elf_info {
Expand Down
3 changes: 1 addition & 2 deletions src/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pub(crate) fn remove_items(
.iter()
.map(|re| {
// extend the regex to match only the whole string, not just a substring
let extended_regex =
if !re.starts_with('^') && !re.ends_with('$') {
let extended_regex = if !re.starts_with('^') && !re.ends_with('$') {
format!("^{re}$")
} else {
re.to_string()
Expand Down

0 comments on commit 2a9f70c

Please sign in to comment.