toolchain: replace ifc interface compiler with xpcg

xpcg is used to generate xpc interfaces
This commit is contained in:
2026-03-10 19:12:14 +00:00
parent 3a06c18e10
commit 26a49162e6
24 changed files with 427 additions and 878 deletions

26
toolchain/xpcg/type.c Normal file
View File

@@ -0,0 +1,26 @@
#include "type.h"
#include <stdio.h>
void type_print(const struct type *ty)
{
switch (ty->ty_id) {
case TYPE_INT:
printf("int");
break;
case TYPE_STRING:
printf("string");
break;
case TYPE_SIZE:
printf("size");
break;
case TYPE_BUFFER:
printf("buffer");
break;
case TYPE_HANDLE:
printf("handle");
break;
default:
break;
}
}