Changeset 8b55b59 in rtems-central


Ignore:
Timestamp:
Nov 24, 2020, 10:31:52 AM (8 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4896f8a
Parents:
d459b58
git-author:
Sebastian Huber <sebastian.huber@…> (11/24/20 10:31:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/24/20 10:32:04)
Message:

Revert "interfacedoc: Strip leading "_" from parameters"

This reverts commit d459b58772183bb987f350c4b463ff05c012520e.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsspec/interfacedoc.py

    rd459b58 r8b55b59  
    106106
    107107
    108 def _sanitize_name(name: str) -> str:
    109     return name.lstrip("_")
    110 
    111 
    112108def _add_function_definition(content: CContent, mapper: ItemMapper, item: Item,
    113109                             value: Dict[str, Any]) -> None:
     
    122118    ret = "#define"
    123119    name = item["name"]
    124     params = [_sanitize_name(param["name"]) for param in item["params"]]
     120    params = [param["name"] for param in item["params"]]
    125121    content.call_function(ret, name, params, semicolon="")
    126122
     
    172168        content.add(".. rubric:: PARAMETERS:")
    173169        for param in item["params"]:
     170            param_name = mapper.substitute(param["name"])
    174171            content.add_definition_item(
    175                 f"``{_sanitize_name(param['name'])}``",
     172                f"``{param_name}``",
    176173                mapper.substitute(f"This parameter {param['description']}"),
    177174                wrap=True)
Note: See TracChangeset for help on using the changeset viewer.