]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl.h
Initial support for function declarators.
[cdecl99.git] / src / cdecl.h
index ffc01e36002194b72139d13147e922f54ff79ac7..3217f9e46f6d1d267490cc9ebc7112f1a641459a 100644 (file)
@@ -62,6 +62,7 @@ enum {
        CDECL_DECL_IDENT,
        CDECL_DECL_POINTER,
        CDECL_DECL_ARRAY,
+       CDECL_DECL_FUNCTION,
 };
 
 struct cdecl {
@@ -85,6 +86,10 @@ struct cdecl {
                                char *vla;
                                uintmax_t length;
                        } array;
+                       struct cdecl_function {
+                               struct cdecl *parameters;
+                               _Bool variadic;
+                       } function;
                } u;
        } *declarators;
 };