From 942e8b236ee491ad059ee1cfac3662991738b030 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 14 Feb 2023 08:02:57 +0100 Subject: rtemsspec: Use @ref for appl config options The application configuration options are documented in "cpukit/doxygen/appl-config.h". Since the application configuration option defines are also present in multiple test program sources, the "#OPTION" references cannot be mapped to a unique definition. Add an anchor for each option and reference it to avoid the issues with the multiple definitions. --- rtemsspec/interface.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rtemsspec/interface.py') diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py index d2bb3bf3..d5edc0ec 100644 --- a/rtemsspec/interface.py +++ b/rtemsspec/interface.py @@ -35,8 +35,9 @@ from typing import Any, Callable, Dict, Iterator, List, NamedTuple, Optional, \ from rtemsspec.content import CContent, CInclude, enabled_by_to_exp, \ ExpressionMapper, forward_declaration, get_value_compound, \ get_value_double_colon, get_value_doxygen_function, \ - get_value_doxygen_group, get_value_forward_declaration, get_value_hash, \ - get_value_params, get_value_plural, to_camel_case + get_value_doxygen_group, get_value_doxygen_ref, \ + get_value_forward_declaration, get_value_hash, get_value_params, \ + get_value_plural, to_camel_case from rtemsspec.items import Item, ItemCache, ItemGetValueMap, ItemMapper ItemMap = Dict[str, Item] @@ -87,7 +88,7 @@ class _InterfaceMapper(ItemMapper): self.add_get_value("interface/variable/doc:/name", get_value_hash) for opt in ["feature-enable", "feature", "initializer", "integer"]: name = f"interface/appl-config-option/{opt}/doc:/name" - self.add_get_value(name, get_value_hash) + self.add_get_value(name, get_value_doxygen_ref) self.add_get_value("interface/unspecified-function/doc:/name", get_value_doxygen_function) -- cgit v1.2.3