summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajveer Singh Bharadwaj <rajveer.developer@icloud.com>2024-04-23 23:58:09 +0530
committerGitHub <noreply@github.com>2024-04-23 11:28:09 -0700
commit3ae10fde39419d7c985b9fff210ed44b699e438c (patch)
tree057674915857a68fb92b641b497476bbea2227c2
parent1d140348733d5454c2dc72b3f4f16404981f2102 (diff)
[libc] Generate docs for `setjmp.h` (#89542)
Resolves #88065 Added macros and functions.
-rw-r--r--libc/docs/index.rst1
-rw-r--r--libc/docs/setjmp.rst16
-rw-r--r--libc/utils/docgen/setjmp.json15
3 files changed, 32 insertions, 0 deletions
diff --git a/libc/docs/index.rst b/libc/docs/index.rst
index f71920b058d8..5b96987e0aad 100644
--- a/libc/docs/index.rst
+++ b/libc/docs/index.rst
@@ -72,6 +72,7 @@ stages there is no ABI stability in any form.
ctype
signal
threads
+ setjmp
.. toctree::
:hidden:
diff --git a/libc/docs/setjmp.rst b/libc/docs/setjmp.rst
new file mode 100644
index 000000000000..d9188dfe1d5e
--- /dev/null
+++ b/libc/docs/setjmp.rst
@@ -0,0 +1,16 @@
+.. include:: check.rst
+
+setjmp.h Functions
+==================
+
+.. list-table::
+ :widths: auto
+ :align: center
+ :header-rows: 1
+
+ * - Function
+ - Implemented
+ - Standard
+ * - longjmp
+ - |check|
+ - 7.13.2.1
diff --git a/libc/utils/docgen/setjmp.json b/libc/utils/docgen/setjmp.json
new file mode 100644
index 000000000000..38d4af568926
--- /dev/null
+++ b/libc/utils/docgen/setjmp.json
@@ -0,0 +1,15 @@
+{
+ "macros": {
+ "__STDC_VERSION_SETJMP_H__": {
+ "defined": "7.13.2"
+ },
+ "setjmp": {
+ "defined": "7.13.1.1"
+ }
+ },
+ "functions": {
+ "longjmp": {
+ "defined": "7.13.2.1"
+ }
+ }
+}