Lines Matching refs:option
108 setattr(struct figpar_config *option, uint32_t line __unused, in setattr() argument
116 if (option == NULL) { in setattr()
123 if (option->value.str == NULL) { in setattr()
124 if ((option->value.str = malloc(STR_BUFSIZE)) == NULL) in setattr()
137 snprintf(option->value.str, STR_BUFSIZE, "%s", val); in setattr()
195 sprintf(option->value.str, "%s", attrbuf); in setattr()
204 setbool(struct figpar_config *option, uint32_t line __unused, in setbool() argument
208 if (option == NULL) { in setbool()
215 option->value.boolean = 1; in setbool()
218 option->value.boolean = 0; in setbool()
227 setnum(struct figpar_config *option, uint32_t line __unused, in setnum() argument
231 if (option == NULL) { in setnum()
238 option->value.num = (int32_t)strtol(value, (char **)NULL, 10); in setnum()
247 setstr(struct figpar_config *option, uint32_t line __unused, in setstr() argument
252 if (option == NULL) { in setstr()
259 if (option->value.str == NULL) { in setstr()
260 if ((option->value.str = malloc(STR_BUFSIZE)) == NULL) in setstr()
269 snprintf(option->value.str, STR_BUFSIZE, "%s", value); in setstr()
272 len = strlen(option->value.str); in setstr()
273 if (option->value.str[len - 1] == '"') in setstr()
274 option->value.str[len - 1] = '\0'; in setstr()