Skip to content

Commit 5e85f20

Browse files
committed
BCTYPES: add void ptr type constant
1 parent 340d9e5 commit 5e85f20

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

chb/bctypes/TypeConstraint.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
| TyAscii "a" 1 0
5757
| TyExtendedAscii "ac" 1 0
5858
| TyZero "z" 1 0
59+
| TyVoidPtr "vp" 1 0
5960
| TyTInt of ikind_t "ti" 2 0
6061
| TyTFloat of fkind_t "tf" 2 0
6162
| TyTUnknown "u" 1 0
@@ -626,6 +627,19 @@ def __str__(self) -> str:
626627
return "t_zero"
627628

628629

630+
@tcdregistry.register_tag("vp", TypeConstant)
631+
class TypeConstantVoidPtr(TypeConstant):
632+
633+
def __init__(
634+
self,
635+
tcd: "TypeConstraintDictionary",
636+
ixval: IndexedTableValue) -> None:
637+
TypeConstant.__init__(self, tcd, ixval)
638+
639+
def __str__(self) -> str:
640+
return "t_voidptr"
641+
642+
629643
@tcdregistry.register_tag("ti", TypeConstant)
630644
class TypeConstantTInt(TypeConstant):
631645

0 commit comments

Comments
 (0)