Skip to content

Commit 0655b4f

Browse files
Check if the last word is 'MASK', not if it ends with 'MASK'
At the moment it makes no difference, but it could if e.g. a new algorithm was called 'foomask'. Signed-off-by: Gilles Peskine <[email protected]>
1 parent 13d60eb commit 0655b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/mbedtls_dev/macro_collector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def is_internal_name(self, name):
5050
return True
5151
if '_CATEGORY_' in name:
5252
return True
53-
return name.endswith('_FLAG') or name.endswith('MASK')
53+
return name.endswith('_FLAG') or name.endswith('_MASK')
5454

5555
# "#define" followed by a macro name with either no parameters
5656
# or a single parameter and a non-empty expansion.

0 commit comments

Comments
 (0)