From 6b2e4cc878a3f9a9a2a6f7647aadb01839a84346 Mon Sep 17 00:00:00 2001 From: Rajveer Date: Sun, 21 Apr 2024 18:23:49 +0530 Subject: [PATCH] [libc] Generate docs for `setjmp.h` Resolves #88065 --- libc/docs/index.rst | 1 + libc/docs/setjmp.rst | 16 ++++++++++++++++ libc/utils/docgen/setjmp.json | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 libc/docs/setjmp.rst create mode 100644 libc/utils/docgen/setjmp.json diff --git a/libc/docs/index.rst b/libc/docs/index.rst index f71920b058d83..5b96987e0aada 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 0000000000000..d9188dfe1d5e4 --- /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 0000000000000..38d4af568926a --- /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" + } + } +}