Extend statistics to all fields
authorerg <devnull@localhost>
Wed, 26 Jan 2011 23:52:19 +0000 (23:52 +0000)
committererg <devnull@localhost>
Wed, 26 Jan 2011 23:52:19 +0000 (23:52 +0000)
lib/xdot/xdot.c
lib/xdot/xdot.h

index 040d4b6677c54a0dde44381b69a1c8a3b3b652bf..14dcfbb70b37dbc3c7a64f0679431f6fa6eb9517 100755 (executable)
@@ -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;
        }
index 23eb5bd2fdf237e8c576186cc3e47aa46670964e..08f26c68bf8df5e0b7a0e925e813ef8977b70ba1 100755 (executable)
@@ -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 */