Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libc/docs/fenv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Macros
:align: center
:header-rows: 1

* - Function
* - Macro
- Implemented
- C23 Standard Section
- POSIX.1-2017 Standard Section
Expand Down
33 changes: 30 additions & 3 deletions libc/docs/setjmp.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
.. include:: check.rst

setjmp.h Functions
==================
========
setjmp.h
========

Macros
======

.. list-table::
:widths: auto
:align: center
:header-rows: 1

* - Macro
- Implemented
- C23 Standard Section
- POSIX.1-2017 Standard Section
* - __STDC_VERSION_SETJMP_H__
-
- 7.13.2
-

Functions
=========

.. list-table::
:widths: auto
Expand All @@ -10,7 +31,13 @@ setjmp.h Functions

* - Function
- Implemented
- Standard
- C23 Standard Section
- POSIX.1-2017 Standard Section
* - longjmp
- |check|
- 7.13.2.1
-
* - setjmp
- |check|
- 7.13.1.1
-
2 changes: 1 addition & 1 deletion libc/docs/signal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Macros
:align: center
:header-rows: 1

* - Function
* - Macro
- Implemented
- C23 Standard Section
- POSIX.1-2017 Standard Section
Expand Down
2 changes: 1 addition & 1 deletion libc/docs/stdbit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Macros
:align: center
:header-rows: 1

* - Function
* - Macro
- Implemented
- C23 Standard Section
- POSIX.1-2017 Standard Section
Expand Down
2 changes: 1 addition & 1 deletion libc/docs/threads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Macros
:align: center
:header-rows: 1

* - Function
* - Macro
- Implemented
- C23 Standard Section
- POSIX.1-2017 Standard Section
Expand Down
8 changes: 4 additions & 4 deletions libc/utils/docgen/docgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ def load_api(header: Header) -> Dict:
return json.loads(api)


def print_tbl_dir():
def print_tbl_dir(name):
print(
f"""
.. list-table::
:widths: auto
:align: center
:header-rows: 1

* - Function
* - {name}
- Implemented
- C23 Standard Section
- POSIX.1-2017 Standard Section"""
Expand All @@ -112,7 +112,7 @@ def print_functions_rst(header: Header, functions: Dict):
print(tbl_hdr)
print("=" * len(tbl_hdr))

print_tbl_dir()
print_tbl_dir("Function")

for name in sorted(functions.keys()):
print(f" * - {name}")
Expand All @@ -138,7 +138,7 @@ def print_macros_rst(header: Header, macros: Dict):
print(tbl_hdr)
print("=" * len(tbl_hdr))

print_tbl_dir()
print_tbl_dir("Macro")

for name in sorted(macros.keys()):
print(f" * - {name}")
Expand Down
10 changes: 5 additions & 5 deletions libc/utils/docgen/setjmp.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"macros": {
"__STDC_VERSION_SETJMP_H__": {
"defined": "7.13.2"
},
"setjmp": {
"defined": "7.13.1.1"
"c-definition": "7.13.2"
}
},
"functions": {
"setjmp": {
"c-definition": "7.13.1.1"
},
"longjmp": {
"defined": "7.13.2.1"
"c-definition": "7.13.2.1"
}
}
}
Loading