Skip to content

Commit 1d3b5da

Browse files
authored
Merge pull request #26 from Decompollaborate/develop
2.3.6
2 parents 5acc728 + b48e071 commit 1d3b5da

15 files changed

+205550
-6
lines changed

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Feature suggestion
2+
description: Suggest a new feature
3+
title: "[Suggestion]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for suggesting a new feature!
10+
- type: textarea
11+
id: the-feature
12+
attributes:
13+
label: Explain the feature
14+
description: What does this new feature do? How it would be done?
15+
placeholder: |
16+
- Print capybara ascii art on each run
17+
- Introduce achievements
18+
- Play the Oof sound on errors
19+
validations:
20+
required: true
21+
- type: textarea
22+
id: advantage
23+
attributes:
24+
label: Advantage
25+
description: What are the pros of this new feature?
26+
placeholder: |
27+
- XYZ is a common case.
28+
- The parsing would be more correct because...
29+
- Would fix Windows builds.
30+
- type: textarea
31+
id: disadvantage
32+
attributes:
33+
label: Disadvantage
34+
description: What could be any drawback of the new feature?
35+
placeholder: |
36+
- Slower runtime.
37+
- Harder to debug.
38+
- Would fix Windows builds.
39+
- type: textarea
40+
id: example
41+
attributes:
42+
label: Example(s)
43+
description: Include examples on how this feature would look like or related info
44+
validations:
45+
required: true
+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Frug Report
2+
description: File a frug report
3+
title: "[Frug]: "
4+
labels: ["frug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for filing a frug report!
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: Explain the problem.
14+
description: What happened? What did you expect to happen?
15+
placeholder: What went wrong?
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: reproducer
20+
attributes:
21+
label: Reproducer
22+
description: Please provide instructions to reproduce the problem.
23+
placeholder: |
24+
Use the following file (attach it please) and run IJK with parameters ABC.
25+
Clone the repo github.com/example/example and do XYZ
26+
validations:
27+
required: true
28+
- type: textarea
29+
id: mapfile_parser-flavour
30+
attributes:
31+
label: mapfile_parser flavour
32+
description: Which flavour of mapfile_parser were you using?
33+
placeholder: |
34+
- The Python cli?
35+
- As a Python library?
36+
- As a Rust library?
37+
- Etc
38+
validations:
39+
required: true
40+
- type: input
41+
id: mapfile_parser-version
42+
attributes:
43+
label: mapfile_parser version
44+
description: What version of mapfile_parser are you running? (i.e. `python3 -m mapfile_parser --version`)
45+
validations:
46+
required: true
47+
- type: textarea
48+
id: other-version
49+
attributes:
50+
label: "Optional: Version of other stuff"
51+
description: Here you can put the version of whatever other software you think may be relevant, like Rust, rabbitizer, binutils, OS, etc.
52+
placeholder: |
53+
- Python: 4.18
54+
- Rust: 72.½
55+
- binutils: 2.π
56+
- Wine on WSL2 on Windows 11 on VirtualBox on OpenBSD on Minecraft command blocks.
57+
- Etc
58+
validations:
59+
required: false

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.3.6] - 2024-02-23
11+
12+
### Added
13+
14+
- Add issue templates for bug reports and feature suggestions.
15+
16+
### Fixed
17+
18+
- Fix not recognizing sections that don't start with dots (`.`).
19+
1020
## [2.3.5] - 2024-02-04
1121

1222
### Fixed
@@ -314,6 +324,7 @@ Full changes: <https://github.com/Decompollaborate/mapfile_parser/compare/702a73
314324
- Initial release
315325

316326
[unreleased]: https://github.com/Decompollaborate/mapfile_parser/compare/master...develop
327+
[2.3.6]: https://github.com/Decompollaborate/mapfile_parser/compare/2.3.5...2.3.6
317328
[2.3.5]: https://github.com/Decompollaborate/mapfile_parser/compare/2.3.4...2.3.5
318329
[2.3.4]: https://github.com/Decompollaborate/mapfile_parser/compare/2.3.2...2.3.4
319330
[2.3.2]: https://github.com/Decompollaborate/mapfile_parser/compare/2.3.1...2.3.2

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "mapfile_parser"
6-
version = "2.3.5"
6+
version = "2.3.6"
77
edition = "2021"
88
authors = ["Anghelo Carvajal <[email protected]>"]
99
description = "Map file parser library focusing decompilation projects"
@@ -23,7 +23,7 @@ crate-type = ["cdylib", "staticlib", "rlib"]
2323

2424
[dependencies]
2525
regex = "1.10.2"
26-
pyo3 = { version = "0.20.0", optional = true }
26+
pyo3 = { version = "0.20.0", optional = true, features = ["abi3", "abi3-py37"]}
2727
lazy_static = "1.4.0"
2828

2929
[features]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you use a `requirements.txt` file in your repository, then you can add
3535
this library with the following line:
3636

3737
```txt
38-
mapfile_parser>=2.3.5,<3.0.0
38+
mapfile_parser>=2.3.6,<3.0.0
3939
```
4040

4141
#### Development version

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[project]
55
name = "mapfile_parser"
6-
version = "2.3.5"
6+
version = "2.3.6"
77
description = "Map file parser library focusing decompilation projects"
88
readme = "README.md"
99
requires-python = ">=3.7"

src/mapfile_parser/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from __future__ import annotations
77

8-
__version_info__ = (2, 3, 5)
8+
__version_info__ = (2, 3, 6)
99
__version__ = ".".join(map(str, __version_info__))
1010
__author__ = "Decompollaborate"
1111

src/rs/mapfile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl MapFile {
9090
*/
9191
pub fn parse_map_contents_gnu(&mut self, map_contents: String) {
9292
// TODO: maybe move somewhere else?
93-
let regex_file_data_entry = Regex::new(r"^\s+(?P<section>\.[^\s]+)\s+(?P<vram>0x[^\s]+)\s+(?P<size>0x[^\s]+)\s+(?P<name>[^\s]+)$").unwrap();
93+
let regex_file_data_entry = Regex::new(r"^\s+(?P<section>[^*][^\s]+)\s+(?P<vram>0x[^\s]+)\s+(?P<size>0x[^\s]+)\s+(?P<name>[^\s]+)$").unwrap();
9494
let regex_function_entry =
9595
Regex::new(r"^\s+(?P<vram>0x[^\s]+)\s+(?P<name>[^\s]+)$").unwrap();
9696
// regex_function_entry = re.compile(r"^\s+(?P<vram>0x[^\s]+)\s+(?P<name>[^\s]+)((\s*=\s*(?P<expression>.+))?)$")

0 commit comments

Comments
 (0)