Add an implementation of base types.

These will hold information about a type such as (possibly) the
interfaces it implements and the parameters it accepts.
This commit is contained in:
2018-04-10 23:37:59 -07:00
parent 0cfc1df02c
commit d146b71e56
3 changed files with 76 additions and 1 deletions

10
src/basetype.c Normal file
View File

@@ -0,0 +1,10 @@
#include "basetype.h"
#include "util.h"
#include <stdlib.h>
void libab_basetype_init(libab_basetype* basetype,
int n, const libab_basetype_param params[]) {
basetype->params = params;
basetype->count = n;
}