[libc-commits] [libc] [libc] Fix hdrgen to be compatible with Python 3.8 (PR #127265)
Roland McGrath via libc-commits
libc-commits at lists.llvm.org
Fri Feb 14 13:44:46 PST 2025
https://github.com/frobtech created https://github.com/llvm/llvm-project/pull/127265
None
>From 964f78c50c65471995d854518e0ca4d5987a891e Mon Sep 17 00:00:00 2001
From: Roland McGrath <mcgrathr at google.com>
Date: Fri, 14 Feb 2025 13:43:17 -0800
Subject: [PATCH] [libc] Fix hdrgen to be compatible with Python 3.8
---
libc/utils/hdrgen/header.py | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/libc/utils/hdrgen/header.py b/libc/utils/hdrgen/header.py
index c817c02b83b75..b03535ce90bfc 100644
--- a/libc/utils/hdrgen/header.py
+++ b/libc/utils/hdrgen/header.py
@@ -23,14 +23,12 @@
"ptr",
]
-COMPILER_HEADER_TYPES = (
- {
- "bool": "<stdbool.h>",
- "va_list": "<stdarg.h>",
- }
- | {f"int{size}_t": "<stdint.h>" for size in STDINT_SIZES}
- | {f"uint{size}_t": "<stdint.h>" for size in STDINT_SIZES}
-)
+COMPILER_HEADER_TYPES = {
+ "bool": "<stdbool.h>",
+ "va_list": "<stdarg.h>",
+}
+COMPILER_HEADER_TYPES.update({f"int{size}_t": "<stdint.h>" for size in STDINT_SIZES})
+COMPILER_HEADER_TYPES.update({f"uint{size}_t": "<stdint.h>" for size in STDINT_SIZES})
class HeaderFile:
More information about the libc-commits
mailing list