34 neato_extra_args(
GVC_t *
gvc,
int argc,
char** argv)
41 for (i = 1; i < argc; i++) {
43 if (arg && *arg ==
'-') {
50 agerr (
AGERR,
"Invalid parameter \"%s\" for -n flag\n", arg+2);
59 if (*p != arg) *p = arg;
66 if (*p != arg) *p = arg;
79 memtest_extra_args(
GVC_t *gvc,
int argc,
char** argv)
86 for (i = 1; i < argc; i++) {
88 if (arg && *arg ==
'-') {
94 agerr (
AGERR,
"Invalid parameter \"%s\" for -m flag\n", arg+2);
103 if (*p != arg) *p = arg;
110 if (*p != arg) *p = arg;
123 config_extra_args(
GVC_t *gvc,
int argc,
char** argv)
130 for (i = 1; i < argc; i++) {
132 if (arg && *arg ==
'-') {
147 if (*p != arg) *p = arg;
154 if (*p != arg) *p = arg;
167 setDouble (
double* v,
char* arg)
174 agerr (
AGERR,
"bad value in flag -L%s - ignored\n", arg-1);
186 setInt (
int* v,
char* arg)
191 i = (
int)strtol(arg,&p,10);
193 agerr (
AGERR,
"bad value in flag -L%s - ignored\n", arg-1);
204 setFDPAttr (
char* arg)
231 agerr (
AGWARN,
"unknown flag -L%s - ignored\n", arg-1);
243 fdp_extra_args (
GVC_t *gvc,
int argc,
char** argv)
250 for (i = 1; i < argc; i++) {
252 if (arg && (*arg ==
'-') && (*(arg+1) ==
'L')) {
253 if (setFDPAttr (arg+2)) {
260 if (*p != arg) *p = arg;
275 if ((argc = neato_extra_args(gvc, argc, argv)) < 0)
277 if ((argc = fdp_extra_args(gvc, argc, argv)) < 0)
279 if ((argc = memtest_extra_args(gvc, argc, argv)) < 0)
281 if ((argc = config_extra_args(gvc, argc, argv)) < 0)
int gvParseArgs(GVC_t *gvc, int argc, char **argv)
struct fdpParms_s * fdp_parms
boolean auto_outfile_names
int agerr(agerrlevel_t level, const char *fmt,...)
void gvplugin_write_status(GVC_t *gvc)
EXTERN unsigned char Reduce
EXTERN unsigned char Verbose