mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
Minor documentation fixes
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
1cc6a8ea15
commit
2991b5f6c0
@ -103,7 +103,7 @@ def get_c_expression_values(
|
||||
* ``header``: extra code to insert before any function in the generated
|
||||
C file.
|
||||
* ``expressions``: a list of C language expressions that have the type
|
||||
``type``.
|
||||
``cast_to``.
|
||||
* ``include_path``: a list of directories containing header files.
|
||||
* ``keep_c``: if true, keep the temporary C file (presumably for debugging
|
||||
purposes).
|
||||
|
@ -29,7 +29,8 @@ else
|
||||
fi
|
||||
|
||||
can_pylint () {
|
||||
# Pylint 1.5.2 from Ubuntu 16.04 is too old.
|
||||
# Pylint 1.5.2 from Ubuntu 16.04 is too old:
|
||||
# E: 34, 0: Unable to import 'mbedtls_dev' (import-error)
|
||||
# Pylint 1.8.3 from Ubuntu 18.04 passed on the first commit containing this line.
|
||||
$PYTHON -m pylint 2>/dev/null --version | awk '
|
||||
BEGIN {status = 1}
|
||||
@ -45,7 +46,7 @@ can_pylint () {
|
||||
can_mypy () {
|
||||
# Just check that mypy is present and looks sane. I don't know what
|
||||
# minimum version is required. The check is not just "type mypy"
|
||||
# becaues that passes if a mypy exists but is not installed for the current
|
||||
# because that passes if a mypy exists but is not installed for the current
|
||||
# python version.
|
||||
mypy --version 2>/dev/null >/dev/null
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ def gather_inputs(headers, test_suites, inputs_class=Inputs):
|
||||
return inputs
|
||||
|
||||
def run_c(type_word, expressions, include_path=None, keep_c=False):
|
||||
"""Generate and run a program to print out numerical values for expressions."""
|
||||
"""Generate and run a program to print out numerical values of C expressions."""
|
||||
if type_word == 'status':
|
||||
cast_to = 'long'
|
||||
printf_format = '%ld'
|
||||
|
Loading…
Reference in New Issue
Block a user