Skip to content

Commit 94518d1

Browse files
Sh3Rm4namirgon
authored andcommitted
Update pycparser to v2.21
This update adds stdatomic and stdalign support and other improvements.
1 parent 357d9bd commit 94518d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

gen/gen_mpy.py

+3
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def function_prototype(func):
192192
func_proto = c_ast.Typename(
193193
name=None,
194194
quals=[],
195+
align=[],
195196
type=ptr_decl)
196197

197198
return func_proto
@@ -2117,6 +2118,7 @@ def try_generate_type(type_ast):
21172118
func = c_ast.Decl(
21182119
name=func_ptr_name,
21192120
quals=[],
2121+
align=[],
21202122
storage=[],
21212123
funcspec=[],
21222124
type=type_ast.type,
@@ -2240,6 +2242,7 @@ def gen_callback_func(func, func_name = None, user_data_argument = False):
22402242
new_arg = c_ast.Decl(
22412243
name=arg_name,
22422244
quals=arg.quals,
2245+
align=[],
22432246
storage=[],
22442247
funcspec=[],
22452248
type=copy.deepcopy(arg.type),

0 commit comments

Comments
 (0)