X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/ee7baf59f18b5bc5be9abed0b2be90f407ee497d..568c39ad1836f8cf87ccc1b2ba577b6f6ba37e25:/src/cdecl.h diff --git a/src/cdecl.h b/src/cdecl.h index 1493d4d..695024f 100644 --- a/src/cdecl.h +++ b/src/cdecl.h @@ -107,6 +107,14 @@ static inline int cdecl_spec_kind(struct cdecl_declspec *spec) return spec->type & ~(CDECL_SPEC_TYPE-1u); } +static inline _Bool cdecl_is_abstract(struct cdecl_declarator *d) +{ + while (d->child) + d = d->child; + + return d->type != CDECL_DECL_IDENT; +} + /* Error handling. */ enum { CDECL_ENOMEM,