Skip to content

Commit f0fc819

Browse files
committed
Fix generators & run regen
1 parent 351f0e3 commit f0fc819

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

Include/pymacro.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
#ifdef Py_GIL_DISABLED
3939
# ifndef _Py_ALIGN_AS
4040
# ifdef __cplusplus
41-
# if (__cplusplus < 201103L) && (defined(__GNUC__) || defined(__clang__)
41+
# if (__cplusplus < 201103L) \
42+
&& (defined(__GNUC__) || defined(__clang__))
4243
# define _Py_ALIGN_AS(V) __attribute__((aligned(V)))
4344
# else
4445
# define _Py_ALIGN_AS(V) alignas(V)

Programs/test_frozenmain.h

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/build/deepfreeze.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ def generate_unicode(self, name: str, s: str) -> str:
204204
with self.indent():
205205
with self.block("struct"):
206206
if ascii:
207-
self.write("PyASCIIObject _ascii;")
207+
self.write("_PyASCIIObject _ascii;")
208208
else:
209-
self.write("PyCompactUnicodeObject _compact;")
209+
self.write("_PyCompactUnicodeObject _compact;")
210210
self.write(f"{datatype} _data[{len(s)+1}];")
211211
with self.block(f"{name} =", ";"):
212212
if ascii:

Tools/build/generate_global_objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ def generate_global_strings(identifiers, strings):
264264
assert name.isidentifier(), name
265265
printer.write(f'STRUCT_FOR_ID({name})')
266266
with printer.block('struct', ' ascii[128];'):
267-
printer.write("PyASCIIObject _ascii;")
267+
printer.write("_PyASCIIObject _ascii;")
268268
printer.write("uint8_t _data[2];")
269269
with printer.block('struct', ' latin1[128];'):
270-
printer.write("PyCompactUnicodeObject _latin1;")
270+
printer.write("_PyCompactUnicodeObject _latin1;")
271271
printer.write("uint8_t _data[2];")
272272
printer.write(END)
273273
printer.write(after)

0 commit comments

Comments
 (0)