]> granicus.if.org Git - graphviz/commitdiff
Allow reset error count
authorerg <devnull@localhost>
Thu, 3 Mar 2011 01:09:42 +0000 (01:09 +0000)
committererg <devnull@localhost>
Thu, 3 Mar 2011 01:09:42 +0000 (01:09 +0000)
lib/cgraph/agerror.c
lib/cgraph/cgraph.h

index 047c42aaeab31394e716641a4858f5548b08216f..43af484770e091954db81af297555a50dbf1283e 100644 (file)
@@ -164,3 +164,11 @@ void agwarningf(char *fmt, ...)
 }
 
 int agerrors() { return agerrcnt; }
+
+int agreseterrors() 
+{ 
+    int rc = agerrcnt;
+    agerrcnt = 0;
+    return rc; 
+}
+
index be7aa027ac51d85dd7c1eb7c633f3238295c6857..ace5df6f4f694e7b334e4cedc6392dcdc8449883 100644 (file)
@@ -395,6 +395,7 @@ extern int agerr(agerrlevel_t level, char *fmt, ...);
 extern void agerrorf(char *fmt, ...);
 extern void agwarningf(char *fmt, ...);
 extern int agerrors(void);
+extern int agreseterrors(void);
 extern agusererrf agseterrf(agusererrf);
 
 /* data access macros */