toolchain: xpcg: add an offset type for signed offset values
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user