mirror of
https://github.com/SAT-R/sa2.git
synced 2026-10-28 09:43:38 +00:00
sa2: fix progress
This commit is contained in:
1 parent
cc2110e85d
commit
7342e21d8c
1 file changed
+5
-2
Vendored
+5
-2
@@ -9,16 +9,19 @@ import re
|
||||
def collect_non_matching_funcs():
|
||||
result = []
|
||||
for root, dirs, files in os.walk('src'):
|
||||
if "/sa1/" in root:
|
||||
continue
|
||||
for file in files:
|
||||
if "/sa1/" in file:
|
||||
continue
|
||||
if file.endswith('.c'):
|
||||
with open(os.path.join(root, file), 'r') as f:
|
||||
data = f.read()
|
||||
lines = data.split("\n")
|
||||
for i in range(len(lines)):
|
||||
line = lines[i]
|
||||
if "sa1" in line:
|
||||
continue
|
||||
if "NONMATCH" in line:
|
||||
print(file, line)
|
||||
# if "unused_" in line.lower():
|
||||
# continue
|
||||
matcher = r'(NONMATCH|ASM_FUNC)\(".*",\W*\w*\W*(\w*).*\)'
|
||||
|
||||
Reference in new issue
Block a user