[Redbutton-devel] SF.net SVN: redbutton: [412] redbutton-author/trunk/mhegc.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-09-22 16:57:04
|
Revision: 412
http://redbutton.svn.sourceforge.net/redbutton/?rev=412&view=rev
Author: skilvington
Date: 2007-09-22 09:57:02 -0700 (Sat, 22 Sep 2007)
Log Message:
-----------
don't print too many {}'s
Modified Paths:
--------------
redbutton-author/trunk/mhegc.c
Modified: redbutton-author/trunk/mhegc.c
===================================================================
--- redbutton-author/trunk/mhegc.c 2007-09-22 16:55:38 UTC (rev 411)
+++ redbutton-author/trunk/mhegc.c 2007-09-22 16:57:02 UTC (rev 412)
@@ -124,7 +124,7 @@
{
print_indent(indent);
fprintf(stderr, "[%s %d]\n", asn1class_name(n->asn1class), n->asn1tag);
- if(show_kids)
+ if(show_kids && n->children)
{
print_indent(indent);
fprintf(stderr, "{\n");
@@ -138,7 +138,7 @@
for(kid=n->children; kid; kid=kid->siblings)
print_node(kid, indent);
- if(show_node && show_kids)
+ if(show_node && show_kids && n->children)
{
indent --;
print_indent(indent);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|