X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/f2f75f25ecc377fb95877449aa12314ee1385a1f..bbfdea24b2b940031e86e990bc457785dd378b58:/src/cdecl.h diff --git a/src/cdecl.h b/src/cdecl.h index 695024f..11e0099 100644 --- a/src/cdecl.h +++ b/src/cdecl.h @@ -102,12 +102,12 @@ void cdecl_free(struct cdecl *decl); size_t cdecl_explain(char *buf, size_t n, struct cdecl *decl); size_t cdecl_declare(char *buf, size_t n, struct cdecl *decl); -static inline int cdecl_spec_kind(struct cdecl_declspec *spec) +static inline int cdecl_spec_kind(const struct cdecl_declspec *spec) { return spec->type & ~(CDECL_SPEC_TYPE-1u); } -static inline _Bool cdecl_is_abstract(struct cdecl_declarator *d) +static inline _Bool cdecl_is_abstract(const struct cdecl_declarator *d) { while (d->child) d = d->child;