arg = argv[i];
if (arg && *arg == '-') {
switch (arg[1]) {
- case 'm' : MemTest = TRUE; break;
+ case 'm' :
+ if (arg[2]) {
+ MemTest = atoi(arg+2);
+ if (MemTest <= 0) {
+ fprintf (stderr, "Invalid parameter \"%s\" for -m flag\n", arg+2);
+ dotneato_usage (1);
+ }
+ }
+ else MemTest = -1;
+ break;
default :
cnt++;
if (*p != arg) *p = arg;
EXTERN char *Gvimagepath; /* Per-graph path of files allowed in image attributes (also ps libs) */
EXTERN unsigned char Verbose;
- EXTERN boolean Reduce, MemTest;
+ EXTERN boolean Reduce;
+ EXTERN int MemTest;
EXTERN char *HTTPServerEnVar;
EXTERN char *Output_file_name;
EXTERN int graphviz_errors;
-LC<v> - Set overlap expansion factor to v\n\
-LT[*]<v> - Set temperature (temperature factor) to v\n";
-static char *memtestFlags = "(additional options for memtest) [-m]\n";
+static char *memtestFlags = "(additional options for memtest) [-m<v>]\n";
static char *memtestItems = "\n\
- -m - Memory test (Observe no growth with top. Kill when done.)\n";
+ -m - Memory test (Observe no growth with top. Kill when done.)\n\
+ -m[v] - Memory test - v iterations.\n";
static char *configFlags = "(additional options for config) [-cv]\n";
static char *configItems = "\n\