]> granicus.if.org Git - graphviz/commitdiff
ccomps: make all internal variables static
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Mar 2022 19:20:02 +0000 (11:20 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 13 Mar 2022 20:06:42 +0000 (13:06 -0700)
cmd/tools/ccomps.c

index 6c71efb79fc78f002cac72300949df1f2a67a900..891b50b9b07336430de32271a663665502d8f327 100644 (file)
@@ -94,24 +94,24 @@ typedef struct {
 #define BY_INDEX 1
 #define BY_SIZE  2
 
-char* Cmd;
-char **Files;
-int verbose;
-int printMode = INTERNAL;
-int useClusters = 0;
-int doEdges = 1;               /* induce edges */
-int doAll = 1;                 /* induce subgraphs */
-char *suffix = 0;
-char *outfile = 0;
-char *path = 0;
-int sufcnt = 0;
-int sorted = 0;
-int sortIndex = 0;
-int sortFinal;
-int x_index = -1;
-int x_final = -1;  /* require 0 <= x_index <= x_final or x_final= -1 */ 
-int x_mode;
-char *x_node;
+static char* Cmd;
+static char **Files;
+static int verbose;
+static int printMode = INTERNAL;
+static int useClusters = 0;
+static int doEdges = 1; // induce edges
+static int doAll = 1; // induce subgraphs
+static char *suffix = 0;
+static char *outfile = 0;
+static char *path = 0;
+static int sufcnt = 0;
+static int sorted = 0;
+static int sortIndex = 0;
+static int sortFinal;
+static int x_index = -1;
+static int x_final = -1; // require 0 <= x_index <= x_final or x_final= -1
+static int x_mode;
+static char *x_node;
 
 static char *useString =
     "Usage: ccomps [-svenCx?] [-X[#%]s[-f]] [-o<out template>] <files>\n\