base: make heimqueue.h a shared header

Share heimqueue.h between base and asn1, to avoid duplication of code.
This commit is contained in:
Luke Howard
2019-12-26 21:41:29 +11:00
parent 64d5d138a9
commit d7138cfbe7
16 changed files with 86 additions and 254 deletions

View File

@@ -63,7 +63,7 @@ free_type (const char *name, const Type *t, int preserve)
case TUTCTime:
break;
case TBitString:
if (ASN1_TAILQ_EMPTY(t->members))
if (HEIM_TAILQ_EMPTY(t->members))
free_primitive("bit_string", name);
break;
case TOctetString:
@@ -83,7 +83,7 @@ free_type (const char *name, const Type *t, int preserve)
if(t->type == TChoice)
fprintf(codefile, "switch((%s)->element) {\n", name);
ASN1_TAILQ_FOREACH(m, t->members, members) {
HEIM_TAILQ_FOREACH(m, t->members, members) {
char *s;
if (m->ellipsis){