]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl.h
Hand-code the normalized specifier ordering.
[cdecl99.git] / src / cdecl.h
index 695024f5e8d63b9b9ada57e3b2db4b3170b89770..11e0099ee28f5c47c3905a9413043b95e50116f3 100644 (file)
@@ -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;