toolchain: replace ifc interface compiler with xpcg
xpcg is used to generate xpc interfaces
This commit is contained in:
26
toolchain/xpcg/type.c
Normal file
26
toolchain/xpcg/type.c
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user