X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/8c4c37ecd2f04402c23b18c2e0a25f7bcc5bdce3..0c61f9637a469ac7a28b5a329551b03e6ad14d62:/src/explain.c
diff --git a/src/explain.c b/src/explain.c
index 41d4f7b..0f6b787 100644
--- a/src/explain.c
+++ b/src/explain.c
@@ -1,6 +1,6 @@
/*
* Render C declarations as English.
- * Copyright © 2011 Nick Bowler
+ * Copyright © 2011, 2021 Nick Bowler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +15,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+
+#include
#include
#include
#include
@@ -22,7 +24,7 @@
#include
#include "cdecl.h"
-#include "output.h"
+#include "cdecl-internal.h"
/*
* Renders the start of the thing being declared. If top is true, print
@@ -48,6 +50,8 @@ explain_prologue(char *buf, size_t n, struct cdecl_declarator *d, bool top)
d = d->child;
}
+
+ assert(0);
}
static size_t
@@ -55,7 +59,7 @@ explain_pointer(char *buf, size_t n, struct cdecl_pointer *p)
{
size_t ret = 0, rc;
- rc = cdecl__explain_qualifiers(buf, n, p->qualifiers);
+ rc = cdecl__explain_specs(buf, n, p->qualifiers, CDECL_SPEC_QUAL);
ret += cdecl__advance(&buf, &n, rc);
return ret + snprintf(buf, n, "pointer to");