Skip to content

Commit

Permalink
Bump to 14.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 22, 2023
1 parent 2613a38 commit cdc7098
Show file tree
Hide file tree
Showing 7 changed files with 204 additions and 171 deletions.
10 changes: 9 additions & 1 deletion ci/cbindgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ def visit_Union(self, node):
def visit_Typedef(self, node):
if not node.name or not node.name.startswith('was'):
return

# Given anonymous structs in typedefs names by default.
if isinstance(node.type, c_ast.TypeDecl):
if isinstance(node.type.type, c_ast.Struct):
if node.type.type.name is None:
if node.name.endswith('_t'):
node.type.type.name = node.name[:-2]

self.visit(node.type)
tyname = type_name(node.type)
if tyname != node.name:
Expand Down Expand Up @@ -177,7 +185,7 @@ def type_name(ty, ptr=False, typing=False):
elif ty.names[0] == "int":
return "int" if typing else "c_int"
# ctypes values can't stand as typedefs, so just use the pointer type here
elif typing and 'func_callback' in ty.names[0]:
elif typing and 'callback_t' in ty.names[0]:
return "ctypes._Pointer"
elif typing and ('size' in ty.names[0] or 'pages' in ty.names[0]):
return "int"
Expand Down
2 changes: 1 addition & 1 deletion ci/download-wasmtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import zipfile
from pathlib import Path

WASMTIME_VERSION = "v13.0.0"
WASMTIME_VERSION = "v14.0.0"


def main(platform, arch):
Expand Down
Loading

0 comments on commit cdc7098

Please sign in to comment.