implement null terminated pointers

This commit is contained in:
Andrew Kelley
2019-11-14 03:26:33 -05:00
parent e3404e3c78
commit 1aa978f32e
10 changed files with 75 additions and 3 deletions

View File

@@ -992,6 +992,10 @@ static void anal_dump_type(AnalDumpCtx *ctx, ZigType *ty) {
jw_object_field(jw, "len");
jw_int(jw, 3);
break;
case PtrLenNull:
jw_object_field(jw, "len");
jw_int(jw, 4);
break;
}
anal_dump_pointer_attrs(ctx, ty);
break;