Lines Matching refs:setby

27 		      int setby, int do_alloc);
34 static int verify_type_and_range(ESL_GETOPTS *g, int i, char *val, int setby);
76 g->setby = NULL; in esl_getopts_Create()
110 ESL_ALLOC(g->setby, sizeof(int) * g->nopts); in esl_getopts_Create()
116 g->setby[i] = eslARG_SETBY_DEFAULT; in esl_getopts_Create()
255 g->setby[i] = eslARG_SETBY_DEFAULT; in esl_getopts_Reuse()
297 if (g->setby != NULL) free(g->setby); in esl_getopts_Destroy()
335 if (g->setby[i] == eslARG_SETBY_DEFAULT) fprintf(ofp, "(default) "); in esl_getopts_Dump()
336 else if (g->setby[i] == eslARG_SETBY_CMDLINE) fprintf(ofp, "cmdline "); in esl_getopts_Dump()
337 else if (g->setby[i] == eslARG_SETBY_ENV) fprintf(ofp, "environ "); in esl_getopts_Dump()
338 else if (g->setby[i] >= eslARG_SETBY_CFGFILE) fprintf(ofp, "cfgfile "); in esl_getopts_Dump()
648 if (g->setby[i] != eslARG_SETBY_DEFAULT && g->val[i] != NULL) in esl_opt_VerifyConfig()
656 if (g->setby[i] >= eslARG_SETBY_CFGFILE) in esl_opt_VerifyConfig()
658 g->opt[i].name, g->setby[i]-2, g->opt[i].required_opts); in esl_opt_VerifyConfig()
659 else if (g->setby[i] == eslARG_SETBY_ENV) in esl_opt_VerifyConfig()
676 if (g->setby[i] != eslARG_SETBY_DEFAULT && g->val[i] != NULL) in esl_opt_VerifyConfig()
682 … if (incompati != i && (g->setby[incompati] != eslARG_SETBY_DEFAULT && g->val[incompati] != NULL)) in esl_opt_VerifyConfig()
684 if (g->setby[i] >= eslARG_SETBY_CFGFILE) in esl_opt_VerifyConfig()
686 g->opt[i].name, g->setby[i]-2, g->opt[i].incompat_opts); in esl_opt_VerifyConfig()
688 else if (g->setby[i] == eslARG_SETBY_ENV) in esl_opt_VerifyConfig()
750 if (g->setby[i] != eslARG_SETBY_DEFAULT) in esl_opt_SpoofCmdline()
801 if (g->setby[opti] == eslARG_SETBY_DEFAULT) return TRUE; in esl_opt_IsDefault()
881 return g->setby[opti]; in esl_opt_GetSetter()
1174 set_option(ESL_GETOPTS *g, int opti, char *optarg, int setby, int do_alloc) in set_option() argument
1183 if (setby == eslARG_SETBY_DEFAULT) where = "as default"; in set_option()
1184 else if (setby == eslARG_SETBY_CMDLINE) where = "on cmdline"; in set_option()
1185 else if (setby == eslARG_SETBY_ENV) where = "in env"; in set_option()
1186 else if (setby >= eslARG_SETBY_CFGFILE) where = "in cfgfile"; in set_option()
1189 if (g->setby[opti] == setby) in set_option()
1196 if (verify_type_and_range(g, opti, optarg, setby) != eslOK) return eslESYNTAX; in set_option()
1201 g->setby[opti] = setby; in set_option()
1244 if (g->setby[togi] == setby) in set_option()
1249 g->setby[togi] = setby; /* indirectly, but still */ in set_option()
1572 verify_type_and_range(ESL_GETOPTS *g, int i, char *val, int setby) in verify_type_and_range() argument
1576 if (setby == eslARG_SETBY_DEFAULT) where = "as default"; in verify_type_and_range()
1577 else if (setby == eslARG_SETBY_CMDLINE) where = "on cmdline"; in verify_type_and_range()
1578 else if (setby == eslARG_SETBY_ENV) where = "in env"; in verify_type_and_range()
1579 else if (setby >= eslARG_SETBY_CFGFILE) where = "in cfgfile"; in verify_type_and_range()
1585 if (setby == eslARG_SETBY_DEFAULT && val == NULL) in verify_type_and_range()