projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2b0d50
)
Extend statistics to all fields
author
erg
<devnull@localhost>
Wed, 26 Jan 2011 23:52:19 +0000
(23:52 +0000)
committer
erg
<devnull@localhost>
Wed, 26 Jan 2011 23:52:19 +0000
(23:52 +0000)
lib/xdot/xdot.c
patch
|
blob
|
history
lib/xdot/xdot.h
patch
|
blob
|
history
diff --git
a/lib/xdot/xdot.c
b/lib/xdot/xdot.c
index 040d4b6677c54a0dde44381b69a1c8a3b3b652bf..14dcfbb70b37dbc3c7a64f0679431f6fa6eb9517 100755
(executable)
--- a/
lib/xdot/xdot.c
+++ b/
lib/xdot/xdot.c
@@
-701,6
+701,19
@@
int statXDot (xdot* x, xdot_stats* sp)
case xd_text:
sp->n_text++;
break;
+ case xd_image:
+ sp->n_image++;
+ break;
+ case xd_fill_color:
+ case xd_pen_color:
+ sp->n_color++;
+ break;
+ case xd_font:
+ sp->n_font++;
+ break;
+ case xd_style:
+ sp->n_style++;
+ break;
default :
break;
}
diff --git
a/lib/xdot/xdot.h
b/lib/xdot/xdot.h
index 23eb5bd2fdf237e8c576186cc3e47aa46670964e..08f26c68bf8df5e0b7a0e925e813ef8977b70ba1 100755
(executable)
--- a/
lib/xdot/xdot.h
+++ b/
lib/xdot/xdot.h
@@
-108,6
+108,10
@@
typedef struct {
int n_bezier;
int n_bezier_pts;
int n_text;
+ int n_font;
+ int n_style;
+ int n_color;
+ int n_image;
} xdot_stats;
/* ops are indexed by xop_kind */