toolchain: xpcg: add an offset type for signed offset values

This commit is contained in:
2026-03-21 10:33:01 +00:00
parent 08a9627548
commit 68ae449731
3 changed files with 31 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ const struct type *ctx_get_type(struct ctx *ctx, const char *name)
return ctx_get_builtin_type(ctx, TYPE_SIZE);
}
if (!strcmp(name, "offset")) {
return ctx_get_builtin_type(ctx, TYPE_OFFSET);
}
if (!strcmp(name, "buffer")) {
return ctx_get_builtin_type(ctx, TYPE_BUFFER);
}