mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
@@ -44,7 +44,7 @@ def remove_c_comments(string):
|
|||||||
class CondDirectiveNotMatch(Exception):
|
class CondDirectiveNotMatch(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def preprocesse_c_source_code(source, *classes):
|
def preprocess_c_source_code(source, *classes):
|
||||||
"""
|
"""
|
||||||
Simple preprocessor for C source code.
|
Simple preprocessor for C source code.
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ def generate_ssl_debug_helpers(target_dir):
|
|||||||
|
|
||||||
definitions = dict()
|
definitions = dict()
|
||||||
prototypes = dict()
|
prototypes = dict()
|
||||||
for start, instance in preprocesse_c_source_code(source_code, EnumDefinition):
|
for start, instance in preprocess_c_source_code(source_code, EnumDefinition):
|
||||||
if start in definitions:
|
if start in definitions:
|
||||||
continue
|
continue
|
||||||
if isinstance(instance, EnumDefinition):
|
if isinstance(instance, EnumDefinition):
|
||||||
|
Reference in New Issue
Block a user