summaryrefslogtreecommitdiffstats
path: root/rtemsspec/content.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsspec/content.py')
-rw-r--r--rtemsspec/content.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rtemsspec/content.py b/rtemsspec/content.py
index 7b99928b..74b2b43e 100644
--- a/rtemsspec/content.py
+++ b/rtemsspec/content.py
@@ -747,6 +747,7 @@ class CContent(Content):
ret = ""
space = ""
if params:
+ params = [param.strip() for param in params]
param_line = "( " + ", ".join(params) + " )"
else:
param_line = "()"
@@ -771,7 +772,9 @@ class CContent(Content):
align: bool = True) -> None:
# pylint: disable=too-many-arguments
""" Adds a function declaration. """
- if not params:
+ if params:
+ params = [param.strip() for param in params]
+ else:
params = ["void"]
param_line = f"( {', '.join(params)} )"
space = "" if not ret or ret.endswith("*") else " "