From cae849a9450f6406094a2b00b3f7b98dc1559c8d Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 20 Feb 2006 19:24:10 +0000 Subject: [PATCH] Fix function typedef documentation generation. --- mxmldoc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mxmldoc.c b/mxmldoc.c index 4710c12..6b13661 100644 --- a/mxmldoc.c +++ b/mxmldoc.c @@ -4,7 +4,7 @@ * Documentation generator using Mini-XML, a small XML-like file parsing * library. * - * Copyright 2003-2005 by Michael Sweet. + * Copyright 2003-2006 by Michael Sweet. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -1129,9 +1129,12 @@ scan_file(const char *filename, /* I - Filename */ typedefnode = mxmlNewElement(MXML_NO_PARENT, "typedef"); - for (node = type->child->next->next; node; node = node->next) - if (strcmp(node->value.text.string, "(") && - strcmp(node->value.text.string, "*")) + for (node = type->child->next; node; node = node->next) + if (!strcmp(node->value.text.string, "(")) + break; + + for (node = node->next; node; node = node->next) + if (strcmp(node->value.text.string, "*")) break; if (node)