Skip to content

Commit

Permalink
Add bindings for HtSP, HtSS, HtSU (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah authored Apr 15, 2024
1 parent 1caa623 commit 438499c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,3 +454,24 @@ def bind_ht_uu(ht_uu_h: Header) -> None:
ht_uu
"""
Class(ht_uu_h, typedef="HtUU")

@threaded_header("rz_util/ht_sp.h")
def bind_ht_sp(ht_sp_h: Header) -> None:
"""
ht_sp
"""
Class(ht_sp_h, typedef="HtSP")

@threaded_header("rz_util/ht_ss.h")
def bind_ht_ss(ht_ss_h: Header) -> None:
"""
ht_ss
"""
Class(ht_ss_h, typedef="HtSS")

@threaded_header("rz_util/ht_su.h")
def bind_ht_su(ht_su_h: Header) -> None:
"""
ht_su
"""
Class(ht_su_h, typedef="HtSU")
2 changes: 1 addition & 1 deletion src/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def cursor_get_comment(cursor: Cursor, *, packed: bool = False) -> Optional[str]
warn(
f"Type comment at {stringify_location(cursor.location)} should not have pointer"
)
elif typeref_spelling in {"HtPP", "HtUP", "HtUU", "RBTree", "SdbList"}:
elif typeref_spelling in {"RBTree", "SdbList"}:
pass
else:
warn(
Expand Down

0 comments on commit 438499c

Please sign in to comment.