specware 1.3.2__tar.gz → 1.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {specware-1.3.2 → specware-1.3.4}/PKG-INFO +1 -1
- {specware-1.3.2 → specware-1.3.4}/pyproject.toml +1 -1
- {specware-1.3.2 → specware-1.3.4}/src/specware/contentc.py +1 -1
- {specware-1.3.2 → specware-1.3.4}/src/specware/interfacemapper.py +6 -1
- {specware-1.3.2 → specware-1.3.4}/src/specware/transitionmap.py +5 -2
- {specware-1.3.2 → specware-1.3.4}/README.md +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/__init__.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/applconfig.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/build.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/cliexport.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/cliexportheader.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/clifind.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/cliview.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/interface.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/interfacedoc.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/py.typed +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/rtems.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/spec.pickle +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/util.py +0 -0
- {specware-1.3.2 → specware-1.3.4}/src/specware/validation.py +0 -0
|
@@ -573,7 +573,7 @@ def get_value_double_colon(ctx: ItemGetValueContext) -> Any:
|
|
|
573
573
|
|
|
574
574
|
def get_value_header_file(ctx: ItemGetValueContext) -> Any:
|
|
575
575
|
""" Get the value formatted as a header file. """
|
|
576
|
-
return f"
|
|
576
|
+
return f"`<{ctx.value[ctx.key]}>`"
|
|
577
577
|
|
|
578
578
|
|
|
579
579
|
def get_value_hash(ctx: ItemGetValueContext) -> Any:
|
|
@@ -110,6 +110,11 @@ def get_value_sphinx_param(ctx: ItemGetValueContext) -> str:
|
|
|
110
110
|
return f"``{sanitize_name(ctx.value[ctx.key])}``"
|
|
111
111
|
|
|
112
112
|
|
|
113
|
+
def get_value_sphinx_header_file(ctx: ItemGetValueContext) -> str:
|
|
114
|
+
""" Gets a header file. """
|
|
115
|
+
return f"``<{ctx.value[ctx.key]}>``"
|
|
116
|
+
|
|
117
|
+
|
|
113
118
|
class SphinxInterfaceMapper(SphinxMapper):
|
|
114
119
|
""" Sphinx item mapper for the interface documentation. """
|
|
115
120
|
|
|
@@ -135,7 +140,7 @@ class SphinxInterfaceMapper(SphinxMapper):
|
|
|
135
140
|
get_value_sphinx_param)
|
|
136
141
|
self.add_get_value("interface/group:/name", self._get_group)
|
|
137
142
|
self.add_get_value("interface/header-file:/path",
|
|
138
|
-
|
|
143
|
+
get_value_sphinx_header_file)
|
|
139
144
|
self.add_get_value("interface/macro:/name", self._get_function)
|
|
140
145
|
self.add_get_value("interface/macro:/params/name",
|
|
141
146
|
get_value_sphinx_param)
|
|
@@ -714,7 +714,10 @@ class TransitionMap:
|
|
|
714
714
|
enumerators.append(self._get_entry(ident, transitions[0]))
|
|
715
715
|
enumerators.append("#endif")
|
|
716
716
|
entries.append("\n".join(enumerators))
|
|
717
|
-
content.add([
|
|
717
|
+
content.add([
|
|
718
|
+
"/* clang-format off */", "", f"static const {ident}_Entry",
|
|
719
|
+
f"{ident}_Entries[] = {{"
|
|
720
|
+
])
|
|
718
721
|
entries[-1] = entries[-1].replace("},", "}")
|
|
719
722
|
content.append(entries)
|
|
720
723
|
integer_type = get_integer_type(len(self._entries))
|
|
@@ -728,7 +731,7 @@ class TransitionMap:
|
|
|
728
731
|
wrapper.subsequent_indent = " "
|
|
729
732
|
wrapper.width = 79
|
|
730
733
|
content.append(wrapper.wrap(text))
|
|
731
|
-
content.append("};")
|
|
734
|
+
content.append(["};", "", "/* clang-format on */"])
|
|
732
735
|
|
|
733
736
|
def get_post_entry_member(self, co_idx: int) -> str:
|
|
734
737
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|