mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-08 05:29:58 +00:00
More fixes to support 'extern "C" {' and other assorted fun.
This commit is contained in:
parent
52c8493cdb
commit
417206e811
14
mxmldoc.c
14
mxmldoc.c
@ -1,6 +1,5 @@
|
||||
//#define DEBUG 1
|
||||
/*
|
||||
* "$Id: mxmldoc.c,v 1.20 2003/12/03 22:17:57 mike Exp $"
|
||||
* "$Id: mxmldoc.c,v 1.21 2003/12/03 22:22:49 mike Exp $"
|
||||
*
|
||||
* Documentation generator using mini-XML, a small XML-like file parsing
|
||||
* library.
|
||||
@ -608,6 +607,15 @@ scan_file(const char *filename, /* I - Filename */
|
||||
mxmlAdd(description, MXML_ADD_AFTER, MXML_ADD_TO_PARENT,
|
||||
comment->last_child);
|
||||
}
|
||||
else if (type && type->child &&
|
||||
!strcmp(type->child->value.text.string, "extern"))
|
||||
{
|
||||
if (scan_file(filename, fp, tree))
|
||||
{
|
||||
mxmlDelete(comment);
|
||||
return (-1);
|
||||
}
|
||||
}
|
||||
else if (type)
|
||||
{
|
||||
mxmlDelete(type);
|
||||
@ -2140,5 +2148,5 @@ ws_cb(mxml_node_t *node, /* I - Element node */
|
||||
|
||||
|
||||
/*
|
||||
* End of "$Id: mxmldoc.c,v 1.20 2003/12/03 22:17:57 mike Exp $".
|
||||
* End of "$Id: mxmldoc.c,v 1.21 2003/12/03 22:22:49 mike Exp $".
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user