From e2690e1cce87be317dd8169e93a59318b42e3b82 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 26 Jun 2024 00:45:11 +0200 Subject: Implemented dumb database for standard C headers --- db/c.lua | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 db/c.lua (limited to 'db/c.lua') diff --git a/db/c.lua b/db/c.lua new file mode 100644 index 0000000..adc6bd7 --- /dev/null +++ b/db/c.lua @@ -0,0 +1,55 @@ +aliases "ISO/IEC 9899:1990" {"ANSI X3.159-1989", "C89", "C90", "ANSI C"} +aliases "ISO/IEC 9899:1990/Amd 1:1995" {"C95"} +aliases "ISO/IEC 9899:1999" {"C99"} +aliases "ISO/IEC 9899:2011" {"C11"} +aliases "ISO/IEC 9899:2018" {"C17"} +aliases "ISO/IEC 9899:2024" {"C23", "C"} +headers "C89" { + "assert.h", + "ctype.h", + "errno.h", + "float.h", + "limits.h", + "locale.h", + "math.h", + "setjmp.h", + "signal.h", + "stdarg.h", + "stddef.h", + "stdio.h", + "stdlib.h", + "string.h", + "time.h", +} +headers "C95" { + include "C89", + "iso646.h", + "wchar.h", + "wctype.h", +} +headers "C99" { + include "C95", + "complex.h", + "fenv.h", + "inttypes.h", + "stdbool.h", + "stdint.h", + "tgmath.h", +} +headers "C11" { + include "C99", + "stdalign.h", + "stdatomic.h", + "stdnoreturn.h", + "threads.h", + "uchar.h", +} +headers "C17" { + include "C11", +} +headers "C23" { + include "C17", + -- remove "stdnoreturn.h", -- deprecated + "stdbit.h", + "stdckdint.h", +} -- cgit v1.1